1 |
#! /bin/sh |
2 |
# Guess values for system-dependent variables and create Makefiles. |
3 |
# Generated by GNU Autoconf 2.69 for hopm 1.0.0beta1. |
4 |
# |
5 |
# |
6 |
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
7 |
# |
8 |
# |
9 |
# This configure script is free software; the Free Software Foundation |
10 |
# gives unlimited permission to copy, distribute and modify it. |
11 |
## -------------------- ## |
12 |
## M4sh Initialization. ## |
13 |
## -------------------- ## |
14 |
|
15 |
# Be more Bourne compatible |
16 |
DUALCASE=1; export DUALCASE # for MKS sh |
17 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
18 |
emulate sh |
19 |
NULLCMD=: |
20 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
21 |
# is contrary to our usage. Disable this feature. |
22 |
alias -g '${1+"$@"}'='"$@"' |
23 |
setopt NO_GLOB_SUBST |
24 |
else |
25 |
case `(set -o) 2>/dev/null` in #( |
26 |
*posix*) : |
27 |
set -o posix ;; #( |
28 |
*) : |
29 |
;; |
30 |
esac |
31 |
fi |
32 |
|
33 |
|
34 |
as_nl=' |
35 |
' |
36 |
export as_nl |
37 |
# Printing a long string crashes Solaris 7 /usr/bin/printf. |
38 |
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
39 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
40 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
41 |
# Prefer a ksh shell builtin over an external printf program on Solaris, |
42 |
# but without wasting forks for bash or zsh. |
43 |
if test -z "$BASH_VERSION$ZSH_VERSION" \ |
44 |
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
45 |
as_echo='print -r --' |
46 |
as_echo_n='print -rn --' |
47 |
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
48 |
as_echo='printf %s\n' |
49 |
as_echo_n='printf %s' |
50 |
else |
51 |
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
52 |
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
53 |
as_echo_n='/usr/ucb/echo -n' |
54 |
else |
55 |
as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
56 |
as_echo_n_body='eval |
57 |
arg=$1; |
58 |
case $arg in #( |
59 |
*"$as_nl"*) |
60 |
expr "X$arg" : "X\\(.*\\)$as_nl"; |
61 |
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
62 |
esac; |
63 |
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
64 |
' |
65 |
export as_echo_n_body |
66 |
as_echo_n='sh -c $as_echo_n_body as_echo' |
67 |
fi |
68 |
export as_echo_body |
69 |
as_echo='sh -c $as_echo_body as_echo' |
70 |
fi |
71 |
|
72 |
# The user is always right. |
73 |
if test "${PATH_SEPARATOR+set}" != set; then |
74 |
PATH_SEPARATOR=: |
75 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
76 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
77 |
PATH_SEPARATOR=';' |
78 |
} |
79 |
fi |
80 |
|
81 |
|
82 |
# IFS |
83 |
# We need space, tab and new line, in precisely that order. Quoting is |
84 |
# there to prevent editors from complaining about space-tab. |
85 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
86 |
# splitting by setting IFS to empty value.) |
87 |
IFS=" "" $as_nl" |
88 |
|
89 |
# Find who we are. Look in the path if we contain no directory separator. |
90 |
as_myself= |
91 |
case $0 in #(( |
92 |
*[\\/]* ) as_myself=$0 ;; |
93 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
94 |
for as_dir in $PATH |
95 |
do |
96 |
IFS=$as_save_IFS |
97 |
test -z "$as_dir" && as_dir=. |
98 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
99 |
done |
100 |
IFS=$as_save_IFS |
101 |
|
102 |
;; |
103 |
esac |
104 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
105 |
# in which case we are not to be found in the path. |
106 |
if test "x$as_myself" = x; then |
107 |
as_myself=$0 |
108 |
fi |
109 |
if test ! -f "$as_myself"; then |
110 |
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
111 |
exit 1 |
112 |
fi |
113 |
|
114 |
# Unset variables that we do not need and which cause bugs (e.g. in |
115 |
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
116 |
# suppresses any "Segmentation fault" message there. '((' could |
117 |
# trigger a bug in pdksh 5.2.14. |
118 |
for as_var in BASH_ENV ENV MAIL MAILPATH |
119 |
do eval test x\${$as_var+set} = xset \ |
120 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
121 |
done |
122 |
PS1='$ ' |
123 |
PS2='> ' |
124 |
PS4='+ ' |
125 |
|
126 |
# NLS nuisances. |
127 |
LC_ALL=C |
128 |
export LC_ALL |
129 |
LANGUAGE=C |
130 |
export LANGUAGE |
131 |
|
132 |
# CDPATH. |
133 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
134 |
|
135 |
# Use a proper internal environment variable to ensure we don't fall |
136 |
# into an infinite loop, continuously re-executing ourselves. |
137 |
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
138 |
_as_can_reexec=no; export _as_can_reexec; |
139 |
# We cannot yet assume a decent shell, so we have to provide a |
140 |
# neutralization value for shells without unset; and this also |
141 |
# works around shells that cannot unset nonexistent variables. |
142 |
# Preserve -v and -x to the replacement shell. |
143 |
BASH_ENV=/dev/null |
144 |
ENV=/dev/null |
145 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
146 |
case $- in # (((( |
147 |
*v*x* | *x*v* ) as_opts=-vx ;; |
148 |
*v* ) as_opts=-v ;; |
149 |
*x* ) as_opts=-x ;; |
150 |
* ) as_opts= ;; |
151 |
esac |
152 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
153 |
# Admittedly, this is quite paranoid, since all the known shells bail |
154 |
# out after a failed `exec'. |
155 |
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
156 |
as_fn_exit 255 |
157 |
fi |
158 |
# We don't want this to propagate to other subprocesses. |
159 |
{ _as_can_reexec=; unset _as_can_reexec;} |
160 |
if test "x$CONFIG_SHELL" = x; then |
161 |
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
162 |
emulate sh |
163 |
NULLCMD=: |
164 |
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
165 |
# is contrary to our usage. Disable this feature. |
166 |
alias -g '\${1+\"\$@\"}'='\"\$@\"' |
167 |
setopt NO_GLOB_SUBST |
168 |
else |
169 |
case \`(set -o) 2>/dev/null\` in #( |
170 |
*posix*) : |
171 |
set -o posix ;; #( |
172 |
*) : |
173 |
;; |
174 |
esac |
175 |
fi |
176 |
" |
177 |
as_required="as_fn_return () { (exit \$1); } |
178 |
as_fn_success () { as_fn_return 0; } |
179 |
as_fn_failure () { as_fn_return 1; } |
180 |
as_fn_ret_success () { return 0; } |
181 |
as_fn_ret_failure () { return 1; } |
182 |
|
183 |
exitcode=0 |
184 |
as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
185 |
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
186 |
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
187 |
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
188 |
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
189 |
|
190 |
else |
191 |
exitcode=1; echo positional parameters were not saved. |
192 |
fi |
193 |
test x\$exitcode = x0 || exit 1 |
194 |
test -x / || exit 1" |
195 |
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
196 |
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
197 |
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
198 |
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
199 |
|
200 |
test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( |
201 |
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
202 |
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
203 |
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
204 |
PATH=/empty FPATH=/empty; export PATH FPATH |
205 |
test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ |
206 |
|| test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 |
207 |
test \$(( 1 + 1 )) = 2 || exit 1" |
208 |
if (eval "$as_required") 2>/dev/null; then : |
209 |
as_have_required=yes |
210 |
else |
211 |
as_have_required=no |
212 |
fi |
213 |
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
214 |
|
215 |
else |
216 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
217 |
as_found=false |
218 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
219 |
do |
220 |
IFS=$as_save_IFS |
221 |
test -z "$as_dir" && as_dir=. |
222 |
as_found=: |
223 |
case $as_dir in #( |
224 |
/*) |
225 |
for as_base in sh bash ksh sh5; do |
226 |
# Try only shells that exist, to save several forks. |
227 |
as_shell=$as_dir/$as_base |
228 |
if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
229 |
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
230 |
CONFIG_SHELL=$as_shell as_have_required=yes |
231 |
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
232 |
break 2 |
233 |
fi |
234 |
fi |
235 |
done;; |
236 |
esac |
237 |
as_found=false |
238 |
done |
239 |
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
240 |
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
241 |
CONFIG_SHELL=$SHELL as_have_required=yes |
242 |
fi; } |
243 |
IFS=$as_save_IFS |
244 |
|
245 |
|
246 |
if test "x$CONFIG_SHELL" != x; then : |
247 |
export CONFIG_SHELL |
248 |
# We cannot yet assume a decent shell, so we have to provide a |
249 |
# neutralization value for shells without unset; and this also |
250 |
# works around shells that cannot unset nonexistent variables. |
251 |
# Preserve -v and -x to the replacement shell. |
252 |
BASH_ENV=/dev/null |
253 |
ENV=/dev/null |
254 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
255 |
case $- in # (((( |
256 |
*v*x* | *x*v* ) as_opts=-vx ;; |
257 |
*v* ) as_opts=-v ;; |
258 |
*x* ) as_opts=-x ;; |
259 |
* ) as_opts= ;; |
260 |
esac |
261 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
262 |
# Admittedly, this is quite paranoid, since all the known shells bail |
263 |
# out after a failed `exec'. |
264 |
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
265 |
exit 255 |
266 |
fi |
267 |
|
268 |
if test x$as_have_required = xno; then : |
269 |
$as_echo "$0: This script requires a shell more modern than all" |
270 |
$as_echo "$0: the shells that I found on your system." |
271 |
if test x${ZSH_VERSION+set} = xset ; then |
272 |
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
273 |
$as_echo "$0: be upgraded to zsh 4.3.4 or later." |
274 |
else |
275 |
$as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
276 |
$0: including any error possibly output before this |
277 |
$0: message. Then install a modern shell, or manually run |
278 |
$0: the script under such a shell if you do have one." |
279 |
fi |
280 |
exit 1 |
281 |
fi |
282 |
fi |
283 |
fi |
284 |
SHELL=${CONFIG_SHELL-/bin/sh} |
285 |
export SHELL |
286 |
# Unset more variables known to interfere with behavior of common tools. |
287 |
CLICOLOR_FORCE= GREP_OPTIONS= |
288 |
unset CLICOLOR_FORCE GREP_OPTIONS |
289 |
|
290 |
## --------------------- ## |
291 |
## M4sh Shell Functions. ## |
292 |
## --------------------- ## |
293 |
# as_fn_unset VAR |
294 |
# --------------- |
295 |
# Portably unset VAR. |
296 |
as_fn_unset () |
297 |
{ |
298 |
{ eval $1=; unset $1;} |
299 |
} |
300 |
as_unset=as_fn_unset |
301 |
|
302 |
# as_fn_set_status STATUS |
303 |
# ----------------------- |
304 |
# Set $? to STATUS, without forking. |
305 |
as_fn_set_status () |
306 |
{ |
307 |
return $1 |
308 |
} # as_fn_set_status |
309 |
|
310 |
# as_fn_exit STATUS |
311 |
# ----------------- |
312 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
313 |
as_fn_exit () |
314 |
{ |
315 |
set +e |
316 |
as_fn_set_status $1 |
317 |
exit $1 |
318 |
} # as_fn_exit |
319 |
|
320 |
# as_fn_mkdir_p |
321 |
# ------------- |
322 |
# Create "$as_dir" as a directory, including parents if necessary. |
323 |
as_fn_mkdir_p () |
324 |
{ |
325 |
|
326 |
case $as_dir in #( |
327 |
-*) as_dir=./$as_dir;; |
328 |
esac |
329 |
test -d "$as_dir" || eval $as_mkdir_p || { |
330 |
as_dirs= |
331 |
while :; do |
332 |
case $as_dir in #( |
333 |
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
334 |
*) as_qdir=$as_dir;; |
335 |
esac |
336 |
as_dirs="'$as_qdir' $as_dirs" |
337 |
as_dir=`$as_dirname -- "$as_dir" || |
338 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
339 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
340 |
X"$as_dir" : 'X\(//\)$' \| \ |
341 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
342 |
$as_echo X"$as_dir" | |
343 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
344 |
s//\1/ |
345 |
q |
346 |
} |
347 |
/^X\(\/\/\)[^/].*/{ |
348 |
s//\1/ |
349 |
q |
350 |
} |
351 |
/^X\(\/\/\)$/{ |
352 |
s//\1/ |
353 |
q |
354 |
} |
355 |
/^X\(\/\).*/{ |
356 |
s//\1/ |
357 |
q |
358 |
} |
359 |
s/.*/./; q'` |
360 |
test -d "$as_dir" && break |
361 |
done |
362 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
363 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
364 |
|
365 |
|
366 |
} # as_fn_mkdir_p |
367 |
|
368 |
# as_fn_executable_p FILE |
369 |
# ----------------------- |
370 |
# Test if FILE is an executable regular file. |
371 |
as_fn_executable_p () |
372 |
{ |
373 |
test -f "$1" && test -x "$1" |
374 |
} # as_fn_executable_p |
375 |
# as_fn_append VAR VALUE |
376 |
# ---------------------- |
377 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
378 |
# advantage of any shell optimizations that allow amortized linear growth over |
379 |
# repeated appends, instead of the typical quadratic growth present in naive |
380 |
# implementations. |
381 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
382 |
eval 'as_fn_append () |
383 |
{ |
384 |
eval $1+=\$2 |
385 |
}' |
386 |
else |
387 |
as_fn_append () |
388 |
{ |
389 |
eval $1=\$$1\$2 |
390 |
} |
391 |
fi # as_fn_append |
392 |
|
393 |
# as_fn_arith ARG... |
394 |
# ------------------ |
395 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
396 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
397 |
# must be portable across $(()) and expr. |
398 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
399 |
eval 'as_fn_arith () |
400 |
{ |
401 |
as_val=$(( $* )) |
402 |
}' |
403 |
else |
404 |
as_fn_arith () |
405 |
{ |
406 |
as_val=`expr "$@" || test $? -eq 1` |
407 |
} |
408 |
fi # as_fn_arith |
409 |
|
410 |
|
411 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
412 |
# ---------------------------------------- |
413 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
414 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
415 |
# script with STATUS, using 1 if that was 0. |
416 |
as_fn_error () |
417 |
{ |
418 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
419 |
if test "$4"; then |
420 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
421 |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
422 |
fi |
423 |
$as_echo "$as_me: error: $2" >&2 |
424 |
as_fn_exit $as_status |
425 |
} # as_fn_error |
426 |
|
427 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
428 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
429 |
as_expr=expr |
430 |
else |
431 |
as_expr=false |
432 |
fi |
433 |
|
434 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
435 |
as_basename=basename |
436 |
else |
437 |
as_basename=false |
438 |
fi |
439 |
|
440 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
441 |
as_dirname=dirname |
442 |
else |
443 |
as_dirname=false |
444 |
fi |
445 |
|
446 |
as_me=`$as_basename -- "$0" || |
447 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
448 |
X"$0" : 'X\(//\)$' \| \ |
449 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
450 |
$as_echo X/"$0" | |
451 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
452 |
s//\1/ |
453 |
q |
454 |
} |
455 |
/^X\/\(\/\/\)$/{ |
456 |
s//\1/ |
457 |
q |
458 |
} |
459 |
/^X\/\(\/\).*/{ |
460 |
s//\1/ |
461 |
q |
462 |
} |
463 |
s/.*/./; q'` |
464 |
|
465 |
# Avoid depending upon Character Ranges. |
466 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
467 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
468 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
469 |
as_cr_digits='0123456789' |
470 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
471 |
|
472 |
|
473 |
as_lineno_1=$LINENO as_lineno_1a=$LINENO |
474 |
as_lineno_2=$LINENO as_lineno_2a=$LINENO |
475 |
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
476 |
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
477 |
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
478 |
sed -n ' |
479 |
p |
480 |
/[$]LINENO/= |
481 |
' <$as_myself | |
482 |
sed ' |
483 |
s/[$]LINENO.*/&-/ |
484 |
t lineno |
485 |
b |
486 |
:lineno |
487 |
N |
488 |
:loop |
489 |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
490 |
t loop |
491 |
s/-\n.*// |
492 |
' >$as_me.lineno && |
493 |
chmod +x "$as_me.lineno" || |
494 |
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
495 |
|
496 |
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
497 |
# already done that, so ensure we don't try to do so again and fall |
498 |
# in an infinite loop. This has already happened in practice. |
499 |
_as_can_reexec=no; export _as_can_reexec |
500 |
# Don't try to exec as it changes $[0], causing all sort of problems |
501 |
# (the dirname of $[0] is not the place where we might find the |
502 |
# original and so on. Autoconf is especially sensitive to this). |
503 |
. "./$as_me.lineno" |
504 |
# Exit status is that of the last command. |
505 |
exit |
506 |
} |
507 |
|
508 |
ECHO_C= ECHO_N= ECHO_T= |
509 |
case `echo -n x` in #((((( |
510 |
-n*) |
511 |
case `echo 'xy\c'` in |
512 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
513 |
xy) ECHO_C='\c';; |
514 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
515 |
ECHO_T=' ';; |
516 |
esac;; |
517 |
*) |
518 |
ECHO_N='-n';; |
519 |
esac |
520 |
|
521 |
rm -f conf$$ conf$$.exe conf$$.file |
522 |
if test -d conf$$.dir; then |
523 |
rm -f conf$$.dir/conf$$.file |
524 |
else |
525 |
rm -f conf$$.dir |
526 |
mkdir conf$$.dir 2>/dev/null |
527 |
fi |
528 |
if (echo >conf$$.file) 2>/dev/null; then |
529 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
530 |
as_ln_s='ln -s' |
531 |
# ... but there are two gotchas: |
532 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
533 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
534 |
# In both cases, we have to default to `cp -pR'. |
535 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
536 |
as_ln_s='cp -pR' |
537 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
538 |
as_ln_s=ln |
539 |
else |
540 |
as_ln_s='cp -pR' |
541 |
fi |
542 |
else |
543 |
as_ln_s='cp -pR' |
544 |
fi |
545 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
546 |
rmdir conf$$.dir 2>/dev/null |
547 |
|
548 |
if mkdir -p . 2>/dev/null; then |
549 |
as_mkdir_p='mkdir -p "$as_dir"' |
550 |
else |
551 |
test -d ./-p && rmdir ./-p |
552 |
as_mkdir_p=false |
553 |
fi |
554 |
|
555 |
as_test_x='test -x' |
556 |
as_executable_p=as_fn_executable_p |
557 |
|
558 |
# Sed expression to map a string onto a valid CPP name. |
559 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
560 |
|
561 |
# Sed expression to map a string onto a valid variable name. |
562 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
563 |
|
564 |
SHELL=${CONFIG_SHELL-/bin/sh} |
565 |
|
566 |
|
567 |
test -n "$DJDIR" || exec 7<&0 </dev/null |
568 |
exec 6>&1 |
569 |
|
570 |
# Name of the host. |
571 |
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
572 |
# so uname gets run too. |
573 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
574 |
|
575 |
# |
576 |
# Initializations. |
577 |
# |
578 |
ac_default_prefix=/usr/local |
579 |
ac_clean_files= |
580 |
ac_config_libobj_dir=. |
581 |
LIBOBJS= |
582 |
cross_compiling=no |
583 |
subdirs= |
584 |
MFLAGS= |
585 |
MAKEFLAGS= |
586 |
|
587 |
# Identity of this package. |
588 |
PACKAGE_NAME='hopm' |
589 |
PACKAGE_TARNAME='hopm' |
590 |
PACKAGE_VERSION='1.0.0beta1' |
591 |
PACKAGE_STRING='hopm 1.0.0beta1' |
592 |
PACKAGE_BUGREPORT='' |
593 |
PACKAGE_URL='' |
594 |
|
595 |
ac_unique_file="src/opercmd.h" |
596 |
ac_default_prefix=\${HOME}/hopm |
597 |
# Factoring default headers for most tests. |
598 |
ac_includes_default="\ |
599 |
#include <stdio.h> |
600 |
#ifdef HAVE_SYS_TYPES_H |
601 |
# include <sys/types.h> |
602 |
#endif |
603 |
#ifdef HAVE_SYS_STAT_H |
604 |
# include <sys/stat.h> |
605 |
#endif |
606 |
#ifdef STDC_HEADERS |
607 |
# include <stdlib.h> |
608 |
# include <stddef.h> |
609 |
#else |
610 |
# ifdef HAVE_STDLIB_H |
611 |
# include <stdlib.h> |
612 |
# endif |
613 |
#endif |
614 |
#ifdef HAVE_STRING_H |
615 |
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
616 |
# include <memory.h> |
617 |
# endif |
618 |
# include <string.h> |
619 |
#endif |
620 |
#ifdef HAVE_STRINGS_H |
621 |
# include <strings.h> |
622 |
#endif |
623 |
#ifdef HAVE_INTTYPES_H |
624 |
# include <inttypes.h> |
625 |
#endif |
626 |
#ifdef HAVE_STDINT_H |
627 |
# include <stdint.h> |
628 |
#endif |
629 |
#ifdef HAVE_UNISTD_H |
630 |
# include <unistd.h> |
631 |
#endif" |
632 |
|
633 |
enable_option_checking=no |
634 |
ac_subst_vars='am__EXEEXT_FALSE |
635 |
am__EXEEXT_TRUE |
636 |
LTLIBOBJS |
637 |
LIBOBJS |
638 |
subdirs |
639 |
LEXLIB |
640 |
LEX_OUTPUT_ROOT |
641 |
LEX |
642 |
YFLAGS |
643 |
YACC |
644 |
CPP |
645 |
OTOOL64 |
646 |
OTOOL |
647 |
LIPO |
648 |
NMEDIT |
649 |
DSYMUTIL |
650 |
MANIFEST_TOOL |
651 |
RANLIB |
652 |
ac_ct_AR |
653 |
AR |
654 |
DLLTOOL |
655 |
OBJDUMP |
656 |
LN_S |
657 |
NM |
658 |
ac_ct_DUMPBIN |
659 |
DUMPBIN |
660 |
LD |
661 |
FGREP |
662 |
EGREP |
663 |
GREP |
664 |
SED |
665 |
host_os |
666 |
host_vendor |
667 |
host_cpu |
668 |
host |
669 |
build_os |
670 |
build_vendor |
671 |
build_cpu |
672 |
build |
673 |
LIBTOOL |
674 |
am__fastdepCC_FALSE |
675 |
am__fastdepCC_TRUE |
676 |
CCDEPMODE |
677 |
am__nodep |
678 |
AMDEPBACKSLASH |
679 |
AMDEP_FALSE |
680 |
AMDEP_TRUE |
681 |
am__quote |
682 |
am__include |
683 |
DEPDIR |
684 |
OBJEXT |
685 |
EXEEXT |
686 |
ac_ct_CC |
687 |
CPPFLAGS |
688 |
LDFLAGS |
689 |
CFLAGS |
690 |
CC |
691 |
MAINT |
692 |
MAINTAINER_MODE_FALSE |
693 |
MAINTAINER_MODE_TRUE |
694 |
AM_BACKSLASH |
695 |
AM_DEFAULT_VERBOSITY |
696 |
AM_DEFAULT_V |
697 |
AM_V |
698 |
am__untar |
699 |
am__tar |
700 |
AMTAR |
701 |
am__leading_dot |
702 |
SET_MAKE |
703 |
AWK |
704 |
mkdir_p |
705 |
MKDIR_P |
706 |
INSTALL_STRIP_PROGRAM |
707 |
STRIP |
708 |
install_sh |
709 |
MAKEINFO |
710 |
AUTOHEADER |
711 |
AUTOMAKE |
712 |
AUTOCONF |
713 |
ACLOCAL |
714 |
VERSION |
715 |
PACKAGE |
716 |
CYGPATH_W |
717 |
am__isrc |
718 |
INSTALL_DATA |
719 |
INSTALL_SCRIPT |
720 |
INSTALL_PROGRAM |
721 |
target_alias |
722 |
host_alias |
723 |
build_alias |
724 |
LIBS |
725 |
ECHO_T |
726 |
ECHO_N |
727 |
ECHO_C |
728 |
DEFS |
729 |
mandir |
730 |
localedir |
731 |
libdir |
732 |
psdir |
733 |
pdfdir |
734 |
dvidir |
735 |
htmldir |
736 |
infodir |
737 |
docdir |
738 |
oldincludedir |
739 |
includedir |
740 |
localstatedir |
741 |
sharedstatedir |
742 |
sysconfdir |
743 |
datadir |
744 |
datarootdir |
745 |
libexecdir |
746 |
sbindir |
747 |
bindir |
748 |
program_transform_name |
749 |
prefix |
750 |
exec_prefix |
751 |
PACKAGE_URL |
752 |
PACKAGE_BUGREPORT |
753 |
PACKAGE_STRING |
754 |
PACKAGE_VERSION |
755 |
PACKAGE_TARNAME |
756 |
PACKAGE_NAME |
757 |
PATH_SEPARATOR |
758 |
SHELL' |
759 |
ac_subst_files='' |
760 |
ac_user_opts=' |
761 |
enable_option_checking |
762 |
enable_silent_rules |
763 |
enable_maintainer_mode |
764 |
with_extra_fascism |
765 |
enable_dependency_tracking |
766 |
enable_shared |
767 |
enable_static |
768 |
with_pic |
769 |
enable_fast_install |
770 |
with_aix_soname |
771 |
with_gnu_ld |
772 |
with_sysroot |
773 |
enable_libtool_lock |
774 |
' |
775 |
ac_precious_vars='build_alias |
776 |
host_alias |
777 |
target_alias |
778 |
CC |
779 |
CFLAGS |
780 |
LDFLAGS |
781 |
LIBS |
782 |
CPPFLAGS |
783 |
CPP |
784 |
YACC |
785 |
YFLAGS' |
786 |
ac_subdirs_all='src/libopm' |
787 |
|
788 |
# Initialize some variables set by options. |
789 |
ac_init_help= |
790 |
ac_init_version=false |
791 |
ac_unrecognized_opts= |
792 |
ac_unrecognized_sep= |
793 |
# The variables have the same names as the options, with |
794 |
# dashes changed to underlines. |
795 |
cache_file=/dev/null |
796 |
exec_prefix=NONE |
797 |
no_create= |
798 |
no_recursion= |
799 |
prefix=NONE |
800 |
program_prefix=NONE |
801 |
program_suffix=NONE |
802 |
program_transform_name=s,x,x, |
803 |
silent= |
804 |
site= |
805 |
srcdir= |
806 |
verbose= |
807 |
x_includes=NONE |
808 |
x_libraries=NONE |
809 |
|
810 |
# Installation directory options. |
811 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
812 |
# and all the variables that are supposed to be based on exec_prefix |
813 |
# by default will actually change. |
814 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
815 |
# (The list follows the same order as the GNU Coding Standards.) |
816 |
bindir='${exec_prefix}/bin' |
817 |
sbindir='${exec_prefix}/sbin' |
818 |
libexecdir='${exec_prefix}/libexec' |
819 |
datarootdir='${prefix}/share' |
820 |
datadir='${datarootdir}' |
821 |
sysconfdir='${prefix}/etc' |
822 |
sharedstatedir='${prefix}/com' |
823 |
localstatedir='${prefix}/var' |
824 |
includedir='${prefix}/include' |
825 |
oldincludedir='/usr/include' |
826 |
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
827 |
infodir='${datarootdir}/info' |
828 |
htmldir='${docdir}' |
829 |
dvidir='${docdir}' |
830 |
pdfdir='${docdir}' |
831 |
psdir='${docdir}' |
832 |
libdir='${exec_prefix}/lib' |
833 |
localedir='${datarootdir}/locale' |
834 |
mandir='${datarootdir}/man' |
835 |
|
836 |
ac_prev= |
837 |
ac_dashdash= |
838 |
for ac_option |
839 |
do |
840 |
# If the previous option needs an argument, assign it. |
841 |
if test -n "$ac_prev"; then |
842 |
eval $ac_prev=\$ac_option |
843 |
ac_prev= |
844 |
continue |
845 |
fi |
846 |
|
847 |
case $ac_option in |
848 |
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
849 |
*=) ac_optarg= ;; |
850 |
*) ac_optarg=yes ;; |
851 |
esac |
852 |
|
853 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
854 |
|
855 |
case $ac_dashdash$ac_option in |
856 |
--) |
857 |
ac_dashdash=yes ;; |
858 |
|
859 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
860 |
ac_prev=bindir ;; |
861 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
862 |
bindir=$ac_optarg ;; |
863 |
|
864 |
-build | --build | --buil | --bui | --bu) |
865 |
ac_prev=build_alias ;; |
866 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
867 |
build_alias=$ac_optarg ;; |
868 |
|
869 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
870 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
871 |
ac_prev=cache_file ;; |
872 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
873 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
874 |
cache_file=$ac_optarg ;; |
875 |
|
876 |
--config-cache | -C) |
877 |
cache_file=config.cache ;; |
878 |
|
879 |
-datadir | --datadir | --datadi | --datad) |
880 |
ac_prev=datadir ;; |
881 |
-datadir=* | --datadir=* | --datadi=* | --datad=*) |
882 |
datadir=$ac_optarg ;; |
883 |
|
884 |
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
885 |
| --dataroo | --dataro | --datar) |
886 |
ac_prev=datarootdir ;; |
887 |
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
888 |
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
889 |
datarootdir=$ac_optarg ;; |
890 |
|
891 |
-disable-* | --disable-*) |
892 |
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
893 |
# Reject names that are not valid shell variable names. |
894 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
895 |
as_fn_error $? "invalid feature name: $ac_useropt" |
896 |
ac_useropt_orig=$ac_useropt |
897 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
898 |
case $ac_user_opts in |
899 |
*" |
900 |
"enable_$ac_useropt" |
901 |
"*) ;; |
902 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
903 |
ac_unrecognized_sep=', ';; |
904 |
esac |
905 |
eval enable_$ac_useropt=no ;; |
906 |
|
907 |
-docdir | --docdir | --docdi | --doc | --do) |
908 |
ac_prev=docdir ;; |
909 |
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
910 |
docdir=$ac_optarg ;; |
911 |
|
912 |
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
913 |
ac_prev=dvidir ;; |
914 |
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
915 |
dvidir=$ac_optarg ;; |
916 |
|
917 |
-enable-* | --enable-*) |
918 |
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
919 |
# Reject names that are not valid shell variable names. |
920 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
921 |
as_fn_error $? "invalid feature name: $ac_useropt" |
922 |
ac_useropt_orig=$ac_useropt |
923 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
924 |
case $ac_user_opts in |
925 |
*" |
926 |
"enable_$ac_useropt" |
927 |
"*) ;; |
928 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
929 |
ac_unrecognized_sep=', ';; |
930 |
esac |
931 |
eval enable_$ac_useropt=\$ac_optarg ;; |
932 |
|
933 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
934 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
935 |
| --exec | --exe | --ex) |
936 |
ac_prev=exec_prefix ;; |
937 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
938 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
939 |
| --exec=* | --exe=* | --ex=*) |
940 |
exec_prefix=$ac_optarg ;; |
941 |
|
942 |
-gas | --gas | --ga | --g) |
943 |
# Obsolete; use --with-gas. |
944 |
with_gas=yes ;; |
945 |
|
946 |
-help | --help | --hel | --he | -h) |
947 |
ac_init_help=long ;; |
948 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
949 |
ac_init_help=recursive ;; |
950 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
951 |
ac_init_help=short ;; |
952 |
|
953 |
-host | --host | --hos | --ho) |
954 |
ac_prev=host_alias ;; |
955 |
-host=* | --host=* | --hos=* | --ho=*) |
956 |
host_alias=$ac_optarg ;; |
957 |
|
958 |
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
959 |
ac_prev=htmldir ;; |
960 |
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
961 |
| --ht=*) |
962 |
htmldir=$ac_optarg ;; |
963 |
|
964 |
-includedir | --includedir | --includedi | --included | --include \ |
965 |
| --includ | --inclu | --incl | --inc) |
966 |
ac_prev=includedir ;; |
967 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
968 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
969 |
includedir=$ac_optarg ;; |
970 |
|
971 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
972 |
ac_prev=infodir ;; |
973 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
974 |
infodir=$ac_optarg ;; |
975 |
|
976 |
-libdir | --libdir | --libdi | --libd) |
977 |
ac_prev=libdir ;; |
978 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
979 |
libdir=$ac_optarg ;; |
980 |
|
981 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
982 |
| --libexe | --libex | --libe) |
983 |
ac_prev=libexecdir ;; |
984 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
985 |
| --libexe=* | --libex=* | --libe=*) |
986 |
libexecdir=$ac_optarg ;; |
987 |
|
988 |
-localedir | --localedir | --localedi | --localed | --locale) |
989 |
ac_prev=localedir ;; |
990 |
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
991 |
localedir=$ac_optarg ;; |
992 |
|
993 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
994 |
| --localstate | --localstat | --localsta | --localst | --locals) |
995 |
ac_prev=localstatedir ;; |
996 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
997 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
998 |
localstatedir=$ac_optarg ;; |
999 |
|
1000 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
1001 |
ac_prev=mandir ;; |
1002 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
1003 |
mandir=$ac_optarg ;; |
1004 |
|
1005 |
-nfp | --nfp | --nf) |
1006 |
# Obsolete; use --without-fp. |
1007 |
with_fp=no ;; |
1008 |
|
1009 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
1010 |
| --no-cr | --no-c | -n) |
1011 |
no_create=yes ;; |
1012 |
|
1013 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
1014 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
1015 |
no_recursion=yes ;; |
1016 |
|
1017 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
1018 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
1019 |
| --oldin | --oldi | --old | --ol | --o) |
1020 |
ac_prev=oldincludedir ;; |
1021 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
1022 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
1023 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
1024 |
oldincludedir=$ac_optarg ;; |
1025 |
|
1026 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
1027 |
ac_prev=prefix ;; |
1028 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
1029 |
prefix=$ac_optarg ;; |
1030 |
|
1031 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
1032 |
| --program-pre | --program-pr | --program-p) |
1033 |
ac_prev=program_prefix ;; |
1034 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
1035 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
1036 |
program_prefix=$ac_optarg ;; |
1037 |
|
1038 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
1039 |
| --program-suf | --program-su | --program-s) |
1040 |
ac_prev=program_suffix ;; |
1041 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
1042 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
1043 |
program_suffix=$ac_optarg ;; |
1044 |
|
1045 |
-program-transform-name | --program-transform-name \ |
1046 |
| --program-transform-nam | --program-transform-na \ |
1047 |
| --program-transform-n | --program-transform- \ |
1048 |
| --program-transform | --program-transfor \ |
1049 |
| --program-transfo | --program-transf \ |
1050 |
| --program-trans | --program-tran \ |
1051 |
| --progr-tra | --program-tr | --program-t) |
1052 |
ac_prev=program_transform_name ;; |
1053 |
-program-transform-name=* | --program-transform-name=* \ |
1054 |
| --program-transform-nam=* | --program-transform-na=* \ |
1055 |
| --program-transform-n=* | --program-transform-=* \ |
1056 |
| --program-transform=* | --program-transfor=* \ |
1057 |
| --program-transfo=* | --program-transf=* \ |
1058 |
| --program-trans=* | --program-tran=* \ |
1059 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
1060 |
program_transform_name=$ac_optarg ;; |
1061 |
|
1062 |
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1063 |
ac_prev=pdfdir ;; |
1064 |
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
1065 |
pdfdir=$ac_optarg ;; |
1066 |
|
1067 |
-psdir | --psdir | --psdi | --psd | --ps) |
1068 |
ac_prev=psdir ;; |
1069 |
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
1070 |
psdir=$ac_optarg ;; |
1071 |
|
1072 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1073 |
| -silent | --silent | --silen | --sile | --sil) |
1074 |
silent=yes ;; |
1075 |
|
1076 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1077 |
ac_prev=sbindir ;; |
1078 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1079 |
| --sbi=* | --sb=*) |
1080 |
sbindir=$ac_optarg ;; |
1081 |
|
1082 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
1083 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
1084 |
| --sharedst | --shareds | --shared | --share | --shar \ |
1085 |
| --sha | --sh) |
1086 |
ac_prev=sharedstatedir ;; |
1087 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
1088 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
1089 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
1090 |
| --sha=* | --sh=*) |
1091 |
sharedstatedir=$ac_optarg ;; |
1092 |
|
1093 |
-site | --site | --sit) |
1094 |
ac_prev=site ;; |
1095 |
-site=* | --site=* | --sit=*) |
1096 |
site=$ac_optarg ;; |
1097 |
|
1098 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1099 |
ac_prev=srcdir ;; |
1100 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
1101 |
srcdir=$ac_optarg ;; |
1102 |
|
1103 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1104 |
| --syscon | --sysco | --sysc | --sys | --sy) |
1105 |
ac_prev=sysconfdir ;; |
1106 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
1107 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
1108 |
sysconfdir=$ac_optarg ;; |
1109 |
|
1110 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
1111 |
ac_prev=target_alias ;; |
1112 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1113 |
target_alias=$ac_optarg ;; |
1114 |
|
1115 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
1116 |
verbose=yes ;; |
1117 |
|
1118 |
-version | --version | --versio | --versi | --vers | -V) |
1119 |
ac_init_version=: ;; |
1120 |
|
1121 |
-with-* | --with-*) |
1122 |
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1123 |
# Reject names that are not valid shell variable names. |
1124 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1125 |
as_fn_error $? "invalid package name: $ac_useropt" |
1126 |
ac_useropt_orig=$ac_useropt |
1127 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1128 |
case $ac_user_opts in |
1129 |
*" |
1130 |
"with_$ac_useropt" |
1131 |
"*) ;; |
1132 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
1133 |
ac_unrecognized_sep=', ';; |
1134 |
esac |
1135 |
eval with_$ac_useropt=\$ac_optarg ;; |
1136 |
|
1137 |
-without-* | --without-*) |
1138 |
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1139 |
# Reject names that are not valid shell variable names. |
1140 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1141 |
as_fn_error $? "invalid package name: $ac_useropt" |
1142 |
ac_useropt_orig=$ac_useropt |
1143 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1144 |
case $ac_user_opts in |
1145 |
*" |
1146 |
"with_$ac_useropt" |
1147 |
"*) ;; |
1148 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
1149 |
ac_unrecognized_sep=', ';; |
1150 |
esac |
1151 |
eval with_$ac_useropt=no ;; |
1152 |
|
1153 |
--x) |
1154 |
# Obsolete; use --with-x. |
1155 |
with_x=yes ;; |
1156 |
|
1157 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
1158 |
| --x-incl | --x-inc | --x-in | --x-i) |
1159 |
ac_prev=x_includes ;; |
1160 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
1161 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
1162 |
x_includes=$ac_optarg ;; |
1163 |
|
1164 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
1165 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
1166 |
ac_prev=x_libraries ;; |
1167 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
1168 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1169 |
x_libraries=$ac_optarg ;; |
1170 |
|
1171 |
-*) as_fn_error $? "unrecognized option: \`$ac_option' |
1172 |
Try \`$0 --help' for more information" |
1173 |
;; |
1174 |
|
1175 |
*=*) |
1176 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1177 |
# Reject names that are not valid shell variable names. |
1178 |
case $ac_envvar in #( |
1179 |
'' | [0-9]* | *[!_$as_cr_alnum]* ) |
1180 |
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
1181 |
esac |
1182 |
eval $ac_envvar=\$ac_optarg |
1183 |
export $ac_envvar ;; |
1184 |
|
1185 |
*) |
1186 |
# FIXME: should be removed in autoconf 3.0. |
1187 |
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1188 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1189 |
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1190 |
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
1191 |
;; |
1192 |
|
1193 |
esac |
1194 |
done |
1195 |
|
1196 |
if test -n "$ac_prev"; then |
1197 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1198 |
as_fn_error $? "missing argument to $ac_option" |
1199 |
fi |
1200 |
|
1201 |
if test -n "$ac_unrecognized_opts"; then |
1202 |
case $enable_option_checking in |
1203 |
no) ;; |
1204 |
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
1205 |
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1206 |
esac |
1207 |
fi |
1208 |
|
1209 |
# Check all directory arguments for consistency. |
1210 |
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1211 |
datadir sysconfdir sharedstatedir localstatedir includedir \ |
1212 |
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1213 |
libdir localedir mandir |
1214 |
do |
1215 |
eval ac_val=\$$ac_var |
1216 |
# Remove trailing slashes. |
1217 |
case $ac_val in |
1218 |
*/ ) |
1219 |
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
1220 |
eval $ac_var=\$ac_val;; |
1221 |
esac |
1222 |
# Be sure to have absolute directory names. |
1223 |
case $ac_val in |
1224 |
[\\/$]* | ?:[\\/]* ) continue;; |
1225 |
NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
1226 |
esac |
1227 |
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
1228 |
done |
1229 |
|
1230 |
# There might be people who depend on the old broken behavior: `$host' |
1231 |
# used to hold the argument of --host etc. |
1232 |
# FIXME: To remove some day. |
1233 |
build=$build_alias |
1234 |
host=$host_alias |
1235 |
target=$target_alias |
1236 |
|
1237 |
# FIXME: To remove some day. |
1238 |
if test "x$host_alias" != x; then |
1239 |
if test "x$build_alias" = x; then |
1240 |
cross_compiling=maybe |
1241 |
elif test "x$build_alias" != "x$host_alias"; then |
1242 |
cross_compiling=yes |
1243 |
fi |
1244 |
fi |
1245 |
|
1246 |
ac_tool_prefix= |
1247 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
1248 |
|
1249 |
test "$silent" = yes && exec 6>/dev/null |
1250 |
|
1251 |
|
1252 |
ac_pwd=`pwd` && test -n "$ac_pwd" && |
1253 |
ac_ls_di=`ls -di .` && |
1254 |
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1255 |
as_fn_error $? "working directory cannot be determined" |
1256 |
test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1257 |
as_fn_error $? "pwd does not report name of working directory" |
1258 |
|
1259 |
|
1260 |
# Find the source files, if location was not specified. |
1261 |
if test -z "$srcdir"; then |
1262 |
ac_srcdir_defaulted=yes |
1263 |
# Try the directory containing this script, then the parent directory. |
1264 |
ac_confdir=`$as_dirname -- "$as_myself" || |
1265 |
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1266 |
X"$as_myself" : 'X\(//\)[^/]' \| \ |
1267 |
X"$as_myself" : 'X\(//\)$' \| \ |
1268 |
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
1269 |
$as_echo X"$as_myself" | |
1270 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1271 |
s//\1/ |
1272 |
q |
1273 |
} |
1274 |
/^X\(\/\/\)[^/].*/{ |
1275 |
s//\1/ |
1276 |
q |
1277 |
} |
1278 |
/^X\(\/\/\)$/{ |
1279 |
s//\1/ |
1280 |
q |
1281 |
} |
1282 |
/^X\(\/\).*/{ |
1283 |
s//\1/ |
1284 |
q |
1285 |
} |
1286 |
s/.*/./; q'` |
1287 |
srcdir=$ac_confdir |
1288 |
if test ! -r "$srcdir/$ac_unique_file"; then |
1289 |
srcdir=.. |
1290 |
fi |
1291 |
else |
1292 |
ac_srcdir_defaulted=no |
1293 |
fi |
1294 |
if test ! -r "$srcdir/$ac_unique_file"; then |
1295 |
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1296 |
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
1297 |
fi |
1298 |
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1299 |
ac_abs_confdir=`( |
1300 |
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
1301 |
pwd)` |
1302 |
# When building in place, set srcdir=. |
1303 |
if test "$ac_abs_confdir" = "$ac_pwd"; then |
1304 |
srcdir=. |
1305 |
fi |
1306 |
# Remove unnecessary trailing slashes from srcdir. |
1307 |
# Double slashes in file names in object file debugging info |
1308 |
# mess up M-x gdb in Emacs. |
1309 |
case $srcdir in |
1310 |
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
1311 |
esac |
1312 |
for ac_var in $ac_precious_vars; do |
1313 |
eval ac_env_${ac_var}_set=\${${ac_var}+set} |
1314 |
eval ac_env_${ac_var}_value=\$${ac_var} |
1315 |
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
1316 |
eval ac_cv_env_${ac_var}_value=\$${ac_var} |
1317 |
done |
1318 |
|
1319 |
# |
1320 |
# Report the --help message. |
1321 |
# |
1322 |
if test "$ac_init_help" = "long"; then |
1323 |
# Omit some internal or obsolete options to make the list less imposing. |
1324 |
# This message is too long to be a string in the A/UX 3.1 sh. |
1325 |
cat <<_ACEOF |
1326 |
\`configure' configures hopm 1.0.0beta1 to adapt to many kinds of systems. |
1327 |
|
1328 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
1329 |
|
1330 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1331 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
1332 |
|
1333 |
Defaults for the options are specified in brackets. |
1334 |
|
1335 |
Configuration: |
1336 |
-h, --help display this help and exit |
1337 |
--help=short display options specific to this package |
1338 |
--help=recursive display the short help of all the included packages |
1339 |
-V, --version display version information and exit |
1340 |
-q, --quiet, --silent do not print \`checking ...' messages |
1341 |
--cache-file=FILE cache test results in FILE [disabled] |
1342 |
-C, --config-cache alias for \`--cache-file=config.cache' |
1343 |
-n, --no-create do not create output files |
1344 |
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1345 |
|
1346 |
Installation directories: |
1347 |
--prefix=PREFIX install architecture-independent files in PREFIX |
1348 |
[$ac_default_prefix] |
1349 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1350 |
[PREFIX] |
1351 |
|
1352 |
By default, \`make install' will install all the files in |
1353 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1354 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
1355 |
for instance \`--prefix=\$HOME'. |
1356 |
|
1357 |
For better control, use the options below. |
1358 |
|
1359 |
Fine tuning of the installation directories: |
1360 |
--bindir=DIR user executables [EPREFIX/bin] |
1361 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
1362 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
1363 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1364 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1365 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1366 |
--libdir=DIR object code libraries [EPREFIX/lib] |
1367 |
--includedir=DIR C header files [PREFIX/include] |
1368 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
1369 |
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1370 |
--datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1371 |
--infodir=DIR info documentation [DATAROOTDIR/info] |
1372 |
--localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1373 |
--mandir=DIR man documentation [DATAROOTDIR/man] |
1374 |
--docdir=DIR documentation root [DATAROOTDIR/doc/hopm] |
1375 |
--htmldir=DIR html documentation [DOCDIR] |
1376 |
--dvidir=DIR dvi documentation [DOCDIR] |
1377 |
--pdfdir=DIR pdf documentation [DOCDIR] |
1378 |
--psdir=DIR ps documentation [DOCDIR] |
1379 |
_ACEOF |
1380 |
|
1381 |
cat <<\_ACEOF |
1382 |
|
1383 |
Program names: |
1384 |
--program-prefix=PREFIX prepend PREFIX to installed program names |
1385 |
--program-suffix=SUFFIX append SUFFIX to installed program names |
1386 |
--program-transform-name=PROGRAM run sed PROGRAM on installed program names |
1387 |
|
1388 |
System types: |
1389 |
--build=BUILD configure for building on BUILD [guessed] |
1390 |
--host=HOST cross-compile to build programs to run on HOST [BUILD] |
1391 |
_ACEOF |
1392 |
fi |
1393 |
|
1394 |
if test -n "$ac_init_help"; then |
1395 |
case $ac_init_help in |
1396 |
short | recursive ) echo "Configuration of hopm 1.0.0beta1:";; |
1397 |
esac |
1398 |
cat <<\_ACEOF |
1399 |
|
1400 |
Optional Features: |
1401 |
--disable-option-checking ignore unrecognized --enable/--with options |
1402 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1403 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1404 |
--enable-silent-rules less verbose build output (undo: "make V=1") |
1405 |
--disable-silent-rules verbose build output (undo: "make V=0") |
1406 |
--enable-maintainer-mode |
1407 |
enable make rules and dependencies not useful (and |
1408 |
sometimes confusing) to the casual installer |
1409 |
--enable-dependency-tracking |
1410 |
do not reject slow dependency extractors |
1411 |
--disable-dependency-tracking |
1412 |
speeds up one-time build |
1413 |
--enable-shared[=PKGS] build shared libraries [default=yes] |
1414 |
--enable-static[=PKGS] build static libraries [default=yes] |
1415 |
--enable-fast-install[=PKGS] |
1416 |
optimize for fast installation [default=yes] |
1417 |
--disable-libtool-lock avoid locking (might break parallel builds) |
1418 |
|
1419 |
Optional Packages: |
1420 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1421 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1422 |
--with-extra-fascism Add extra gcc3-specific warning flags |
1423 |
--with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
1424 |
both] |
1425 |
--with-aix-soname=aix|svr4|both |
1426 |
shared library versioning (aka "SONAME") variant to |
1427 |
provide on AIX, [default=aix]. |
1428 |
--with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1429 |
--with-sysroot[=DIR] Search for dependent libraries within DIR (or the |
1430 |
compiler's sysroot if not specified). |
1431 |
|
1432 |
Some influential environment variables: |
1433 |
CC C compiler command |
1434 |
CFLAGS C compiler flags |
1435 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1436 |
nonstandard directory <lib dir> |
1437 |
LIBS libraries to pass to the linker, e.g. -l<library> |
1438 |
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
1439 |
you have headers in a nonstandard directory <include dir> |
1440 |
CPP C preprocessor |
1441 |
YACC The `Yet Another Compiler Compiler' implementation to use. |
1442 |
Defaults to the first program found out of: `bison -y', `byacc', |
1443 |
`yacc'. |
1444 |
YFLAGS The list of arguments that will be passed by default to $YACC. |
1445 |
This script will default YFLAGS to the empty string to avoid a |
1446 |
default value of `-d' given by some make applications. |
1447 |
|
1448 |
Use these variables to override the choices made by `configure' or to help |
1449 |
it to find libraries and programs with nonstandard names/locations. |
1450 |
|
1451 |
Report bugs to the package provider. |
1452 |
_ACEOF |
1453 |
ac_status=$? |
1454 |
fi |
1455 |
|
1456 |
if test "$ac_init_help" = "recursive"; then |
1457 |
# If there are subdirs, report their specific --help. |
1458 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1459 |
test -d "$ac_dir" || |
1460 |
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
1461 |
continue |
1462 |
ac_builddir=. |
1463 |
|
1464 |
case "$ac_dir" in |
1465 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1466 |
*) |
1467 |
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
1468 |
# A ".." for each directory in $ac_dir_suffix. |
1469 |
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
1470 |
case $ac_top_builddir_sub in |
1471 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1472 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1473 |
esac ;; |
1474 |
esac |
1475 |
ac_abs_top_builddir=$ac_pwd |
1476 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
1477 |
# for backward compatibility: |
1478 |
ac_top_builddir=$ac_top_build_prefix |
1479 |
|
1480 |
case $srcdir in |
1481 |
.) # We are building in place. |
1482 |
ac_srcdir=. |
1483 |
ac_top_srcdir=$ac_top_builddir_sub |
1484 |
ac_abs_top_srcdir=$ac_pwd ;; |
1485 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
1486 |
ac_srcdir=$srcdir$ac_dir_suffix; |
1487 |
ac_top_srcdir=$srcdir |
1488 |
ac_abs_top_srcdir=$srcdir ;; |
1489 |
*) # Relative name. |
1490 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
1491 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
1492 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
1493 |
esac |
1494 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1495 |
|
1496 |
cd "$ac_dir" || { ac_status=$?; continue; } |
1497 |
# Check for guested configure. |
1498 |
if test -f "$ac_srcdir/configure.gnu"; then |
1499 |
echo && |
1500 |
$SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1501 |
elif test -f "$ac_srcdir/configure"; then |
1502 |
echo && |
1503 |
$SHELL "$ac_srcdir/configure" --help=recursive |
1504 |
else |
1505 |
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1506 |
fi || ac_status=$? |
1507 |
cd "$ac_pwd" || { ac_status=$?; break; } |
1508 |
done |
1509 |
fi |
1510 |
|
1511 |
test -n "$ac_init_help" && exit $ac_status |
1512 |
if $ac_init_version; then |
1513 |
cat <<\_ACEOF |
1514 |
hopm configure 1.0.0beta1 |
1515 |
generated by GNU Autoconf 2.69 |
1516 |
|
1517 |
Copyright (C) 2012 Free Software Foundation, Inc. |
1518 |
This configure script is free software; the Free Software Foundation |
1519 |
gives unlimited permission to copy, distribute and modify it. |
1520 |
_ACEOF |
1521 |
exit |
1522 |
fi |
1523 |
|
1524 |
## ------------------------ ## |
1525 |
## Autoconf initialization. ## |
1526 |
## ------------------------ ## |
1527 |
|
1528 |
# ac_fn_c_try_compile LINENO |
1529 |
# -------------------------- |
1530 |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
1531 |
ac_fn_c_try_compile () |
1532 |
{ |
1533 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1534 |
rm -f conftest.$ac_objext |
1535 |
if { { ac_try="$ac_compile" |
1536 |
case "(($ac_try" in |
1537 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1538 |
*) ac_try_echo=$ac_try;; |
1539 |
esac |
1540 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1541 |
$as_echo "$ac_try_echo"; } >&5 |
1542 |
(eval "$ac_compile") 2>conftest.err |
1543 |
ac_status=$? |
1544 |
if test -s conftest.err; then |
1545 |
grep -v '^ *+' conftest.err >conftest.er1 |
1546 |
cat conftest.er1 >&5 |
1547 |
mv -f conftest.er1 conftest.err |
1548 |
fi |
1549 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1550 |
test $ac_status = 0; } && { |
1551 |
test -z "$ac_c_werror_flag" || |
1552 |
test ! -s conftest.err |
1553 |
} && test -s conftest.$ac_objext; then : |
1554 |
ac_retval=0 |
1555 |
else |
1556 |
$as_echo "$as_me: failed program was:" >&5 |
1557 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1558 |
|
1559 |
ac_retval=1 |
1560 |
fi |
1561 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1562 |
as_fn_set_status $ac_retval |
1563 |
|
1564 |
} # ac_fn_c_try_compile |
1565 |
|
1566 |
# ac_fn_c_try_link LINENO |
1567 |
# ----------------------- |
1568 |
# Try to link conftest.$ac_ext, and return whether this succeeded. |
1569 |
ac_fn_c_try_link () |
1570 |
{ |
1571 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1572 |
rm -f conftest.$ac_objext conftest$ac_exeext |
1573 |
if { { ac_try="$ac_link" |
1574 |
case "(($ac_try" in |
1575 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1576 |
*) ac_try_echo=$ac_try;; |
1577 |
esac |
1578 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1579 |
$as_echo "$ac_try_echo"; } >&5 |
1580 |
(eval "$ac_link") 2>conftest.err |
1581 |
ac_status=$? |
1582 |
if test -s conftest.err; then |
1583 |
grep -v '^ *+' conftest.err >conftest.er1 |
1584 |
cat conftest.er1 >&5 |
1585 |
mv -f conftest.er1 conftest.err |
1586 |
fi |
1587 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1588 |
test $ac_status = 0; } && { |
1589 |
test -z "$ac_c_werror_flag" || |
1590 |
test ! -s conftest.err |
1591 |
} && test -s conftest$ac_exeext && { |
1592 |
test "$cross_compiling" = yes || |
1593 |
test -x conftest$ac_exeext |
1594 |
}; then : |
1595 |
ac_retval=0 |
1596 |
else |
1597 |
$as_echo "$as_me: failed program was:" >&5 |
1598 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1599 |
|
1600 |
ac_retval=1 |
1601 |
fi |
1602 |
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1603 |
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
1604 |
# interfere with the next link command; also delete a directory that is |
1605 |
# left behind by Apple's compiler. We do this before executing the actions. |
1606 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1607 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1608 |
as_fn_set_status $ac_retval |
1609 |
|
1610 |
} # ac_fn_c_try_link |
1611 |
|
1612 |
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1613 |
# ------------------------------------------------------- |
1614 |
# Tests whether HEADER exists and can be compiled using the include files in |
1615 |
# INCLUDES, setting the cache variable VAR accordingly. |
1616 |
ac_fn_c_check_header_compile () |
1617 |
{ |
1618 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1619 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1620 |
$as_echo_n "checking for $2... " >&6; } |
1621 |
if eval \${$3+:} false; then : |
1622 |
$as_echo_n "(cached) " >&6 |
1623 |
else |
1624 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1625 |
/* end confdefs.h. */ |
1626 |
$4 |
1627 |
#include <$2> |
1628 |
_ACEOF |
1629 |
if ac_fn_c_try_compile "$LINENO"; then : |
1630 |
eval "$3=yes" |
1631 |
else |
1632 |
eval "$3=no" |
1633 |
fi |
1634 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1635 |
fi |
1636 |
eval ac_res=\$$3 |
1637 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1638 |
$as_echo "$ac_res" >&6; } |
1639 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1640 |
|
1641 |
} # ac_fn_c_check_header_compile |
1642 |
|
1643 |
# ac_fn_c_try_cpp LINENO |
1644 |
# ---------------------- |
1645 |
# Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
1646 |
ac_fn_c_try_cpp () |
1647 |
{ |
1648 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1649 |
if { { ac_try="$ac_cpp conftest.$ac_ext" |
1650 |
case "(($ac_try" in |
1651 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1652 |
*) ac_try_echo=$ac_try;; |
1653 |
esac |
1654 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1655 |
$as_echo "$ac_try_echo"; } >&5 |
1656 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
1657 |
ac_status=$? |
1658 |
if test -s conftest.err; then |
1659 |
grep -v '^ *+' conftest.err >conftest.er1 |
1660 |
cat conftest.er1 >&5 |
1661 |
mv -f conftest.er1 conftest.err |
1662 |
fi |
1663 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1664 |
test $ac_status = 0; } > conftest.i && { |
1665 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1666 |
test ! -s conftest.err |
1667 |
}; then : |
1668 |
ac_retval=0 |
1669 |
else |
1670 |
$as_echo "$as_me: failed program was:" >&5 |
1671 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1672 |
|
1673 |
ac_retval=1 |
1674 |
fi |
1675 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1676 |
as_fn_set_status $ac_retval |
1677 |
|
1678 |
} # ac_fn_c_try_cpp |
1679 |
|
1680 |
# ac_fn_c_try_run LINENO |
1681 |
# ---------------------- |
1682 |
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
1683 |
# that executables *can* be run. |
1684 |
ac_fn_c_try_run () |
1685 |
{ |
1686 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1687 |
if { { ac_try="$ac_link" |
1688 |
case "(($ac_try" in |
1689 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1690 |
*) ac_try_echo=$ac_try;; |
1691 |
esac |
1692 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1693 |
$as_echo "$ac_try_echo"; } >&5 |
1694 |
(eval "$ac_link") 2>&5 |
1695 |
ac_status=$? |
1696 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1697 |
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
1698 |
{ { case "(($ac_try" in |
1699 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1700 |
*) ac_try_echo=$ac_try;; |
1701 |
esac |
1702 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1703 |
$as_echo "$ac_try_echo"; } >&5 |
1704 |
(eval "$ac_try") 2>&5 |
1705 |
ac_status=$? |
1706 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1707 |
test $ac_status = 0; }; }; then : |
1708 |
ac_retval=0 |
1709 |
else |
1710 |
$as_echo "$as_me: program exited with status $ac_status" >&5 |
1711 |
$as_echo "$as_me: failed program was:" >&5 |
1712 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1713 |
|
1714 |
ac_retval=$ac_status |
1715 |
fi |
1716 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1717 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1718 |
as_fn_set_status $ac_retval |
1719 |
|
1720 |
} # ac_fn_c_try_run |
1721 |
|
1722 |
# ac_fn_c_check_func LINENO FUNC VAR |
1723 |
# ---------------------------------- |
1724 |
# Tests whether FUNC exists, setting the cache variable VAR accordingly |
1725 |
ac_fn_c_check_func () |
1726 |
{ |
1727 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1728 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1729 |
$as_echo_n "checking for $2... " >&6; } |
1730 |
if eval \${$3+:} false; then : |
1731 |
$as_echo_n "(cached) " >&6 |
1732 |
else |
1733 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1734 |
/* end confdefs.h. */ |
1735 |
/* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
1736 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
1737 |
#define $2 innocuous_$2 |
1738 |
|
1739 |
/* System header to define __stub macros and hopefully few prototypes, |
1740 |
which can conflict with char $2 (); below. |
1741 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
1742 |
<limits.h> exists even on freestanding compilers. */ |
1743 |
|
1744 |
#ifdef __STDC__ |
1745 |
# include <limits.h> |
1746 |
#else |
1747 |
# include <assert.h> |
1748 |
#endif |
1749 |
|
1750 |
#undef $2 |
1751 |
|
1752 |
/* Override any GCC internal prototype to avoid an error. |
1753 |
Use char because int might match the return type of a GCC |
1754 |
builtin and then its argument prototype would still apply. */ |
1755 |
#ifdef __cplusplus |
1756 |
extern "C" |
1757 |
#endif |
1758 |
char $2 (); |
1759 |
/* The GNU C library defines this for functions which it implements |
1760 |
to always fail with ENOSYS. Some functions are actually named |
1761 |
something starting with __ and the normal name is an alias. */ |
1762 |
#if defined __stub_$2 || defined __stub___$2 |
1763 |
choke me |
1764 |
#endif |
1765 |
|
1766 |
int |
1767 |
main () |
1768 |
{ |
1769 |
return $2 (); |
1770 |
; |
1771 |
return 0; |
1772 |
} |
1773 |
_ACEOF |
1774 |
if ac_fn_c_try_link "$LINENO"; then : |
1775 |
eval "$3=yes" |
1776 |
else |
1777 |
eval "$3=no" |
1778 |
fi |
1779 |
rm -f core conftest.err conftest.$ac_objext \ |
1780 |
conftest$ac_exeext conftest.$ac_ext |
1781 |
fi |
1782 |
eval ac_res=\$$3 |
1783 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1784 |
$as_echo "$ac_res" >&6; } |
1785 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1786 |
|
1787 |
} # ac_fn_c_check_func |
1788 |
|
1789 |
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1790 |
# ------------------------------------------------------- |
1791 |
# Tests whether HEADER exists, giving a warning if it cannot be compiled using |
1792 |
# the include files in INCLUDES and setting the cache variable VAR |
1793 |
# accordingly. |
1794 |
ac_fn_c_check_header_mongrel () |
1795 |
{ |
1796 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1797 |
if eval \${$3+:} false; then : |
1798 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1799 |
$as_echo_n "checking for $2... " >&6; } |
1800 |
if eval \${$3+:} false; then : |
1801 |
$as_echo_n "(cached) " >&6 |
1802 |
fi |
1803 |
eval ac_res=\$$3 |
1804 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1805 |
$as_echo "$ac_res" >&6; } |
1806 |
else |
1807 |
# Is the header compilable? |
1808 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
1809 |
$as_echo_n "checking $2 usability... " >&6; } |
1810 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1811 |
/* end confdefs.h. */ |
1812 |
$4 |
1813 |
#include <$2> |
1814 |
_ACEOF |
1815 |
if ac_fn_c_try_compile "$LINENO"; then : |
1816 |
ac_header_compiler=yes |
1817 |
else |
1818 |
ac_header_compiler=no |
1819 |
fi |
1820 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1821 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
1822 |
$as_echo "$ac_header_compiler" >&6; } |
1823 |
|
1824 |
# Is the header present? |
1825 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
1826 |
$as_echo_n "checking $2 presence... " >&6; } |
1827 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1828 |
/* end confdefs.h. */ |
1829 |
#include <$2> |
1830 |
_ACEOF |
1831 |
if ac_fn_c_try_cpp "$LINENO"; then : |
1832 |
ac_header_preproc=yes |
1833 |
else |
1834 |
ac_header_preproc=no |
1835 |
fi |
1836 |
rm -f conftest.err conftest.i conftest.$ac_ext |
1837 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1838 |
$as_echo "$ac_header_preproc" >&6; } |
1839 |
|
1840 |
# So? What about this header? |
1841 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
1842 |
yes:no: ) |
1843 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
1844 |
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
1845 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
1846 |
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
1847 |
;; |
1848 |
no:yes:* ) |
1849 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
1850 |
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
1851 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
1852 |
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
1853 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
1854 |
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
1855 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
1856 |
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
1857 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
1858 |
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
1859 |
;; |
1860 |
esac |
1861 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1862 |
$as_echo_n "checking for $2... " >&6; } |
1863 |
if eval \${$3+:} false; then : |
1864 |
$as_echo_n "(cached) " >&6 |
1865 |
else |
1866 |
eval "$3=\$ac_header_compiler" |
1867 |
fi |
1868 |
eval ac_res=\$$3 |
1869 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1870 |
$as_echo "$ac_res" >&6; } |
1871 |
fi |
1872 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1873 |
|
1874 |
} # ac_fn_c_check_header_mongrel |
1875 |
|
1876 |
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
1877 |
# ------------------------------------------- |
1878 |
# Tests whether TYPE exists after having included INCLUDES, setting cache |
1879 |
# variable VAR accordingly. |
1880 |
ac_fn_c_check_type () |
1881 |
{ |
1882 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1883 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1884 |
$as_echo_n "checking for $2... " >&6; } |
1885 |
if eval \${$3+:} false; then : |
1886 |
$as_echo_n "(cached) " >&6 |
1887 |
else |
1888 |
eval "$3=no" |
1889 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1890 |
/* end confdefs.h. */ |
1891 |
$4 |
1892 |
int |
1893 |
main () |
1894 |
{ |
1895 |
if (sizeof ($2)) |
1896 |
return 0; |
1897 |
; |
1898 |
return 0; |
1899 |
} |
1900 |
_ACEOF |
1901 |
if ac_fn_c_try_compile "$LINENO"; then : |
1902 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1903 |
/* end confdefs.h. */ |
1904 |
$4 |
1905 |
int |
1906 |
main () |
1907 |
{ |
1908 |
if (sizeof (($2))) |
1909 |
return 0; |
1910 |
; |
1911 |
return 0; |
1912 |
} |
1913 |
_ACEOF |
1914 |
if ac_fn_c_try_compile "$LINENO"; then : |
1915 |
|
1916 |
else |
1917 |
eval "$3=yes" |
1918 |
fi |
1919 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1920 |
fi |
1921 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1922 |
fi |
1923 |
eval ac_res=\$$3 |
1924 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1925 |
$as_echo "$ac_res" >&6; } |
1926 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1927 |
|
1928 |
} # ac_fn_c_check_type |
1929 |
|
1930 |
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
1931 |
# -------------------------------------------- |
1932 |
# Tries to find the compile-time value of EXPR in a program that includes |
1933 |
# INCLUDES, setting VAR accordingly. Returns whether the value could be |
1934 |
# computed |
1935 |
ac_fn_c_compute_int () |
1936 |
{ |
1937 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1938 |
if test "$cross_compiling" = yes; then |
1939 |
# Depending upon the size, compute the lo and hi bounds. |
1940 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1941 |
/* end confdefs.h. */ |
1942 |
$4 |
1943 |
int |
1944 |
main () |
1945 |
{ |
1946 |
static int test_array [1 - 2 * !(($2) >= 0)]; |
1947 |
test_array [0] = 0; |
1948 |
return test_array [0]; |
1949 |
|
1950 |
; |
1951 |
return 0; |
1952 |
} |
1953 |
_ACEOF |
1954 |
if ac_fn_c_try_compile "$LINENO"; then : |
1955 |
ac_lo=0 ac_mid=0 |
1956 |
while :; do |
1957 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1958 |
/* end confdefs.h. */ |
1959 |
$4 |
1960 |
int |
1961 |
main () |
1962 |
{ |
1963 |
static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
1964 |
test_array [0] = 0; |
1965 |
return test_array [0]; |
1966 |
|
1967 |
; |
1968 |
return 0; |
1969 |
} |
1970 |
_ACEOF |
1971 |
if ac_fn_c_try_compile "$LINENO"; then : |
1972 |
ac_hi=$ac_mid; break |
1973 |
else |
1974 |
as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
1975 |
if test $ac_lo -le $ac_mid; then |
1976 |
ac_lo= ac_hi= |
1977 |
break |
1978 |
fi |
1979 |
as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
1980 |
fi |
1981 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1982 |
done |
1983 |
else |
1984 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1985 |
/* end confdefs.h. */ |
1986 |
$4 |
1987 |
int |
1988 |
main () |
1989 |
{ |
1990 |
static int test_array [1 - 2 * !(($2) < 0)]; |
1991 |
test_array [0] = 0; |
1992 |
return test_array [0]; |
1993 |
|
1994 |
; |
1995 |
return 0; |
1996 |
} |
1997 |
_ACEOF |
1998 |
if ac_fn_c_try_compile "$LINENO"; then : |
1999 |
ac_hi=-1 ac_mid=-1 |
2000 |
while :; do |
2001 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2002 |
/* end confdefs.h. */ |
2003 |
$4 |
2004 |
int |
2005 |
main () |
2006 |
{ |
2007 |
static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
2008 |
test_array [0] = 0; |
2009 |
return test_array [0]; |
2010 |
|
2011 |
; |
2012 |
return 0; |
2013 |
} |
2014 |
_ACEOF |
2015 |
if ac_fn_c_try_compile "$LINENO"; then : |
2016 |
ac_lo=$ac_mid; break |
2017 |
else |
2018 |
as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
2019 |
if test $ac_mid -le $ac_hi; then |
2020 |
ac_lo= ac_hi= |
2021 |
break |
2022 |
fi |
2023 |
as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
2024 |
fi |
2025 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2026 |
done |
2027 |
else |
2028 |
ac_lo= ac_hi= |
2029 |
fi |
2030 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2031 |
fi |
2032 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2033 |
# Binary search between lo and hi bounds. |
2034 |
while test "x$ac_lo" != "x$ac_hi"; do |
2035 |
as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
2036 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2037 |
/* end confdefs.h. */ |
2038 |
$4 |
2039 |
int |
2040 |
main () |
2041 |
{ |
2042 |
static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
2043 |
test_array [0] = 0; |
2044 |
return test_array [0]; |
2045 |
|
2046 |
; |
2047 |
return 0; |
2048 |
} |
2049 |
_ACEOF |
2050 |
if ac_fn_c_try_compile "$LINENO"; then : |
2051 |
ac_hi=$ac_mid |
2052 |
else |
2053 |
as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
2054 |
fi |
2055 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2056 |
done |
2057 |
case $ac_lo in #(( |
2058 |
?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
2059 |
'') ac_retval=1 ;; |
2060 |
esac |
2061 |
else |
2062 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2063 |
/* end confdefs.h. */ |
2064 |
$4 |
2065 |
static long int longval () { return $2; } |
2066 |
static unsigned long int ulongval () { return $2; } |
2067 |
#include <stdio.h> |
2068 |
#include <stdlib.h> |
2069 |
int |
2070 |
main () |
2071 |
{ |
2072 |
|
2073 |
FILE *f = fopen ("conftest.val", "w"); |
2074 |
if (! f) |
2075 |
return 1; |
2076 |
if (($2) < 0) |
2077 |
{ |
2078 |
long int i = longval (); |
2079 |
if (i != ($2)) |
2080 |
return 1; |
2081 |
fprintf (f, "%ld", i); |
2082 |
} |
2083 |
else |
2084 |
{ |
2085 |
unsigned long int i = ulongval (); |
2086 |
if (i != ($2)) |
2087 |
return 1; |
2088 |
fprintf (f, "%lu", i); |
2089 |
} |
2090 |
/* Do not output a trailing newline, as this causes \r\n confusion |
2091 |
on some platforms. */ |
2092 |
return ferror (f) || fclose (f) != 0; |
2093 |
|
2094 |
; |
2095 |
return 0; |
2096 |
} |
2097 |
_ACEOF |
2098 |
if ac_fn_c_try_run "$LINENO"; then : |
2099 |
echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
2100 |
else |
2101 |
ac_retval=1 |
2102 |
fi |
2103 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
2104 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
2105 |
rm -f conftest.val |
2106 |
|
2107 |
fi |
2108 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2109 |
as_fn_set_status $ac_retval |
2110 |
|
2111 |
} # ac_fn_c_compute_int |
2112 |
cat >config.log <<_ACEOF |
2113 |
This file contains any messages produced by compilers while |
2114 |
running configure, to aid debugging if configure makes a mistake. |
2115 |
|
2116 |
It was created by hopm $as_me 1.0.0beta1, which was |
2117 |
generated by GNU Autoconf 2.69. Invocation command line was |
2118 |
|
2119 |
$ $0 $@ |
2120 |
|
2121 |
_ACEOF |
2122 |
exec 5>>config.log |
2123 |
{ |
2124 |
cat <<_ASUNAME |
2125 |
## --------- ## |
2126 |
## Platform. ## |
2127 |
## --------- ## |
2128 |
|
2129 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2130 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
2131 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
2132 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
2133 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
2134 |
|
2135 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2136 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
2137 |
|
2138 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2139 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
2140 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
2141 |
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
2142 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2143 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
2144 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
2145 |
|
2146 |
_ASUNAME |
2147 |
|
2148 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2149 |
for as_dir in $PATH |
2150 |
do |
2151 |
IFS=$as_save_IFS |
2152 |
test -z "$as_dir" && as_dir=. |
2153 |
$as_echo "PATH: $as_dir" |
2154 |
done |
2155 |
IFS=$as_save_IFS |
2156 |
|
2157 |
} >&5 |
2158 |
|
2159 |
cat >&5 <<_ACEOF |
2160 |
|
2161 |
|
2162 |
## ----------- ## |
2163 |
## Core tests. ## |
2164 |
## ----------- ## |
2165 |
|
2166 |
_ACEOF |
2167 |
|
2168 |
|
2169 |
# Keep a trace of the command line. |
2170 |
# Strip out --no-create and --no-recursion so they do not pile up. |
2171 |
# Strip out --silent because we don't want to record it for future runs. |
2172 |
# Also quote any args containing shell meta-characters. |
2173 |
# Make two passes to allow for proper duplicate-argument suppression. |
2174 |
ac_configure_args= |
2175 |
ac_configure_args0= |
2176 |
ac_configure_args1= |
2177 |
ac_must_keep_next=false |
2178 |
for ac_pass in 1 2 |
2179 |
do |
2180 |
for ac_arg |
2181 |
do |
2182 |
case $ac_arg in |
2183 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
2184 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
2185 |
| -silent | --silent | --silen | --sile | --sil) |
2186 |
continue ;; |
2187 |
*\'*) |
2188 |
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
2189 |
esac |
2190 |
case $ac_pass in |
2191 |
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
2192 |
2) |
2193 |
as_fn_append ac_configure_args1 " '$ac_arg'" |
2194 |
if test $ac_must_keep_next = true; then |
2195 |
ac_must_keep_next=false # Got value, back to normal. |
2196 |
else |
2197 |
case $ac_arg in |
2198 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
2199 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
2200 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
2201 |
| -with-* | --with-* | -without-* | --without-* | --x) |
2202 |
case "$ac_configure_args0 " in |
2203 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
2204 |
esac |
2205 |
;; |
2206 |
-* ) ac_must_keep_next=true ;; |
2207 |
esac |
2208 |
fi |
2209 |
as_fn_append ac_configure_args " '$ac_arg'" |
2210 |
;; |
2211 |
esac |
2212 |
done |
2213 |
done |
2214 |
{ ac_configure_args0=; unset ac_configure_args0;} |
2215 |
{ ac_configure_args1=; unset ac_configure_args1;} |
2216 |
|
2217 |
# When interrupted or exit'd, cleanup temporary files, and complete |
2218 |
# config.log. We remove comments because anyway the quotes in there |
2219 |
# would cause problems or look ugly. |
2220 |
# WARNING: Use '\'' to represent an apostrophe within the trap. |
2221 |
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
2222 |
trap 'exit_status=$? |
2223 |
# Save into config.log some information that might help in debugging. |
2224 |
{ |
2225 |
echo |
2226 |
|
2227 |
$as_echo "## ---------------- ## |
2228 |
## Cache variables. ## |
2229 |
## ---------------- ##" |
2230 |
echo |
2231 |
# The following way of writing the cache mishandles newlines in values, |
2232 |
( |
2233 |
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
2234 |
eval ac_val=\$$ac_var |
2235 |
case $ac_val in #( |
2236 |
*${as_nl}*) |
2237 |
case $ac_var in #( |
2238 |
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
2239 |
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
2240 |
esac |
2241 |
case $ac_var in #( |
2242 |
_ | IFS | as_nl) ;; #( |
2243 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
2244 |
*) { eval $ac_var=; unset $ac_var;} ;; |
2245 |
esac ;; |
2246 |
esac |
2247 |
done |
2248 |
(set) 2>&1 | |
2249 |
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2250 |
*${as_nl}ac_space=\ *) |
2251 |
sed -n \ |
2252 |
"s/'\''/'\''\\\\'\'''\''/g; |
2253 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
2254 |
;; #( |
2255 |
*) |
2256 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
2257 |
;; |
2258 |
esac | |
2259 |
sort |
2260 |
) |
2261 |
echo |
2262 |
|
2263 |
$as_echo "## ----------------- ## |
2264 |
## Output variables. ## |
2265 |
## ----------------- ##" |
2266 |
echo |
2267 |
for ac_var in $ac_subst_vars |
2268 |
do |
2269 |
eval ac_val=\$$ac_var |
2270 |
case $ac_val in |
2271 |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
2272 |
esac |
2273 |
$as_echo "$ac_var='\''$ac_val'\''" |
2274 |
done | sort |
2275 |
echo |
2276 |
|
2277 |
if test -n "$ac_subst_files"; then |
2278 |
$as_echo "## ------------------- ## |
2279 |
## File substitutions. ## |
2280 |
## ------------------- ##" |
2281 |
echo |
2282 |
for ac_var in $ac_subst_files |
2283 |
do |
2284 |
eval ac_val=\$$ac_var |
2285 |
case $ac_val in |
2286 |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
2287 |
esac |
2288 |
$as_echo "$ac_var='\''$ac_val'\''" |
2289 |
done | sort |
2290 |
echo |
2291 |
fi |
2292 |
|
2293 |
if test -s confdefs.h; then |
2294 |
$as_echo "## ----------- ## |
2295 |
## confdefs.h. ## |
2296 |
## ----------- ##" |
2297 |
echo |
2298 |
cat confdefs.h |
2299 |
echo |
2300 |
fi |
2301 |
test "$ac_signal" != 0 && |
2302 |
$as_echo "$as_me: caught signal $ac_signal" |
2303 |
$as_echo "$as_me: exit $exit_status" |
2304 |
} >&5 |
2305 |
rm -f core *.core core.conftest.* && |
2306 |
rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
2307 |
exit $exit_status |
2308 |
' 0 |
2309 |
for ac_signal in 1 2 13 15; do |
2310 |
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
2311 |
done |
2312 |
ac_signal=0 |
2313 |
|
2314 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
2315 |
rm -f -r conftest* confdefs.h |
2316 |
|
2317 |
$as_echo "/* confdefs.h */" > confdefs.h |
2318 |
|
2319 |
# Predefined preprocessor variables. |
2320 |
|
2321 |
cat >>confdefs.h <<_ACEOF |
2322 |
#define PACKAGE_NAME "$PACKAGE_NAME" |
2323 |
_ACEOF |
2324 |
|
2325 |
cat >>confdefs.h <<_ACEOF |
2326 |
#define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
2327 |
_ACEOF |
2328 |
|
2329 |
cat >>confdefs.h <<_ACEOF |
2330 |
#define PACKAGE_VERSION "$PACKAGE_VERSION" |
2331 |
_ACEOF |
2332 |
|
2333 |
cat >>confdefs.h <<_ACEOF |
2334 |
#define PACKAGE_STRING "$PACKAGE_STRING" |
2335 |
_ACEOF |
2336 |
|
2337 |
cat >>confdefs.h <<_ACEOF |
2338 |
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
2339 |
_ACEOF |
2340 |
|
2341 |
cat >>confdefs.h <<_ACEOF |
2342 |
#define PACKAGE_URL "$PACKAGE_URL" |
2343 |
_ACEOF |
2344 |
|
2345 |
|
2346 |
# Let the site file select an alternate cache file if it wants to. |
2347 |
# Prefer an explicitly selected file to automatically selected ones. |
2348 |
ac_site_file1=NONE |
2349 |
ac_site_file2=NONE |
2350 |
if test -n "$CONFIG_SITE"; then |
2351 |
# We do not want a PATH search for config.site. |
2352 |
case $CONFIG_SITE in #(( |
2353 |
-*) ac_site_file1=./$CONFIG_SITE;; |
2354 |
*/*) ac_site_file1=$CONFIG_SITE;; |
2355 |
*) ac_site_file1=./$CONFIG_SITE;; |
2356 |
esac |
2357 |
elif test "x$prefix" != xNONE; then |
2358 |
ac_site_file1=$prefix/share/config.site |
2359 |
ac_site_file2=$prefix/etc/config.site |
2360 |
else |
2361 |
ac_site_file1=$ac_default_prefix/share/config.site |
2362 |
ac_site_file2=$ac_default_prefix/etc/config.site |
2363 |
fi |
2364 |
for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2365 |
do |
2366 |
test "x$ac_site_file" = xNONE && continue |
2367 |
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
2368 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2369 |
$as_echo "$as_me: loading site script $ac_site_file" >&6;} |
2370 |
sed 's/^/| /' "$ac_site_file" >&5 |
2371 |
. "$ac_site_file" \ |
2372 |
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2373 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2374 |
as_fn_error $? "failed to load site script $ac_site_file |
2375 |
See \`config.log' for more details" "$LINENO" 5; } |
2376 |
fi |
2377 |
done |
2378 |
|
2379 |
if test -r "$cache_file"; then |
2380 |
# Some versions of bash will fail to source /dev/null (special files |
2381 |
# actually), so we avoid doing that. DJGPP emulates it as a regular file. |
2382 |
if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
2383 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2384 |
$as_echo "$as_me: loading cache $cache_file" >&6;} |
2385 |
case $cache_file in |
2386 |
[\\/]* | ?:[\\/]* ) . "$cache_file";; |
2387 |
*) . "./$cache_file";; |
2388 |
esac |
2389 |
fi |
2390 |
else |
2391 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2392 |
$as_echo "$as_me: creating cache $cache_file" >&6;} |
2393 |
>$cache_file |
2394 |
fi |
2395 |
|
2396 |
# Check that the precious variables saved in the cache have kept the same |
2397 |
# value. |
2398 |
ac_cache_corrupted=false |
2399 |
for ac_var in $ac_precious_vars; do |
2400 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2401 |
eval ac_new_set=\$ac_env_${ac_var}_set |
2402 |
eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2403 |
eval ac_new_val=\$ac_env_${ac_var}_value |
2404 |
case $ac_old_set,$ac_new_set in |
2405 |
set,) |
2406 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2407 |
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
2408 |
ac_cache_corrupted=: ;; |
2409 |
,set) |
2410 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2411 |
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
2412 |
ac_cache_corrupted=: ;; |
2413 |
,);; |
2414 |
*) |
2415 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
2416 |
# differences in whitespace do not lead to failure. |
2417 |
ac_old_val_w=`echo x $ac_old_val` |
2418 |
ac_new_val_w=`echo x $ac_new_val` |
2419 |
if test "$ac_old_val_w" != "$ac_new_val_w"; then |
2420 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
2421 |
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2422 |
ac_cache_corrupted=: |
2423 |
else |
2424 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
2425 |
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
2426 |
eval $ac_var=\$ac_old_val |
2427 |
fi |
2428 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
2429 |
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
2430 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
2431 |
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
2432 |
fi;; |
2433 |
esac |
2434 |
# Pass precious variables to config.status. |
2435 |
if test "$ac_new_set" = set; then |
2436 |
case $ac_new_val in |
2437 |
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
2438 |
*) ac_arg=$ac_var=$ac_new_val ;; |
2439 |
esac |
2440 |
case " $ac_configure_args " in |
2441 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
2442 |
*) as_fn_append ac_configure_args " '$ac_arg'" ;; |
2443 |
esac |
2444 |
fi |
2445 |
done |
2446 |
if $ac_cache_corrupted; then |
2447 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2448 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2449 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
2450 |
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
2451 |
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
2452 |
fi |
2453 |
## -------------------- ## |
2454 |
## Main body of script. ## |
2455 |
## -------------------- ## |
2456 |
|
2457 |
ac_ext=c |
2458 |
ac_cpp='$CPP $CPPFLAGS' |
2459 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2460 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2461 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2462 |
|
2463 |
|
2464 |
|
2465 |
ac_config_headers="$ac_config_headers src/setup.h" |
2466 |
|
2467 |
am__api_version='1.14' |
2468 |
|
2469 |
ac_aux_dir= |
2470 |
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2471 |
if test -f "$ac_dir/install-sh"; then |
2472 |
ac_aux_dir=$ac_dir |
2473 |
ac_install_sh="$ac_aux_dir/install-sh -c" |
2474 |
break |
2475 |
elif test -f "$ac_dir/install.sh"; then |
2476 |
ac_aux_dir=$ac_dir |
2477 |
ac_install_sh="$ac_aux_dir/install.sh -c" |
2478 |
break |
2479 |
elif test -f "$ac_dir/shtool"; then |
2480 |
ac_aux_dir=$ac_dir |
2481 |
ac_install_sh="$ac_aux_dir/shtool install -c" |
2482 |
break |
2483 |
fi |
2484 |
done |
2485 |
if test -z "$ac_aux_dir"; then |
2486 |
as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
2487 |
fi |
2488 |
|
2489 |
# These three variables are undocumented and unsupported, |
2490 |
# and are intended to be withdrawn in a future Autoconf release. |
2491 |
# They can cause serious problems if a builder's source tree is in a directory |
2492 |
# whose full name contains unusual characters. |
2493 |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
2494 |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
2495 |
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
2496 |
|
2497 |
|
2498 |
# Find a good install program. We prefer a C program (faster), |
2499 |
# so one script is as good as another. But avoid the broken or |
2500 |
# incompatible versions: |
2501 |
# SysV /etc/install, /usr/sbin/install |
2502 |
# SunOS /usr/etc/install |
2503 |
# IRIX /sbin/install |
2504 |
# AIX /bin/install |
2505 |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
2506 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2507 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
2508 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
2509 |
# OS/2's system install, which has a completely different semantic |
2510 |
# ./install, which can be erroneously created by make from ./install.sh. |
2511 |
# Reject install programs that cannot install multiple files. |
2512 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2513 |
$as_echo_n "checking for a BSD-compatible install... " >&6; } |
2514 |
if test -z "$INSTALL"; then |
2515 |
if ${ac_cv_path_install+:} false; then : |
2516 |
$as_echo_n "(cached) " >&6 |
2517 |
else |
2518 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2519 |
for as_dir in $PATH |
2520 |
do |
2521 |
IFS=$as_save_IFS |
2522 |
test -z "$as_dir" && as_dir=. |
2523 |
# Account for people who put trailing slashes in PATH elements. |
2524 |
case $as_dir/ in #(( |
2525 |
./ | .// | /[cC]/* | \ |
2526 |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
2527 |
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
2528 |
/usr/ucb/* ) ;; |
2529 |
*) |
2530 |
# OSF1 and SCO ODT 3.0 have their own names for install. |
2531 |
# Don't use installbsd from OSF since it installs stuff as root |
2532 |
# by default. |
2533 |
for ac_prog in ginstall scoinst install; do |
2534 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2535 |
if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
2536 |
if test $ac_prog = install && |
2537 |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2538 |
# AIX install. It has an incompatible calling convention. |
2539 |
: |
2540 |
elif test $ac_prog = install && |
2541 |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2542 |
# program-specific install script used by HP pwplus--don't use. |
2543 |
: |
2544 |
else |
2545 |
rm -rf conftest.one conftest.two conftest.dir |
2546 |
echo one > conftest.one |
2547 |
echo two > conftest.two |
2548 |
mkdir conftest.dir |
2549 |
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
2550 |
test -s conftest.one && test -s conftest.two && |
2551 |
test -s conftest.dir/conftest.one && |
2552 |
test -s conftest.dir/conftest.two |
2553 |
then |
2554 |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2555 |
break 3 |
2556 |
fi |
2557 |
fi |
2558 |
fi |
2559 |
done |
2560 |
done |
2561 |
;; |
2562 |
esac |
2563 |
|
2564 |
done |
2565 |
IFS=$as_save_IFS |
2566 |
|
2567 |
rm -rf conftest.one conftest.two conftest.dir |
2568 |
|
2569 |
fi |
2570 |
if test "${ac_cv_path_install+set}" = set; then |
2571 |
INSTALL=$ac_cv_path_install |
2572 |
else |
2573 |
# As a last resort, use the slow shell script. Don't cache a |
2574 |
# value for INSTALL within a source directory, because that will |
2575 |
# break other packages using the cache if that directory is |
2576 |
# removed, or if the value is a relative name. |
2577 |
INSTALL=$ac_install_sh |
2578 |
fi |
2579 |
fi |
2580 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2581 |
$as_echo "$INSTALL" >&6; } |
2582 |
|
2583 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2584 |
# It thinks the first close brace ends the variable substitution. |
2585 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
2586 |
|
2587 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
2588 |
|
2589 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2590 |
|
2591 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2592 |
$as_echo_n "checking whether build environment is sane... " >&6; } |
2593 |
# Reject unsafe characters in $srcdir or the absolute working directory |
2594 |
# name. Accept space and tab only in the latter. |
2595 |
am_lf=' |
2596 |
' |
2597 |
case `pwd` in |
2598 |
*[\\\"\#\$\&\'\`$am_lf]*) |
2599 |
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
2600 |
esac |
2601 |
case $srcdir in |
2602 |
*[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
2603 |
as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
2604 |
esac |
2605 |
|
2606 |
# Do 'set' in a subshell so we don't clobber the current shell's |
2607 |
# arguments. Must try -L first in case configure is actually a |
2608 |
# symlink; some systems play weird games with the mod time of symlinks |
2609 |
# (eg FreeBSD returns the mod time of the symlink's containing |
2610 |
# directory). |
2611 |
if ( |
2612 |
am_has_slept=no |
2613 |
for am_try in 1 2; do |
2614 |
echo "timestamp, slept: $am_has_slept" > conftest.file |
2615 |
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
2616 |
if test "$*" = "X"; then |
2617 |
# -L didn't work. |
2618 |
set X `ls -t "$srcdir/configure" conftest.file` |
2619 |
fi |
2620 |
if test "$*" != "X $srcdir/configure conftest.file" \ |
2621 |
&& test "$*" != "X conftest.file $srcdir/configure"; then |
2622 |
|
2623 |
# If neither matched, then we have a broken ls. This can happen |
2624 |
# if, for instance, CONFIG_SHELL is bash and it inherits a |
2625 |
# broken ls alias from the environment. This has actually |
2626 |
# happened. Such a system could not be considered "sane". |
2627 |
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
2628 |
alias in your environment" "$LINENO" 5 |
2629 |
fi |
2630 |
if test "$2" = conftest.file || test $am_try -eq 2; then |
2631 |
break |
2632 |
fi |
2633 |
# Just in case. |
2634 |
sleep 1 |
2635 |
am_has_slept=yes |
2636 |
done |
2637 |
test "$2" = conftest.file |
2638 |
) |
2639 |
then |
2640 |
# Ok. |
2641 |
: |
2642 |
else |
2643 |
as_fn_error $? "newly created file is older than distributed files! |
2644 |
Check your system clock" "$LINENO" 5 |
2645 |
fi |
2646 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2647 |
$as_echo "yes" >&6; } |
2648 |
# If we didn't sleep, we still need to ensure time stamps of config.status and |
2649 |
# generated files are strictly newer. |
2650 |
am_sleep_pid= |
2651 |
if grep 'slept: no' conftest.file >/dev/null 2>&1; then |
2652 |
( sleep 1 ) & |
2653 |
am_sleep_pid=$! |
2654 |
fi |
2655 |
|
2656 |
rm -f conftest.file |
2657 |
|
2658 |
test "$program_prefix" != NONE && |
2659 |
program_transform_name="s&^&$program_prefix&;$program_transform_name" |
2660 |
# Use a double $ so make ignores it. |
2661 |
test "$program_suffix" != NONE && |
2662 |
program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2663 |
# Double any \ or $. |
2664 |
# By default was `s,x,x', remove it if useless. |
2665 |
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2666 |
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
2667 |
|
2668 |
# expand $ac_aux_dir to an absolute path |
2669 |
am_aux_dir=`cd $ac_aux_dir && pwd` |
2670 |
|
2671 |
if test x"${MISSING+set}" != xset; then |
2672 |
case $am_aux_dir in |
2673 |
*\ * | *\ *) |
2674 |
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
2675 |
*) |
2676 |
MISSING="\${SHELL} $am_aux_dir/missing" ;; |
2677 |
esac |
2678 |
fi |
2679 |
# Use eval to expand $SHELL |
2680 |
if eval "$MISSING --is-lightweight"; then |
2681 |
am_missing_run="$MISSING " |
2682 |
else |
2683 |
am_missing_run= |
2684 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
2685 |
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
2686 |
fi |
2687 |
|
2688 |
if test x"${install_sh}" != xset; then |
2689 |
case $am_aux_dir in |
2690 |
*\ * | *\ *) |
2691 |
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
2692 |
*) |
2693 |
install_sh="\${SHELL} $am_aux_dir/install-sh" |
2694 |
esac |
2695 |
fi |
2696 |
|
2697 |
# Installed binaries are usually stripped using 'strip' when the user |
2698 |
# run "make install-strip". However 'strip' might not be the right |
2699 |
# tool to use in cross-compilation environments, therefore Automake |
2700 |
# will honor the 'STRIP' environment variable to overrule this program. |
2701 |
if test "$cross_compiling" != no; then |
2702 |
if test -n "$ac_tool_prefix"; then |
2703 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
2704 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
2705 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2706 |
$as_echo_n "checking for $ac_word... " >&6; } |
2707 |
if ${ac_cv_prog_STRIP+:} false; then : |
2708 |
$as_echo_n "(cached) " >&6 |
2709 |
else |
2710 |
if test -n "$STRIP"; then |
2711 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
2712 |
else |
2713 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2714 |
for as_dir in $PATH |
2715 |
do |
2716 |
IFS=$as_save_IFS |
2717 |
test -z "$as_dir" && as_dir=. |
2718 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2719 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2720 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2721 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2722 |
break 2 |
2723 |
fi |
2724 |
done |
2725 |
done |
2726 |
IFS=$as_save_IFS |
2727 |
|
2728 |
fi |
2729 |
fi |
2730 |
STRIP=$ac_cv_prog_STRIP |
2731 |
if test -n "$STRIP"; then |
2732 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
2733 |
$as_echo "$STRIP" >&6; } |
2734 |
else |
2735 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2736 |
$as_echo "no" >&6; } |
2737 |
fi |
2738 |
|
2739 |
|
2740 |
fi |
2741 |
if test -z "$ac_cv_prog_STRIP"; then |
2742 |
ac_ct_STRIP=$STRIP |
2743 |
# Extract the first word of "strip", so it can be a program name with args. |
2744 |
set dummy strip; ac_word=$2 |
2745 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2746 |
$as_echo_n "checking for $ac_word... " >&6; } |
2747 |
if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
2748 |
$as_echo_n "(cached) " >&6 |
2749 |
else |
2750 |
if test -n "$ac_ct_STRIP"; then |
2751 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
2752 |
else |
2753 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2754 |
for as_dir in $PATH |
2755 |
do |
2756 |
IFS=$as_save_IFS |
2757 |
test -z "$as_dir" && as_dir=. |
2758 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2759 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2760 |
ac_cv_prog_ac_ct_STRIP="strip" |
2761 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2762 |
break 2 |
2763 |
fi |
2764 |
done |
2765 |
done |
2766 |
IFS=$as_save_IFS |
2767 |
|
2768 |
fi |
2769 |
fi |
2770 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
2771 |
if test -n "$ac_ct_STRIP"; then |
2772 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
2773 |
$as_echo "$ac_ct_STRIP" >&6; } |
2774 |
else |
2775 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2776 |
$as_echo "no" >&6; } |
2777 |
fi |
2778 |
|
2779 |
if test "x$ac_ct_STRIP" = x; then |
2780 |
STRIP=":" |
2781 |
else |
2782 |
case $cross_compiling:$ac_tool_warned in |
2783 |
yes:) |
2784 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
2785 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2786 |
ac_tool_warned=yes ;; |
2787 |
esac |
2788 |
STRIP=$ac_ct_STRIP |
2789 |
fi |
2790 |
else |
2791 |
STRIP="$ac_cv_prog_STRIP" |
2792 |
fi |
2793 |
|
2794 |
fi |
2795 |
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
2796 |
|
2797 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
2798 |
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
2799 |
if test -z "$MKDIR_P"; then |
2800 |
if ${ac_cv_path_mkdir+:} false; then : |
2801 |
$as_echo_n "(cached) " >&6 |
2802 |
else |
2803 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2804 |
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
2805 |
do |
2806 |
IFS=$as_save_IFS |
2807 |
test -z "$as_dir" && as_dir=. |
2808 |
for ac_prog in mkdir gmkdir; do |
2809 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2810 |
as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
2811 |
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2812 |
'mkdir (GNU coreutils) '* | \ |
2813 |
'mkdir (coreutils) '* | \ |
2814 |
'mkdir (fileutils) '4.1*) |
2815 |
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
2816 |
break 3;; |
2817 |
esac |
2818 |
done |
2819 |
done |
2820 |
done |
2821 |
IFS=$as_save_IFS |
2822 |
|
2823 |
fi |
2824 |
|
2825 |
test -d ./--version && rmdir ./--version |
2826 |
if test "${ac_cv_path_mkdir+set}" = set; then |
2827 |
MKDIR_P="$ac_cv_path_mkdir -p" |
2828 |
else |
2829 |
# As a last resort, use the slow shell script. Don't cache a |
2830 |
# value for MKDIR_P within a source directory, because that will |
2831 |
# break other packages using the cache if that directory is |
2832 |
# removed, or if the value is a relative name. |
2833 |
MKDIR_P="$ac_install_sh -d" |
2834 |
fi |
2835 |
fi |
2836 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
2837 |
$as_echo "$MKDIR_P" >&6; } |
2838 |
|
2839 |
for ac_prog in gawk mawk nawk awk |
2840 |
do |
2841 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2842 |
set dummy $ac_prog; ac_word=$2 |
2843 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2844 |
$as_echo_n "checking for $ac_word... " >&6; } |
2845 |
if ${ac_cv_prog_AWK+:} false; then : |
2846 |
$as_echo_n "(cached) " >&6 |
2847 |
else |
2848 |
if test -n "$AWK"; then |
2849 |
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
2850 |
else |
2851 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2852 |
for as_dir in $PATH |
2853 |
do |
2854 |
IFS=$as_save_IFS |
2855 |
test -z "$as_dir" && as_dir=. |
2856 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2857 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2858 |
ac_cv_prog_AWK="$ac_prog" |
2859 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2860 |
break 2 |
2861 |
fi |
2862 |
done |
2863 |
done |
2864 |
IFS=$as_save_IFS |
2865 |
|
2866 |
fi |
2867 |
fi |
2868 |
AWK=$ac_cv_prog_AWK |
2869 |
if test -n "$AWK"; then |
2870 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
2871 |
$as_echo "$AWK" >&6; } |
2872 |
else |
2873 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2874 |
$as_echo "no" >&6; } |
2875 |
fi |
2876 |
|
2877 |
|
2878 |
test -n "$AWK" && break |
2879 |
done |
2880 |
|
2881 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2882 |
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
2883 |
set x ${MAKE-make} |
2884 |
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
2885 |
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
2886 |
$as_echo_n "(cached) " >&6 |
2887 |
else |
2888 |
cat >conftest.make <<\_ACEOF |
2889 |
SHELL = /bin/sh |
2890 |
all: |
2891 |
@echo '@@@%%%=$(MAKE)=@@@%%%' |
2892 |
_ACEOF |
2893 |
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
2894 |
case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2895 |
*@@@%%%=?*=@@@%%%*) |
2896 |
eval ac_cv_prog_make_${ac_make}_set=yes;; |
2897 |
*) |
2898 |
eval ac_cv_prog_make_${ac_make}_set=no;; |
2899 |
esac |
2900 |
rm -f conftest.make |
2901 |
fi |
2902 |
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2903 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2904 |
$as_echo "yes" >&6; } |
2905 |
SET_MAKE= |
2906 |
else |
2907 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2908 |
$as_echo "no" >&6; } |
2909 |
SET_MAKE="MAKE=${MAKE-make}" |
2910 |
fi |
2911 |
|
2912 |
rm -rf .tst 2>/dev/null |
2913 |
mkdir .tst 2>/dev/null |
2914 |
if test -d .tst; then |
2915 |
am__leading_dot=. |
2916 |
else |
2917 |
am__leading_dot=_ |
2918 |
fi |
2919 |
rmdir .tst 2>/dev/null |
2920 |
|
2921 |
# Check whether --enable-silent-rules was given. |
2922 |
if test "${enable_silent_rules+set}" = set; then : |
2923 |
enableval=$enable_silent_rules; |
2924 |
fi |
2925 |
|
2926 |
case $enable_silent_rules in # ((( |
2927 |
yes) AM_DEFAULT_VERBOSITY=0;; |
2928 |
no) AM_DEFAULT_VERBOSITY=1;; |
2929 |
*) AM_DEFAULT_VERBOSITY=1;; |
2930 |
esac |
2931 |
am_make=${MAKE-make} |
2932 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
2933 |
$as_echo_n "checking whether $am_make supports nested variables... " >&6; } |
2934 |
if ${am_cv_make_support_nested_variables+:} false; then : |
2935 |
$as_echo_n "(cached) " >&6 |
2936 |
else |
2937 |
if $as_echo 'TRUE=$(BAR$(V)) |
2938 |
BAR0=false |
2939 |
BAR1=true |
2940 |
V=1 |
2941 |
am__doit: |
2942 |
@$(TRUE) |
2943 |
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
2944 |
am_cv_make_support_nested_variables=yes |
2945 |
else |
2946 |
am_cv_make_support_nested_variables=no |
2947 |
fi |
2948 |
fi |
2949 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
2950 |
$as_echo "$am_cv_make_support_nested_variables" >&6; } |
2951 |
if test $am_cv_make_support_nested_variables = yes; then |
2952 |
AM_V='$(V)' |
2953 |
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
2954 |
else |
2955 |
AM_V=$AM_DEFAULT_VERBOSITY |
2956 |
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
2957 |
fi |
2958 |
AM_BACKSLASH='\' |
2959 |
|
2960 |
if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2961 |
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
2962 |
# is not polluted with repeated "-I." |
2963 |
am__isrc=' -I$(srcdir)' |
2964 |
# test to see if srcdir already configured |
2965 |
if test -f $srcdir/config.status; then |
2966 |
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
2967 |
fi |
2968 |
fi |
2969 |
|
2970 |
# test whether we have cygpath |
2971 |
if test -z "$CYGPATH_W"; then |
2972 |
if (cygpath --version) >/dev/null 2>/dev/null; then |
2973 |
CYGPATH_W='cygpath -w' |
2974 |
else |
2975 |
CYGPATH_W=echo |
2976 |
fi |
2977 |
fi |
2978 |
|
2979 |
|
2980 |
# Define the identity of the package. |
2981 |
PACKAGE='hopm' |
2982 |
VERSION='1.0.0beta1' |
2983 |
|
2984 |
|
2985 |
cat >>confdefs.h <<_ACEOF |
2986 |
#define PACKAGE "$PACKAGE" |
2987 |
_ACEOF |
2988 |
|
2989 |
|
2990 |
cat >>confdefs.h <<_ACEOF |
2991 |
#define VERSION "$VERSION" |
2992 |
_ACEOF |
2993 |
|
2994 |
# Some tools Automake needs. |
2995 |
|
2996 |
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
2997 |
|
2998 |
|
2999 |
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
3000 |
|
3001 |
|
3002 |
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
3003 |
|
3004 |
|
3005 |
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
3006 |
|
3007 |
|
3008 |
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
3009 |
|
3010 |
# For better backward compatibility. To be removed once Automake 1.9.x |
3011 |
# dies out for good. For more background, see: |
3012 |
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
3013 |
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
3014 |
mkdir_p='$(MKDIR_P)' |
3015 |
|
3016 |
# We need awk for the "check" target. The system "awk" is bad on |
3017 |
# some platforms. |
3018 |
# Always define AMTAR for backward compatibility. Yes, it's still used |
3019 |
# in the wild :-( We should find a proper way to deprecate it ... |
3020 |
AMTAR='$${TAR-tar}' |
3021 |
|
3022 |
|
3023 |
# We'll loop over all known methods to create a tar archive until one works. |
3024 |
_am_tools='gnutar pax cpio none' |
3025 |
|
3026 |
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
3027 |
|
3028 |
|
3029 |
|
3030 |
|
3031 |
|
3032 |
|
3033 |
# POSIX will say in a future version that running "rm -f" with no argument |
3034 |
# is OK; and we want to be able to make that assumption in our Makefile |
3035 |
# recipes. So use an aggressive probe to check that the usage we want is |
3036 |
# actually supported "in the wild" to an acceptable degree. |
3037 |
# See automake bug#10828. |
3038 |
# To make any issue more visible, cause the running configure to be aborted |
3039 |
# by default if the 'rm' program in use doesn't match our expectations; the |
3040 |
# user can still override this though. |
3041 |
if rm -f && rm -fr && rm -rf; then : OK; else |
3042 |
cat >&2 <<'END' |
3043 |
Oops! |
3044 |
|
3045 |
Your 'rm' program seems unable to run without file operands specified |
3046 |
on the command line, even when the '-f' option is present. This is contrary |
3047 |
to the behaviour of most rm programs out there, and not conforming with |
3048 |
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> |
3049 |
|
3050 |
Please tell bug-automake@gnu.org about your system, including the value |
3051 |
of your $PATH and any error possibly output before this message. This |
3052 |
can help us improve future automake versions. |
3053 |
|
3054 |
END |
3055 |
if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then |
3056 |
echo 'Configuration will proceed anyway, since you have set the' >&2 |
3057 |
echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 |
3058 |
echo >&2 |
3059 |
else |
3060 |
cat >&2 <<'END' |
3061 |
Aborting the configuration process, to ensure you take notice of the issue. |
3062 |
|
3063 |
You can download and install GNU coreutils to get an 'rm' implementation |
3064 |
that behaves properly: <http://www.gnu.org/software/coreutils/>. |
3065 |
|
3066 |
If you want to complete the configuration process using your problematic |
3067 |
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM |
3068 |
to "yes", and re-run configure. |
3069 |
|
3070 |
END |
3071 |
as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 |
3072 |
fi |
3073 |
fi |
3074 |
|
3075 |
|
3076 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
3077 |
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
3078 |
# Check whether --enable-maintainer-mode was given. |
3079 |
if test "${enable_maintainer_mode+set}" = set; then : |
3080 |
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
3081 |
else |
3082 |
USE_MAINTAINER_MODE=no |
3083 |
fi |
3084 |
|
3085 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
3086 |
$as_echo "$USE_MAINTAINER_MODE" >&6; } |
3087 |
if test $USE_MAINTAINER_MODE = yes; then |
3088 |
MAINTAINER_MODE_TRUE= |
3089 |
MAINTAINER_MODE_FALSE='#' |
3090 |
else |
3091 |
MAINTAINER_MODE_TRUE='#' |
3092 |
MAINTAINER_MODE_FALSE= |
3093 |
fi |
3094 |
|
3095 |
MAINT=$MAINTAINER_MODE_TRUE |
3096 |
|
3097 |
|
3098 |
|
3099 |
|
3100 |
# Check whether --with-extra-fascism was given. |
3101 |
if test "${with_extra_fascism+set}" = set; then : |
3102 |
withval=$with_extra_fascism; CFLAGS="$CFLAGS -g -O0 -W -Wall -Wfloat-equal -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs" |
3103 |
fi |
3104 |
|
3105 |
|
3106 |
|
3107 |
|
3108 |
|
3109 |
DEPDIR="${am__leading_dot}deps" |
3110 |
|
3111 |
ac_config_commands="$ac_config_commands depfiles" |
3112 |
|
3113 |
|
3114 |
am_make=${MAKE-make} |
3115 |
cat > confinc << 'END' |
3116 |
am__doit: |
3117 |
@echo this is the am__doit target |
3118 |
.PHONY: am__doit |
3119 |
END |
3120 |
# If we don't find an include directive, just comment out the code. |
3121 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
3122 |
$as_echo_n "checking for style of include used by $am_make... " >&6; } |
3123 |
am__include="#" |
3124 |
am__quote= |
3125 |
_am_result=none |
3126 |
# First try GNU make style include. |
3127 |
echo "include confinc" > confmf |
3128 |
# Ignore all kinds of additional output from 'make'. |
3129 |
case `$am_make -s -f confmf 2> /dev/null` in #( |
3130 |
*the\ am__doit\ target*) |
3131 |
am__include=include |
3132 |
am__quote= |
3133 |
_am_result=GNU |
3134 |
;; |
3135 |
esac |
3136 |
# Now try BSD make style include. |
3137 |
if test "$am__include" = "#"; then |
3138 |
echo '.include "confinc"' > confmf |
3139 |
case `$am_make -s -f confmf 2> /dev/null` in #( |
3140 |
*the\ am__doit\ target*) |
3141 |
am__include=.include |
3142 |
am__quote="\"" |
3143 |
_am_result=BSD |
3144 |
;; |
3145 |
esac |
3146 |
fi |
3147 |
|
3148 |
|
3149 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
3150 |
$as_echo "$_am_result" >&6; } |
3151 |
rm -f confinc confmf |
3152 |
|
3153 |
# Check whether --enable-dependency-tracking was given. |
3154 |
if test "${enable_dependency_tracking+set}" = set; then : |
3155 |
enableval=$enable_dependency_tracking; |
3156 |
fi |
3157 |
|
3158 |
if test "x$enable_dependency_tracking" != xno; then |
3159 |
am_depcomp="$ac_aux_dir/depcomp" |
3160 |
AMDEPBACKSLASH='\' |
3161 |
am__nodep='_no' |
3162 |
fi |
3163 |
if test "x$enable_dependency_tracking" != xno; then |
3164 |
AMDEP_TRUE= |
3165 |
AMDEP_FALSE='#' |
3166 |
else |
3167 |
AMDEP_TRUE='#' |
3168 |
AMDEP_FALSE= |
3169 |
fi |
3170 |
|
3171 |
|
3172 |
ac_ext=c |
3173 |
ac_cpp='$CPP $CPPFLAGS' |
3174 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3175 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3176 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3177 |
if test -n "$ac_tool_prefix"; then |
3178 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
3179 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
3180 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3181 |
$as_echo_n "checking for $ac_word... " >&6; } |
3182 |
if ${ac_cv_prog_CC+:} false; then : |
3183 |
$as_echo_n "(cached) " >&6 |
3184 |
else |
3185 |
if test -n "$CC"; then |
3186 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
3187 |
else |
3188 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3189 |
for as_dir in $PATH |
3190 |
do |
3191 |
IFS=$as_save_IFS |
3192 |
test -z "$as_dir" && as_dir=. |
3193 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3194 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3195 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
3196 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3197 |
break 2 |
3198 |
fi |
3199 |
done |
3200 |
done |
3201 |
IFS=$as_save_IFS |
3202 |
|
3203 |
fi |
3204 |
fi |
3205 |
CC=$ac_cv_prog_CC |
3206 |
if test -n "$CC"; then |
3207 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3208 |
$as_echo "$CC" >&6; } |
3209 |
else |
3210 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3211 |
$as_echo "no" >&6; } |
3212 |
fi |
3213 |
|
3214 |
|
3215 |
fi |
3216 |
if test -z "$ac_cv_prog_CC"; then |
3217 |
ac_ct_CC=$CC |
3218 |
# Extract the first word of "gcc", so it can be a program name with args. |
3219 |
set dummy gcc; ac_word=$2 |
3220 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3221 |
$as_echo_n "checking for $ac_word... " >&6; } |
3222 |
if ${ac_cv_prog_ac_ct_CC+:} false; then : |
3223 |
$as_echo_n "(cached) " >&6 |
3224 |
else |
3225 |
if test -n "$ac_ct_CC"; then |
3226 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3227 |
else |
3228 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3229 |
for as_dir in $PATH |
3230 |
do |
3231 |
IFS=$as_save_IFS |
3232 |
test -z "$as_dir" && as_dir=. |
3233 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3234 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3235 |
ac_cv_prog_ac_ct_CC="gcc" |
3236 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3237 |
break 2 |
3238 |
fi |
3239 |
done |
3240 |
done |
3241 |
IFS=$as_save_IFS |
3242 |
|
3243 |
fi |
3244 |
fi |
3245 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3246 |
if test -n "$ac_ct_CC"; then |
3247 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3248 |
$as_echo "$ac_ct_CC" >&6; } |
3249 |
else |
3250 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3251 |
$as_echo "no" >&6; } |
3252 |
fi |
3253 |
|
3254 |
if test "x$ac_ct_CC" = x; then |
3255 |
CC="" |
3256 |
else |
3257 |
case $cross_compiling:$ac_tool_warned in |
3258 |
yes:) |
3259 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3260 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3261 |
ac_tool_warned=yes ;; |
3262 |
esac |
3263 |
CC=$ac_ct_CC |
3264 |
fi |
3265 |
else |
3266 |
CC="$ac_cv_prog_CC" |
3267 |
fi |
3268 |
|
3269 |
if test -z "$CC"; then |
3270 |
if test -n "$ac_tool_prefix"; then |
3271 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
3272 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
3273 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3274 |
$as_echo_n "checking for $ac_word... " >&6; } |
3275 |
if ${ac_cv_prog_CC+:} false; then : |
3276 |
$as_echo_n "(cached) " >&6 |
3277 |
else |
3278 |
if test -n "$CC"; then |
3279 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
3280 |
else |
3281 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3282 |
for as_dir in $PATH |
3283 |
do |
3284 |
IFS=$as_save_IFS |
3285 |
test -z "$as_dir" && as_dir=. |
3286 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3287 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3288 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
3289 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3290 |
break 2 |
3291 |
fi |
3292 |
done |
3293 |
done |
3294 |
IFS=$as_save_IFS |
3295 |
|
3296 |
fi |
3297 |
fi |
3298 |
CC=$ac_cv_prog_CC |
3299 |
if test -n "$CC"; then |
3300 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3301 |
$as_echo "$CC" >&6; } |
3302 |
else |
3303 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3304 |
$as_echo "no" >&6; } |
3305 |
fi |
3306 |
|
3307 |
|
3308 |
fi |
3309 |
fi |
3310 |
if test -z "$CC"; then |
3311 |
# Extract the first word of "cc", so it can be a program name with args. |
3312 |
set dummy cc; 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_CC+:} false; then : |
3316 |
$as_echo_n "(cached) " >&6 |
3317 |
else |
3318 |
if test -n "$CC"; then |
3319 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
3320 |
else |
3321 |
ac_prog_rejected=no |
3322 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3323 |
for as_dir in $PATH |
3324 |
do |
3325 |
IFS=$as_save_IFS |
3326 |
test -z "$as_dir" && as_dir=. |
3327 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3328 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3329 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3330 |
ac_prog_rejected=yes |
3331 |
continue |
3332 |
fi |
3333 |
ac_cv_prog_CC="cc" |
3334 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3335 |
break 2 |
3336 |
fi |
3337 |
done |
3338 |
done |
3339 |
IFS=$as_save_IFS |
3340 |
|
3341 |
if test $ac_prog_rejected = yes; then |
3342 |
# We found a bogon in the path, so make sure we never use it. |
3343 |
set dummy $ac_cv_prog_CC |
3344 |
shift |
3345 |
if test $# != 0; then |
3346 |
# We chose a different compiler from the bogus one. |
3347 |
# However, it has the same basename, so the bogon will be chosen |
3348 |
# first if we set CC to just the basename; use the full file name. |
3349 |
shift |
3350 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
3351 |
fi |
3352 |
fi |
3353 |
fi |
3354 |
fi |
3355 |
CC=$ac_cv_prog_CC |
3356 |
if test -n "$CC"; then |
3357 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3358 |
$as_echo "$CC" >&6; } |
3359 |
else |
3360 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3361 |
$as_echo "no" >&6; } |
3362 |
fi |
3363 |
|
3364 |
|
3365 |
fi |
3366 |
if test -z "$CC"; then |
3367 |
if test -n "$ac_tool_prefix"; then |
3368 |
for ac_prog in cl.exe |
3369 |
do |
3370 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
3371 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3372 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3373 |
$as_echo_n "checking for $ac_word... " >&6; } |
3374 |
if ${ac_cv_prog_CC+:} false; then : |
3375 |
$as_echo_n "(cached) " >&6 |
3376 |
else |
3377 |
if test -n "$CC"; then |
3378 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
3379 |
else |
3380 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3381 |
for as_dir in $PATH |
3382 |
do |
3383 |
IFS=$as_save_IFS |
3384 |
test -z "$as_dir" && as_dir=. |
3385 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3386 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3387 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3388 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3389 |
break 2 |
3390 |
fi |
3391 |
done |
3392 |
done |
3393 |
IFS=$as_save_IFS |
3394 |
|
3395 |
fi |
3396 |
fi |
3397 |
CC=$ac_cv_prog_CC |
3398 |
if test -n "$CC"; then |
3399 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3400 |
$as_echo "$CC" >&6; } |
3401 |
else |
3402 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3403 |
$as_echo "no" >&6; } |
3404 |
fi |
3405 |
|
3406 |
|
3407 |
test -n "$CC" && break |
3408 |
done |
3409 |
fi |
3410 |
if test -z "$CC"; then |
3411 |
ac_ct_CC=$CC |
3412 |
for ac_prog in cl.exe |
3413 |
do |
3414 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
3415 |
set dummy $ac_prog; ac_word=$2 |
3416 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3417 |
$as_echo_n "checking for $ac_word... " >&6; } |
3418 |
if ${ac_cv_prog_ac_ct_CC+:} false; then : |
3419 |
$as_echo_n "(cached) " >&6 |
3420 |
else |
3421 |
if test -n "$ac_ct_CC"; then |
3422 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3423 |
else |
3424 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3425 |
for as_dir in $PATH |
3426 |
do |
3427 |
IFS=$as_save_IFS |
3428 |
test -z "$as_dir" && as_dir=. |
3429 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3430 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3431 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
3432 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3433 |
break 2 |
3434 |
fi |
3435 |
done |
3436 |
done |
3437 |
IFS=$as_save_IFS |
3438 |
|
3439 |
fi |
3440 |
fi |
3441 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3442 |
if test -n "$ac_ct_CC"; then |
3443 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3444 |
$as_echo "$ac_ct_CC" >&6; } |
3445 |
else |
3446 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3447 |
$as_echo "no" >&6; } |
3448 |
fi |
3449 |
|
3450 |
|
3451 |
test -n "$ac_ct_CC" && break |
3452 |
done |
3453 |
|
3454 |
if test "x$ac_ct_CC" = x; then |
3455 |
CC="" |
3456 |
else |
3457 |
case $cross_compiling:$ac_tool_warned in |
3458 |
yes:) |
3459 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3460 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3461 |
ac_tool_warned=yes ;; |
3462 |
esac |
3463 |
CC=$ac_ct_CC |
3464 |
fi |
3465 |
fi |
3466 |
|
3467 |
fi |
3468 |
|
3469 |
|
3470 |
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3471 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3472 |
as_fn_error $? "no acceptable C compiler found in \$PATH |
3473 |
See \`config.log' for more details" "$LINENO" 5; } |
3474 |
|
3475 |
# Provide some information about the compiler. |
3476 |
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3477 |
set X $ac_compile |
3478 |
ac_compiler=$2 |
3479 |
for ac_option in --version -v -V -qversion; do |
3480 |
{ { ac_try="$ac_compiler $ac_option >&5" |
3481 |
case "(($ac_try" in |
3482 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3483 |
*) ac_try_echo=$ac_try;; |
3484 |
esac |
3485 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3486 |
$as_echo "$ac_try_echo"; } >&5 |
3487 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
3488 |
ac_status=$? |
3489 |
if test -s conftest.err; then |
3490 |
sed '10a\ |
3491 |
... rest of stderr output deleted ... |
3492 |
10q' conftest.err >conftest.er1 |
3493 |
cat conftest.er1 >&5 |
3494 |
fi |
3495 |
rm -f conftest.er1 conftest.err |
3496 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3497 |
test $ac_status = 0; } |
3498 |
done |
3499 |
|
3500 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3501 |
/* end confdefs.h. */ |
3502 |
|
3503 |
int |
3504 |
main () |
3505 |
{ |
3506 |
|
3507 |
; |
3508 |
return 0; |
3509 |
} |
3510 |
_ACEOF |
3511 |
ac_clean_files_save=$ac_clean_files |
3512 |
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
3513 |
# Try to create an executable without -o first, disregard a.out. |
3514 |
# It will help us diagnose broken compilers, and finding out an intuition |
3515 |
# of exeext. |
3516 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3517 |
$as_echo_n "checking whether the C compiler works... " >&6; } |
3518 |
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3519 |
|
3520 |
# The possible output files: |
3521 |
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
3522 |
|
3523 |
ac_rmfiles= |
3524 |
for ac_file in $ac_files |
3525 |
do |
3526 |
case $ac_file in |
3527 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
3528 |
* ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3529 |
esac |
3530 |
done |
3531 |
rm -f $ac_rmfiles |
3532 |
|
3533 |
if { { ac_try="$ac_link_default" |
3534 |
case "(($ac_try" in |
3535 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3536 |
*) ac_try_echo=$ac_try;; |
3537 |
esac |
3538 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3539 |
$as_echo "$ac_try_echo"; } >&5 |
3540 |
(eval "$ac_link_default") 2>&5 |
3541 |
ac_status=$? |
3542 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3543 |
test $ac_status = 0; }; then : |
3544 |
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3545 |
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
3546 |
# in a Makefile. We should not override ac_cv_exeext if it was cached, |
3547 |
# so that the user can short-circuit this test for compilers unknown to |
3548 |
# Autoconf. |
3549 |
for ac_file in $ac_files '' |
3550 |
do |
3551 |
test -f "$ac_file" || continue |
3552 |
case $ac_file in |
3553 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
3554 |
;; |
3555 |
[ab].out ) |
3556 |
# We found the default executable, but exeext='' is most |
3557 |
# certainly right. |
3558 |
break;; |
3559 |
*.* ) |
3560 |
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3561 |
then :; else |
3562 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3563 |
fi |
3564 |
# We set ac_cv_exeext here because the later test for it is not |
3565 |
# safe: cross compilers may not add the suffix if given an `-o' |
3566 |
# argument, so we may need to know it at that point already. |
3567 |
# Even if this section looks crufty: it has the advantage of |
3568 |
# actually working. |
3569 |
break;; |
3570 |
* ) |
3571 |
break;; |
3572 |
esac |
3573 |
done |
3574 |
test "$ac_cv_exeext" = no && ac_cv_exeext= |
3575 |
|
3576 |
else |
3577 |
ac_file='' |
3578 |
fi |
3579 |
if test -z "$ac_file"; then : |
3580 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3581 |
$as_echo "no" >&6; } |
3582 |
$as_echo "$as_me: failed program was:" >&5 |
3583 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3584 |
|
3585 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3586 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3587 |
as_fn_error 77 "C compiler cannot create executables |
3588 |
See \`config.log' for more details" "$LINENO" 5; } |
3589 |
else |
3590 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3591 |
$as_echo "yes" >&6; } |
3592 |
fi |
3593 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3594 |
$as_echo_n "checking for C compiler default output file name... " >&6; } |
3595 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
3596 |
$as_echo "$ac_file" >&6; } |
3597 |
ac_exeext=$ac_cv_exeext |
3598 |
|
3599 |
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
3600 |
ac_clean_files=$ac_clean_files_save |
3601 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3602 |
$as_echo_n "checking for suffix of executables... " >&6; } |
3603 |
if { { ac_try="$ac_link" |
3604 |
case "(($ac_try" in |
3605 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3606 |
*) ac_try_echo=$ac_try;; |
3607 |
esac |
3608 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3609 |
$as_echo "$ac_try_echo"; } >&5 |
3610 |
(eval "$ac_link") 2>&5 |
3611 |
ac_status=$? |
3612 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3613 |
test $ac_status = 0; }; then : |
3614 |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
3615 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
3616 |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
3617 |
# `rm'. |
3618 |
for ac_file in conftest.exe conftest conftest.*; do |
3619 |
test -f "$ac_file" || continue |
3620 |
case $ac_file in |
3621 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
3622 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3623 |
break;; |
3624 |
* ) break;; |
3625 |
esac |
3626 |
done |
3627 |
else |
3628 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3629 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3630 |
as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3631 |
See \`config.log' for more details" "$LINENO" 5; } |
3632 |
fi |
3633 |
rm -f conftest conftest$ac_cv_exeext |
3634 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3635 |
$as_echo "$ac_cv_exeext" >&6; } |
3636 |
|
3637 |
rm -f conftest.$ac_ext |
3638 |
EXEEXT=$ac_cv_exeext |
3639 |
ac_exeext=$EXEEXT |
3640 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3641 |
/* end confdefs.h. */ |
3642 |
#include <stdio.h> |
3643 |
int |
3644 |
main () |
3645 |
{ |
3646 |
FILE *f = fopen ("conftest.out", "w"); |
3647 |
return ferror (f) || fclose (f) != 0; |
3648 |
|
3649 |
; |
3650 |
return 0; |
3651 |
} |
3652 |
_ACEOF |
3653 |
ac_clean_files="$ac_clean_files conftest.out" |
3654 |
# Check that the compiler produces executables we can run. If not, either |
3655 |
# the compiler is broken, or we cross compile. |
3656 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
3657 |
$as_echo_n "checking whether we are cross compiling... " >&6; } |
3658 |
if test "$cross_compiling" != yes; then |
3659 |
{ { ac_try="$ac_link" |
3660 |
case "(($ac_try" in |
3661 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3662 |
*) ac_try_echo=$ac_try;; |
3663 |
esac |
3664 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3665 |
$as_echo "$ac_try_echo"; } >&5 |
3666 |
(eval "$ac_link") 2>&5 |
3667 |
ac_status=$? |
3668 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3669 |
test $ac_status = 0; } |
3670 |
if { ac_try='./conftest$ac_cv_exeext' |
3671 |
{ { case "(($ac_try" in |
3672 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3673 |
*) ac_try_echo=$ac_try;; |
3674 |
esac |
3675 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3676 |
$as_echo "$ac_try_echo"; } >&5 |
3677 |
(eval "$ac_try") 2>&5 |
3678 |
ac_status=$? |
3679 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3680 |
test $ac_status = 0; }; }; then |
3681 |
cross_compiling=no |
3682 |
else |
3683 |
if test "$cross_compiling" = maybe; then |
3684 |
cross_compiling=yes |
3685 |
else |
3686 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3687 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3688 |
as_fn_error $? "cannot run C compiled programs. |
3689 |
If you meant to cross compile, use \`--host'. |
3690 |
See \`config.log' for more details" "$LINENO" 5; } |
3691 |
fi |
3692 |
fi |
3693 |
fi |
3694 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
3695 |
$as_echo "$cross_compiling" >&6; } |
3696 |
|
3697 |
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
3698 |
ac_clean_files=$ac_clean_files_save |
3699 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3700 |
$as_echo_n "checking for suffix of object files... " >&6; } |
3701 |
if ${ac_cv_objext+:} false; then : |
3702 |
$as_echo_n "(cached) " >&6 |
3703 |
else |
3704 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3705 |
/* end confdefs.h. */ |
3706 |
|
3707 |
int |
3708 |
main () |
3709 |
{ |
3710 |
|
3711 |
; |
3712 |
return 0; |
3713 |
} |
3714 |
_ACEOF |
3715 |
rm -f conftest.o conftest.obj |
3716 |
if { { ac_try="$ac_compile" |
3717 |
case "(($ac_try" in |
3718 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3719 |
*) ac_try_echo=$ac_try;; |
3720 |
esac |
3721 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3722 |
$as_echo "$ac_try_echo"; } >&5 |
3723 |
(eval "$ac_compile") 2>&5 |
3724 |
ac_status=$? |
3725 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3726 |
test $ac_status = 0; }; then : |
3727 |
for ac_file in conftest.o conftest.obj conftest.*; do |
3728 |
test -f "$ac_file" || continue; |
3729 |
case $ac_file in |
3730 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
3731 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3732 |
break;; |
3733 |
esac |
3734 |
done |
3735 |
else |
3736 |
$as_echo "$as_me: failed program was:" >&5 |
3737 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3738 |
|
3739 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3740 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3741 |
as_fn_error $? "cannot compute suffix of object files: cannot compile |
3742 |
See \`config.log' for more details" "$LINENO" 5; } |
3743 |
fi |
3744 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3745 |
fi |
3746 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3747 |
$as_echo "$ac_cv_objext" >&6; } |
3748 |
OBJEXT=$ac_cv_objext |
3749 |
ac_objext=$OBJEXT |
3750 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3751 |
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
3752 |
if ${ac_cv_c_compiler_gnu+:} false; then : |
3753 |
$as_echo_n "(cached) " >&6 |
3754 |
else |
3755 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3756 |
/* end confdefs.h. */ |
3757 |
|
3758 |
int |
3759 |
main () |
3760 |
{ |
3761 |
#ifndef __GNUC__ |
3762 |
choke me |
3763 |
#endif |
3764 |
|
3765 |
; |
3766 |
return 0; |
3767 |
} |
3768 |
_ACEOF |
3769 |
if ac_fn_c_try_compile "$LINENO"; then : |
3770 |
ac_compiler_gnu=yes |
3771 |
else |
3772 |
ac_compiler_gnu=no |
3773 |
fi |
3774 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3775 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3776 |
|
3777 |
fi |
3778 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3779 |
$as_echo "$ac_cv_c_compiler_gnu" >&6; } |
3780 |
if test $ac_compiler_gnu = yes; then |
3781 |
GCC=yes |
3782 |
else |
3783 |
GCC= |
3784 |
fi |
3785 |
ac_test_CFLAGS=${CFLAGS+set} |
3786 |
ac_save_CFLAGS=$CFLAGS |
3787 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3788 |
$as_echo_n "checking whether $CC accepts -g... " >&6; } |
3789 |
if ${ac_cv_prog_cc_g+:} false; then : |
3790 |
$as_echo_n "(cached) " >&6 |
3791 |
else |
3792 |
ac_save_c_werror_flag=$ac_c_werror_flag |
3793 |
ac_c_werror_flag=yes |
3794 |
ac_cv_prog_cc_g=no |
3795 |
CFLAGS="-g" |
3796 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3797 |
/* end confdefs.h. */ |
3798 |
|
3799 |
int |
3800 |
main () |
3801 |
{ |
3802 |
|
3803 |
; |
3804 |
return 0; |
3805 |
} |
3806 |
_ACEOF |
3807 |
if ac_fn_c_try_compile "$LINENO"; then : |
3808 |
ac_cv_prog_cc_g=yes |
3809 |
else |
3810 |
CFLAGS="" |
3811 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3812 |
/* end confdefs.h. */ |
3813 |
|
3814 |
int |
3815 |
main () |
3816 |
{ |
3817 |
|
3818 |
; |
3819 |
return 0; |
3820 |
} |
3821 |
_ACEOF |
3822 |
if ac_fn_c_try_compile "$LINENO"; then : |
3823 |
|
3824 |
else |
3825 |
ac_c_werror_flag=$ac_save_c_werror_flag |
3826 |
CFLAGS="-g" |
3827 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3828 |
/* end confdefs.h. */ |
3829 |
|
3830 |
int |
3831 |
main () |
3832 |
{ |
3833 |
|
3834 |
; |
3835 |
return 0; |
3836 |
} |
3837 |
_ACEOF |
3838 |
if ac_fn_c_try_compile "$LINENO"; then : |
3839 |
ac_cv_prog_cc_g=yes |
3840 |
fi |
3841 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3842 |
fi |
3843 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3844 |
fi |
3845 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3846 |
ac_c_werror_flag=$ac_save_c_werror_flag |
3847 |
fi |
3848 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3849 |
$as_echo "$ac_cv_prog_cc_g" >&6; } |
3850 |
if test "$ac_test_CFLAGS" = set; then |
3851 |
CFLAGS=$ac_save_CFLAGS |
3852 |
elif test $ac_cv_prog_cc_g = yes; then |
3853 |
if test "$GCC" = yes; then |
3854 |
CFLAGS="-g -O2" |
3855 |
else |
3856 |
CFLAGS="-g" |
3857 |
fi |
3858 |
else |
3859 |
if test "$GCC" = yes; then |
3860 |
CFLAGS="-O2" |
3861 |
else |
3862 |
CFLAGS= |
3863 |
fi |
3864 |
fi |
3865 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3866 |
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
3867 |
if ${ac_cv_prog_cc_c89+:} false; then : |
3868 |
$as_echo_n "(cached) " >&6 |
3869 |
else |
3870 |
ac_cv_prog_cc_c89=no |
3871 |
ac_save_CC=$CC |
3872 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3873 |
/* end confdefs.h. */ |
3874 |
#include <stdarg.h> |
3875 |
#include <stdio.h> |
3876 |
struct stat; |
3877 |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3878 |
struct buf { int x; }; |
3879 |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
3880 |
static char *e (p, i) |
3881 |
char **p; |
3882 |
int i; |
3883 |
{ |
3884 |
return p[i]; |
3885 |
} |
3886 |
static char *f (char * (*g) (char **, int), char **p, ...) |
3887 |
{ |
3888 |
char *s; |
3889 |
va_list v; |
3890 |
va_start (v,p); |
3891 |
s = g (p, va_arg (v,int)); |
3892 |
va_end (v); |
3893 |
return s; |
3894 |
} |
3895 |
|
3896 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3897 |
function prototypes and stuff, but not '\xHH' hex character constants. |
3898 |
These don't provoke an error unfortunately, instead are silently treated |
3899 |
as 'x'. The following induces an error, until -std is added to get |
3900 |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3901 |
array size at least. It's necessary to write '\x00'==0 to get something |
3902 |
that's true only with -std. */ |
3903 |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3904 |
|
3905 |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3906 |
inside strings and character constants. */ |
3907 |
#define FOO(x) 'x' |
3908 |
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
3909 |
|
3910 |
int test (int i, double x); |
3911 |
struct s1 {int (*f) (int a);}; |
3912 |
struct s2 {int (*f) (double a);}; |
3913 |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
3914 |
int argc; |
3915 |
char **argv; |
3916 |
int |
3917 |
main () |
3918 |
{ |
3919 |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
3920 |
; |
3921 |
return 0; |
3922 |
} |
3923 |
_ACEOF |
3924 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3925 |
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
3926 |
do |
3927 |
CC="$ac_save_CC $ac_arg" |
3928 |
if ac_fn_c_try_compile "$LINENO"; then : |
3929 |
ac_cv_prog_cc_c89=$ac_arg |
3930 |
fi |
3931 |
rm -f core conftest.err conftest.$ac_objext |
3932 |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
3933 |
done |
3934 |
rm -f conftest.$ac_ext |
3935 |
CC=$ac_save_CC |
3936 |
|
3937 |
fi |
3938 |
# AC_CACHE_VAL |
3939 |
case "x$ac_cv_prog_cc_c89" in |
3940 |
x) |
3941 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
3942 |
$as_echo "none needed" >&6; } ;; |
3943 |
xno) |
3944 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
3945 |
$as_echo "unsupported" >&6; } ;; |
3946 |
*) |
3947 |
CC="$CC $ac_cv_prog_cc_c89" |
3948 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
3949 |
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
3950 |
esac |
3951 |
if test "x$ac_cv_prog_cc_c89" != xno; then : |
3952 |
|
3953 |
fi |
3954 |
|
3955 |
ac_ext=c |
3956 |
ac_cpp='$CPP $CPPFLAGS' |
3957 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3958 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3959 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3960 |
|
3961 |
ac_ext=c |
3962 |
ac_cpp='$CPP $CPPFLAGS' |
3963 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3964 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3965 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3966 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
3967 |
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } |
3968 |
if ${am_cv_prog_cc_c_o+:} false; then : |
3969 |
$as_echo_n "(cached) " >&6 |
3970 |
else |
3971 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3972 |
/* end confdefs.h. */ |
3973 |
|
3974 |
int |
3975 |
main () |
3976 |
{ |
3977 |
|
3978 |
; |
3979 |
return 0; |
3980 |
} |
3981 |
_ACEOF |
3982 |
# Make sure it works both with $CC and with simple cc. |
3983 |
# Following AC_PROG_CC_C_O, we do the test twice because some |
3984 |
# compilers refuse to overwrite an existing .o file with -o, |
3985 |
# though they will create one. |
3986 |
am_cv_prog_cc_c_o=yes |
3987 |
for am_i in 1 2; do |
3988 |
if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
3989 |
($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
3990 |
ac_status=$? |
3991 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3992 |
(exit $ac_status); } \ |
3993 |
&& test -f conftest2.$ac_objext; then |
3994 |
: OK |
3995 |
else |
3996 |
am_cv_prog_cc_c_o=no |
3997 |
break |
3998 |
fi |
3999 |
done |
4000 |
rm -f core conftest* |
4001 |
unset am_i |
4002 |
fi |
4003 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
4004 |
$as_echo "$am_cv_prog_cc_c_o" >&6; } |
4005 |
if test "$am_cv_prog_cc_c_o" != yes; then |
4006 |
# Losing compiler, so override with the script. |
4007 |
# FIXME: It is wrong to rewrite CC. |
4008 |
# But if we don't then we get into trouble of one sort or another. |
4009 |
# A longer-term fix would be to have automake use am__CC in this case, |
4010 |
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
4011 |
CC="$am_aux_dir/compile $CC" |
4012 |
fi |
4013 |
ac_ext=c |
4014 |
ac_cpp='$CPP $CPPFLAGS' |
4015 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4016 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4017 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4018 |
|
4019 |
|
4020 |
depcc="$CC" am_compiler_list= |
4021 |
|
4022 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4023 |
$as_echo_n "checking dependency style of $depcc... " >&6; } |
4024 |
if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
4025 |
$as_echo_n "(cached) " >&6 |
4026 |
else |
4027 |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
4028 |
# We make a subdir and do the tests there. Otherwise we can end up |
4029 |
# making bogus files that we don't know about and never remove. For |
4030 |
# instance it was reported that on HP-UX the gcc test will end up |
4031 |
# making a dummy file named 'D' -- because '-MD' means "put the output |
4032 |
# in D". |
4033 |
rm -rf conftest.dir |
4034 |
mkdir conftest.dir |
4035 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
4036 |
# using a relative directory. |
4037 |
cp "$am_depcomp" conftest.dir |
4038 |
cd conftest.dir |
4039 |
# We will build objects and dependencies in a subdirectory because |
4040 |
# it helps to detect inapplicable dependency modes. For instance |
4041 |
# both Tru64's cc and ICC support -MD to output dependencies as a |
4042 |
# side effect of compilation, but ICC will put the dependencies in |
4043 |
# the current directory while Tru64 will put them in the object |
4044 |
# directory. |
4045 |
mkdir sub |
4046 |
|
4047 |
am_cv_CC_dependencies_compiler_type=none |
4048 |
if test "$am_compiler_list" = ""; then |
4049 |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
4050 |
fi |
4051 |
am__universal=false |
4052 |
case " $depcc " in #( |
4053 |
*\ -arch\ *\ -arch\ *) am__universal=true ;; |
4054 |
esac |
4055 |
|
4056 |
for depmode in $am_compiler_list; do |
4057 |
# Setup a source with many dependencies, because some compilers |
4058 |
# like to wrap large dependency lists on column 80 (with \), and |
4059 |
# we should not choose a depcomp mode which is confused by this. |
4060 |
# |
4061 |
# We need to recreate these files for each test, as the compiler may |
4062 |
# overwrite some of them when testing with obscure command lines. |
4063 |
# This happens at least with the AIX C compiler. |
4064 |
: > sub/conftest.c |
4065 |
for i in 1 2 3 4 5 6; do |
4066 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
4067 |
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
4068 |
# Solaris 10 /bin/sh. |
4069 |
echo '/* dummy */' > sub/conftst$i.h |
4070 |
done |
4071 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
4072 |
|
4073 |
# We check with '-c' and '-o' for the sake of the "dashmstdout" |
4074 |
# mode. It turns out that the SunPro C++ compiler does not properly |
4075 |
# handle '-M -o', and we need to detect this. Also, some Intel |
4076 |
# versions had trouble with output in subdirs. |
4077 |
am__obj=sub/conftest.${OBJEXT-o} |
4078 |
am__minus_obj="-o $am__obj" |
4079 |
case $depmode in |
4080 |
gcc) |
4081 |
# This depmode causes a compiler race in universal mode. |
4082 |
test "$am__universal" = false || continue |
4083 |
;; |
4084 |
nosideeffect) |
4085 |
# After this tag, mechanisms are not by side-effect, so they'll |
4086 |
# only be used when explicitly requested. |
4087 |
if test "x$enable_dependency_tracking" = xyes; then |
4088 |
continue |
4089 |
else |
4090 |
break |
4091 |
fi |
4092 |
;; |
4093 |
msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
4094 |
# This compiler won't grok '-c -o', but also, the minuso test has |
4095 |
# not run yet. These depmodes are late enough in the game, and |
4096 |
# so weak that their functioning should not be impacted. |
4097 |
am__obj=conftest.${OBJEXT-o} |
4098 |
am__minus_obj= |
4099 |
;; |
4100 |
none) break ;; |
4101 |
esac |
4102 |
if depmode=$depmode \ |
4103 |
source=sub/conftest.c object=$am__obj \ |
4104 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
4105 |
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
4106 |
>/dev/null 2>conftest.err && |
4107 |
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
4108 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
4109 |
grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
4110 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4111 |
# icc doesn't choke on unknown options, it will just issue warnings |
4112 |
# or remarks (even with -Werror). So we grep stderr for any message |
4113 |
# that says an option was ignored or not supported. |
4114 |
# When given -MP, icc 7.0 and 7.1 complain thusly: |
4115 |
# icc: Command line warning: ignoring option '-M'; no argument required |
4116 |
# The diagnosis changed in icc 8.0: |
4117 |
# icc: Command line remark: option '-MP' not supported |
4118 |
if (grep 'ignoring option' conftest.err || |
4119 |
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
4120 |
am_cv_CC_dependencies_compiler_type=$depmode |
4121 |
break |
4122 |
fi |
4123 |
fi |
4124 |
done |
4125 |
|
4126 |
cd .. |
4127 |
rm -rf conftest.dir |
4128 |
else |
4129 |
am_cv_CC_dependencies_compiler_type=none |
4130 |
fi |
4131 |
|
4132 |
fi |
4133 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4134 |
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
4135 |
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
4136 |
|
4137 |
if |
4138 |
test "x$enable_dependency_tracking" != xno \ |
4139 |
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
4140 |
am__fastdepCC_TRUE= |
4141 |
am__fastdepCC_FALSE='#' |
4142 |
else |
4143 |
am__fastdepCC_TRUE='#' |
4144 |
am__fastdepCC_FALSE= |
4145 |
fi |
4146 |
|
4147 |
|
4148 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
4149 |
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } |
4150 |
if ${ac_cv_prog_cc_c99+:} false; then : |
4151 |
$as_echo_n "(cached) " >&6 |
4152 |
else |
4153 |
ac_cv_prog_cc_c99=no |
4154 |
ac_save_CC=$CC |
4155 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4156 |
/* end confdefs.h. */ |
4157 |
#include <stdarg.h> |
4158 |
#include <stdbool.h> |
4159 |
#include <stdlib.h> |
4160 |
#include <wchar.h> |
4161 |
#include <stdio.h> |
4162 |
|
4163 |
// Check varargs macros. These examples are taken from C99 6.10.3.5. |
4164 |
#define debug(...) fprintf (stderr, __VA_ARGS__) |
4165 |
#define showlist(...) puts (#__VA_ARGS__) |
4166 |
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
4167 |
static void |
4168 |
test_varargs_macros (void) |
4169 |
{ |
4170 |
int x = 1234; |
4171 |
int y = 5678; |
4172 |
debug ("Flag"); |
4173 |
debug ("X = %d\n", x); |
4174 |
showlist (The first, second, and third items.); |
4175 |
report (x>y, "x is %d but y is %d", x, y); |
4176 |
} |
4177 |
|
4178 |
// Check long long types. |
4179 |
#define BIG64 18446744073709551615ull |
4180 |
#define BIG32 4294967295ul |
4181 |
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
4182 |
#if !BIG_OK |
4183 |
your preprocessor is broken; |
4184 |
#endif |
4185 |
#if BIG_OK |
4186 |
#else |
4187 |
your preprocessor is broken; |
4188 |
#endif |
4189 |
static long long int bignum = -9223372036854775807LL; |
4190 |
static unsigned long long int ubignum = BIG64; |
4191 |
|
4192 |
struct incomplete_array |
4193 |
{ |
4194 |
int datasize; |
4195 |
double data[]; |
4196 |
}; |
4197 |
|
4198 |
struct named_init { |
4199 |
int number; |
4200 |
const wchar_t *name; |
4201 |
double average; |
4202 |
}; |
4203 |
|
4204 |
typedef const char *ccp; |
4205 |
|
4206 |
static inline int |
4207 |
test_restrict (ccp restrict text) |
4208 |
{ |
4209 |
// See if C++-style comments work. |
4210 |
// Iterate through items via the restricted pointer. |
4211 |
// Also check for declarations in for loops. |
4212 |
for (unsigned int i = 0; *(text+i) != '\0'; ++i) |
4213 |
continue; |
4214 |
return 0; |
4215 |
} |
4216 |
|
4217 |
// Check varargs and va_copy. |
4218 |
static void |
4219 |
test_varargs (const char *format, ...) |
4220 |
{ |
4221 |
va_list args; |
4222 |
va_start (args, format); |
4223 |
va_list args_copy; |
4224 |
va_copy (args_copy, args); |
4225 |
|
4226 |
const char *str; |
4227 |
int number; |
4228 |
float fnumber; |
4229 |
|
4230 |
while (*format) |
4231 |
{ |
4232 |
switch (*format++) |
4233 |
{ |
4234 |
case 's': // string |
4235 |
str = va_arg (args_copy, const char *); |
4236 |
break; |
4237 |
case 'd': // int |
4238 |
number = va_arg (args_copy, int); |
4239 |
break; |
4240 |
case 'f': // float |
4241 |
fnumber = va_arg (args_copy, double); |
4242 |
break; |
4243 |
default: |
4244 |
break; |
4245 |
} |
4246 |
} |
4247 |
va_end (args_copy); |
4248 |
va_end (args); |
4249 |
} |
4250 |
|
4251 |
int |
4252 |
main () |
4253 |
{ |
4254 |
|
4255 |
// Check bool. |
4256 |
_Bool success = false; |
4257 |
|
4258 |
// Check restrict. |
4259 |
if (test_restrict ("String literal") == 0) |
4260 |
success = true; |
4261 |
char *restrict newvar = "Another string"; |
4262 |
|
4263 |
// Check varargs. |
4264 |
test_varargs ("s, d' f .", "string", 65, 34.234); |
4265 |
test_varargs_macros (); |
4266 |
|
4267 |
// Check flexible array members. |
4268 |
struct incomplete_array *ia = |
4269 |
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
4270 |
ia->datasize = 10; |
4271 |
for (int i = 0; i < ia->datasize; ++i) |
4272 |
ia->data[i] = i * 1.234; |
4273 |
|
4274 |
// Check named initializers. |
4275 |
struct named_init ni = { |
4276 |
.number = 34, |
4277 |
.name = L"Test wide string", |
4278 |
.average = 543.34343, |
4279 |
}; |
4280 |
|
4281 |
ni.number = 58; |
4282 |
|
4283 |
int dynamic_array[ni.number]; |
4284 |
dynamic_array[ni.number - 1] = 543; |
4285 |
|
4286 |
// work around unused variable warnings |
4287 |
return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' |
4288 |
|| dynamic_array[ni.number - 1] != 543); |
4289 |
|
4290 |
; |
4291 |
return 0; |
4292 |
} |
4293 |
_ACEOF |
4294 |
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 |
4295 |
do |
4296 |
CC="$ac_save_CC $ac_arg" |
4297 |
if ac_fn_c_try_compile "$LINENO"; then : |
4298 |
ac_cv_prog_cc_c99=$ac_arg |
4299 |
fi |
4300 |
rm -f core conftest.err conftest.$ac_objext |
4301 |
test "x$ac_cv_prog_cc_c99" != "xno" && break |
4302 |
done |
4303 |
rm -f conftest.$ac_ext |
4304 |
CC=$ac_save_CC |
4305 |
|
4306 |
fi |
4307 |
# AC_CACHE_VAL |
4308 |
case "x$ac_cv_prog_cc_c99" in |
4309 |
x) |
4310 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
4311 |
$as_echo "none needed" >&6; } ;; |
4312 |
xno) |
4313 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
4314 |
$as_echo "unsupported" >&6; } ;; |
4315 |
*) |
4316 |
CC="$CC $ac_cv_prog_cc_c99" |
4317 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
4318 |
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; |
4319 |
esac |
4320 |
if test "x$ac_cv_prog_cc_c99" != xno; then : |
4321 |
|
4322 |
fi |
4323 |
|
4324 |
|
4325 |
if test "$ac_cv_prog_cc_c99" = "no"; then : |
4326 |
as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5 |
4327 |
fi |
4328 |
case `pwd` in |
4329 |
*\ * | *\ *) |
4330 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
4331 |
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
4332 |
esac |
4333 |
|
4334 |
|
4335 |
|
4336 |
macro_version='2.4.4' |
4337 |
macro_revision='2.4.4' |
4338 |
|
4339 |
|
4340 |
|
4341 |
|
4342 |
|
4343 |
|
4344 |
|
4345 |
|
4346 |
|
4347 |
|
4348 |
|
4349 |
|
4350 |
|
4351 |
ltmain=$ac_aux_dir/ltmain.sh |
4352 |
|
4353 |
# Make sure we can run config.sub. |
4354 |
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
4355 |
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
4356 |
|
4357 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
4358 |
$as_echo_n "checking build system type... " >&6; } |
4359 |
if ${ac_cv_build+:} false; then : |
4360 |
$as_echo_n "(cached) " >&6 |
4361 |
else |
4362 |
ac_build_alias=$build_alias |
4363 |
test "x$ac_build_alias" = x && |
4364 |
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
4365 |
test "x$ac_build_alias" = x && |
4366 |
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
4367 |
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
4368 |
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
4369 |
|
4370 |
fi |
4371 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
4372 |
$as_echo "$ac_cv_build" >&6; } |
4373 |
case $ac_cv_build in |
4374 |
*-*-*) ;; |
4375 |
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
4376 |
esac |
4377 |
build=$ac_cv_build |
4378 |
ac_save_IFS=$IFS; IFS='-' |
4379 |
set x $ac_cv_build |
4380 |
shift |
4381 |
build_cpu=$1 |
4382 |
build_vendor=$2 |
4383 |
shift; shift |
4384 |
# Remember, the first character of IFS is used to create $*, |
4385 |
# except with old shells: |
4386 |
build_os=$* |
4387 |
IFS=$ac_save_IFS |
4388 |
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
4389 |
|
4390 |
|
4391 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
4392 |
$as_echo_n "checking host system type... " >&6; } |
4393 |
if ${ac_cv_host+:} false; then : |
4394 |
$as_echo_n "(cached) " >&6 |
4395 |
else |
4396 |
if test "x$host_alias" = x; then |
4397 |
ac_cv_host=$ac_cv_build |
4398 |
else |
4399 |
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
4400 |
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
4401 |
fi |
4402 |
|
4403 |
fi |
4404 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
4405 |
$as_echo "$ac_cv_host" >&6; } |
4406 |
case $ac_cv_host in |
4407 |
*-*-*) ;; |
4408 |
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
4409 |
esac |
4410 |
host=$ac_cv_host |
4411 |
ac_save_IFS=$IFS; IFS='-' |
4412 |
set x $ac_cv_host |
4413 |
shift |
4414 |
host_cpu=$1 |
4415 |
host_vendor=$2 |
4416 |
shift; shift |
4417 |
# Remember, the first character of IFS is used to create $*, |
4418 |
# except with old shells: |
4419 |
host_os=$* |
4420 |
IFS=$ac_save_IFS |
4421 |
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
4422 |
|
4423 |
|
4424 |
# Backslashify metacharacters that are still active within |
4425 |
# double-quoted strings. |
4426 |
sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
4427 |
|
4428 |
# Same as above, but do not quote variable references. |
4429 |
double_quote_subst='s/\(["`\\]\)/\\\1/g' |
4430 |
|
4431 |
# Sed substitution to delay expansion of an escaped shell variable in a |
4432 |
# double_quote_subst'ed string. |
4433 |
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
4434 |
|
4435 |
# Sed substitution to delay expansion of an escaped single quote. |
4436 |
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
4437 |
|
4438 |
# Sed substitution to avoid accidental globbing in evaled expressions |
4439 |
no_glob_subst='s/\*/\\\*/g' |
4440 |
|
4441 |
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
4442 |
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
4443 |
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
4444 |
|
4445 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
4446 |
$as_echo_n "checking how to print strings... " >&6; } |
4447 |
# Test print first, because it will be a builtin if present. |
4448 |
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
4449 |
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
4450 |
ECHO='print -r --' |
4451 |
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
4452 |
ECHO='printf %s\n' |
4453 |
else |
4454 |
# Use this function as a fallback that always works. |
4455 |
func_fallback_echo () |
4456 |
{ |
4457 |
eval 'cat <<_LTECHO_EOF |
4458 |
$1 |
4459 |
_LTECHO_EOF' |
4460 |
} |
4461 |
ECHO='func_fallback_echo' |
4462 |
fi |
4463 |
|
4464 |
# func_echo_all arg... |
4465 |
# Invoke $ECHO with all args, space-separated. |
4466 |
func_echo_all () |
4467 |
{ |
4468 |
$ECHO "" |
4469 |
} |
4470 |
|
4471 |
case $ECHO in |
4472 |
printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
4473 |
$as_echo "printf" >&6; } ;; |
4474 |
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
4475 |
$as_echo "print -r" >&6; } ;; |
4476 |
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 |
4477 |
$as_echo "cat" >&6; } ;; |
4478 |
esac |
4479 |
|
4480 |
|
4481 |
|
4482 |
|
4483 |
|
4484 |
|
4485 |
|
4486 |
|
4487 |
|
4488 |
|
4489 |
|
4490 |
|
4491 |
|
4492 |
|
4493 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
4494 |
$as_echo_n "checking for a sed that does not truncate output... " >&6; } |
4495 |
if ${ac_cv_path_SED+:} false; then : |
4496 |
$as_echo_n "(cached) " >&6 |
4497 |
else |
4498 |
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
4499 |
for ac_i in 1 2 3 4 5 6 7; do |
4500 |
ac_script="$ac_script$as_nl$ac_script" |
4501 |
done |
4502 |
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
4503 |
{ ac_script=; unset ac_script;} |
4504 |
if test -z "$SED"; then |
4505 |
ac_path_SED_found=false |
4506 |
# Loop through the user's path and test for each of PROGNAME-LIST |
4507 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4508 |
for as_dir in $PATH |
4509 |
do |
4510 |
IFS=$as_save_IFS |
4511 |
test -z "$as_dir" && as_dir=. |
4512 |
for ac_prog in sed gsed; do |
4513 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4514 |
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
4515 |
as_fn_executable_p "$ac_path_SED" || continue |
4516 |
# Check for GNU ac_path_SED and select it if it is found. |
4517 |
# Check for GNU $ac_path_SED |
4518 |
case `"$ac_path_SED" --version 2>&1` in |
4519 |
*GNU*) |
4520 |
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
4521 |
*) |
4522 |
ac_count=0 |
4523 |
$as_echo_n 0123456789 >"conftest.in" |
4524 |
while : |
4525 |
do |
4526 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
4527 |
mv "conftest.tmp" "conftest.in" |
4528 |
cp "conftest.in" "conftest.nl" |
4529 |
$as_echo '' >> "conftest.nl" |
4530 |
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4531 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4532 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
4533 |
if test $ac_count -gt ${ac_path_SED_max-0}; then |
4534 |
# Best one so far, save it but keep looking for a better one |
4535 |
ac_cv_path_SED="$ac_path_SED" |
4536 |
ac_path_SED_max=$ac_count |
4537 |
fi |
4538 |
# 10*(2^10) chars as input seems more than enough |
4539 |
test $ac_count -gt 10 && break |
4540 |
done |
4541 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4542 |
esac |
4543 |
|
4544 |
$ac_path_SED_found && break 3 |
4545 |
done |
4546 |
done |
4547 |
done |
4548 |
IFS=$as_save_IFS |
4549 |
if test -z "$ac_cv_path_SED"; then |
4550 |
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
4551 |
fi |
4552 |
else |
4553 |
ac_cv_path_SED=$SED |
4554 |
fi |
4555 |
|
4556 |
fi |
4557 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
4558 |
$as_echo "$ac_cv_path_SED" >&6; } |
4559 |
SED="$ac_cv_path_SED" |
4560 |
rm -f conftest.sed |
4561 |
|
4562 |
test -z "$SED" && SED=sed |
4563 |
Xsed="$SED -e 1s/^X//" |
4564 |
|
4565 |
|
4566 |
|
4567 |
|
4568 |
|
4569 |
|
4570 |
|
4571 |
|
4572 |
|
4573 |
|
4574 |
|
4575 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4576 |
$as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
4577 |
if ${ac_cv_path_GREP+:} false; then : |
4578 |
$as_echo_n "(cached) " >&6 |
4579 |
else |
4580 |
if test -z "$GREP"; then |
4581 |
ac_path_GREP_found=false |
4582 |
# Loop through the user's path and test for each of PROGNAME-LIST |
4583 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4584 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4585 |
do |
4586 |
IFS=$as_save_IFS |
4587 |
test -z "$as_dir" && as_dir=. |
4588 |
for ac_prog in grep ggrep; do |
4589 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4590 |
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
4591 |
as_fn_executable_p "$ac_path_GREP" || continue |
4592 |
# Check for GNU ac_path_GREP and select it if it is found. |
4593 |
# Check for GNU $ac_path_GREP |
4594 |
case `"$ac_path_GREP" --version 2>&1` in |
4595 |
*GNU*) |
4596 |
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
4597 |
*) |
4598 |
ac_count=0 |
4599 |
$as_echo_n 0123456789 >"conftest.in" |
4600 |
while : |
4601 |
do |
4602 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
4603 |
mv "conftest.tmp" "conftest.in" |
4604 |
cp "conftest.in" "conftest.nl" |
4605 |
$as_echo 'GREP' >> "conftest.nl" |
4606 |
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4607 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4608 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
4609 |
if test $ac_count -gt ${ac_path_GREP_max-0}; then |
4610 |
# Best one so far, save it but keep looking for a better one |
4611 |
ac_cv_path_GREP="$ac_path_GREP" |
4612 |
ac_path_GREP_max=$ac_count |
4613 |
fi |
4614 |
# 10*(2^10) chars as input seems more than enough |
4615 |
test $ac_count -gt 10 && break |
4616 |
done |
4617 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4618 |
esac |
4619 |
|
4620 |
$ac_path_GREP_found && break 3 |
4621 |
done |
4622 |
done |
4623 |
done |
4624 |
IFS=$as_save_IFS |
4625 |
if test -z "$ac_cv_path_GREP"; then |
4626 |
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
4627 |
fi |
4628 |
else |
4629 |
ac_cv_path_GREP=$GREP |
4630 |
fi |
4631 |
|
4632 |
fi |
4633 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
4634 |
$as_echo "$ac_cv_path_GREP" >&6; } |
4635 |
GREP="$ac_cv_path_GREP" |
4636 |
|
4637 |
|
4638 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
4639 |
$as_echo_n "checking for egrep... " >&6; } |
4640 |
if ${ac_cv_path_EGREP+:} false; then : |
4641 |
$as_echo_n "(cached) " >&6 |
4642 |
else |
4643 |
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4644 |
then ac_cv_path_EGREP="$GREP -E" |
4645 |
else |
4646 |
if test -z "$EGREP"; then |
4647 |
ac_path_EGREP_found=false |
4648 |
# Loop through the user's path and test for each of PROGNAME-LIST |
4649 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4650 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4651 |
do |
4652 |
IFS=$as_save_IFS |
4653 |
test -z "$as_dir" && as_dir=. |
4654 |
for ac_prog in egrep; do |
4655 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4656 |
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
4657 |
as_fn_executable_p "$ac_path_EGREP" || continue |
4658 |
# Check for GNU ac_path_EGREP and select it if it is found. |
4659 |
# Check for GNU $ac_path_EGREP |
4660 |
case `"$ac_path_EGREP" --version 2>&1` in |
4661 |
*GNU*) |
4662 |
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
4663 |
*) |
4664 |
ac_count=0 |
4665 |
$as_echo_n 0123456789 >"conftest.in" |
4666 |
while : |
4667 |
do |
4668 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
4669 |
mv "conftest.tmp" "conftest.in" |
4670 |
cp "conftest.in" "conftest.nl" |
4671 |
$as_echo 'EGREP' >> "conftest.nl" |
4672 |
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4673 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4674 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
4675 |
if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
4676 |
# Best one so far, save it but keep looking for a better one |
4677 |
ac_cv_path_EGREP="$ac_path_EGREP" |
4678 |
ac_path_EGREP_max=$ac_count |
4679 |
fi |
4680 |
# 10*(2^10) chars as input seems more than enough |
4681 |
test $ac_count -gt 10 && break |
4682 |
done |
4683 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4684 |
esac |
4685 |
|
4686 |
$ac_path_EGREP_found && break 3 |
4687 |
done |
4688 |
done |
4689 |
done |
4690 |
IFS=$as_save_IFS |
4691 |
if test -z "$ac_cv_path_EGREP"; then |
4692 |
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
4693 |
fi |
4694 |
else |
4695 |
ac_cv_path_EGREP=$EGREP |
4696 |
fi |
4697 |
|
4698 |
fi |
4699 |
fi |
4700 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
4701 |
$as_echo "$ac_cv_path_EGREP" >&6; } |
4702 |
EGREP="$ac_cv_path_EGREP" |
4703 |
|
4704 |
|
4705 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
4706 |
$as_echo_n "checking for fgrep... " >&6; } |
4707 |
if ${ac_cv_path_FGREP+:} false; then : |
4708 |
$as_echo_n "(cached) " >&6 |
4709 |
else |
4710 |
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
4711 |
then ac_cv_path_FGREP="$GREP -F" |
4712 |
else |
4713 |
if test -z "$FGREP"; then |
4714 |
ac_path_FGREP_found=false |
4715 |
# Loop through the user's path and test for each of PROGNAME-LIST |
4716 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4717 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4718 |
do |
4719 |
IFS=$as_save_IFS |
4720 |
test -z "$as_dir" && as_dir=. |
4721 |
for ac_prog in fgrep; do |
4722 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4723 |
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
4724 |
as_fn_executable_p "$ac_path_FGREP" || continue |
4725 |
# Check for GNU ac_path_FGREP and select it if it is found. |
4726 |
# Check for GNU $ac_path_FGREP |
4727 |
case `"$ac_path_FGREP" --version 2>&1` in |
4728 |
*GNU*) |
4729 |
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
4730 |
*) |
4731 |
ac_count=0 |
4732 |
$as_echo_n 0123456789 >"conftest.in" |
4733 |
while : |
4734 |
do |
4735 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
4736 |
mv "conftest.tmp" "conftest.in" |
4737 |
cp "conftest.in" "conftest.nl" |
4738 |
$as_echo 'FGREP' >> "conftest.nl" |
4739 |
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4740 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4741 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
4742 |
if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
4743 |
# Best one so far, save it but keep looking for a better one |
4744 |
ac_cv_path_FGREP="$ac_path_FGREP" |
4745 |
ac_path_FGREP_max=$ac_count |
4746 |
fi |
4747 |
# 10*(2^10) chars as input seems more than enough |
4748 |
test $ac_count -gt 10 && break |
4749 |
done |
4750 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4751 |
esac |
4752 |
|
4753 |
$ac_path_FGREP_found && break 3 |
4754 |
done |
4755 |
done |
4756 |
done |
4757 |
IFS=$as_save_IFS |
4758 |
if test -z "$ac_cv_path_FGREP"; then |
4759 |
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
4760 |
fi |
4761 |
else |
4762 |
ac_cv_path_FGREP=$FGREP |
4763 |
fi |
4764 |
|
4765 |
fi |
4766 |
fi |
4767 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
4768 |
$as_echo "$ac_cv_path_FGREP" >&6; } |
4769 |
FGREP="$ac_cv_path_FGREP" |
4770 |
|
4771 |
|
4772 |
test -z "$GREP" && GREP=grep |
4773 |
|
4774 |
|
4775 |
|
4776 |
|
4777 |
|
4778 |
|
4779 |
|
4780 |
|
4781 |
|
4782 |
|
4783 |
|
4784 |
|
4785 |
|
4786 |
|
4787 |
|
4788 |
|
4789 |
|
4790 |
|
4791 |
|
4792 |
# Check whether --with-gnu-ld was given. |
4793 |
if test "${with_gnu_ld+set}" = set; then : |
4794 |
withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
4795 |
else |
4796 |
with_gnu_ld=no |
4797 |
fi |
4798 |
|
4799 |
ac_prog=ld |
4800 |
if test yes = "$GCC"; then |
4801 |
# Check if gcc -print-prog-name=ld gives a path. |
4802 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
4803 |
$as_echo_n "checking for ld used by $CC... " >&6; } |
4804 |
case $host in |
4805 |
*-*-mingw*) |
4806 |
# gcc leaves a trailing carriage return, which upsets mingw |
4807 |
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
4808 |
*) |
4809 |
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
4810 |
esac |
4811 |
case $ac_prog in |
4812 |
# Accept absolute paths. |
4813 |
[\\/]* | ?:[\\/]*) |
4814 |
re_direlt='/[^/][^/]*/\.\./' |
4815 |
# Canonicalize the pathname of ld |
4816 |
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
4817 |
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
4818 |
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
4819 |
done |
4820 |
test -z "$LD" && LD=$ac_prog |
4821 |
;; |
4822 |
"") |
4823 |
# If it fails, then pretend we aren't using GCC. |
4824 |
ac_prog=ld |
4825 |
;; |
4826 |
*) |
4827 |
# If it is relative, then search for the first ld in PATH. |
4828 |
with_gnu_ld=unknown |
4829 |
;; |
4830 |
esac |
4831 |
elif test yes = "$with_gnu_ld"; then |
4832 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
4833 |
$as_echo_n "checking for GNU ld... " >&6; } |
4834 |
else |
4835 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
4836 |
$as_echo_n "checking for non-GNU ld... " >&6; } |
4837 |
fi |
4838 |
if ${lt_cv_path_LD+:} false; then : |
4839 |
$as_echo_n "(cached) " >&6 |
4840 |
else |
4841 |
if test -z "$LD"; then |
4842 |
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
4843 |
for ac_dir in $PATH; do |
4844 |
IFS=$lt_save_ifs |
4845 |
test -z "$ac_dir" && ac_dir=. |
4846 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
4847 |
lt_cv_path_LD=$ac_dir/$ac_prog |
4848 |
# Check to see if the program is GNU ld. I'd rather use --version, |
4849 |
# but apparently some variants of GNU ld only accept -v. |
4850 |
# Break only if it was the GNU/non-GNU ld that we prefer. |
4851 |
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
4852 |
*GNU* | *'with BFD'*) |
4853 |
test no != "$with_gnu_ld" && break |
4854 |
;; |
4855 |
*) |
4856 |
test yes != "$with_gnu_ld" && break |
4857 |
;; |
4858 |
esac |
4859 |
fi |
4860 |
done |
4861 |
IFS=$lt_save_ifs |
4862 |
else |
4863 |
lt_cv_path_LD=$LD # Let the user override the test with a path. |
4864 |
fi |
4865 |
fi |
4866 |
|
4867 |
LD=$lt_cv_path_LD |
4868 |
if test -n "$LD"; then |
4869 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
4870 |
$as_echo "$LD" >&6; } |
4871 |
else |
4872 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4873 |
$as_echo "no" >&6; } |
4874 |
fi |
4875 |
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
4876 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
4877 |
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
4878 |
if ${lt_cv_prog_gnu_ld+:} false; then : |
4879 |
$as_echo_n "(cached) " >&6 |
4880 |
else |
4881 |
# I'd rather use --version here, but apparently some GNU lds only accept -v. |
4882 |
case `$LD -v 2>&1 </dev/null` in |
4883 |
*GNU* | *'with BFD'*) |
4884 |
lt_cv_prog_gnu_ld=yes |
4885 |
;; |
4886 |
*) |
4887 |
lt_cv_prog_gnu_ld=no |
4888 |
;; |
4889 |
esac |
4890 |
fi |
4891 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
4892 |
$as_echo "$lt_cv_prog_gnu_ld" >&6; } |
4893 |
with_gnu_ld=$lt_cv_prog_gnu_ld |
4894 |
|
4895 |
|
4896 |
|
4897 |
|
4898 |
|
4899 |
|
4900 |
|
4901 |
|
4902 |
|
4903 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
4904 |
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
4905 |
if ${lt_cv_path_NM+:} false; then : |
4906 |
$as_echo_n "(cached) " >&6 |
4907 |
else |
4908 |
if test -n "$NM"; then |
4909 |
# Let the user override the test. |
4910 |
lt_cv_path_NM=$NM |
4911 |
else |
4912 |
lt_nm_to_check=${ac_tool_prefix}nm |
4913 |
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
4914 |
lt_nm_to_check="$lt_nm_to_check nm" |
4915 |
fi |
4916 |
for lt_tmp_nm in $lt_nm_to_check; do |
4917 |
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
4918 |
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
4919 |
IFS=$lt_save_ifs |
4920 |
test -z "$ac_dir" && ac_dir=. |
4921 |
tmp_nm=$ac_dir/$lt_tmp_nm |
4922 |
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then |
4923 |
# Check to see if the nm accepts a BSD-compat flag. |
4924 |
# Adding the 'sed 1q' prevents false positives on HP-UX, which says: |
4925 |
# nm: unknown option "B" ignored |
4926 |
# Tru64's nm complains that /dev/null is an invalid object file |
4927 |
# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty |
4928 |
case $build_os in |
4929 |
mingw*) lt_bad_file=conftest.nm/nofile ;; |
4930 |
*) lt_bad_file=/dev/null ;; |
4931 |
esac |
4932 |
case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in |
4933 |
*$lt_bad_file* | *'Invalid file or object type'*) |
4934 |
lt_cv_path_NM="$tmp_nm -B" |
4935 |
break 2 |
4936 |
;; |
4937 |
*) |
4938 |
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
4939 |
*/dev/null*) |
4940 |
lt_cv_path_NM="$tmp_nm -p" |
4941 |
break 2 |
4942 |
;; |
4943 |
*) |
4944 |
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
4945 |
continue # so that we can try to find one that supports BSD flags |
4946 |
;; |
4947 |
esac |
4948 |
;; |
4949 |
esac |
4950 |
fi |
4951 |
done |
4952 |
IFS=$lt_save_ifs |
4953 |
done |
4954 |
: ${lt_cv_path_NM=no} |
4955 |
fi |
4956 |
fi |
4957 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
4958 |
$as_echo "$lt_cv_path_NM" >&6; } |
4959 |
if test no != "$lt_cv_path_NM"; then |
4960 |
NM=$lt_cv_path_NM |
4961 |
else |
4962 |
# Didn't find any BSD compatible name lister, look for dumpbin. |
4963 |
if test -n "$DUMPBIN"; then : |
4964 |
# Let the user override the test. |
4965 |
else |
4966 |
if test -n "$ac_tool_prefix"; then |
4967 |
for ac_prog in dumpbin "link -dump" |
4968 |
do |
4969 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
4970 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
4971 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4972 |
$as_echo_n "checking for $ac_word... " >&6; } |
4973 |
if ${ac_cv_prog_DUMPBIN+:} false; then : |
4974 |
$as_echo_n "(cached) " >&6 |
4975 |
else |
4976 |
if test -n "$DUMPBIN"; then |
4977 |
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
4978 |
else |
4979 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4980 |
for as_dir in $PATH |
4981 |
do |
4982 |
IFS=$as_save_IFS |
4983 |
test -z "$as_dir" && as_dir=. |
4984 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4985 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4986 |
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
4987 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4988 |
break 2 |
4989 |
fi |
4990 |
done |
4991 |
done |
4992 |
IFS=$as_save_IFS |
4993 |
|
4994 |
fi |
4995 |
fi |
4996 |
DUMPBIN=$ac_cv_prog_DUMPBIN |
4997 |
if test -n "$DUMPBIN"; then |
4998 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
4999 |
$as_echo "$DUMPBIN" >&6; } |
5000 |
else |
5001 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5002 |
$as_echo "no" >&6; } |
5003 |
fi |
5004 |
|
5005 |
|
5006 |
test -n "$DUMPBIN" && break |
5007 |
done |
5008 |
fi |
5009 |
if test -z "$DUMPBIN"; then |
5010 |
ac_ct_DUMPBIN=$DUMPBIN |
5011 |
for ac_prog in dumpbin "link -dump" |
5012 |
do |
5013 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
5014 |
set dummy $ac_prog; ac_word=$2 |
5015 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5016 |
$as_echo_n "checking for $ac_word... " >&6; } |
5017 |
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
5018 |
$as_echo_n "(cached) " >&6 |
5019 |
else |
5020 |
if test -n "$ac_ct_DUMPBIN"; then |
5021 |
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
5022 |
else |
5023 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5024 |
for as_dir in $PATH |
5025 |
do |
5026 |
IFS=$as_save_IFS |
5027 |
test -z "$as_dir" && as_dir=. |
5028 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5029 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5030 |
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
5031 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5032 |
break 2 |
5033 |
fi |
5034 |
done |
5035 |
done |
5036 |
IFS=$as_save_IFS |
5037 |
|
5038 |
fi |
5039 |
fi |
5040 |
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
5041 |
if test -n "$ac_ct_DUMPBIN"; then |
5042 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
5043 |
$as_echo "$ac_ct_DUMPBIN" >&6; } |
5044 |
else |
5045 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5046 |
$as_echo "no" >&6; } |
5047 |
fi |
5048 |
|
5049 |
|
5050 |
test -n "$ac_ct_DUMPBIN" && break |
5051 |
done |
5052 |
|
5053 |
if test "x$ac_ct_DUMPBIN" = x; then |
5054 |
DUMPBIN=":" |
5055 |
else |
5056 |
case $cross_compiling:$ac_tool_warned in |
5057 |
yes:) |
5058 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5059 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5060 |
ac_tool_warned=yes ;; |
5061 |
esac |
5062 |
DUMPBIN=$ac_ct_DUMPBIN |
5063 |
fi |
5064 |
fi |
5065 |
|
5066 |
case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in |
5067 |
*COFF*) |
5068 |
DUMPBIN="$DUMPBIN -symbols -headers" |
5069 |
;; |
5070 |
*) |
5071 |
DUMPBIN=: |
5072 |
;; |
5073 |
esac |
5074 |
fi |
5075 |
|
5076 |
if test : != "$DUMPBIN"; then |
5077 |
NM=$DUMPBIN |
5078 |
fi |
5079 |
fi |
5080 |
test -z "$NM" && NM=nm |
5081 |
|
5082 |
|
5083 |
|
5084 |
|
5085 |
|
5086 |
|
5087 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
5088 |
$as_echo_n "checking the name lister ($NM) interface... " >&6; } |
5089 |
if ${lt_cv_nm_interface+:} false; then : |
5090 |
$as_echo_n "(cached) " >&6 |
5091 |
else |
5092 |
lt_cv_nm_interface="BSD nm" |
5093 |
echo "int some_variable = 0;" > conftest.$ac_ext |
5094 |
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
5095 |
(eval "$ac_compile" 2>conftest.err) |
5096 |
cat conftest.err >&5 |
5097 |
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
5098 |
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
5099 |
cat conftest.err >&5 |
5100 |
(eval echo "\"\$as_me:$LINENO: output\"" >&5) |
5101 |
cat conftest.out >&5 |
5102 |
if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
5103 |
lt_cv_nm_interface="MS dumpbin" |
5104 |
fi |
5105 |
rm -f conftest* |
5106 |
fi |
5107 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
5108 |
$as_echo "$lt_cv_nm_interface" >&6; } |
5109 |
|
5110 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
5111 |
$as_echo_n "checking whether ln -s works... " >&6; } |
5112 |
LN_S=$as_ln_s |
5113 |
if test "$LN_S" = "ln -s"; then |
5114 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5115 |
$as_echo "yes" >&6; } |
5116 |
else |
5117 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
5118 |
$as_echo "no, using $LN_S" >&6; } |
5119 |
fi |
5120 |
|
5121 |
# find the maximum length of command line arguments |
5122 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
5123 |
$as_echo_n "checking the maximum length of command line arguments... " >&6; } |
5124 |
if ${lt_cv_sys_max_cmd_len+:} false; then : |
5125 |
$as_echo_n "(cached) " >&6 |
5126 |
else |
5127 |
i=0 |
5128 |
teststring=ABCD |
5129 |
|
5130 |
case $build_os in |
5131 |
msdosdjgpp*) |
5132 |
# On DJGPP, this test can blow up pretty badly due to problems in libc |
5133 |
# (any single argument exceeding 2000 bytes causes a buffer overrun |
5134 |
# during glob expansion). Even if it were fixed, the result of this |
5135 |
# check would be larger than it should be. |
5136 |
lt_cv_sys_max_cmd_len=12288; # 12K is about right |
5137 |
;; |
5138 |
|
5139 |
gnu*) |
5140 |
# Under GNU Hurd, this test is not required because there is |
5141 |
# no limit to the length of command line arguments. |
5142 |
# Libtool will interpret -1 as no limit whatsoever |
5143 |
lt_cv_sys_max_cmd_len=-1; |
5144 |
;; |
5145 |
|
5146 |
cygwin* | mingw* | cegcc*) |
5147 |
# On Win9x/ME, this test blows up -- it succeeds, but takes |
5148 |
# about 5 minutes as the teststring grows exponentially. |
5149 |
# Worse, since 9x/ME are not pre-emptively multitasking, |
5150 |
# you end up with a "frozen" computer, even though with patience |
5151 |
# the test eventually succeeds (with a max line length of 256k). |
5152 |
# Instead, let's just punt: use the minimum linelength reported by |
5153 |
# all of the supported platforms: 8192 (on NT/2K/XP). |
5154 |
lt_cv_sys_max_cmd_len=8192; |
5155 |
;; |
5156 |
|
5157 |
mint*) |
5158 |
# On MiNT this can take a long time and run out of memory. |
5159 |
lt_cv_sys_max_cmd_len=8192; |
5160 |
;; |
5161 |
|
5162 |
amigaos*) |
5163 |
# On AmigaOS with pdksh, this test takes hours, literally. |
5164 |
# So we just punt and use a minimum line length of 8192. |
5165 |
lt_cv_sys_max_cmd_len=8192; |
5166 |
;; |
5167 |
|
5168 |
bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) |
5169 |
# This has been around since 386BSD, at least. Likely further. |
5170 |
if test -x /sbin/sysctl; then |
5171 |
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
5172 |
elif test -x /usr/sbin/sysctl; then |
5173 |
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
5174 |
else |
5175 |
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
5176 |
fi |
5177 |
# And add a safety zone |
5178 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5179 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
5180 |
;; |
5181 |
|
5182 |
interix*) |
5183 |
# We know the value 262144 and hardcode it with a safety zone (like BSD) |
5184 |
lt_cv_sys_max_cmd_len=196608 |
5185 |
;; |
5186 |
|
5187 |
os2*) |
5188 |
# The test takes a long time on OS/2. |
5189 |
lt_cv_sys_max_cmd_len=8192 |
5190 |
;; |
5191 |
|
5192 |
osf*) |
5193 |
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
5194 |
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
5195 |
# nice to cause kernel panics so lets avoid the loop below. |
5196 |
# First set a reasonable default. |
5197 |
lt_cv_sys_max_cmd_len=16384 |
5198 |
# |
5199 |
if test -x /sbin/sysconfig; then |
5200 |
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
5201 |
*1*) lt_cv_sys_max_cmd_len=-1 ;; |
5202 |
esac |
5203 |
fi |
5204 |
;; |
5205 |
sco3.2v5*) |
5206 |
lt_cv_sys_max_cmd_len=102400 |
5207 |
;; |
5208 |
sysv5* | sco5v6* | sysv4.2uw2*) |
5209 |
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
5210 |
if test -n "$kargmax"; then |
5211 |
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
5212 |
else |
5213 |
lt_cv_sys_max_cmd_len=32768 |
5214 |
fi |
5215 |
;; |
5216 |
*) |
5217 |
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
5218 |
if test -n "$lt_cv_sys_max_cmd_len" && \ |
5219 |
test undefined != "$lt_cv_sys_max_cmd_len"; then |
5220 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5221 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
5222 |
else |
5223 |
# Make teststring a little bigger before we do anything with it. |
5224 |
# a 1K string should be a reasonable start. |
5225 |
for i in 1 2 3 4 5 6 7 8; do |
5226 |
teststring=$teststring$teststring |
5227 |
done |
5228 |
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
5229 |
# If test is not a shell built-in, we'll probably end up computing a |
5230 |
# maximum length that is only half of the actual maximum length, but |
5231 |
# we can't tell. |
5232 |
while { test X`env echo "$teststring$teststring" 2>/dev/null` \ |
5233 |
= "X$teststring$teststring"; } >/dev/null 2>&1 && |
5234 |
test 17 != "$i" # 1/2 MB should be enough |
5235 |
do |
5236 |
i=`expr $i + 1` |
5237 |
teststring=$teststring$teststring |
5238 |
done |
5239 |
# Only check the string length outside the loop. |
5240 |
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
5241 |
teststring= |
5242 |
# Add a significant safety factor because C++ compilers can tack on |
5243 |
# massive amounts of additional arguments before passing them to the |
5244 |
# linker. It appears as though 1/2 is a usable value. |
5245 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
5246 |
fi |
5247 |
;; |
5248 |
esac |
5249 |
|
5250 |
fi |
5251 |
|
5252 |
if test -n "$lt_cv_sys_max_cmd_len"; then |
5253 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
5254 |
$as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
5255 |
else |
5256 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
5257 |
$as_echo "none" >&6; } |
5258 |
fi |
5259 |
max_cmd_len=$lt_cv_sys_max_cmd_len |
5260 |
|
5261 |
|
5262 |
|
5263 |
|
5264 |
|
5265 |
|
5266 |
: ${CP="cp -f"} |
5267 |
: ${MV="mv -f"} |
5268 |
: ${RM="rm -f"} |
5269 |
|
5270 |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
5271 |
lt_unset=unset |
5272 |
else |
5273 |
lt_unset=false |
5274 |
fi |
5275 |
|
5276 |
|
5277 |
|
5278 |
|
5279 |
|
5280 |
# test EBCDIC or ASCII |
5281 |
case `echo X|tr X '\101'` in |
5282 |
A) # ASCII based system |
5283 |
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
5284 |
lt_SP2NL='tr \040 \012' |
5285 |
lt_NL2SP='tr \015\012 \040\040' |
5286 |
;; |
5287 |
*) # EBCDIC based system |
5288 |
lt_SP2NL='tr \100 \n' |
5289 |
lt_NL2SP='tr \r\n \100\100' |
5290 |
;; |
5291 |
esac |
5292 |
|
5293 |
|
5294 |
|
5295 |
|
5296 |
|
5297 |
|
5298 |
|
5299 |
|
5300 |
|
5301 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
5302 |
$as_echo_n "checking how to convert $build file names to $host format... " >&6; } |
5303 |
if ${lt_cv_to_host_file_cmd+:} false; then : |
5304 |
$as_echo_n "(cached) " >&6 |
5305 |
else |
5306 |
case $host in |
5307 |
*-*-mingw* ) |
5308 |
case $build in |
5309 |
*-*-mingw* ) # actually msys |
5310 |
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
5311 |
;; |
5312 |
*-*-cygwin* ) |
5313 |
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
5314 |
;; |
5315 |
* ) # otherwise, assume *nix |
5316 |
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
5317 |
;; |
5318 |
esac |
5319 |
;; |
5320 |
*-*-cygwin* ) |
5321 |
case $build in |
5322 |
*-*-mingw* ) # actually msys |
5323 |
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
5324 |
;; |
5325 |
*-*-cygwin* ) |
5326 |
lt_cv_to_host_file_cmd=func_convert_file_noop |
5327 |
;; |
5328 |
* ) # otherwise, assume *nix |
5329 |
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
5330 |
;; |
5331 |
esac |
5332 |
;; |
5333 |
* ) # unhandled hosts (and "normal" native builds) |
5334 |
lt_cv_to_host_file_cmd=func_convert_file_noop |
5335 |
;; |
5336 |
esac |
5337 |
|
5338 |
fi |
5339 |
|
5340 |
to_host_file_cmd=$lt_cv_to_host_file_cmd |
5341 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 |
5342 |
$as_echo "$lt_cv_to_host_file_cmd" >&6; } |
5343 |
|
5344 |
|
5345 |
|
5346 |
|
5347 |
|
5348 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
5349 |
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } |
5350 |
if ${lt_cv_to_tool_file_cmd+:} false; then : |
5351 |
$as_echo_n "(cached) " >&6 |
5352 |
else |
5353 |
#assume ordinary cross tools, or native build. |
5354 |
lt_cv_to_tool_file_cmd=func_convert_file_noop |
5355 |
case $host in |
5356 |
*-*-mingw* ) |
5357 |
case $build in |
5358 |
*-*-mingw* ) # actually msys |
5359 |
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
5360 |
;; |
5361 |
esac |
5362 |
;; |
5363 |
esac |
5364 |
|
5365 |
fi |
5366 |
|
5367 |
to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
5368 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 |
5369 |
$as_echo "$lt_cv_to_tool_file_cmd" >&6; } |
5370 |
|
5371 |
|
5372 |
|
5373 |
|
5374 |
|
5375 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
5376 |
$as_echo_n "checking for $LD option to reload object files... " >&6; } |
5377 |
if ${lt_cv_ld_reload_flag+:} false; then : |
5378 |
$as_echo_n "(cached) " >&6 |
5379 |
else |
5380 |
lt_cv_ld_reload_flag='-r' |
5381 |
fi |
5382 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
5383 |
$as_echo "$lt_cv_ld_reload_flag" >&6; } |
5384 |
reload_flag=$lt_cv_ld_reload_flag |
5385 |
case $reload_flag in |
5386 |
"" | " "*) ;; |
5387 |
*) reload_flag=" $reload_flag" ;; |
5388 |
esac |
5389 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
5390 |
case $host_os in |
5391 |
cygwin* | mingw* | pw32* | cegcc*) |
5392 |
if test yes != "$GCC"; then |
5393 |
reload_cmds=false |
5394 |
fi |
5395 |
;; |
5396 |
darwin*) |
5397 |
if test yes = "$GCC"; then |
5398 |
reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' |
5399 |
else |
5400 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
5401 |
fi |
5402 |
;; |
5403 |
esac |
5404 |
|
5405 |
|
5406 |
|
5407 |
|
5408 |
|
5409 |
|
5410 |
|
5411 |
|
5412 |
|
5413 |
if test -n "$ac_tool_prefix"; then |
5414 |
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
5415 |
set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
5416 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5417 |
$as_echo_n "checking for $ac_word... " >&6; } |
5418 |
if ${ac_cv_prog_OBJDUMP+:} false; then : |
5419 |
$as_echo_n "(cached) " >&6 |
5420 |
else |
5421 |
if test -n "$OBJDUMP"; then |
5422 |
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
5423 |
else |
5424 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5425 |
for as_dir in $PATH |
5426 |
do |
5427 |
IFS=$as_save_IFS |
5428 |
test -z "$as_dir" && as_dir=. |
5429 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5430 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5431 |
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
5432 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5433 |
break 2 |
5434 |
fi |
5435 |
done |
5436 |
done |
5437 |
IFS=$as_save_IFS |
5438 |
|
5439 |
fi |
5440 |
fi |
5441 |
OBJDUMP=$ac_cv_prog_OBJDUMP |
5442 |
if test -n "$OBJDUMP"; then |
5443 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
5444 |
$as_echo "$OBJDUMP" >&6; } |
5445 |
else |
5446 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5447 |
$as_echo "no" >&6; } |
5448 |
fi |
5449 |
|
5450 |
|
5451 |
fi |
5452 |
if test -z "$ac_cv_prog_OBJDUMP"; then |
5453 |
ac_ct_OBJDUMP=$OBJDUMP |
5454 |
# Extract the first word of "objdump", so it can be a program name with args. |
5455 |
set dummy objdump; ac_word=$2 |
5456 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5457 |
$as_echo_n "checking for $ac_word... " >&6; } |
5458 |
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
5459 |
$as_echo_n "(cached) " >&6 |
5460 |
else |
5461 |
if test -n "$ac_ct_OBJDUMP"; then |
5462 |
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
5463 |
else |
5464 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5465 |
for as_dir in $PATH |
5466 |
do |
5467 |
IFS=$as_save_IFS |
5468 |
test -z "$as_dir" && as_dir=. |
5469 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5470 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5471 |
ac_cv_prog_ac_ct_OBJDUMP="objdump" |
5472 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5473 |
break 2 |
5474 |
fi |
5475 |
done |
5476 |
done |
5477 |
IFS=$as_save_IFS |
5478 |
|
5479 |
fi |
5480 |
fi |
5481 |
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
5482 |
if test -n "$ac_ct_OBJDUMP"; then |
5483 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
5484 |
$as_echo "$ac_ct_OBJDUMP" >&6; } |
5485 |
else |
5486 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5487 |
$as_echo "no" >&6; } |
5488 |
fi |
5489 |
|
5490 |
if test "x$ac_ct_OBJDUMP" = x; then |
5491 |
OBJDUMP="false" |
5492 |
else |
5493 |
case $cross_compiling:$ac_tool_warned in |
5494 |
yes:) |
5495 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5496 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5497 |
ac_tool_warned=yes ;; |
5498 |
esac |
5499 |
OBJDUMP=$ac_ct_OBJDUMP |
5500 |
fi |
5501 |
else |
5502 |
OBJDUMP="$ac_cv_prog_OBJDUMP" |
5503 |
fi |
5504 |
|
5505 |
test -z "$OBJDUMP" && OBJDUMP=objdump |
5506 |
|
5507 |
|
5508 |
|
5509 |
|
5510 |
|
5511 |
|
5512 |
|
5513 |
|
5514 |
|
5515 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
5516 |
$as_echo_n "checking how to recognize dependent libraries... " >&6; } |
5517 |
if ${lt_cv_deplibs_check_method+:} false; then : |
5518 |
$as_echo_n "(cached) " >&6 |
5519 |
else |
5520 |
lt_cv_file_magic_cmd='$MAGIC_CMD' |
5521 |
lt_cv_file_magic_test_file= |
5522 |
lt_cv_deplibs_check_method='unknown' |
5523 |
# Need to set the preceding variable on all platforms that support |
5524 |
# interlibrary dependencies. |
5525 |
# 'none' -- dependencies not supported. |
5526 |
# 'unknown' -- same as none, but documents that we really don't know. |
5527 |
# 'pass_all' -- all dependencies passed with no checks. |
5528 |
# 'test_compile' -- check by making test program. |
5529 |
# 'file_magic [[regex]]' -- check by looking for files in library path |
5530 |
# that responds to the $file_magic_cmd with a given extended regex. |
5531 |
# If you have 'file' or equivalent on your system and you're not sure |
5532 |
# whether 'pass_all' will *always* work, you probably want this one. |
5533 |
|
5534 |
case $host_os in |
5535 |
aix[4-9]*) |
5536 |
lt_cv_deplibs_check_method=pass_all |
5537 |
;; |
5538 |
|
5539 |
beos*) |
5540 |
lt_cv_deplibs_check_method=pass_all |
5541 |
;; |
5542 |
|
5543 |
bsdi[45]*) |
5544 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
5545 |
lt_cv_file_magic_cmd='/usr/bin/file -L' |
5546 |
lt_cv_file_magic_test_file=/shlib/libc.so |
5547 |
;; |
5548 |
|
5549 |
cygwin*) |
5550 |
# func_win32_libid is a shell function defined in ltmain.sh |
5551 |
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
5552 |
lt_cv_file_magic_cmd='func_win32_libid' |
5553 |
;; |
5554 |
|
5555 |
mingw* | pw32*) |
5556 |
# Base MSYS/MinGW do not provide the 'file' command needed by |
5557 |
# func_win32_libid shell function, so use a weaker test based on 'objdump', |
5558 |
# unless we find 'file', for example because we are cross-compiling. |
5559 |
if ( file / ) >/dev/null 2>&1; then |
5560 |
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
5561 |
lt_cv_file_magic_cmd='func_win32_libid' |
5562 |
else |
5563 |
# Keep this pattern in sync with the one in func_win32_libid. |
5564 |
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' |
5565 |
lt_cv_file_magic_cmd='$OBJDUMP -f' |
5566 |
fi |
5567 |
;; |
5568 |
|
5569 |
cegcc*) |
5570 |
# use the weaker test based on 'objdump'. See mingw*. |
5571 |
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
5572 |
lt_cv_file_magic_cmd='$OBJDUMP -f' |
5573 |
;; |
5574 |
|
5575 |
darwin* | rhapsody*) |
5576 |
lt_cv_deplibs_check_method=pass_all |
5577 |
;; |
5578 |
|
5579 |
freebsd* | dragonfly*) |
5580 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
5581 |
case $host_cpu in |
5582 |
i*86 ) |
5583 |
# Not sure whether the presence of OpenBSD here was a mistake. |
5584 |
# Let's accept both of them until this is cleared up. |
5585 |
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
5586 |
lt_cv_file_magic_cmd=/usr/bin/file |
5587 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
5588 |
;; |
5589 |
esac |
5590 |
else |
5591 |
lt_cv_deplibs_check_method=pass_all |
5592 |
fi |
5593 |
;; |
5594 |
|
5595 |
haiku*) |
5596 |
lt_cv_deplibs_check_method=pass_all |
5597 |
;; |
5598 |
|
5599 |
hpux10.20* | hpux11*) |
5600 |
lt_cv_file_magic_cmd=/usr/bin/file |
5601 |
case $host_cpu in |
5602 |
ia64*) |
5603 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
5604 |
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
5605 |
;; |
5606 |
hppa*64*) |
5607 |
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]' |
5608 |
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
5609 |
;; |
5610 |
*) |
5611 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
5612 |
lt_cv_file_magic_test_file=/usr/lib/libc.sl |
5613 |
;; |
5614 |
esac |
5615 |
;; |
5616 |
|
5617 |
interix[3-9]*) |
5618 |
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
5619 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
5620 |
;; |
5621 |
|
5622 |
irix5* | irix6* | nonstopux*) |
5623 |
case $LD in |
5624 |
*-32|*"-32 ") libmagic=32-bit;; |
5625 |
*-n32|*"-n32 ") libmagic=N32;; |
5626 |
*-64|*"-64 ") libmagic=64-bit;; |
5627 |
*) libmagic=never-match;; |
5628 |
esac |
5629 |
lt_cv_deplibs_check_method=pass_all |
5630 |
;; |
5631 |
|
5632 |
# This must be glibc/ELF. |
5633 |
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
5634 |
lt_cv_deplibs_check_method=pass_all |
5635 |
;; |
5636 |
|
5637 |
netbsd*) |
5638 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
5639 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
5640 |
else |
5641 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
5642 |
fi |
5643 |
;; |
5644 |
|
5645 |
newos6*) |
5646 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
5647 |
lt_cv_file_magic_cmd=/usr/bin/file |
5648 |
lt_cv_file_magic_test_file=/usr/lib/libnls.so |
5649 |
;; |
5650 |
|
5651 |
*nto* | *qnx*) |
5652 |
lt_cv_deplibs_check_method=pass_all |
5653 |
;; |
5654 |
|
5655 |
openbsd* | bitrig*) |
5656 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
5657 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
5658 |
else |
5659 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
5660 |
fi |
5661 |
;; |
5662 |
|
5663 |
osf3* | osf4* | osf5*) |
5664 |
lt_cv_deplibs_check_method=pass_all |
5665 |
;; |
5666 |
|
5667 |
rdos*) |
5668 |
lt_cv_deplibs_check_method=pass_all |
5669 |
;; |
5670 |
|
5671 |
solaris*) |
5672 |
lt_cv_deplibs_check_method=pass_all |
5673 |
;; |
5674 |
|
5675 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
5676 |
lt_cv_deplibs_check_method=pass_all |
5677 |
;; |
5678 |
|
5679 |
sysv4 | sysv4.3*) |
5680 |
case $host_vendor in |
5681 |
motorola) |
5682 |
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]' |
5683 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
5684 |
;; |
5685 |
ncr) |
5686 |
lt_cv_deplibs_check_method=pass_all |
5687 |
;; |
5688 |
sequent) |
5689 |
lt_cv_file_magic_cmd='/bin/file' |
5690 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
5691 |
;; |
5692 |
sni) |
5693 |
lt_cv_file_magic_cmd='/bin/file' |
5694 |
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
5695 |
lt_cv_file_magic_test_file=/lib/libc.so |
5696 |
;; |
5697 |
siemens) |
5698 |
lt_cv_deplibs_check_method=pass_all |
5699 |
;; |
5700 |
pc) |
5701 |
lt_cv_deplibs_check_method=pass_all |
5702 |
;; |
5703 |
esac |
5704 |
;; |
5705 |
|
5706 |
tpf*) |
5707 |
lt_cv_deplibs_check_method=pass_all |
5708 |
;; |
5709 |
os2*) |
5710 |
lt_cv_deplibs_check_method=pass_all |
5711 |
;; |
5712 |
esac |
5713 |
|
5714 |
fi |
5715 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
5716 |
$as_echo "$lt_cv_deplibs_check_method" >&6; } |
5717 |
|
5718 |
file_magic_glob= |
5719 |
want_nocaseglob=no |
5720 |
if test "$build" = "$host"; then |
5721 |
case $host_os in |
5722 |
mingw* | pw32*) |
5723 |
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
5724 |
want_nocaseglob=yes |
5725 |
else |
5726 |
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` |
5727 |
fi |
5728 |
;; |
5729 |
esac |
5730 |
fi |
5731 |
|
5732 |
file_magic_cmd=$lt_cv_file_magic_cmd |
5733 |
deplibs_check_method=$lt_cv_deplibs_check_method |
5734 |
test -z "$deplibs_check_method" && deplibs_check_method=unknown |
5735 |
|
5736 |
|
5737 |
|
5738 |
|
5739 |
|
5740 |
|
5741 |
|
5742 |
|
5743 |
|
5744 |
|
5745 |
|
5746 |
|
5747 |
|
5748 |
|
5749 |
|
5750 |
|
5751 |
|
5752 |
|
5753 |
|
5754 |
|
5755 |
|
5756 |
|
5757 |
if test -n "$ac_tool_prefix"; then |
5758 |
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
5759 |
set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
5760 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5761 |
$as_echo_n "checking for $ac_word... " >&6; } |
5762 |
if ${ac_cv_prog_DLLTOOL+:} false; then : |
5763 |
$as_echo_n "(cached) " >&6 |
5764 |
else |
5765 |
if test -n "$DLLTOOL"; then |
5766 |
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
5767 |
else |
5768 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5769 |
for as_dir in $PATH |
5770 |
do |
5771 |
IFS=$as_save_IFS |
5772 |
test -z "$as_dir" && as_dir=. |
5773 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5774 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5775 |
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
5776 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5777 |
break 2 |
5778 |
fi |
5779 |
done |
5780 |
done |
5781 |
IFS=$as_save_IFS |
5782 |
|
5783 |
fi |
5784 |
fi |
5785 |
DLLTOOL=$ac_cv_prog_DLLTOOL |
5786 |
if test -n "$DLLTOOL"; then |
5787 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
5788 |
$as_echo "$DLLTOOL" >&6; } |
5789 |
else |
5790 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5791 |
$as_echo "no" >&6; } |
5792 |
fi |
5793 |
|
5794 |
|
5795 |
fi |
5796 |
if test -z "$ac_cv_prog_DLLTOOL"; then |
5797 |
ac_ct_DLLTOOL=$DLLTOOL |
5798 |
# Extract the first word of "dlltool", so it can be a program name with args. |
5799 |
set dummy dlltool; ac_word=$2 |
5800 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5801 |
$as_echo_n "checking for $ac_word... " >&6; } |
5802 |
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
5803 |
$as_echo_n "(cached) " >&6 |
5804 |
else |
5805 |
if test -n "$ac_ct_DLLTOOL"; then |
5806 |
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
5807 |
else |
5808 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5809 |
for as_dir in $PATH |
5810 |
do |
5811 |
IFS=$as_save_IFS |
5812 |
test -z "$as_dir" && as_dir=. |
5813 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5814 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5815 |
ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
5816 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5817 |
break 2 |
5818 |
fi |
5819 |
done |
5820 |
done |
5821 |
IFS=$as_save_IFS |
5822 |
|
5823 |
fi |
5824 |
fi |
5825 |
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
5826 |
if test -n "$ac_ct_DLLTOOL"; then |
5827 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
5828 |
$as_echo "$ac_ct_DLLTOOL" >&6; } |
5829 |
else |
5830 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5831 |
$as_echo "no" >&6; } |
5832 |
fi |
5833 |
|
5834 |
if test "x$ac_ct_DLLTOOL" = x; then |
5835 |
DLLTOOL="false" |
5836 |
else |
5837 |
case $cross_compiling:$ac_tool_warned in |
5838 |
yes:) |
5839 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5840 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5841 |
ac_tool_warned=yes ;; |
5842 |
esac |
5843 |
DLLTOOL=$ac_ct_DLLTOOL |
5844 |
fi |
5845 |
else |
5846 |
DLLTOOL="$ac_cv_prog_DLLTOOL" |
5847 |
fi |
5848 |
|
5849 |
test -z "$DLLTOOL" && DLLTOOL=dlltool |
5850 |
|
5851 |
|
5852 |
|
5853 |
|
5854 |
|
5855 |
|
5856 |
|
5857 |
|
5858 |
|
5859 |
|
5860 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
5861 |
$as_echo_n "checking how to associate runtime and link libraries... " >&6; } |
5862 |
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : |
5863 |
$as_echo_n "(cached) " >&6 |
5864 |
else |
5865 |
lt_cv_sharedlib_from_linklib_cmd='unknown' |
5866 |
|
5867 |
case $host_os in |
5868 |
cygwin* | mingw* | pw32* | cegcc*) |
5869 |
# two different shell functions defined in ltmain.sh; |
5870 |
# decide which one to use based on capabilities of $DLLTOOL |
5871 |
case `$DLLTOOL --help 2>&1` in |
5872 |
*--identify-strict*) |
5873 |
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
5874 |
;; |
5875 |
*) |
5876 |
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
5877 |
;; |
5878 |
esac |
5879 |
;; |
5880 |
*) |
5881 |
# fallback: assume linklib IS sharedlib |
5882 |
lt_cv_sharedlib_from_linklib_cmd=$ECHO |
5883 |
;; |
5884 |
esac |
5885 |
|
5886 |
fi |
5887 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
5888 |
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } |
5889 |
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
5890 |
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
5891 |
|
5892 |
|
5893 |
|
5894 |
|
5895 |
|
5896 |
|
5897 |
|
5898 |
|
5899 |
if test -n "$ac_tool_prefix"; then |
5900 |
for ac_prog in ar |
5901 |
do |
5902 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
5903 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
5904 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5905 |
$as_echo_n "checking for $ac_word... " >&6; } |
5906 |
if ${ac_cv_prog_AR+:} false; then : |
5907 |
$as_echo_n "(cached) " >&6 |
5908 |
else |
5909 |
if test -n "$AR"; then |
5910 |
ac_cv_prog_AR="$AR" # Let the user override the test. |
5911 |
else |
5912 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5913 |
for as_dir in $PATH |
5914 |
do |
5915 |
IFS=$as_save_IFS |
5916 |
test -z "$as_dir" && as_dir=. |
5917 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5918 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5919 |
ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
5920 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5921 |
break 2 |
5922 |
fi |
5923 |
done |
5924 |
done |
5925 |
IFS=$as_save_IFS |
5926 |
|
5927 |
fi |
5928 |
fi |
5929 |
AR=$ac_cv_prog_AR |
5930 |
if test -n "$AR"; then |
5931 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
5932 |
$as_echo "$AR" >&6; } |
5933 |
else |
5934 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5935 |
$as_echo "no" >&6; } |
5936 |
fi |
5937 |
|
5938 |
|
5939 |
test -n "$AR" && break |
5940 |
done |
5941 |
fi |
5942 |
if test -z "$AR"; then |
5943 |
ac_ct_AR=$AR |
5944 |
for ac_prog in ar |
5945 |
do |
5946 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
5947 |
set dummy $ac_prog; ac_word=$2 |
5948 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5949 |
$as_echo_n "checking for $ac_word... " >&6; } |
5950 |
if ${ac_cv_prog_ac_ct_AR+:} false; then : |
5951 |
$as_echo_n "(cached) " >&6 |
5952 |
else |
5953 |
if test -n "$ac_ct_AR"; then |
5954 |
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
5955 |
else |
5956 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5957 |
for as_dir in $PATH |
5958 |
do |
5959 |
IFS=$as_save_IFS |
5960 |
test -z "$as_dir" && as_dir=. |
5961 |
for ac_exec_ext in '' $ac_executable_extensions; do |
5962 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5963 |
ac_cv_prog_ac_ct_AR="$ac_prog" |
5964 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5965 |
break 2 |
5966 |
fi |
5967 |
done |
5968 |
done |
5969 |
IFS=$as_save_IFS |
5970 |
|
5971 |
fi |
5972 |
fi |
5973 |
ac_ct_AR=$ac_cv_prog_ac_ct_AR |
5974 |
if test -n "$ac_ct_AR"; then |
5975 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
5976 |
$as_echo "$ac_ct_AR" >&6; } |
5977 |
else |
5978 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5979 |
$as_echo "no" >&6; } |
5980 |
fi |
5981 |
|
5982 |
|
5983 |
test -n "$ac_ct_AR" && break |
5984 |
done |
5985 |
|
5986 |
if test "x$ac_ct_AR" = x; then |
5987 |
AR="false" |
5988 |
else |
5989 |
case $cross_compiling:$ac_tool_warned in |
5990 |
yes:) |
5991 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
5992 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5993 |
ac_tool_warned=yes ;; |
5994 |
esac |
5995 |
AR=$ac_ct_AR |
5996 |
fi |
5997 |
fi |
5998 |
|
5999 |
: ${AR=ar} |
6000 |
: ${AR_FLAGS=cru} |
6001 |
|
6002 |
|
6003 |
|
6004 |
|
6005 |
|
6006 |
|
6007 |
|
6008 |
|
6009 |
|
6010 |
|
6011 |
|
6012 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
6013 |
$as_echo_n "checking for archiver @FILE support... " >&6; } |
6014 |
if ${lt_cv_ar_at_file+:} false; then : |
6015 |
$as_echo_n "(cached) " >&6 |
6016 |
else |
6017 |
lt_cv_ar_at_file=no |
6018 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6019 |
/* end confdefs.h. */ |
6020 |
|
6021 |
int |
6022 |
main () |
6023 |
{ |
6024 |
|
6025 |
; |
6026 |
return 0; |
6027 |
} |
6028 |
_ACEOF |
6029 |
if ac_fn_c_try_compile "$LINENO"; then : |
6030 |
echo conftest.$ac_objext > conftest.lst |
6031 |
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' |
6032 |
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
6033 |
(eval $lt_ar_try) 2>&5 |
6034 |
ac_status=$? |
6035 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6036 |
test $ac_status = 0; } |
6037 |
if test 0 -eq "$ac_status"; then |
6038 |
# Ensure the archiver fails upon bogus file names. |
6039 |
rm -f conftest.$ac_objext libconftest.a |
6040 |
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
6041 |
(eval $lt_ar_try) 2>&5 |
6042 |
ac_status=$? |
6043 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6044 |
test $ac_status = 0; } |
6045 |
if test 0 -ne "$ac_status"; then |
6046 |
lt_cv_ar_at_file=@ |
6047 |
fi |
6048 |
fi |
6049 |
rm -f conftest.* libconftest.a |
6050 |
|
6051 |
fi |
6052 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6053 |
|
6054 |
fi |
6055 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
6056 |
$as_echo "$lt_cv_ar_at_file" >&6; } |
6057 |
|
6058 |
if test no = "$lt_cv_ar_at_file"; then |
6059 |
archiver_list_spec= |
6060 |
else |
6061 |
archiver_list_spec=$lt_cv_ar_at_file |
6062 |
fi |
6063 |
|
6064 |
|
6065 |
|
6066 |
|
6067 |
|
6068 |
|
6069 |
|
6070 |
if test -n "$ac_tool_prefix"; then |
6071 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
6072 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
6073 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6074 |
$as_echo_n "checking for $ac_word... " >&6; } |
6075 |
if ${ac_cv_prog_STRIP+:} false; then : |
6076 |
$as_echo_n "(cached) " >&6 |
6077 |
else |
6078 |
if test -n "$STRIP"; then |
6079 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
6080 |
else |
6081 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6082 |
for as_dir in $PATH |
6083 |
do |
6084 |
IFS=$as_save_IFS |
6085 |
test -z "$as_dir" && as_dir=. |
6086 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6087 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6088 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
6089 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6090 |
break 2 |
6091 |
fi |
6092 |
done |
6093 |
done |
6094 |
IFS=$as_save_IFS |
6095 |
|
6096 |
fi |
6097 |
fi |
6098 |
STRIP=$ac_cv_prog_STRIP |
6099 |
if test -n "$STRIP"; then |
6100 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
6101 |
$as_echo "$STRIP" >&6; } |
6102 |
else |
6103 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6104 |
$as_echo "no" >&6; } |
6105 |
fi |
6106 |
|
6107 |
|
6108 |
fi |
6109 |
if test -z "$ac_cv_prog_STRIP"; then |
6110 |
ac_ct_STRIP=$STRIP |
6111 |
# Extract the first word of "strip", so it can be a program name with args. |
6112 |
set dummy strip; ac_word=$2 |
6113 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6114 |
$as_echo_n "checking for $ac_word... " >&6; } |
6115 |
if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
6116 |
$as_echo_n "(cached) " >&6 |
6117 |
else |
6118 |
if test -n "$ac_ct_STRIP"; then |
6119 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
6120 |
else |
6121 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6122 |
for as_dir in $PATH |
6123 |
do |
6124 |
IFS=$as_save_IFS |
6125 |
test -z "$as_dir" && as_dir=. |
6126 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6127 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6128 |
ac_cv_prog_ac_ct_STRIP="strip" |
6129 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6130 |
break 2 |
6131 |
fi |
6132 |
done |
6133 |
done |
6134 |
IFS=$as_save_IFS |
6135 |
|
6136 |
fi |
6137 |
fi |
6138 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
6139 |
if test -n "$ac_ct_STRIP"; then |
6140 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
6141 |
$as_echo "$ac_ct_STRIP" >&6; } |
6142 |
else |
6143 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6144 |
$as_echo "no" >&6; } |
6145 |
fi |
6146 |
|
6147 |
if test "x$ac_ct_STRIP" = x; then |
6148 |
STRIP=":" |
6149 |
else |
6150 |
case $cross_compiling:$ac_tool_warned in |
6151 |
yes:) |
6152 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
6153 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6154 |
ac_tool_warned=yes ;; |
6155 |
esac |
6156 |
STRIP=$ac_ct_STRIP |
6157 |
fi |
6158 |
else |
6159 |
STRIP="$ac_cv_prog_STRIP" |
6160 |
fi |
6161 |
|
6162 |
test -z "$STRIP" && STRIP=: |
6163 |
|
6164 |
|
6165 |
|
6166 |
|
6167 |
|
6168 |
|
6169 |
if test -n "$ac_tool_prefix"; then |
6170 |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
6171 |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
6172 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6173 |
$as_echo_n "checking for $ac_word... " >&6; } |
6174 |
if ${ac_cv_prog_RANLIB+:} false; then : |
6175 |
$as_echo_n "(cached) " >&6 |
6176 |
else |
6177 |
if test -n "$RANLIB"; then |
6178 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
6179 |
else |
6180 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6181 |
for as_dir in $PATH |
6182 |
do |
6183 |
IFS=$as_save_IFS |
6184 |
test -z "$as_dir" && as_dir=. |
6185 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6186 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6187 |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6188 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6189 |
break 2 |
6190 |
fi |
6191 |
done |
6192 |
done |
6193 |
IFS=$as_save_IFS |
6194 |
|
6195 |
fi |
6196 |
fi |
6197 |
RANLIB=$ac_cv_prog_RANLIB |
6198 |
if test -n "$RANLIB"; then |
6199 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
6200 |
$as_echo "$RANLIB" >&6; } |
6201 |
else |
6202 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6203 |
$as_echo "no" >&6; } |
6204 |
fi |
6205 |
|
6206 |
|
6207 |
fi |
6208 |
if test -z "$ac_cv_prog_RANLIB"; then |
6209 |
ac_ct_RANLIB=$RANLIB |
6210 |
# Extract the first word of "ranlib", so it can be a program name with args. |
6211 |
set dummy ranlib; ac_word=$2 |
6212 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6213 |
$as_echo_n "checking for $ac_word... " >&6; } |
6214 |
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
6215 |
$as_echo_n "(cached) " >&6 |
6216 |
else |
6217 |
if test -n "$ac_ct_RANLIB"; then |
6218 |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
6219 |
else |
6220 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6221 |
for as_dir in $PATH |
6222 |
do |
6223 |
IFS=$as_save_IFS |
6224 |
test -z "$as_dir" && as_dir=. |
6225 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6226 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6227 |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
6228 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6229 |
break 2 |
6230 |
fi |
6231 |
done |
6232 |
done |
6233 |
IFS=$as_save_IFS |
6234 |
|
6235 |
fi |
6236 |
fi |
6237 |
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
6238 |
if test -n "$ac_ct_RANLIB"; then |
6239 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
6240 |
$as_echo "$ac_ct_RANLIB" >&6; } |
6241 |
else |
6242 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6243 |
$as_echo "no" >&6; } |
6244 |
fi |
6245 |
|
6246 |
if test "x$ac_ct_RANLIB" = x; then |
6247 |
RANLIB=":" |
6248 |
else |
6249 |
case $cross_compiling:$ac_tool_warned in |
6250 |
yes:) |
6251 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
6252 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6253 |
ac_tool_warned=yes ;; |
6254 |
esac |
6255 |
RANLIB=$ac_ct_RANLIB |
6256 |
fi |
6257 |
else |
6258 |
RANLIB="$ac_cv_prog_RANLIB" |
6259 |
fi |
6260 |
|
6261 |
test -z "$RANLIB" && RANLIB=: |
6262 |
|
6263 |
|
6264 |
|
6265 |
|
6266 |
|
6267 |
|
6268 |
# Determine commands to create old-style static archives. |
6269 |
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
6270 |
old_postinstall_cmds='chmod 644 $oldlib' |
6271 |
old_postuninstall_cmds= |
6272 |
|
6273 |
if test -n "$RANLIB"; then |
6274 |
case $host_os in |
6275 |
bitrig* | openbsd*) |
6276 |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
6277 |
;; |
6278 |
*) |
6279 |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
6280 |
;; |
6281 |
esac |
6282 |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
6283 |
fi |
6284 |
|
6285 |
case $host_os in |
6286 |
darwin*) |
6287 |
lock_old_archive_extraction=yes ;; |
6288 |
*) |
6289 |
lock_old_archive_extraction=no ;; |
6290 |
esac |
6291 |
|
6292 |
|
6293 |
|
6294 |
|
6295 |
|
6296 |
|
6297 |
|
6298 |
|
6299 |
|
6300 |
|
6301 |
|
6302 |
|
6303 |
|
6304 |
|
6305 |
|
6306 |
|
6307 |
|
6308 |
|
6309 |
|
6310 |
|
6311 |
|
6312 |
|
6313 |
|
6314 |
|
6315 |
|
6316 |
|
6317 |
|
6318 |
|
6319 |
|
6320 |
|
6321 |
|
6322 |
|
6323 |
|
6324 |
|
6325 |
|
6326 |
|
6327 |
|
6328 |
|
6329 |
|
6330 |
# If no C compiler was specified, use CC. |
6331 |
LTCC=${LTCC-"$CC"} |
6332 |
|
6333 |
# If no C compiler flags were specified, use CFLAGS. |
6334 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
6335 |
|
6336 |
# Allow CC to be a program name with arguments. |
6337 |
compiler=$CC |
6338 |
|
6339 |
|
6340 |
# Check for command to grab the raw symbol name followed by C symbol from nm. |
6341 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
6342 |
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
6343 |
if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
6344 |
$as_echo_n "(cached) " >&6 |
6345 |
else |
6346 |
|
6347 |
# These are sane defaults that work on at least a few old systems. |
6348 |
# [They come from Ultrix. What could be older than Ultrix?!! ;)] |
6349 |
|
6350 |
# Character class describing NM global symbol codes. |
6351 |
symcode='[BCDEGRST]' |
6352 |
|
6353 |
# Regexp to match symbols that can be accessed directly from C. |
6354 |
sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
6355 |
|
6356 |
# Define system-specific variables. |
6357 |
case $host_os in |
6358 |
aix*) |
6359 |
symcode='[BCDT]' |
6360 |
;; |
6361 |
cygwin* | mingw* | pw32* | cegcc*) |
6362 |
symcode='[ABCDGISTW]' |
6363 |
;; |
6364 |
hpux*) |
6365 |
if test ia64 = "$host_cpu"; then |
6366 |
symcode='[ABCDEGRST]' |
6367 |
fi |
6368 |
;; |
6369 |
irix* | nonstopux*) |
6370 |
symcode='[BCDEGRST]' |
6371 |
;; |
6372 |
osf*) |
6373 |
symcode='[BCDEGQRST]' |
6374 |
;; |
6375 |
solaris*) |
6376 |
symcode='[BDRT]' |
6377 |
;; |
6378 |
sco3.2v5*) |
6379 |
symcode='[DT]' |
6380 |
;; |
6381 |
sysv4.2uw2*) |
6382 |
symcode='[DT]' |
6383 |
;; |
6384 |
sysv5* | sco5v6* | unixware* | OpenUNIX*) |
6385 |
symcode='[ABDT]' |
6386 |
;; |
6387 |
sysv4) |
6388 |
symcode='[DFNSTU]' |
6389 |
;; |
6390 |
esac |
6391 |
|
6392 |
# If we're using GNU nm, then use its standard symbol codes. |
6393 |
case `$NM -V 2>&1` in |
6394 |
*GNU* | *'with BFD'*) |
6395 |
symcode='[ABCDGIRSTW]' ;; |
6396 |
esac |
6397 |
|
6398 |
if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
6399 |
# Gets list of data symbols to import. |
6400 |
lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" |
6401 |
# Adjust the below global symbol transforms to fixup imported variables. |
6402 |
lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" |
6403 |
lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" |
6404 |
lt_c_name_lib_hook="\ |
6405 |
-e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ |
6406 |
-e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" |
6407 |
else |
6408 |
# Disable hooks by default. |
6409 |
lt_cv_sys_global_symbol_to_import= |
6410 |
lt_cdecl_hook= |
6411 |
lt_c_name_hook= |
6412 |
lt_c_name_lib_hook= |
6413 |
fi |
6414 |
|
6415 |
# Transform an extracted symbol line into a proper C declaration. |
6416 |
# Some systems (esp. on ia64) link data and code symbols differently, |
6417 |
# so use this general approach. |
6418 |
lt_cv_sys_global_symbol_to_cdecl="sed -n"\ |
6419 |
$lt_cdecl_hook\ |
6420 |
" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ |
6421 |
" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" |
6422 |
|
6423 |
# Transform an extracted symbol line into symbol name and symbol address |
6424 |
lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ |
6425 |
$lt_c_name_hook\ |
6426 |
" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
6427 |
" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" |
6428 |
|
6429 |
# Transform an extracted symbol line into symbol name with lib prefix and |
6430 |
# symbol address. |
6431 |
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ |
6432 |
$lt_c_name_lib_hook\ |
6433 |
" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
6434 |
" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ |
6435 |
" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" |
6436 |
|
6437 |
# Handle CRLF in mingw tool chain |
6438 |
opt_cr= |
6439 |
case $build_os in |
6440 |
mingw*) |
6441 |
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
6442 |
;; |
6443 |
esac |
6444 |
|
6445 |
# Try without a prefix underscore, then with it. |
6446 |
for ac_symprfx in "" "_"; do |
6447 |
|
6448 |
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
6449 |
symxfrm="\\1 $ac_symprfx\\2 \\2" |
6450 |
|
6451 |
# Write the raw and C identifiers. |
6452 |
if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
6453 |
# Fake it for dumpbin and say T for any non-static function, |
6454 |
# D for any global variable and I for any imported variable. |
6455 |
# Also find C++ and __fastcall symbols from MSVC++, |
6456 |
# which start with @ or ?. |
6457 |
lt_cv_sys_global_symbol_pipe="$AWK '"\ |
6458 |
" {last_section=section; section=\$ 3};"\ |
6459 |
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
6460 |
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
6461 |
" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ |
6462 |
" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ |
6463 |
" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ |
6464 |
" \$ 0!~/External *\|/{next};"\ |
6465 |
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
6466 |
" {if(hide[section]) next};"\ |
6467 |
" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ |
6468 |
" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ |
6469 |
" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ |
6470 |
" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ |
6471 |
" ' prfx=^$ac_symprfx" |
6472 |
else |
6473 |
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
6474 |
fi |
6475 |
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
6476 |
|
6477 |
# Check to see that the pipe works correctly. |
6478 |
pipe_works=no |
6479 |
|
6480 |
rm -f conftest* |
6481 |
cat > conftest.$ac_ext <<_LT_EOF |
6482 |
#ifdef __cplusplus |
6483 |
extern "C" { |
6484 |
#endif |
6485 |
char nm_test_var; |
6486 |
void nm_test_func(void); |
6487 |
void nm_test_func(void){} |
6488 |
#ifdef __cplusplus |
6489 |
} |
6490 |
#endif |
6491 |
int main(){nm_test_var='a';nm_test_func();return(0);} |
6492 |
_LT_EOF |
6493 |
|
6494 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
6495 |
(eval $ac_compile) 2>&5 |
6496 |
ac_status=$? |
6497 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6498 |
test $ac_status = 0; }; then |
6499 |
# Now try to grab the symbols. |
6500 |
nlist=conftest.nm |
6501 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
6502 |
(eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 |
6503 |
ac_status=$? |
6504 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6505 |
test $ac_status = 0; } && test -s "$nlist"; then |
6506 |
# Try sorting and uniquifying the output. |
6507 |
if sort "$nlist" | uniq > "$nlist"T; then |
6508 |
mv -f "$nlist"T "$nlist" |
6509 |
else |
6510 |
rm -f "$nlist"T |
6511 |
fi |
6512 |
|
6513 |
# Make sure that we snagged all the symbols we need. |
6514 |
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
6515 |
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
6516 |
cat <<_LT_EOF > conftest.$ac_ext |
6517 |
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
6518 |
#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE |
6519 |
/* DATA imports from DLLs on WIN32 can't be const, because runtime |
6520 |
relocations are performed -- see ld's documentation on pseudo-relocs. */ |
6521 |
# define LT_DLSYM_CONST |
6522 |
#elif defined __osf__ |
6523 |
/* This system does not cope well with relocations in const data. */ |
6524 |
# define LT_DLSYM_CONST |
6525 |
#else |
6526 |
# define LT_DLSYM_CONST const |
6527 |
#endif |
6528 |
|
6529 |
#ifdef __cplusplus |
6530 |
extern "C" { |
6531 |
#endif |
6532 |
|
6533 |
_LT_EOF |
6534 |
# Now generate the symbol file. |
6535 |
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
6536 |
|
6537 |
cat <<_LT_EOF >> conftest.$ac_ext |
6538 |
|
6539 |
/* The mapping between symbol names and symbols. */ |
6540 |
LT_DLSYM_CONST struct { |
6541 |
const char *name; |
6542 |
void *address; |
6543 |
} |
6544 |
lt__PROGRAM__LTX_preloaded_symbols[] = |
6545 |
{ |
6546 |
{ "@PROGRAM@", (void *) 0 }, |
6547 |
_LT_EOF |
6548 |
$SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
6549 |
cat <<\_LT_EOF >> conftest.$ac_ext |
6550 |
{0, (void *) 0} |
6551 |
}; |
6552 |
|
6553 |
/* This works around a problem in FreeBSD linker */ |
6554 |
#ifdef FREEBSD_WORKAROUND |
6555 |
static const void *lt_preloaded_setup() { |
6556 |
return lt__PROGRAM__LTX_preloaded_symbols; |
6557 |
} |
6558 |
#endif |
6559 |
|
6560 |
#ifdef __cplusplus |
6561 |
} |
6562 |
#endif |
6563 |
_LT_EOF |
6564 |
# Now try linking the two files. |
6565 |
mv conftest.$ac_objext conftstm.$ac_objext |
6566 |
lt_globsym_save_LIBS=$LIBS |
6567 |
lt_globsym_save_CFLAGS=$CFLAGS |
6568 |
LIBS=conftstm.$ac_objext |
6569 |
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
6570 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
6571 |
(eval $ac_link) 2>&5 |
6572 |
ac_status=$? |
6573 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6574 |
test $ac_status = 0; } && test -s conftest$ac_exeext; then |
6575 |
pipe_works=yes |
6576 |
fi |
6577 |
LIBS=$lt_globsym_save_LIBS |
6578 |
CFLAGS=$lt_globsym_save_CFLAGS |
6579 |
else |
6580 |
echo "cannot find nm_test_func in $nlist" >&5 |
6581 |
fi |
6582 |
else |
6583 |
echo "cannot find nm_test_var in $nlist" >&5 |
6584 |
fi |
6585 |
else |
6586 |
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
6587 |
fi |
6588 |
else |
6589 |
echo "$progname: failed program was:" >&5 |
6590 |
cat conftest.$ac_ext >&5 |
6591 |
fi |
6592 |
rm -rf conftest* conftst* |
6593 |
|
6594 |
# Do not use the global_symbol_pipe unless it works. |
6595 |
if test yes = "$pipe_works"; then |
6596 |
break |
6597 |
else |
6598 |
lt_cv_sys_global_symbol_pipe= |
6599 |
fi |
6600 |
done |
6601 |
|
6602 |
fi |
6603 |
|
6604 |
if test -z "$lt_cv_sys_global_symbol_pipe"; then |
6605 |
lt_cv_sys_global_symbol_to_cdecl= |
6606 |
fi |
6607 |
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
6608 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
6609 |
$as_echo "failed" >&6; } |
6610 |
else |
6611 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
6612 |
$as_echo "ok" >&6; } |
6613 |
fi |
6614 |
|
6615 |
# Response file support. |
6616 |
if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
6617 |
nm_file_list_spec='@' |
6618 |
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then |
6619 |
nm_file_list_spec='@' |
6620 |
fi |
6621 |
|
6622 |
|
6623 |
|
6624 |
|
6625 |
|
6626 |
|
6627 |
|
6628 |
|
6629 |
|
6630 |
|
6631 |
|
6632 |
|
6633 |
|
6634 |
|
6635 |
|
6636 |
|
6637 |
|
6638 |
|
6639 |
|
6640 |
|
6641 |
|
6642 |
|
6643 |
|
6644 |
|
6645 |
|
6646 |
|
6647 |
|
6648 |
|
6649 |
|
6650 |
|
6651 |
|
6652 |
|
6653 |
|
6654 |
|
6655 |
|
6656 |
|
6657 |
|
6658 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
6659 |
$as_echo_n "checking for sysroot... " >&6; } |
6660 |
|
6661 |
# Check whether --with-sysroot was given. |
6662 |
if test "${with_sysroot+set}" = set; then : |
6663 |
withval=$with_sysroot; |
6664 |
else |
6665 |
with_sysroot=no |
6666 |
fi |
6667 |
|
6668 |
|
6669 |
lt_sysroot= |
6670 |
case $with_sysroot in #( |
6671 |
yes) |
6672 |
if test yes = "$GCC"; then |
6673 |
lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
6674 |
fi |
6675 |
;; #( |
6676 |
/*) |
6677 |
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
6678 |
;; #( |
6679 |
no|'') |
6680 |
;; #( |
6681 |
*) |
6682 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 |
6683 |
$as_echo "$with_sysroot" >&6; } |
6684 |
as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
6685 |
;; |
6686 |
esac |
6687 |
|
6688 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
6689 |
$as_echo "${lt_sysroot:-no}" >&6; } |
6690 |
|
6691 |
|
6692 |
|
6693 |
|
6694 |
|
6695 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 |
6696 |
$as_echo_n "checking for a working dd... " >&6; } |
6697 |
if ${ac_cv_path_lt_DD+:} false; then : |
6698 |
$as_echo_n "(cached) " >&6 |
6699 |
else |
6700 |
printf 0123456789abcdef0123456789abcdef >conftest.i |
6701 |
cat conftest.i conftest.i >conftest2.i |
6702 |
: ${lt_DD:=$DD} |
6703 |
if test -z "$lt_DD"; then |
6704 |
ac_path_lt_DD_found=false |
6705 |
# Loop through the user's path and test for each of PROGNAME-LIST |
6706 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6707 |
for as_dir in $PATH |
6708 |
do |
6709 |
IFS=$as_save_IFS |
6710 |
test -z "$as_dir" && as_dir=. |
6711 |
for ac_prog in dd; do |
6712 |
for ac_exec_ext in '' $ac_executable_extensions; do |
6713 |
ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" |
6714 |
as_fn_executable_p "$ac_path_lt_DD" || continue |
6715 |
if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
6716 |
cmp -s conftest.i conftest.out \ |
6717 |
&& ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: |
6718 |
fi |
6719 |
$ac_path_lt_DD_found && break 3 |
6720 |
done |
6721 |
done |
6722 |
done |
6723 |
IFS=$as_save_IFS |
6724 |
if test -z "$ac_cv_path_lt_DD"; then |
6725 |
: |
6726 |
fi |
6727 |
else |
6728 |
ac_cv_path_lt_DD=$lt_DD |
6729 |
fi |
6730 |
|
6731 |
rm -f conftest.i conftest2.i conftest.out |
6732 |
fi |
6733 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 |
6734 |
$as_echo "$ac_cv_path_lt_DD" >&6; } |
6735 |
|
6736 |
|
6737 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 |
6738 |
$as_echo_n "checking how to truncate binary pipes... " >&6; } |
6739 |
if ${lt_cv_truncate_bin+:} false; then : |
6740 |
$as_echo_n "(cached) " >&6 |
6741 |
else |
6742 |
printf 0123456789abcdef0123456789abcdef >conftest.i |
6743 |
cat conftest.i conftest.i >conftest2.i |
6744 |
lt_cv_truncate_bin= |
6745 |
if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
6746 |
cmp -s conftest.i conftest.out \ |
6747 |
&& lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" |
6748 |
fi |
6749 |
rm -f conftest.i conftest2.i conftest.out |
6750 |
test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" |
6751 |
fi |
6752 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 |
6753 |
$as_echo "$lt_cv_truncate_bin" >&6; } |
6754 |
|
6755 |
|
6756 |
|
6757 |
|
6758 |
|
6759 |
|
6760 |
# Check whether --enable-libtool-lock was given. |
6761 |
if test "${enable_libtool_lock+set}" = set; then : |
6762 |
enableval=$enable_libtool_lock; |
6763 |
fi |
6764 |
|
6765 |
test no = "$enable_libtool_lock" || enable_libtool_lock=yes |
6766 |
|
6767 |
# Some flags need to be propagated to the compiler or linker for good |
6768 |
# libtool support. |
6769 |
case $host in |
6770 |
ia64-*-hpux*) |
6771 |
# Find out what ABI is being produced by ac_compile, and set mode |
6772 |
# options accordingly. |
6773 |
echo 'int i;' > conftest.$ac_ext |
6774 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
6775 |
(eval $ac_compile) 2>&5 |
6776 |
ac_status=$? |
6777 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6778 |
test $ac_status = 0; }; then |
6779 |
case `/usr/bin/file conftest.$ac_objext` in |
6780 |
*ELF-32*) |
6781 |
HPUX_IA64_MODE=32 |
6782 |
;; |
6783 |
*ELF-64*) |
6784 |
HPUX_IA64_MODE=64 |
6785 |
;; |
6786 |
esac |
6787 |
fi |
6788 |
rm -rf conftest* |
6789 |
;; |
6790 |
*-*-irix6*) |
6791 |
# Find out what ABI is being produced by ac_compile, and set linker |
6792 |
# options accordingly. |
6793 |
echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
6794 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
6795 |
(eval $ac_compile) 2>&5 |
6796 |
ac_status=$? |
6797 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6798 |
test $ac_status = 0; }; then |
6799 |
if test yes = "$lt_cv_prog_gnu_ld"; then |
6800 |
case `/usr/bin/file conftest.$ac_objext` in |
6801 |
*32-bit*) |
6802 |
LD="${LD-ld} -melf32bsmip" |
6803 |
;; |
6804 |
*N32*) |
6805 |
LD="${LD-ld} -melf32bmipn32" |
6806 |
;; |
6807 |
*64-bit*) |
6808 |
LD="${LD-ld} -melf64bmip" |
6809 |
;; |
6810 |
esac |
6811 |
else |
6812 |
case `/usr/bin/file conftest.$ac_objext` in |
6813 |
*32-bit*) |
6814 |
LD="${LD-ld} -32" |
6815 |
;; |
6816 |
*N32*) |
6817 |
LD="${LD-ld} -n32" |
6818 |
;; |
6819 |
*64-bit*) |
6820 |
LD="${LD-ld} -64" |
6821 |
;; |
6822 |
esac |
6823 |
fi |
6824 |
fi |
6825 |
rm -rf conftest* |
6826 |
;; |
6827 |
|
6828 |
mips64*-*linux*) |
6829 |
# Find out what ABI is being produced by ac_compile, and set linker |
6830 |
# options accordingly. |
6831 |
echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
6832 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
6833 |
(eval $ac_compile) 2>&5 |
6834 |
ac_status=$? |
6835 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6836 |
test $ac_status = 0; }; then |
6837 |
emul=elf |
6838 |
case `/usr/bin/file conftest.$ac_objext` in |
6839 |
*32-bit*) |
6840 |
emul="${emul}32" |
6841 |
;; |
6842 |
*64-bit*) |
6843 |
emul="${emul}64" |
6844 |
;; |
6845 |
esac |
6846 |
case `/usr/bin/file conftest.$ac_objext` in |
6847 |
*MSB*) |
6848 |
emul="${emul}btsmip" |
6849 |
;; |
6850 |
*LSB*) |
6851 |
emul="${emul}ltsmip" |
6852 |
;; |
6853 |
esac |
6854 |
case `/usr/bin/file conftest.$ac_objext` in |
6855 |
*N32*) |
6856 |
emul="${emul}n32" |
6857 |
;; |
6858 |
esac |
6859 |
LD="${LD-ld} -m $emul" |
6860 |
fi |
6861 |
rm -rf conftest* |
6862 |
;; |
6863 |
|
6864 |
x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
6865 |
s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
6866 |
# Find out what ABI is being produced by ac_compile, and set linker |
6867 |
# options accordingly. Note that the listed cases only cover the |
6868 |
# situations where additional linker options are needed (such as when |
6869 |
# doing 32-bit compilation for a host where ld defaults to 64-bit, or |
6870 |
# vice versa); the common cases where no linker options are needed do |
6871 |
# not appear in the list. |
6872 |
echo 'int i;' > conftest.$ac_ext |
6873 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
6874 |
(eval $ac_compile) 2>&5 |
6875 |
ac_status=$? |
6876 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6877 |
test $ac_status = 0; }; then |
6878 |
case `/usr/bin/file conftest.o` in |
6879 |
*32-bit*) |
6880 |
case $host in |
6881 |
x86_64-*kfreebsd*-gnu) |
6882 |
LD="${LD-ld} -m elf_i386_fbsd" |
6883 |
;; |
6884 |
x86_64-*linux*) |
6885 |
case `/usr/bin/file conftest.o` in |
6886 |
*x86-64*) |
6887 |
LD="${LD-ld} -m elf32_x86_64" |
6888 |
;; |
6889 |
*) |
6890 |
LD="${LD-ld} -m elf_i386" |
6891 |
;; |
6892 |
esac |
6893 |
;; |
6894 |
powerpc64le-*linux*) |
6895 |
LD="${LD-ld} -m elf32lppclinux" |
6896 |
;; |
6897 |
powerpc64-*linux*) |
6898 |
LD="${LD-ld} -m elf32ppclinux" |
6899 |
;; |
6900 |
s390x-*linux*) |
6901 |
LD="${LD-ld} -m elf_s390" |
6902 |
;; |
6903 |
sparc64-*linux*) |
6904 |
LD="${LD-ld} -m elf32_sparc" |
6905 |
;; |
6906 |
esac |
6907 |
;; |
6908 |
*64-bit*) |
6909 |
case $host in |
6910 |
x86_64-*kfreebsd*-gnu) |
6911 |
LD="${LD-ld} -m elf_x86_64_fbsd" |
6912 |
;; |
6913 |
x86_64-*linux*) |
6914 |
LD="${LD-ld} -m elf_x86_64" |
6915 |
;; |
6916 |
powerpcle-*linux*) |
6917 |
LD="${LD-ld} -m elf64lppc" |
6918 |
;; |
6919 |
powerpc-*linux*) |
6920 |
LD="${LD-ld} -m elf64ppc" |
6921 |
;; |
6922 |
s390*-*linux*|s390*-*tpf*) |
6923 |
LD="${LD-ld} -m elf64_s390" |
6924 |
;; |
6925 |
sparc*-*linux*) |
6926 |
LD="${LD-ld} -m elf64_sparc" |
6927 |
;; |
6928 |
esac |
6929 |
;; |
6930 |
esac |
6931 |
fi |
6932 |
rm -rf conftest* |
6933 |
;; |
6934 |
|
6935 |
*-*-sco3.2v5*) |
6936 |
# On SCO OpenServer 5, we need -belf to get full-featured binaries. |
6937 |
SAVE_CFLAGS=$CFLAGS |
6938 |
CFLAGS="$CFLAGS -belf" |
6939 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
6940 |
$as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
6941 |
if ${lt_cv_cc_needs_belf+:} false; then : |
6942 |
$as_echo_n "(cached) " >&6 |
6943 |
else |
6944 |
ac_ext=c |
6945 |
ac_cpp='$CPP $CPPFLAGS' |
6946 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6947 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6948 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6949 |
|
6950 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6951 |
/* end confdefs.h. */ |
6952 |
|
6953 |
int |
6954 |
main () |
6955 |
{ |
6956 |
|
6957 |
; |
6958 |
return 0; |
6959 |
} |
6960 |
_ACEOF |
6961 |
if ac_fn_c_try_link "$LINENO"; then : |
6962 |
lt_cv_cc_needs_belf=yes |
6963 |
else |
6964 |
lt_cv_cc_needs_belf=no |
6965 |
fi |
6966 |
rm -f core conftest.err conftest.$ac_objext \ |
6967 |
conftest$ac_exeext conftest.$ac_ext |
6968 |
ac_ext=c |
6969 |
ac_cpp='$CPP $CPPFLAGS' |
6970 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6971 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6972 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6973 |
|
6974 |
fi |
6975 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
6976 |
$as_echo "$lt_cv_cc_needs_belf" >&6; } |
6977 |
if test yes != "$lt_cv_cc_needs_belf"; then |
6978 |
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
6979 |
CFLAGS=$SAVE_CFLAGS |
6980 |
fi |
6981 |
;; |
6982 |
*-*solaris*) |
6983 |
# Find out what ABI is being produced by ac_compile, and set linker |
6984 |
# options accordingly. |
6985 |
echo 'int i;' > conftest.$ac_ext |
6986 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
6987 |
(eval $ac_compile) 2>&5 |
6988 |
ac_status=$? |
6989 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6990 |
test $ac_status = 0; }; then |
6991 |
case `/usr/bin/file conftest.o` in |
6992 |
*64-bit*) |
6993 |
case $lt_cv_prog_gnu_ld in |
6994 |
yes*) |
6995 |
case $host in |
6996 |
i?86-*-solaris*|x86_64-*-solaris*) |
6997 |
LD="${LD-ld} -m elf_x86_64" |
6998 |
;; |
6999 |
sparc*-*-solaris*) |
7000 |
LD="${LD-ld} -m elf64_sparc" |
7001 |
;; |
7002 |
esac |
7003 |
# GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
7004 |
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
7005 |
LD=${LD-ld}_sol2 |
7006 |
fi |
7007 |
;; |
7008 |
*) |
7009 |
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
7010 |
LD="${LD-ld} -64" |
7011 |
fi |
7012 |
;; |
7013 |
esac |
7014 |
;; |
7015 |
esac |
7016 |
fi |
7017 |
rm -rf conftest* |
7018 |
;; |
7019 |
esac |
7020 |
|
7021 |
need_locks=$enable_libtool_lock |
7022 |
|
7023 |
if test -n "$ac_tool_prefix"; then |
7024 |
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
7025 |
set dummy ${ac_tool_prefix}mt; ac_word=$2 |
7026 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7027 |
$as_echo_n "checking for $ac_word... " >&6; } |
7028 |
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : |
7029 |
$as_echo_n "(cached) " >&6 |
7030 |
else |
7031 |
if test -n "$MANIFEST_TOOL"; then |
7032 |
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. |
7033 |
else |
7034 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7035 |
for as_dir in $PATH |
7036 |
do |
7037 |
IFS=$as_save_IFS |
7038 |
test -z "$as_dir" && as_dir=. |
7039 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7040 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7041 |
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
7042 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7043 |
break 2 |
7044 |
fi |
7045 |
done |
7046 |
done |
7047 |
IFS=$as_save_IFS |
7048 |
|
7049 |
fi |
7050 |
fi |
7051 |
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
7052 |
if test -n "$MANIFEST_TOOL"; then |
7053 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 |
7054 |
$as_echo "$MANIFEST_TOOL" >&6; } |
7055 |
else |
7056 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7057 |
$as_echo "no" >&6; } |
7058 |
fi |
7059 |
|
7060 |
|
7061 |
fi |
7062 |
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
7063 |
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL |
7064 |
# Extract the first word of "mt", so it can be a program name with args. |
7065 |
set dummy mt; ac_word=$2 |
7066 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7067 |
$as_echo_n "checking for $ac_word... " >&6; } |
7068 |
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : |
7069 |
$as_echo_n "(cached) " >&6 |
7070 |
else |
7071 |
if test -n "$ac_ct_MANIFEST_TOOL"; then |
7072 |
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. |
7073 |
else |
7074 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7075 |
for as_dir in $PATH |
7076 |
do |
7077 |
IFS=$as_save_IFS |
7078 |
test -z "$as_dir" && as_dir=. |
7079 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7080 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7081 |
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
7082 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7083 |
break 2 |
7084 |
fi |
7085 |
done |
7086 |
done |
7087 |
IFS=$as_save_IFS |
7088 |
|
7089 |
fi |
7090 |
fi |
7091 |
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
7092 |
if test -n "$ac_ct_MANIFEST_TOOL"; then |
7093 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 |
7094 |
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } |
7095 |
else |
7096 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7097 |
$as_echo "no" >&6; } |
7098 |
fi |
7099 |
|
7100 |
if test "x$ac_ct_MANIFEST_TOOL" = x; then |
7101 |
MANIFEST_TOOL=":" |
7102 |
else |
7103 |
case $cross_compiling:$ac_tool_warned in |
7104 |
yes:) |
7105 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
7106 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7107 |
ac_tool_warned=yes ;; |
7108 |
esac |
7109 |
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
7110 |
fi |
7111 |
else |
7112 |
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
7113 |
fi |
7114 |
|
7115 |
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
7116 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 |
7117 |
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } |
7118 |
if ${lt_cv_path_mainfest_tool+:} false; then : |
7119 |
$as_echo_n "(cached) " >&6 |
7120 |
else |
7121 |
lt_cv_path_mainfest_tool=no |
7122 |
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 |
7123 |
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
7124 |
cat conftest.err >&5 |
7125 |
if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
7126 |
lt_cv_path_mainfest_tool=yes |
7127 |
fi |
7128 |
rm -f conftest* |
7129 |
fi |
7130 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 |
7131 |
$as_echo "$lt_cv_path_mainfest_tool" >&6; } |
7132 |
if test yes != "$lt_cv_path_mainfest_tool"; then |
7133 |
MANIFEST_TOOL=: |
7134 |
fi |
7135 |
|
7136 |
|
7137 |
|
7138 |
|
7139 |
|
7140 |
|
7141 |
case $host_os in |
7142 |
rhapsody* | darwin*) |
7143 |
if test -n "$ac_tool_prefix"; then |
7144 |
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
7145 |
set dummy ${ac_tool_prefix}dsymutil; 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_DSYMUTIL+:} false; then : |
7149 |
$as_echo_n "(cached) " >&6 |
7150 |
else |
7151 |
if test -n "$DSYMUTIL"; then |
7152 |
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # 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_DSYMUTIL="${ac_tool_prefix}dsymutil" |
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 |
DSYMUTIL=$ac_cv_prog_DSYMUTIL |
7172 |
if test -n "$DSYMUTIL"; then |
7173 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
7174 |
$as_echo "$DSYMUTIL" >&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_DSYMUTIL"; then |
7183 |
ac_ct_DSYMUTIL=$DSYMUTIL |
7184 |
# Extract the first word of "dsymutil", so it can be a program name with args. |
7185 |
set dummy dsymutil; 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_DSYMUTIL+:} false; then : |
7189 |
$as_echo_n "(cached) " >&6 |
7190 |
else |
7191 |
if test -n "$ac_ct_DSYMUTIL"; then |
7192 |
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # 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_DSYMUTIL="dsymutil" |
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_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
7212 |
if test -n "$ac_ct_DSYMUTIL"; then |
7213 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
7214 |
$as_echo "$ac_ct_DSYMUTIL" >&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_DSYMUTIL" = x; then |
7221 |
DSYMUTIL=":" |
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 |
DSYMUTIL=$ac_ct_DSYMUTIL |
7230 |
fi |
7231 |
else |
7232 |
DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
7233 |
fi |
7234 |
|
7235 |
if test -n "$ac_tool_prefix"; then |
7236 |
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
7237 |
set dummy ${ac_tool_prefix}nmedit; 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_NMEDIT+:} false; then : |
7241 |
$as_echo_n "(cached) " >&6 |
7242 |
else |
7243 |
if test -n "$NMEDIT"; then |
7244 |
ac_cv_prog_NMEDIT="$NMEDIT" # 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_NMEDIT="${ac_tool_prefix}nmedit" |
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 |
NMEDIT=$ac_cv_prog_NMEDIT |
7264 |
if test -n "$NMEDIT"; then |
7265 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
7266 |
$as_echo "$NMEDIT" >&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_NMEDIT"; then |
7275 |
ac_ct_NMEDIT=$NMEDIT |
7276 |
# Extract the first word of "nmedit", so it can be a program name with args. |
7277 |
set dummy nmedit; 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_NMEDIT+:} false; then : |
7281 |
$as_echo_n "(cached) " >&6 |
7282 |
else |
7283 |
if test -n "$ac_ct_NMEDIT"; then |
7284 |
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # 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_NMEDIT="nmedit" |
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_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
7304 |
if test -n "$ac_ct_NMEDIT"; then |
7305 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
7306 |
$as_echo "$ac_ct_NMEDIT" >&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_NMEDIT" = x; then |
7313 |
NMEDIT=":" |
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 |
NMEDIT=$ac_ct_NMEDIT |
7322 |
fi |
7323 |
else |
7324 |
NMEDIT="$ac_cv_prog_NMEDIT" |
7325 |
fi |
7326 |
|
7327 |
if test -n "$ac_tool_prefix"; then |
7328 |
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
7329 |
set dummy ${ac_tool_prefix}lipo; 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_LIPO+:} false; then : |
7333 |
$as_echo_n "(cached) " >&6 |
7334 |
else |
7335 |
if test -n "$LIPO"; then |
7336 |
ac_cv_prog_LIPO="$LIPO" # 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_LIPO="${ac_tool_prefix}lipo" |
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 |
LIPO=$ac_cv_prog_LIPO |
7356 |
if test -n "$LIPO"; then |
7357 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
7358 |
$as_echo "$LIPO" >&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_LIPO"; then |
7367 |
ac_ct_LIPO=$LIPO |
7368 |
# Extract the first word of "lipo", so it can be a program name with args. |
7369 |
set dummy lipo; 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_LIPO+:} false; then : |
7373 |
$as_echo_n "(cached) " >&6 |
7374 |
else |
7375 |
if test -n "$ac_ct_LIPO"; then |
7376 |
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # 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_LIPO="lipo" |
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_LIPO=$ac_cv_prog_ac_ct_LIPO |
7396 |
if test -n "$ac_ct_LIPO"; then |
7397 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
7398 |
$as_echo "$ac_ct_LIPO" >&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_LIPO" = x; then |
7405 |
LIPO=":" |
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 |
LIPO=$ac_ct_LIPO |
7414 |
fi |
7415 |
else |
7416 |
LIPO="$ac_cv_prog_LIPO" |
7417 |
fi |
7418 |
|
7419 |
if test -n "$ac_tool_prefix"; then |
7420 |
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
7421 |
set dummy ${ac_tool_prefix}otool; 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_OTOOL+:} false; then : |
7425 |
$as_echo_n "(cached) " >&6 |
7426 |
else |
7427 |
if test -n "$OTOOL"; then |
7428 |
ac_cv_prog_OTOOL="$OTOOL" # 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_OTOOL="${ac_tool_prefix}otool" |
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 |
OTOOL=$ac_cv_prog_OTOOL |
7448 |
if test -n "$OTOOL"; then |
7449 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
7450 |
$as_echo "$OTOOL" >&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_OTOOL"; then |
7459 |
ac_ct_OTOOL=$OTOOL |
7460 |
# Extract the first word of "otool", so it can be a program name with args. |
7461 |
set dummy otool; 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_OTOOL+:} false; then : |
7465 |
$as_echo_n "(cached) " >&6 |
7466 |
else |
7467 |
if test -n "$ac_ct_OTOOL"; then |
7468 |
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # 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_OTOOL="otool" |
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_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
7488 |
if test -n "$ac_ct_OTOOL"; then |
7489 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
7490 |
$as_echo "$ac_ct_OTOOL" >&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_OTOOL" = x; then |
7497 |
OTOOL=":" |
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 |
OTOOL=$ac_ct_OTOOL |
7506 |
fi |
7507 |
else |
7508 |
OTOOL="$ac_cv_prog_OTOOL" |
7509 |
fi |
7510 |
|
7511 |
if test -n "$ac_tool_prefix"; then |
7512 |
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
7513 |
set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
7514 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7515 |
$as_echo_n "checking for $ac_word... " >&6; } |
7516 |
if ${ac_cv_prog_OTOOL64+:} false; then : |
7517 |
$as_echo_n "(cached) " >&6 |
7518 |
else |
7519 |
if test -n "$OTOOL64"; then |
7520 |
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
7521 |
else |
7522 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7523 |
for as_dir in $PATH |
7524 |
do |
7525 |
IFS=$as_save_IFS |
7526 |
test -z "$as_dir" && as_dir=. |
7527 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7528 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7529 |
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
7530 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7531 |
break 2 |
7532 |
fi |
7533 |
done |
7534 |
done |
7535 |
IFS=$as_save_IFS |
7536 |
|
7537 |
fi |
7538 |
fi |
7539 |
OTOOL64=$ac_cv_prog_OTOOL64 |
7540 |
if test -n "$OTOOL64"; then |
7541 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
7542 |
$as_echo "$OTOOL64" >&6; } |
7543 |
else |
7544 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7545 |
$as_echo "no" >&6; } |
7546 |
fi |
7547 |
|
7548 |
|
7549 |
fi |
7550 |
if test -z "$ac_cv_prog_OTOOL64"; then |
7551 |
ac_ct_OTOOL64=$OTOOL64 |
7552 |
# Extract the first word of "otool64", so it can be a program name with args. |
7553 |
set dummy otool64; ac_word=$2 |
7554 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7555 |
$as_echo_n "checking for $ac_word... " >&6; } |
7556 |
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
7557 |
$as_echo_n "(cached) " >&6 |
7558 |
else |
7559 |
if test -n "$ac_ct_OTOOL64"; then |
7560 |
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
7561 |
else |
7562 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7563 |
for as_dir in $PATH |
7564 |
do |
7565 |
IFS=$as_save_IFS |
7566 |
test -z "$as_dir" && as_dir=. |
7567 |
for ac_exec_ext in '' $ac_executable_extensions; do |
7568 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7569 |
ac_cv_prog_ac_ct_OTOOL64="otool64" |
7570 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7571 |
break 2 |
7572 |
fi |
7573 |
done |
7574 |
done |
7575 |
IFS=$as_save_IFS |
7576 |
|
7577 |
fi |
7578 |
fi |
7579 |
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
7580 |
if test -n "$ac_ct_OTOOL64"; then |
7581 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
7582 |
$as_echo "$ac_ct_OTOOL64" >&6; } |
7583 |
else |
7584 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7585 |
$as_echo "no" >&6; } |
7586 |
fi |
7587 |
|
7588 |
if test "x$ac_ct_OTOOL64" = x; then |
7589 |
OTOOL64=":" |
7590 |
else |
7591 |
case $cross_compiling:$ac_tool_warned in |
7592 |
yes:) |
7593 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
7594 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7595 |
ac_tool_warned=yes ;; |
7596 |
esac |
7597 |
OTOOL64=$ac_ct_OTOOL64 |
7598 |
fi |
7599 |
else |
7600 |
OTOOL64="$ac_cv_prog_OTOOL64" |
7601 |
fi |
7602 |
|
7603 |
|
7604 |
|
7605 |
|
7606 |
|
7607 |
|
7608 |
|
7609 |
|
7610 |
|
7611 |
|
7612 |
|
7613 |
|
7614 |
|
7615 |
|
7616 |
|
7617 |
|
7618 |
|
7619 |
|
7620 |
|
7621 |
|
7622 |
|
7623 |
|
7624 |
|
7625 |
|
7626 |
|
7627 |
|
7628 |
|
7629 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
7630 |
$as_echo_n "checking for -single_module linker flag... " >&6; } |
7631 |
if ${lt_cv_apple_cc_single_mod+:} false; then : |
7632 |
$as_echo_n "(cached) " >&6 |
7633 |
else |
7634 |
lt_cv_apple_cc_single_mod=no |
7635 |
if test -z "$LT_MULTI_MODULE"; then |
7636 |
# By default we will add the -single_module flag. You can override |
7637 |
# by either setting the environment variable LT_MULTI_MODULE |
7638 |
# non-empty at configure time, or by adding -multi_module to the |
7639 |
# link flags. |
7640 |
rm -rf libconftest.dylib* |
7641 |
echo "int foo(void){return 1;}" > conftest.c |
7642 |
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
7643 |
-dynamiclib -Wl,-single_module conftest.c" >&5 |
7644 |
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
7645 |
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
7646 |
_lt_result=$? |
7647 |
# If there is a non-empty error log, and "single_module" |
7648 |
# appears in it, assume the flag caused a linker warning |
7649 |
if test -s conftest.err && $GREP single_module conftest.err; then |
7650 |
cat conftest.err >&5 |
7651 |
# Otherwise, if the output was created with a 0 exit code from |
7652 |
# the compiler, it worked. |
7653 |
elif test -f libconftest.dylib && test 0 = "$_lt_result"; then |
7654 |
lt_cv_apple_cc_single_mod=yes |
7655 |
else |
7656 |
cat conftest.err >&5 |
7657 |
fi |
7658 |
rm -rf libconftest.dylib* |
7659 |
rm -f conftest.* |
7660 |
fi |
7661 |
fi |
7662 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
7663 |
$as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
7664 |
|
7665 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
7666 |
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
7667 |
if ${lt_cv_ld_exported_symbols_list+:} false; then : |
7668 |
$as_echo_n "(cached) " >&6 |
7669 |
else |
7670 |
lt_cv_ld_exported_symbols_list=no |
7671 |
save_LDFLAGS=$LDFLAGS |
7672 |
echo "_main" > conftest.sym |
7673 |
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
7674 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7675 |
/* end confdefs.h. */ |
7676 |
|
7677 |
int |
7678 |
main () |
7679 |
{ |
7680 |
|
7681 |
; |
7682 |
return 0; |
7683 |
} |
7684 |
_ACEOF |
7685 |
if ac_fn_c_try_link "$LINENO"; then : |
7686 |
lt_cv_ld_exported_symbols_list=yes |
7687 |
else |
7688 |
lt_cv_ld_exported_symbols_list=no |
7689 |
fi |
7690 |
rm -f core conftest.err conftest.$ac_objext \ |
7691 |
conftest$ac_exeext conftest.$ac_ext |
7692 |
LDFLAGS=$save_LDFLAGS |
7693 |
|
7694 |
fi |
7695 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
7696 |
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
7697 |
|
7698 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
7699 |
$as_echo_n "checking for -force_load linker flag... " >&6; } |
7700 |
if ${lt_cv_ld_force_load+:} false; then : |
7701 |
$as_echo_n "(cached) " >&6 |
7702 |
else |
7703 |
lt_cv_ld_force_load=no |
7704 |
cat > conftest.c << _LT_EOF |
7705 |
int forced_loaded() { return 2;} |
7706 |
_LT_EOF |
7707 |
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
7708 |
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
7709 |
echo "$AR cru libconftest.a conftest.o" >&5 |
7710 |
$AR cru libconftest.a conftest.o 2>&5 |
7711 |
echo "$RANLIB libconftest.a" >&5 |
7712 |
$RANLIB libconftest.a 2>&5 |
7713 |
cat > conftest.c << _LT_EOF |
7714 |
int main() { return 0;} |
7715 |
_LT_EOF |
7716 |
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
7717 |
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
7718 |
_lt_result=$? |
7719 |
if test -s conftest.err && $GREP force_load conftest.err; then |
7720 |
cat conftest.err >&5 |
7721 |
elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then |
7722 |
lt_cv_ld_force_load=yes |
7723 |
else |
7724 |
cat conftest.err >&5 |
7725 |
fi |
7726 |
rm -f conftest.err libconftest.a conftest conftest.c |
7727 |
rm -rf conftest.dSYM |
7728 |
|
7729 |
fi |
7730 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
7731 |
$as_echo "$lt_cv_ld_force_load" >&6; } |
7732 |
case $host_os in |
7733 |
rhapsody* | darwin1.[012]) |
7734 |
_lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; |
7735 |
darwin1.*) |
7736 |
_lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
7737 |
darwin*) # darwin 5.x on |
7738 |
# if running on 10.5 or later, the deployment target defaults |
7739 |
# to the OS version, if on x86, and 10.4, the deployment |
7740 |
# target defaults to 10.4. Don't you love it? |
7741 |
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
7742 |
10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
7743 |
_lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
7744 |
10.[012][,.]*) |
7745 |
_lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
7746 |
10.*) |
7747 |
_lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
7748 |
esac |
7749 |
;; |
7750 |
esac |
7751 |
if test yes = "$lt_cv_apple_cc_single_mod"; then |
7752 |
_lt_dar_single_mod='$single_module' |
7753 |
fi |
7754 |
if test yes = "$lt_cv_ld_exported_symbols_list"; then |
7755 |
_lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' |
7756 |
else |
7757 |
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' |
7758 |
fi |
7759 |
if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then |
7760 |
_lt_dsymutil='~$DSYMUTIL $lib || :' |
7761 |
else |
7762 |
_lt_dsymutil= |
7763 |
fi |
7764 |
;; |
7765 |
esac |
7766 |
|
7767 |
ac_ext=c |
7768 |
ac_cpp='$CPP $CPPFLAGS' |
7769 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7770 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7771 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7772 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
7773 |
$as_echo_n "checking how to run the C preprocessor... " >&6; } |
7774 |
# On Suns, sometimes $CPP names a directory. |
7775 |
if test -n "$CPP" && test -d "$CPP"; then |
7776 |
CPP= |
7777 |
fi |
7778 |
if test -z "$CPP"; then |
7779 |
if ${ac_cv_prog_CPP+:} false; then : |
7780 |
$as_echo_n "(cached) " >&6 |
7781 |
else |
7782 |
# Double quotes because CPP needs to be expanded |
7783 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
7784 |
do |
7785 |
ac_preproc_ok=false |
7786 |
for ac_c_preproc_warn_flag in '' yes |
7787 |
do |
7788 |
# Use a header file that comes with gcc, so configuring glibc |
7789 |
# with a fresh cross-compiler works. |
7790 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
7791 |
# <limits.h> exists even on freestanding compilers. |
7792 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
7793 |
# not just through cpp. "Syntax error" is here to catch this case. |
7794 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7795 |
/* end confdefs.h. */ |
7796 |
#ifdef __STDC__ |
7797 |
# include <limits.h> |
7798 |
#else |
7799 |
# include <assert.h> |
7800 |
#endif |
7801 |
Syntax error |
7802 |
_ACEOF |
7803 |
if ac_fn_c_try_cpp "$LINENO"; then : |
7804 |
|
7805 |
else |
7806 |
# Broken: fails on valid input. |
7807 |
continue |
7808 |
fi |
7809 |
rm -f conftest.err conftest.i conftest.$ac_ext |
7810 |
|
7811 |
# OK, works on sane cases. Now check whether nonexistent headers |
7812 |
# can be detected and how. |
7813 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7814 |
/* end confdefs.h. */ |
7815 |
#include <ac_nonexistent.h> |
7816 |
_ACEOF |
7817 |
if ac_fn_c_try_cpp "$LINENO"; then : |
7818 |
# Broken: success on invalid input. |
7819 |
continue |
7820 |
else |
7821 |
# Passes both tests. |
7822 |
ac_preproc_ok=: |
7823 |
break |
7824 |
fi |
7825 |
rm -f conftest.err conftest.i conftest.$ac_ext |
7826 |
|
7827 |
done |
7828 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
7829 |
rm -f conftest.i conftest.err conftest.$ac_ext |
7830 |
if $ac_preproc_ok; then : |
7831 |
break |
7832 |
fi |
7833 |
|
7834 |
done |
7835 |
ac_cv_prog_CPP=$CPP |
7836 |
|
7837 |
fi |
7838 |
CPP=$ac_cv_prog_CPP |
7839 |
else |
7840 |
ac_cv_prog_CPP=$CPP |
7841 |
fi |
7842 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
7843 |
$as_echo "$CPP" >&6; } |
7844 |
ac_preproc_ok=false |
7845 |
for ac_c_preproc_warn_flag in '' yes |
7846 |
do |
7847 |
# Use a header file that comes with gcc, so configuring glibc |
7848 |
# with a fresh cross-compiler works. |
7849 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
7850 |
# <limits.h> exists even on freestanding compilers. |
7851 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
7852 |
# not just through cpp. "Syntax error" is here to catch this case. |
7853 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7854 |
/* end confdefs.h. */ |
7855 |
#ifdef __STDC__ |
7856 |
# include <limits.h> |
7857 |
#else |
7858 |
# include <assert.h> |
7859 |
#endif |
7860 |
Syntax error |
7861 |
_ACEOF |
7862 |
if ac_fn_c_try_cpp "$LINENO"; then : |
7863 |
|
7864 |
else |
7865 |
# Broken: fails on valid input. |
7866 |
continue |
7867 |
fi |
7868 |
rm -f conftest.err conftest.i conftest.$ac_ext |
7869 |
|
7870 |
# OK, works on sane cases. Now check whether nonexistent headers |
7871 |
# can be detected and how. |
7872 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7873 |
/* end confdefs.h. */ |
7874 |
#include <ac_nonexistent.h> |
7875 |
_ACEOF |
7876 |
if ac_fn_c_try_cpp "$LINENO"; then : |
7877 |
# Broken: success on invalid input. |
7878 |
continue |
7879 |
else |
7880 |
# Passes both tests. |
7881 |
ac_preproc_ok=: |
7882 |
break |
7883 |
fi |
7884 |
rm -f conftest.err conftest.i conftest.$ac_ext |
7885 |
|
7886 |
done |
7887 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
7888 |
rm -f conftest.i conftest.err conftest.$ac_ext |
7889 |
if $ac_preproc_ok; then : |
7890 |
|
7891 |
else |
7892 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
7893 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
7894 |
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
7895 |
See \`config.log' for more details" "$LINENO" 5; } |
7896 |
fi |
7897 |
|
7898 |
ac_ext=c |
7899 |
ac_cpp='$CPP $CPPFLAGS' |
7900 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7901 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7902 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7903 |
|
7904 |
|
7905 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
7906 |
$as_echo_n "checking for ANSI C header files... " >&6; } |
7907 |
if ${ac_cv_header_stdc+:} false; then : |
7908 |
$as_echo_n "(cached) " >&6 |
7909 |
else |
7910 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7911 |
/* end confdefs.h. */ |
7912 |
#include <stdlib.h> |
7913 |
#include <stdarg.h> |
7914 |
#include <string.h> |
7915 |
#include <float.h> |
7916 |
|
7917 |
int |
7918 |
main () |
7919 |
{ |
7920 |
|
7921 |
; |
7922 |
return 0; |
7923 |
} |
7924 |
_ACEOF |
7925 |
if ac_fn_c_try_compile "$LINENO"; then : |
7926 |
ac_cv_header_stdc=yes |
7927 |
else |
7928 |
ac_cv_header_stdc=no |
7929 |
fi |
7930 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7931 |
|
7932 |
if test $ac_cv_header_stdc = yes; then |
7933 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
7934 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7935 |
/* end confdefs.h. */ |
7936 |
#include <string.h> |
7937 |
|
7938 |
_ACEOF |
7939 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7940 |
$EGREP "memchr" >/dev/null 2>&1; then : |
7941 |
|
7942 |
else |
7943 |
ac_cv_header_stdc=no |
7944 |
fi |
7945 |
rm -f conftest* |
7946 |
|
7947 |
fi |
7948 |
|
7949 |
if test $ac_cv_header_stdc = yes; then |
7950 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
7951 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7952 |
/* end confdefs.h. */ |
7953 |
#include <stdlib.h> |
7954 |
|
7955 |
_ACEOF |
7956 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7957 |
$EGREP "free" >/dev/null 2>&1; then : |
7958 |
|
7959 |
else |
7960 |
ac_cv_header_stdc=no |
7961 |
fi |
7962 |
rm -f conftest* |
7963 |
|
7964 |
fi |
7965 |
|
7966 |
if test $ac_cv_header_stdc = yes; then |
7967 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
7968 |
if test "$cross_compiling" = yes; then : |
7969 |
: |
7970 |
else |
7971 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7972 |
/* end confdefs.h. */ |
7973 |
#include <ctype.h> |
7974 |
#include <stdlib.h> |
7975 |
#if ((' ' & 0x0FF) == 0x020) |
7976 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
7977 |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
7978 |
#else |
7979 |
# define ISLOWER(c) \ |
7980 |
(('a' <= (c) && (c) <= 'i') \ |
7981 |
|| ('j' <= (c) && (c) <= 'r') \ |
7982 |
|| ('s' <= (c) && (c) <= 'z')) |
7983 |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
7984 |
#endif |
7985 |
|
7986 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
7987 |
int |
7988 |
main () |
7989 |
{ |
7990 |
int i; |
7991 |
for (i = 0; i < 256; i++) |
7992 |
if (XOR (islower (i), ISLOWER (i)) |
7993 |
|| toupper (i) != TOUPPER (i)) |
7994 |
return 2; |
7995 |
return 0; |
7996 |
} |
7997 |
_ACEOF |
7998 |
if ac_fn_c_try_run "$LINENO"; then : |
7999 |
|
8000 |
else |
8001 |
ac_cv_header_stdc=no |
8002 |
fi |
8003 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
8004 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
8005 |
fi |
8006 |
|
8007 |
fi |
8008 |
fi |
8009 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
8010 |
$as_echo "$ac_cv_header_stdc" >&6; } |
8011 |
if test $ac_cv_header_stdc = yes; then |
8012 |
|
8013 |
$as_echo "#define STDC_HEADERS 1" >>confdefs.h |
8014 |
|
8015 |
fi |
8016 |
|
8017 |
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
8018 |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
8019 |
inttypes.h stdint.h unistd.h |
8020 |
do : |
8021 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
8022 |
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
8023 |
" |
8024 |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
8025 |
cat >>confdefs.h <<_ACEOF |
8026 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
8027 |
_ACEOF |
8028 |
|
8029 |
fi |
8030 |
|
8031 |
done |
8032 |
|
8033 |
|
8034 |
for ac_header in dlfcn.h |
8035 |
do : |
8036 |
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
8037 |
" |
8038 |
if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
8039 |
cat >>confdefs.h <<_ACEOF |
8040 |
#define HAVE_DLFCN_H 1 |
8041 |
_ACEOF |
8042 |
|
8043 |
fi |
8044 |
|
8045 |
done |
8046 |
|
8047 |
|
8048 |
|
8049 |
|
8050 |
|
8051 |
# Set options |
8052 |
|
8053 |
|
8054 |
|
8055 |
enable_dlopen=no |
8056 |
|
8057 |
|
8058 |
enable_win32_dll=no |
8059 |
|
8060 |
|
8061 |
# Check whether --enable-shared was given. |
8062 |
if test "${enable_shared+set}" = set; then : |
8063 |
enableval=$enable_shared; p=${PACKAGE-default} |
8064 |
case $enableval in |
8065 |
yes) enable_shared=yes ;; |
8066 |
no) enable_shared=no ;; |
8067 |
*) |
8068 |
enable_shared=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_shared=yes |
8075 |
fi |
8076 |
done |
8077 |
IFS=$lt_save_ifs |
8078 |
;; |
8079 |
esac |
8080 |
else |
8081 |
enable_shared=yes |
8082 |
fi |
8083 |
|
8084 |
|
8085 |
|
8086 |
|
8087 |
|
8088 |
|
8089 |
|
8090 |
|
8091 |
|
8092 |
# Check whether --enable-static was given. |
8093 |
if test "${enable_static+set}" = set; then : |
8094 |
enableval=$enable_static; p=${PACKAGE-default} |
8095 |
case $enableval in |
8096 |
yes) enable_static=yes ;; |
8097 |
no) enable_static=no ;; |
8098 |
*) |
8099 |
enable_static=no |
8100 |
# Look at the argument we got. We use all the common list separators. |
8101 |
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
8102 |
for pkg in $enableval; do |
8103 |
IFS=$lt_save_ifs |
8104 |
if test "X$pkg" = "X$p"; then |
8105 |
enable_static=yes |
8106 |
fi |
8107 |
done |
8108 |
IFS=$lt_save_ifs |
8109 |
;; |
8110 |
esac |
8111 |
else |
8112 |
enable_static=yes |
8113 |
fi |
8114 |
|
8115 |
|
8116 |
|
8117 |
|
8118 |
|
8119 |
|
8120 |
|
8121 |
|
8122 |
|
8123 |
|
8124 |
# Check whether --with-pic was given. |
8125 |
if test "${with_pic+set}" = set; then : |
8126 |
withval=$with_pic; lt_p=${PACKAGE-default} |
8127 |
case $withval in |
8128 |
yes|no) pic_mode=$withval ;; |
8129 |
*) |
8130 |
pic_mode=default |
8131 |
# Look at the argument we got. We use all the common list separators. |
8132 |
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
8133 |
for lt_pkg in $withval; do |
8134 |
IFS=$lt_save_ifs |
8135 |
if test "X$lt_pkg" = "X$lt_p"; then |
8136 |
pic_mode=yes |
8137 |
fi |
8138 |
done |
8139 |
IFS=$lt_save_ifs |
8140 |
;; |
8141 |
esac |
8142 |
else |
8143 |
pic_mode=default |
8144 |
fi |
8145 |
|
8146 |
|
8147 |
|
8148 |
|
8149 |
|
8150 |
|
8151 |
|
8152 |
|
8153 |
# Check whether --enable-fast-install was given. |
8154 |
if test "${enable_fast_install+set}" = set; then : |
8155 |
enableval=$enable_fast_install; p=${PACKAGE-default} |
8156 |
case $enableval in |
8157 |
yes) enable_fast_install=yes ;; |
8158 |
no) enable_fast_install=no ;; |
8159 |
*) |
8160 |
enable_fast_install=no |
8161 |
# Look at the argument we got. We use all the common list separators. |
8162 |
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
8163 |
for pkg in $enableval; do |
8164 |
IFS=$lt_save_ifs |
8165 |
if test "X$pkg" = "X$p"; then |
8166 |
enable_fast_install=yes |
8167 |
fi |
8168 |
done |
8169 |
IFS=$lt_save_ifs |
8170 |
;; |
8171 |
esac |
8172 |
else |
8173 |
enable_fast_install=yes |
8174 |
fi |
8175 |
|
8176 |
|
8177 |
|
8178 |
|
8179 |
|
8180 |
|
8181 |
|
8182 |
|
8183 |
shared_archive_member_spec= |
8184 |
case $host,$enable_shared in |
8185 |
power*-*-aix[5-9]*,yes) |
8186 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 |
8187 |
$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } |
8188 |
|
8189 |
# Check whether --with-aix-soname was given. |
8190 |
if test "${with_aix_soname+set}" = set; then : |
8191 |
withval=$with_aix_soname; case $withval in |
8192 |
aix|svr4|both) |
8193 |
;; |
8194 |
*) |
8195 |
as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 |
8196 |
;; |
8197 |
esac |
8198 |
lt_cv_with_aix_soname=$with_aix_soname |
8199 |
else |
8200 |
if ${lt_cv_with_aix_soname+:} false; then : |
8201 |
$as_echo_n "(cached) " >&6 |
8202 |
else |
8203 |
lt_cv_with_aix_soname=aix |
8204 |
fi |
8205 |
|
8206 |
with_aix_soname=$lt_cv_with_aix_soname |
8207 |
fi |
8208 |
|
8209 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 |
8210 |
$as_echo "$with_aix_soname" >&6; } |
8211 |
if test aix != "$with_aix_soname"; then |
8212 |
# For the AIX way of multilib, we name the shared archive member |
8213 |
# based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', |
8214 |
# and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. |
8215 |
# Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, |
8216 |
# the AIX toolchain works better with OBJECT_MODE set (default 32). |
8217 |
if test 64 = "${OBJECT_MODE-32}"; then |
8218 |
shared_archive_member_spec=shr_64 |
8219 |
else |
8220 |
shared_archive_member_spec=shr |
8221 |
fi |
8222 |
fi |
8223 |
;; |
8224 |
*) |
8225 |
with_aix_soname=aix |
8226 |
;; |
8227 |
esac |
8228 |
|
8229 |
|
8230 |
|
8231 |
|
8232 |
|
8233 |
|
8234 |
|
8235 |
|
8236 |
|
8237 |
|
8238 |
# This can be used to rebuild libtool when needed |
8239 |
LIBTOOL_DEPS=$ltmain |
8240 |
|
8241 |
# Always use our own libtool. |
8242 |
LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
8243 |
|
8244 |
|
8245 |
|
8246 |
|
8247 |
|
8248 |
|
8249 |
|
8250 |
|
8251 |
|
8252 |
|
8253 |
|
8254 |
|
8255 |
|
8256 |
|
8257 |
|
8258 |
|
8259 |
|
8260 |
|
8261 |
|
8262 |
|
8263 |
|
8264 |
|
8265 |
|
8266 |
|
8267 |
|
8268 |
|
8269 |
|
8270 |
|
8271 |
|
8272 |
|
8273 |
test -z "$LN_S" && LN_S="ln -s" |
8274 |
|
8275 |
|
8276 |
|
8277 |
|
8278 |
|
8279 |
|
8280 |
|
8281 |
|
8282 |
|
8283 |
|
8284 |
|
8285 |
|
8286 |
|
8287 |
|
8288 |
if test -n "${ZSH_VERSION+set}"; then |
8289 |
setopt NO_GLOB_SUBST |
8290 |
fi |
8291 |
|
8292 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8293 |
$as_echo_n "checking for objdir... " >&6; } |
8294 |
if ${lt_cv_objdir+:} false; then : |
8295 |
$as_echo_n "(cached) " >&6 |
8296 |
else |
8297 |
rm -f .libs 2>/dev/null |
8298 |
mkdir .libs 2>/dev/null |
8299 |
if test -d .libs; then |
8300 |
lt_cv_objdir=.libs |
8301 |
else |
8302 |
# MS-DOS does not allow filenames that begin with a dot. |
8303 |
lt_cv_objdir=_libs |
8304 |
fi |
8305 |
rmdir .libs 2>/dev/null |
8306 |
fi |
8307 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
8308 |
$as_echo "$lt_cv_objdir" >&6; } |
8309 |
objdir=$lt_cv_objdir |
8310 |
|
8311 |
|
8312 |
|
8313 |
|
8314 |
|
8315 |
cat >>confdefs.h <<_ACEOF |
8316 |
#define LT_OBJDIR "$lt_cv_objdir/" |
8317 |
_ACEOF |
8318 |
|
8319 |
|
8320 |
|
8321 |
|
8322 |
case $host_os in |
8323 |
aix3*) |
8324 |
# AIX sometimes has problems with the GCC collect2 program. For some |
8325 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
8326 |
# vanish in a puff of smoke. |
8327 |
if test set != "${COLLECT_NAMES+set}"; then |
8328 |
COLLECT_NAMES= |
8329 |
export COLLECT_NAMES |
8330 |
fi |
8331 |
;; |
8332 |
esac |
8333 |
|
8334 |
# Global variables: |
8335 |
ofile=libtool |
8336 |
can_build_shared=yes |
8337 |
|
8338 |
# All known linkers require a '.a' archive for static linking (except MSVC, |
8339 |
# which needs '.lib'). |
8340 |
libext=a |
8341 |
|
8342 |
with_gnu_ld=$lt_cv_prog_gnu_ld |
8343 |
|
8344 |
old_CC=$CC |
8345 |
old_CFLAGS=$CFLAGS |
8346 |
|
8347 |
# Set sane defaults for various variables |
8348 |
test -z "$CC" && CC=cc |
8349 |
test -z "$LTCC" && LTCC=$CC |
8350 |
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
8351 |
test -z "$LD" && LD=ld |
8352 |
test -z "$ac_objext" && ac_objext=o |
8353 |
|
8354 |
for cc_temp in $compiler""; do |
8355 |
case $cc_temp in |
8356 |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
8357 |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
8358 |
\-*) ;; |
8359 |
*) break;; |
8360 |
esac |
8361 |
done |
8362 |
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
8363 |
|
8364 |
|
8365 |
# Only perform the check for file, if the check method requires it |
8366 |
test -z "$MAGIC_CMD" && MAGIC_CMD=file |
8367 |
case $deplibs_check_method in |
8368 |
file_magic*) |
8369 |
if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
8370 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
8371 |
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
8372 |
if ${lt_cv_path_MAGIC_CMD+:} false; then : |
8373 |
$as_echo_n "(cached) " >&6 |
8374 |
else |
8375 |
case $MAGIC_CMD in |
8376 |
[\\/*] | ?:[\\/]*) |
8377 |
lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
8378 |
;; |
8379 |
*) |
8380 |
lt_save_MAGIC_CMD=$MAGIC_CMD |
8381 |
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
8382 |
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
8383 |
for ac_dir in $ac_dummy; do |
8384 |
IFS=$lt_save_ifs |
8385 |
test -z "$ac_dir" && ac_dir=. |
8386 |
if test -f "$ac_dir/${ac_tool_prefix}file"; then |
8387 |
lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" |
8388 |
if test -n "$file_magic_test_file"; then |
8389 |
case $deplibs_check_method in |
8390 |
"file_magic "*) |
8391 |
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
8392 |
MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8393 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
8394 |
$EGREP "$file_magic_regex" > /dev/null; then |
8395 |
: |
8396 |
else |
8397 |
cat <<_LT_EOF 1>&2 |
8398 |
|
8399 |
*** Warning: the command libtool uses to detect shared libraries, |
8400 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
8401 |
*** The result is that libtool may fail to recognize shared libraries |
8402 |
*** as such. This will affect the creation of libtool libraries that |
8403 |
*** depend on shared libraries, but programs linked with such libtool |
8404 |
*** libraries will work regardless of this problem. Nevertheless, you |
8405 |
*** may want to report the problem to your system manager and/or to |
8406 |
*** bug-libtool@gnu.org |
8407 |
|
8408 |
_LT_EOF |
8409 |
fi ;; |
8410 |
esac |
8411 |
fi |
8412 |
break |
8413 |
fi |
8414 |
done |
8415 |
IFS=$lt_save_ifs |
8416 |
MAGIC_CMD=$lt_save_MAGIC_CMD |
8417 |
;; |
8418 |
esac |
8419 |
fi |
8420 |
|
8421 |
MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8422 |
if test -n "$MAGIC_CMD"; then |
8423 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8424 |
$as_echo "$MAGIC_CMD" >&6; } |
8425 |
else |
8426 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8427 |
$as_echo "no" >&6; } |
8428 |
fi |
8429 |
|
8430 |
|
8431 |
|
8432 |
|
8433 |
|
8434 |
if test -z "$lt_cv_path_MAGIC_CMD"; then |
8435 |
if test -n "$ac_tool_prefix"; then |
8436 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
8437 |
$as_echo_n "checking for file... " >&6; } |
8438 |
if ${lt_cv_path_MAGIC_CMD+:} false; then : |
8439 |
$as_echo_n "(cached) " >&6 |
8440 |
else |
8441 |
case $MAGIC_CMD in |
8442 |
[\\/*] | ?:[\\/]*) |
8443 |
lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
8444 |
;; |
8445 |
*) |
8446 |
lt_save_MAGIC_CMD=$MAGIC_CMD |
8447 |
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
8448 |
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
8449 |
for ac_dir in $ac_dummy; do |
8450 |
IFS=$lt_save_ifs |
8451 |
test -z "$ac_dir" && ac_dir=. |
8452 |
if test -f "$ac_dir/file"; then |
8453 |
lt_cv_path_MAGIC_CMD=$ac_dir/"file" |
8454 |
if test -n "$file_magic_test_file"; then |
8455 |
case $deplibs_check_method in |
8456 |
"file_magic "*) |
8457 |
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
8458 |
MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8459 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
8460 |
$EGREP "$file_magic_regex" > /dev/null; then |
8461 |
: |
8462 |
else |
8463 |
cat <<_LT_EOF 1>&2 |
8464 |
|
8465 |
*** Warning: the command libtool uses to detect shared libraries, |
8466 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
8467 |
*** The result is that libtool may fail to recognize shared libraries |
8468 |
*** as such. This will affect the creation of libtool libraries that |
8469 |
*** depend on shared libraries, but programs linked with such libtool |
8470 |
*** libraries will work regardless of this problem. Nevertheless, you |
8471 |
*** may want to report the problem to your system manager and/or to |
8472 |
*** bug-libtool@gnu.org |
8473 |
|
8474 |
_LT_EOF |
8475 |
fi ;; |
8476 |
esac |
8477 |
fi |
8478 |
break |
8479 |
fi |
8480 |
done |
8481 |
IFS=$lt_save_ifs |
8482 |
MAGIC_CMD=$lt_save_MAGIC_CMD |
8483 |
;; |
8484 |
esac |
8485 |
fi |
8486 |
|
8487 |
MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8488 |
if test -n "$MAGIC_CMD"; then |
8489 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8490 |
$as_echo "$MAGIC_CMD" >&6; } |
8491 |
else |
8492 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8493 |
$as_echo "no" >&6; } |
8494 |
fi |
8495 |
|
8496 |
|
8497 |
else |
8498 |
MAGIC_CMD=: |
8499 |
fi |
8500 |
fi |
8501 |
|
8502 |
fi |
8503 |
;; |
8504 |
esac |
8505 |
|
8506 |
# Use C for the default configuration in the libtool script |
8507 |
|
8508 |
lt_save_CC=$CC |
8509 |
ac_ext=c |
8510 |
ac_cpp='$CPP $CPPFLAGS' |
8511 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
8512 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
8513 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
8514 |
|
8515 |
|
8516 |
# Source file extension for C test sources. |
8517 |
ac_ext=c |
8518 |
|
8519 |
# Object file extension for compiled C test sources. |
8520 |
objext=o |
8521 |
objext=$objext |
8522 |
|
8523 |
# Code to be used in simple compile tests |
8524 |
lt_simple_compile_test_code="int some_variable = 0;" |
8525 |
|
8526 |
# Code to be used in simple link tests |
8527 |
lt_simple_link_test_code='int main(){return(0);}' |
8528 |
|
8529 |
|
8530 |
|
8531 |
|
8532 |
|
8533 |
|
8534 |
|
8535 |
# If no C compiler was specified, use CC. |
8536 |
LTCC=${LTCC-"$CC"} |
8537 |
|
8538 |
# If no C compiler flags were specified, use CFLAGS. |
8539 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
8540 |
|
8541 |
# Allow CC to be a program name with arguments. |
8542 |
compiler=$CC |
8543 |
|
8544 |
# Save the default compiler, since it gets overwritten when the other |
8545 |
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
8546 |
compiler_DEFAULT=$CC |
8547 |
|
8548 |
# save warnings/boilerplate of simple test code |
8549 |
ac_outfile=conftest.$ac_objext |
8550 |
echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
8551 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
8552 |
_lt_compiler_boilerplate=`cat conftest.err` |
8553 |
$RM conftest* |
8554 |
|
8555 |
ac_outfile=conftest.$ac_objext |
8556 |
echo "$lt_simple_link_test_code" >conftest.$ac_ext |
8557 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
8558 |
_lt_linker_boilerplate=`cat conftest.err` |
8559 |
$RM -r conftest* |
8560 |
|
8561 |
|
8562 |
if test -n "$compiler"; then |
8563 |
|
8564 |
lt_prog_compiler_no_builtin_flag= |
8565 |
|
8566 |
if test yes = "$GCC"; then |
8567 |
case $cc_basename in |
8568 |
nvcc*) |
8569 |
lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
8570 |
*) |
8571 |
lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
8572 |
esac |
8573 |
|
8574 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8575 |
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
8576 |
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
8577 |
$as_echo_n "(cached) " >&6 |
8578 |
else |
8579 |
lt_cv_prog_compiler_rtti_exceptions=no |
8580 |
ac_outfile=conftest.$ac_objext |
8581 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
8582 |
lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment |
8583 |
# Insert the option either (1) after the last *FLAGS variable, or |
8584 |
# (2) before a word containing "conftest.", or (3) at the end. |
8585 |
# Note that $ac_compile itself does not contain backslashes and begins |
8586 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
8587 |
# The option is referenced via a variable to avoid confusing sed. |
8588 |
lt_compile=`echo "$ac_compile" | $SED \ |
8589 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8590 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8591 |
-e 's:$: $lt_compiler_flag:'` |
8592 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8593 |
(eval "$lt_compile" 2>conftest.err) |
8594 |
ac_status=$? |
8595 |
cat conftest.err >&5 |
8596 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8597 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
8598 |
# The compiler can only warn and ignore the option if not recognized |
8599 |
# So say no if there are warnings other than the usual output. |
8600 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
8601 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8602 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
8603 |
lt_cv_prog_compiler_rtti_exceptions=yes |
8604 |
fi |
8605 |
fi |
8606 |
$RM conftest* |
8607 |
|
8608 |
fi |
8609 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
8610 |
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
8611 |
|
8612 |
if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then |
8613 |
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
8614 |
else |
8615 |
: |
8616 |
fi |
8617 |
|
8618 |
fi |
8619 |
|
8620 |
|
8621 |
|
8622 |
|
8623 |
|
8624 |
|
8625 |
lt_prog_compiler_wl= |
8626 |
lt_prog_compiler_pic= |
8627 |
lt_prog_compiler_static= |
8628 |
|
8629 |
|
8630 |
if test yes = "$GCC"; then |
8631 |
lt_prog_compiler_wl='-Wl,' |
8632 |
lt_prog_compiler_static='-static' |
8633 |
|
8634 |
case $host_os in |
8635 |
aix*) |
8636 |
# All AIX code is PIC. |
8637 |
if test ia64 = "$host_cpu"; then |
8638 |
# AIX 5 now supports IA64 processor |
8639 |
lt_prog_compiler_static='-Bstatic' |
8640 |
fi |
8641 |
lt_prog_compiler_pic='-fPIC' |
8642 |
;; |
8643 |
|
8644 |
amigaos*) |
8645 |
case $host_cpu in |
8646 |
powerpc) |
8647 |
# see comment about AmigaOS4 .so support |
8648 |
lt_prog_compiler_pic='-fPIC' |
8649 |
;; |
8650 |
m68k) |
8651 |
# FIXME: we need at least 68020 code to build shared libraries, but |
8652 |
# adding the '-m68020' flag to GCC prevents building anything better, |
8653 |
# like '-m68040'. |
8654 |
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
8655 |
;; |
8656 |
esac |
8657 |
;; |
8658 |
|
8659 |
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
8660 |
# PIC is the default for these OSes. |
8661 |
;; |
8662 |
|
8663 |
mingw* | cygwin* | pw32* | os2* | cegcc*) |
8664 |
# This hack is so that the source file can tell whether it is being |
8665 |
# built for inclusion in a dll (and should export symbols for example). |
8666 |
# Although the cygwin gcc ignores -fPIC, still need this for old-style |
8667 |
# (--disable-auto-import) libraries |
8668 |
lt_prog_compiler_pic='-DDLL_EXPORT' |
8669 |
case $host_os in |
8670 |
os2*) |
8671 |
lt_prog_compiler_static='$wl-static' |
8672 |
;; |
8673 |
esac |
8674 |
;; |
8675 |
|
8676 |
darwin* | rhapsody*) |
8677 |
# PIC is the default on this platform |
8678 |
# Common symbols not allowed in MH_DYLIB files |
8679 |
lt_prog_compiler_pic='-fno-common' |
8680 |
;; |
8681 |
|
8682 |
haiku*) |
8683 |
# PIC is the default for Haiku. |
8684 |
# The "-static" flag exists, but is broken. |
8685 |
lt_prog_compiler_static= |
8686 |
;; |
8687 |
|
8688 |
hpux*) |
8689 |
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
8690 |
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
8691 |
# sets the default TLS model and affects inlining. |
8692 |
case $host_cpu in |
8693 |
hppa*64*) |
8694 |
# +Z the default |
8695 |
;; |
8696 |
*) |
8697 |
lt_prog_compiler_pic='-fPIC' |
8698 |
;; |
8699 |
esac |
8700 |
;; |
8701 |
|
8702 |
interix[3-9]*) |
8703 |
# Interix 3.x gcc -fpic/-fPIC options generate broken code. |
8704 |
# Instead, we relocate shared libraries at runtime. |
8705 |
;; |
8706 |
|
8707 |
msdosdjgpp*) |
8708 |
# Just because we use GCC doesn't mean we suddenly get shared libraries |
8709 |
# on systems that don't support them. |
8710 |
lt_prog_compiler_can_build_shared=no |
8711 |
enable_shared=no |
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 |
sysv4*MP*) |
8721 |
if test -d /usr/nec; then |
8722 |
lt_prog_compiler_pic=-Kconform_pic |
8723 |
fi |
8724 |
;; |
8725 |
|
8726 |
*) |
8727 |
lt_prog_compiler_pic='-fPIC' |
8728 |
;; |
8729 |
esac |
8730 |
|
8731 |
case $cc_basename in |
8732 |
nvcc*) # Cuda Compiler Driver 2.2 |
8733 |
lt_prog_compiler_wl='-Xlinker ' |
8734 |
if test -n "$lt_prog_compiler_pic"; then |
8735 |
lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" |
8736 |
fi |
8737 |
;; |
8738 |
esac |
8739 |
else |
8740 |
# PORTME Check for flag to pass linker flags through the system compiler. |
8741 |
case $host_os in |
8742 |
aix*) |
8743 |
lt_prog_compiler_wl='-Wl,' |
8744 |
if test ia64 = "$host_cpu"; then |
8745 |
# AIX 5 now supports IA64 processor |
8746 |
lt_prog_compiler_static='-Bstatic' |
8747 |
else |
8748 |
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
8749 |
fi |
8750 |
;; |
8751 |
|
8752 |
darwin* | rhapsody*) |
8753 |
# PIC is the default on this platform |
8754 |
# Common symbols not allowed in MH_DYLIB files |
8755 |
lt_prog_compiler_pic='-fno-common' |
8756 |
case $cc_basename in |
8757 |
nagfor*) |
8758 |
# NAG Fortran compiler |
8759 |
lt_prog_compiler_wl='-Wl,-Wl,,' |
8760 |
lt_prog_compiler_pic='-PIC' |
8761 |
lt_prog_compiler_static='-Bstatic' |
8762 |
;; |
8763 |
esac |
8764 |
;; |
8765 |
|
8766 |
mingw* | cygwin* | pw32* | os2* | cegcc*) |
8767 |
# This hack is so that the source file can tell whether it is being |
8768 |
# built for inclusion in a dll (and should export symbols for example). |
8769 |
lt_prog_compiler_pic='-DDLL_EXPORT' |
8770 |
case $host_os in |
8771 |
os2*) |
8772 |
lt_prog_compiler_static='$wl-static' |
8773 |
;; |
8774 |
esac |
8775 |
;; |
8776 |
|
8777 |
hpux9* | hpux10* | hpux11*) |
8778 |
lt_prog_compiler_wl='-Wl,' |
8779 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
8780 |
# not for PA HP-UX. |
8781 |
case $host_cpu in |
8782 |
hppa*64*|ia64*) |
8783 |
# +Z the default |
8784 |
;; |
8785 |
*) |
8786 |
lt_prog_compiler_pic='+Z' |
8787 |
;; |
8788 |
esac |
8789 |
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
8790 |
lt_prog_compiler_static='$wl-a ${wl}archive' |
8791 |
;; |
8792 |
|
8793 |
irix5* | irix6* | nonstopux*) |
8794 |
lt_prog_compiler_wl='-Wl,' |
8795 |
# PIC (with -KPIC) is the default. |
8796 |
lt_prog_compiler_static='-non_shared' |
8797 |
;; |
8798 |
|
8799 |
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
8800 |
case $cc_basename in |
8801 |
# old Intel for x86_64, which still supported -KPIC. |
8802 |
ecc*) |
8803 |
lt_prog_compiler_wl='-Wl,' |
8804 |
lt_prog_compiler_pic='-KPIC' |
8805 |
lt_prog_compiler_static='-static' |
8806 |
;; |
8807 |
# icc used to be incompatible with GCC. |
8808 |
# ICC 10 doesn't accept -KPIC any more. |
8809 |
icc* | ifort*) |
8810 |
lt_prog_compiler_wl='-Wl,' |
8811 |
lt_prog_compiler_pic='-fPIC' |
8812 |
lt_prog_compiler_static='-static' |
8813 |
;; |
8814 |
# Lahey Fortran 8.1. |
8815 |
lf95*) |
8816 |
lt_prog_compiler_wl='-Wl,' |
8817 |
lt_prog_compiler_pic='--shared' |
8818 |
lt_prog_compiler_static='--static' |
8819 |
;; |
8820 |
nagfor*) |
8821 |
# NAG Fortran compiler |
8822 |
lt_prog_compiler_wl='-Wl,-Wl,,' |
8823 |
lt_prog_compiler_pic='-PIC' |
8824 |
lt_prog_compiler_static='-Bstatic' |
8825 |
;; |
8826 |
tcc*) |
8827 |
# Fabrice Bellard et al's Tiny C Compiler |
8828 |
lt_prog_compiler_wl='-Wl,' |
8829 |
lt_prog_compiler_pic='-fPIC' |
8830 |
lt_prog_compiler_static='-static' |
8831 |
;; |
8832 |
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
8833 |
# Portland Group compilers (*not* the Pentium gcc compiler, |
8834 |
# which looks to be a dead project) |
8835 |
lt_prog_compiler_wl='-Wl,' |
8836 |
lt_prog_compiler_pic='-fpic' |
8837 |
lt_prog_compiler_static='-Bstatic' |
8838 |
;; |
8839 |
ccc*) |
8840 |
lt_prog_compiler_wl='-Wl,' |
8841 |
# All Alpha code is PIC. |
8842 |
lt_prog_compiler_static='-non_shared' |
8843 |
;; |
8844 |
xl* | bgxl* | bgf* | mpixl*) |
8845 |
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
8846 |
lt_prog_compiler_wl='-Wl,' |
8847 |
lt_prog_compiler_pic='-qpic' |
8848 |
lt_prog_compiler_static='-qstaticlink' |
8849 |
;; |
8850 |
*) |
8851 |
case `$CC -V 2>&1 | sed 5q` in |
8852 |
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
8853 |
# Sun Fortran 8.3 passes all unrecognized flags to the linker |
8854 |
lt_prog_compiler_pic='-KPIC' |
8855 |
lt_prog_compiler_static='-Bstatic' |
8856 |
lt_prog_compiler_wl='' |
8857 |
;; |
8858 |
*Sun\ F* | *Sun*Fortran*) |
8859 |
lt_prog_compiler_pic='-KPIC' |
8860 |
lt_prog_compiler_static='-Bstatic' |
8861 |
lt_prog_compiler_wl='-Qoption ld ' |
8862 |
;; |
8863 |
*Sun\ C*) |
8864 |
# Sun C 5.9 |
8865 |
lt_prog_compiler_pic='-KPIC' |
8866 |
lt_prog_compiler_static='-Bstatic' |
8867 |
lt_prog_compiler_wl='-Wl,' |
8868 |
;; |
8869 |
*Intel*\ [CF]*Compiler*) |
8870 |
lt_prog_compiler_wl='-Wl,' |
8871 |
lt_prog_compiler_pic='-fPIC' |
8872 |
lt_prog_compiler_static='-static' |
8873 |
;; |
8874 |
*Portland\ Group*) |
8875 |
lt_prog_compiler_wl='-Wl,' |
8876 |
lt_prog_compiler_pic='-fpic' |
8877 |
lt_prog_compiler_static='-Bstatic' |
8878 |
;; |
8879 |
esac |
8880 |
;; |
8881 |
esac |
8882 |
;; |
8883 |
|
8884 |
newsos6) |
8885 |
lt_prog_compiler_pic='-KPIC' |
8886 |
lt_prog_compiler_static='-Bstatic' |
8887 |
;; |
8888 |
|
8889 |
*nto* | *qnx*) |
8890 |
# QNX uses GNU C++, but need to define -shared option too, otherwise |
8891 |
# it will coredump. |
8892 |
lt_prog_compiler_pic='-fPIC -shared' |
8893 |
;; |
8894 |
|
8895 |
osf3* | osf4* | osf5*) |
8896 |
lt_prog_compiler_wl='-Wl,' |
8897 |
# All OSF/1 code is PIC. |
8898 |
lt_prog_compiler_static='-non_shared' |
8899 |
;; |
8900 |
|
8901 |
rdos*) |
8902 |
lt_prog_compiler_static='-non_shared' |
8903 |
;; |
8904 |
|
8905 |
solaris*) |
8906 |
lt_prog_compiler_pic='-KPIC' |
8907 |
lt_prog_compiler_static='-Bstatic' |
8908 |
case $cc_basename in |
8909 |
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
8910 |
lt_prog_compiler_wl='-Qoption ld ';; |
8911 |
*) |
8912 |
lt_prog_compiler_wl='-Wl,';; |
8913 |
esac |
8914 |
;; |
8915 |
|
8916 |
sunos4*) |
8917 |
lt_prog_compiler_wl='-Qoption ld ' |
8918 |
lt_prog_compiler_pic='-PIC' |
8919 |
lt_prog_compiler_static='-Bstatic' |
8920 |
;; |
8921 |
|
8922 |
sysv4 | sysv4.2uw2* | sysv4.3*) |
8923 |
lt_prog_compiler_wl='-Wl,' |
8924 |
lt_prog_compiler_pic='-KPIC' |
8925 |
lt_prog_compiler_static='-Bstatic' |
8926 |
;; |
8927 |
|
8928 |
sysv4*MP*) |
8929 |
if test -d /usr/nec; then |
8930 |
lt_prog_compiler_pic='-Kconform_pic' |
8931 |
lt_prog_compiler_static='-Bstatic' |
8932 |
fi |
8933 |
;; |
8934 |
|
8935 |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
8936 |
lt_prog_compiler_wl='-Wl,' |
8937 |
lt_prog_compiler_pic='-KPIC' |
8938 |
lt_prog_compiler_static='-Bstatic' |
8939 |
;; |
8940 |
|
8941 |
unicos*) |
8942 |
lt_prog_compiler_wl='-Wl,' |
8943 |
lt_prog_compiler_can_build_shared=no |
8944 |
;; |
8945 |
|
8946 |
uts4*) |
8947 |
lt_prog_compiler_pic='-pic' |
8948 |
lt_prog_compiler_static='-Bstatic' |
8949 |
;; |
8950 |
|
8951 |
*) |
8952 |
lt_prog_compiler_can_build_shared=no |
8953 |
;; |
8954 |
esac |
8955 |
fi |
8956 |
|
8957 |
case $host_os in |
8958 |
# For platforms that do not support PIC, -DPIC is meaningless: |
8959 |
*djgpp*) |
8960 |
lt_prog_compiler_pic= |
8961 |
;; |
8962 |
*) |
8963 |
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
8964 |
;; |
8965 |
esac |
8966 |
|
8967 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
8968 |
$as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
8969 |
if ${lt_cv_prog_compiler_pic+:} false; then : |
8970 |
$as_echo_n "(cached) " >&6 |
8971 |
else |
8972 |
lt_cv_prog_compiler_pic=$lt_prog_compiler_pic |
8973 |
fi |
8974 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
8975 |
$as_echo "$lt_cv_prog_compiler_pic" >&6; } |
8976 |
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
8977 |
|
8978 |
# |
8979 |
# Check to make sure the PIC flag actually works. |
8980 |
# |
8981 |
if test -n "$lt_prog_compiler_pic"; then |
8982 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
8983 |
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
8984 |
if ${lt_cv_prog_compiler_pic_works+:} false; then : |
8985 |
$as_echo_n "(cached) " >&6 |
8986 |
else |
8987 |
lt_cv_prog_compiler_pic_works=no |
8988 |
ac_outfile=conftest.$ac_objext |
8989 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
8990 |
lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment |
8991 |
# Insert the option either (1) after the last *FLAGS variable, or |
8992 |
# (2) before a word containing "conftest.", or (3) at the end. |
8993 |
# Note that $ac_compile itself does not contain backslashes and begins |
8994 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
8995 |
# The option is referenced via a variable to avoid confusing sed. |
8996 |
lt_compile=`echo "$ac_compile" | $SED \ |
8997 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8998 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8999 |
-e 's:$: $lt_compiler_flag:'` |
9000 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
9001 |
(eval "$lt_compile" 2>conftest.err) |
9002 |
ac_status=$? |
9003 |
cat conftest.err >&5 |
9004 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9005 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
9006 |
# The compiler can only warn and ignore the option if not recognized |
9007 |
# So say no if there are warnings other than the usual output. |
9008 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
9009 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9010 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
9011 |
lt_cv_prog_compiler_pic_works=yes |
9012 |
fi |
9013 |
fi |
9014 |
$RM conftest* |
9015 |
|
9016 |
fi |
9017 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
9018 |
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
9019 |
|
9020 |
if test yes = "$lt_cv_prog_compiler_pic_works"; then |
9021 |
case $lt_prog_compiler_pic in |
9022 |
"" | " "*) ;; |
9023 |
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
9024 |
esac |
9025 |
else |
9026 |
lt_prog_compiler_pic= |
9027 |
lt_prog_compiler_can_build_shared=no |
9028 |
fi |
9029 |
|
9030 |
fi |
9031 |
|
9032 |
|
9033 |
|
9034 |
|
9035 |
|
9036 |
|
9037 |
|
9038 |
|
9039 |
|
9040 |
|
9041 |
|
9042 |
# |
9043 |
# Check to make sure the static flag actually works. |
9044 |
# |
9045 |
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
9046 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
9047 |
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
9048 |
if ${lt_cv_prog_compiler_static_works+:} false; then : |
9049 |
$as_echo_n "(cached) " >&6 |
9050 |
else |
9051 |
lt_cv_prog_compiler_static_works=no |
9052 |
save_LDFLAGS=$LDFLAGS |
9053 |
LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
9054 |
echo "$lt_simple_link_test_code" > conftest.$ac_ext |
9055 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
9056 |
# The linker can only warn and ignore the option if not recognized |
9057 |
# So say no if there are warnings |
9058 |
if test -s conftest.err; then |
9059 |
# Append any errors to the config.log. |
9060 |
cat conftest.err 1>&5 |
9061 |
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
9062 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9063 |
if diff conftest.exp conftest.er2 >/dev/null; then |
9064 |
lt_cv_prog_compiler_static_works=yes |
9065 |
fi |
9066 |
else |
9067 |
lt_cv_prog_compiler_static_works=yes |
9068 |
fi |
9069 |
fi |
9070 |
$RM -r conftest* |
9071 |
LDFLAGS=$save_LDFLAGS |
9072 |
|
9073 |
fi |
9074 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
9075 |
$as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
9076 |
|
9077 |
if test yes = "$lt_cv_prog_compiler_static_works"; then |
9078 |
: |
9079 |
else |
9080 |
lt_prog_compiler_static= |
9081 |
fi |
9082 |
|
9083 |
|
9084 |
|
9085 |
|
9086 |
|
9087 |
|
9088 |
|
9089 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9090 |
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
9091 |
if ${lt_cv_prog_compiler_c_o+:} false; then : |
9092 |
$as_echo_n "(cached) " >&6 |
9093 |
else |
9094 |
lt_cv_prog_compiler_c_o=no |
9095 |
$RM -r conftest 2>/dev/null |
9096 |
mkdir conftest |
9097 |
cd conftest |
9098 |
mkdir out |
9099 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
9100 |
|
9101 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
9102 |
# Insert the option either (1) after the last *FLAGS variable, or |
9103 |
# (2) before a word containing "conftest.", or (3) at the end. |
9104 |
# Note that $ac_compile itself does not contain backslashes and begins |
9105 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
9106 |
lt_compile=`echo "$ac_compile" | $SED \ |
9107 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
9108 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
9109 |
-e 's:$: $lt_compiler_flag:'` |
9110 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
9111 |
(eval "$lt_compile" 2>out/conftest.err) |
9112 |
ac_status=$? |
9113 |
cat out/conftest.err >&5 |
9114 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9115 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
9116 |
then |
9117 |
# The compiler can only warn and ignore the option if not recognized |
9118 |
# So say no if there are warnings |
9119 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
9120 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
9121 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
9122 |
lt_cv_prog_compiler_c_o=yes |
9123 |
fi |
9124 |
fi |
9125 |
chmod u+w . 2>&5 |
9126 |
$RM conftest* |
9127 |
# SGI C++ compiler will create directory out/ii_files/ for |
9128 |
# template instantiation |
9129 |
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
9130 |
$RM out/* && rmdir out |
9131 |
cd .. |
9132 |
$RM -r conftest |
9133 |
$RM conftest* |
9134 |
|
9135 |
fi |
9136 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
9137 |
$as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
9138 |
|
9139 |
|
9140 |
|
9141 |
|
9142 |
|
9143 |
|
9144 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9145 |
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
9146 |
if ${lt_cv_prog_compiler_c_o+:} false; then : |
9147 |
$as_echo_n "(cached) " >&6 |
9148 |
else |
9149 |
lt_cv_prog_compiler_c_o=no |
9150 |
$RM -r conftest 2>/dev/null |
9151 |
mkdir conftest |
9152 |
cd conftest |
9153 |
mkdir out |
9154 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
9155 |
|
9156 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
9157 |
# Insert the option either (1) after the last *FLAGS variable, or |
9158 |
# (2) before a word containing "conftest.", or (3) at the end. |
9159 |
# Note that $ac_compile itself does not contain backslashes and begins |
9160 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
9161 |
lt_compile=`echo "$ac_compile" | $SED \ |
9162 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
9163 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
9164 |
-e 's:$: $lt_compiler_flag:'` |
9165 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
9166 |
(eval "$lt_compile" 2>out/conftest.err) |
9167 |
ac_status=$? |
9168 |
cat out/conftest.err >&5 |
9169 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9170 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
9171 |
then |
9172 |
# The compiler can only warn and ignore the option if not recognized |
9173 |
# So say no if there are warnings |
9174 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
9175 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
9176 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
9177 |
lt_cv_prog_compiler_c_o=yes |
9178 |
fi |
9179 |
fi |
9180 |
chmod u+w . 2>&5 |
9181 |
$RM conftest* |
9182 |
# SGI C++ compiler will create directory out/ii_files/ for |
9183 |
# template instantiation |
9184 |
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
9185 |
$RM out/* && rmdir out |
9186 |
cd .. |
9187 |
$RM -r conftest |
9188 |
$RM conftest* |
9189 |
|
9190 |
fi |
9191 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
9192 |
$as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
9193 |
|
9194 |
|
9195 |
|
9196 |
|
9197 |
hard_links=nottested |
9198 |
if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then |
9199 |
# do not overwrite the value of need_locks provided by the user |
9200 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
9201 |
$as_echo_n "checking if we can lock with hard links... " >&6; } |
9202 |
hard_links=yes |
9203 |
$RM conftest* |
9204 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
9205 |
touch conftest.a |
9206 |
ln conftest.a conftest.b 2>&5 || hard_links=no |
9207 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
9208 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
9209 |
$as_echo "$hard_links" >&6; } |
9210 |
if test no = "$hard_links"; then |
9211 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 |
9212 |
$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} |
9213 |
need_locks=warn |
9214 |
fi |
9215 |
else |
9216 |
need_locks=no |
9217 |
fi |
9218 |
|
9219 |
|
9220 |
|
9221 |
|
9222 |
|
9223 |
|
9224 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
9225 |
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
9226 |
|
9227 |
runpath_var= |
9228 |
allow_undefined_flag= |
9229 |
always_export_symbols=no |
9230 |
archive_cmds= |
9231 |
archive_expsym_cmds= |
9232 |
compiler_needs_object=no |
9233 |
enable_shared_with_static_runtimes=no |
9234 |
export_dynamic_flag_spec= |
9235 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
9236 |
hardcode_automatic=no |
9237 |
hardcode_direct=no |
9238 |
hardcode_direct_absolute=no |
9239 |
hardcode_libdir_flag_spec= |
9240 |
hardcode_libdir_separator= |
9241 |
hardcode_minus_L=no |
9242 |
hardcode_shlibpath_var=unsupported |
9243 |
inherit_rpath=no |
9244 |
link_all_deplibs=unknown |
9245 |
module_cmds= |
9246 |
module_expsym_cmds= |
9247 |
old_archive_from_new_cmds= |
9248 |
old_archive_from_expsyms_cmds= |
9249 |
thread_safe_flag_spec= |
9250 |
whole_archive_flag_spec= |
9251 |
# include_expsyms should be a list of space-separated symbols to be *always* |
9252 |
# included in the symbol list |
9253 |
include_expsyms= |
9254 |
# exclude_expsyms can be an extended regexp of symbols to exclude |
9255 |
# it will be wrapped by ' (' and ')$', so one must not match beginning or |
9256 |
# end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', |
9257 |
# as well as any symbol that contains 'd'. |
9258 |
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
9259 |
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
9260 |
# platforms (ab)use it in PIC code, but their linkers get confused if |
9261 |
# the symbol is explicitly referenced. Since portable code cannot |
9262 |
# rely on this symbol name, it's probably fine to never include it in |
9263 |
# preloaded symbol tables. |
9264 |
# Exclude shared library initialization/finalization symbols. |
9265 |
extract_expsyms_cmds= |
9266 |
|
9267 |
case $host_os in |
9268 |
cygwin* | mingw* | pw32* | cegcc*) |
9269 |
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
9270 |
# When not using gcc, we currently assume that we are using |
9271 |
# Microsoft Visual C++. |
9272 |
if test yes != "$GCC"; then |
9273 |
with_gnu_ld=no |
9274 |
fi |
9275 |
;; |
9276 |
interix*) |
9277 |
# we just hope/assume this is gcc and not c89 (= MSVC++) |
9278 |
with_gnu_ld=yes |
9279 |
;; |
9280 |
openbsd* | bitrig*) |
9281 |
with_gnu_ld=no |
9282 |
;; |
9283 |
esac |
9284 |
|
9285 |
ld_shlibs=yes |
9286 |
|
9287 |
# On some targets, GNU ld is compatible enough with the native linker |
9288 |
# that we're better off using the native interface for both. |
9289 |
lt_use_gnu_ld_interface=no |
9290 |
if test yes = "$with_gnu_ld"; then |
9291 |
case $host_os in |
9292 |
aix*) |
9293 |
# The AIX port of GNU ld has always aspired to compatibility |
9294 |
# with the native linker. However, as the warning in the GNU ld |
9295 |
# block says, versions before 2.19.5* couldn't really create working |
9296 |
# shared libraries, regardless of the interface used. |
9297 |
case `$LD -v 2>&1` in |
9298 |
*\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
9299 |
*\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
9300 |
*\ \(GNU\ Binutils\)\ [3-9]*) ;; |
9301 |
*) |
9302 |
lt_use_gnu_ld_interface=yes |
9303 |
;; |
9304 |
esac |
9305 |
;; |
9306 |
*) |
9307 |
lt_use_gnu_ld_interface=yes |
9308 |
;; |
9309 |
esac |
9310 |
fi |
9311 |
|
9312 |
if test yes = "$lt_use_gnu_ld_interface"; then |
9313 |
# If archive_cmds runs LD, not CC, wlarc should be empty |
9314 |
wlarc='$wl' |
9315 |
|
9316 |
# Set some defaults for GNU ld with shared library support. These |
9317 |
# are reset later if shared libraries are not supported. Putting them |
9318 |
# here allows them to be overridden if necessary. |
9319 |
runpath_var=LD_RUN_PATH |
9320 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
9321 |
export_dynamic_flag_spec='$wl--export-dynamic' |
9322 |
# ancient GNU ld didn't support --whole-archive et. al. |
9323 |
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
9324 |
whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
9325 |
else |
9326 |
whole_archive_flag_spec= |
9327 |
fi |
9328 |
supports_anon_versioning=no |
9329 |
case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in |
9330 |
*GNU\ gold*) supports_anon_versioning=yes ;; |
9331 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
9332 |
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
9333 |
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
9334 |
*\ 2.11.*) ;; # other 2.11 versions |
9335 |
*) supports_anon_versioning=yes ;; |
9336 |
esac |
9337 |
|
9338 |
# See if GNU ld supports shared libraries. |
9339 |
case $host_os in |
9340 |
aix[3-9]*) |
9341 |
# On AIX/PPC, the GNU linker is very broken |
9342 |
if test ia64 != "$host_cpu"; then |
9343 |
ld_shlibs=no |
9344 |
cat <<_LT_EOF 1>&2 |
9345 |
|
9346 |
*** Warning: the GNU linker, at least up to release 2.19, is reported |
9347 |
*** to be unable to reliably create shared libraries on AIX. |
9348 |
*** Therefore, libtool is disabling shared libraries support. If you |
9349 |
*** really care for shared libraries, you may want to install binutils |
9350 |
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
9351 |
*** You will then need to restart the configuration process. |
9352 |
|
9353 |
_LT_EOF |
9354 |
fi |
9355 |
;; |
9356 |
|
9357 |
amigaos*) |
9358 |
case $host_cpu in |
9359 |
powerpc) |
9360 |
# see comment about AmigaOS4 .so support |
9361 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9362 |
archive_expsym_cmds='' |
9363 |
;; |
9364 |
m68k) |
9365 |
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)' |
9366 |
hardcode_libdir_flag_spec='-L$libdir' |
9367 |
hardcode_minus_L=yes |
9368 |
;; |
9369 |
esac |
9370 |
;; |
9371 |
|
9372 |
beos*) |
9373 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
9374 |
allow_undefined_flag=unsupported |
9375 |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
9376 |
# support --undefined. This deserves some investigation. FIXME |
9377 |
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9378 |
else |
9379 |
ld_shlibs=no |
9380 |
fi |
9381 |
;; |
9382 |
|
9383 |
cygwin* | mingw* | pw32* | cegcc*) |
9384 |
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
9385 |
# as there is no search path for DLLs. |
9386 |
hardcode_libdir_flag_spec='-L$libdir' |
9387 |
export_dynamic_flag_spec='$wl--export-all-symbols' |
9388 |
allow_undefined_flag=unsupported |
9389 |
always_export_symbols=no |
9390 |
enable_shared_with_static_runtimes=yes |
9391 |
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' |
9392 |
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
9393 |
|
9394 |
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
9395 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
9396 |
# If the export-symbols file already is a .def file, use it as |
9397 |
# is; otherwise, prepend EXPORTS... |
9398 |
archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
9399 |
cp $export_symbols $output_objdir/$soname.def; |
9400 |
else |
9401 |
echo EXPORTS > $output_objdir/$soname.def; |
9402 |
cat $export_symbols >> $output_objdir/$soname.def; |
9403 |
fi~ |
9404 |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
9405 |
else |
9406 |
ld_shlibs=no |
9407 |
fi |
9408 |
;; |
9409 |
|
9410 |
haiku*) |
9411 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9412 |
link_all_deplibs=yes |
9413 |
;; |
9414 |
|
9415 |
os2*) |
9416 |
hardcode_libdir_flag_spec='-L$libdir' |
9417 |
hardcode_minus_L=yes |
9418 |
allow_undefined_flag=unsupported |
9419 |
shrext_cmds=.dll |
9420 |
archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
9421 |
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
9422 |
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
9423 |
$ECHO EXPORTS >> $output_objdir/$libname.def~ |
9424 |
emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
9425 |
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
9426 |
emximp -o $lib $output_objdir/$libname.def' |
9427 |
archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
9428 |
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
9429 |
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
9430 |
$ECHO EXPORTS >> $output_objdir/$libname.def~ |
9431 |
prefix_cmds="$SED"~ |
9432 |
if test EXPORTS = "`$SED 1q $export_symbols`"; then |
9433 |
prefix_cmds="$prefix_cmds -e 1d"; |
9434 |
fi~ |
9435 |
prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
9436 |
cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
9437 |
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
9438 |
emximp -o $lib $output_objdir/$libname.def' |
9439 |
old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
9440 |
enable_shared_with_static_runtimes=yes |
9441 |
;; |
9442 |
|
9443 |
interix[3-9]*) |
9444 |
hardcode_direct=no |
9445 |
hardcode_shlibpath_var=no |
9446 |
hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
9447 |
export_dynamic_flag_spec='$wl-E' |
9448 |
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
9449 |
# Instead, shared libraries are loaded at an image base (0x10000000 by |
9450 |
# default) and relocated if they conflict, which is a slow very memory |
9451 |
# consuming and fragmenting process. To avoid this, we pick a random, |
9452 |
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
9453 |
# time. Moving up from 0x10000000 also allows more sbrk(2) space. |
9454 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
9455 |
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' |
9456 |
;; |
9457 |
|
9458 |
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
9459 |
tmp_diet=no |
9460 |
if test linux-dietlibc = "$host_os"; then |
9461 |
case $cc_basename in |
9462 |
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
9463 |
esac |
9464 |
fi |
9465 |
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
9466 |
&& test no = "$tmp_diet" |
9467 |
then |
9468 |
tmp_addflag=' $pic_flag' |
9469 |
tmp_sharedflag='-shared' |
9470 |
case $cc_basename,$host_cpu in |
9471 |
pgcc*) # Portland Group C compiler |
9472 |
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' |
9473 |
tmp_addflag=' $pic_flag' |
9474 |
;; |
9475 |
pgf77* | pgf90* | pgf95* | pgfortran*) |
9476 |
# Portland Group f77 and f90 compilers |
9477 |
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' |
9478 |
tmp_addflag=' $pic_flag -Mnomain' ;; |
9479 |
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
9480 |
tmp_addflag=' -i_dynamic' ;; |
9481 |
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
9482 |
tmp_addflag=' -i_dynamic -nofor_main' ;; |
9483 |
ifc* | ifort*) # Intel Fortran compiler |
9484 |
tmp_addflag=' -nofor_main' ;; |
9485 |
lf95*) # Lahey Fortran 8.1 |
9486 |
whole_archive_flag_spec= |
9487 |
tmp_sharedflag='--shared' ;; |
9488 |
nagfor*) # NAGFOR 5.3 |
9489 |
tmp_sharedflag='-Wl,-shared' ;; |
9490 |
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
9491 |
tmp_sharedflag='-qmkshrobj' |
9492 |
tmp_addflag= ;; |
9493 |
nvcc*) # Cuda Compiler Driver 2.2 |
9494 |
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' |
9495 |
compiler_needs_object=yes |
9496 |
;; |
9497 |
esac |
9498 |
case `$CC -V 2>&1 | sed 5q` in |
9499 |
*Sun\ C*) # Sun C 5.9 |
9500 |
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' |
9501 |
compiler_needs_object=yes |
9502 |
tmp_sharedflag='-G' ;; |
9503 |
*Sun\ F*) # Sun Fortran 8.3 |
9504 |
tmp_sharedflag='-G' ;; |
9505 |
esac |
9506 |
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9507 |
|
9508 |
if test yes = "$supports_anon_versioning"; then |
9509 |
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
9510 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
9511 |
echo "local: *; };" >> $output_objdir/$libname.ver~ |
9512 |
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' |
9513 |
fi |
9514 |
|
9515 |
case $cc_basename in |
9516 |
tcc*) |
9517 |
export_dynamic_flag_spec='-rdynamic' |
9518 |
;; |
9519 |
xlf* | bgf* | bgxlf* | mpixlf*) |
9520 |
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
9521 |
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
9522 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
9523 |
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
9524 |
if test yes = "$supports_anon_versioning"; then |
9525 |
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
9526 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
9527 |
echo "local: *; };" >> $output_objdir/$libname.ver~ |
9528 |
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
9529 |
fi |
9530 |
;; |
9531 |
esac |
9532 |
else |
9533 |
ld_shlibs=no |
9534 |
fi |
9535 |
;; |
9536 |
|
9537 |
netbsd*) |
9538 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
9539 |
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
9540 |
wlarc= |
9541 |
else |
9542 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9543 |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
9544 |
fi |
9545 |
;; |
9546 |
|
9547 |
solaris*) |
9548 |
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
9549 |
ld_shlibs=no |
9550 |
cat <<_LT_EOF 1>&2 |
9551 |
|
9552 |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
9553 |
*** create shared libraries on Solaris systems. Therefore, libtool |
9554 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
9555 |
*** binutils to release 2.9.1 or newer. Another option is to modify |
9556 |
*** your PATH or compiler configuration so that the native linker is |
9557 |
*** used, and then restart. |
9558 |
|
9559 |
_LT_EOF |
9560 |
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
9561 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9562 |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
9563 |
else |
9564 |
ld_shlibs=no |
9565 |
fi |
9566 |
;; |
9567 |
|
9568 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
9569 |
case `$LD -v 2>&1` in |
9570 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
9571 |
ld_shlibs=no |
9572 |
cat <<_LT_EOF 1>&2 |
9573 |
|
9574 |
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot |
9575 |
*** reliably create shared libraries on SCO systems. Therefore, libtool |
9576 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
9577 |
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
9578 |
*** your PATH or compiler configuration so that the native linker is |
9579 |
*** used, and then restart. |
9580 |
|
9581 |
_LT_EOF |
9582 |
;; |
9583 |
*) |
9584 |
# For security reasons, it is highly recommended that you always |
9585 |
# use absolute paths for naming shared libraries, and exclude the |
9586 |
# DT_RUNPATH tag from executables and libraries. But doing so |
9587 |
# requires that you compile everything twice, which is a pain. |
9588 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
9589 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
9590 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9591 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
9592 |
else |
9593 |
ld_shlibs=no |
9594 |
fi |
9595 |
;; |
9596 |
esac |
9597 |
;; |
9598 |
|
9599 |
sunos4*) |
9600 |
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9601 |
wlarc= |
9602 |
hardcode_direct=yes |
9603 |
hardcode_shlibpath_var=no |
9604 |
;; |
9605 |
|
9606 |
*) |
9607 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
9608 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9609 |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
9610 |
else |
9611 |
ld_shlibs=no |
9612 |
fi |
9613 |
;; |
9614 |
esac |
9615 |
|
9616 |
if test no = "$ld_shlibs"; then |
9617 |
runpath_var= |
9618 |
hardcode_libdir_flag_spec= |
9619 |
export_dynamic_flag_spec= |
9620 |
whole_archive_flag_spec= |
9621 |
fi |
9622 |
else |
9623 |
# PORTME fill in a description of your system's linker (not GNU ld) |
9624 |
case $host_os in |
9625 |
aix3*) |
9626 |
allow_undefined_flag=unsupported |
9627 |
always_export_symbols=yes |
9628 |
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' |
9629 |
# Note: this linker hardcodes the directories in LIBPATH if there |
9630 |
# are no directories specified by -L. |
9631 |
hardcode_minus_L=yes |
9632 |
if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then |
9633 |
# Neither direct hardcoding nor static linking is supported with a |
9634 |
# broken collect2. |
9635 |
hardcode_direct=unsupported |
9636 |
fi |
9637 |
;; |
9638 |
|
9639 |
aix[4-9]*) |
9640 |
if test ia64 = "$host_cpu"; then |
9641 |
# On IA64, the linker does run time linking by default, so we don't |
9642 |
# have to do anything special. |
9643 |
aix_use_runtimelinking=no |
9644 |
exp_sym_flag='-Bexport' |
9645 |
no_entry_flag= |
9646 |
else |
9647 |
# If we're using GNU nm, then we don't want the "-C" option. |
9648 |
# -C means demangle to GNU nm, but means don't demangle to AIX nm. |
9649 |
# Without the "-l" option, or with the "-B" option, AIX nm treats |
9650 |
# weak defined symbols like other global defined symbols, whereas |
9651 |
# GNU nm marks them as "W". |
9652 |
# While the 'weak' keyword is ignored in the Export File, we need |
9653 |
# it in the Import File for the 'aix-soname' feature, so we have |
9654 |
# to replace the "-B" option with "-P" for AIX nm. |
9655 |
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
9656 |
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' |
9657 |
else |
9658 |
export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' |
9659 |
fi |
9660 |
aix_use_runtimelinking=no |
9661 |
|
9662 |
# Test if we are trying to use run time linking or normal |
9663 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
9664 |
# have runtime linking enabled, and use it for executables. |
9665 |
# For shared libraries, we enable/disable runtime linking |
9666 |
# depending on the kind of the shared library created - |
9667 |
# when "with_aix_soname,aix_use_runtimelinking" is: |
9668 |
# "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables |
9669 |
# "aix,yes" lib.so shared, rtl:yes, for executables |
9670 |
# lib.a static archive |
9671 |
# "both,no" lib.so.V(shr.o) shared, rtl:yes |
9672 |
# lib.a(lib.so.V) shared, rtl:no, for executables |
9673 |
# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables |
9674 |
# lib.a(lib.so.V) shared, rtl:no |
9675 |
# "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables |
9676 |
# lib.a static archive |
9677 |
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
9678 |
for ld_flag in $LDFLAGS; do |
9679 |
if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then |
9680 |
aix_use_runtimelinking=yes |
9681 |
break |
9682 |
fi |
9683 |
done |
9684 |
if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
9685 |
# With aix-soname=svr4, we create the lib.so.V shared archives only, |
9686 |
# so we don't have lib.a shared libs to link our executables. |
9687 |
# We have to force runtime linking in this case. |
9688 |
aix_use_runtimelinking=yes |
9689 |
LDFLAGS="$LDFLAGS -Wl,-brtl" |
9690 |
fi |
9691 |
;; |
9692 |
esac |
9693 |
|
9694 |
exp_sym_flag='-bexport' |
9695 |
no_entry_flag='-bnoentry' |
9696 |
fi |
9697 |
|
9698 |
# When large executables or shared objects are built, AIX ld can |
9699 |
# have problems creating the table of contents. If linking a library |
9700 |
# or program results in "error TOC overflow" add -mminimal-toc to |
9701 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
9702 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
9703 |
|
9704 |
archive_cmds='' |
9705 |
hardcode_direct=yes |
9706 |
hardcode_direct_absolute=yes |
9707 |
hardcode_libdir_separator=':' |
9708 |
link_all_deplibs=yes |
9709 |
file_list_spec='$wl-f,' |
9710 |
case $with_aix_soname,$aix_use_runtimelinking in |
9711 |
aix,*) ;; # traditional, no import file |
9712 |
svr4,* | *,yes) # use import file |
9713 |
# The Import File defines what to hardcode. |
9714 |
hardcode_direct=no |
9715 |
hardcode_direct_absolute=no |
9716 |
;; |
9717 |
esac |
9718 |
|
9719 |
if test yes = "$GCC"; then |
9720 |
case $host_os in aix4.[012]|aix4.[012].*) |
9721 |
# We only want to do this on AIX 4.2 and lower, the check |
9722 |
# below for broken collect2 doesn't work under 4.3+ |
9723 |
collect2name=`$CC -print-prog-name=collect2` |
9724 |
if test -f "$collect2name" && |
9725 |
strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
9726 |
then |
9727 |
# We have reworked collect2 |
9728 |
: |
9729 |
else |
9730 |
# We have old collect2 |
9731 |
hardcode_direct=unsupported |
9732 |
# It fails to find uninstalled libraries when the uninstalled |
9733 |
# path is not listed in the libpath. Setting hardcode_minus_L |
9734 |
# to unsupported forces relinking |
9735 |
hardcode_minus_L=yes |
9736 |
hardcode_libdir_flag_spec='-L$libdir' |
9737 |
hardcode_libdir_separator= |
9738 |
fi |
9739 |
;; |
9740 |
esac |
9741 |
shared_flag='-shared' |
9742 |
if test yes = "$aix_use_runtimelinking"; then |
9743 |
shared_flag="$shared_flag "'$wl-G' |
9744 |
fi |
9745 |
# Need to ensure runtime linking is disabled for the traditional |
9746 |
# shared library, or the linker may eventually find shared libraries |
9747 |
# /with/ Import File - we do not want to mix them. |
9748 |
shared_flag_aix='-shared' |
9749 |
shared_flag_svr4='-shared $wl-G' |
9750 |
else |
9751 |
# not using gcc |
9752 |
if test ia64 = "$host_cpu"; then |
9753 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
9754 |
# chokes on -Wl,-G. The following line is correct: |
9755 |
shared_flag='-G' |
9756 |
else |
9757 |
if test yes = "$aix_use_runtimelinking"; then |
9758 |
shared_flag='$wl-G' |
9759 |
else |
9760 |
shared_flag='$wl-bM:SRE' |
9761 |
fi |
9762 |
shared_flag_aix='$wl-bM:SRE' |
9763 |
shared_flag_svr4='$wl-G' |
9764 |
fi |
9765 |
fi |
9766 |
|
9767 |
export_dynamic_flag_spec='$wl-bexpall' |
9768 |
# It seems that -bexpall does not export symbols beginning with |
9769 |
# underscore (_), so it is better to generate a list of symbols to export. |
9770 |
always_export_symbols=yes |
9771 |
if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
9772 |
# Warning - without using the other runtime loading flags (-brtl), |
9773 |
# -berok will link without error, but may produce a broken library. |
9774 |
allow_undefined_flag='-berok' |
9775 |
# Determine the default libpath from the value encoded in an |
9776 |
# empty executable. |
9777 |
if test set = "${lt_cv_aix_libpath+set}"; then |
9778 |
aix_libpath=$lt_cv_aix_libpath |
9779 |
else |
9780 |
if ${lt_cv_aix_libpath_+:} false; then : |
9781 |
$as_echo_n "(cached) " >&6 |
9782 |
else |
9783 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9784 |
/* end confdefs.h. */ |
9785 |
|
9786 |
int |
9787 |
main () |
9788 |
{ |
9789 |
|
9790 |
; |
9791 |
return 0; |
9792 |
} |
9793 |
_ACEOF |
9794 |
if ac_fn_c_try_link "$LINENO"; then : |
9795 |
|
9796 |
lt_aix_libpath_sed=' |
9797 |
/Import File Strings/,/^$/ { |
9798 |
/^0/ { |
9799 |
s/^0 *\([^ ]*\) *$/\1/ |
9800 |
p |
9801 |
} |
9802 |
}' |
9803 |
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
9804 |
# Check for a 64-bit object if we didn't find anything. |
9805 |
if test -z "$lt_cv_aix_libpath_"; then |
9806 |
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
9807 |
fi |
9808 |
fi |
9809 |
rm -f core conftest.err conftest.$ac_objext \ |
9810 |
conftest$ac_exeext conftest.$ac_ext |
9811 |
if test -z "$lt_cv_aix_libpath_"; then |
9812 |
lt_cv_aix_libpath_=/usr/lib:/lib |
9813 |
fi |
9814 |
|
9815 |
fi |
9816 |
|
9817 |
aix_libpath=$lt_cv_aix_libpath_ |
9818 |
fi |
9819 |
|
9820 |
hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
9821 |
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag |
9822 |
else |
9823 |
if test ia64 = "$host_cpu"; then |
9824 |
hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' |
9825 |
allow_undefined_flag="-z nodefs" |
9826 |
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" |
9827 |
else |
9828 |
# Determine the default libpath from the value encoded in an |
9829 |
# empty executable. |
9830 |
if test set = "${lt_cv_aix_libpath+set}"; then |
9831 |
aix_libpath=$lt_cv_aix_libpath |
9832 |
else |
9833 |
if ${lt_cv_aix_libpath_+:} false; then : |
9834 |
$as_echo_n "(cached) " >&6 |
9835 |
else |
9836 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9837 |
/* end confdefs.h. */ |
9838 |
|
9839 |
int |
9840 |
main () |
9841 |
{ |
9842 |
|
9843 |
; |
9844 |
return 0; |
9845 |
} |
9846 |
_ACEOF |
9847 |
if ac_fn_c_try_link "$LINENO"; then : |
9848 |
|
9849 |
lt_aix_libpath_sed=' |
9850 |
/Import File Strings/,/^$/ { |
9851 |
/^0/ { |
9852 |
s/^0 *\([^ ]*\) *$/\1/ |
9853 |
p |
9854 |
} |
9855 |
}' |
9856 |
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
9857 |
# Check for a 64-bit object if we didn't find anything. |
9858 |
if test -z "$lt_cv_aix_libpath_"; then |
9859 |
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
9860 |
fi |
9861 |
fi |
9862 |
rm -f core conftest.err conftest.$ac_objext \ |
9863 |
conftest$ac_exeext conftest.$ac_ext |
9864 |
if test -z "$lt_cv_aix_libpath_"; then |
9865 |
lt_cv_aix_libpath_=/usr/lib:/lib |
9866 |
fi |
9867 |
|
9868 |
fi |
9869 |
|
9870 |
aix_libpath=$lt_cv_aix_libpath_ |
9871 |
fi |
9872 |
|
9873 |
hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
9874 |
# Warning - without using the other run time loading flags, |
9875 |
# -berok will link without error, but may produce a broken library. |
9876 |
no_undefined_flag=' $wl-bernotok' |
9877 |
allow_undefined_flag=' $wl-berok' |
9878 |
if test yes = "$with_gnu_ld"; then |
9879 |
# We only use this code for GNU lds that support --whole-archive. |
9880 |
whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' |
9881 |
else |
9882 |
# Exported symbols can be pulled into shared objects from archives |
9883 |
whole_archive_flag_spec='$convenience' |
9884 |
fi |
9885 |
archive_cmds_need_lc=yes |
9886 |
archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
9887 |
# -brtl affects multiple linker settings, -berok does not and is overridden later |
9888 |
compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' |
9889 |
if test svr4 != "$with_aix_soname"; then |
9890 |
# This is similar to how AIX traditionally builds its shared libraries. |
9891 |
archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' |
9892 |
fi |
9893 |
if test aix != "$with_aix_soname"; then |
9894 |
archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' |
9895 |
else |
9896 |
# used by -dlpreopen to get the symbols |
9897 |
archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' |
9898 |
fi |
9899 |
archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' |
9900 |
fi |
9901 |
fi |
9902 |
;; |
9903 |
|
9904 |
amigaos*) |
9905 |
case $host_cpu in |
9906 |
powerpc) |
9907 |
# see comment about AmigaOS4 .so support |
9908 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9909 |
archive_expsym_cmds='' |
9910 |
;; |
9911 |
m68k) |
9912 |
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)' |
9913 |
hardcode_libdir_flag_spec='-L$libdir' |
9914 |
hardcode_minus_L=yes |
9915 |
;; |
9916 |
esac |
9917 |
;; |
9918 |
|
9919 |
bsdi[45]*) |
9920 |
export_dynamic_flag_spec=-rdynamic |
9921 |
;; |
9922 |
|
9923 |
cygwin* | mingw* | pw32* | cegcc*) |
9924 |
# When not using gcc, we currently assume that we are using |
9925 |
# Microsoft Visual C++. |
9926 |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
9927 |
# no search path for DLLs. |
9928 |
case $cc_basename in |
9929 |
cl*) |
9930 |
# Native MSVC |
9931 |
hardcode_libdir_flag_spec=' ' |
9932 |
allow_undefined_flag=unsupported |
9933 |
always_export_symbols=yes |
9934 |
file_list_spec='@' |
9935 |
# Tell ltmain to make .lib files, not .a files. |
9936 |
libext=lib |
9937 |
# Tell ltmain to make .dll files, not .so files. |
9938 |
shrext_cmds=.dll |
9939 |
# FIXME: Setting linknames here is a bad hack. |
9940 |
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
9941 |
archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
9942 |
cp "$export_symbols" "$output_objdir/$soname.def"; |
9943 |
echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; |
9944 |
else |
9945 |
$SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; |
9946 |
fi~ |
9947 |
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
9948 |
linknames=' |
9949 |
# The linker will not automatically build a static lib if we build a DLL. |
9950 |
# _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
9951 |
enable_shared_with_static_runtimes=yes |
9952 |
exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
9953 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
9954 |
# Don't use ranlib |
9955 |
old_postinstall_cmds='chmod 644 $oldlib' |
9956 |
postlink_cmds='lt_outputfile="@OUTPUT@"~ |
9957 |
lt_tool_outputfile="@TOOL_OUTPUT@"~ |
9958 |
case $lt_outputfile in |
9959 |
*.exe|*.EXE) ;; |
9960 |
*) |
9961 |
lt_outputfile=$lt_outputfile.exe |
9962 |
lt_tool_outputfile=$lt_tool_outputfile.exe |
9963 |
;; |
9964 |
esac~ |
9965 |
if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then |
9966 |
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
9967 |
$RM "$lt_outputfile.manifest"; |
9968 |
fi' |
9969 |
;; |
9970 |
*) |
9971 |
# Assume MSVC wrapper |
9972 |
hardcode_libdir_flag_spec=' ' |
9973 |
allow_undefined_flag=unsupported |
9974 |
# Tell ltmain to make .lib files, not .a files. |
9975 |
libext=lib |
9976 |
# Tell ltmain to make .dll files, not .so files. |
9977 |
shrext_cmds=.dll |
9978 |
# FIXME: Setting linknames here is a bad hack. |
9979 |
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
9980 |
# The linker will automatically build a .lib file if we build a DLL. |
9981 |
old_archive_from_new_cmds='true' |
9982 |
# FIXME: Should let the user specify the lib program. |
9983 |
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
9984 |
enable_shared_with_static_runtimes=yes |
9985 |
;; |
9986 |
esac |
9987 |
;; |
9988 |
|
9989 |
darwin* | rhapsody*) |
9990 |
|
9991 |
|
9992 |
archive_cmds_need_lc=no |
9993 |
hardcode_direct=no |
9994 |
hardcode_automatic=yes |
9995 |
hardcode_shlibpath_var=unsupported |
9996 |
if test yes = "$lt_cv_ld_force_load"; then |
9997 |
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\"`' |
9998 |
|
9999 |
else |
10000 |
whole_archive_flag_spec='' |
10001 |
fi |
10002 |
link_all_deplibs=yes |
10003 |
allow_undefined_flag=$_lt_dar_allow_undefined |
10004 |
case $cc_basename in |
10005 |
ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
10006 |
*) _lt_dar_can_shared=$GCC ;; |
10007 |
esac |
10008 |
if test yes = "$_lt_dar_can_shared"; then |
10009 |
output_verbose_link_cmd=func_echo_all |
10010 |
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" |
10011 |
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" |
10012 |
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" |
10013 |
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" |
10014 |
|
10015 |
else |
10016 |
ld_shlibs=no |
10017 |
fi |
10018 |
|
10019 |
;; |
10020 |
|
10021 |
dgux*) |
10022 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10023 |
hardcode_libdir_flag_spec='-L$libdir' |
10024 |
hardcode_shlibpath_var=no |
10025 |
;; |
10026 |
|
10027 |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
10028 |
# support. Future versions do this automatically, but an explicit c++rt0.o |
10029 |
# does not break anything, and helps significantly (at the cost of a little |
10030 |
# extra space). |
10031 |
freebsd2.2*) |
10032 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
10033 |
hardcode_libdir_flag_spec='-R$libdir' |
10034 |
hardcode_direct=yes |
10035 |
hardcode_shlibpath_var=no |
10036 |
;; |
10037 |
|
10038 |
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
10039 |
freebsd2.*) |
10040 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
10041 |
hardcode_direct=yes |
10042 |
hardcode_minus_L=yes |
10043 |
hardcode_shlibpath_var=no |
10044 |
;; |
10045 |
|
10046 |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
10047 |
freebsd* | dragonfly*) |
10048 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
10049 |
hardcode_libdir_flag_spec='-R$libdir' |
10050 |
hardcode_direct=yes |
10051 |
hardcode_shlibpath_var=no |
10052 |
;; |
10053 |
|
10054 |
hpux9*) |
10055 |
if test yes = "$GCC"; then |
10056 |
archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' |
10057 |
else |
10058 |
archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' |
10059 |
fi |
10060 |
hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
10061 |
hardcode_libdir_separator=: |
10062 |
hardcode_direct=yes |
10063 |
|
10064 |
# hardcode_minus_L: Not really in the search PATH, |
10065 |
# but as the default location of the library. |
10066 |
hardcode_minus_L=yes |
10067 |
export_dynamic_flag_spec='$wl-E' |
10068 |
;; |
10069 |
|
10070 |
hpux10*) |
10071 |
if test yes,no = "$GCC,$with_gnu_ld"; then |
10072 |
archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
10073 |
else |
10074 |
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
10075 |
fi |
10076 |
if test no = "$with_gnu_ld"; then |
10077 |
hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
10078 |
hardcode_libdir_separator=: |
10079 |
hardcode_direct=yes |
10080 |
hardcode_direct_absolute=yes |
10081 |
export_dynamic_flag_spec='$wl-E' |
10082 |
# hardcode_minus_L: Not really in the search PATH, |
10083 |
# but as the default location of the library. |
10084 |
hardcode_minus_L=yes |
10085 |
fi |
10086 |
;; |
10087 |
|
10088 |
hpux11*) |
10089 |
if test yes,no = "$GCC,$with_gnu_ld"; then |
10090 |
case $host_cpu in |
10091 |
hppa*64*) |
10092 |
archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
10093 |
;; |
10094 |
ia64*) |
10095 |
archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
10096 |
;; |
10097 |
*) |
10098 |
archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
10099 |
;; |
10100 |
esac |
10101 |
else |
10102 |
case $host_cpu in |
10103 |
hppa*64*) |
10104 |
archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
10105 |
;; |
10106 |
ia64*) |
10107 |
archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
10108 |
;; |
10109 |
*) |
10110 |
|
10111 |
# Older versions of the 11.00 compiler do not understand -b yet |
10112 |
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) |
10113 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 |
10114 |
$as_echo_n "checking if $CC understands -b... " >&6; } |
10115 |
if ${lt_cv_prog_compiler__b+:} false; then : |
10116 |
$as_echo_n "(cached) " >&6 |
10117 |
else |
10118 |
lt_cv_prog_compiler__b=no |
10119 |
save_LDFLAGS=$LDFLAGS |
10120 |
LDFLAGS="$LDFLAGS -b" |
10121 |
echo "$lt_simple_link_test_code" > conftest.$ac_ext |
10122 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
10123 |
# The linker can only warn and ignore the option if not recognized |
10124 |
# So say no if there are warnings |
10125 |
if test -s conftest.err; then |
10126 |
# Append any errors to the config.log. |
10127 |
cat conftest.err 1>&5 |
10128 |
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
10129 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
10130 |
if diff conftest.exp conftest.er2 >/dev/null; then |
10131 |
lt_cv_prog_compiler__b=yes |
10132 |
fi |
10133 |
else |
10134 |
lt_cv_prog_compiler__b=yes |
10135 |
fi |
10136 |
fi |
10137 |
$RM -r conftest* |
10138 |
LDFLAGS=$save_LDFLAGS |
10139 |
|
10140 |
fi |
10141 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 |
10142 |
$as_echo "$lt_cv_prog_compiler__b" >&6; } |
10143 |
|
10144 |
if test yes = "$lt_cv_prog_compiler__b"; then |
10145 |
archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
10146 |
else |
10147 |
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
10148 |
fi |
10149 |
|
10150 |
;; |
10151 |
esac |
10152 |
fi |
10153 |
if test no = "$with_gnu_ld"; then |
10154 |
hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
10155 |
hardcode_libdir_separator=: |
10156 |
|
10157 |
case $host_cpu in |
10158 |
hppa*64*|ia64*) |
10159 |
hardcode_direct=no |
10160 |
hardcode_shlibpath_var=no |
10161 |
;; |
10162 |
*) |
10163 |
hardcode_direct=yes |
10164 |
hardcode_direct_absolute=yes |
10165 |
export_dynamic_flag_spec='$wl-E' |
10166 |
|
10167 |
# hardcode_minus_L: Not really in the search PATH, |
10168 |
# but as the default location of the library. |
10169 |
hardcode_minus_L=yes |
10170 |
;; |
10171 |
esac |
10172 |
fi |
10173 |
;; |
10174 |
|
10175 |
irix5* | irix6* | nonstopux*) |
10176 |
if test yes = "$GCC"; then |
10177 |
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' |
10178 |
# Try to use the -exported_symbol ld option, if it does not |
10179 |
# work, assume that -exports_file does not work either and |
10180 |
# implicitly export all symbols. |
10181 |
# This should be the same for all languages, so no per-tag cache variable. |
10182 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 |
10183 |
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } |
10184 |
if ${lt_cv_irix_exported_symbol+:} false; then : |
10185 |
$as_echo_n "(cached) " >&6 |
10186 |
else |
10187 |
save_LDFLAGS=$LDFLAGS |
10188 |
LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" |
10189 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10190 |
/* end confdefs.h. */ |
10191 |
int foo (void) { return 0; } |
10192 |
_ACEOF |
10193 |
if ac_fn_c_try_link "$LINENO"; then : |
10194 |
lt_cv_irix_exported_symbol=yes |
10195 |
else |
10196 |
lt_cv_irix_exported_symbol=no |
10197 |
fi |
10198 |
rm -f core conftest.err conftest.$ac_objext \ |
10199 |
conftest$ac_exeext conftest.$ac_ext |
10200 |
LDFLAGS=$save_LDFLAGS |
10201 |
fi |
10202 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 |
10203 |
$as_echo "$lt_cv_irix_exported_symbol" >&6; } |
10204 |
if test yes = "$lt_cv_irix_exported_symbol"; then |
10205 |
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' |
10206 |
fi |
10207 |
else |
10208 |
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' |
10209 |
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' |
10210 |
fi |
10211 |
archive_cmds_need_lc='no' |
10212 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
10213 |
hardcode_libdir_separator=: |
10214 |
inherit_rpath=yes |
10215 |
link_all_deplibs=yes |
10216 |
;; |
10217 |
|
10218 |
linux*) |
10219 |
case $cc_basename in |
10220 |
tcc*) |
10221 |
# Fabrice Bellard et al's Tiny C Compiler |
10222 |
ld_shlibs=yes |
10223 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
10224 |
;; |
10225 |
esac |
10226 |
;; |
10227 |
|
10228 |
netbsd*) |
10229 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
10230 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
10231 |
else |
10232 |
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
10233 |
fi |
10234 |
hardcode_libdir_flag_spec='-R$libdir' |
10235 |
hardcode_direct=yes |
10236 |
hardcode_shlibpath_var=no |
10237 |
;; |
10238 |
|
10239 |
newsos6) |
10240 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10241 |
hardcode_direct=yes |
10242 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
10243 |
hardcode_libdir_separator=: |
10244 |
hardcode_shlibpath_var=no |
10245 |
;; |
10246 |
|
10247 |
*nto* | *qnx*) |
10248 |
;; |
10249 |
|
10250 |
openbsd* | bitrig*) |
10251 |
if test -f /usr/libexec/ld.so; then |
10252 |
hardcode_direct=yes |
10253 |
hardcode_shlibpath_var=no |
10254 |
hardcode_direct_absolute=yes |
10255 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
10256 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
10257 |
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' |
10258 |
hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
10259 |
export_dynamic_flag_spec='$wl-E' |
10260 |
else |
10261 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
10262 |
hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
10263 |
fi |
10264 |
else |
10265 |
ld_shlibs=no |
10266 |
fi |
10267 |
;; |
10268 |
|
10269 |
os2*) |
10270 |
hardcode_libdir_flag_spec='-L$libdir' |
10271 |
hardcode_minus_L=yes |
10272 |
allow_undefined_flag=unsupported |
10273 |
shrext_cmds=.dll |
10274 |
archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
10275 |
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
10276 |
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
10277 |
$ECHO EXPORTS >> $output_objdir/$libname.def~ |
10278 |
emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
10279 |
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
10280 |
emximp -o $lib $output_objdir/$libname.def' |
10281 |
archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
10282 |
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
10283 |
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
10284 |
$ECHO EXPORTS >> $output_objdir/$libname.def~ |
10285 |
prefix_cmds="$SED"~ |
10286 |
if test EXPORTS = "`$SED 1q $export_symbols`"; then |
10287 |
prefix_cmds="$prefix_cmds -e 1d"; |
10288 |
fi~ |
10289 |
prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
10290 |
cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
10291 |
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
10292 |
emximp -o $lib $output_objdir/$libname.def' |
10293 |
old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
10294 |
enable_shared_with_static_runtimes=yes |
10295 |
;; |
10296 |
|
10297 |
osf3*) |
10298 |
if test yes = "$GCC"; then |
10299 |
allow_undefined_flag=' $wl-expect_unresolved $wl\*' |
10300 |
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' |
10301 |
else |
10302 |
allow_undefined_flag=' -expect_unresolved \*' |
10303 |
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' |
10304 |
fi |
10305 |
archive_cmds_need_lc='no' |
10306 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
10307 |
hardcode_libdir_separator=: |
10308 |
;; |
10309 |
|
10310 |
osf4* | osf5*) # as osf3* with the addition of -msym flag |
10311 |
if test yes = "$GCC"; then |
10312 |
allow_undefined_flag=' $wl-expect_unresolved $wl\*' |
10313 |
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' |
10314 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
10315 |
else |
10316 |
allow_undefined_flag=' -expect_unresolved \*' |
10317 |
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' |
10318 |
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~ |
10319 |
$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' |
10320 |
|
10321 |
# Both c and cxx compiler support -rpath directly |
10322 |
hardcode_libdir_flag_spec='-rpath $libdir' |
10323 |
fi |
10324 |
archive_cmds_need_lc='no' |
10325 |
hardcode_libdir_separator=: |
10326 |
;; |
10327 |
|
10328 |
solaris*) |
10329 |
no_undefined_flag=' -z defs' |
10330 |
if test yes = "$GCC"; then |
10331 |
wlarc='$wl' |
10332 |
archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
10333 |
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
10334 |
$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' |
10335 |
else |
10336 |
case `$CC -V 2>&1` in |
10337 |
*"Compilers 5.0"*) |
10338 |
wlarc='' |
10339 |
archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10340 |
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
10341 |
$LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
10342 |
;; |
10343 |
*) |
10344 |
wlarc='$wl' |
10345 |
archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
10346 |
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
10347 |
$CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
10348 |
;; |
10349 |
esac |
10350 |
fi |
10351 |
hardcode_libdir_flag_spec='-R$libdir' |
10352 |
hardcode_shlibpath_var=no |
10353 |
case $host_os in |
10354 |
solaris2.[0-5] | solaris2.[0-5].*) ;; |
10355 |
*) |
10356 |
# The compiler driver will combine and reorder linker options, |
10357 |
# but understands '-z linker_flag'. GCC discards it without '$wl', |
10358 |
# but is careful enough not to reorder. |
10359 |
# Supported since Solaris 2.6 (maybe 2.5.1?) |
10360 |
if test yes = "$GCC"; then |
10361 |
whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' |
10362 |
else |
10363 |
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
10364 |
fi |
10365 |
;; |
10366 |
esac |
10367 |
link_all_deplibs=yes |
10368 |
;; |
10369 |
|
10370 |
sunos4*) |
10371 |
if test sequent = "$host_vendor"; then |
10372 |
# Use $CC to link under sequent, because it throws in some extra .o |
10373 |
# files that make .init and .fini sections work. |
10374 |
archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
10375 |
else |
10376 |
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
10377 |
fi |
10378 |
hardcode_libdir_flag_spec='-L$libdir' |
10379 |
hardcode_direct=yes |
10380 |
hardcode_minus_L=yes |
10381 |
hardcode_shlibpath_var=no |
10382 |
;; |
10383 |
|
10384 |
sysv4) |
10385 |
case $host_vendor in |
10386 |
sni) |
10387 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10388 |
hardcode_direct=yes # is this really true??? |
10389 |
;; |
10390 |
siemens) |
10391 |
## LD is ld it makes a PLAMLIB |
10392 |
## CC just makes a GrossModule. |
10393 |
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
10394 |
reload_cmds='$CC -r -o $output$reload_objs' |
10395 |
hardcode_direct=no |
10396 |
;; |
10397 |
motorola) |
10398 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10399 |
hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
10400 |
;; |
10401 |
esac |
10402 |
runpath_var='LD_RUN_PATH' |
10403 |
hardcode_shlibpath_var=no |
10404 |
;; |
10405 |
|
10406 |
sysv4.3*) |
10407 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10408 |
hardcode_shlibpath_var=no |
10409 |
export_dynamic_flag_spec='-Bexport' |
10410 |
;; |
10411 |
|
10412 |
sysv4*MP*) |
10413 |
if test -d /usr/nec; then |
10414 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10415 |
hardcode_shlibpath_var=no |
10416 |
runpath_var=LD_RUN_PATH |
10417 |
hardcode_runpath_var=yes |
10418 |
ld_shlibs=yes |
10419 |
fi |
10420 |
;; |
10421 |
|
10422 |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
10423 |
no_undefined_flag='$wl-z,text' |
10424 |
archive_cmds_need_lc=no |
10425 |
hardcode_shlibpath_var=no |
10426 |
runpath_var='LD_RUN_PATH' |
10427 |
|
10428 |
if test yes = "$GCC"; then |
10429 |
archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10430 |
archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10431 |
else |
10432 |
archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10433 |
archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10434 |
fi |
10435 |
;; |
10436 |
|
10437 |
sysv5* | sco3.2v5* | sco5v6*) |
10438 |
# Note: We CANNOT use -z defs as we might desire, because we do not |
10439 |
# link with -lc, and that would cause any symbols used from libc to |
10440 |
# always be unresolved, which means just about no library would |
10441 |
# ever link correctly. If we're not using GNU ld we use -z text |
10442 |
# though, which does catch some bad symbols but isn't as heavy-handed |
10443 |
# as -z defs. |
10444 |
no_undefined_flag='$wl-z,text' |
10445 |
allow_undefined_flag='$wl-z,nodefs' |
10446 |
archive_cmds_need_lc=no |
10447 |
hardcode_shlibpath_var=no |
10448 |
hardcode_libdir_flag_spec='$wl-R,$libdir' |
10449 |
hardcode_libdir_separator=':' |
10450 |
link_all_deplibs=yes |
10451 |
export_dynamic_flag_spec='$wl-Bexport' |
10452 |
runpath_var='LD_RUN_PATH' |
10453 |
|
10454 |
if test yes = "$GCC"; then |
10455 |
archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10456 |
archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10457 |
else |
10458 |
archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10459 |
archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10460 |
fi |
10461 |
;; |
10462 |
|
10463 |
uts4*) |
10464 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
10465 |
hardcode_libdir_flag_spec='-L$libdir' |
10466 |
hardcode_shlibpath_var=no |
10467 |
;; |
10468 |
|
10469 |
*) |
10470 |
ld_shlibs=no |
10471 |
;; |
10472 |
esac |
10473 |
|
10474 |
if test sni = "$host_vendor"; then |
10475 |
case $host in |
10476 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
10477 |
export_dynamic_flag_spec='$wl-Blargedynsym' |
10478 |
;; |
10479 |
esac |
10480 |
fi |
10481 |
fi |
10482 |
|
10483 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
10484 |
$as_echo "$ld_shlibs" >&6; } |
10485 |
test no = "$ld_shlibs" && can_build_shared=no |
10486 |
|
10487 |
with_gnu_ld=$with_gnu_ld |
10488 |
|
10489 |
|
10490 |
|
10491 |
|
10492 |
|
10493 |
|
10494 |
|
10495 |
|
10496 |
|
10497 |
|
10498 |
|
10499 |
|
10500 |
|
10501 |
|
10502 |
|
10503 |
# |
10504 |
# Do we need to explicitly link libc? |
10505 |
# |
10506 |
case "x$archive_cmds_need_lc" in |
10507 |
x|xyes) |
10508 |
# Assume -lc should be added |
10509 |
archive_cmds_need_lc=yes |
10510 |
|
10511 |
if test yes,yes = "$GCC,$enable_shared"; then |
10512 |
case $archive_cmds in |
10513 |
*'~'*) |
10514 |
# FIXME: we may have to deal with multi-command sequences. |
10515 |
;; |
10516 |
'$CC '*) |
10517 |
# Test whether the compiler implicitly links with -lc since on some |
10518 |
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
10519 |
# to ld, don't add -lc before -lgcc. |
10520 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
10521 |
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
10522 |
if ${lt_cv_archive_cmds_need_lc+:} false; then : |
10523 |
$as_echo_n "(cached) " >&6 |
10524 |
else |
10525 |
$RM conftest* |
10526 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
10527 |
|
10528 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
10529 |
(eval $ac_compile) 2>&5 |
10530 |
ac_status=$? |
10531 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10532 |
test $ac_status = 0; } 2>conftest.err; then |
10533 |
soname=conftest |
10534 |
lib=conftest |
10535 |
libobjs=conftest.$ac_objext |
10536 |
deplibs= |
10537 |
wl=$lt_prog_compiler_wl |
10538 |
pic_flag=$lt_prog_compiler_pic |
10539 |
compiler_flags=-v |
10540 |
linker_flags=-v |
10541 |
verstring= |
10542 |
output_objdir=. |
10543 |
libname=conftest |
10544 |
lt_save_allow_undefined_flag=$allow_undefined_flag |
10545 |
allow_undefined_flag= |
10546 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
10547 |
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
10548 |
ac_status=$? |
10549 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10550 |
test $ac_status = 0; } |
10551 |
then |
10552 |
lt_cv_archive_cmds_need_lc=no |
10553 |
else |
10554 |
lt_cv_archive_cmds_need_lc=yes |
10555 |
fi |
10556 |
allow_undefined_flag=$lt_save_allow_undefined_flag |
10557 |
else |
10558 |
cat conftest.err 1>&5 |
10559 |
fi |
10560 |
$RM conftest* |
10561 |
|
10562 |
fi |
10563 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
10564 |
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } |
10565 |
archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
10566 |
;; |
10567 |
esac |
10568 |
fi |
10569 |
;; |
10570 |
esac |
10571 |
|
10572 |
|
10573 |
|
10574 |
|
10575 |
|
10576 |
|
10577 |
|
10578 |
|
10579 |
|
10580 |
|
10581 |
|
10582 |
|
10583 |
|
10584 |
|
10585 |
|
10586 |
|
10587 |
|
10588 |
|
10589 |
|
10590 |
|
10591 |
|
10592 |
|
10593 |
|
10594 |
|
10595 |
|
10596 |
|
10597 |
|
10598 |
|
10599 |
|
10600 |
|
10601 |
|
10602 |
|
10603 |
|
10604 |
|
10605 |
|
10606 |
|
10607 |
|
10608 |
|
10609 |
|
10610 |
|
10611 |
|
10612 |
|
10613 |
|
10614 |
|
10615 |
|
10616 |
|
10617 |
|
10618 |
|
10619 |
|
10620 |
|
10621 |
|
10622 |
|
10623 |
|
10624 |
|
10625 |
|
10626 |
|
10627 |
|
10628 |
|
10629 |
|
10630 |
|
10631 |
|
10632 |
|
10633 |
|
10634 |
|
10635 |
|
10636 |
|
10637 |
|
10638 |
|
10639 |
|
10640 |
|
10641 |
|
10642 |
|
10643 |
|
10644 |
|
10645 |
|
10646 |
|
10647 |
|
10648 |
|
10649 |
|
10650 |
|
10651 |
|
10652 |
|
10653 |
|
10654 |
|
10655 |
|
10656 |
|
10657 |
|
10658 |
|
10659 |
|
10660 |
|
10661 |
|
10662 |
|
10663 |
|
10664 |
|
10665 |
|
10666 |
|
10667 |
|
10668 |
|
10669 |
|
10670 |
|
10671 |
|
10672 |
|
10673 |
|
10674 |
|
10675 |
|
10676 |
|
10677 |
|
10678 |
|
10679 |
|
10680 |
|
10681 |
|
10682 |
|
10683 |
|
10684 |
|
10685 |
|
10686 |
|
10687 |
|
10688 |
|
10689 |
|
10690 |
|
10691 |
|
10692 |
|
10693 |
|
10694 |
|
10695 |
|
10696 |
|
10697 |
|
10698 |
|
10699 |
|
10700 |
|
10701 |
|
10702 |
|
10703 |
|
10704 |
|
10705 |
|
10706 |
|
10707 |
|
10708 |
|
10709 |
|
10710 |
|
10711 |
|
10712 |
|
10713 |
|
10714 |
|
10715 |
|
10716 |
|
10717 |
|
10718 |
|
10719 |
|
10720 |
|
10721 |
|
10722 |
|
10723 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
10724 |
$as_echo_n "checking dynamic linker characteristics... " >&6; } |
10725 |
|
10726 |
if test yes = "$GCC"; then |
10727 |
case $host_os in |
10728 |
darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; |
10729 |
*) lt_awk_arg='/^libraries:/' ;; |
10730 |
esac |
10731 |
case $host_os in |
10732 |
mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; |
10733 |
*) lt_sed_strip_eq='s|=/|/|g' ;; |
10734 |
esac |
10735 |
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
10736 |
case $lt_search_path_spec in |
10737 |
*\;*) |
10738 |
# if the path contains ";" then we assume it to be the separator |
10739 |
# otherwise default to the standard path separator (i.e. ":") - it is |
10740 |
# assumed that no part of a normal pathname contains ";" but that should |
10741 |
# okay in the real world where ";" in dirpaths is itself problematic. |
10742 |
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
10743 |
;; |
10744 |
*) |
10745 |
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` |
10746 |
;; |
10747 |
esac |
10748 |
# Ok, now we have the path, separated by spaces, we can step through it |
10749 |
# and add multilib dir if necessary... |
10750 |
lt_tmp_lt_search_path_spec= |
10751 |
lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
10752 |
# ...but if some path component already ends with the multilib dir we assume |
10753 |
# that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). |
10754 |
case "$lt_multi_os_dir; $lt_search_path_spec " in |
10755 |
"/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) |
10756 |
lt_multi_os_dir= |
10757 |
;; |
10758 |
esac |
10759 |
for lt_sys_path in $lt_search_path_spec; do |
10760 |
if test -d "$lt_sys_path$lt_multi_os_dir"; then |
10761 |
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" |
10762 |
elif test -n "$lt_multi_os_dir"; then |
10763 |
test -d "$lt_sys_path" && \ |
10764 |
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
10765 |
fi |
10766 |
done |
10767 |
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
10768 |
BEGIN {RS = " "; FS = "/|\n";} { |
10769 |
lt_foo = ""; |
10770 |
lt_count = 0; |
10771 |
for (lt_i = NF; lt_i > 0; lt_i--) { |
10772 |
if ($lt_i != "" && $lt_i != ".") { |
10773 |
if ($lt_i == "..") { |
10774 |
lt_count++; |
10775 |
} else { |
10776 |
if (lt_count == 0) { |
10777 |
lt_foo = "/" $lt_i lt_foo; |
10778 |
} else { |
10779 |
lt_count--; |
10780 |
} |
10781 |
} |
10782 |
} |
10783 |
} |
10784 |
if (lt_foo != "") { lt_freq[lt_foo]++; } |
10785 |
if (lt_freq[lt_foo] == 1) { print lt_foo; } |
10786 |
}'` |
10787 |
# AWK program above erroneously prepends '/' to C:/dos/paths |
10788 |
# for these hosts. |
10789 |
case $host_os in |
10790 |
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
10791 |
$SED 's|/\([A-Za-z]:\)|\1|g'` ;; |
10792 |
esac |
10793 |
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
10794 |
else |
10795 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
10796 |
fi |
10797 |
library_names_spec= |
10798 |
libname_spec='lib$name' |
10799 |
soname_spec= |
10800 |
shrext_cmds=.so |
10801 |
postinstall_cmds= |
10802 |
postuninstall_cmds= |
10803 |
finish_cmds= |
10804 |
finish_eval= |
10805 |
shlibpath_var= |
10806 |
shlibpath_overrides_runpath=unknown |
10807 |
version_type=none |
10808 |
dynamic_linker="$host_os ld.so" |
10809 |
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
10810 |
need_lib_prefix=unknown |
10811 |
hardcode_into_libs=no |
10812 |
|
10813 |
# when you set need_version to no, make sure it does not cause -set_version |
10814 |
# flags to be left without arguments |
10815 |
need_version=unknown |
10816 |
|
10817 |
case $host_os in |
10818 |
aix3*) |
10819 |
version_type=linux # correct to gnu/linux during the next big refactor |
10820 |
library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
10821 |
shlibpath_var=LIBPATH |
10822 |
|
10823 |
# AIX 3 has no versioning support, so we append a major version to the name. |
10824 |
soname_spec='$libname$release$shared_ext$major' |
10825 |
;; |
10826 |
|
10827 |
aix[4-9]*) |
10828 |
version_type=linux # correct to gnu/linux during the next big refactor |
10829 |
need_lib_prefix=no |
10830 |
need_version=no |
10831 |
hardcode_into_libs=yes |
10832 |
if test ia64 = "$host_cpu"; then |
10833 |
# AIX 5 supports IA64 |
10834 |
library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
10835 |
shlibpath_var=LD_LIBRARY_PATH |
10836 |
else |
10837 |
# With GCC up to 2.95.x, collect2 would create an import file |
10838 |
# for dependence libraries. The import file would start with |
10839 |
# the line '#! .'. This would cause the generated library to |
10840 |
# depend on '.', always an invalid library. This was fixed in |
10841 |
# development snapshots of GCC prior to 3.0. |
10842 |
case $host_os in |
10843 |
aix4 | aix4.[01] | aix4.[01].*) |
10844 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
10845 |
echo ' yes ' |
10846 |
echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
10847 |
: |
10848 |
else |
10849 |
can_build_shared=no |
10850 |
fi |
10851 |
;; |
10852 |
esac |
10853 |
# Using Import Files as archive members, it is possible to support |
10854 |
# filename-based versioning of shared library archives on AIX. While |
10855 |
# this would work for both with and without runtime linking, it will |
10856 |
# prevent static linking of such archives. So we do filename-based |
10857 |
# shared library versioning with .so extension only, which is used |
10858 |
# when both runtime linking and shared linking is enabled. |
10859 |
# Unfortunately, runtime linking may impact performance, so we do |
10860 |
# not want this to be the default eventually. Also, we use the |
10861 |
# versioned .so libs for executables only if there is the -brtl |
10862 |
# linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. |
10863 |
# To allow for filename-based versioning support, we need to create |
10864 |
# libNAME.so.V as an archive file, containing: |
10865 |
# *) an Import File, referring to the versioned filename of the |
10866 |
# archive as well as the shared archive member, telling the |
10867 |
# bitwidth (32 or 64) of that shared object, and providing the |
10868 |
# list of exported symbols of that shared object, eventually |
10869 |
# decorated with the 'weak' keyword |
10870 |
# *) the shared object with the F_LOADONLY flag set, to really avoid |
10871 |
# it being seen by the linker. |
10872 |
# At run time we better use the real file rather than another symlink, |
10873 |
# but for link time we create the symlink libNAME.so -> libNAME.so.V |
10874 |
|
10875 |
case $with_aix_soname,$aix_use_runtimelinking in |
10876 |
# AIX (on Power*) has no versioning support, so currently we cannot hardcode correct |
10877 |
# soname into executable. Probably we can add versioning support to |
10878 |
# collect2, so additional links can be useful in future. |
10879 |
aix,yes) # traditional libtool |
10880 |
dynamic_linker='AIX unversionable lib.so' |
10881 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
10882 |
# instead of lib<name>.a to let people know that these are not |
10883 |
# typical AIX shared libraries. |
10884 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10885 |
;; |
10886 |
aix,no) # traditional AIX only |
10887 |
dynamic_linker='AIX lib.a(lib.so.V)' |
10888 |
# We preserve .a as extension for shared libraries through AIX4.2 |
10889 |
# and later when we are not doing run time linking. |
10890 |
library_names_spec='$libname$release.a $libname.a' |
10891 |
soname_spec='$libname$release$shared_ext$major' |
10892 |
;; |
10893 |
svr4,*) # full svr4 only |
10894 |
dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" |
10895 |
library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
10896 |
# We do not specify a path in Import Files, so LIBPATH fires. |
10897 |
shlibpath_overrides_runpath=yes |
10898 |
;; |
10899 |
*,yes) # both, prefer svr4 |
10900 |
dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" |
10901 |
library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
10902 |
# unpreferred sharedlib libNAME.a needs extra handling |
10903 |
postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' |
10904 |
postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' |
10905 |
# We do not specify a path in Import Files, so LIBPATH fires. |
10906 |
shlibpath_overrides_runpath=yes |
10907 |
;; |
10908 |
*,no) # both, prefer aix |
10909 |
dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" |
10910 |
library_names_spec='$libname$release.a $libname.a' |
10911 |
soname_spec='$libname$release$shared_ext$major' |
10912 |
# unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling |
10913 |
postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' |
10914 |
postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' |
10915 |
;; |
10916 |
esac |
10917 |
shlibpath_var=LIBPATH |
10918 |
fi |
10919 |
;; |
10920 |
|
10921 |
amigaos*) |
10922 |
case $host_cpu in |
10923 |
powerpc) |
10924 |
# Since July 2007 AmigaOS4 officially supports .so libraries. |
10925 |
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
10926 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10927 |
;; |
10928 |
m68k) |
10929 |
library_names_spec='$libname.ixlibrary $libname.a' |
10930 |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
10931 |
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' |
10932 |
;; |
10933 |
esac |
10934 |
;; |
10935 |
|
10936 |
beos*) |
10937 |
library_names_spec='$libname$shared_ext' |
10938 |
dynamic_linker="$host_os ld.so" |
10939 |
shlibpath_var=LIBRARY_PATH |
10940 |
;; |
10941 |
|
10942 |
bsdi[45]*) |
10943 |
version_type=linux # correct to gnu/linux during the next big refactor |
10944 |
need_version=no |
10945 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10946 |
soname_spec='$libname$release$shared_ext$major' |
10947 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
10948 |
shlibpath_var=LD_LIBRARY_PATH |
10949 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
10950 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
10951 |
# the default ld.so.conf also contains /usr/contrib/lib and |
10952 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
10953 |
# libtool to hard-code these into programs |
10954 |
;; |
10955 |
|
10956 |
cygwin* | mingw* | pw32* | cegcc*) |
10957 |
version_type=windows |
10958 |
shrext_cmds=.dll |
10959 |
need_version=no |
10960 |
need_lib_prefix=no |
10961 |
|
10962 |
case $GCC,$cc_basename in |
10963 |
yes,*) |
10964 |
# gcc |
10965 |
library_names_spec='$libname.dll.a' |
10966 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
10967 |
postinstall_cmds='base_file=`basename \$file`~ |
10968 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
10969 |
dldir=$destdir/`dirname \$dlpath`~ |
10970 |
test -d \$dldir || mkdir -p \$dldir~ |
10971 |
$install_prog $dir/$dlname \$dldir/$dlname~ |
10972 |
chmod a+x \$dldir/$dlname~ |
10973 |
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
10974 |
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
10975 |
fi' |
10976 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
10977 |
dlpath=$dir/\$dldll~ |
10978 |
$RM \$dlpath' |
10979 |
shlibpath_overrides_runpath=yes |
10980 |
|
10981 |
case $host_os in |
10982 |
cygwin*) |
10983 |
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
10984 |
soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
10985 |
|
10986 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
10987 |
;; |
10988 |
mingw* | cegcc*) |
10989 |
# MinGW DLLs use traditional 'lib' prefix |
10990 |
soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
10991 |
;; |
10992 |
pw32*) |
10993 |
# pw32 DLLs use 'pw' prefix rather than 'lib' |
10994 |
library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
10995 |
;; |
10996 |
esac |
10997 |
dynamic_linker='Win32 ld.exe' |
10998 |
;; |
10999 |
|
11000 |
*,cl*) |
11001 |
# Native MSVC |
11002 |
libname_spec='$name' |
11003 |
soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
11004 |
library_names_spec='$libname.dll.lib' |
11005 |
|
11006 |
case $build_os in |
11007 |
mingw*) |
11008 |
sys_lib_search_path_spec= |
11009 |
lt_save_ifs=$IFS |
11010 |
IFS=';' |
11011 |
for lt_path in $LIB |
11012 |
do |
11013 |
IFS=$lt_save_ifs |
11014 |
# Let DOS variable expansion print the short 8.3 style file name. |
11015 |
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
11016 |
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
11017 |
done |
11018 |
IFS=$lt_save_ifs |
11019 |
# Convert to MSYS style. |
11020 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
11021 |
;; |
11022 |
cygwin*) |
11023 |
# Convert to unix form, then to dos form, then back to unix form |
11024 |
# but this time dos style (no spaces!) so that the unix form looks |
11025 |
# like /cygdrive/c/PROGRA~1:/cygdr... |
11026 |
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
11027 |
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
11028 |
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
11029 |
;; |
11030 |
*) |
11031 |
sys_lib_search_path_spec=$LIB |
11032 |
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
11033 |
# It is most probably a Windows format PATH. |
11034 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
11035 |
else |
11036 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
11037 |
fi |
11038 |
# FIXME: find the short name or the path components, as spaces are |
11039 |
# common. (e.g. "Program Files" -> "PROGRA~1") |
11040 |
;; |
11041 |
esac |
11042 |
|
11043 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
11044 |
postinstall_cmds='base_file=`basename \$file`~ |
11045 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
11046 |
dldir=$destdir/`dirname \$dlpath`~ |
11047 |
test -d \$dldir || mkdir -p \$dldir~ |
11048 |
$install_prog $dir/$dlname \$dldir/$dlname' |
11049 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
11050 |
dlpath=$dir/\$dldll~ |
11051 |
$RM \$dlpath' |
11052 |
shlibpath_overrides_runpath=yes |
11053 |
dynamic_linker='Win32 link.exe' |
11054 |
;; |
11055 |
|
11056 |
*) |
11057 |
# Assume MSVC wrapper |
11058 |
library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
11059 |
dynamic_linker='Win32 ld.exe' |
11060 |
;; |
11061 |
esac |
11062 |
# FIXME: first we should search . and the directory the executable is in |
11063 |
shlibpath_var=PATH |
11064 |
;; |
11065 |
|
11066 |
darwin* | rhapsody*) |
11067 |
dynamic_linker="$host_os dyld" |
11068 |
version_type=darwin |
11069 |
need_lib_prefix=no |
11070 |
need_version=no |
11071 |
library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
11072 |
soname_spec='$libname$release$major$shared_ext' |
11073 |
shlibpath_overrides_runpath=yes |
11074 |
shlibpath_var=DYLD_LIBRARY_PATH |
11075 |
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
11076 |
|
11077 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
11078 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
11079 |
;; |
11080 |
|
11081 |
dgux*) |
11082 |
version_type=linux # correct to gnu/linux during the next big refactor |
11083 |
need_lib_prefix=no |
11084 |
need_version=no |
11085 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11086 |
soname_spec='$libname$release$shared_ext$major' |
11087 |
shlibpath_var=LD_LIBRARY_PATH |
11088 |
;; |
11089 |
|
11090 |
freebsd* | dragonfly*) |
11091 |
# DragonFly does not have aout. When/if they implement a new |
11092 |
# versioning mechanism, adjust this. |
11093 |
if test -x /usr/bin/objformat; then |
11094 |
objformat=`/usr/bin/objformat` |
11095 |
else |
11096 |
case $host_os in |
11097 |
freebsd[23].*) objformat=aout ;; |
11098 |
*) objformat=elf ;; |
11099 |
esac |
11100 |
fi |
11101 |
version_type=freebsd-$objformat |
11102 |
case $version_type in |
11103 |
freebsd-elf*) |
11104 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11105 |
need_version=no |
11106 |
need_lib_prefix=no |
11107 |
;; |
11108 |
freebsd-*) |
11109 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
11110 |
need_version=yes |
11111 |
;; |
11112 |
esac |
11113 |
shlibpath_var=LD_LIBRARY_PATH |
11114 |
case $host_os in |
11115 |
freebsd2.*) |
11116 |
shlibpath_overrides_runpath=yes |
11117 |
;; |
11118 |
freebsd3.[01]* | freebsdelf3.[01]*) |
11119 |
shlibpath_overrides_runpath=yes |
11120 |
hardcode_into_libs=yes |
11121 |
;; |
11122 |
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
11123 |
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
11124 |
shlibpath_overrides_runpath=no |
11125 |
hardcode_into_libs=yes |
11126 |
;; |
11127 |
*) # from 4.6 on, and DragonFly |
11128 |
shlibpath_overrides_runpath=yes |
11129 |
hardcode_into_libs=yes |
11130 |
;; |
11131 |
esac |
11132 |
;; |
11133 |
|
11134 |
haiku*) |
11135 |
version_type=linux # correct to gnu/linux during the next big refactor |
11136 |
need_lib_prefix=no |
11137 |
need_version=no |
11138 |
dynamic_linker="$host_os runtime_loader" |
11139 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11140 |
soname_spec='$libname$release$shared_ext$major' |
11141 |
shlibpath_var=LIBRARY_PATH |
11142 |
shlibpath_overrides_runpath=no |
11143 |
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
11144 |
hardcode_into_libs=yes |
11145 |
;; |
11146 |
|
11147 |
hpux9* | hpux10* | hpux11*) |
11148 |
# Give a soname corresponding to the major version so that dld.sl refuses to |
11149 |
# link against other versions. |
11150 |
version_type=sunos |
11151 |
need_lib_prefix=no |
11152 |
need_version=no |
11153 |
case $host_cpu in |
11154 |
ia64*) |
11155 |
shrext_cmds='.so' |
11156 |
hardcode_into_libs=yes |
11157 |
dynamic_linker="$host_os dld.so" |
11158 |
shlibpath_var=LD_LIBRARY_PATH |
11159 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
11160 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11161 |
soname_spec='$libname$release$shared_ext$major' |
11162 |
if test 32 = "$HPUX_IA64_MODE"; then |
11163 |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
11164 |
else |
11165 |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
11166 |
fi |
11167 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
11168 |
;; |
11169 |
hppa*64*) |
11170 |
shrext_cmds='.sl' |
11171 |
hardcode_into_libs=yes |
11172 |
dynamic_linker="$host_os dld.sl" |
11173 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
11174 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
11175 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11176 |
soname_spec='$libname$release$shared_ext$major' |
11177 |
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
11178 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
11179 |
;; |
11180 |
*) |
11181 |
shrext_cmds='.sl' |
11182 |
dynamic_linker="$host_os dld.sl" |
11183 |
shlibpath_var=SHLIB_PATH |
11184 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
11185 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11186 |
soname_spec='$libname$release$shared_ext$major' |
11187 |
;; |
11188 |
esac |
11189 |
# HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
11190 |
postinstall_cmds='chmod 555 $lib' |
11191 |
# or fails outright, so override atomically: |
11192 |
install_override_mode=555 |
11193 |
;; |
11194 |
|
11195 |
interix[3-9]*) |
11196 |
version_type=linux # correct to gnu/linux during the next big refactor |
11197 |
need_lib_prefix=no |
11198 |
need_version=no |
11199 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11200 |
soname_spec='$libname$release$shared_ext$major' |
11201 |
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
11202 |
shlibpath_var=LD_LIBRARY_PATH |
11203 |
shlibpath_overrides_runpath=no |
11204 |
hardcode_into_libs=yes |
11205 |
;; |
11206 |
|
11207 |
irix5* | irix6* | nonstopux*) |
11208 |
case $host_os in |
11209 |
nonstopux*) version_type=nonstopux ;; |
11210 |
*) |
11211 |
if test yes = "$lt_cv_prog_gnu_ld"; then |
11212 |
version_type=linux # correct to gnu/linux during the next big refactor |
11213 |
else |
11214 |
version_type=irix |
11215 |
fi ;; |
11216 |
esac |
11217 |
need_lib_prefix=no |
11218 |
need_version=no |
11219 |
soname_spec='$libname$release$shared_ext$major' |
11220 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' |
11221 |
case $host_os in |
11222 |
irix5* | nonstopux*) |
11223 |
libsuff= shlibsuff= |
11224 |
;; |
11225 |
*) |
11226 |
case $LD in # libtool.m4 will add one of these switches to LD |
11227 |
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
11228 |
libsuff= shlibsuff= libmagic=32-bit;; |
11229 |
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
11230 |
libsuff=32 shlibsuff=N32 libmagic=N32;; |
11231 |
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
11232 |
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
11233 |
*) libsuff= shlibsuff= libmagic=never-match;; |
11234 |
esac |
11235 |
;; |
11236 |
esac |
11237 |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
11238 |
shlibpath_overrides_runpath=no |
11239 |
sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
11240 |
sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" |
11241 |
hardcode_into_libs=yes |
11242 |
;; |
11243 |
|
11244 |
# No shared lib support for Linux oldld, aout, or coff. |
11245 |
linux*oldld* | linux*aout* | linux*coff*) |
11246 |
dynamic_linker=no |
11247 |
;; |
11248 |
|
11249 |
linux*android*) |
11250 |
version_type=none # Android doesn't support versioned libraries. |
11251 |
need_lib_prefix=no |
11252 |
need_version=no |
11253 |
library_names_spec='$libname$release$shared_ext' |
11254 |
soname_spec='$libname$release$shared_ext' |
11255 |
finish_cmds= |
11256 |
shlibpath_var=LD_LIBRARY_PATH |
11257 |
shlibpath_overrides_runpath=yes |
11258 |
|
11259 |
# This implies no fast_install, which is unacceptable. |
11260 |
# Some rework will be needed to allow for fast_install |
11261 |
# before this can be enabled. |
11262 |
hardcode_into_libs=yes |
11263 |
|
11264 |
dynamic_linker='Android linker' |
11265 |
# Don't embed -rpath directories since the linker doesn't support them. |
11266 |
hardcode_libdir_flag_spec='-L$libdir' |
11267 |
;; |
11268 |
|
11269 |
# This must be glibc/ELF. |
11270 |
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
11271 |
version_type=linux # correct to gnu/linux during the next big refactor |
11272 |
need_lib_prefix=no |
11273 |
need_version=no |
11274 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11275 |
soname_spec='$libname$release$shared_ext$major' |
11276 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
11277 |
shlibpath_var=LD_LIBRARY_PATH |
11278 |
shlibpath_overrides_runpath=no |
11279 |
|
11280 |
# Some binutils ld are patched to set DT_RUNPATH |
11281 |
if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
11282 |
$as_echo_n "(cached) " >&6 |
11283 |
else |
11284 |
lt_cv_shlibpath_overrides_runpath=no |
11285 |
save_LDFLAGS=$LDFLAGS |
11286 |
save_libdir=$libdir |
11287 |
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
11288 |
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
11289 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11290 |
/* end confdefs.h. */ |
11291 |
|
11292 |
int |
11293 |
main () |
11294 |
{ |
11295 |
|
11296 |
; |
11297 |
return 0; |
11298 |
} |
11299 |
_ACEOF |
11300 |
if ac_fn_c_try_link "$LINENO"; then : |
11301 |
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
11302 |
lt_cv_shlibpath_overrides_runpath=yes |
11303 |
fi |
11304 |
fi |
11305 |
rm -f core conftest.err conftest.$ac_objext \ |
11306 |
conftest$ac_exeext conftest.$ac_ext |
11307 |
LDFLAGS=$save_LDFLAGS |
11308 |
libdir=$save_libdir |
11309 |
|
11310 |
fi |
11311 |
|
11312 |
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
11313 |
|
11314 |
# This implies no fast_install, which is unacceptable. |
11315 |
# Some rework will be needed to allow for fast_install |
11316 |
# before this can be enabled. |
11317 |
hardcode_into_libs=yes |
11318 |
|
11319 |
# Append ld.so.conf contents to the search path |
11320 |
if test -f /etc/ld.so.conf; then |
11321 |
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' ' '` |
11322 |
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
11323 |
fi |
11324 |
|
11325 |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
11326 |
# powerpc, because MkLinux only supported shared libraries with the |
11327 |
# GNU dynamic linker. Since this was broken with cross compilers, |
11328 |
# most powerpc-linux boxes support dynamic linking these days and |
11329 |
# people can always --disable-shared, the test was removed, and we |
11330 |
# assume the GNU/Linux dynamic linker is in use. |
11331 |
dynamic_linker='GNU/Linux ld.so' |
11332 |
;; |
11333 |
|
11334 |
netbsd*) |
11335 |
version_type=sunos |
11336 |
need_lib_prefix=no |
11337 |
need_version=no |
11338 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
11339 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
11340 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
11341 |
dynamic_linker='NetBSD (a.out) ld.so' |
11342 |
else |
11343 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11344 |
soname_spec='$libname$release$shared_ext$major' |
11345 |
dynamic_linker='NetBSD ld.elf_so' |
11346 |
fi |
11347 |
shlibpath_var=LD_LIBRARY_PATH |
11348 |
shlibpath_overrides_runpath=yes |
11349 |
hardcode_into_libs=yes |
11350 |
;; |
11351 |
|
11352 |
newsos6) |
11353 |
version_type=linux # correct to gnu/linux during the next big refactor |
11354 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11355 |
shlibpath_var=LD_LIBRARY_PATH |
11356 |
shlibpath_overrides_runpath=yes |
11357 |
;; |
11358 |
|
11359 |
*nto* | *qnx*) |
11360 |
version_type=qnx |
11361 |
need_lib_prefix=no |
11362 |
need_version=no |
11363 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11364 |
soname_spec='$libname$release$shared_ext$major' |
11365 |
shlibpath_var=LD_LIBRARY_PATH |
11366 |
shlibpath_overrides_runpath=no |
11367 |
hardcode_into_libs=yes |
11368 |
dynamic_linker='ldqnx.so' |
11369 |
;; |
11370 |
|
11371 |
openbsd* | bitrig*) |
11372 |
version_type=sunos |
11373 |
sys_lib_dlsearch_path_spec=/usr/lib |
11374 |
need_lib_prefix=no |
11375 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
11376 |
need_version=no |
11377 |
else |
11378 |
need_version=yes |
11379 |
fi |
11380 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
11381 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
11382 |
shlibpath_var=LD_LIBRARY_PATH |
11383 |
shlibpath_overrides_runpath=yes |
11384 |
;; |
11385 |
|
11386 |
os2*) |
11387 |
libname_spec='$name' |
11388 |
version_type=windows |
11389 |
shrext_cmds=.dll |
11390 |
need_version=no |
11391 |
need_lib_prefix=no |
11392 |
# OS/2 can only load a DLL with a base name of 8 characters or less. |
11393 |
soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; |
11394 |
v=$($ECHO $release$versuffix | tr -d .-); |
11395 |
n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); |
11396 |
$ECHO $n$v`$shared_ext' |
11397 |
library_names_spec='${libname}_dll.$libext' |
11398 |
dynamic_linker='OS/2 ld.exe' |
11399 |
shlibpath_var=BEGINLIBPATH |
11400 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
11401 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
11402 |
postinstall_cmds='base_file=`basename \$file`~ |
11403 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ |
11404 |
dldir=$destdir/`dirname \$dlpath`~ |
11405 |
test -d \$dldir || mkdir -p \$dldir~ |
11406 |
$install_prog $dir/$dlname \$dldir/$dlname~ |
11407 |
chmod a+x \$dldir/$dlname~ |
11408 |
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
11409 |
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
11410 |
fi' |
11411 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ |
11412 |
dlpath=$dir/\$dldll~ |
11413 |
$RM \$dlpath' |
11414 |
;; |
11415 |
|
11416 |
osf3* | osf4* | osf5*) |
11417 |
version_type=osf |
11418 |
need_lib_prefix=no |
11419 |
need_version=no |
11420 |
soname_spec='$libname$release$shared_ext$major' |
11421 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11422 |
shlibpath_var=LD_LIBRARY_PATH |
11423 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
11424 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
11425 |
;; |
11426 |
|
11427 |
rdos*) |
11428 |
dynamic_linker=no |
11429 |
;; |
11430 |
|
11431 |
solaris*) |
11432 |
version_type=linux # correct to gnu/linux during the next big refactor |
11433 |
need_lib_prefix=no |
11434 |
need_version=no |
11435 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11436 |
soname_spec='$libname$release$shared_ext$major' |
11437 |
shlibpath_var=LD_LIBRARY_PATH |
11438 |
shlibpath_overrides_runpath=yes |
11439 |
hardcode_into_libs=yes |
11440 |
# ldd complains unless libraries are executable |
11441 |
postinstall_cmds='chmod +x $lib' |
11442 |
;; |
11443 |
|
11444 |
sunos4*) |
11445 |
version_type=sunos |
11446 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
11447 |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
11448 |
shlibpath_var=LD_LIBRARY_PATH |
11449 |
shlibpath_overrides_runpath=yes |
11450 |
if test yes = "$with_gnu_ld"; then |
11451 |
need_lib_prefix=no |
11452 |
fi |
11453 |
need_version=yes |
11454 |
;; |
11455 |
|
11456 |
sysv4 | sysv4.3*) |
11457 |
version_type=linux # correct to gnu/linux during the next big refactor |
11458 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11459 |
soname_spec='$libname$release$shared_ext$major' |
11460 |
shlibpath_var=LD_LIBRARY_PATH |
11461 |
case $host_vendor in |
11462 |
sni) |
11463 |
shlibpath_overrides_runpath=no |
11464 |
need_lib_prefix=no |
11465 |
runpath_var=LD_RUN_PATH |
11466 |
;; |
11467 |
siemens) |
11468 |
need_lib_prefix=no |
11469 |
;; |
11470 |
motorola) |
11471 |
need_lib_prefix=no |
11472 |
need_version=no |
11473 |
shlibpath_overrides_runpath=no |
11474 |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
11475 |
;; |
11476 |
esac |
11477 |
;; |
11478 |
|
11479 |
sysv4*MP*) |
11480 |
if test -d /usr/nec; then |
11481 |
version_type=linux # correct to gnu/linux during the next big refactor |
11482 |
library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
11483 |
soname_spec='$libname$shared_ext.$major' |
11484 |
shlibpath_var=LD_LIBRARY_PATH |
11485 |
fi |
11486 |
;; |
11487 |
|
11488 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
11489 |
version_type=sco |
11490 |
need_lib_prefix=no |
11491 |
need_version=no |
11492 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
11493 |
soname_spec='$libname$release$shared_ext$major' |
11494 |
shlibpath_var=LD_LIBRARY_PATH |
11495 |
shlibpath_overrides_runpath=yes |
11496 |
hardcode_into_libs=yes |
11497 |
if test yes = "$with_gnu_ld"; then |
11498 |
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
11499 |
else |
11500 |
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
11501 |
case $host_os in |
11502 |
sco3.2v5*) |
11503 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
11504 |
;; |
11505 |
esac |
11506 |
fi |
11507 |
sys_lib_dlsearch_path_spec='/usr/lib' |
11508 |
;; |
11509 |
|
11510 |
tpf*) |
11511 |
# TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
11512 |
version_type=linux # correct to gnu/linux during the next big refactor |
11513 |
need_lib_prefix=no |
11514 |
need_version=no |
11515 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11516 |
shlibpath_var=LD_LIBRARY_PATH |
11517 |
shlibpath_overrides_runpath=no |
11518 |
hardcode_into_libs=yes |
11519 |
;; |
11520 |
|
11521 |
uts4*) |
11522 |
version_type=linux # correct to gnu/linux during the next big refactor |
11523 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11524 |
soname_spec='$libname$release$shared_ext$major' |
11525 |
shlibpath_var=LD_LIBRARY_PATH |
11526 |
;; |
11527 |
|
11528 |
*) |
11529 |
dynamic_linker=no |
11530 |
;; |
11531 |
esac |
11532 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
11533 |
$as_echo "$dynamic_linker" >&6; } |
11534 |
test no = "$dynamic_linker" && can_build_shared=no |
11535 |
|
11536 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
11537 |
if test yes = "$GCC"; then |
11538 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
11539 |
fi |
11540 |
|
11541 |
if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
11542 |
sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec |
11543 |
fi |
11544 |
if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then |
11545 |
sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec |
11546 |
fi |
11547 |
|
11548 |
|
11549 |
|
11550 |
|
11551 |
|
11552 |
|
11553 |
|
11554 |
|
11555 |
|
11556 |
|
11557 |
|
11558 |
|
11559 |
|
11560 |
|
11561 |
|
11562 |
|
11563 |
|
11564 |
|
11565 |
|
11566 |
|
11567 |
|
11568 |
|
11569 |
|
11570 |
|
11571 |
|
11572 |
|
11573 |
|
11574 |
|
11575 |
|
11576 |
|
11577 |
|
11578 |
|
11579 |
|
11580 |
|
11581 |
|
11582 |
|
11583 |
|
11584 |
|
11585 |
|
11586 |
|
11587 |
|
11588 |
|
11589 |
|
11590 |
|
11591 |
|
11592 |
|
11593 |
|
11594 |
|
11595 |
|
11596 |
|
11597 |
|
11598 |
|
11599 |
|
11600 |
|
11601 |
|
11602 |
|
11603 |
|
11604 |
|
11605 |
|
11606 |
|
11607 |
|
11608 |
|
11609 |
|
11610 |
|
11611 |
|
11612 |
|
11613 |
|
11614 |
|
11615 |
|
11616 |
|
11617 |
|
11618 |
|
11619 |
|
11620 |
|
11621 |
|
11622 |
|
11623 |
|
11624 |
|
11625 |
|
11626 |
|
11627 |
|
11628 |
|
11629 |
|
11630 |
|
11631 |
|
11632 |
|
11633 |
|
11634 |
|
11635 |
|
11636 |
|
11637 |
|
11638 |
|
11639 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
11640 |
$as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
11641 |
hardcode_action= |
11642 |
if test -n "$hardcode_libdir_flag_spec" || |
11643 |
test -n "$runpath_var" || |
11644 |
test yes = "$hardcode_automatic"; then |
11645 |
|
11646 |
# We can hardcode non-existent directories. |
11647 |
if test no != "$hardcode_direct" && |
11648 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
11649 |
# have to relink, otherwise we might link with an installed library |
11650 |
# when we should be linking with a yet-to-be-installed one |
11651 |
## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && |
11652 |
test no != "$hardcode_minus_L"; then |
11653 |
# Linking always hardcodes the temporary library directory. |
11654 |
hardcode_action=relink |
11655 |
else |
11656 |
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
11657 |
hardcode_action=immediate |
11658 |
fi |
11659 |
else |
11660 |
# We cannot hardcode anything, or else we can only hardcode existing |
11661 |
# directories. |
11662 |
hardcode_action=unsupported |
11663 |
fi |
11664 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
11665 |
$as_echo "$hardcode_action" >&6; } |
11666 |
|
11667 |
if test relink = "$hardcode_action" || |
11668 |
test yes = "$inherit_rpath"; then |
11669 |
# Fast installation is not supported |
11670 |
enable_fast_install=no |
11671 |
elif test yes = "$shlibpath_overrides_runpath" || |
11672 |
test no = "$enable_shared"; then |
11673 |
# Fast installation is not necessary |
11674 |
enable_fast_install=needless |
11675 |
fi |
11676 |
|
11677 |
|
11678 |
|
11679 |
|
11680 |
|
11681 |
|
11682 |
if test yes != "$enable_dlopen"; then |
11683 |
enable_dlopen=unknown |
11684 |
enable_dlopen_self=unknown |
11685 |
enable_dlopen_self_static=unknown |
11686 |
else |
11687 |
lt_cv_dlopen=no |
11688 |
lt_cv_dlopen_libs= |
11689 |
|
11690 |
case $host_os in |
11691 |
beos*) |
11692 |
lt_cv_dlopen=load_add_on |
11693 |
lt_cv_dlopen_libs= |
11694 |
lt_cv_dlopen_self=yes |
11695 |
;; |
11696 |
|
11697 |
mingw* | pw32* | cegcc*) |
11698 |
lt_cv_dlopen=LoadLibrary |
11699 |
lt_cv_dlopen_libs= |
11700 |
;; |
11701 |
|
11702 |
cygwin*) |
11703 |
lt_cv_dlopen=dlopen |
11704 |
lt_cv_dlopen_libs= |
11705 |
;; |
11706 |
|
11707 |
darwin*) |
11708 |
# if libdl is installed we need to link against it |
11709 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
11710 |
$as_echo_n "checking for dlopen in -ldl... " >&6; } |
11711 |
if ${ac_cv_lib_dl_dlopen+:} false; then : |
11712 |
$as_echo_n "(cached) " >&6 |
11713 |
else |
11714 |
ac_check_lib_save_LIBS=$LIBS |
11715 |
LIBS="-ldl $LIBS" |
11716 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11717 |
/* end confdefs.h. */ |
11718 |
|
11719 |
/* Override any GCC internal prototype to avoid an error. |
11720 |
Use char because int might match the return type of a GCC |
11721 |
builtin and then its argument prototype would still apply. */ |
11722 |
#ifdef __cplusplus |
11723 |
extern "C" |
11724 |
#endif |
11725 |
char dlopen (); |
11726 |
int |
11727 |
main () |
11728 |
{ |
11729 |
return dlopen (); |
11730 |
; |
11731 |
return 0; |
11732 |
} |
11733 |
_ACEOF |
11734 |
if ac_fn_c_try_link "$LINENO"; then : |
11735 |
ac_cv_lib_dl_dlopen=yes |
11736 |
else |
11737 |
ac_cv_lib_dl_dlopen=no |
11738 |
fi |
11739 |
rm -f core conftest.err conftest.$ac_objext \ |
11740 |
conftest$ac_exeext conftest.$ac_ext |
11741 |
LIBS=$ac_check_lib_save_LIBS |
11742 |
fi |
11743 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11744 |
$as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
11745 |
if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
11746 |
lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
11747 |
else |
11748 |
|
11749 |
lt_cv_dlopen=dyld |
11750 |
lt_cv_dlopen_libs= |
11751 |
lt_cv_dlopen_self=yes |
11752 |
|
11753 |
fi |
11754 |
|
11755 |
;; |
11756 |
|
11757 |
tpf*) |
11758 |
# Don't try to run any link tests for TPF. We know it's impossible |
11759 |
# because TPF is a cross-compiler, and we know how we open DSOs. |
11760 |
lt_cv_dlopen=dlopen |
11761 |
lt_cv_dlopen_libs= |
11762 |
lt_cv_dlopen_self=no |
11763 |
;; |
11764 |
|
11765 |
*) |
11766 |
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
11767 |
if test "x$ac_cv_func_shl_load" = xyes; then : |
11768 |
lt_cv_dlopen=shl_load |
11769 |
else |
11770 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
11771 |
$as_echo_n "checking for shl_load in -ldld... " >&6; } |
11772 |
if ${ac_cv_lib_dld_shl_load+:} false; then : |
11773 |
$as_echo_n "(cached) " >&6 |
11774 |
else |
11775 |
ac_check_lib_save_LIBS=$LIBS |
11776 |
LIBS="-ldld $LIBS" |
11777 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11778 |
/* end confdefs.h. */ |
11779 |
|
11780 |
/* Override any GCC internal prototype to avoid an error. |
11781 |
Use char because int might match the return type of a GCC |
11782 |
builtin and then its argument prototype would still apply. */ |
11783 |
#ifdef __cplusplus |
11784 |
extern "C" |
11785 |
#endif |
11786 |
char shl_load (); |
11787 |
int |
11788 |
main () |
11789 |
{ |
11790 |
return shl_load (); |
11791 |
; |
11792 |
return 0; |
11793 |
} |
11794 |
_ACEOF |
11795 |
if ac_fn_c_try_link "$LINENO"; then : |
11796 |
ac_cv_lib_dld_shl_load=yes |
11797 |
else |
11798 |
ac_cv_lib_dld_shl_load=no |
11799 |
fi |
11800 |
rm -f core conftest.err conftest.$ac_objext \ |
11801 |
conftest$ac_exeext conftest.$ac_ext |
11802 |
LIBS=$ac_check_lib_save_LIBS |
11803 |
fi |
11804 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
11805 |
$as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
11806 |
if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
11807 |
lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld |
11808 |
else |
11809 |
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
11810 |
if test "x$ac_cv_func_dlopen" = xyes; then : |
11811 |
lt_cv_dlopen=dlopen |
11812 |
else |
11813 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
11814 |
$as_echo_n "checking for dlopen in -ldl... " >&6; } |
11815 |
if ${ac_cv_lib_dl_dlopen+:} false; then : |
11816 |
$as_echo_n "(cached) " >&6 |
11817 |
else |
11818 |
ac_check_lib_save_LIBS=$LIBS |
11819 |
LIBS="-ldl $LIBS" |
11820 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11821 |
/* end confdefs.h. */ |
11822 |
|
11823 |
/* Override any GCC internal prototype to avoid an error. |
11824 |
Use char because int might match the return type of a GCC |
11825 |
builtin and then its argument prototype would still apply. */ |
11826 |
#ifdef __cplusplus |
11827 |
extern "C" |
11828 |
#endif |
11829 |
char dlopen (); |
11830 |
int |
11831 |
main () |
11832 |
{ |
11833 |
return dlopen (); |
11834 |
; |
11835 |
return 0; |
11836 |
} |
11837 |
_ACEOF |
11838 |
if ac_fn_c_try_link "$LINENO"; then : |
11839 |
ac_cv_lib_dl_dlopen=yes |
11840 |
else |
11841 |
ac_cv_lib_dl_dlopen=no |
11842 |
fi |
11843 |
rm -f core conftest.err conftest.$ac_objext \ |
11844 |
conftest$ac_exeext conftest.$ac_ext |
11845 |
LIBS=$ac_check_lib_save_LIBS |
11846 |
fi |
11847 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11848 |
$as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
11849 |
if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
11850 |
lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
11851 |
else |
11852 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
11853 |
$as_echo_n "checking for dlopen in -lsvld... " >&6; } |
11854 |
if ${ac_cv_lib_svld_dlopen+:} false; then : |
11855 |
$as_echo_n "(cached) " >&6 |
11856 |
else |
11857 |
ac_check_lib_save_LIBS=$LIBS |
11858 |
LIBS="-lsvld $LIBS" |
11859 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11860 |
/* end confdefs.h. */ |
11861 |
|
11862 |
/* Override any GCC internal prototype to avoid an error. |
11863 |
Use char because int might match the return type of a GCC |
11864 |
builtin and then its argument prototype would still apply. */ |
11865 |
#ifdef __cplusplus |
11866 |
extern "C" |
11867 |
#endif |
11868 |
char dlopen (); |
11869 |
int |
11870 |
main () |
11871 |
{ |
11872 |
return dlopen (); |
11873 |
; |
11874 |
return 0; |
11875 |
} |
11876 |
_ACEOF |
11877 |
if ac_fn_c_try_link "$LINENO"; then : |
11878 |
ac_cv_lib_svld_dlopen=yes |
11879 |
else |
11880 |
ac_cv_lib_svld_dlopen=no |
11881 |
fi |
11882 |
rm -f core conftest.err conftest.$ac_objext \ |
11883 |
conftest$ac_exeext conftest.$ac_ext |
11884 |
LIBS=$ac_check_lib_save_LIBS |
11885 |
fi |
11886 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
11887 |
$as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
11888 |
if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
11889 |
lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld |
11890 |
else |
11891 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
11892 |
$as_echo_n "checking for dld_link in -ldld... " >&6; } |
11893 |
if ${ac_cv_lib_dld_dld_link+:} false; then : |
11894 |
$as_echo_n "(cached) " >&6 |
11895 |
else |
11896 |
ac_check_lib_save_LIBS=$LIBS |
11897 |
LIBS="-ldld $LIBS" |
11898 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11899 |
/* end confdefs.h. */ |
11900 |
|
11901 |
/* Override any GCC internal prototype to avoid an error. |
11902 |
Use char because int might match the return type of a GCC |
11903 |
builtin and then its argument prototype would still apply. */ |
11904 |
#ifdef __cplusplus |
11905 |
extern "C" |
11906 |
#endif |
11907 |
char dld_link (); |
11908 |
int |
11909 |
main () |
11910 |
{ |
11911 |
return dld_link (); |
11912 |
; |
11913 |
return 0; |
11914 |
} |
11915 |
_ACEOF |
11916 |
if ac_fn_c_try_link "$LINENO"; then : |
11917 |
ac_cv_lib_dld_dld_link=yes |
11918 |
else |
11919 |
ac_cv_lib_dld_dld_link=no |
11920 |
fi |
11921 |
rm -f core conftest.err conftest.$ac_objext \ |
11922 |
conftest$ac_exeext conftest.$ac_ext |
11923 |
LIBS=$ac_check_lib_save_LIBS |
11924 |
fi |
11925 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
11926 |
$as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
11927 |
if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
11928 |
lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld |
11929 |
fi |
11930 |
|
11931 |
|
11932 |
fi |
11933 |
|
11934 |
|
11935 |
fi |
11936 |
|
11937 |
|
11938 |
fi |
11939 |
|
11940 |
|
11941 |
fi |
11942 |
|
11943 |
|
11944 |
fi |
11945 |
|
11946 |
;; |
11947 |
esac |
11948 |
|
11949 |
if test no = "$lt_cv_dlopen"; then |
11950 |
enable_dlopen=no |
11951 |
else |
11952 |
enable_dlopen=yes |
11953 |
fi |
11954 |
|
11955 |
case $lt_cv_dlopen in |
11956 |
dlopen) |
11957 |
save_CPPFLAGS=$CPPFLAGS |
11958 |
test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
11959 |
|
11960 |
save_LDFLAGS=$LDFLAGS |
11961 |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
11962 |
|
11963 |
save_LIBS=$LIBS |
11964 |
LIBS="$lt_cv_dlopen_libs $LIBS" |
11965 |
|
11966 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
11967 |
$as_echo_n "checking whether a program can dlopen itself... " >&6; } |
11968 |
if ${lt_cv_dlopen_self+:} false; then : |
11969 |
$as_echo_n "(cached) " >&6 |
11970 |
else |
11971 |
if test yes = "$cross_compiling"; then : |
11972 |
lt_cv_dlopen_self=cross |
11973 |
else |
11974 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
11975 |
lt_status=$lt_dlunknown |
11976 |
cat > conftest.$ac_ext <<_LT_EOF |
11977 |
#line $LINENO "configure" |
11978 |
#include "confdefs.h" |
11979 |
|
11980 |
#if HAVE_DLFCN_H |
11981 |
#include <dlfcn.h> |
11982 |
#endif |
11983 |
|
11984 |
#include <stdio.h> |
11985 |
|
11986 |
#ifdef RTLD_GLOBAL |
11987 |
# define LT_DLGLOBAL RTLD_GLOBAL |
11988 |
#else |
11989 |
# ifdef DL_GLOBAL |
11990 |
# define LT_DLGLOBAL DL_GLOBAL |
11991 |
# else |
11992 |
# define LT_DLGLOBAL 0 |
11993 |
# endif |
11994 |
#endif |
11995 |
|
11996 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11997 |
find out it does not work in some platform. */ |
11998 |
#ifndef LT_DLLAZY_OR_NOW |
11999 |
# ifdef RTLD_LAZY |
12000 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
12001 |
# else |
12002 |
# ifdef DL_LAZY |
12003 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
12004 |
# else |
12005 |
# ifdef RTLD_NOW |
12006 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
12007 |
# else |
12008 |
# ifdef DL_NOW |
12009 |
# define LT_DLLAZY_OR_NOW DL_NOW |
12010 |
# else |
12011 |
# define LT_DLLAZY_OR_NOW 0 |
12012 |
# endif |
12013 |
# endif |
12014 |
# endif |
12015 |
# endif |
12016 |
#endif |
12017 |
|
12018 |
/* When -fvisibility=hidden is used, assume the code has been annotated |
12019 |
correspondingly for the symbols needed. */ |
12020 |
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
12021 |
int fnord () __attribute__((visibility("default"))); |
12022 |
#endif |
12023 |
|
12024 |
int fnord () { return 42; } |
12025 |
int main () |
12026 |
{ |
12027 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
12028 |
int status = $lt_dlunknown; |
12029 |
|
12030 |
if (self) |
12031 |
{ |
12032 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
12033 |
else |
12034 |
{ |
12035 |
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
12036 |
else puts (dlerror ()); |
12037 |
} |
12038 |
/* dlclose (self); */ |
12039 |
} |
12040 |
else |
12041 |
puts (dlerror ()); |
12042 |
|
12043 |
return status; |
12044 |
} |
12045 |
_LT_EOF |
12046 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
12047 |
(eval $ac_link) 2>&5 |
12048 |
ac_status=$? |
12049 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12050 |
test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
12051 |
(./conftest; exit; ) >&5 2>/dev/null |
12052 |
lt_status=$? |
12053 |
case x$lt_status in |
12054 |
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
12055 |
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
12056 |
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
12057 |
esac |
12058 |
else : |
12059 |
# compilation failed |
12060 |
lt_cv_dlopen_self=no |
12061 |
fi |
12062 |
fi |
12063 |
rm -fr conftest* |
12064 |
|
12065 |
|
12066 |
fi |
12067 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
12068 |
$as_echo "$lt_cv_dlopen_self" >&6; } |
12069 |
|
12070 |
if test yes = "$lt_cv_dlopen_self"; then |
12071 |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
12072 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
12073 |
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
12074 |
if ${lt_cv_dlopen_self_static+:} false; then : |
12075 |
$as_echo_n "(cached) " >&6 |
12076 |
else |
12077 |
if test yes = "$cross_compiling"; then : |
12078 |
lt_cv_dlopen_self_static=cross |
12079 |
else |
12080 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
12081 |
lt_status=$lt_dlunknown |
12082 |
cat > conftest.$ac_ext <<_LT_EOF |
12083 |
#line $LINENO "configure" |
12084 |
#include "confdefs.h" |
12085 |
|
12086 |
#if HAVE_DLFCN_H |
12087 |
#include <dlfcn.h> |
12088 |
#endif |
12089 |
|
12090 |
#include <stdio.h> |
12091 |
|
12092 |
#ifdef RTLD_GLOBAL |
12093 |
# define LT_DLGLOBAL RTLD_GLOBAL |
12094 |
#else |
12095 |
# ifdef DL_GLOBAL |
12096 |
# define LT_DLGLOBAL DL_GLOBAL |
12097 |
# else |
12098 |
# define LT_DLGLOBAL 0 |
12099 |
# endif |
12100 |
#endif |
12101 |
|
12102 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12103 |
find out it does not work in some platform. */ |
12104 |
#ifndef LT_DLLAZY_OR_NOW |
12105 |
# ifdef RTLD_LAZY |
12106 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
12107 |
# else |
12108 |
# ifdef DL_LAZY |
12109 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
12110 |
# else |
12111 |
# ifdef RTLD_NOW |
12112 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
12113 |
# else |
12114 |
# ifdef DL_NOW |
12115 |
# define LT_DLLAZY_OR_NOW DL_NOW |
12116 |
# else |
12117 |
# define LT_DLLAZY_OR_NOW 0 |
12118 |
# endif |
12119 |
# endif |
12120 |
# endif |
12121 |
# endif |
12122 |
#endif |
12123 |
|
12124 |
/* When -fvisibility=hidden is used, assume the code has been annotated |
12125 |
correspondingly for the symbols needed. */ |
12126 |
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
12127 |
int fnord () __attribute__((visibility("default"))); |
12128 |
#endif |
12129 |
|
12130 |
int fnord () { return 42; } |
12131 |
int main () |
12132 |
{ |
12133 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
12134 |
int status = $lt_dlunknown; |
12135 |
|
12136 |
if (self) |
12137 |
{ |
12138 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
12139 |
else |
12140 |
{ |
12141 |
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
12142 |
else puts (dlerror ()); |
12143 |
} |
12144 |
/* dlclose (self); */ |
12145 |
} |
12146 |
else |
12147 |
puts (dlerror ()); |
12148 |
|
12149 |
return status; |
12150 |
} |
12151 |
_LT_EOF |
12152 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
12153 |
(eval $ac_link) 2>&5 |
12154 |
ac_status=$? |
12155 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12156 |
test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
12157 |
(./conftest; exit; ) >&5 2>/dev/null |
12158 |
lt_status=$? |
12159 |
case x$lt_status in |
12160 |
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
12161 |
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
12162 |
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
12163 |
esac |
12164 |
else : |
12165 |
# compilation failed |
12166 |
lt_cv_dlopen_self_static=no |
12167 |
fi |
12168 |
fi |
12169 |
rm -fr conftest* |
12170 |
|
12171 |
|
12172 |
fi |
12173 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
12174 |
$as_echo "$lt_cv_dlopen_self_static" >&6; } |
12175 |
fi |
12176 |
|
12177 |
CPPFLAGS=$save_CPPFLAGS |
12178 |
LDFLAGS=$save_LDFLAGS |
12179 |
LIBS=$save_LIBS |
12180 |
;; |
12181 |
esac |
12182 |
|
12183 |
case $lt_cv_dlopen_self in |
12184 |
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
12185 |
*) enable_dlopen_self=unknown ;; |
12186 |
esac |
12187 |
|
12188 |
case $lt_cv_dlopen_self_static in |
12189 |
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
12190 |
*) enable_dlopen_self_static=unknown ;; |
12191 |
esac |
12192 |
fi |
12193 |
|
12194 |
|
12195 |
|
12196 |
|
12197 |
|
12198 |
|
12199 |
|
12200 |
|
12201 |
|
12202 |
|
12203 |
|
12204 |
|
12205 |
|
12206 |
|
12207 |
|
12208 |
|
12209 |
|
12210 |
striplib= |
12211 |
old_striplib= |
12212 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
12213 |
$as_echo_n "checking whether stripping libraries is possible... " >&6; } |
12214 |
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
12215 |
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
12216 |
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
12217 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12218 |
$as_echo "yes" >&6; } |
12219 |
else |
12220 |
# FIXME - insert some real tests, host_os isn't really good enough |
12221 |
case $host_os in |
12222 |
darwin*) |
12223 |
if test -n "$STRIP"; then |
12224 |
striplib="$STRIP -x" |
12225 |
old_striplib="$STRIP -S" |
12226 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12227 |
$as_echo "yes" >&6; } |
12228 |
else |
12229 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12230 |
$as_echo "no" >&6; } |
12231 |
fi |
12232 |
;; |
12233 |
*) |
12234 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12235 |
$as_echo "no" >&6; } |
12236 |
;; |
12237 |
esac |
12238 |
fi |
12239 |
|
12240 |
|
12241 |
|
12242 |
|
12243 |
|
12244 |
|
12245 |
|
12246 |
|
12247 |
|
12248 |
|
12249 |
|
12250 |
|
12251 |
# Report what library types will actually be built |
12252 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
12253 |
$as_echo_n "checking if libtool supports shared libraries... " >&6; } |
12254 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
12255 |
$as_echo "$can_build_shared" >&6; } |
12256 |
|
12257 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
12258 |
$as_echo_n "checking whether to build shared libraries... " >&6; } |
12259 |
test no = "$can_build_shared" && enable_shared=no |
12260 |
|
12261 |
# On AIX, shared libraries and static libraries use the same namespace, and |
12262 |
# are all built from PIC. |
12263 |
case $host_os in |
12264 |
aix3*) |
12265 |
test yes = "$enable_shared" && enable_static=no |
12266 |
if test -n "$RANLIB"; then |
12267 |
archive_cmds="$archive_cmds~\$RANLIB \$lib" |
12268 |
postinstall_cmds='$RANLIB $lib' |
12269 |
fi |
12270 |
;; |
12271 |
|
12272 |
aix[4-9]*) |
12273 |
if test ia64 != "$host_cpu"; then |
12274 |
case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in |
12275 |
yes,aix,yes) ;; # shared object as lib.so file only |
12276 |
yes,svr4,*) ;; # shared object as lib.so archive member only |
12277 |
yes,*) enable_static=no ;; # shared object in lib.a archive as well |
12278 |
esac |
12279 |
fi |
12280 |
;; |
12281 |
esac |
12282 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
12283 |
$as_echo "$enable_shared" >&6; } |
12284 |
|
12285 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
12286 |
$as_echo_n "checking whether to build static libraries... " >&6; } |
12287 |
# Make sure either enable_shared or enable_static is yes. |
12288 |
test yes = "$enable_shared" || enable_static=yes |
12289 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
12290 |
$as_echo "$enable_static" >&6; } |
12291 |
|
12292 |
|
12293 |
|
12294 |
|
12295 |
fi |
12296 |
ac_ext=c |
12297 |
ac_cpp='$CPP $CPPFLAGS' |
12298 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
12299 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
12300 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
12301 |
|
12302 |
CC=$lt_save_CC |
12303 |
|
12304 |
|
12305 |
|
12306 |
|
12307 |
|
12308 |
|
12309 |
|
12310 |
|
12311 |
|
12312 |
|
12313 |
|
12314 |
|
12315 |
|
12316 |
|
12317 |
|
12318 |
ac_config_commands="$ac_config_commands libtool" |
12319 |
|
12320 |
|
12321 |
|
12322 |
|
12323 |
# Only expand once: |
12324 |
|
12325 |
|
12326 |
|
12327 |
|
12328 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
12329 |
$as_echo_n "checking for ANSI C header files... " >&6; } |
12330 |
if ${ac_cv_header_stdc+:} false; then : |
12331 |
$as_echo_n "(cached) " >&6 |
12332 |
else |
12333 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12334 |
/* end confdefs.h. */ |
12335 |
#include <stdlib.h> |
12336 |
#include <stdarg.h> |
12337 |
#include <string.h> |
12338 |
#include <float.h> |
12339 |
|
12340 |
int |
12341 |
main () |
12342 |
{ |
12343 |
|
12344 |
; |
12345 |
return 0; |
12346 |
} |
12347 |
_ACEOF |
12348 |
if ac_fn_c_try_compile "$LINENO"; then : |
12349 |
ac_cv_header_stdc=yes |
12350 |
else |
12351 |
ac_cv_header_stdc=no |
12352 |
fi |
12353 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12354 |
|
12355 |
if test $ac_cv_header_stdc = yes; then |
12356 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
12357 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12358 |
/* end confdefs.h. */ |
12359 |
#include <string.h> |
12360 |
|
12361 |
_ACEOF |
12362 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
12363 |
$EGREP "memchr" >/dev/null 2>&1; then : |
12364 |
|
12365 |
else |
12366 |
ac_cv_header_stdc=no |
12367 |
fi |
12368 |
rm -f conftest* |
12369 |
|
12370 |
fi |
12371 |
|
12372 |
if test $ac_cv_header_stdc = yes; then |
12373 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
12374 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12375 |
/* end confdefs.h. */ |
12376 |
#include <stdlib.h> |
12377 |
|
12378 |
_ACEOF |
12379 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
12380 |
$EGREP "free" >/dev/null 2>&1; then : |
12381 |
|
12382 |
else |
12383 |
ac_cv_header_stdc=no |
12384 |
fi |
12385 |
rm -f conftest* |
12386 |
|
12387 |
fi |
12388 |
|
12389 |
if test $ac_cv_header_stdc = yes; then |
12390 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
12391 |
if test "$cross_compiling" = yes; then : |
12392 |
: |
12393 |
else |
12394 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12395 |
/* end confdefs.h. */ |
12396 |
#include <ctype.h> |
12397 |
#include <stdlib.h> |
12398 |
#if ((' ' & 0x0FF) == 0x020) |
12399 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
12400 |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
12401 |
#else |
12402 |
# define ISLOWER(c) \ |
12403 |
(('a' <= (c) && (c) <= 'i') \ |
12404 |
|| ('j' <= (c) && (c) <= 'r') \ |
12405 |
|| ('s' <= (c) && (c) <= 'z')) |
12406 |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
12407 |
#endif |
12408 |
|
12409 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
12410 |
int |
12411 |
main () |
12412 |
{ |
12413 |
int i; |
12414 |
for (i = 0; i < 256; i++) |
12415 |
if (XOR (islower (i), ISLOWER (i)) |
12416 |
|| toupper (i) != TOUPPER (i)) |
12417 |
return 2; |
12418 |
return 0; |
12419 |
} |
12420 |
_ACEOF |
12421 |
if ac_fn_c_try_run "$LINENO"; then : |
12422 |
|
12423 |
else |
12424 |
ac_cv_header_stdc=no |
12425 |
fi |
12426 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
12427 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
12428 |
fi |
12429 |
|
12430 |
fi |
12431 |
fi |
12432 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
12433 |
$as_echo "$ac_cv_header_stdc" >&6; } |
12434 |
if test $ac_cv_header_stdc = yes; then |
12435 |
|
12436 |
$as_echo "#define STDC_HEADERS 1" >>confdefs.h |
12437 |
|
12438 |
fi |
12439 |
|
12440 |
|
12441 |
for ac_header in sys/poll.h |
12442 |
do : |
12443 |
ac_fn_c_check_header_mongrel "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default" |
12444 |
if test "x$ac_cv_header_sys_poll_h" = xyes; then : |
12445 |
cat >>confdefs.h <<_ACEOF |
12446 |
#define HAVE_SYS_POLL_H 1 |
12447 |
_ACEOF |
12448 |
have_poll_sys_h=yes |
12449 |
else |
12450 |
have_sys_poll_h=no |
12451 |
fi |
12452 |
|
12453 |
done |
12454 |
|
12455 |
|
12456 |
for ac_header in fcntl.h sys/time.h unistd.h strings.h |
12457 |
do : |
12458 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12459 |
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
12460 |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
12461 |
cat >>confdefs.h <<_ACEOF |
12462 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
12463 |
_ACEOF |
12464 |
|
12465 |
fi |
12466 |
|
12467 |
done |
12468 |
|
12469 |
|
12470 |
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
12471 |
if test "x$ac_cv_type_size_t" = xyes; then : |
12472 |
|
12473 |
else |
12474 |
|
12475 |
cat >>confdefs.h <<_ACEOF |
12476 |
#define size_t unsigned int |
12477 |
_ACEOF |
12478 |
|
12479 |
fi |
12480 |
|
12481 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
12482 |
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
12483 |
if ${ac_cv_header_time+:} false; then : |
12484 |
$as_echo_n "(cached) " >&6 |
12485 |
else |
12486 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12487 |
/* end confdefs.h. */ |
12488 |
#include <sys/types.h> |
12489 |
#include <sys/time.h> |
12490 |
#include <time.h> |
12491 |
|
12492 |
int |
12493 |
main () |
12494 |
{ |
12495 |
if ((struct tm *) 0) |
12496 |
return 0; |
12497 |
; |
12498 |
return 0; |
12499 |
} |
12500 |
_ACEOF |
12501 |
if ac_fn_c_try_compile "$LINENO"; then : |
12502 |
ac_cv_header_time=yes |
12503 |
else |
12504 |
ac_cv_header_time=no |
12505 |
fi |
12506 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12507 |
fi |
12508 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
12509 |
$as_echo "$ac_cv_header_time" >&6; } |
12510 |
if test $ac_cv_header_time = yes; then |
12511 |
|
12512 |
$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
12513 |
|
12514 |
fi |
12515 |
|
12516 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
12517 |
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } |
12518 |
if ${ac_cv_struct_tm+:} false; then : |
12519 |
$as_echo_n "(cached) " >&6 |
12520 |
else |
12521 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12522 |
/* end confdefs.h. */ |
12523 |
#include <sys/types.h> |
12524 |
#include <time.h> |
12525 |
|
12526 |
int |
12527 |
main () |
12528 |
{ |
12529 |
struct tm tm; |
12530 |
int *p = &tm.tm_sec; |
12531 |
return !p; |
12532 |
; |
12533 |
return 0; |
12534 |
} |
12535 |
_ACEOF |
12536 |
if ac_fn_c_try_compile "$LINENO"; then : |
12537 |
ac_cv_struct_tm=time.h |
12538 |
else |
12539 |
ac_cv_struct_tm=sys/time.h |
12540 |
fi |
12541 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12542 |
fi |
12543 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
12544 |
$as_echo "$ac_cv_struct_tm" >&6; } |
12545 |
if test $ac_cv_struct_tm = sys/time.h; then |
12546 |
|
12547 |
$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
12548 |
|
12549 |
fi |
12550 |
|
12551 |
|
12552 |
|
12553 |
for ac_prog in 'bison -y' byacc |
12554 |
do |
12555 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
12556 |
set dummy $ac_prog; ac_word=$2 |
12557 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12558 |
$as_echo_n "checking for $ac_word... " >&6; } |
12559 |
if ${ac_cv_prog_YACC+:} false; then : |
12560 |
$as_echo_n "(cached) " >&6 |
12561 |
else |
12562 |
if test -n "$YACC"; then |
12563 |
ac_cv_prog_YACC="$YACC" # Let the user override the test. |
12564 |
else |
12565 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12566 |
for as_dir in $PATH |
12567 |
do |
12568 |
IFS=$as_save_IFS |
12569 |
test -z "$as_dir" && as_dir=. |
12570 |
for ac_exec_ext in '' $ac_executable_extensions; do |
12571 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
12572 |
ac_cv_prog_YACC="$ac_prog" |
12573 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
12574 |
break 2 |
12575 |
fi |
12576 |
done |
12577 |
done |
12578 |
IFS=$as_save_IFS |
12579 |
|
12580 |
fi |
12581 |
fi |
12582 |
YACC=$ac_cv_prog_YACC |
12583 |
if test -n "$YACC"; then |
12584 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
12585 |
$as_echo "$YACC" >&6; } |
12586 |
else |
12587 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12588 |
$as_echo "no" >&6; } |
12589 |
fi |
12590 |
|
12591 |
|
12592 |
test -n "$YACC" && break |
12593 |
done |
12594 |
test -n "$YACC" || YACC="yacc" |
12595 |
|
12596 |
|
12597 |
for ac_prog in flex lex |
12598 |
do |
12599 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
12600 |
set dummy $ac_prog; ac_word=$2 |
12601 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12602 |
$as_echo_n "checking for $ac_word... " >&6; } |
12603 |
if ${ac_cv_prog_LEX+:} false; then : |
12604 |
$as_echo_n "(cached) " >&6 |
12605 |
else |
12606 |
if test -n "$LEX"; then |
12607 |
ac_cv_prog_LEX="$LEX" # Let the user override the test. |
12608 |
else |
12609 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12610 |
for as_dir in $PATH |
12611 |
do |
12612 |
IFS=$as_save_IFS |
12613 |
test -z "$as_dir" && as_dir=. |
12614 |
for ac_exec_ext in '' $ac_executable_extensions; do |
12615 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
12616 |
ac_cv_prog_LEX="$ac_prog" |
12617 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
12618 |
break 2 |
12619 |
fi |
12620 |
done |
12621 |
done |
12622 |
IFS=$as_save_IFS |
12623 |
|
12624 |
fi |
12625 |
fi |
12626 |
LEX=$ac_cv_prog_LEX |
12627 |
if test -n "$LEX"; then |
12628 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
12629 |
$as_echo "$LEX" >&6; } |
12630 |
else |
12631 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12632 |
$as_echo "no" >&6; } |
12633 |
fi |
12634 |
|
12635 |
|
12636 |
test -n "$LEX" && break |
12637 |
done |
12638 |
test -n "$LEX" || LEX=":" |
12639 |
|
12640 |
if test "x$LEX" != "x:"; then |
12641 |
cat >conftest.l <<_ACEOF |
12642 |
%% |
12643 |
a { ECHO; } |
12644 |
b { REJECT; } |
12645 |
c { yymore (); } |
12646 |
d { yyless (1); } |
12647 |
e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ |
12648 |
yyless ((input () != 0)); } |
12649 |
f { unput (yytext[0]); } |
12650 |
. { BEGIN INITIAL; } |
12651 |
%% |
12652 |
#ifdef YYTEXT_POINTER |
12653 |
extern char *yytext; |
12654 |
#endif |
12655 |
int |
12656 |
main (void) |
12657 |
{ |
12658 |
return ! yylex () + ! yywrap (); |
12659 |
} |
12660 |
_ACEOF |
12661 |
{ { ac_try="$LEX conftest.l" |
12662 |
case "(($ac_try" in |
12663 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
12664 |
*) ac_try_echo=$ac_try;; |
12665 |
esac |
12666 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
12667 |
$as_echo "$ac_try_echo"; } >&5 |
12668 |
(eval "$LEX conftest.l") 2>&5 |
12669 |
ac_status=$? |
12670 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12671 |
test $ac_status = 0; } |
12672 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 |
12673 |
$as_echo_n "checking lex output file root... " >&6; } |
12674 |
if ${ac_cv_prog_lex_root+:} false; then : |
12675 |
$as_echo_n "(cached) " >&6 |
12676 |
else |
12677 |
|
12678 |
if test -f lex.yy.c; then |
12679 |
ac_cv_prog_lex_root=lex.yy |
12680 |
elif test -f lexyy.c; then |
12681 |
ac_cv_prog_lex_root=lexyy |
12682 |
else |
12683 |
as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 |
12684 |
fi |
12685 |
fi |
12686 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 |
12687 |
$as_echo "$ac_cv_prog_lex_root" >&6; } |
12688 |
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
12689 |
|
12690 |
if test -z "${LEXLIB+set}"; then |
12691 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 |
12692 |
$as_echo_n "checking lex library... " >&6; } |
12693 |
if ${ac_cv_lib_lex+:} false; then : |
12694 |
$as_echo_n "(cached) " >&6 |
12695 |
else |
12696 |
|
12697 |
ac_save_LIBS=$LIBS |
12698 |
ac_cv_lib_lex='none needed' |
12699 |
for ac_lib in '' -lfl -ll; do |
12700 |
LIBS="$ac_lib $ac_save_LIBS" |
12701 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12702 |
/* end confdefs.h. */ |
12703 |
`cat $LEX_OUTPUT_ROOT.c` |
12704 |
_ACEOF |
12705 |
if ac_fn_c_try_link "$LINENO"; then : |
12706 |
ac_cv_lib_lex=$ac_lib |
12707 |
fi |
12708 |
rm -f core conftest.err conftest.$ac_objext \ |
12709 |
conftest$ac_exeext conftest.$ac_ext |
12710 |
test "$ac_cv_lib_lex" != 'none needed' && break |
12711 |
done |
12712 |
LIBS=$ac_save_LIBS |
12713 |
|
12714 |
fi |
12715 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
12716 |
$as_echo "$ac_cv_lib_lex" >&6; } |
12717 |
test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex |
12718 |
fi |
12719 |
|
12720 |
|
12721 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 |
12722 |
$as_echo_n "checking whether yytext is a pointer... " >&6; } |
12723 |
if ${ac_cv_prog_lex_yytext_pointer+:} false; then : |
12724 |
$as_echo_n "(cached) " >&6 |
12725 |
else |
12726 |
# POSIX says lex can declare yytext either as a pointer or an array; the |
12727 |
# default is implementation-dependent. Figure out which it is, since |
12728 |
# not all implementations provide the %pointer and %array declarations. |
12729 |
ac_cv_prog_lex_yytext_pointer=no |
12730 |
ac_save_LIBS=$LIBS |
12731 |
LIBS="$LEXLIB $ac_save_LIBS" |
12732 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12733 |
/* end confdefs.h. */ |
12734 |
|
12735 |
#define YYTEXT_POINTER 1 |
12736 |
`cat $LEX_OUTPUT_ROOT.c` |
12737 |
_ACEOF |
12738 |
if ac_fn_c_try_link "$LINENO"; then : |
12739 |
ac_cv_prog_lex_yytext_pointer=yes |
12740 |
fi |
12741 |
rm -f core conftest.err conftest.$ac_objext \ |
12742 |
conftest$ac_exeext conftest.$ac_ext |
12743 |
LIBS=$ac_save_LIBS |
12744 |
|
12745 |
fi |
12746 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
12747 |
$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } |
12748 |
if test $ac_cv_prog_lex_yytext_pointer = yes; then |
12749 |
|
12750 |
$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
12751 |
|
12752 |
fi |
12753 |
rm -f conftest.l $LEX_OUTPUT_ROOT.c |
12754 |
|
12755 |
fi |
12756 |
if test "$LEX" = :; then |
12757 |
LEX=${am_missing_run}flex |
12758 |
fi |
12759 |
|
12760 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 |
12761 |
$as_echo_n "checking for library containing socket... " >&6; } |
12762 |
if ${ac_cv_search_socket+:} false; then : |
12763 |
$as_echo_n "(cached) " >&6 |
12764 |
else |
12765 |
ac_func_search_save_LIBS=$LIBS |
12766 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12767 |
/* end confdefs.h. */ |
12768 |
|
12769 |
/* Override any GCC internal prototype to avoid an error. |
12770 |
Use char because int might match the return type of a GCC |
12771 |
builtin and then its argument prototype would still apply. */ |
12772 |
#ifdef __cplusplus |
12773 |
extern "C" |
12774 |
#endif |
12775 |
char socket (); |
12776 |
int |
12777 |
main () |
12778 |
{ |
12779 |
return socket (); |
12780 |
; |
12781 |
return 0; |
12782 |
} |
12783 |
_ACEOF |
12784 |
for ac_lib in '' socket; do |
12785 |
if test -z "$ac_lib"; then |
12786 |
ac_res="none required" |
12787 |
else |
12788 |
ac_res=-l$ac_lib |
12789 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
12790 |
fi |
12791 |
if ac_fn_c_try_link "$LINENO"; then : |
12792 |
ac_cv_search_socket=$ac_res |
12793 |
fi |
12794 |
rm -f core conftest.err conftest.$ac_objext \ |
12795 |
conftest$ac_exeext |
12796 |
if ${ac_cv_search_socket+:} false; then : |
12797 |
break |
12798 |
fi |
12799 |
done |
12800 |
if ${ac_cv_search_socket+:} false; then : |
12801 |
|
12802 |
else |
12803 |
ac_cv_search_socket=no |
12804 |
fi |
12805 |
rm conftest.$ac_ext |
12806 |
LIBS=$ac_func_search_save_LIBS |
12807 |
fi |
12808 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 |
12809 |
$as_echo "$ac_cv_search_socket" >&6; } |
12810 |
ac_res=$ac_cv_search_socket |
12811 |
if test "$ac_res" != no; then : |
12812 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
12813 |
|
12814 |
else |
12815 |
as_fn_error $? "socket library not found" "$LINENO" 5 |
12816 |
fi |
12817 |
|
12818 |
ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" |
12819 |
if test "x$ac_cv_func_getaddrinfo" = xyes; then : |
12820 |
|
12821 |
else |
12822 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5 |
12823 |
$as_echo_n "checking for library containing getaddrinfo... " >&6; } |
12824 |
if ${ac_cv_search_getaddrinfo+:} false; then : |
12825 |
$as_echo_n "(cached) " >&6 |
12826 |
else |
12827 |
ac_func_search_save_LIBS=$LIBS |
12828 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12829 |
/* end confdefs.h. */ |
12830 |
|
12831 |
/* Override any GCC internal prototype to avoid an error. |
12832 |
Use char because int might match the return type of a GCC |
12833 |
builtin and then its argument prototype would still apply. */ |
12834 |
#ifdef __cplusplus |
12835 |
extern "C" |
12836 |
#endif |
12837 |
char getaddrinfo (); |
12838 |
int |
12839 |
main () |
12840 |
{ |
12841 |
return getaddrinfo (); |
12842 |
; |
12843 |
return 0; |
12844 |
} |
12845 |
_ACEOF |
12846 |
for ac_lib in '' nsl; do |
12847 |
if test -z "$ac_lib"; then |
12848 |
ac_res="none required" |
12849 |
else |
12850 |
ac_res=-l$ac_lib |
12851 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
12852 |
fi |
12853 |
if ac_fn_c_try_link "$LINENO"; then : |
12854 |
ac_cv_search_getaddrinfo=$ac_res |
12855 |
fi |
12856 |
rm -f core conftest.err conftest.$ac_objext \ |
12857 |
conftest$ac_exeext |
12858 |
if ${ac_cv_search_getaddrinfo+:} false; then : |
12859 |
break |
12860 |
fi |
12861 |
done |
12862 |
if ${ac_cv_search_getaddrinfo+:} false; then : |
12863 |
|
12864 |
else |
12865 |
ac_cv_search_getaddrinfo=no |
12866 |
fi |
12867 |
rm conftest.$ac_ext |
12868 |
LIBS=$ac_func_search_save_LIBS |
12869 |
fi |
12870 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5 |
12871 |
$as_echo "$ac_cv_search_getaddrinfo" >&6; } |
12872 |
ac_res=$ac_cv_search_getaddrinfo |
12873 |
if test "$ac_res" != no; then : |
12874 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
12875 |
|
12876 |
fi |
12877 |
|
12878 |
fi |
12879 |
|
12880 |
ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" |
12881 |
if test "x$ac_cv_func_getnameinfo" = xyes; then : |
12882 |
|
12883 |
else |
12884 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5 |
12885 |
$as_echo_n "checking for library containing getnameinfo... " >&6; } |
12886 |
if ${ac_cv_search_getnameinfo+:} false; then : |
12887 |
$as_echo_n "(cached) " >&6 |
12888 |
else |
12889 |
ac_func_search_save_LIBS=$LIBS |
12890 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12891 |
/* end confdefs.h. */ |
12892 |
|
12893 |
/* Override any GCC internal prototype to avoid an error. |
12894 |
Use char because int might match the return type of a GCC |
12895 |
builtin and then its argument prototype would still apply. */ |
12896 |
#ifdef __cplusplus |
12897 |
extern "C" |
12898 |
#endif |
12899 |
char getnameinfo (); |
12900 |
int |
12901 |
main () |
12902 |
{ |
12903 |
return getnameinfo (); |
12904 |
; |
12905 |
return 0; |
12906 |
} |
12907 |
_ACEOF |
12908 |
for ac_lib in '' nsl; do |
12909 |
if test -z "$ac_lib"; then |
12910 |
ac_res="none required" |
12911 |
else |
12912 |
ac_res=-l$ac_lib |
12913 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
12914 |
fi |
12915 |
if ac_fn_c_try_link "$LINENO"; then : |
12916 |
ac_cv_search_getnameinfo=$ac_res |
12917 |
fi |
12918 |
rm -f core conftest.err conftest.$ac_objext \ |
12919 |
conftest$ac_exeext |
12920 |
if ${ac_cv_search_getnameinfo+:} false; then : |
12921 |
break |
12922 |
fi |
12923 |
done |
12924 |
if ${ac_cv_search_getnameinfo+:} false; then : |
12925 |
|
12926 |
else |
12927 |
ac_cv_search_getnameinfo=no |
12928 |
fi |
12929 |
rm conftest.$ac_ext |
12930 |
LIBS=$ac_func_search_save_LIBS |
12931 |
fi |
12932 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5 |
12933 |
$as_echo "$ac_cv_search_getnameinfo" >&6; } |
12934 |
ac_res=$ac_cv_search_getnameinfo |
12935 |
if test "$ac_res" != no; then : |
12936 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
12937 |
|
12938 |
fi |
12939 |
|
12940 |
fi |
12941 |
|
12942 |
|
12943 |
for ac_func in strlcpy strlcat inet_aton inet_pton socket strdup strstr |
12944 |
do : |
12945 |
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
12946 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
12947 |
if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
12948 |
cat >>confdefs.h <<_ACEOF |
12949 |
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
12950 |
_ACEOF |
12951 |
|
12952 |
fi |
12953 |
done |
12954 |
|
12955 |
|
12956 |
for ac_func in gethostbyname |
12957 |
do : |
12958 |
ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
12959 |
if test "x$ac_cv_func_gethostbyname" = xyes; then : |
12960 |
cat >>confdefs.h <<_ACEOF |
12961 |
#define HAVE_GETHOSTBYNAME 1 |
12962 |
_ACEOF |
12963 |
|
12964 |
fi |
12965 |
done |
12966 |
|
12967 |
|
12968 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
12969 |
$as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
12970 |
if ${ac_cv_c_bigendian+:} false; then : |
12971 |
$as_echo_n "(cached) " >&6 |
12972 |
else |
12973 |
ac_cv_c_bigendian=unknown |
12974 |
# See if we're dealing with a universal compiler. |
12975 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12976 |
/* end confdefs.h. */ |
12977 |
#ifndef __APPLE_CC__ |
12978 |
not a universal capable compiler |
12979 |
#endif |
12980 |
typedef int dummy; |
12981 |
|
12982 |
_ACEOF |
12983 |
if ac_fn_c_try_compile "$LINENO"; then : |
12984 |
|
12985 |
# Check for potential -arch flags. It is not universal unless |
12986 |
# there are at least two -arch flags with different values. |
12987 |
ac_arch= |
12988 |
ac_prev= |
12989 |
for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
12990 |
if test -n "$ac_prev"; then |
12991 |
case $ac_word in |
12992 |
i?86 | x86_64 | ppc | ppc64) |
12993 |
if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
12994 |
ac_arch=$ac_word |
12995 |
else |
12996 |
ac_cv_c_bigendian=universal |
12997 |
break |
12998 |
fi |
12999 |
;; |
13000 |
esac |
13001 |
ac_prev= |
13002 |
elif test "x$ac_word" = "x-arch"; then |
13003 |
ac_prev=arch |
13004 |
fi |
13005 |
done |
13006 |
fi |
13007 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13008 |
if test $ac_cv_c_bigendian = unknown; then |
13009 |
# See if sys/param.h defines the BYTE_ORDER macro. |
13010 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13011 |
/* end confdefs.h. */ |
13012 |
#include <sys/types.h> |
13013 |
#include <sys/param.h> |
13014 |
|
13015 |
int |
13016 |
main () |
13017 |
{ |
13018 |
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
13019 |
&& defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
13020 |
&& LITTLE_ENDIAN) |
13021 |
bogus endian macros |
13022 |
#endif |
13023 |
|
13024 |
; |
13025 |
return 0; |
13026 |
} |
13027 |
_ACEOF |
13028 |
if ac_fn_c_try_compile "$LINENO"; then : |
13029 |
# It does; now see whether it defined to BIG_ENDIAN or not. |
13030 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13031 |
/* end confdefs.h. */ |
13032 |
#include <sys/types.h> |
13033 |
#include <sys/param.h> |
13034 |
|
13035 |
int |
13036 |
main () |
13037 |
{ |
13038 |
#if BYTE_ORDER != BIG_ENDIAN |
13039 |
not big endian |
13040 |
#endif |
13041 |
|
13042 |
; |
13043 |
return 0; |
13044 |
} |
13045 |
_ACEOF |
13046 |
if ac_fn_c_try_compile "$LINENO"; then : |
13047 |
ac_cv_c_bigendian=yes |
13048 |
else |
13049 |
ac_cv_c_bigendian=no |
13050 |
fi |
13051 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13052 |
fi |
13053 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13054 |
fi |
13055 |
if test $ac_cv_c_bigendian = unknown; then |
13056 |
# See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
13057 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13058 |
/* end confdefs.h. */ |
13059 |
#include <limits.h> |
13060 |
|
13061 |
int |
13062 |
main () |
13063 |
{ |
13064 |
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
13065 |
bogus endian macros |
13066 |
#endif |
13067 |
|
13068 |
; |
13069 |
return 0; |
13070 |
} |
13071 |
_ACEOF |
13072 |
if ac_fn_c_try_compile "$LINENO"; then : |
13073 |
# It does; now see whether it defined to _BIG_ENDIAN or not. |
13074 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13075 |
/* end confdefs.h. */ |
13076 |
#include <limits.h> |
13077 |
|
13078 |
int |
13079 |
main () |
13080 |
{ |
13081 |
#ifndef _BIG_ENDIAN |
13082 |
not big endian |
13083 |
#endif |
13084 |
|
13085 |
; |
13086 |
return 0; |
13087 |
} |
13088 |
_ACEOF |
13089 |
if ac_fn_c_try_compile "$LINENO"; then : |
13090 |
ac_cv_c_bigendian=yes |
13091 |
else |
13092 |
ac_cv_c_bigendian=no |
13093 |
fi |
13094 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13095 |
fi |
13096 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13097 |
fi |
13098 |
if test $ac_cv_c_bigendian = unknown; then |
13099 |
# Compile a test program. |
13100 |
if test "$cross_compiling" = yes; then : |
13101 |
# Try to guess by grepping values from an object file. |
13102 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13103 |
/* end confdefs.h. */ |
13104 |
short int ascii_mm[] = |
13105 |
{ 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
13106 |
short int ascii_ii[] = |
13107 |
{ 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
13108 |
int use_ascii (int i) { |
13109 |
return ascii_mm[i] + ascii_ii[i]; |
13110 |
} |
13111 |
short int ebcdic_ii[] = |
13112 |
{ 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
13113 |
short int ebcdic_mm[] = |
13114 |
{ 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
13115 |
int use_ebcdic (int i) { |
13116 |
return ebcdic_mm[i] + ebcdic_ii[i]; |
13117 |
} |
13118 |
extern int foo; |
13119 |
|
13120 |
int |
13121 |
main () |
13122 |
{ |
13123 |
return use_ascii (foo) == use_ebcdic (foo); |
13124 |
; |
13125 |
return 0; |
13126 |
} |
13127 |
_ACEOF |
13128 |
if ac_fn_c_try_compile "$LINENO"; then : |
13129 |
if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
13130 |
ac_cv_c_bigendian=yes |
13131 |
fi |
13132 |
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
13133 |
if test "$ac_cv_c_bigendian" = unknown; then |
13134 |
ac_cv_c_bigendian=no |
13135 |
else |
13136 |
# finding both strings is unlikely to happen, but who knows? |
13137 |
ac_cv_c_bigendian=unknown |
13138 |
fi |
13139 |
fi |
13140 |
fi |
13141 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13142 |
else |
13143 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
13144 |
/* end confdefs.h. */ |
13145 |
$ac_includes_default |
13146 |
int |
13147 |
main () |
13148 |
{ |
13149 |
|
13150 |
/* Are we little or big endian? From Harbison&Steele. */ |
13151 |
union |
13152 |
{ |
13153 |
long int l; |
13154 |
char c[sizeof (long int)]; |
13155 |
} u; |
13156 |
u.l = 1; |
13157 |
return u.c[sizeof (long int) - 1] == 1; |
13158 |
|
13159 |
; |
13160 |
return 0; |
13161 |
} |
13162 |
_ACEOF |
13163 |
if ac_fn_c_try_run "$LINENO"; then : |
13164 |
ac_cv_c_bigendian=no |
13165 |
else |
13166 |
ac_cv_c_bigendian=yes |
13167 |
fi |
13168 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
13169 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
13170 |
fi |
13171 |
|
13172 |
fi |
13173 |
fi |
13174 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
13175 |
$as_echo "$ac_cv_c_bigendian" >&6; } |
13176 |
case $ac_cv_c_bigendian in #( |
13177 |
yes) |
13178 |
$as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
13179 |
;; #( |
13180 |
no) |
13181 |
;; #( |
13182 |
universal) |
13183 |
|
13184 |
$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
13185 |
|
13186 |
;; #( |
13187 |
*) |
13188 |
as_fn_error $? "unknown endianness |
13189 |
presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
13190 |
esac |
13191 |
|
13192 |
|
13193 |
# The cast to long int works around a bug in the HP C Compiler |
13194 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
13195 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
13196 |
# This bug is HP SR number 8606223364. |
13197 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
13198 |
$as_echo_n "checking size of int... " >&6; } |
13199 |
if ${ac_cv_sizeof_int+:} false; then : |
13200 |
$as_echo_n "(cached) " >&6 |
13201 |
else |
13202 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : |
13203 |
|
13204 |
else |
13205 |
if test "$ac_cv_type_int" = yes; then |
13206 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
13207 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
13208 |
as_fn_error 77 "cannot compute sizeof (int) |
13209 |
See \`config.log' for more details" "$LINENO" 5; } |
13210 |
else |
13211 |
ac_cv_sizeof_int=0 |
13212 |
fi |
13213 |
fi |
13214 |
|
13215 |
fi |
13216 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
13217 |
$as_echo "$ac_cv_sizeof_int" >&6; } |
13218 |
|
13219 |
|
13220 |
|
13221 |
cat >>confdefs.h <<_ACEOF |
13222 |
#define SIZEOF_INT $ac_cv_sizeof_int |
13223 |
_ACEOF |
13224 |
|
13225 |
|
13226 |
# The cast to long int works around a bug in the HP C Compiler |
13227 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
13228 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
13229 |
# This bug is HP SR number 8606223364. |
13230 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 |
13231 |
$as_echo_n "checking size of short... " >&6; } |
13232 |
if ${ac_cv_sizeof_short+:} false; then : |
13233 |
$as_echo_n "(cached) " >&6 |
13234 |
else |
13235 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : |
13236 |
|
13237 |
else |
13238 |
if test "$ac_cv_type_short" = yes; then |
13239 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
13240 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
13241 |
as_fn_error 77 "cannot compute sizeof (short) |
13242 |
See \`config.log' for more details" "$LINENO" 5; } |
13243 |
else |
13244 |
ac_cv_sizeof_short=0 |
13245 |
fi |
13246 |
fi |
13247 |
|
13248 |
fi |
13249 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
13250 |
$as_echo "$ac_cv_sizeof_short" >&6; } |
13251 |
|
13252 |
|
13253 |
|
13254 |
cat >>confdefs.h <<_ACEOF |
13255 |
#define SIZEOF_SHORT $ac_cv_sizeof_short |
13256 |
_ACEOF |
13257 |
|
13258 |
|
13259 |
# The cast to long int works around a bug in the HP C Compiler |
13260 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
13261 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
13262 |
# This bug is HP SR number 8606223364. |
13263 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
13264 |
$as_echo_n "checking size of long... " >&6; } |
13265 |
if ${ac_cv_sizeof_long+:} false; then : |
13266 |
$as_echo_n "(cached) " >&6 |
13267 |
else |
13268 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
13269 |
|
13270 |
else |
13271 |
if test "$ac_cv_type_long" = yes; then |
13272 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
13273 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
13274 |
as_fn_error 77 "cannot compute sizeof (long) |
13275 |
See \`config.log' for more details" "$LINENO" 5; } |
13276 |
else |
13277 |
ac_cv_sizeof_long=0 |
13278 |
fi |
13279 |
fi |
13280 |
|
13281 |
fi |
13282 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
13283 |
$as_echo "$ac_cv_sizeof_long" >&6; } |
13284 |
|
13285 |
|
13286 |
|
13287 |
cat >>confdefs.h <<_ACEOF |
13288 |
#define SIZEOF_LONG $ac_cv_sizeof_long |
13289 |
_ACEOF |
13290 |
|
13291 |
|
13292 |
|
13293 |
|
13294 |
|
13295 |
|
13296 |
|
13297 |
|
13298 |
subdirs="$subdirs src/libopm" |
13299 |
|
13300 |
|
13301 |
ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile" |
13302 |
|
13303 |
cat >confcache <<\_ACEOF |
13304 |
# This file is a shell script that caches the results of configure |
13305 |
# tests run on this system so they can be shared between configure |
13306 |
# scripts and configure runs, see configure's option --config-cache. |
13307 |
# It is not useful on other systems. If it contains results you don't |
13308 |
# want to keep, you may remove or edit it. |
13309 |
# |
13310 |
# config.status only pays attention to the cache file if you give it |
13311 |
# the --recheck option to rerun configure. |
13312 |
# |
13313 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
13314 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
13315 |
# following values. |
13316 |
|
13317 |
_ACEOF |
13318 |
|
13319 |
# The following way of writing the cache mishandles newlines in values, |
13320 |
# but we know of no workaround that is simple, portable, and efficient. |
13321 |
# So, we kill variables containing newlines. |
13322 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
13323 |
# and sets the high bit in the cache file unless we assign to the vars. |
13324 |
( |
13325 |
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
13326 |
eval ac_val=\$$ac_var |
13327 |
case $ac_val in #( |
13328 |
*${as_nl}*) |
13329 |
case $ac_var in #( |
13330 |
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
13331 |
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
13332 |
esac |
13333 |
case $ac_var in #( |
13334 |
_ | IFS | as_nl) ;; #( |
13335 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
13336 |
*) { eval $ac_var=; unset $ac_var;} ;; |
13337 |
esac ;; |
13338 |
esac |
13339 |
done |
13340 |
|
13341 |
(set) 2>&1 | |
13342 |
case $as_nl`(ac_space=' '; set) 2>&1` in #( |
13343 |
*${as_nl}ac_space=\ *) |
13344 |
# `set' does not quote correctly, so add quotes: double-quote |
13345 |
# substitution turns \\\\ into \\, and sed turns \\ into \. |
13346 |
sed -n \ |
13347 |
"s/'/'\\\\''/g; |
13348 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
13349 |
;; #( |
13350 |
*) |
13351 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
13352 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
13353 |
;; |
13354 |
esac | |
13355 |
sort |
13356 |
) | |
13357 |
sed ' |
13358 |
/^ac_cv_env_/b end |
13359 |
t clear |
13360 |
:clear |
13361 |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
13362 |
t end |
13363 |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
13364 |
:end' >>confcache |
13365 |
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
13366 |
if test -w "$cache_file"; then |
13367 |
if test "x$cache_file" != "x/dev/null"; then |
13368 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
13369 |
$as_echo "$as_me: updating cache $cache_file" >&6;} |
13370 |
if test ! -f "$cache_file" || test -h "$cache_file"; then |
13371 |
cat confcache >"$cache_file" |
13372 |
else |
13373 |
case $cache_file in #( |
13374 |
*/* | ?:*) |
13375 |
mv -f confcache "$cache_file"$$ && |
13376 |
mv -f "$cache_file"$$ "$cache_file" ;; #( |
13377 |
*) |
13378 |
mv -f confcache "$cache_file" ;; |
13379 |
esac |
13380 |
fi |
13381 |
fi |
13382 |
else |
13383 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
13384 |
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
13385 |
fi |
13386 |
fi |
13387 |
rm -f confcache |
13388 |
|
13389 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
13390 |
# Let make expand exec_prefix. |
13391 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
13392 |
|
13393 |
DEFS=-DHAVE_CONFIG_H |
13394 |
|
13395 |
ac_libobjs= |
13396 |
ac_ltlibobjs= |
13397 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
13398 |
# 1. Remove the extension, and $U if already installed. |
13399 |
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
13400 |
ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
13401 |
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
13402 |
# will be set to the directory where LIBOBJS objects are built. |
13403 |
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
13404 |
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
13405 |
done |
13406 |
LIBOBJS=$ac_libobjs |
13407 |
|
13408 |
LTLIBOBJS=$ac_ltlibobjs |
13409 |
|
13410 |
|
13411 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
13412 |
$as_echo_n "checking that generated files are newer than configure... " >&6; } |
13413 |
if test -n "$am_sleep_pid"; then |
13414 |
# Hide warnings about reused PIDs. |
13415 |
wait $am_sleep_pid 2>/dev/null |
13416 |
fi |
13417 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
13418 |
$as_echo "done" >&6; } |
13419 |
if test -n "$EXEEXT"; then |
13420 |
am__EXEEXT_TRUE= |
13421 |
am__EXEEXT_FALSE='#' |
13422 |
else |
13423 |
am__EXEEXT_TRUE='#' |
13424 |
am__EXEEXT_FALSE= |
13425 |
fi |
13426 |
|
13427 |
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
13428 |
as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
13429 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
13430 |
fi |
13431 |
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
13432 |
as_fn_error $? "conditional \"AMDEP\" was never defined. |
13433 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
13434 |
fi |
13435 |
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
13436 |
as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
13437 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
13438 |
fi |
13439 |
|
13440 |
|
13441 |
: "${CONFIG_STATUS=./config.status}" |
13442 |
ac_write_fail=0 |
13443 |
ac_clean_files_save=$ac_clean_files |
13444 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
13445 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
13446 |
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
13447 |
as_write_fail=0 |
13448 |
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
13449 |
#! $SHELL |
13450 |
# Generated by $as_me. |
13451 |
# Run this file to recreate the current configuration. |
13452 |
# Compiler output produced by configure, useful for debugging |
13453 |
# configure, is in config.log if it exists. |
13454 |
|
13455 |
debug=false |
13456 |
ac_cs_recheck=false |
13457 |
ac_cs_silent=false |
13458 |
|
13459 |
SHELL=\${CONFIG_SHELL-$SHELL} |
13460 |
export SHELL |
13461 |
_ASEOF |
13462 |
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
13463 |
## -------------------- ## |
13464 |
## M4sh Initialization. ## |
13465 |
## -------------------- ## |
13466 |
|
13467 |
# Be more Bourne compatible |
13468 |
DUALCASE=1; export DUALCASE # for MKS sh |
13469 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
13470 |
emulate sh |
13471 |
NULLCMD=: |
13472 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
13473 |
# is contrary to our usage. Disable this feature. |
13474 |
alias -g '${1+"$@"}'='"$@"' |
13475 |
setopt NO_GLOB_SUBST |
13476 |
else |
13477 |
case `(set -o) 2>/dev/null` in #( |
13478 |
*posix*) : |
13479 |
set -o posix ;; #( |
13480 |
*) : |
13481 |
;; |
13482 |
esac |
13483 |
fi |
13484 |
|
13485 |
|
13486 |
as_nl=' |
13487 |
' |
13488 |
export as_nl |
13489 |
# Printing a long string crashes Solaris 7 /usr/bin/printf. |
13490 |
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
13491 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
13492 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
13493 |
# Prefer a ksh shell builtin over an external printf program on Solaris, |
13494 |
# but without wasting forks for bash or zsh. |
13495 |
if test -z "$BASH_VERSION$ZSH_VERSION" \ |
13496 |
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
13497 |
as_echo='print -r --' |
13498 |
as_echo_n='print -rn --' |
13499 |
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
13500 |
as_echo='printf %s\n' |
13501 |
as_echo_n='printf %s' |
13502 |
else |
13503 |
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
13504 |
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
13505 |
as_echo_n='/usr/ucb/echo -n' |
13506 |
else |
13507 |
as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
13508 |
as_echo_n_body='eval |
13509 |
arg=$1; |
13510 |
case $arg in #( |
13511 |
*"$as_nl"*) |
13512 |
expr "X$arg" : "X\\(.*\\)$as_nl"; |
13513 |
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
13514 |
esac; |
13515 |
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
13516 |
' |
13517 |
export as_echo_n_body |
13518 |
as_echo_n='sh -c $as_echo_n_body as_echo' |
13519 |
fi |
13520 |
export as_echo_body |
13521 |
as_echo='sh -c $as_echo_body as_echo' |
13522 |
fi |
13523 |
|
13524 |
# The user is always right. |
13525 |
if test "${PATH_SEPARATOR+set}" != set; then |
13526 |
PATH_SEPARATOR=: |
13527 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
13528 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
13529 |
PATH_SEPARATOR=';' |
13530 |
} |
13531 |
fi |
13532 |
|
13533 |
|
13534 |
# IFS |
13535 |
# We need space, tab and new line, in precisely that order. Quoting is |
13536 |
# there to prevent editors from complaining about space-tab. |
13537 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
13538 |
# splitting by setting IFS to empty value.) |
13539 |
IFS=" "" $as_nl" |
13540 |
|
13541 |
# Find who we are. Look in the path if we contain no directory separator. |
13542 |
as_myself= |
13543 |
case $0 in #(( |
13544 |
*[\\/]* ) as_myself=$0 ;; |
13545 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13546 |
for as_dir in $PATH |
13547 |
do |
13548 |
IFS=$as_save_IFS |
13549 |
test -z "$as_dir" && as_dir=. |
13550 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
13551 |
done |
13552 |
IFS=$as_save_IFS |
13553 |
|
13554 |
;; |
13555 |
esac |
13556 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
13557 |
# in which case we are not to be found in the path. |
13558 |
if test "x$as_myself" = x; then |
13559 |
as_myself=$0 |
13560 |
fi |
13561 |
if test ! -f "$as_myself"; then |
13562 |
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
13563 |
exit 1 |
13564 |
fi |
13565 |
|
13566 |
# Unset variables that we do not need and which cause bugs (e.g. in |
13567 |
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
13568 |
# suppresses any "Segmentation fault" message there. '((' could |
13569 |
# trigger a bug in pdksh 5.2.14. |
13570 |
for as_var in BASH_ENV ENV MAIL MAILPATH |
13571 |
do eval test x\${$as_var+set} = xset \ |
13572 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
13573 |
done |
13574 |
PS1='$ ' |
13575 |
PS2='> ' |
13576 |
PS4='+ ' |
13577 |
|
13578 |
# NLS nuisances. |
13579 |
LC_ALL=C |
13580 |
export LC_ALL |
13581 |
LANGUAGE=C |
13582 |
export LANGUAGE |
13583 |
|
13584 |
# CDPATH. |
13585 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
13586 |
|
13587 |
|
13588 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
13589 |
# ---------------------------------------- |
13590 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
13591 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
13592 |
# script with STATUS, using 1 if that was 0. |
13593 |
as_fn_error () |
13594 |
{ |
13595 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
13596 |
if test "$4"; then |
13597 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
13598 |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
13599 |
fi |
13600 |
$as_echo "$as_me: error: $2" >&2 |
13601 |
as_fn_exit $as_status |
13602 |
} # as_fn_error |
13603 |
|
13604 |
|
13605 |
# as_fn_set_status STATUS |
13606 |
# ----------------------- |
13607 |
# Set $? to STATUS, without forking. |
13608 |
as_fn_set_status () |
13609 |
{ |
13610 |
return $1 |
13611 |
} # as_fn_set_status |
13612 |
|
13613 |
# as_fn_exit STATUS |
13614 |
# ----------------- |
13615 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
13616 |
as_fn_exit () |
13617 |
{ |
13618 |
set +e |
13619 |
as_fn_set_status $1 |
13620 |
exit $1 |
13621 |
} # as_fn_exit |
13622 |
|
13623 |
# as_fn_unset VAR |
13624 |
# --------------- |
13625 |
# Portably unset VAR. |
13626 |
as_fn_unset () |
13627 |
{ |
13628 |
{ eval $1=; unset $1;} |
13629 |
} |
13630 |
as_unset=as_fn_unset |
13631 |
# as_fn_append VAR VALUE |
13632 |
# ---------------------- |
13633 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
13634 |
# advantage of any shell optimizations that allow amortized linear growth over |
13635 |
# repeated appends, instead of the typical quadratic growth present in naive |
13636 |
# implementations. |
13637 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
13638 |
eval 'as_fn_append () |
13639 |
{ |
13640 |
eval $1+=\$2 |
13641 |
}' |
13642 |
else |
13643 |
as_fn_append () |
13644 |
{ |
13645 |
eval $1=\$$1\$2 |
13646 |
} |
13647 |
fi # as_fn_append |
13648 |
|
13649 |
# as_fn_arith ARG... |
13650 |
# ------------------ |
13651 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
13652 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
13653 |
# must be portable across $(()) and expr. |
13654 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
13655 |
eval 'as_fn_arith () |
13656 |
{ |
13657 |
as_val=$(( $* )) |
13658 |
}' |
13659 |
else |
13660 |
as_fn_arith () |
13661 |
{ |
13662 |
as_val=`expr "$@" || test $? -eq 1` |
13663 |
} |
13664 |
fi # as_fn_arith |
13665 |
|
13666 |
|
13667 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
13668 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
13669 |
as_expr=expr |
13670 |
else |
13671 |
as_expr=false |
13672 |
fi |
13673 |
|
13674 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
13675 |
as_basename=basename |
13676 |
else |
13677 |
as_basename=false |
13678 |
fi |
13679 |
|
13680 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
13681 |
as_dirname=dirname |
13682 |
else |
13683 |
as_dirname=false |
13684 |
fi |
13685 |
|
13686 |
as_me=`$as_basename -- "$0" || |
13687 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
13688 |
X"$0" : 'X\(//\)$' \| \ |
13689 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
13690 |
$as_echo X/"$0" | |
13691 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
13692 |
s//\1/ |
13693 |
q |
13694 |
} |
13695 |
/^X\/\(\/\/\)$/{ |
13696 |
s//\1/ |
13697 |
q |
13698 |
} |
13699 |
/^X\/\(\/\).*/{ |
13700 |
s//\1/ |
13701 |
q |
13702 |
} |
13703 |
s/.*/./; q'` |
13704 |
|
13705 |
# Avoid depending upon Character Ranges. |
13706 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
13707 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
13708 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
13709 |
as_cr_digits='0123456789' |
13710 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
13711 |
|
13712 |
ECHO_C= ECHO_N= ECHO_T= |
13713 |
case `echo -n x` in #((((( |
13714 |
-n*) |
13715 |
case `echo 'xy\c'` in |
13716 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
13717 |
xy) ECHO_C='\c';; |
13718 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
13719 |
ECHO_T=' ';; |
13720 |
esac;; |
13721 |
*) |
13722 |
ECHO_N='-n';; |
13723 |
esac |
13724 |
|
13725 |
rm -f conf$$ conf$$.exe conf$$.file |
13726 |
if test -d conf$$.dir; then |
13727 |
rm -f conf$$.dir/conf$$.file |
13728 |
else |
13729 |
rm -f conf$$.dir |
13730 |
mkdir conf$$.dir 2>/dev/null |
13731 |
fi |
13732 |
if (echo >conf$$.file) 2>/dev/null; then |
13733 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
13734 |
as_ln_s='ln -s' |
13735 |
# ... but there are two gotchas: |
13736 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
13737 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
13738 |
# In both cases, we have to default to `cp -pR'. |
13739 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
13740 |
as_ln_s='cp -pR' |
13741 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
13742 |
as_ln_s=ln |
13743 |
else |
13744 |
as_ln_s='cp -pR' |
13745 |
fi |
13746 |
else |
13747 |
as_ln_s='cp -pR' |
13748 |
fi |
13749 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
13750 |
rmdir conf$$.dir 2>/dev/null |
13751 |
|
13752 |
|
13753 |
# as_fn_mkdir_p |
13754 |
# ------------- |
13755 |
# Create "$as_dir" as a directory, including parents if necessary. |
13756 |
as_fn_mkdir_p () |
13757 |
{ |
13758 |
|
13759 |
case $as_dir in #( |
13760 |
-*) as_dir=./$as_dir;; |
13761 |
esac |
13762 |
test -d "$as_dir" || eval $as_mkdir_p || { |
13763 |
as_dirs= |
13764 |
while :; do |
13765 |
case $as_dir in #( |
13766 |
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
13767 |
*) as_qdir=$as_dir;; |
13768 |
esac |
13769 |
as_dirs="'$as_qdir' $as_dirs" |
13770 |
as_dir=`$as_dirname -- "$as_dir" || |
13771 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
13772 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
13773 |
X"$as_dir" : 'X\(//\)$' \| \ |
13774 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
13775 |
$as_echo X"$as_dir" | |
13776 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
13777 |
s//\1/ |
13778 |
q |
13779 |
} |
13780 |
/^X\(\/\/\)[^/].*/{ |
13781 |
s//\1/ |
13782 |
q |
13783 |
} |
13784 |
/^X\(\/\/\)$/{ |
13785 |
s//\1/ |
13786 |
q |
13787 |
} |
13788 |
/^X\(\/\).*/{ |
13789 |
s//\1/ |
13790 |
q |
13791 |
} |
13792 |
s/.*/./; q'` |
13793 |
test -d "$as_dir" && break |
13794 |
done |
13795 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
13796 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
13797 |
|
13798 |
|
13799 |
} # as_fn_mkdir_p |
13800 |
if mkdir -p . 2>/dev/null; then |
13801 |
as_mkdir_p='mkdir -p "$as_dir"' |
13802 |
else |
13803 |
test -d ./-p && rmdir ./-p |
13804 |
as_mkdir_p=false |
13805 |
fi |
13806 |
|
13807 |
|
13808 |
# as_fn_executable_p FILE |
13809 |
# ----------------------- |
13810 |
# Test if FILE is an executable regular file. |
13811 |
as_fn_executable_p () |
13812 |
{ |
13813 |
test -f "$1" && test -x "$1" |
13814 |
} # as_fn_executable_p |
13815 |
as_test_x='test -x' |
13816 |
as_executable_p=as_fn_executable_p |
13817 |
|
13818 |
# Sed expression to map a string onto a valid CPP name. |
13819 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
13820 |
|
13821 |
# Sed expression to map a string onto a valid variable name. |
13822 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
13823 |
|
13824 |
|
13825 |
exec 6>&1 |
13826 |
## ----------------------------------- ## |
13827 |
## Main body of $CONFIG_STATUS script. ## |
13828 |
## ----------------------------------- ## |
13829 |
_ASEOF |
13830 |
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
13831 |
|
13832 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13833 |
# Save the log message, to keep $0 and so on meaningful, and to |
13834 |
# report actual input values of CONFIG_FILES etc. instead of their |
13835 |
# values after options handling. |
13836 |
ac_log=" |
13837 |
This file was extended by hopm $as_me 1.0.0beta1, which was |
13838 |
generated by GNU Autoconf 2.69. Invocation command line was |
13839 |
|
13840 |
CONFIG_FILES = $CONFIG_FILES |
13841 |
CONFIG_HEADERS = $CONFIG_HEADERS |
13842 |
CONFIG_LINKS = $CONFIG_LINKS |
13843 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
13844 |
$ $0 $@ |
13845 |
|
13846 |
on `(hostname || uname -n) 2>/dev/null | sed 1q` |
13847 |
" |
13848 |
|
13849 |
_ACEOF |
13850 |
|
13851 |
case $ac_config_files in *" |
13852 |
"*) set x $ac_config_files; shift; ac_config_files=$*;; |
13853 |
esac |
13854 |
|
13855 |
case $ac_config_headers in *" |
13856 |
"*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
13857 |
esac |
13858 |
|
13859 |
|
13860 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13861 |
# Files that config.status was made for. |
13862 |
config_files="$ac_config_files" |
13863 |
config_headers="$ac_config_headers" |
13864 |
config_commands="$ac_config_commands" |
13865 |
|
13866 |
_ACEOF |
13867 |
|
13868 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13869 |
ac_cs_usage="\ |
13870 |
\`$as_me' instantiates files and other configuration actions |
13871 |
from templates according to the current configuration. Unless the files |
13872 |
and actions are specified as TAGs, all are instantiated by default. |
13873 |
|
13874 |
Usage: $0 [OPTION]... [TAG]... |
13875 |
|
13876 |
-h, --help print this help, then exit |
13877 |
-V, --version print version number and configuration settings, then exit |
13878 |
--config print configuration, then exit |
13879 |
-q, --quiet, --silent |
13880 |
do not print progress messages |
13881 |
-d, --debug don't remove temporary files |
13882 |
--recheck update $as_me by reconfiguring in the same conditions |
13883 |
--file=FILE[:TEMPLATE] |
13884 |
instantiate the configuration file FILE |
13885 |
--header=FILE[:TEMPLATE] |
13886 |
instantiate the configuration header FILE |
13887 |
|
13888 |
Configuration files: |
13889 |
$config_files |
13890 |
|
13891 |
Configuration headers: |
13892 |
$config_headers |
13893 |
|
13894 |
Configuration commands: |
13895 |
$config_commands |
13896 |
|
13897 |
Report bugs to the package provider." |
13898 |
|
13899 |
_ACEOF |
13900 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13901 |
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
13902 |
ac_cs_version="\\ |
13903 |
hopm config.status 1.0.0beta1 |
13904 |
configured by $0, generated by GNU Autoconf 2.69, |
13905 |
with options \\"\$ac_cs_config\\" |
13906 |
|
13907 |
Copyright (C) 2012 Free Software Foundation, Inc. |
13908 |
This config.status script is free software; the Free Software Foundation |
13909 |
gives unlimited permission to copy, distribute and modify it." |
13910 |
|
13911 |
ac_pwd='$ac_pwd' |
13912 |
srcdir='$srcdir' |
13913 |
INSTALL='$INSTALL' |
13914 |
MKDIR_P='$MKDIR_P' |
13915 |
AWK='$AWK' |
13916 |
test -n "\$AWK" || AWK=awk |
13917 |
_ACEOF |
13918 |
|
13919 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13920 |
# The default lists apply if the user does not specify any file. |
13921 |
ac_need_defaults=: |
13922 |
while test $# != 0 |
13923 |
do |
13924 |
case $1 in |
13925 |
--*=?*) |
13926 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
13927 |
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
13928 |
ac_shift=: |
13929 |
;; |
13930 |
--*=) |
13931 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
13932 |
ac_optarg= |
13933 |
ac_shift=: |
13934 |
;; |
13935 |
*) |
13936 |
ac_option=$1 |
13937 |
ac_optarg=$2 |
13938 |
ac_shift=shift |
13939 |
;; |
13940 |
esac |
13941 |
|
13942 |
case $ac_option in |
13943 |
# Handling of the options. |
13944 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
13945 |
ac_cs_recheck=: ;; |
13946 |
--version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
13947 |
$as_echo "$ac_cs_version"; exit ;; |
13948 |
--config | --confi | --conf | --con | --co | --c ) |
13949 |
$as_echo "$ac_cs_config"; exit ;; |
13950 |
--debug | --debu | --deb | --de | --d | -d ) |
13951 |
debug=: ;; |
13952 |
--file | --fil | --fi | --f ) |
13953 |
$ac_shift |
13954 |
case $ac_optarg in |
13955 |
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
13956 |
'') as_fn_error $? "missing file argument" ;; |
13957 |
esac |
13958 |
as_fn_append CONFIG_FILES " '$ac_optarg'" |
13959 |
ac_need_defaults=false;; |
13960 |
--header | --heade | --head | --hea ) |
13961 |
$ac_shift |
13962 |
case $ac_optarg in |
13963 |
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
13964 |
esac |
13965 |
as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
13966 |
ac_need_defaults=false;; |
13967 |
--he | --h) |
13968 |
# Conflict between --help and --header |
13969 |
as_fn_error $? "ambiguous option: \`$1' |
13970 |
Try \`$0 --help' for more information.";; |
13971 |
--help | --hel | -h ) |
13972 |
$as_echo "$ac_cs_usage"; exit ;; |
13973 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
13974 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
13975 |
ac_cs_silent=: ;; |
13976 |
|
13977 |
# This is an error. |
13978 |
-*) as_fn_error $? "unrecognized option: \`$1' |
13979 |
Try \`$0 --help' for more information." ;; |
13980 |
|
13981 |
*) as_fn_append ac_config_targets " $1" |
13982 |
ac_need_defaults=false ;; |
13983 |
|
13984 |
esac |
13985 |
shift |
13986 |
done |
13987 |
|
13988 |
ac_configure_extra_args= |
13989 |
|
13990 |
if $ac_cs_silent; then |
13991 |
exec 6>/dev/null |
13992 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
13993 |
fi |
13994 |
|
13995 |
_ACEOF |
13996 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13997 |
if \$ac_cs_recheck; then |
13998 |
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
13999 |
shift |
14000 |
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
14001 |
CONFIG_SHELL='$SHELL' |
14002 |
export CONFIG_SHELL |
14003 |
exec "\$@" |
14004 |
fi |
14005 |
|
14006 |
_ACEOF |
14007 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14008 |
exec 5>>config.log |
14009 |
{ |
14010 |
echo |
14011 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
14012 |
## Running $as_me. ## |
14013 |
_ASBOX |
14014 |
$as_echo "$ac_log" |
14015 |
} >&5 |
14016 |
|
14017 |
_ACEOF |
14018 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14019 |
# |
14020 |
# INIT-COMMANDS |
14021 |
# |
14022 |
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
14023 |
|
14024 |
|
14025 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
14026 |
# if CDPATH is set. |
14027 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
14028 |
|
14029 |
sed_quote_subst='$sed_quote_subst' |
14030 |
double_quote_subst='$double_quote_subst' |
14031 |
delay_variable_subst='$delay_variable_subst' |
14032 |
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
14033 |
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' |
14034 |
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
14035 |
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
14036 |
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
14037 |
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
14038 |
shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' |
14039 |
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
14040 |
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
14041 |
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
14042 |
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
14043 |
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' |
14044 |
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' |
14045 |
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' |
14046 |
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' |
14047 |
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' |
14048 |
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
14049 |
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' |
14050 |
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' |
14051 |
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' |
14052 |
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' |
14053 |
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' |
14054 |
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
14055 |
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' |
14056 |
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' |
14057 |
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' |
14058 |
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' |
14059 |
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' |
14060 |
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' |
14061 |
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' |
14062 |
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' |
14063 |
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' |
14064 |
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
14065 |
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' |
14066 |
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' |
14067 |
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' |
14068 |
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' |
14069 |
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' |
14070 |
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' |
14071 |
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' |
14072 |
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' |
14073 |
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
14074 |
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' |
14075 |
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' |
14076 |
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
14077 |
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' |
14078 |
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
14079 |
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
14080 |
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' |
14081 |
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' |
14082 |
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' |
14083 |
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' |
14084 |
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' |
14085 |
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
14086 |
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' |
14087 |
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
14088 |
lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' |
14089 |
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
14090 |
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"`' |
14091 |
lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' |
14092 |
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
14093 |
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' |
14094 |
lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' |
14095 |
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
14096 |
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
14097 |
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' |
14098 |
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
14099 |
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
14100 |
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
14101 |
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' |
14102 |
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' |
14103 |
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' |
14104 |
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
14105 |
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' |
14106 |
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' |
14107 |
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' |
14108 |
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' |
14109 |
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' |
14110 |
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' |
14111 |
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
14112 |
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' |
14113 |
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' |
14114 |
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' |
14115 |
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' |
14116 |
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' |
14117 |
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' |
14118 |
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
14119 |
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' |
14120 |
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
14121 |
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' |
14122 |
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
14123 |
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' |
14124 |
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' |
14125 |
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' |
14126 |
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' |
14127 |
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
14128 |
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' |
14129 |
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' |
14130 |
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' |
14131 |
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' |
14132 |
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' |
14133 |
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' |
14134 |
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' |
14135 |
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
14136 |
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' |
14137 |
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' |
14138 |
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' |
14139 |
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' |
14140 |
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' |
14141 |
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
14142 |
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' |
14143 |
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' |
14144 |
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' |
14145 |
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' |
14146 |
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' |
14147 |
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' |
14148 |
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' |
14149 |
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' |
14150 |
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' |
14151 |
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' |
14152 |
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' |
14153 |
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
14154 |
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
14155 |
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' |
14156 |
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
14157 |
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' |
14158 |
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' |
14159 |
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' |
14160 |
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
14161 |
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
14162 |
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' |
14163 |
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' |
14164 |
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' |
14165 |
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' |
14166 |
|
14167 |
LTCC='$LTCC' |
14168 |
LTCFLAGS='$LTCFLAGS' |
14169 |
compiler='$compiler_DEFAULT' |
14170 |
|
14171 |
# A function that is used when there is no print builtin or printf. |
14172 |
func_fallback_echo () |
14173 |
{ |
14174 |
eval 'cat <<_LTECHO_EOF |
14175 |
\$1 |
14176 |
_LTECHO_EOF' |
14177 |
} |
14178 |
|
14179 |
# Quote evaled strings. |
14180 |
for var in SHELL \ |
14181 |
ECHO \ |
14182 |
PATH_SEPARATOR \ |
14183 |
SED \ |
14184 |
GREP \ |
14185 |
EGREP \ |
14186 |
FGREP \ |
14187 |
LD \ |
14188 |
NM \ |
14189 |
LN_S \ |
14190 |
lt_SP2NL \ |
14191 |
lt_NL2SP \ |
14192 |
reload_flag \ |
14193 |
OBJDUMP \ |
14194 |
deplibs_check_method \ |
14195 |
file_magic_cmd \ |
14196 |
file_magic_glob \ |
14197 |
want_nocaseglob \ |
14198 |
DLLTOOL \ |
14199 |
sharedlib_from_linklib_cmd \ |
14200 |
AR \ |
14201 |
AR_FLAGS \ |
14202 |
archiver_list_spec \ |
14203 |
STRIP \ |
14204 |
RANLIB \ |
14205 |
CC \ |
14206 |
CFLAGS \ |
14207 |
compiler \ |
14208 |
lt_cv_sys_global_symbol_pipe \ |
14209 |
lt_cv_sys_global_symbol_to_cdecl \ |
14210 |
lt_cv_sys_global_symbol_to_import \ |
14211 |
lt_cv_sys_global_symbol_to_c_name_address \ |
14212 |
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
14213 |
lt_cv_nm_interface \ |
14214 |
nm_file_list_spec \ |
14215 |
lt_cv_truncate_bin \ |
14216 |
lt_prog_compiler_no_builtin_flag \ |
14217 |
lt_prog_compiler_pic \ |
14218 |
lt_prog_compiler_wl \ |
14219 |
lt_prog_compiler_static \ |
14220 |
lt_cv_prog_compiler_c_o \ |
14221 |
need_locks \ |
14222 |
MANIFEST_TOOL \ |
14223 |
DSYMUTIL \ |
14224 |
NMEDIT \ |
14225 |
LIPO \ |
14226 |
OTOOL \ |
14227 |
OTOOL64 \ |
14228 |
shrext_cmds \ |
14229 |
export_dynamic_flag_spec \ |
14230 |
whole_archive_flag_spec \ |
14231 |
compiler_needs_object \ |
14232 |
with_gnu_ld \ |
14233 |
allow_undefined_flag \ |
14234 |
no_undefined_flag \ |
14235 |
hardcode_libdir_flag_spec \ |
14236 |
hardcode_libdir_separator \ |
14237 |
exclude_expsyms \ |
14238 |
include_expsyms \ |
14239 |
file_list_spec \ |
14240 |
variables_saved_for_relink \ |
14241 |
libname_spec \ |
14242 |
library_names_spec \ |
14243 |
soname_spec \ |
14244 |
install_override_mode \ |
14245 |
finish_eval \ |
14246 |
old_striplib \ |
14247 |
striplib; do |
14248 |
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
14249 |
*[\\\\\\\`\\"\\\$]*) |
14250 |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
14251 |
;; |
14252 |
*) |
14253 |
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
14254 |
;; |
14255 |
esac |
14256 |
done |
14257 |
|
14258 |
# Double-quote double-evaled strings. |
14259 |
for var in reload_cmds \ |
14260 |
old_postinstall_cmds \ |
14261 |
old_postuninstall_cmds \ |
14262 |
old_archive_cmds \ |
14263 |
extract_expsyms_cmds \ |
14264 |
old_archive_from_new_cmds \ |
14265 |
old_archive_from_expsyms_cmds \ |
14266 |
archive_cmds \ |
14267 |
archive_expsym_cmds \ |
14268 |
module_cmds \ |
14269 |
module_expsym_cmds \ |
14270 |
export_symbols_cmds \ |
14271 |
prelink_cmds \ |
14272 |
postlink_cmds \ |
14273 |
postinstall_cmds \ |
14274 |
postuninstall_cmds \ |
14275 |
finish_cmds \ |
14276 |
sys_lib_search_path_spec \ |
14277 |
sys_lib_dlsearch_path_spec; do |
14278 |
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
14279 |
*[\\\\\\\`\\"\\\$]*) |
14280 |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
14281 |
;; |
14282 |
*) |
14283 |
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
14284 |
;; |
14285 |
esac |
14286 |
done |
14287 |
|
14288 |
ac_aux_dir='$ac_aux_dir' |
14289 |
|
14290 |
# See if we are running on zsh, and set the options that allow our |
14291 |
# commands through without removal of \ escapes INIT. |
14292 |
if test -n "\${ZSH_VERSION+set}"; then |
14293 |
setopt NO_GLOB_SUBST |
14294 |
fi |
14295 |
|
14296 |
|
14297 |
PACKAGE='$PACKAGE' |
14298 |
VERSION='$VERSION' |
14299 |
RM='$RM' |
14300 |
ofile='$ofile' |
14301 |
|
14302 |
|
14303 |
|
14304 |
|
14305 |
_ACEOF |
14306 |
|
14307 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14308 |
|
14309 |
# Handling of arguments. |
14310 |
for ac_config_target in $ac_config_targets |
14311 |
do |
14312 |
case $ac_config_target in |
14313 |
"src/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS src/setup.h" ;; |
14314 |
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
14315 |
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
14316 |
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
14317 |
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
14318 |
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
14319 |
|
14320 |
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
14321 |
esac |
14322 |
done |
14323 |
|
14324 |
|
14325 |
# If the user did not use the arguments to specify the items to instantiate, |
14326 |
# then the envvar interface is used. Set only those that are not. |
14327 |
# We use the long form for the default assignment because of an extremely |
14328 |
# bizarre bug on SunOS 4.1.3. |
14329 |
if $ac_need_defaults; then |
14330 |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
14331 |
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
14332 |
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
14333 |
fi |
14334 |
|
14335 |
# Have a temporary directory for convenience. Make it in the build tree |
14336 |
# simply because there is no reason against having it here, and in addition, |
14337 |
# creating and moving files from /tmp can sometimes cause problems. |
14338 |
# Hook for its removal unless debugging. |
14339 |
# Note that there is a small window in which the directory will not be cleaned: |
14340 |
# after its creation but before its name has been assigned to `$tmp'. |
14341 |
$debug || |
14342 |
{ |
14343 |
tmp= ac_tmp= |
14344 |
trap 'exit_status=$? |
14345 |
: "${ac_tmp:=$tmp}" |
14346 |
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
14347 |
' 0 |
14348 |
trap 'as_fn_exit 1' 1 2 13 15 |
14349 |
} |
14350 |
# Create a (secure) tmp directory for tmp files. |
14351 |
|
14352 |
{ |
14353 |
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
14354 |
test -d "$tmp" |
14355 |
} || |
14356 |
{ |
14357 |
tmp=./conf$$-$RANDOM |
14358 |
(umask 077 && mkdir "$tmp") |
14359 |
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
14360 |
ac_tmp=$tmp |
14361 |
|
14362 |
# Set up the scripts for CONFIG_FILES section. |
14363 |
# No need to generate them if there are no CONFIG_FILES. |
14364 |
# This happens for instance with `./config.status config.h'. |
14365 |
if test -n "$CONFIG_FILES"; then |
14366 |
|
14367 |
|
14368 |
ac_cr=`echo X | tr X '\015'` |
14369 |
# On cygwin, bash can eat \r inside `` if the user requested igncr. |
14370 |
# But we know of no other shell where ac_cr would be empty at this |
14371 |
# point, so we can use a bashism as a fallback. |
14372 |
if test "x$ac_cr" = x; then |
14373 |
eval ac_cr=\$\'\\r\' |
14374 |
fi |
14375 |
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
14376 |
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
14377 |
ac_cs_awk_cr='\\r' |
14378 |
else |
14379 |
ac_cs_awk_cr=$ac_cr |
14380 |
fi |
14381 |
|
14382 |
echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
14383 |
_ACEOF |
14384 |
|
14385 |
|
14386 |
{ |
14387 |
echo "cat >conf$$subs.awk <<_ACEOF" && |
14388 |
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
14389 |
echo "_ACEOF" |
14390 |
} >conf$$subs.sh || |
14391 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
14392 |
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
14393 |
ac_delim='%!_!# ' |
14394 |
for ac_last_try in false false false false false :; do |
14395 |
. ./conf$$subs.sh || |
14396 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
14397 |
|
14398 |
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
14399 |
if test $ac_delim_n = $ac_delim_num; then |
14400 |
break |
14401 |
elif $ac_last_try; then |
14402 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
14403 |
else |
14404 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
14405 |
fi |
14406 |
done |
14407 |
rm -f conf$$subs.sh |
14408 |
|
14409 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14410 |
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
14411 |
_ACEOF |
14412 |
sed -n ' |
14413 |
h |
14414 |
s/^/S["/; s/!.*/"]=/ |
14415 |
p |
14416 |
g |
14417 |
s/^[^!]*!// |
14418 |
:repl |
14419 |
t repl |
14420 |
s/'"$ac_delim"'$// |
14421 |
t delim |
14422 |
:nl |
14423 |
h |
14424 |
s/\(.\{148\}\)..*/\1/ |
14425 |
t more1 |
14426 |
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
14427 |
p |
14428 |
n |
14429 |
b repl |
14430 |
:more1 |
14431 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
14432 |
p |
14433 |
g |
14434 |
s/.\{148\}// |
14435 |
t nl |
14436 |
:delim |
14437 |
h |
14438 |
s/\(.\{148\}\)..*/\1/ |
14439 |
t more2 |
14440 |
s/["\\]/\\&/g; s/^/"/; s/$/"/ |
14441 |
p |
14442 |
b |
14443 |
:more2 |
14444 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
14445 |
p |
14446 |
g |
14447 |
s/.\{148\}// |
14448 |
t delim |
14449 |
' <conf$$subs.awk | sed ' |
14450 |
/^[^""]/{ |
14451 |
N |
14452 |
s/\n// |
14453 |
} |
14454 |
' >>$CONFIG_STATUS || ac_write_fail=1 |
14455 |
rm -f conf$$subs.awk |
14456 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14457 |
_ACAWK |
14458 |
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
14459 |
for (key in S) S_is_set[key] = 1 |
14460 |
FS = "" |
14461 |
|
14462 |
} |
14463 |
{ |
14464 |
line = $ 0 |
14465 |
nfields = split(line, field, "@") |
14466 |
substed = 0 |
14467 |
len = length(field[1]) |
14468 |
for (i = 2; i < nfields; i++) { |
14469 |
key = field[i] |
14470 |
keylen = length(key) |
14471 |
if (S_is_set[key]) { |
14472 |
value = S[key] |
14473 |
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
14474 |
len += length(value) + length(field[++i]) |
14475 |
substed = 1 |
14476 |
} else |
14477 |
len += 1 + keylen |
14478 |
} |
14479 |
|
14480 |
print line |
14481 |
} |
14482 |
|
14483 |
_ACAWK |
14484 |
_ACEOF |
14485 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14486 |
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
14487 |
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
14488 |
else |
14489 |
cat |
14490 |
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
14491 |
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
14492 |
_ACEOF |
14493 |
|
14494 |
# VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
14495 |
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
14496 |
# trailing colons and then remove the whole line if VPATH becomes empty |
14497 |
# (actually we leave an empty line to preserve line numbers). |
14498 |
if test "x$srcdir" = x.; then |
14499 |
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
14500 |
h |
14501 |
s/// |
14502 |
s/^/:/ |
14503 |
s/[ ]*$/:/ |
14504 |
s/:\$(srcdir):/:/g |
14505 |
s/:\${srcdir}:/:/g |
14506 |
s/:@srcdir@:/:/g |
14507 |
s/^:*// |
14508 |
s/:*$// |
14509 |
x |
14510 |
s/\(=[ ]*\).*/\1/ |
14511 |
G |
14512 |
s/\n// |
14513 |
s/^[^=]*=[ ]*$// |
14514 |
}' |
14515 |
fi |
14516 |
|
14517 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14518 |
fi # test -n "$CONFIG_FILES" |
14519 |
|
14520 |
# Set up the scripts for CONFIG_HEADERS section. |
14521 |
# No need to generate them if there are no CONFIG_HEADERS. |
14522 |
# This happens for instance with `./config.status Makefile'. |
14523 |
if test -n "$CONFIG_HEADERS"; then |
14524 |
cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
14525 |
BEGIN { |
14526 |
_ACEOF |
14527 |
|
14528 |
# Transform confdefs.h into an awk script `defines.awk', embedded as |
14529 |
# here-document in config.status, that substitutes the proper values into |
14530 |
# config.h.in to produce config.h. |
14531 |
|
14532 |
# Create a delimiter string that does not exist in confdefs.h, to ease |
14533 |
# handling of long lines. |
14534 |
ac_delim='%!_!# ' |
14535 |
for ac_last_try in false false :; do |
14536 |
ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
14537 |
if test -z "$ac_tt"; then |
14538 |
break |
14539 |
elif $ac_last_try; then |
14540 |
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
14541 |
else |
14542 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
14543 |
fi |
14544 |
done |
14545 |
|
14546 |
# For the awk script, D is an array of macro values keyed by name, |
14547 |
# likewise P contains macro parameters if any. Preserve backslash |
14548 |
# newline sequences. |
14549 |
|
14550 |
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
14551 |
sed -n ' |
14552 |
s/.\{148\}/&'"$ac_delim"'/g |
14553 |
t rset |
14554 |
:rset |
14555 |
s/^[ ]*#[ ]*define[ ][ ]*/ / |
14556 |
t def |
14557 |
d |
14558 |
:def |
14559 |
s/\\$// |
14560 |
t bsnl |
14561 |
s/["\\]/\\&/g |
14562 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
14563 |
D["\1"]=" \3"/p |
14564 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
14565 |
d |
14566 |
:bsnl |
14567 |
s/["\\]/\\&/g |
14568 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
14569 |
D["\1"]=" \3\\\\\\n"\\/p |
14570 |
t cont |
14571 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
14572 |
t cont |
14573 |
d |
14574 |
:cont |
14575 |
n |
14576 |
s/.\{148\}/&'"$ac_delim"'/g |
14577 |
t clear |
14578 |
:clear |
14579 |
s/\\$// |
14580 |
t bsnlc |
14581 |
s/["\\]/\\&/g; s/^/"/; s/$/"/p |
14582 |
d |
14583 |
:bsnlc |
14584 |
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
14585 |
b cont |
14586 |
' <confdefs.h | sed ' |
14587 |
s/'"$ac_delim"'/"\\\ |
14588 |
"/g' >>$CONFIG_STATUS || ac_write_fail=1 |
14589 |
|
14590 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14591 |
for (key in D) D_is_set[key] = 1 |
14592 |
FS = "" |
14593 |
} |
14594 |
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
14595 |
line = \$ 0 |
14596 |
split(line, arg, " ") |
14597 |
if (arg[1] == "#") { |
14598 |
defundef = arg[2] |
14599 |
mac1 = arg[3] |
14600 |
} else { |
14601 |
defundef = substr(arg[1], 2) |
14602 |
mac1 = arg[2] |
14603 |
} |
14604 |
split(mac1, mac2, "(") #) |
14605 |
macro = mac2[1] |
14606 |
prefix = substr(line, 1, index(line, defundef) - 1) |
14607 |
if (D_is_set[macro]) { |
14608 |
# Preserve the white space surrounding the "#". |
14609 |
print prefix "define", macro P[macro] D[macro] |
14610 |
next |
14611 |
} else { |
14612 |
# Replace #undef with comments. This is necessary, for example, |
14613 |
# in the case of _POSIX_SOURCE, which is predefined and required |
14614 |
# on some systems where configure will not decide to define it. |
14615 |
if (defundef == "undef") { |
14616 |
print "/*", prefix defundef, macro, "*/" |
14617 |
next |
14618 |
} |
14619 |
} |
14620 |
} |
14621 |
{ print } |
14622 |
_ACAWK |
14623 |
_ACEOF |
14624 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14625 |
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
14626 |
fi # test -n "$CONFIG_HEADERS" |
14627 |
|
14628 |
|
14629 |
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
14630 |
shift |
14631 |
for ac_tag |
14632 |
do |
14633 |
case $ac_tag in |
14634 |
:[FHLC]) ac_mode=$ac_tag; continue;; |
14635 |
esac |
14636 |
case $ac_mode$ac_tag in |
14637 |
:[FHL]*:*);; |
14638 |
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
14639 |
:[FH]-) ac_tag=-:-;; |
14640 |
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
14641 |
esac |
14642 |
ac_save_IFS=$IFS |
14643 |
IFS=: |
14644 |
set x $ac_tag |
14645 |
IFS=$ac_save_IFS |
14646 |
shift |
14647 |
ac_file=$1 |
14648 |
shift |
14649 |
|
14650 |
case $ac_mode in |
14651 |
:L) ac_source=$1;; |
14652 |
:[FH]) |
14653 |
ac_file_inputs= |
14654 |
for ac_f |
14655 |
do |
14656 |
case $ac_f in |
14657 |
-) ac_f="$ac_tmp/stdin";; |
14658 |
*) # Look for the file first in the build tree, then in the source tree |
14659 |
# (if the path is not absolute). The absolute path cannot be DOS-style, |
14660 |
# because $ac_f cannot contain `:'. |
14661 |
test -f "$ac_f" || |
14662 |
case $ac_f in |
14663 |
[\\/$]*) false;; |
14664 |
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
14665 |
esac || |
14666 |
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
14667 |
esac |
14668 |
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
14669 |
as_fn_append ac_file_inputs " '$ac_f'" |
14670 |
done |
14671 |
|
14672 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
14673 |
# use $as_me), people would be surprised to read: |
14674 |
# /* config.h. Generated by config.status. */ |
14675 |
configure_input='Generated from '` |
14676 |
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
14677 |
`' by configure.' |
14678 |
if test x"$ac_file" != x-; then |
14679 |
configure_input="$ac_file. $configure_input" |
14680 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
14681 |
$as_echo "$as_me: creating $ac_file" >&6;} |
14682 |
fi |
14683 |
# Neutralize special characters interpreted by sed in replacement strings. |
14684 |
case $configure_input in #( |
14685 |
*\&* | *\|* | *\\* ) |
14686 |
ac_sed_conf_input=`$as_echo "$configure_input" | |
14687 |
sed 's/[\\\\&|]/\\\\&/g'`;; #( |
14688 |
*) ac_sed_conf_input=$configure_input;; |
14689 |
esac |
14690 |
|
14691 |
case $ac_tag in |
14692 |
*:-:* | *:-) cat >"$ac_tmp/stdin" \ |
14693 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
14694 |
esac |
14695 |
;; |
14696 |
esac |
14697 |
|
14698 |
ac_dir=`$as_dirname -- "$ac_file" || |
14699 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14700 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
14701 |
X"$ac_file" : 'X\(//\)$' \| \ |
14702 |
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
14703 |
$as_echo X"$ac_file" | |
14704 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
14705 |
s//\1/ |
14706 |
q |
14707 |
} |
14708 |
/^X\(\/\/\)[^/].*/{ |
14709 |
s//\1/ |
14710 |
q |
14711 |
} |
14712 |
/^X\(\/\/\)$/{ |
14713 |
s//\1/ |
14714 |
q |
14715 |
} |
14716 |
/^X\(\/\).*/{ |
14717 |
s//\1/ |
14718 |
q |
14719 |
} |
14720 |
s/.*/./; q'` |
14721 |
as_dir="$ac_dir"; as_fn_mkdir_p |
14722 |
ac_builddir=. |
14723 |
|
14724 |
case "$ac_dir" in |
14725 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
14726 |
*) |
14727 |
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
14728 |
# A ".." for each directory in $ac_dir_suffix. |
14729 |
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
14730 |
case $ac_top_builddir_sub in |
14731 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
14732 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
14733 |
esac ;; |
14734 |
esac |
14735 |
ac_abs_top_builddir=$ac_pwd |
14736 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
14737 |
# for backward compatibility: |
14738 |
ac_top_builddir=$ac_top_build_prefix |
14739 |
|
14740 |
case $srcdir in |
14741 |
.) # We are building in place. |
14742 |
ac_srcdir=. |
14743 |
ac_top_srcdir=$ac_top_builddir_sub |
14744 |
ac_abs_top_srcdir=$ac_pwd ;; |
14745 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
14746 |
ac_srcdir=$srcdir$ac_dir_suffix; |
14747 |
ac_top_srcdir=$srcdir |
14748 |
ac_abs_top_srcdir=$srcdir ;; |
14749 |
*) # Relative name. |
14750 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
14751 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
14752 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
14753 |
esac |
14754 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
14755 |
|
14756 |
|
14757 |
case $ac_mode in |
14758 |
:F) |
14759 |
# |
14760 |
# CONFIG_FILE |
14761 |
# |
14762 |
|
14763 |
case $INSTALL in |
14764 |
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
14765 |
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
14766 |
esac |
14767 |
ac_MKDIR_P=$MKDIR_P |
14768 |
case $MKDIR_P in |
14769 |
[\\/$]* | ?:[\\/]* ) ;; |
14770 |
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
14771 |
esac |
14772 |
_ACEOF |
14773 |
|
14774 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14775 |
# If the template does not know about datarootdir, expand it. |
14776 |
# FIXME: This hack should be removed a few years after 2.60. |
14777 |
ac_datarootdir_hack=; ac_datarootdir_seen= |
14778 |
ac_sed_dataroot=' |
14779 |
/datarootdir/ { |
14780 |
p |
14781 |
q |
14782 |
} |
14783 |
/@datadir@/p |
14784 |
/@docdir@/p |
14785 |
/@infodir@/p |
14786 |
/@localedir@/p |
14787 |
/@mandir@/p' |
14788 |
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
14789 |
*datarootdir*) ac_datarootdir_seen=yes;; |
14790 |
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
14791 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
14792 |
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
14793 |
_ACEOF |
14794 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14795 |
ac_datarootdir_hack=' |
14796 |
s&@datadir@&$datadir&g |
14797 |
s&@docdir@&$docdir&g |
14798 |
s&@infodir@&$infodir&g |
14799 |
s&@localedir@&$localedir&g |
14800 |
s&@mandir@&$mandir&g |
14801 |
s&\\\${datarootdir}&$datarootdir&g' ;; |
14802 |
esac |
14803 |
_ACEOF |
14804 |
|
14805 |
# Neutralize VPATH when `$srcdir' = `.'. |
14806 |
# Shell code in configure.ac might set extrasub. |
14807 |
# FIXME: do we really want to maintain this feature? |
14808 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14809 |
ac_sed_extra="$ac_vpsub |
14810 |
$extrasub |
14811 |
_ACEOF |
14812 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14813 |
:t |
14814 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
14815 |
s|@configure_input@|$ac_sed_conf_input|;t t |
14816 |
s&@top_builddir@&$ac_top_builddir_sub&;t t |
14817 |
s&@top_build_prefix@&$ac_top_build_prefix&;t t |
14818 |
s&@srcdir@&$ac_srcdir&;t t |
14819 |
s&@abs_srcdir@&$ac_abs_srcdir&;t t |
14820 |
s&@top_srcdir@&$ac_top_srcdir&;t t |
14821 |
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
14822 |
s&@builddir@&$ac_builddir&;t t |
14823 |
s&@abs_builddir@&$ac_abs_builddir&;t t |
14824 |
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
14825 |
s&@INSTALL@&$ac_INSTALL&;t t |
14826 |
s&@MKDIR_P@&$ac_MKDIR_P&;t t |
14827 |
$ac_datarootdir_hack |
14828 |
" |
14829 |
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
14830 |
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
14831 |
|
14832 |
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
14833 |
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
14834 |
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
14835 |
"$ac_tmp/out"`; test -z "$ac_out"; } && |
14836 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
14837 |
which seems to be undefined. Please make sure it is defined" >&5 |
14838 |
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
14839 |
which seems to be undefined. Please make sure it is defined" >&2;} |
14840 |
|
14841 |
rm -f "$ac_tmp/stdin" |
14842 |
case $ac_file in |
14843 |
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
14844 |
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
14845 |
esac \ |
14846 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
14847 |
;; |
14848 |
:H) |
14849 |
# |
14850 |
# CONFIG_HEADER |
14851 |
# |
14852 |
if test x"$ac_file" != x-; then |
14853 |
{ |
14854 |
$as_echo "/* $configure_input */" \ |
14855 |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
14856 |
} >"$ac_tmp/config.h" \ |
14857 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
14858 |
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
14859 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
14860 |
$as_echo "$as_me: $ac_file is unchanged" >&6;} |
14861 |
else |
14862 |
rm -f "$ac_file" |
14863 |
mv "$ac_tmp/config.h" "$ac_file" \ |
14864 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
14865 |
fi |
14866 |
else |
14867 |
$as_echo "/* $configure_input */" \ |
14868 |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
14869 |
|| as_fn_error $? "could not create -" "$LINENO" 5 |
14870 |
fi |
14871 |
# Compute "$ac_file"'s index in $config_headers. |
14872 |
_am_arg="$ac_file" |
14873 |
_am_stamp_count=1 |
14874 |
for _am_header in $config_headers :; do |
14875 |
case $_am_header in |
14876 |
$_am_arg | $_am_arg:* ) |
14877 |
break ;; |
14878 |
* ) |
14879 |
_am_stamp_count=`expr $_am_stamp_count + 1` ;; |
14880 |
esac |
14881 |
done |
14882 |
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
14883 |
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14884 |
X"$_am_arg" : 'X\(//\)[^/]' \| \ |
14885 |
X"$_am_arg" : 'X\(//\)$' \| \ |
14886 |
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
14887 |
$as_echo X"$_am_arg" | |
14888 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
14889 |
s//\1/ |
14890 |
q |
14891 |
} |
14892 |
/^X\(\/\/\)[^/].*/{ |
14893 |
s//\1/ |
14894 |
q |
14895 |
} |
14896 |
/^X\(\/\/\)$/{ |
14897 |
s//\1/ |
14898 |
q |
14899 |
} |
14900 |
/^X\(\/\).*/{ |
14901 |
s//\1/ |
14902 |
q |
14903 |
} |
14904 |
s/.*/./; q'`/stamp-h$_am_stamp_count |
14905 |
;; |
14906 |
|
14907 |
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
14908 |
$as_echo "$as_me: executing $ac_file commands" >&6;} |
14909 |
;; |
14910 |
esac |
14911 |
|
14912 |
|
14913 |
case $ac_file$ac_mode in |
14914 |
"depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
14915 |
# Older Autoconf quotes --file arguments for eval, but not when files |
14916 |
# are listed without --file. Let's play safe and only enable the eval |
14917 |
# if we detect the quoting. |
14918 |
case $CONFIG_FILES in |
14919 |
*\'*) eval set x "$CONFIG_FILES" ;; |
14920 |
*) set x $CONFIG_FILES ;; |
14921 |
esac |
14922 |
shift |
14923 |
for mf |
14924 |
do |
14925 |
# Strip MF so we end up with the name of the file. |
14926 |
mf=`echo "$mf" | sed -e 's/:.*$//'` |
14927 |
# Check whether this is an Automake generated Makefile or not. |
14928 |
# We used to match only the files named 'Makefile.in', but |
14929 |
# some people rename them; so instead we look at the file content. |
14930 |
# Grep'ing the first line is not enough: some people post-process |
14931 |
# each Makefile.in and add a new line on top of each file to say so. |
14932 |
# Grep'ing the whole file is not good either: AIX grep has a line |
14933 |
# limit of 2048, but all sed's we know have understand at least 4000. |
14934 |
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
14935 |
dirpart=`$as_dirname -- "$mf" || |
14936 |
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14937 |
X"$mf" : 'X\(//\)[^/]' \| \ |
14938 |
X"$mf" : 'X\(//\)$' \| \ |
14939 |
X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
14940 |
$as_echo X"$mf" | |
14941 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
14942 |
s//\1/ |
14943 |
q |
14944 |
} |
14945 |
/^X\(\/\/\)[^/].*/{ |
14946 |
s//\1/ |
14947 |
q |
14948 |
} |
14949 |
/^X\(\/\/\)$/{ |
14950 |
s//\1/ |
14951 |
q |
14952 |
} |
14953 |
/^X\(\/\).*/{ |
14954 |
s//\1/ |
14955 |
q |
14956 |
} |
14957 |
s/.*/./; q'` |
14958 |
else |
14959 |
continue |
14960 |
fi |
14961 |
# Extract the definition of DEPDIR, am__include, and am__quote |
14962 |
# from the Makefile without running 'make'. |
14963 |
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
14964 |
test -z "$DEPDIR" && continue |
14965 |
am__include=`sed -n 's/^am__include = //p' < "$mf"` |
14966 |
test -z "$am__include" && continue |
14967 |
am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
14968 |
# Find all dependency output files, they are included files with |
14969 |
# $(DEPDIR) in their names. We invoke sed twice because it is the |
14970 |
# simplest approach to changing $(DEPDIR) to its actual value in the |
14971 |
# expansion. |
14972 |
for file in `sed -n " |
14973 |
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
14974 |
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
14975 |
# Make sure the directory exists. |
14976 |
test -f "$dirpart/$file" && continue |
14977 |
fdir=`$as_dirname -- "$file" || |
14978 |
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14979 |
X"$file" : 'X\(//\)[^/]' \| \ |
14980 |
X"$file" : 'X\(//\)$' \| \ |
14981 |
X"$file" : 'X\(/\)' \| . 2>/dev/null || |
14982 |
$as_echo X"$file" | |
14983 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
14984 |
s//\1/ |
14985 |
q |
14986 |
} |
14987 |
/^X\(\/\/\)[^/].*/{ |
14988 |
s//\1/ |
14989 |
q |
14990 |
} |
14991 |
/^X\(\/\/\)$/{ |
14992 |
s//\1/ |
14993 |
q |
14994 |
} |
14995 |
/^X\(\/\).*/{ |
14996 |
s//\1/ |
14997 |
q |
14998 |
} |
14999 |
s/.*/./; q'` |
15000 |
as_dir=$dirpart/$fdir; as_fn_mkdir_p |
15001 |
# echo "creating $dirpart/$file" |
15002 |
echo '# dummy' > "$dirpart/$file" |
15003 |
done |
15004 |
done |
15005 |
} |
15006 |
;; |
15007 |
"libtool":C) |
15008 |
|
15009 |
# See if we are running on zsh, and set the options that allow our |
15010 |
# commands through without removal of \ escapes. |
15011 |
if test -n "${ZSH_VERSION+set}"; then |
15012 |
setopt NO_GLOB_SUBST |
15013 |
fi |
15014 |
|
15015 |
cfgfile=${ofile}T |
15016 |
trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
15017 |
$RM "$cfgfile" |
15018 |
|
15019 |
cat <<_LT_EOF >> "$cfgfile" |
15020 |
#! $SHELL |
15021 |
# Generated automatically by $as_me ($PACKAGE) $VERSION |
15022 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
15023 |
# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
15024 |
|
15025 |
# Provide generalized library-building support services. |
15026 |
# Written by Gordon Matzigkeit, 1996 |
15027 |
|
15028 |
# Copyright (C) 2014 Free Software Foundation, Inc. |
15029 |
# This is free software; see the source for copying conditions. There is NO |
15030 |
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
15031 |
|
15032 |
# GNU Libtool is free software; you can redistribute it and/or modify |
15033 |
# it under the terms of the GNU General Public License as published by |
15034 |
# the Free Software Foundation; either version 2 of of the License, or |
15035 |
# (at your option) any later version. |
15036 |
# |
15037 |
# As a special exception to the GNU General Public License, if you |
15038 |
# distribute this file as part of a program or library that is built |
15039 |
# using GNU Libtool, you may include this file under the same |
15040 |
# distribution terms that you use for the rest of that program. |
15041 |
# |
15042 |
# GNU Libtool is distributed in the hope that it will be useful, but |
15043 |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
15044 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15045 |
# GNU General Public License for more details. |
15046 |
# |
15047 |
# You should have received a copy of the GNU General Public License |
15048 |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
15049 |
|
15050 |
|
15051 |
# The names of the tagged configurations supported by this script. |
15052 |
available_tags='' |
15053 |
|
15054 |
# ### BEGIN LIBTOOL CONFIG |
15055 |
|
15056 |
# Which release of libtool.m4 was used? |
15057 |
macro_version=$macro_version |
15058 |
macro_revision=$macro_revision |
15059 |
|
15060 |
# Whether or not to build shared libraries. |
15061 |
build_libtool_libs=$enable_shared |
15062 |
|
15063 |
# Whether or not to build static libraries. |
15064 |
build_old_libs=$enable_static |
15065 |
|
15066 |
# What type of objects to build. |
15067 |
pic_mode=$pic_mode |
15068 |
|
15069 |
# Whether or not to optimize for fast installation. |
15070 |
fast_install=$enable_fast_install |
15071 |
|
15072 |
# Shared archive member basename,for filename based shared library versioning on AIX. |
15073 |
shared_archive_member_spec=$shared_archive_member_spec |
15074 |
|
15075 |
# Shell to use when invoking shell scripts. |
15076 |
SHELL=$lt_SHELL |
15077 |
|
15078 |
# An echo program that protects backslashes. |
15079 |
ECHO=$lt_ECHO |
15080 |
|
15081 |
# The PATH separator for the build system. |
15082 |
PATH_SEPARATOR=$lt_PATH_SEPARATOR |
15083 |
|
15084 |
# The host system. |
15085 |
host_alias=$host_alias |
15086 |
host=$host |
15087 |
host_os=$host_os |
15088 |
|
15089 |
# The build system. |
15090 |
build_alias=$build_alias |
15091 |
build=$build |
15092 |
build_os=$build_os |
15093 |
|
15094 |
# A sed program that does not truncate output. |
15095 |
SED=$lt_SED |
15096 |
|
15097 |
# Sed that helps us avoid accidentally triggering echo(1) options like -n. |
15098 |
Xsed="\$SED -e 1s/^X//" |
15099 |
|
15100 |
# A grep program that handles long lines. |
15101 |
GREP=$lt_GREP |
15102 |
|
15103 |
# An ERE matcher. |
15104 |
EGREP=$lt_EGREP |
15105 |
|
15106 |
# A literal string matcher. |
15107 |
FGREP=$lt_FGREP |
15108 |
|
15109 |
# A BSD- or MS-compatible name lister. |
15110 |
NM=$lt_NM |
15111 |
|
15112 |
# Whether we need soft or hard links. |
15113 |
LN_S=$lt_LN_S |
15114 |
|
15115 |
# What is the maximum length of a command? |
15116 |
max_cmd_len=$max_cmd_len |
15117 |
|
15118 |
# Object file suffix (normally "o"). |
15119 |
objext=$ac_objext |
15120 |
|
15121 |
# Executable file suffix (normally ""). |
15122 |
exeext=$exeext |
15123 |
|
15124 |
# whether the shell understands "unset". |
15125 |
lt_unset=$lt_unset |
15126 |
|
15127 |
# turn spaces into newlines. |
15128 |
SP2NL=$lt_lt_SP2NL |
15129 |
|
15130 |
# turn newlines into spaces. |
15131 |
NL2SP=$lt_lt_NL2SP |
15132 |
|
15133 |
# convert \$build file names to \$host format. |
15134 |
to_host_file_cmd=$lt_cv_to_host_file_cmd |
15135 |
|
15136 |
# convert \$build files to toolchain format. |
15137 |
to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
15138 |
|
15139 |
# An object symbol dumper. |
15140 |
OBJDUMP=$lt_OBJDUMP |
15141 |
|
15142 |
# Method to check whether dependent libraries are shared objects. |
15143 |
deplibs_check_method=$lt_deplibs_check_method |
15144 |
|
15145 |
# Command to use when deplibs_check_method = "file_magic". |
15146 |
file_magic_cmd=$lt_file_magic_cmd |
15147 |
|
15148 |
# How to find potential files when deplibs_check_method = "file_magic". |
15149 |
file_magic_glob=$lt_file_magic_glob |
15150 |
|
15151 |
# Find potential files using nocaseglob when deplibs_check_method = "file_magic". |
15152 |
want_nocaseglob=$lt_want_nocaseglob |
15153 |
|
15154 |
# DLL creation program. |
15155 |
DLLTOOL=$lt_DLLTOOL |
15156 |
|
15157 |
# Command to associate shared and link libraries. |
15158 |
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd |
15159 |
|
15160 |
# The archiver. |
15161 |
AR=$lt_AR |
15162 |
|
15163 |
# Flags to create an archive. |
15164 |
AR_FLAGS=$lt_AR_FLAGS |
15165 |
|
15166 |
# How to feed a file listing to the archiver. |
15167 |
archiver_list_spec=$lt_archiver_list_spec |
15168 |
|
15169 |
# A symbol stripping program. |
15170 |
STRIP=$lt_STRIP |
15171 |
|
15172 |
# Commands used to install an old-style archive. |
15173 |
RANLIB=$lt_RANLIB |
15174 |
old_postinstall_cmds=$lt_old_postinstall_cmds |
15175 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
15176 |
|
15177 |
# Whether to use a lock for old archive extraction. |
15178 |
lock_old_archive_extraction=$lock_old_archive_extraction |
15179 |
|
15180 |
# A C compiler. |
15181 |
LTCC=$lt_CC |
15182 |
|
15183 |
# LTCC compiler flags. |
15184 |
LTCFLAGS=$lt_CFLAGS |
15185 |
|
15186 |
# Take the output of nm and produce a listing of raw symbols and C names. |
15187 |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
15188 |
|
15189 |
# Transform the output of nm in a proper C declaration. |
15190 |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
15191 |
|
15192 |
# Transform the output of nm into a list of symbols to manually relocate. |
15193 |
global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import |
15194 |
|
15195 |
# Transform the output of nm in a C name address pair. |
15196 |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
15197 |
|
15198 |
# Transform the output of nm in a C name address pair when lib prefix is needed. |
15199 |
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
15200 |
|
15201 |
# The name lister interface. |
15202 |
nm_interface=$lt_lt_cv_nm_interface |
15203 |
|
15204 |
# Specify filename containing input files for \$NM. |
15205 |
nm_file_list_spec=$lt_nm_file_list_spec |
15206 |
|
15207 |
# The root where to search for dependent libraries,and where our libraries should be installed. |
15208 |
lt_sysroot=$lt_sysroot |
15209 |
|
15210 |
# Command to truncate a binary pipe. |
15211 |
lt_truncate_bin=$lt_lt_cv_truncate_bin |
15212 |
|
15213 |
# The name of the directory that contains temporary libtool files. |
15214 |
objdir=$objdir |
15215 |
|
15216 |
# Used to examine libraries when file_magic_cmd begins with "file". |
15217 |
MAGIC_CMD=$MAGIC_CMD |
15218 |
|
15219 |
# Must we lock files when doing compilation? |
15220 |
need_locks=$lt_need_locks |
15221 |
|
15222 |
# Manifest tool. |
15223 |
MANIFEST_TOOL=$lt_MANIFEST_TOOL |
15224 |
|
15225 |
# Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
15226 |
DSYMUTIL=$lt_DSYMUTIL |
15227 |
|
15228 |
# Tool to change global to local symbols on Mac OS X. |
15229 |
NMEDIT=$lt_NMEDIT |
15230 |
|
15231 |
# Tool to manipulate fat objects and archives on Mac OS X. |
15232 |
LIPO=$lt_LIPO |
15233 |
|
15234 |
# ldd/readelf like tool for Mach-O binaries on Mac OS X. |
15235 |
OTOOL=$lt_OTOOL |
15236 |
|
15237 |
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
15238 |
OTOOL64=$lt_OTOOL64 |
15239 |
|
15240 |
# Old archive suffix (normally "a"). |
15241 |
libext=$libext |
15242 |
|
15243 |
# Shared library suffix (normally ".so"). |
15244 |
shrext_cmds=$lt_shrext_cmds |
15245 |
|
15246 |
# The commands to extract the exported symbol list from a shared archive. |
15247 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
15248 |
|
15249 |
# Variables whose values should be saved in libtool wrapper scripts and |
15250 |
# restored at link time. |
15251 |
variables_saved_for_relink=$lt_variables_saved_for_relink |
15252 |
|
15253 |
# Do we need the "lib" prefix for modules? |
15254 |
need_lib_prefix=$need_lib_prefix |
15255 |
|
15256 |
# Do we need a version for libraries? |
15257 |
need_version=$need_version |
15258 |
|
15259 |
# Library versioning type. |
15260 |
version_type=$version_type |
15261 |
|
15262 |
# Shared library runtime path variable. |
15263 |
runpath_var=$runpath_var |
15264 |
|
15265 |
# Shared library path variable. |
15266 |
shlibpath_var=$shlibpath_var |
15267 |
|
15268 |
# Is shlibpath searched before the hard-coded library search path? |
15269 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
15270 |
|
15271 |
# Format of library name prefix. |
15272 |
libname_spec=$lt_libname_spec |
15273 |
|
15274 |
# List of archive names. First name is the real one, the rest are links. |
15275 |
# The last name is the one that the linker finds with -lNAME |
15276 |
library_names_spec=$lt_library_names_spec |
15277 |
|
15278 |
# The coded name of the library, if different from the real name. |
15279 |
soname_spec=$lt_soname_spec |
15280 |
|
15281 |
# Permission mode override for installation of shared libraries. |
15282 |
install_override_mode=$lt_install_override_mode |
15283 |
|
15284 |
# Command to use after installation of a shared archive. |
15285 |
postinstall_cmds=$lt_postinstall_cmds |
15286 |
|
15287 |
# Command to use after uninstallation of a shared archive. |
15288 |
postuninstall_cmds=$lt_postuninstall_cmds |
15289 |
|
15290 |
# Commands used to finish a libtool library installation in a directory. |
15291 |
finish_cmds=$lt_finish_cmds |
15292 |
|
15293 |
# As "finish_cmds", except a single script fragment to be evaled but |
15294 |
# not shown. |
15295 |
finish_eval=$lt_finish_eval |
15296 |
|
15297 |
# Whether we should hardcode library paths into libraries. |
15298 |
hardcode_into_libs=$hardcode_into_libs |
15299 |
|
15300 |
# Compile-time system search path for libraries. |
15301 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
15302 |
|
15303 |
# Run-time system search path for libraries. |
15304 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
15305 |
|
15306 |
# Whether dlopen is supported. |
15307 |
dlopen_support=$enable_dlopen |
15308 |
|
15309 |
# Whether dlopen of programs is supported. |
15310 |
dlopen_self=$enable_dlopen_self |
15311 |
|
15312 |
# Whether dlopen of statically linked programs is supported. |
15313 |
dlopen_self_static=$enable_dlopen_self_static |
15314 |
|
15315 |
# Commands to strip libraries. |
15316 |
old_striplib=$lt_old_striplib |
15317 |
striplib=$lt_striplib |
15318 |
|
15319 |
|
15320 |
# The linker used to build libraries. |
15321 |
LD=$lt_LD |
15322 |
|
15323 |
# How to create reloadable object files. |
15324 |
reload_flag=$lt_reload_flag |
15325 |
reload_cmds=$lt_reload_cmds |
15326 |
|
15327 |
# Commands used to build an old-style archive. |
15328 |
old_archive_cmds=$lt_old_archive_cmds |
15329 |
|
15330 |
# A language specific compiler. |
15331 |
CC=$lt_compiler |
15332 |
|
15333 |
# Is the compiler the GNU compiler? |
15334 |
with_gcc=$GCC |
15335 |
|
15336 |
# Compiler flag to turn off builtin functions. |
15337 |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
15338 |
|
15339 |
# Additional compiler flags for building library objects. |
15340 |
pic_flag=$lt_lt_prog_compiler_pic |
15341 |
|
15342 |
# How to pass a linker flag through the compiler. |
15343 |
wl=$lt_lt_prog_compiler_wl |
15344 |
|
15345 |
# Compiler flag to prevent dynamic linking. |
15346 |
link_static_flag=$lt_lt_prog_compiler_static |
15347 |
|
15348 |
# Does compiler simultaneously support -c and -o options? |
15349 |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
15350 |
|
15351 |
# Whether or not to add -lc for building shared libraries. |
15352 |
build_libtool_need_lc=$archive_cmds_need_lc |
15353 |
|
15354 |
# Whether or not to disallow shared libs when runtime libs are static. |
15355 |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
15356 |
|
15357 |
# Compiler flag to allow reflexive dlopens. |
15358 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
15359 |
|
15360 |
# Compiler flag to generate shared objects directly from archives. |
15361 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec |
15362 |
|
15363 |
# Whether the compiler copes with passing no objects directly. |
15364 |
compiler_needs_object=$lt_compiler_needs_object |
15365 |
|
15366 |
# Create an old-style archive from a shared archive. |
15367 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
15368 |
|
15369 |
# Create a temporary old-style archive to link instead of a shared archive. |
15370 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
15371 |
|
15372 |
# Commands used to build a shared archive. |
15373 |
archive_cmds=$lt_archive_cmds |
15374 |
archive_expsym_cmds=$lt_archive_expsym_cmds |
15375 |
|
15376 |
# Commands used to build a loadable module if different from building |
15377 |
# a shared archive. |
15378 |
module_cmds=$lt_module_cmds |
15379 |
module_expsym_cmds=$lt_module_expsym_cmds |
15380 |
|
15381 |
# Whether we are building with GNU ld or not. |
15382 |
with_gnu_ld=$lt_with_gnu_ld |
15383 |
|
15384 |
# Flag that allows shared libraries with undefined symbols to be built. |
15385 |
allow_undefined_flag=$lt_allow_undefined_flag |
15386 |
|
15387 |
# Flag that enforces no undefined symbols. |
15388 |
no_undefined_flag=$lt_no_undefined_flag |
15389 |
|
15390 |
# Flag to hardcode \$libdir into a binary during linking. |
15391 |
# This must work even if \$libdir does not exist |
15392 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
15393 |
|
15394 |
# Whether we need a single "-rpath" flag with a separated argument. |
15395 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator |
15396 |
|
15397 |
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
15398 |
# DIR into the resulting binary. |
15399 |
hardcode_direct=$hardcode_direct |
15400 |
|
15401 |
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
15402 |
# DIR into the resulting binary and the resulting library dependency is |
15403 |
# "absolute",i.e impossible to change by setting \$shlibpath_var if the |
15404 |
# library is relocated. |
15405 |
hardcode_direct_absolute=$hardcode_direct_absolute |
15406 |
|
15407 |
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
15408 |
# into the resulting binary. |
15409 |
hardcode_minus_L=$hardcode_minus_L |
15410 |
|
15411 |
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
15412 |
# into the resulting binary. |
15413 |
hardcode_shlibpath_var=$hardcode_shlibpath_var |
15414 |
|
15415 |
# Set to "yes" if building a shared library automatically hardcodes DIR |
15416 |
# into the library and all subsequent libraries and executables linked |
15417 |
# against it. |
15418 |
hardcode_automatic=$hardcode_automatic |
15419 |
|
15420 |
# Set to yes if linker adds runtime paths of dependent libraries |
15421 |
# to runtime path list. |
15422 |
inherit_rpath=$inherit_rpath |
15423 |
|
15424 |
# Whether libtool must link a program against all its dependency libraries. |
15425 |
link_all_deplibs=$link_all_deplibs |
15426 |
|
15427 |
# Set to "yes" if exported symbols are required. |
15428 |
always_export_symbols=$always_export_symbols |
15429 |
|
15430 |
# The commands to list exported symbols. |
15431 |
export_symbols_cmds=$lt_export_symbols_cmds |
15432 |
|
15433 |
# Symbols that should not be listed in the preloaded symbols. |
15434 |
exclude_expsyms=$lt_exclude_expsyms |
15435 |
|
15436 |
# Symbols that must always be exported. |
15437 |
include_expsyms=$lt_include_expsyms |
15438 |
|
15439 |
# Commands necessary for linking programs (against libraries) with templates. |
15440 |
prelink_cmds=$lt_prelink_cmds |
15441 |
|
15442 |
# Commands necessary for finishing linking programs. |
15443 |
postlink_cmds=$lt_postlink_cmds |
15444 |
|
15445 |
# Specify filename containing input files. |
15446 |
file_list_spec=$lt_file_list_spec |
15447 |
|
15448 |
# How to hardcode a shared library path into an executable. |
15449 |
hardcode_action=$hardcode_action |
15450 |
|
15451 |
# ### END LIBTOOL CONFIG |
15452 |
|
15453 |
_LT_EOF |
15454 |
|
15455 |
case $host_os in |
15456 |
aix3*) |
15457 |
cat <<\_LT_EOF >> "$cfgfile" |
15458 |
# AIX sometimes has problems with the GCC collect2 program. For some |
15459 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
15460 |
# vanish in a puff of smoke. |
15461 |
if test set != "${COLLECT_NAMES+set}"; then |
15462 |
COLLECT_NAMES= |
15463 |
export COLLECT_NAMES |
15464 |
fi |
15465 |
_LT_EOF |
15466 |
;; |
15467 |
esac |
15468 |
|
15469 |
|
15470 |
ltmain=$ac_aux_dir/ltmain.sh |
15471 |
|
15472 |
|
15473 |
# We use sed instead of cat because bash on DJGPP gets confused if |
15474 |
# if finds mixed CR/LF and LF-only lines. Since sed operates in |
15475 |
# text mode, it properly converts lines to CR/LF. This bash problem |
15476 |
# is reportedly fixed, but why not run on old versions too? |
15477 |
sed '$q' "$ltmain" >> "$cfgfile" \ |
15478 |
|| (rm -f "$cfgfile"; exit 1) |
15479 |
|
15480 |
mv -f "$cfgfile" "$ofile" || |
15481 |
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
15482 |
chmod +x "$ofile" |
15483 |
|
15484 |
;; |
15485 |
|
15486 |
esac |
15487 |
done # for ac_tag |
15488 |
|
15489 |
|
15490 |
as_fn_exit 0 |
15491 |
_ACEOF |
15492 |
ac_clean_files=$ac_clean_files_save |
15493 |
|
15494 |
test $ac_write_fail = 0 || |
15495 |
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
15496 |
|
15497 |
|
15498 |
# configure is writing to config.log, and then calls config.status. |
15499 |
# config.status does its own redirection, appending to config.log. |
15500 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
15501 |
# by configure, so config.status won't be able to write to it; its |
15502 |
# output is simply discarded. So we exec the FD to /dev/null, |
15503 |
# effectively closing config.log, so it can be properly (re)opened and |
15504 |
# appended to by config.status. When coming back to configure, we |
15505 |
# need to make the FD available again. |
15506 |
if test "$no_create" != yes; then |
15507 |
ac_cs_success=: |
15508 |
ac_config_status_args= |
15509 |
test "$silent" = yes && |
15510 |
ac_config_status_args="$ac_config_status_args --quiet" |
15511 |
exec 5>/dev/null |
15512 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
15513 |
exec 5>>config.log |
15514 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
15515 |
# would make configure fail if this is the last instruction. |
15516 |
$ac_cs_success || as_fn_exit 1 |
15517 |
fi |
15518 |
|
15519 |
# |
15520 |
# CONFIG_SUBDIRS section. |
15521 |
# |
15522 |
if test "$no_recursion" != yes; then |
15523 |
|
15524 |
# Remove --cache-file, --srcdir, and --disable-option-checking arguments |
15525 |
# so they do not pile up. |
15526 |
ac_sub_configure_args= |
15527 |
ac_prev= |
15528 |
eval "set x $ac_configure_args" |
15529 |
shift |
15530 |
for ac_arg |
15531 |
do |
15532 |
if test -n "$ac_prev"; then |
15533 |
ac_prev= |
15534 |
continue |
15535 |
fi |
15536 |
case $ac_arg in |
15537 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
15538 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
15539 |
ac_prev=cache_file ;; |
15540 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
15541 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
15542 |
| --c=*) |
15543 |
;; |
15544 |
--config-cache | -C) |
15545 |
;; |
15546 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
15547 |
ac_prev=srcdir ;; |
15548 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
15549 |
;; |
15550 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
15551 |
ac_prev=prefix ;; |
15552 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
15553 |
;; |
15554 |
--disable-option-checking) |
15555 |
;; |
15556 |
*) |
15557 |
case $ac_arg in |
15558 |
*\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
15559 |
esac |
15560 |
as_fn_append ac_sub_configure_args " '$ac_arg'" ;; |
15561 |
esac |
15562 |
done |
15563 |
|
15564 |
# Always prepend --prefix to ensure using the same prefix |
15565 |
# in subdir configurations. |
15566 |
ac_arg="--prefix=$prefix" |
15567 |
case $ac_arg in |
15568 |
*\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
15569 |
esac |
15570 |
ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" |
15571 |
|
15572 |
# Pass --silent |
15573 |
if test "$silent" = yes; then |
15574 |
ac_sub_configure_args="--silent $ac_sub_configure_args" |
15575 |
fi |
15576 |
|
15577 |
# Always prepend --disable-option-checking to silence warnings, since |
15578 |
# different subdirs can have different --enable and --with options. |
15579 |
ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" |
15580 |
|
15581 |
ac_popdir=`pwd` |
15582 |
for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
15583 |
|
15584 |
# Do not complain, so a configure script can configure whichever |
15585 |
# parts of a large source tree are present. |
15586 |
test -d "$srcdir/$ac_dir" || continue |
15587 |
|
15588 |
ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
15589 |
$as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 |
15590 |
$as_echo "$ac_msg" >&6 |
15591 |
as_dir="$ac_dir"; as_fn_mkdir_p |
15592 |
ac_builddir=. |
15593 |
|
15594 |
case "$ac_dir" in |
15595 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
15596 |
*) |
15597 |
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
15598 |
# A ".." for each directory in $ac_dir_suffix. |
15599 |
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
15600 |
case $ac_top_builddir_sub in |
15601 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
15602 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
15603 |
esac ;; |
15604 |
esac |
15605 |
ac_abs_top_builddir=$ac_pwd |
15606 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
15607 |
# for backward compatibility: |
15608 |
ac_top_builddir=$ac_top_build_prefix |
15609 |
|
15610 |
case $srcdir in |
15611 |
.) # We are building in place. |
15612 |
ac_srcdir=. |
15613 |
ac_top_srcdir=$ac_top_builddir_sub |
15614 |
ac_abs_top_srcdir=$ac_pwd ;; |
15615 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
15616 |
ac_srcdir=$srcdir$ac_dir_suffix; |
15617 |
ac_top_srcdir=$srcdir |
15618 |
ac_abs_top_srcdir=$srcdir ;; |
15619 |
*) # Relative name. |
15620 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
15621 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
15622 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
15623 |
esac |
15624 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
15625 |
|
15626 |
|
15627 |
cd "$ac_dir" |
15628 |
|
15629 |
# Check for guested configure; otherwise get Cygnus style configure. |
15630 |
if test -f "$ac_srcdir/configure.gnu"; then |
15631 |
ac_sub_configure=$ac_srcdir/configure.gnu |
15632 |
elif test -f "$ac_srcdir/configure"; then |
15633 |
ac_sub_configure=$ac_srcdir/configure |
15634 |
elif test -f "$ac_srcdir/configure.in"; then |
15635 |
# This should be Cygnus configure. |
15636 |
ac_sub_configure=$ac_aux_dir/configure |
15637 |
else |
15638 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 |
15639 |
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
15640 |
ac_sub_configure= |
15641 |
fi |
15642 |
|
15643 |
# The recursion is here. |
15644 |
if test -n "$ac_sub_configure"; then |
15645 |
# Make the cache file name correct relative to the subdirectory. |
15646 |
case $cache_file in |
15647 |
[\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
15648 |
*) # Relative name. |
15649 |
ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
15650 |
esac |
15651 |
|
15652 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
15653 |
$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} |
15654 |
# The eval makes quoting arguments work. |
15655 |
eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
15656 |
--cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
15657 |
as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 |
15658 |
fi |
15659 |
|
15660 |
cd "$ac_popdir" |
15661 |
done |
15662 |
fi |
15663 |
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
15664 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
15665 |
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
15666 |
fi |
15667 |
|
15668 |
|
15669 |
|
15670 |
echo "###############################################################################" |
15671 |
echo "Configuration complete. Type make (or gmake on some *BSD machines) to compile." |
15672 |
echo |
15673 |
echo "HOPM will be installed in ${prefix}. To change this, run:" |
15674 |
echo " ./configure --prefix=DIRECTORY" |
15675 |
echo "###############################################################################" |