1 | #! /bin/sh
|
---|
2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
3 | # Generated by GNU Autoconf 2.69 for libvorbis 1.3.7.
|
---|
4 | #
|
---|
5 | # Report bugs to <vorbis-dev@xiph.org>.
|
---|
6 | #
|
---|
7 | #
|
---|
8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
|
---|
9 | #
|
---|
10 | #
|
---|
11 | # This configure script is free software; the Free Software Foundation
|
---|
12 | # gives unlimited permission to copy, distribute and modify it.
|
---|
13 | ## -------------------- ##
|
---|
14 | ## M4sh Initialization. ##
|
---|
15 | ## -------------------- ##
|
---|
16 |
|
---|
17 | # Be more Bourne compatible
|
---|
18 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
---|
20 | emulate sh
|
---|
21 | NULLCMD=:
|
---|
22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
23 | # is contrary to our usage. Disable this feature.
|
---|
24 | alias -g '${1+"$@"}'='"$@"'
|
---|
25 | setopt NO_GLOB_SUBST
|
---|
26 | else
|
---|
27 | case `(set -o) 2>/dev/null` in #(
|
---|
28 | *posix*) :
|
---|
29 | set -o posix ;; #(
|
---|
30 | *) :
|
---|
31 | ;;
|
---|
32 | esac
|
---|
33 | fi
|
---|
34 |
|
---|
35 |
|
---|
36 | as_nl='
|
---|
37 | '
|
---|
38 | export as_nl
|
---|
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
---|
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
43 | # Prefer a ksh shell builtin over an external printf program on Solaris,
|
---|
44 | # but without wasting forks for bash or zsh.
|
---|
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \
|
---|
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
47 | as_echo='print -r --'
|
---|
48 | as_echo_n='print -rn --'
|
---|
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
50 | as_echo='printf %s\n'
|
---|
51 | as_echo_n='printf %s'
|
---|
52 | else
|
---|
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
---|
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
---|
55 | as_echo_n='/usr/ucb/echo -n'
|
---|
56 | else
|
---|
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
---|
58 | as_echo_n_body='eval
|
---|
59 | arg=$1;
|
---|
60 | case $arg in #(
|
---|
61 | *"$as_nl"*)
|
---|
62 | expr "X$arg" : "X\\(.*\\)$as_nl";
|
---|
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
---|
64 | esac;
|
---|
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
---|
66 | '
|
---|
67 | export as_echo_n_body
|
---|
68 | as_echo_n='sh -c $as_echo_n_body as_echo'
|
---|
69 | fi
|
---|
70 | export as_echo_body
|
---|
71 | as_echo='sh -c $as_echo_body as_echo'
|
---|
72 | fi
|
---|
73 |
|
---|
74 | # The user is always right.
|
---|
75 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
76 | PATH_SEPARATOR=:
|
---|
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
---|
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
---|
79 | PATH_SEPARATOR=';'
|
---|
80 | }
|
---|
81 | fi
|
---|
82 |
|
---|
83 |
|
---|
84 | # IFS
|
---|
85 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
86 | # there to prevent editors from complaining about space-tab.
|
---|
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
88 | # splitting by setting IFS to empty value.)
|
---|
89 | IFS=" "" $as_nl"
|
---|
90 |
|
---|
91 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
92 | as_myself=
|
---|
93 | case $0 in #((
|
---|
94 | *[\\/]* ) as_myself=$0 ;;
|
---|
95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
96 | for as_dir in $PATH
|
---|
97 | do
|
---|
98 | IFS=$as_save_IFS
|
---|
99 | test -z "$as_dir" && as_dir=.
|
---|
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
101 | done
|
---|
102 | IFS=$as_save_IFS
|
---|
103 |
|
---|
104 | ;;
|
---|
105 | esac
|
---|
106 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
107 | # in which case we are not to be found in the path.
|
---|
108 | if test "x$as_myself" = x; then
|
---|
109 | as_myself=$0
|
---|
110 | fi
|
---|
111 | if test ! -f "$as_myself"; then
|
---|
112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
113 | exit 1
|
---|
114 | fi
|
---|
115 |
|
---|
116 | # Unset variables that we do not need and which cause bugs (e.g. in
|
---|
117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
---|
118 | # suppresses any "Segmentation fault" message there. '((' could
|
---|
119 | # trigger a bug in pdksh 5.2.14.
|
---|
120 | for as_var in BASH_ENV ENV MAIL MAILPATH
|
---|
121 | do eval test x\${$as_var+set} = xset \
|
---|
122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
123 | done
|
---|
124 | PS1='$ '
|
---|
125 | PS2='> '
|
---|
126 | PS4='+ '
|
---|
127 |
|
---|
128 | # NLS nuisances.
|
---|
129 | LC_ALL=C
|
---|
130 | export LC_ALL
|
---|
131 | LANGUAGE=C
|
---|
132 | export LANGUAGE
|
---|
133 |
|
---|
134 | # CDPATH.
|
---|
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
136 |
|
---|
137 | # Use a proper internal environment variable to ensure we don't fall
|
---|
138 | # into an infinite loop, continuously re-executing ourselves.
|
---|
139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
|
---|
140 | _as_can_reexec=no; export _as_can_reexec;
|
---|
141 | # We cannot yet assume a decent shell, so we have to provide a
|
---|
142 | # neutralization value for shells without unset; and this also
|
---|
143 | # works around shells that cannot unset nonexistent variables.
|
---|
144 | # Preserve -v and -x to the replacement shell.
|
---|
145 | BASH_ENV=/dev/null
|
---|
146 | ENV=/dev/null
|
---|
147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
---|
148 | case $- in # ((((
|
---|
149 | *v*x* | *x*v* ) as_opts=-vx ;;
|
---|
150 | *v* ) as_opts=-v ;;
|
---|
151 | *x* ) as_opts=-x ;;
|
---|
152 | * ) as_opts= ;;
|
---|
153 | esac
|
---|
154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
|
---|
155 | # Admittedly, this is quite paranoid, since all the known shells bail
|
---|
156 | # out after a failed `exec'.
|
---|
157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
|
---|
158 | as_fn_exit 255
|
---|
159 | fi
|
---|
160 | # We don't want this to propagate to other subprocesses.
|
---|
161 | { _as_can_reexec=; unset _as_can_reexec;}
|
---|
162 | if test "x$CONFIG_SHELL" = x; then
|
---|
163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
|
---|
164 | emulate sh
|
---|
165 | NULLCMD=:
|
---|
166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
|
---|
167 | # is contrary to our usage. Disable this feature.
|
---|
168 | alias -g '\${1+\"\$@\"}'='\"\$@\"'
|
---|
169 | setopt NO_GLOB_SUBST
|
---|
170 | else
|
---|
171 | case \`(set -o) 2>/dev/null\` in #(
|
---|
172 | *posix*) :
|
---|
173 | set -o posix ;; #(
|
---|
174 | *) :
|
---|
175 | ;;
|
---|
176 | esac
|
---|
177 | fi
|
---|
178 | "
|
---|
179 | as_required="as_fn_return () { (exit \$1); }
|
---|
180 | as_fn_success () { as_fn_return 0; }
|
---|
181 | as_fn_failure () { as_fn_return 1; }
|
---|
182 | as_fn_ret_success () { return 0; }
|
---|
183 | as_fn_ret_failure () { return 1; }
|
---|
184 |
|
---|
185 | exitcode=0
|
---|
186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; }
|
---|
187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
|
---|
188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
|
---|
189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
|
---|
190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
|
---|
191 |
|
---|
192 | else
|
---|
193 | exitcode=1; echo positional parameters were not saved.
|
---|
194 | fi
|
---|
195 | test x\$exitcode = x0 || exit 1
|
---|
196 | test -x / || exit 1"
|
---|
197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
|
---|
198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
|
---|
199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
|
---|
200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
|
---|
201 |
|
---|
202 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
|
---|
203 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
204 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
|
---|
205 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
|
---|
206 | PATH=/empty FPATH=/empty; export PATH FPATH
|
---|
207 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
|
---|
208 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
|
---|
209 | test \$(( 1 + 1 )) = 2 || exit 1"
|
---|
210 | if (eval "$as_required") 2>/dev/null; then :
|
---|
211 | as_have_required=yes
|
---|
212 | else
|
---|
213 | as_have_required=no
|
---|
214 | fi
|
---|
215 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
|
---|
216 |
|
---|
217 | else
|
---|
218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
219 | as_found=false
|
---|
220 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
221 | do
|
---|
222 | IFS=$as_save_IFS
|
---|
223 | test -z "$as_dir" && as_dir=.
|
---|
224 | as_found=:
|
---|
225 | case $as_dir in #(
|
---|
226 | /*)
|
---|
227 | for as_base in sh bash ksh sh5; do
|
---|
228 | # Try only shells that exist, to save several forks.
|
---|
229 | as_shell=$as_dir/$as_base
|
---|
230 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
|
---|
231 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
---|
232 | CONFIG_SHELL=$as_shell as_have_required=yes
|
---|
233 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
---|
234 | break 2
|
---|
235 | fi
|
---|
236 | fi
|
---|
237 | done;;
|
---|
238 | esac
|
---|
239 | as_found=false
|
---|
240 | done
|
---|
241 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
|
---|
242 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
|
---|
243 | CONFIG_SHELL=$SHELL as_have_required=yes
|
---|
244 | fi; }
|
---|
245 | IFS=$as_save_IFS
|
---|
246 |
|
---|
247 |
|
---|
248 | if test "x$CONFIG_SHELL" != x; then :
|
---|
249 | export CONFIG_SHELL
|
---|
250 | # We cannot yet assume a decent shell, so we have to provide a
|
---|
251 | # neutralization value for shells without unset; and this also
|
---|
252 | # works around shells that cannot unset nonexistent variables.
|
---|
253 | # Preserve -v and -x to the replacement shell.
|
---|
254 | BASH_ENV=/dev/null
|
---|
255 | ENV=/dev/null
|
---|
256 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
---|
257 | case $- in # ((((
|
---|
258 | *v*x* | *x*v* ) as_opts=-vx ;;
|
---|
259 | *v* ) as_opts=-v ;;
|
---|
260 | *x* ) as_opts=-x ;;
|
---|
261 | * ) as_opts= ;;
|
---|
262 | esac
|
---|
263 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
|
---|
264 | # Admittedly, this is quite paranoid, since all the known shells bail
|
---|
265 | # out after a failed `exec'.
|
---|
266 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
|
---|
267 | exit 255
|
---|
268 | fi
|
---|
269 |
|
---|
270 | if test x$as_have_required = xno; then :
|
---|
271 | $as_echo "$0: This script requires a shell more modern than all"
|
---|
272 | $as_echo "$0: the shells that I found on your system."
|
---|
273 | if test x${ZSH_VERSION+set} = xset ; then
|
---|
274 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
|
---|
275 | $as_echo "$0: be upgraded to zsh 4.3.4 or later."
|
---|
276 | else
|
---|
277 | $as_echo "$0: Please tell bug-autoconf@gnu.org and
|
---|
278 | $0: vorbis-dev@xiph.org about your system, including any
|
---|
279 | $0: error possibly output before this message. Then install
|
---|
280 | $0: a modern shell, or manually run the script under such a
|
---|
281 | $0: shell if you do have one."
|
---|
282 | fi
|
---|
283 | exit 1
|
---|
284 | fi
|
---|
285 | fi
|
---|
286 | fi
|
---|
287 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
288 | export SHELL
|
---|
289 | # Unset more variables known to interfere with behavior of common tools.
|
---|
290 | CLICOLOR_FORCE= GREP_OPTIONS=
|
---|
291 | unset CLICOLOR_FORCE GREP_OPTIONS
|
---|
292 |
|
---|
293 | ## --------------------- ##
|
---|
294 | ## M4sh Shell Functions. ##
|
---|
295 | ## --------------------- ##
|
---|
296 | # as_fn_unset VAR
|
---|
297 | # ---------------
|
---|
298 | # Portably unset VAR.
|
---|
299 | as_fn_unset ()
|
---|
300 | {
|
---|
301 | { eval $1=; unset $1;}
|
---|
302 | }
|
---|
303 | as_unset=as_fn_unset
|
---|
304 |
|
---|
305 | # as_fn_set_status STATUS
|
---|
306 | # -----------------------
|
---|
307 | # Set $? to STATUS, without forking.
|
---|
308 | as_fn_set_status ()
|
---|
309 | {
|
---|
310 | return $1
|
---|
311 | } # as_fn_set_status
|
---|
312 |
|
---|
313 | # as_fn_exit STATUS
|
---|
314 | # -----------------
|
---|
315 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
316 | as_fn_exit ()
|
---|
317 | {
|
---|
318 | set +e
|
---|
319 | as_fn_set_status $1
|
---|
320 | exit $1
|
---|
321 | } # as_fn_exit
|
---|
322 |
|
---|
323 | # as_fn_mkdir_p
|
---|
324 | # -------------
|
---|
325 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
326 | as_fn_mkdir_p ()
|
---|
327 | {
|
---|
328 |
|
---|
329 | case $as_dir in #(
|
---|
330 | -*) as_dir=./$as_dir;;
|
---|
331 | esac
|
---|
332 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
333 | as_dirs=
|
---|
334 | while :; do
|
---|
335 | case $as_dir in #(
|
---|
336 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
337 | *) as_qdir=$as_dir;;
|
---|
338 | esac
|
---|
339 | as_dirs="'$as_qdir' $as_dirs"
|
---|
340 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
341 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
342 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
343 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
344 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
345 | $as_echo X"$as_dir" |
|
---|
346 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
347 | s//\1/
|
---|
348 | q
|
---|
349 | }
|
---|
350 | /^X\(\/\/\)[^/].*/{
|
---|
351 | s//\1/
|
---|
352 | q
|
---|
353 | }
|
---|
354 | /^X\(\/\/\)$/{
|
---|
355 | s//\1/
|
---|
356 | q
|
---|
357 | }
|
---|
358 | /^X\(\/\).*/{
|
---|
359 | s//\1/
|
---|
360 | q
|
---|
361 | }
|
---|
362 | s/.*/./; q'`
|
---|
363 | test -d "$as_dir" && break
|
---|
364 | done
|
---|
365 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
366 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
---|
367 |
|
---|
368 |
|
---|
369 | } # as_fn_mkdir_p
|
---|
370 |
|
---|
371 | # as_fn_executable_p FILE
|
---|
372 | # -----------------------
|
---|
373 | # Test if FILE is an executable regular file.
|
---|
374 | as_fn_executable_p ()
|
---|
375 | {
|
---|
376 | test -f "$1" && test -x "$1"
|
---|
377 | } # as_fn_executable_p
|
---|
378 | # as_fn_append VAR VALUE
|
---|
379 | # ----------------------
|
---|
380 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
381 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
382 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
383 | # implementations.
|
---|
384 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
---|
385 | eval 'as_fn_append ()
|
---|
386 | {
|
---|
387 | eval $1+=\$2
|
---|
388 | }'
|
---|
389 | else
|
---|
390 | as_fn_append ()
|
---|
391 | {
|
---|
392 | eval $1=\$$1\$2
|
---|
393 | }
|
---|
394 | fi # as_fn_append
|
---|
395 |
|
---|
396 | # as_fn_arith ARG...
|
---|
397 | # ------------------
|
---|
398 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
399 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
400 | # must be portable across $(()) and expr.
|
---|
401 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
---|
402 | eval 'as_fn_arith ()
|
---|
403 | {
|
---|
404 | as_val=$(( $* ))
|
---|
405 | }'
|
---|
406 | else
|
---|
407 | as_fn_arith ()
|
---|
408 | {
|
---|
409 | as_val=`expr "$@" || test $? -eq 1`
|
---|
410 | }
|
---|
411 | fi # as_fn_arith
|
---|
412 |
|
---|
413 |
|
---|
414 | # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
---|
415 | # ----------------------------------------
|
---|
416 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
417 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
418 | # script with STATUS, using 1 if that was 0.
|
---|
419 | as_fn_error ()
|
---|
420 | {
|
---|
421 | as_status=$1; test $as_status -eq 0 && as_status=1
|
---|
422 | if test "$4"; then
|
---|
423 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
424 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
---|
425 | fi
|
---|
426 | $as_echo "$as_me: error: $2" >&2
|
---|
427 | as_fn_exit $as_status
|
---|
428 | } # as_fn_error
|
---|
429 |
|
---|
430 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
431 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
432 | as_expr=expr
|
---|
433 | else
|
---|
434 | as_expr=false
|
---|
435 | fi
|
---|
436 |
|
---|
437 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
438 | as_basename=basename
|
---|
439 | else
|
---|
440 | as_basename=false
|
---|
441 | fi
|
---|
442 |
|
---|
443 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
444 | as_dirname=dirname
|
---|
445 | else
|
---|
446 | as_dirname=false
|
---|
447 | fi
|
---|
448 |
|
---|
449 | as_me=`$as_basename -- "$0" ||
|
---|
450 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
451 | X"$0" : 'X\(//\)$' \| \
|
---|
452 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
453 | $as_echo X/"$0" |
|
---|
454 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
455 | s//\1/
|
---|
456 | q
|
---|
457 | }
|
---|
458 | /^X\/\(\/\/\)$/{
|
---|
459 | s//\1/
|
---|
460 | q
|
---|
461 | }
|
---|
462 | /^X\/\(\/\).*/{
|
---|
463 | s//\1/
|
---|
464 | q
|
---|
465 | }
|
---|
466 | s/.*/./; q'`
|
---|
467 |
|
---|
468 | # Avoid depending upon Character Ranges.
|
---|
469 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
470 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
471 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
472 | as_cr_digits='0123456789'
|
---|
473 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
474 |
|
---|
475 |
|
---|
476 | as_lineno_1=$LINENO as_lineno_1a=$LINENO
|
---|
477 | as_lineno_2=$LINENO as_lineno_2a=$LINENO
|
---|
478 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
|
---|
479 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
|
---|
480 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
|
---|
481 | sed -n '
|
---|
482 | p
|
---|
483 | /[$]LINENO/=
|
---|
484 | ' <$as_myself |
|
---|
485 | sed '
|
---|
486 | s/[$]LINENO.*/&-/
|
---|
487 | t lineno
|
---|
488 | b
|
---|
489 | :lineno
|
---|
490 | N
|
---|
491 | :loop
|
---|
492 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
---|
493 | t loop
|
---|
494 | s/-\n.*//
|
---|
495 | ' >$as_me.lineno &&
|
---|
496 | chmod +x "$as_me.lineno" ||
|
---|
497 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
|
---|
498 |
|
---|
499 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
|
---|
500 | # already done that, so ensure we don't try to do so again and fall
|
---|
501 | # in an infinite loop. This has already happened in practice.
|
---|
502 | _as_can_reexec=no; export _as_can_reexec
|
---|
503 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
504 | # (the dirname of $[0] is not the place where we might find the
|
---|
505 | # original and so on. Autoconf is especially sensitive to this).
|
---|
506 | . "./$as_me.lineno"
|
---|
507 | # Exit status is that of the last command.
|
---|
508 | exit
|
---|
509 | }
|
---|
510 |
|
---|
511 | ECHO_C= ECHO_N= ECHO_T=
|
---|
512 | case `echo -n x` in #(((((
|
---|
513 | -n*)
|
---|
514 | case `echo 'xy\c'` in
|
---|
515 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
516 | xy) ECHO_C='\c';;
|
---|
517 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
518 | ECHO_T=' ';;
|
---|
519 | esac;;
|
---|
520 | *)
|
---|
521 | ECHO_N='-n';;
|
---|
522 | esac
|
---|
523 |
|
---|
524 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
525 | if test -d conf$$.dir; then
|
---|
526 | rm -f conf$$.dir/conf$$.file
|
---|
527 | else
|
---|
528 | rm -f conf$$.dir
|
---|
529 | mkdir conf$$.dir 2>/dev/null
|
---|
530 | fi
|
---|
531 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
532 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
533 | as_ln_s='ln -s'
|
---|
534 | # ... but there are two gotchas:
|
---|
535 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
536 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
537 | # In both cases, we have to default to `cp -pR'.
|
---|
538 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
539 | as_ln_s='cp -pR'
|
---|
540 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
541 | as_ln_s=ln
|
---|
542 | else
|
---|
543 | as_ln_s='cp -pR'
|
---|
544 | fi
|
---|
545 | else
|
---|
546 | as_ln_s='cp -pR'
|
---|
547 | fi
|
---|
548 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
549 | rmdir conf$$.dir 2>/dev/null
|
---|
550 |
|
---|
551 | if mkdir -p . 2>/dev/null; then
|
---|
552 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
553 | else
|
---|
554 | test -d ./-p && rmdir ./-p
|
---|
555 | as_mkdir_p=false
|
---|
556 | fi
|
---|
557 |
|
---|
558 | as_test_x='test -x'
|
---|
559 | as_executable_p=as_fn_executable_p
|
---|
560 |
|
---|
561 | # Sed expression to map a string onto a valid CPP name.
|
---|
562 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
563 |
|
---|
564 | # Sed expression to map a string onto a valid variable name.
|
---|
565 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
566 |
|
---|
567 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
568 |
|
---|
569 |
|
---|
570 | test -n "$DJDIR" || exec 7<&0 </dev/null
|
---|
571 | exec 6>&1
|
---|
572 |
|
---|
573 | # Name of the host.
|
---|
574 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
|
---|
575 | # so uname gets run too.
|
---|
576 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
577 |
|
---|
578 | #
|
---|
579 | # Initializations.
|
---|
580 | #
|
---|
581 | ac_default_prefix=/usr/local
|
---|
582 | ac_clean_files=
|
---|
583 | ac_config_libobj_dir=.
|
---|
584 | LIBOBJS=
|
---|
585 | cross_compiling=no
|
---|
586 | subdirs=
|
---|
587 | MFLAGS=
|
---|
588 | MAKEFLAGS=
|
---|
589 |
|
---|
590 | # Identity of this package.
|
---|
591 | PACKAGE_NAME='libvorbis'
|
---|
592 | PACKAGE_TARNAME='libvorbis'
|
---|
593 | PACKAGE_VERSION='1.3.7'
|
---|
594 | PACKAGE_STRING='libvorbis 1.3.7'
|
---|
595 | PACKAGE_BUGREPORT='vorbis-dev@xiph.org'
|
---|
596 | PACKAGE_URL=''
|
---|
597 |
|
---|
598 | ac_unique_file="lib/mdct.c"
|
---|
599 | # Factoring default headers for most tests.
|
---|
600 | ac_includes_default="\
|
---|
601 | #include <stdio.h>
|
---|
602 | #ifdef HAVE_SYS_TYPES_H
|
---|
603 | # include <sys/types.h>
|
---|
604 | #endif
|
---|
605 | #ifdef HAVE_SYS_STAT_H
|
---|
606 | # include <sys/stat.h>
|
---|
607 | #endif
|
---|
608 | #ifdef STDC_HEADERS
|
---|
609 | # include <stdlib.h>
|
---|
610 | # include <stddef.h>
|
---|
611 | #else
|
---|
612 | # ifdef HAVE_STDLIB_H
|
---|
613 | # include <stdlib.h>
|
---|
614 | # endif
|
---|
615 | #endif
|
---|
616 | #ifdef HAVE_STRING_H
|
---|
617 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
|
---|
618 | # include <memory.h>
|
---|
619 | # endif
|
---|
620 | # include <string.h>
|
---|
621 | #endif
|
---|
622 | #ifdef HAVE_STRINGS_H
|
---|
623 | # include <strings.h>
|
---|
624 | #endif
|
---|
625 | #ifdef HAVE_INTTYPES_H
|
---|
626 | # include <inttypes.h>
|
---|
627 | #endif
|
---|
628 | #ifdef HAVE_STDINT_H
|
---|
629 | # include <stdint.h>
|
---|
630 | #endif
|
---|
631 | #ifdef HAVE_UNISTD_H
|
---|
632 | # include <unistd.h>
|
---|
633 | #endif"
|
---|
634 |
|
---|
635 | ac_subst_vars='am__EXEEXT_FALSE
|
---|
636 | am__EXEEXT_TRUE
|
---|
637 | LTLIBOBJS
|
---|
638 | LIBTOOL_DEPS
|
---|
639 | pthread_lib
|
---|
640 | PROFILE
|
---|
641 | DEBUG
|
---|
642 | VORBIS_LIBS
|
---|
643 | LIBOBJS
|
---|
644 | ALLOCA
|
---|
645 | OGG_LIBS
|
---|
646 | OGG_CFLAGS
|
---|
647 | PKG_CONFIG
|
---|
648 | BUILD_EXAMPLES_FALSE
|
---|
649 | BUILD_EXAMPLES_TRUE
|
---|
650 | BUILD_DOCS_FALSE
|
---|
651 | BUILD_DOCS_TRUE
|
---|
652 | HTLATEX
|
---|
653 | PDFLATEX
|
---|
654 | HAVE_DOXYGEN_FALSE
|
---|
655 | HAVE_DOXYGEN_TRUE
|
---|
656 | HAVE_DOXYGEN
|
---|
657 | LT_SYS_LIBRARY_PATH
|
---|
658 | OTOOL64
|
---|
659 | OTOOL
|
---|
660 | LIPO
|
---|
661 | NMEDIT
|
---|
662 | DSYMUTIL
|
---|
663 | MANIFEST_TOOL
|
---|
664 | RANLIB
|
---|
665 | ac_ct_AR
|
---|
666 | AR
|
---|
667 | LN_S
|
---|
668 | NM
|
---|
669 | ac_ct_DUMPBIN
|
---|
670 | DUMPBIN
|
---|
671 | LD
|
---|
672 | FGREP
|
---|
673 | EGREP
|
---|
674 | GREP
|
---|
675 | SED
|
---|
676 | LIBTOOL
|
---|
677 | OBJDUMP
|
---|
678 | DLLTOOL
|
---|
679 | AS
|
---|
680 | CPP
|
---|
681 | am__fastdepCC_FALSE
|
---|
682 | am__fastdepCC_TRUE
|
---|
683 | CCDEPMODE
|
---|
684 | am__nodep
|
---|
685 | AMDEPBACKSLASH
|
---|
686 | AMDEP_FALSE
|
---|
687 | AMDEP_TRUE
|
---|
688 | am__include
|
---|
689 | DEPDIR
|
---|
690 | OBJEXT
|
---|
691 | EXEEXT
|
---|
692 | ac_ct_CC
|
---|
693 | CPPFLAGS
|
---|
694 | LDFLAGS
|
---|
695 | CFLAGS
|
---|
696 | CC
|
---|
697 | VE_LIB_AGE
|
---|
698 | VE_LIB_REVISION
|
---|
699 | VE_LIB_CURRENT
|
---|
700 | VF_LIB_AGE
|
---|
701 | VF_LIB_REVISION
|
---|
702 | VF_LIB_CURRENT
|
---|
703 | V_LIB_AGE
|
---|
704 | V_LIB_REVISION
|
---|
705 | V_LIB_CURRENT
|
---|
706 | ACLOCAL_AMFLAGS
|
---|
707 | MAINT
|
---|
708 | MAINTAINER_MODE_FALSE
|
---|
709 | MAINTAINER_MODE_TRUE
|
---|
710 | AM_BACKSLASH
|
---|
711 | AM_DEFAULT_VERBOSITY
|
---|
712 | AM_DEFAULT_V
|
---|
713 | AM_V
|
---|
714 | am__untar
|
---|
715 | am__tar
|
---|
716 | AMTAR
|
---|
717 | am__leading_dot
|
---|
718 | SET_MAKE
|
---|
719 | AWK
|
---|
720 | mkdir_p
|
---|
721 | MKDIR_P
|
---|
722 | INSTALL_STRIP_PROGRAM
|
---|
723 | STRIP
|
---|
724 | install_sh
|
---|
725 | MAKEINFO
|
---|
726 | AUTOHEADER
|
---|
727 | AUTOMAKE
|
---|
728 | AUTOCONF
|
---|
729 | ACLOCAL
|
---|
730 | VERSION
|
---|
731 | PACKAGE
|
---|
732 | CYGPATH_W
|
---|
733 | am__isrc
|
---|
734 | INSTALL_DATA
|
---|
735 | INSTALL_SCRIPT
|
---|
736 | INSTALL_PROGRAM
|
---|
737 | host_os
|
---|
738 | host_vendor
|
---|
739 | host_cpu
|
---|
740 | host
|
---|
741 | build_os
|
---|
742 | build_vendor
|
---|
743 | build_cpu
|
---|
744 | build
|
---|
745 | target_alias
|
---|
746 | host_alias
|
---|
747 | build_alias
|
---|
748 | LIBS
|
---|
749 | ECHO_T
|
---|
750 | ECHO_N
|
---|
751 | ECHO_C
|
---|
752 | DEFS
|
---|
753 | mandir
|
---|
754 | localedir
|
---|
755 | libdir
|
---|
756 | psdir
|
---|
757 | pdfdir
|
---|
758 | dvidir
|
---|
759 | htmldir
|
---|
760 | infodir
|
---|
761 | docdir
|
---|
762 | oldincludedir
|
---|
763 | includedir
|
---|
764 | runstatedir
|
---|
765 | localstatedir
|
---|
766 | sharedstatedir
|
---|
767 | sysconfdir
|
---|
768 | datadir
|
---|
769 | datarootdir
|
---|
770 | libexecdir
|
---|
771 | sbindir
|
---|
772 | bindir
|
---|
773 | program_transform_name
|
---|
774 | prefix
|
---|
775 | exec_prefix
|
---|
776 | PACKAGE_URL
|
---|
777 | PACKAGE_BUGREPORT
|
---|
778 | PACKAGE_STRING
|
---|
779 | PACKAGE_VERSION
|
---|
780 | PACKAGE_TARNAME
|
---|
781 | PACKAGE_NAME
|
---|
782 | PATH_SEPARATOR
|
---|
783 | SHELL
|
---|
784 | am__quote'
|
---|
785 | ac_subst_files=''
|
---|
786 | ac_user_opts='
|
---|
787 | enable_option_checking
|
---|
788 | enable_silent_rules
|
---|
789 | enable_maintainer_mode
|
---|
790 | enable_dependency_tracking
|
---|
791 | enable_shared
|
---|
792 | enable_static
|
---|
793 | with_pic
|
---|
794 | enable_fast_install
|
---|
795 | with_aix_soname
|
---|
796 | with_gnu_ld
|
---|
797 | with_sysroot
|
---|
798 | enable_libtool_lock
|
---|
799 | enable_docs
|
---|
800 | enable_examples
|
---|
801 | with_ogg
|
---|
802 | with_ogg_libraries
|
---|
803 | with_ogg_includes
|
---|
804 | enable_oggtest
|
---|
805 | '
|
---|
806 | ac_precious_vars='build_alias
|
---|
807 | host_alias
|
---|
808 | target_alias
|
---|
809 | CC
|
---|
810 | CFLAGS
|
---|
811 | LDFLAGS
|
---|
812 | LIBS
|
---|
813 | CPPFLAGS
|
---|
814 | CPP
|
---|
815 | LT_SYS_LIBRARY_PATH
|
---|
816 | PKG_CONFIG
|
---|
817 | OGG_CFLAGS
|
---|
818 | OGG_LIBS'
|
---|
819 |
|
---|
820 |
|
---|
821 | # Initialize some variables set by options.
|
---|
822 | ac_init_help=
|
---|
823 | ac_init_version=false
|
---|
824 | ac_unrecognized_opts=
|
---|
825 | ac_unrecognized_sep=
|
---|
826 | # The variables have the same names as the options, with
|
---|
827 | # dashes changed to underlines.
|
---|
828 | cache_file=/dev/null
|
---|
829 | exec_prefix=NONE
|
---|
830 | no_create=
|
---|
831 | no_recursion=
|
---|
832 | prefix=NONE
|
---|
833 | program_prefix=NONE
|
---|
834 | program_suffix=NONE
|
---|
835 | program_transform_name=s,x,x,
|
---|
836 | silent=
|
---|
837 | site=
|
---|
838 | srcdir=
|
---|
839 | verbose=
|
---|
840 | x_includes=NONE
|
---|
841 | x_libraries=NONE
|
---|
842 |
|
---|
843 | # Installation directory options.
|
---|
844 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
845 | # and all the variables that are supposed to be based on exec_prefix
|
---|
846 | # by default will actually change.
|
---|
847 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
848 | # (The list follows the same order as the GNU Coding Standards.)
|
---|
849 | bindir='${exec_prefix}/bin'
|
---|
850 | sbindir='${exec_prefix}/sbin'
|
---|
851 | libexecdir='${exec_prefix}/libexec'
|
---|
852 | datarootdir='${prefix}/share'
|
---|
853 | datadir='${datarootdir}'
|
---|
854 | sysconfdir='${prefix}/etc'
|
---|
855 | sharedstatedir='${prefix}/com'
|
---|
856 | localstatedir='${prefix}/var'
|
---|
857 | runstatedir='${localstatedir}/run'
|
---|
858 | includedir='${prefix}/include'
|
---|
859 | oldincludedir='/usr/include'
|
---|
860 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
|
---|
861 | infodir='${datarootdir}/info'
|
---|
862 | htmldir='${docdir}'
|
---|
863 | dvidir='${docdir}'
|
---|
864 | pdfdir='${docdir}'
|
---|
865 | psdir='${docdir}'
|
---|
866 | libdir='${exec_prefix}/lib'
|
---|
867 | localedir='${datarootdir}/locale'
|
---|
868 | mandir='${datarootdir}/man'
|
---|
869 |
|
---|
870 | ac_prev=
|
---|
871 | ac_dashdash=
|
---|
872 | for ac_option
|
---|
873 | do
|
---|
874 | # If the previous option needs an argument, assign it.
|
---|
875 | if test -n "$ac_prev"; then
|
---|
876 | eval $ac_prev=\$ac_option
|
---|
877 | ac_prev=
|
---|
878 | continue
|
---|
879 | fi
|
---|
880 |
|
---|
881 | case $ac_option in
|
---|
882 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
---|
883 | *=) ac_optarg= ;;
|
---|
884 | *) ac_optarg=yes ;;
|
---|
885 | esac
|
---|
886 |
|
---|
887 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
888 |
|
---|
889 | case $ac_dashdash$ac_option in
|
---|
890 | --)
|
---|
891 | ac_dashdash=yes ;;
|
---|
892 |
|
---|
893 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
894 | ac_prev=bindir ;;
|
---|
895 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
896 | bindir=$ac_optarg ;;
|
---|
897 |
|
---|
898 | -build | --build | --buil | --bui | --bu)
|
---|
899 | ac_prev=build_alias ;;
|
---|
900 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
901 | build_alias=$ac_optarg ;;
|
---|
902 |
|
---|
903 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
904 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
905 | ac_prev=cache_file ;;
|
---|
906 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
907 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
908 | cache_file=$ac_optarg ;;
|
---|
909 |
|
---|
910 | --config-cache | -C)
|
---|
911 | cache_file=config.cache ;;
|
---|
912 |
|
---|
913 | -datadir | --datadir | --datadi | --datad)
|
---|
914 | ac_prev=datadir ;;
|
---|
915 | -datadir=* | --datadir=* | --datadi=* | --datad=*)
|
---|
916 | datadir=$ac_optarg ;;
|
---|
917 |
|
---|
918 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
---|
919 | | --dataroo | --dataro | --datar)
|
---|
920 | ac_prev=datarootdir ;;
|
---|
921 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
---|
922 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
---|
923 | datarootdir=$ac_optarg ;;
|
---|
924 |
|
---|
925 | -disable-* | --disable-*)
|
---|
926 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
927 | # Reject names that are not valid shell variable names.
|
---|
928 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
929 | as_fn_error $? "invalid feature name: $ac_useropt"
|
---|
930 | ac_useropt_orig=$ac_useropt
|
---|
931 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
932 | case $ac_user_opts in
|
---|
933 | *"
|
---|
934 | "enable_$ac_useropt"
|
---|
935 | "*) ;;
|
---|
936 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
|
---|
937 | ac_unrecognized_sep=', ';;
|
---|
938 | esac
|
---|
939 | eval enable_$ac_useropt=no ;;
|
---|
940 |
|
---|
941 | -docdir | --docdir | --docdi | --doc | --do)
|
---|
942 | ac_prev=docdir ;;
|
---|
943 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
---|
944 | docdir=$ac_optarg ;;
|
---|
945 |
|
---|
946 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
---|
947 | ac_prev=dvidir ;;
|
---|
948 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
---|
949 | dvidir=$ac_optarg ;;
|
---|
950 |
|
---|
951 | -enable-* | --enable-*)
|
---|
952 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
953 | # Reject names that are not valid shell variable names.
|
---|
954 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
955 | as_fn_error $? "invalid feature name: $ac_useropt"
|
---|
956 | ac_useropt_orig=$ac_useropt
|
---|
957 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
958 | case $ac_user_opts in
|
---|
959 | *"
|
---|
960 | "enable_$ac_useropt"
|
---|
961 | "*) ;;
|
---|
962 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
|
---|
963 | ac_unrecognized_sep=', ';;
|
---|
964 | esac
|
---|
965 | eval enable_$ac_useropt=\$ac_optarg ;;
|
---|
966 |
|
---|
967 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
968 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
969 | | --exec | --exe | --ex)
|
---|
970 | ac_prev=exec_prefix ;;
|
---|
971 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
972 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
973 | | --exec=* | --exe=* | --ex=*)
|
---|
974 | exec_prefix=$ac_optarg ;;
|
---|
975 |
|
---|
976 | -gas | --gas | --ga | --g)
|
---|
977 | # Obsolete; use --with-gas.
|
---|
978 | with_gas=yes ;;
|
---|
979 |
|
---|
980 | -help | --help | --hel | --he | -h)
|
---|
981 | ac_init_help=long ;;
|
---|
982 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
983 | ac_init_help=recursive ;;
|
---|
984 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
985 | ac_init_help=short ;;
|
---|
986 |
|
---|
987 | -host | --host | --hos | --ho)
|
---|
988 | ac_prev=host_alias ;;
|
---|
989 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
990 | host_alias=$ac_optarg ;;
|
---|
991 |
|
---|
992 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
---|
993 | ac_prev=htmldir ;;
|
---|
994 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
---|
995 | | --ht=*)
|
---|
996 | htmldir=$ac_optarg ;;
|
---|
997 |
|
---|
998 | -includedir | --includedir | --includedi | --included | --include \
|
---|
999 | | --includ | --inclu | --incl | --inc)
|
---|
1000 | ac_prev=includedir ;;
|
---|
1001 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
1002 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
1003 | includedir=$ac_optarg ;;
|
---|
1004 |
|
---|
1005 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
1006 | ac_prev=infodir ;;
|
---|
1007 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
1008 | infodir=$ac_optarg ;;
|
---|
1009 |
|
---|
1010 | -libdir | --libdir | --libdi | --libd)
|
---|
1011 | ac_prev=libdir ;;
|
---|
1012 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
1013 | libdir=$ac_optarg ;;
|
---|
1014 |
|
---|
1015 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
1016 | | --libexe | --libex | --libe)
|
---|
1017 | ac_prev=libexecdir ;;
|
---|
1018 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
1019 | | --libexe=* | --libex=* | --libe=*)
|
---|
1020 | libexecdir=$ac_optarg ;;
|
---|
1021 |
|
---|
1022 | -localedir | --localedir | --localedi | --localed | --locale)
|
---|
1023 | ac_prev=localedir ;;
|
---|
1024 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
---|
1025 | localedir=$ac_optarg ;;
|
---|
1026 |
|
---|
1027 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
1028 | | --localstate | --localstat | --localsta | --localst | --locals)
|
---|
1029 | ac_prev=localstatedir ;;
|
---|
1030 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
1031 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
---|
1032 | localstatedir=$ac_optarg ;;
|
---|
1033 |
|
---|
1034 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
1035 | ac_prev=mandir ;;
|
---|
1036 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
1037 | mandir=$ac_optarg ;;
|
---|
1038 |
|
---|
1039 | -nfp | --nfp | --nf)
|
---|
1040 | # Obsolete; use --without-fp.
|
---|
1041 | with_fp=no ;;
|
---|
1042 |
|
---|
1043 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
1044 | | --no-cr | --no-c | -n)
|
---|
1045 | no_create=yes ;;
|
---|
1046 |
|
---|
1047 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
1048 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
1049 | no_recursion=yes ;;
|
---|
1050 |
|
---|
1051 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
1052 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
1053 | | --oldin | --oldi | --old | --ol | --o)
|
---|
1054 | ac_prev=oldincludedir ;;
|
---|
1055 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
1056 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
1057 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
1058 | oldincludedir=$ac_optarg ;;
|
---|
1059 |
|
---|
1060 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
1061 | ac_prev=prefix ;;
|
---|
1062 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
1063 | prefix=$ac_optarg ;;
|
---|
1064 |
|
---|
1065 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
1066 | | --program-pre | --program-pr | --program-p)
|
---|
1067 | ac_prev=program_prefix ;;
|
---|
1068 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
1069 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
1070 | program_prefix=$ac_optarg ;;
|
---|
1071 |
|
---|
1072 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
1073 | | --program-suf | --program-su | --program-s)
|
---|
1074 | ac_prev=program_suffix ;;
|
---|
1075 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
1076 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
1077 | program_suffix=$ac_optarg ;;
|
---|
1078 |
|
---|
1079 | -program-transform-name | --program-transform-name \
|
---|
1080 | | --program-transform-nam | --program-transform-na \
|
---|
1081 | | --program-transform-n | --program-transform- \
|
---|
1082 | | --program-transform | --program-transfor \
|
---|
1083 | | --program-transfo | --program-transf \
|
---|
1084 | | --program-trans | --program-tran \
|
---|
1085 | | --progr-tra | --program-tr | --program-t)
|
---|
1086 | ac_prev=program_transform_name ;;
|
---|
1087 | -program-transform-name=* | --program-transform-name=* \
|
---|
1088 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
1089 | | --program-transform-n=* | --program-transform-=* \
|
---|
1090 | | --program-transform=* | --program-transfor=* \
|
---|
1091 | | --program-transfo=* | --program-transf=* \
|
---|
1092 | | --program-trans=* | --program-tran=* \
|
---|
1093 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
1094 | program_transform_name=$ac_optarg ;;
|
---|
1095 |
|
---|
1096 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
---|
1097 | ac_prev=pdfdir ;;
|
---|
1098 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
---|
1099 | pdfdir=$ac_optarg ;;
|
---|
1100 |
|
---|
1101 | -psdir | --psdir | --psdi | --psd | --ps)
|
---|
1102 | ac_prev=psdir ;;
|
---|
1103 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
---|
1104 | psdir=$ac_optarg ;;
|
---|
1105 |
|
---|
1106 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
1107 | | -silent | --silent | --silen | --sile | --sil)
|
---|
1108 | silent=yes ;;
|
---|
1109 |
|
---|
1110 | -runstatedir | --runstatedir | --runstatedi | --runstated \
|
---|
1111 | | --runstate | --runstat | --runsta | --runst | --runs \
|
---|
1112 | | --run | --ru | --r)
|
---|
1113 | ac_prev=runstatedir ;;
|
---|
1114 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
|
---|
1115 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
|
---|
1116 | | --run=* | --ru=* | --r=*)
|
---|
1117 | runstatedir=$ac_optarg ;;
|
---|
1118 |
|
---|
1119 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
1120 | ac_prev=sbindir ;;
|
---|
1121 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
1122 | | --sbi=* | --sb=*)
|
---|
1123 | sbindir=$ac_optarg ;;
|
---|
1124 |
|
---|
1125 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
1126 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
1127 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
1128 | | --sha | --sh)
|
---|
1129 | ac_prev=sharedstatedir ;;
|
---|
1130 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
1131 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
1132 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
1133 | | --sha=* | --sh=*)
|
---|
1134 | sharedstatedir=$ac_optarg ;;
|
---|
1135 |
|
---|
1136 | -site | --site | --sit)
|
---|
1137 | ac_prev=site ;;
|
---|
1138 | -site=* | --site=* | --sit=*)
|
---|
1139 | site=$ac_optarg ;;
|
---|
1140 |
|
---|
1141 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
1142 | ac_prev=srcdir ;;
|
---|
1143 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
1144 | srcdir=$ac_optarg ;;
|
---|
1145 |
|
---|
1146 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
1147 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
1148 | ac_prev=sysconfdir ;;
|
---|
1149 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
1150 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
1151 | sysconfdir=$ac_optarg ;;
|
---|
1152 |
|
---|
1153 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
1154 | ac_prev=target_alias ;;
|
---|
1155 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
1156 | target_alias=$ac_optarg ;;
|
---|
1157 |
|
---|
1158 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
1159 | verbose=yes ;;
|
---|
1160 |
|
---|
1161 | -version | --version | --versio | --versi | --vers | -V)
|
---|
1162 | ac_init_version=: ;;
|
---|
1163 |
|
---|
1164 | -with-* | --with-*)
|
---|
1165 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
1166 | # Reject names that are not valid shell variable names.
|
---|
1167 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
1168 | as_fn_error $? "invalid package name: $ac_useropt"
|
---|
1169 | ac_useropt_orig=$ac_useropt
|
---|
1170 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
1171 | case $ac_user_opts in
|
---|
1172 | *"
|
---|
1173 | "with_$ac_useropt"
|
---|
1174 | "*) ;;
|
---|
1175 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
|
---|
1176 | ac_unrecognized_sep=', ';;
|
---|
1177 | esac
|
---|
1178 | eval with_$ac_useropt=\$ac_optarg ;;
|
---|
1179 |
|
---|
1180 | -without-* | --without-*)
|
---|
1181 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
1182 | # Reject names that are not valid shell variable names.
|
---|
1183 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
1184 | as_fn_error $? "invalid package name: $ac_useropt"
|
---|
1185 | ac_useropt_orig=$ac_useropt
|
---|
1186 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
1187 | case $ac_user_opts in
|
---|
1188 | *"
|
---|
1189 | "with_$ac_useropt"
|
---|
1190 | "*) ;;
|
---|
1191 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
|
---|
1192 | ac_unrecognized_sep=', ';;
|
---|
1193 | esac
|
---|
1194 | eval with_$ac_useropt=no ;;
|
---|
1195 |
|
---|
1196 | --x)
|
---|
1197 | # Obsolete; use --with-x.
|
---|
1198 | with_x=yes ;;
|
---|
1199 |
|
---|
1200 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
1201 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
1202 | ac_prev=x_includes ;;
|
---|
1203 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
1204 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
1205 | x_includes=$ac_optarg ;;
|
---|
1206 |
|
---|
1207 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
1208 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
1209 | ac_prev=x_libraries ;;
|
---|
1210 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
1211 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
1212 | x_libraries=$ac_optarg ;;
|
---|
1213 |
|
---|
1214 | -*) as_fn_error $? "unrecognized option: \`$ac_option'
|
---|
1215 | Try \`$0 --help' for more information"
|
---|
1216 | ;;
|
---|
1217 |
|
---|
1218 | *=*)
|
---|
1219 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
1220 | # Reject names that are not valid shell variable names.
|
---|
1221 | case $ac_envvar in #(
|
---|
1222 | '' | [0-9]* | *[!_$as_cr_alnum]* )
|
---|
1223 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
|
---|
1224 | esac
|
---|
1225 | eval $ac_envvar=\$ac_optarg
|
---|
1226 | export $ac_envvar ;;
|
---|
1227 |
|
---|
1228 | *)
|
---|
1229 | # FIXME: should be removed in autoconf 3.0.
|
---|
1230 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
1231 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
1232 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
1233 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
|
---|
1234 | ;;
|
---|
1235 |
|
---|
1236 | esac
|
---|
1237 | done
|
---|
1238 |
|
---|
1239 | if test -n "$ac_prev"; then
|
---|
1240 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
1241 | as_fn_error $? "missing argument to $ac_option"
|
---|
1242 | fi
|
---|
1243 |
|
---|
1244 | if test -n "$ac_unrecognized_opts"; then
|
---|
1245 | case $enable_option_checking in
|
---|
1246 | no) ;;
|
---|
1247 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
|
---|
1248 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
|
---|
1249 | esac
|
---|
1250 | fi
|
---|
1251 |
|
---|
1252 | # Check all directory arguments for consistency.
|
---|
1253 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
---|
1254 | datadir sysconfdir sharedstatedir localstatedir includedir \
|
---|
1255 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
---|
1256 | libdir localedir mandir runstatedir
|
---|
1257 | do
|
---|
1258 | eval ac_val=\$$ac_var
|
---|
1259 | # Remove trailing slashes.
|
---|
1260 | case $ac_val in
|
---|
1261 | */ )
|
---|
1262 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
|
---|
1263 | eval $ac_var=\$ac_val;;
|
---|
1264 | esac
|
---|
1265 | # Be sure to have absolute directory names.
|
---|
1266 | case $ac_val in
|
---|
1267 | [\\/$]* | ?:[\\/]* ) continue;;
|
---|
1268 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
---|
1269 | esac
|
---|
1270 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
|
---|
1271 | done
|
---|
1272 |
|
---|
1273 | # There might be people who depend on the old broken behavior: `$host'
|
---|
1274 | # used to hold the argument of --host etc.
|
---|
1275 | # FIXME: To remove some day.
|
---|
1276 | build=$build_alias
|
---|
1277 | host=$host_alias
|
---|
1278 | target=$target_alias
|
---|
1279 |
|
---|
1280 | # FIXME: To remove some day.
|
---|
1281 | if test "x$host_alias" != x; then
|
---|
1282 | if test "x$build_alias" = x; then
|
---|
1283 | cross_compiling=maybe
|
---|
1284 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
1285 | cross_compiling=yes
|
---|
1286 | fi
|
---|
1287 | fi
|
---|
1288 |
|
---|
1289 | ac_tool_prefix=
|
---|
1290 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
1291 |
|
---|
1292 | test "$silent" = yes && exec 6>/dev/null
|
---|
1293 |
|
---|
1294 |
|
---|
1295 | ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
---|
1296 | ac_ls_di=`ls -di .` &&
|
---|
1297 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
---|
1298 | as_fn_error $? "working directory cannot be determined"
|
---|
1299 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
---|
1300 | as_fn_error $? "pwd does not report name of working directory"
|
---|
1301 |
|
---|
1302 |
|
---|
1303 | # Find the source files, if location was not specified.
|
---|
1304 | if test -z "$srcdir"; then
|
---|
1305 | ac_srcdir_defaulted=yes
|
---|
1306 | # Try the directory containing this script, then the parent directory.
|
---|
1307 | ac_confdir=`$as_dirname -- "$as_myself" ||
|
---|
1308 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
1309 | X"$as_myself" : 'X\(//\)[^/]' \| \
|
---|
1310 | X"$as_myself" : 'X\(//\)$' \| \
|
---|
1311 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
1312 | $as_echo X"$as_myself" |
|
---|
1313 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
1314 | s//\1/
|
---|
1315 | q
|
---|
1316 | }
|
---|
1317 | /^X\(\/\/\)[^/].*/{
|
---|
1318 | s//\1/
|
---|
1319 | q
|
---|
1320 | }
|
---|
1321 | /^X\(\/\/\)$/{
|
---|
1322 | s//\1/
|
---|
1323 | q
|
---|
1324 | }
|
---|
1325 | /^X\(\/\).*/{
|
---|
1326 | s//\1/
|
---|
1327 | q
|
---|
1328 | }
|
---|
1329 | s/.*/./; q'`
|
---|
1330 | srcdir=$ac_confdir
|
---|
1331 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1332 | srcdir=..
|
---|
1333 | fi
|
---|
1334 | else
|
---|
1335 | ac_srcdir_defaulted=no
|
---|
1336 | fi
|
---|
1337 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1338 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
---|
1339 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
|
---|
1340 | fi
|
---|
1341 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
---|
1342 | ac_abs_confdir=`(
|
---|
1343 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
|
---|
1344 | pwd)`
|
---|
1345 | # When building in place, set srcdir=.
|
---|
1346 | if test "$ac_abs_confdir" = "$ac_pwd"; then
|
---|
1347 | srcdir=.
|
---|
1348 | fi
|
---|
1349 | # Remove unnecessary trailing slashes from srcdir.
|
---|
1350 | # Double slashes in file names in object file debugging info
|
---|
1351 | # mess up M-x gdb in Emacs.
|
---|
1352 | case $srcdir in
|
---|
1353 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
---|
1354 | esac
|
---|
1355 | for ac_var in $ac_precious_vars; do
|
---|
1356 | eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1357 | eval ac_env_${ac_var}_value=\$${ac_var}
|
---|
1358 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1359 | eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
---|
1360 | done
|
---|
1361 |
|
---|
1362 | #
|
---|
1363 | # Report the --help message.
|
---|
1364 | #
|
---|
1365 | if test "$ac_init_help" = "long"; then
|
---|
1366 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
1367 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
1368 | cat <<_ACEOF
|
---|
1369 | \`configure' configures libvorbis 1.3.7 to adapt to many kinds of systems.
|
---|
1370 |
|
---|
1371 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
1372 |
|
---|
1373 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
1374 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
1375 |
|
---|
1376 | Defaults for the options are specified in brackets.
|
---|
1377 |
|
---|
1378 | Configuration:
|
---|
1379 | -h, --help display this help and exit
|
---|
1380 | --help=short display options specific to this package
|
---|
1381 | --help=recursive display the short help of all the included packages
|
---|
1382 | -V, --version display version information and exit
|
---|
1383 | -q, --quiet, --silent do not print \`checking ...' messages
|
---|
1384 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
1385 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
1386 | -n, --no-create do not create output files
|
---|
1387 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
1388 |
|
---|
1389 | Installation directories:
|
---|
1390 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
1391 | [$ac_default_prefix]
|
---|
1392 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
1393 | [PREFIX]
|
---|
1394 |
|
---|
1395 | By default, \`make install' will install all the files in
|
---|
1396 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
1397 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
1398 | for instance \`--prefix=\$HOME'.
|
---|
1399 |
|
---|
1400 | For better control, use the options below.
|
---|
1401 |
|
---|
1402 | Fine tuning of the installation directories:
|
---|
1403 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
1404 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
1405 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
1406 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
1407 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
1408 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
1409 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
|
---|
1410 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
1411 | --includedir=DIR C header files [PREFIX/include]
|
---|
1412 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
1413 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
---|
1414 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
---|
1415 | --infodir=DIR info documentation [DATAROOTDIR/info]
|
---|
1416 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
---|
1417 | --mandir=DIR man documentation [DATAROOTDIR/man]
|
---|
1418 | --docdir=DIR documentation root [DATAROOTDIR/doc/libvorbis]
|
---|
1419 | --htmldir=DIR html documentation [DOCDIR]
|
---|
1420 | --dvidir=DIR dvi documentation [DOCDIR]
|
---|
1421 | --pdfdir=DIR pdf documentation [DOCDIR]
|
---|
1422 | --psdir=DIR ps documentation [DOCDIR]
|
---|
1423 | _ACEOF
|
---|
1424 |
|
---|
1425 | cat <<\_ACEOF
|
---|
1426 |
|
---|
1427 | Program names:
|
---|
1428 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
---|
1429 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
---|
1430 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names
|
---|
1431 |
|
---|
1432 | System types:
|
---|
1433 | --build=BUILD configure for building on BUILD [guessed]
|
---|
1434 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
1435 | _ACEOF
|
---|
1436 | fi
|
---|
1437 |
|
---|
1438 | if test -n "$ac_init_help"; then
|
---|
1439 | case $ac_init_help in
|
---|
1440 | short | recursive ) echo "Configuration of libvorbis 1.3.7:";;
|
---|
1441 | esac
|
---|
1442 | cat <<\_ACEOF
|
---|
1443 |
|
---|
1444 | Optional Features:
|
---|
1445 | --disable-option-checking ignore unrecognized --enable/--with options
|
---|
1446 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
1447 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
1448 | --enable-silent-rules less verbose build output (undo: "make V=1")
|
---|
1449 | --disable-silent-rules verbose build output (undo: "make V=0")
|
---|
1450 | --enable-maintainer-mode
|
---|
1451 | enable make rules and dependencies not useful (and
|
---|
1452 | sometimes confusing) to the casual installer
|
---|
1453 | --enable-dependency-tracking
|
---|
1454 | do not reject slow dependency extractors
|
---|
1455 | --disable-dependency-tracking
|
---|
1456 | speeds up one-time build
|
---|
1457 | --enable-shared[=PKGS] build shared libraries [default=yes]
|
---|
1458 | --enable-static[=PKGS] build static libraries [default=yes]
|
---|
1459 | --enable-fast-install[=PKGS]
|
---|
1460 | optimize for fast installation [default=yes]
|
---|
1461 | --disable-libtool-lock avoid locking (might break parallel builds)
|
---|
1462 | --enable-docs build the documentation
|
---|
1463 | --enable-examples build the examples
|
---|
1464 | --disable-oggtest Do not try to compile and run a test Ogg program
|
---|
1465 |
|
---|
1466 | Optional Packages:
|
---|
1467 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
1468 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
1469 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
|
---|
1470 | both]
|
---|
1471 | --with-aix-soname=aix|svr4|both
|
---|
1472 | shared library versioning (aka "SONAME") variant to
|
---|
1473 | provide on AIX, [default=aix].
|
---|
1474 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]
|
---|
1475 | --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
|
---|
1476 | compiler's sysroot if not specified).
|
---|
1477 | --with-ogg=PFX Prefix where libogg is installed (optional)
|
---|
1478 | --with-ogg-libraries=DIR
|
---|
1479 | Directory where libogg library is installed
|
---|
1480 | (optional)
|
---|
1481 | --with-ogg-includes=DIR Directory where libogg header files are installed
|
---|
1482 | (optional)
|
---|
1483 |
|
---|
1484 | Some influential environment variables:
|
---|
1485 | CC C compiler command
|
---|
1486 | CFLAGS C compiler flags
|
---|
1487 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
1488 | nonstandard directory <lib dir>
|
---|
1489 | LIBS libraries to pass to the linker, e.g. -l<library>
|
---|
1490 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
|
---|
1491 | you have headers in a nonstandard directory <include dir>
|
---|
1492 | CPP C preprocessor
|
---|
1493 | LT_SYS_LIBRARY_PATH
|
---|
1494 | User-defined run-time library search path.
|
---|
1495 | PKG_CONFIG path to pkg-config utility
|
---|
1496 | OGG_CFLAGS C compiler flags for OGG, overriding pkg-config
|
---|
1497 | OGG_LIBS linker flags for OGG, overriding pkg-config
|
---|
1498 |
|
---|
1499 | Use these variables to override the choices made by `configure' or to help
|
---|
1500 | it to find libraries and programs with nonstandard names/locations.
|
---|
1501 |
|
---|
1502 | Report bugs to <vorbis-dev@xiph.org>.
|
---|
1503 | _ACEOF
|
---|
1504 | ac_status=$?
|
---|
1505 | fi
|
---|
1506 |
|
---|
1507 | if test "$ac_init_help" = "recursive"; then
|
---|
1508 | # If there are subdirs, report their specific --help.
|
---|
1509 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
1510 | test -d "$ac_dir" ||
|
---|
1511 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
|
---|
1512 | continue
|
---|
1513 | ac_builddir=.
|
---|
1514 |
|
---|
1515 | case "$ac_dir" in
|
---|
1516 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1517 | *)
|
---|
1518 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
1519 | # A ".." for each directory in $ac_dir_suffix.
|
---|
1520 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
1521 | case $ac_top_builddir_sub in
|
---|
1522 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1523 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
1524 | esac ;;
|
---|
1525 | esac
|
---|
1526 | ac_abs_top_builddir=$ac_pwd
|
---|
1527 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
1528 | # for backward compatibility:
|
---|
1529 | ac_top_builddir=$ac_top_build_prefix
|
---|
1530 |
|
---|
1531 | case $srcdir in
|
---|
1532 | .) # We are building in place.
|
---|
1533 | ac_srcdir=.
|
---|
1534 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
1535 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
1536 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
1537 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
1538 | ac_top_srcdir=$srcdir
|
---|
1539 | ac_abs_top_srcdir=$srcdir ;;
|
---|
1540 | *) # Relative name.
|
---|
1541 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
1542 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
1543 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
1544 | esac
|
---|
1545 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
1546 |
|
---|
1547 | cd "$ac_dir" || { ac_status=$?; continue; }
|
---|
1548 | # Check for guested configure.
|
---|
1549 | if test -f "$ac_srcdir/configure.gnu"; then
|
---|
1550 | echo &&
|
---|
1551 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
---|
1552 | elif test -f "$ac_srcdir/configure"; then
|
---|
1553 | echo &&
|
---|
1554 | $SHELL "$ac_srcdir/configure" --help=recursive
|
---|
1555 | else
|
---|
1556 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
1557 | fi || ac_status=$?
|
---|
1558 | cd "$ac_pwd" || { ac_status=$?; break; }
|
---|
1559 | done
|
---|
1560 | fi
|
---|
1561 |
|
---|
1562 | test -n "$ac_init_help" && exit $ac_status
|
---|
1563 | if $ac_init_version; then
|
---|
1564 | cat <<\_ACEOF
|
---|
1565 | libvorbis configure 1.3.7
|
---|
1566 | generated by GNU Autoconf 2.69
|
---|
1567 |
|
---|
1568 | Copyright (C) 2012 Free Software Foundation, Inc.
|
---|
1569 | This configure script is free software; the Free Software Foundation
|
---|
1570 | gives unlimited permission to copy, distribute and modify it.
|
---|
1571 | _ACEOF
|
---|
1572 | exit
|
---|
1573 | fi
|
---|
1574 |
|
---|
1575 | ## ------------------------ ##
|
---|
1576 | ## Autoconf initialization. ##
|
---|
1577 | ## ------------------------ ##
|
---|
1578 |
|
---|
1579 | # ac_fn_c_try_compile LINENO
|
---|
1580 | # --------------------------
|
---|
1581 | # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
---|
1582 | ac_fn_c_try_compile ()
|
---|
1583 | {
|
---|
1584 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1585 | rm -f conftest.$ac_objext
|
---|
1586 | if { { ac_try="$ac_compile"
|
---|
1587 | case "(($ac_try" in
|
---|
1588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1589 | *) ac_try_echo=$ac_try;;
|
---|
1590 | esac
|
---|
1591 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1592 | $as_echo "$ac_try_echo"; } >&5
|
---|
1593 | (eval "$ac_compile") 2>conftest.err
|
---|
1594 | ac_status=$?
|
---|
1595 | if test -s conftest.err; then
|
---|
1596 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1597 | cat conftest.er1 >&5
|
---|
1598 | mv -f conftest.er1 conftest.err
|
---|
1599 | fi
|
---|
1600 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1601 | test $ac_status = 0; } && {
|
---|
1602 | test -z "$ac_c_werror_flag" ||
|
---|
1603 | test ! -s conftest.err
|
---|
1604 | } && test -s conftest.$ac_objext; then :
|
---|
1605 | ac_retval=0
|
---|
1606 | else
|
---|
1607 | $as_echo "$as_me: failed program was:" >&5
|
---|
1608 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1609 |
|
---|
1610 | ac_retval=1
|
---|
1611 | fi
|
---|
1612 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1613 | as_fn_set_status $ac_retval
|
---|
1614 |
|
---|
1615 | } # ac_fn_c_try_compile
|
---|
1616 |
|
---|
1617 | # ac_fn_c_try_cpp LINENO
|
---|
1618 | # ----------------------
|
---|
1619 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
|
---|
1620 | ac_fn_c_try_cpp ()
|
---|
1621 | {
|
---|
1622 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1623 | if { { ac_try="$ac_cpp conftest.$ac_ext"
|
---|
1624 | case "(($ac_try" in
|
---|
1625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1626 | *) ac_try_echo=$ac_try;;
|
---|
1627 | esac
|
---|
1628 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1629 | $as_echo "$ac_try_echo"; } >&5
|
---|
1630 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
|
---|
1631 | ac_status=$?
|
---|
1632 | if test -s conftest.err; then
|
---|
1633 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1634 | cat conftest.er1 >&5
|
---|
1635 | mv -f conftest.er1 conftest.err
|
---|
1636 | fi
|
---|
1637 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1638 | test $ac_status = 0; } > conftest.i && {
|
---|
1639 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
1640 | test ! -s conftest.err
|
---|
1641 | }; then :
|
---|
1642 | ac_retval=0
|
---|
1643 | else
|
---|
1644 | $as_echo "$as_me: failed program was:" >&5
|
---|
1645 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1646 |
|
---|
1647 | ac_retval=1
|
---|
1648 | fi
|
---|
1649 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1650 | as_fn_set_status $ac_retval
|
---|
1651 |
|
---|
1652 | } # ac_fn_c_try_cpp
|
---|
1653 |
|
---|
1654 | # ac_fn_c_try_link LINENO
|
---|
1655 | # -----------------------
|
---|
1656 | # Try to link conftest.$ac_ext, and return whether this succeeded.
|
---|
1657 | ac_fn_c_try_link ()
|
---|
1658 | {
|
---|
1659 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1660 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
1661 | if { { ac_try="$ac_link"
|
---|
1662 | case "(($ac_try" in
|
---|
1663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1664 | *) ac_try_echo=$ac_try;;
|
---|
1665 | esac
|
---|
1666 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1667 | $as_echo "$ac_try_echo"; } >&5
|
---|
1668 | (eval "$ac_link") 2>conftest.err
|
---|
1669 | ac_status=$?
|
---|
1670 | if test -s conftest.err; then
|
---|
1671 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1672 | cat conftest.er1 >&5
|
---|
1673 | mv -f conftest.er1 conftest.err
|
---|
1674 | fi
|
---|
1675 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1676 | test $ac_status = 0; } && {
|
---|
1677 | test -z "$ac_c_werror_flag" ||
|
---|
1678 | test ! -s conftest.err
|
---|
1679 | } && test -s conftest$ac_exeext && {
|
---|
1680 | test "$cross_compiling" = yes ||
|
---|
1681 | test -x conftest$ac_exeext
|
---|
1682 | }; then :
|
---|
1683 | ac_retval=0
|
---|
1684 | else
|
---|
1685 | $as_echo "$as_me: failed program was:" >&5
|
---|
1686 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1687 |
|
---|
1688 | ac_retval=1
|
---|
1689 | fi
|
---|
1690 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
|
---|
1691 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
|
---|
1692 | # interfere with the next link command; also delete a directory that is
|
---|
1693 | # left behind by Apple's compiler. We do this before executing the actions.
|
---|
1694 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
1695 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1696 | as_fn_set_status $ac_retval
|
---|
1697 |
|
---|
1698 | } # ac_fn_c_try_link
|
---|
1699 |
|
---|
1700 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
|
---|
1701 | # -------------------------------------------------------
|
---|
1702 | # Tests whether HEADER exists and can be compiled using the include files in
|
---|
1703 | # INCLUDES, setting the cache variable VAR accordingly.
|
---|
1704 | ac_fn_c_check_header_compile ()
|
---|
1705 | {
|
---|
1706 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1708 | $as_echo_n "checking for $2... " >&6; }
|
---|
1709 | if eval \${$3+:} false; then :
|
---|
1710 | $as_echo_n "(cached) " >&6
|
---|
1711 | else
|
---|
1712 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1713 | /* end confdefs.h. */
|
---|
1714 | $4
|
---|
1715 | #include <$2>
|
---|
1716 | _ACEOF
|
---|
1717 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1718 | eval "$3=yes"
|
---|
1719 | else
|
---|
1720 | eval "$3=no"
|
---|
1721 | fi
|
---|
1722 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1723 | fi
|
---|
1724 | eval ac_res=\$$3
|
---|
1725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1726 | $as_echo "$ac_res" >&6; }
|
---|
1727 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1728 |
|
---|
1729 | } # ac_fn_c_check_header_compile
|
---|
1730 |
|
---|
1731 | # ac_fn_c_try_run LINENO
|
---|
1732 | # ----------------------
|
---|
1733 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
|
---|
1734 | # that executables *can* be run.
|
---|
1735 | ac_fn_c_try_run ()
|
---|
1736 | {
|
---|
1737 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1738 | if { { ac_try="$ac_link"
|
---|
1739 | case "(($ac_try" in
|
---|
1740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1741 | *) ac_try_echo=$ac_try;;
|
---|
1742 | esac
|
---|
1743 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1744 | $as_echo "$ac_try_echo"; } >&5
|
---|
1745 | (eval "$ac_link") 2>&5
|
---|
1746 | ac_status=$?
|
---|
1747 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1748 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
|
---|
1749 | { { case "(($ac_try" in
|
---|
1750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1751 | *) ac_try_echo=$ac_try;;
|
---|
1752 | esac
|
---|
1753 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1754 | $as_echo "$ac_try_echo"; } >&5
|
---|
1755 | (eval "$ac_try") 2>&5
|
---|
1756 | ac_status=$?
|
---|
1757 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1758 | test $ac_status = 0; }; }; then :
|
---|
1759 | ac_retval=0
|
---|
1760 | else
|
---|
1761 | $as_echo "$as_me: program exited with status $ac_status" >&5
|
---|
1762 | $as_echo "$as_me: failed program was:" >&5
|
---|
1763 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1764 |
|
---|
1765 | ac_retval=$ac_status
|
---|
1766 | fi
|
---|
1767 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
1768 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1769 | as_fn_set_status $ac_retval
|
---|
1770 |
|
---|
1771 | } # ac_fn_c_try_run
|
---|
1772 |
|
---|
1773 | # ac_fn_c_check_func LINENO FUNC VAR
|
---|
1774 | # ----------------------------------
|
---|
1775 | # Tests whether FUNC exists, setting the cache variable VAR accordingly
|
---|
1776 | ac_fn_c_check_func ()
|
---|
1777 | {
|
---|
1778 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1780 | $as_echo_n "checking for $2... " >&6; }
|
---|
1781 | if eval \${$3+:} false; then :
|
---|
1782 | $as_echo_n "(cached) " >&6
|
---|
1783 | else
|
---|
1784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1785 | /* end confdefs.h. */
|
---|
1786 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
|
---|
1787 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
1788 | #define $2 innocuous_$2
|
---|
1789 |
|
---|
1790 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
1791 | which can conflict with char $2 (); below.
|
---|
1792 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
1793 | <limits.h> exists even on freestanding compilers. */
|
---|
1794 |
|
---|
1795 | #ifdef __STDC__
|
---|
1796 | # include <limits.h>
|
---|
1797 | #else
|
---|
1798 | # include <assert.h>
|
---|
1799 | #endif
|
---|
1800 |
|
---|
1801 | #undef $2
|
---|
1802 |
|
---|
1803 | /* Override any GCC internal prototype to avoid an error.
|
---|
1804 | Use char because int might match the return type of a GCC
|
---|
1805 | builtin and then its argument prototype would still apply. */
|
---|
1806 | #ifdef __cplusplus
|
---|
1807 | extern "C"
|
---|
1808 | #endif
|
---|
1809 | char $2 ();
|
---|
1810 | /* The GNU C library defines this for functions which it implements
|
---|
1811 | to always fail with ENOSYS. Some functions are actually named
|
---|
1812 | something starting with __ and the normal name is an alias. */
|
---|
1813 | #if defined __stub_$2 || defined __stub___$2
|
---|
1814 | choke me
|
---|
1815 | #endif
|
---|
1816 |
|
---|
1817 | int
|
---|
1818 | main ()
|
---|
1819 | {
|
---|
1820 | return $2 ();
|
---|
1821 | ;
|
---|
1822 | return 0;
|
---|
1823 | }
|
---|
1824 | _ACEOF
|
---|
1825 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
1826 | eval "$3=yes"
|
---|
1827 | else
|
---|
1828 | eval "$3=no"
|
---|
1829 | fi
|
---|
1830 | rm -f core conftest.err conftest.$ac_objext \
|
---|
1831 | conftest$ac_exeext conftest.$ac_ext
|
---|
1832 | fi
|
---|
1833 | eval ac_res=\$$3
|
---|
1834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1835 | $as_echo "$ac_res" >&6; }
|
---|
1836 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1837 |
|
---|
1838 | } # ac_fn_c_check_func
|
---|
1839 |
|
---|
1840 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
|
---|
1841 | # -------------------------------------------------------
|
---|
1842 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using
|
---|
1843 | # the include files in INCLUDES and setting the cache variable VAR
|
---|
1844 | # accordingly.
|
---|
1845 | ac_fn_c_check_header_mongrel ()
|
---|
1846 | {
|
---|
1847 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1848 | if eval \${$3+:} false; then :
|
---|
1849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1850 | $as_echo_n "checking for $2... " >&6; }
|
---|
1851 | if eval \${$3+:} false; then :
|
---|
1852 | $as_echo_n "(cached) " >&6
|
---|
1853 | fi
|
---|
1854 | eval ac_res=\$$3
|
---|
1855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1856 | $as_echo "$ac_res" >&6; }
|
---|
1857 | else
|
---|
1858 | # Is the header compilable?
|
---|
1859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
|
---|
1860 | $as_echo_n "checking $2 usability... " >&6; }
|
---|
1861 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1862 | /* end confdefs.h. */
|
---|
1863 | $4
|
---|
1864 | #include <$2>
|
---|
1865 | _ACEOF
|
---|
1866 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1867 | ac_header_compiler=yes
|
---|
1868 | else
|
---|
1869 | ac_header_compiler=no
|
---|
1870 | fi
|
---|
1871 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
|
---|
1873 | $as_echo "$ac_header_compiler" >&6; }
|
---|
1874 |
|
---|
1875 | # Is the header present?
|
---|
1876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
|
---|
1877 | $as_echo_n "checking $2 presence... " >&6; }
|
---|
1878 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1879 | /* end confdefs.h. */
|
---|
1880 | #include <$2>
|
---|
1881 | _ACEOF
|
---|
1882 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
1883 | ac_header_preproc=yes
|
---|
1884 | else
|
---|
1885 | ac_header_preproc=no
|
---|
1886 | fi
|
---|
1887 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
1888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
|
---|
1889 | $as_echo "$ac_header_preproc" >&6; }
|
---|
1890 |
|
---|
1891 | # So? What about this header?
|
---|
1892 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
|
---|
1893 | yes:no: )
|
---|
1894 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
1895 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
1896 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
---|
1897 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
---|
1898 | ;;
|
---|
1899 | no:yes:* )
|
---|
1900 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
|
---|
1901 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
|
---|
1902 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
|
---|
1903 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
|
---|
1904 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
|
---|
1905 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
|
---|
1906 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
|
---|
1907 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
1908 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
---|
1909 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
---|
1910 | ( $as_echo "## ---------------------------------- ##
|
---|
1911 | ## Report this to vorbis-dev@xiph.org ##
|
---|
1912 | ## ---------------------------------- ##"
|
---|
1913 | ) | sed "s/^/$as_me: WARNING: /" >&2
|
---|
1914 | ;;
|
---|
1915 | esac
|
---|
1916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1917 | $as_echo_n "checking for $2... " >&6; }
|
---|
1918 | if eval \${$3+:} false; then :
|
---|
1919 | $as_echo_n "(cached) " >&6
|
---|
1920 | else
|
---|
1921 | eval "$3=\$ac_header_compiler"
|
---|
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 | fi
|
---|
1927 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1928 |
|
---|
1929 | } # ac_fn_c_check_header_mongrel
|
---|
1930 |
|
---|
1931 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
|
---|
1932 | # -------------------------------------------
|
---|
1933 | # Tests whether TYPE exists after having included INCLUDES, setting cache
|
---|
1934 | # variable VAR accordingly.
|
---|
1935 | ac_fn_c_check_type ()
|
---|
1936 | {
|
---|
1937 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1939 | $as_echo_n "checking for $2... " >&6; }
|
---|
1940 | if eval \${$3+:} false; then :
|
---|
1941 | $as_echo_n "(cached) " >&6
|
---|
1942 | else
|
---|
1943 | eval "$3=no"
|
---|
1944 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1945 | /* end confdefs.h. */
|
---|
1946 | $4
|
---|
1947 | int
|
---|
1948 | main ()
|
---|
1949 | {
|
---|
1950 | if (sizeof ($2))
|
---|
1951 | return 0;
|
---|
1952 | ;
|
---|
1953 | return 0;
|
---|
1954 | }
|
---|
1955 | _ACEOF
|
---|
1956 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1957 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1958 | /* end confdefs.h. */
|
---|
1959 | $4
|
---|
1960 | int
|
---|
1961 | main ()
|
---|
1962 | {
|
---|
1963 | if (sizeof (($2)))
|
---|
1964 | return 0;
|
---|
1965 | ;
|
---|
1966 | return 0;
|
---|
1967 | }
|
---|
1968 | _ACEOF
|
---|
1969 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1970 |
|
---|
1971 | else
|
---|
1972 | eval "$3=yes"
|
---|
1973 | fi
|
---|
1974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1975 | fi
|
---|
1976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1977 | fi
|
---|
1978 | eval ac_res=\$$3
|
---|
1979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1980 | $as_echo "$ac_res" >&6; }
|
---|
1981 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1982 |
|
---|
1983 | } # ac_fn_c_check_type
|
---|
1984 | cat >config.log <<_ACEOF
|
---|
1985 | This file contains any messages produced by compilers while
|
---|
1986 | running configure, to aid debugging if configure makes a mistake.
|
---|
1987 |
|
---|
1988 | It was created by libvorbis $as_me 1.3.7, which was
|
---|
1989 | generated by GNU Autoconf 2.69. Invocation command line was
|
---|
1990 |
|
---|
1991 | $ $0 $@
|
---|
1992 |
|
---|
1993 | _ACEOF
|
---|
1994 | exec 5>>config.log
|
---|
1995 | {
|
---|
1996 | cat <<_ASUNAME
|
---|
1997 | ## --------- ##
|
---|
1998 | ## Platform. ##
|
---|
1999 | ## --------- ##
|
---|
2000 |
|
---|
2001 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
2002 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
2003 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
2004 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
2005 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
2006 |
|
---|
2007 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
2008 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
2009 |
|
---|
2010 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
2011 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
2012 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
2013 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
---|
2014 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
2015 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
2016 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
2017 |
|
---|
2018 | _ASUNAME
|
---|
2019 |
|
---|
2020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2021 | for as_dir in $PATH
|
---|
2022 | do
|
---|
2023 | IFS=$as_save_IFS
|
---|
2024 | test -z "$as_dir" && as_dir=.
|
---|
2025 | $as_echo "PATH: $as_dir"
|
---|
2026 | done
|
---|
2027 | IFS=$as_save_IFS
|
---|
2028 |
|
---|
2029 | } >&5
|
---|
2030 |
|
---|
2031 | cat >&5 <<_ACEOF
|
---|
2032 |
|
---|
2033 |
|
---|
2034 | ## ----------- ##
|
---|
2035 | ## Core tests. ##
|
---|
2036 | ## ----------- ##
|
---|
2037 |
|
---|
2038 | _ACEOF
|
---|
2039 |
|
---|
2040 |
|
---|
2041 | # Keep a trace of the command line.
|
---|
2042 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
2043 | # Strip out --silent because we don't want to record it for future runs.
|
---|
2044 | # Also quote any args containing shell meta-characters.
|
---|
2045 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
2046 | ac_configure_args=
|
---|
2047 | ac_configure_args0=
|
---|
2048 | ac_configure_args1=
|
---|
2049 | ac_must_keep_next=false
|
---|
2050 | for ac_pass in 1 2
|
---|
2051 | do
|
---|
2052 | for ac_arg
|
---|
2053 | do
|
---|
2054 | case $ac_arg in
|
---|
2055 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
2056 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
2057 | | -silent | --silent | --silen | --sile | --sil)
|
---|
2058 | continue ;;
|
---|
2059 | *\'*)
|
---|
2060 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
2061 | esac
|
---|
2062 | case $ac_pass in
|
---|
2063 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
|
---|
2064 | 2)
|
---|
2065 | as_fn_append ac_configure_args1 " '$ac_arg'"
|
---|
2066 | if test $ac_must_keep_next = true; then
|
---|
2067 | ac_must_keep_next=false # Got value, back to normal.
|
---|
2068 | else
|
---|
2069 | case $ac_arg in
|
---|
2070 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
2071 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
2072 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
2073 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
2074 | case "$ac_configure_args0 " in
|
---|
2075 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
2076 | esac
|
---|
2077 | ;;
|
---|
2078 | -* ) ac_must_keep_next=true ;;
|
---|
2079 | esac
|
---|
2080 | fi
|
---|
2081 | as_fn_append ac_configure_args " '$ac_arg'"
|
---|
2082 | ;;
|
---|
2083 | esac
|
---|
2084 | done
|
---|
2085 | done
|
---|
2086 | { ac_configure_args0=; unset ac_configure_args0;}
|
---|
2087 | { ac_configure_args1=; unset ac_configure_args1;}
|
---|
2088 |
|
---|
2089 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
2090 | # config.log. We remove comments because anyway the quotes in there
|
---|
2091 | # would cause problems or look ugly.
|
---|
2092 | # WARNING: Use '\'' to represent an apostrophe within the trap.
|
---|
2093 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
---|
2094 | trap 'exit_status=$?
|
---|
2095 | # Save into config.log some information that might help in debugging.
|
---|
2096 | {
|
---|
2097 | echo
|
---|
2098 |
|
---|
2099 | $as_echo "## ---------------- ##
|
---|
2100 | ## Cache variables. ##
|
---|
2101 | ## ---------------- ##"
|
---|
2102 | echo
|
---|
2103 | # The following way of writing the cache mishandles newlines in values,
|
---|
2104 | (
|
---|
2105 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
---|
2106 | eval ac_val=\$$ac_var
|
---|
2107 | case $ac_val in #(
|
---|
2108 | *${as_nl}*)
|
---|
2109 | case $ac_var in #(
|
---|
2110 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
2111 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
2112 | esac
|
---|
2113 | case $ac_var in #(
|
---|
2114 | _ | IFS | as_nl) ;; #(
|
---|
2115 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
2116 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
2117 | esac ;;
|
---|
2118 | esac
|
---|
2119 | done
|
---|
2120 | (set) 2>&1 |
|
---|
2121 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
---|
2122 | *${as_nl}ac_space=\ *)
|
---|
2123 | sed -n \
|
---|
2124 | "s/'\''/'\''\\\\'\'''\''/g;
|
---|
2125 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
---|
2126 | ;; #(
|
---|
2127 | *)
|
---|
2128 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
2129 | ;;
|
---|
2130 | esac |
|
---|
2131 | sort
|
---|
2132 | )
|
---|
2133 | echo
|
---|
2134 |
|
---|
2135 | $as_echo "## ----------------- ##
|
---|
2136 | ## Output variables. ##
|
---|
2137 | ## ----------------- ##"
|
---|
2138 | echo
|
---|
2139 | for ac_var in $ac_subst_vars
|
---|
2140 | do
|
---|
2141 | eval ac_val=\$$ac_var
|
---|
2142 | case $ac_val in
|
---|
2143 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
2144 | esac
|
---|
2145 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
2146 | done | sort
|
---|
2147 | echo
|
---|
2148 |
|
---|
2149 | if test -n "$ac_subst_files"; then
|
---|
2150 | $as_echo "## ------------------- ##
|
---|
2151 | ## File substitutions. ##
|
---|
2152 | ## ------------------- ##"
|
---|
2153 | echo
|
---|
2154 | for ac_var in $ac_subst_files
|
---|
2155 | do
|
---|
2156 | eval ac_val=\$$ac_var
|
---|
2157 | case $ac_val in
|
---|
2158 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
2159 | esac
|
---|
2160 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
2161 | done | sort
|
---|
2162 | echo
|
---|
2163 | fi
|
---|
2164 |
|
---|
2165 | if test -s confdefs.h; then
|
---|
2166 | $as_echo "## ----------- ##
|
---|
2167 | ## confdefs.h. ##
|
---|
2168 | ## ----------- ##"
|
---|
2169 | echo
|
---|
2170 | cat confdefs.h
|
---|
2171 | echo
|
---|
2172 | fi
|
---|
2173 | test "$ac_signal" != 0 &&
|
---|
2174 | $as_echo "$as_me: caught signal $ac_signal"
|
---|
2175 | $as_echo "$as_me: exit $exit_status"
|
---|
2176 | } >&5
|
---|
2177 | rm -f core *.core core.conftest.* &&
|
---|
2178 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
2179 | exit $exit_status
|
---|
2180 | ' 0
|
---|
2181 | for ac_signal in 1 2 13 15; do
|
---|
2182 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
|
---|
2183 | done
|
---|
2184 | ac_signal=0
|
---|
2185 |
|
---|
2186 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
2187 | rm -f -r conftest* confdefs.h
|
---|
2188 |
|
---|
2189 | $as_echo "/* confdefs.h */" > confdefs.h
|
---|
2190 |
|
---|
2191 | # Predefined preprocessor variables.
|
---|
2192 |
|
---|
2193 | cat >>confdefs.h <<_ACEOF
|
---|
2194 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
2195 | _ACEOF
|
---|
2196 |
|
---|
2197 | cat >>confdefs.h <<_ACEOF
|
---|
2198 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
2199 | _ACEOF
|
---|
2200 |
|
---|
2201 | cat >>confdefs.h <<_ACEOF
|
---|
2202 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
2203 | _ACEOF
|
---|
2204 |
|
---|
2205 | cat >>confdefs.h <<_ACEOF
|
---|
2206 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
2207 | _ACEOF
|
---|
2208 |
|
---|
2209 | cat >>confdefs.h <<_ACEOF
|
---|
2210 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
2211 | _ACEOF
|
---|
2212 |
|
---|
2213 | cat >>confdefs.h <<_ACEOF
|
---|
2214 | #define PACKAGE_URL "$PACKAGE_URL"
|
---|
2215 | _ACEOF
|
---|
2216 |
|
---|
2217 |
|
---|
2218 | # Let the site file select an alternate cache file if it wants to.
|
---|
2219 | # Prefer an explicitly selected file to automatically selected ones.
|
---|
2220 | ac_site_file1=NONE
|
---|
2221 | ac_site_file2=NONE
|
---|
2222 | if test -n "$CONFIG_SITE"; then
|
---|
2223 | # We do not want a PATH search for config.site.
|
---|
2224 | case $CONFIG_SITE in #((
|
---|
2225 | -*) ac_site_file1=./$CONFIG_SITE;;
|
---|
2226 | */*) ac_site_file1=$CONFIG_SITE;;
|
---|
2227 | *) ac_site_file1=./$CONFIG_SITE;;
|
---|
2228 | esac
|
---|
2229 | elif test "x$prefix" != xNONE; then
|
---|
2230 | ac_site_file1=$prefix/share/config.site
|
---|
2231 | ac_site_file2=$prefix/etc/config.site
|
---|
2232 | else
|
---|
2233 | ac_site_file1=$ac_default_prefix/share/config.site
|
---|
2234 | ac_site_file2=$ac_default_prefix/etc/config.site
|
---|
2235 | fi
|
---|
2236 | for ac_site_file in "$ac_site_file1" "$ac_site_file2"
|
---|
2237 | do
|
---|
2238 | test "x$ac_site_file" = xNONE && continue
|
---|
2239 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
|
---|
2240 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
|
---|
2241 | $as_echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
2242 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
2243 | . "$ac_site_file" \
|
---|
2244 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2245 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2246 | as_fn_error $? "failed to load site script $ac_site_file
|
---|
2247 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
2248 | fi
|
---|
2249 | done
|
---|
2250 |
|
---|
2251 | if test -r "$cache_file"; then
|
---|
2252 | # Some versions of bash will fail to source /dev/null (special files
|
---|
2253 | # actually), so we avoid doing that. DJGPP emulates it as a regular file.
|
---|
2254 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then
|
---|
2255 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
|
---|
2256 | $as_echo "$as_me: loading cache $cache_file" >&6;}
|
---|
2257 | case $cache_file in
|
---|
2258 | [\\/]* | ?:[\\/]* ) . "$cache_file";;
|
---|
2259 | *) . "./$cache_file";;
|
---|
2260 | esac
|
---|
2261 | fi
|
---|
2262 | else
|
---|
2263 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
|
---|
2264 | $as_echo "$as_me: creating cache $cache_file" >&6;}
|
---|
2265 | >$cache_file
|
---|
2266 | fi
|
---|
2267 |
|
---|
2268 | # Check that the precious variables saved in the cache have kept the same
|
---|
2269 | # value.
|
---|
2270 | ac_cache_corrupted=false
|
---|
2271 | for ac_var in $ac_precious_vars; do
|
---|
2272 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
2273 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
2274 | eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
---|
2275 | eval ac_new_val=\$ac_env_${ac_var}_value
|
---|
2276 | case $ac_old_set,$ac_new_set in
|
---|
2277 | set,)
|
---|
2278 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
2279 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
2280 | ac_cache_corrupted=: ;;
|
---|
2281 | ,set)
|
---|
2282 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
|
---|
2283 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
2284 | ac_cache_corrupted=: ;;
|
---|
2285 | ,);;
|
---|
2286 | *)
|
---|
2287 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
2288 | # differences in whitespace do not lead to failure.
|
---|
2289 | ac_old_val_w=`echo x $ac_old_val`
|
---|
2290 | ac_new_val_w=`echo x $ac_new_val`
|
---|
2291 | if test "$ac_old_val_w" != "$ac_new_val_w"; then
|
---|
2292 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
2293 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
2294 | ac_cache_corrupted=:
|
---|
2295 | else
|
---|
2296 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
|
---|
2297 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
|
---|
2298 | eval $ac_var=\$ac_old_val
|
---|
2299 | fi
|
---|
2300 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
|
---|
2301 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
|
---|
2302 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
|
---|
2303 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
|
---|
2304 | fi;;
|
---|
2305 | esac
|
---|
2306 | # Pass precious variables to config.status.
|
---|
2307 | if test "$ac_new_set" = set; then
|
---|
2308 | case $ac_new_val in
|
---|
2309 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
2310 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
2311 | esac
|
---|
2312 | case " $ac_configure_args " in
|
---|
2313 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
2314 | *) as_fn_append ac_configure_args " '$ac_arg'" ;;
|
---|
2315 | esac
|
---|
2316 | fi
|
---|
2317 | done
|
---|
2318 | if $ac_cache_corrupted; then
|
---|
2319 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2320 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2321 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
|
---|
2322 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
2323 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
|
---|
2324 | fi
|
---|
2325 | ## -------------------- ##
|
---|
2326 | ## Main body of script. ##
|
---|
2327 | ## -------------------- ##
|
---|
2328 |
|
---|
2329 | ac_ext=c
|
---|
2330 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2331 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2332 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2333 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2334 |
|
---|
2335 |
|
---|
2336 |
|
---|
2337 |
|
---|
2338 |
|
---|
2339 |
|
---|
2340 |
|
---|
2341 | ac_aux_dir=
|
---|
2342 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
---|
2343 | if test -f "$ac_dir/install-sh"; then
|
---|
2344 | ac_aux_dir=$ac_dir
|
---|
2345 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
2346 | break
|
---|
2347 | elif test -f "$ac_dir/install.sh"; then
|
---|
2348 | ac_aux_dir=$ac_dir
|
---|
2349 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
2350 | break
|
---|
2351 | elif test -f "$ac_dir/shtool"; then
|
---|
2352 | ac_aux_dir=$ac_dir
|
---|
2353 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
2354 | break
|
---|
2355 | fi
|
---|
2356 | done
|
---|
2357 | if test -z "$ac_aux_dir"; then
|
---|
2358 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
|
---|
2359 | fi
|
---|
2360 |
|
---|
2361 | # These three variables are undocumented and unsupported,
|
---|
2362 | # and are intended to be withdrawn in a future Autoconf release.
|
---|
2363 | # They can cause serious problems if a builder's source tree is in a directory
|
---|
2364 | # whose full name contains unusual characters.
|
---|
2365 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
---|
2366 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
---|
2367 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
---|
2368 |
|
---|
2369 |
|
---|
2370 | # Make sure we can run config.sub.
|
---|
2371 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
---|
2372 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
|
---|
2373 |
|
---|
2374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
|
---|
2375 | $as_echo_n "checking build system type... " >&6; }
|
---|
2376 | if ${ac_cv_build+:} false; then :
|
---|
2377 | $as_echo_n "(cached) " >&6
|
---|
2378 | else
|
---|
2379 | ac_build_alias=$build_alias
|
---|
2380 | test "x$ac_build_alias" = x &&
|
---|
2381 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
---|
2382 | test "x$ac_build_alias" = x &&
|
---|
2383 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
|
---|
2384 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
---|
2385 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
|
---|
2386 |
|
---|
2387 | fi
|
---|
2388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
|
---|
2389 | $as_echo "$ac_cv_build" >&6; }
|
---|
2390 | case $ac_cv_build in
|
---|
2391 | *-*-*) ;;
|
---|
2392 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
|
---|
2393 | esac
|
---|
2394 | build=$ac_cv_build
|
---|
2395 | ac_save_IFS=$IFS; IFS='-'
|
---|
2396 | set x $ac_cv_build
|
---|
2397 | shift
|
---|
2398 | build_cpu=$1
|
---|
2399 | build_vendor=$2
|
---|
2400 | shift; shift
|
---|
2401 | # Remember, the first character of IFS is used to create $*,
|
---|
2402 | # except with old shells:
|
---|
2403 | build_os=$*
|
---|
2404 | IFS=$ac_save_IFS
|
---|
2405 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
---|
2406 |
|
---|
2407 |
|
---|
2408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
|
---|
2409 | $as_echo_n "checking host system type... " >&6; }
|
---|
2410 | if ${ac_cv_host+:} false; then :
|
---|
2411 | $as_echo_n "(cached) " >&6
|
---|
2412 | else
|
---|
2413 | if test "x$host_alias" = x; then
|
---|
2414 | ac_cv_host=$ac_cv_build
|
---|
2415 | else
|
---|
2416 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
---|
2417 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
|
---|
2418 | fi
|
---|
2419 |
|
---|
2420 | fi
|
---|
2421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
|
---|
2422 | $as_echo "$ac_cv_host" >&6; }
|
---|
2423 | case $ac_cv_host in
|
---|
2424 | *-*-*) ;;
|
---|
2425 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
|
---|
2426 | esac
|
---|
2427 | host=$ac_cv_host
|
---|
2428 | ac_save_IFS=$IFS; IFS='-'
|
---|
2429 | set x $ac_cv_host
|
---|
2430 | shift
|
---|
2431 | host_cpu=$1
|
---|
2432 | host_vendor=$2
|
---|
2433 | shift; shift
|
---|
2434 | # Remember, the first character of IFS is used to create $*,
|
---|
2435 | # except with old shells:
|
---|
2436 | host_os=$*
|
---|
2437 | IFS=$ac_save_IFS
|
---|
2438 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
---|
2439 |
|
---|
2440 |
|
---|
2441 |
|
---|
2442 | am__api_version='1.16'
|
---|
2443 |
|
---|
2444 | # Find a good install program. We prefer a C program (faster),
|
---|
2445 | # so one script is as good as another. But avoid the broken or
|
---|
2446 | # incompatible versions:
|
---|
2447 | # SysV /etc/install, /usr/sbin/install
|
---|
2448 | # SunOS /usr/etc/install
|
---|
2449 | # IRIX /sbin/install
|
---|
2450 | # AIX /bin/install
|
---|
2451 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
2452 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
2453 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
2454 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
2455 | # OS/2's system install, which has a completely different semantic
|
---|
2456 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
2457 | # Reject install programs that cannot install multiple files.
|
---|
2458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
|
---|
2459 | $as_echo_n "checking for a BSD-compatible install... " >&6; }
|
---|
2460 | if test -z "$INSTALL"; then
|
---|
2461 | if ${ac_cv_path_install+:} false; then :
|
---|
2462 | $as_echo_n "(cached) " >&6
|
---|
2463 | else
|
---|
2464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2465 | for as_dir in $PATH
|
---|
2466 | do
|
---|
2467 | IFS=$as_save_IFS
|
---|
2468 | test -z "$as_dir" && as_dir=.
|
---|
2469 | # Account for people who put trailing slashes in PATH elements.
|
---|
2470 | case $as_dir/ in #((
|
---|
2471 | ./ | .// | /[cC]/* | \
|
---|
2472 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
2473 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
|
---|
2474 | /usr/ucb/* ) ;;
|
---|
2475 | *)
|
---|
2476 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
2477 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
2478 | # by default.
|
---|
2479 | for ac_prog in ginstall scoinst install; do
|
---|
2480 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2481 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
2482 | if test $ac_prog = install &&
|
---|
2483 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
2484 | # AIX install. It has an incompatible calling convention.
|
---|
2485 | :
|
---|
2486 | elif test $ac_prog = install &&
|
---|
2487 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
2488 | # program-specific install script used by HP pwplus--don't use.
|
---|
2489 | :
|
---|
2490 | else
|
---|
2491 | rm -rf conftest.one conftest.two conftest.dir
|
---|
2492 | echo one > conftest.one
|
---|
2493 | echo two > conftest.two
|
---|
2494 | mkdir conftest.dir
|
---|
2495 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
|
---|
2496 | test -s conftest.one && test -s conftest.two &&
|
---|
2497 | test -s conftest.dir/conftest.one &&
|
---|
2498 | test -s conftest.dir/conftest.two
|
---|
2499 | then
|
---|
2500 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
2501 | break 3
|
---|
2502 | fi
|
---|
2503 | fi
|
---|
2504 | fi
|
---|
2505 | done
|
---|
2506 | done
|
---|
2507 | ;;
|
---|
2508 | esac
|
---|
2509 |
|
---|
2510 | done
|
---|
2511 | IFS=$as_save_IFS
|
---|
2512 |
|
---|
2513 | rm -rf conftest.one conftest.two conftest.dir
|
---|
2514 |
|
---|
2515 | fi
|
---|
2516 | if test "${ac_cv_path_install+set}" = set; then
|
---|
2517 | INSTALL=$ac_cv_path_install
|
---|
2518 | else
|
---|
2519 | # As a last resort, use the slow shell script. Don't cache a
|
---|
2520 | # value for INSTALL within a source directory, because that will
|
---|
2521 | # break other packages using the cache if that directory is
|
---|
2522 | # removed, or if the value is a relative name.
|
---|
2523 | INSTALL=$ac_install_sh
|
---|
2524 | fi
|
---|
2525 | fi
|
---|
2526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
|
---|
2527 | $as_echo "$INSTALL" >&6; }
|
---|
2528 |
|
---|
2529 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
2530 | # It thinks the first close brace ends the variable substitution.
|
---|
2531 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
2532 |
|
---|
2533 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
2534 |
|
---|
2535 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
2536 |
|
---|
2537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
|
---|
2538 | $as_echo_n "checking whether build environment is sane... " >&6; }
|
---|
2539 | # Reject unsafe characters in $srcdir or the absolute working directory
|
---|
2540 | # name. Accept space and tab only in the latter.
|
---|
2541 | am_lf='
|
---|
2542 | '
|
---|
2543 | case `pwd` in
|
---|
2544 | *[\\\"\#\$\&\'\`$am_lf]*)
|
---|
2545 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
|
---|
2546 | esac
|
---|
2547 | case $srcdir in
|
---|
2548 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
|
---|
2549 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
|
---|
2550 | esac
|
---|
2551 |
|
---|
2552 | # Do 'set' in a subshell so we don't clobber the current shell's
|
---|
2553 | # arguments. Must try -L first in case configure is actually a
|
---|
2554 | # symlink; some systems play weird games with the mod time of symlinks
|
---|
2555 | # (eg FreeBSD returns the mod time of the symlink's containing
|
---|
2556 | # directory).
|
---|
2557 | if (
|
---|
2558 | am_has_slept=no
|
---|
2559 | for am_try in 1 2; do
|
---|
2560 | echo "timestamp, slept: $am_has_slept" > conftest.file
|
---|
2561 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
|
---|
2562 | if test "$*" = "X"; then
|
---|
2563 | # -L didn't work.
|
---|
2564 | set X `ls -t "$srcdir/configure" conftest.file`
|
---|
2565 | fi
|
---|
2566 | if test "$*" != "X $srcdir/configure conftest.file" \
|
---|
2567 | && test "$*" != "X conftest.file $srcdir/configure"; then
|
---|
2568 |
|
---|
2569 | # If neither matched, then we have a broken ls. This can happen
|
---|
2570 | # if, for instance, CONFIG_SHELL is bash and it inherits a
|
---|
2571 | # broken ls alias from the environment. This has actually
|
---|
2572 | # happened. Such a system could not be considered "sane".
|
---|
2573 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
|
---|
2574 | alias in your environment" "$LINENO" 5
|
---|
2575 | fi
|
---|
2576 | if test "$2" = conftest.file || test $am_try -eq 2; then
|
---|
2577 | break
|
---|
2578 | fi
|
---|
2579 | # Just in case.
|
---|
2580 | sleep 1
|
---|
2581 | am_has_slept=yes
|
---|
2582 | done
|
---|
2583 | test "$2" = conftest.file
|
---|
2584 | )
|
---|
2585 | then
|
---|
2586 | # Ok.
|
---|
2587 | :
|
---|
2588 | else
|
---|
2589 | as_fn_error $? "newly created file is older than distributed files!
|
---|
2590 | Check your system clock" "$LINENO" 5
|
---|
2591 | fi
|
---|
2592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
2593 | $as_echo "yes" >&6; }
|
---|
2594 | # If we didn't sleep, we still need to ensure time stamps of config.status and
|
---|
2595 | # generated files are strictly newer.
|
---|
2596 | am_sleep_pid=
|
---|
2597 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then
|
---|
2598 | ( sleep 1 ) &
|
---|
2599 | am_sleep_pid=$!
|
---|
2600 | fi
|
---|
2601 |
|
---|
2602 | rm -f conftest.file
|
---|
2603 |
|
---|
2604 | test "$program_prefix" != NONE &&
|
---|
2605 | program_transform_name="s&^&$program_prefix&;$program_transform_name"
|
---|
2606 | # Use a double $ so make ignores it.
|
---|
2607 | test "$program_suffix" != NONE &&
|
---|
2608 | program_transform_name="s&\$&$program_suffix&;$program_transform_name"
|
---|
2609 | # Double any \ or $.
|
---|
2610 | # By default was `s,x,x', remove it if useless.
|
---|
2611 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
|
---|
2612 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
|
---|
2613 |
|
---|
2614 | # Expand $ac_aux_dir to an absolute path.
|
---|
2615 | am_aux_dir=`cd "$ac_aux_dir" && pwd`
|
---|
2616 |
|
---|
2617 | if test x"${MISSING+set}" != xset; then
|
---|
2618 | case $am_aux_dir in
|
---|
2619 | *\ * | *\ *)
|
---|
2620 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
|
---|
2621 | *)
|
---|
2622 | MISSING="\${SHELL} $am_aux_dir/missing" ;;
|
---|
2623 | esac
|
---|
2624 | fi
|
---|
2625 | # Use eval to expand $SHELL
|
---|
2626 | if eval "$MISSING --is-lightweight"; then
|
---|
2627 | am_missing_run="$MISSING "
|
---|
2628 | else
|
---|
2629 | am_missing_run=
|
---|
2630 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
|
---|
2631 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
|
---|
2632 | fi
|
---|
2633 |
|
---|
2634 | if test x"${install_sh+set}" != xset; then
|
---|
2635 | case $am_aux_dir in
|
---|
2636 | *\ * | *\ *)
|
---|
2637 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
|
---|
2638 | *)
|
---|
2639 | install_sh="\${SHELL} $am_aux_dir/install-sh"
|
---|
2640 | esac
|
---|
2641 | fi
|
---|
2642 |
|
---|
2643 | # Installed binaries are usually stripped using 'strip' when the user
|
---|
2644 | # run "make install-strip". However 'strip' might not be the right
|
---|
2645 | # tool to use in cross-compilation environments, therefore Automake
|
---|
2646 | # will honor the 'STRIP' environment variable to overrule this program.
|
---|
2647 | if test "$cross_compiling" != no; then
|
---|
2648 | if test -n "$ac_tool_prefix"; then
|
---|
2649 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
---|
2650 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
---|
2651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2652 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2653 | if ${ac_cv_prog_STRIP+:} false; then :
|
---|
2654 | $as_echo_n "(cached) " >&6
|
---|
2655 | else
|
---|
2656 | if test -n "$STRIP"; then
|
---|
2657 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
2658 | else
|
---|
2659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2660 | for as_dir in $PATH
|
---|
2661 | do
|
---|
2662 | IFS=$as_save_IFS
|
---|
2663 | test -z "$as_dir" && as_dir=.
|
---|
2664 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2665 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2666 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
---|
2667 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2668 | break 2
|
---|
2669 | fi
|
---|
2670 | done
|
---|
2671 | done
|
---|
2672 | IFS=$as_save_IFS
|
---|
2673 |
|
---|
2674 | fi
|
---|
2675 | fi
|
---|
2676 | STRIP=$ac_cv_prog_STRIP
|
---|
2677 | if test -n "$STRIP"; then
|
---|
2678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
|
---|
2679 | $as_echo "$STRIP" >&6; }
|
---|
2680 | else
|
---|
2681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2682 | $as_echo "no" >&6; }
|
---|
2683 | fi
|
---|
2684 |
|
---|
2685 |
|
---|
2686 | fi
|
---|
2687 | if test -z "$ac_cv_prog_STRIP"; then
|
---|
2688 | ac_ct_STRIP=$STRIP
|
---|
2689 | # Extract the first word of "strip", so it can be a program name with args.
|
---|
2690 | set dummy strip; ac_word=$2
|
---|
2691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2692 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2693 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
|
---|
2694 | $as_echo_n "(cached) " >&6
|
---|
2695 | else
|
---|
2696 | if test -n "$ac_ct_STRIP"; then
|
---|
2697 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
---|
2698 | else
|
---|
2699 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2700 | for as_dir in $PATH
|
---|
2701 | do
|
---|
2702 | IFS=$as_save_IFS
|
---|
2703 | test -z "$as_dir" && as_dir=.
|
---|
2704 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2705 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2706 | ac_cv_prog_ac_ct_STRIP="strip"
|
---|
2707 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2708 | break 2
|
---|
2709 | fi
|
---|
2710 | done
|
---|
2711 | done
|
---|
2712 | IFS=$as_save_IFS
|
---|
2713 |
|
---|
2714 | fi
|
---|
2715 | fi
|
---|
2716 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
---|
2717 | if test -n "$ac_ct_STRIP"; then
|
---|
2718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
|
---|
2719 | $as_echo "$ac_ct_STRIP" >&6; }
|
---|
2720 | else
|
---|
2721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2722 | $as_echo "no" >&6; }
|
---|
2723 | fi
|
---|
2724 |
|
---|
2725 | if test "x$ac_ct_STRIP" = x; then
|
---|
2726 | STRIP=":"
|
---|
2727 | else
|
---|
2728 | case $cross_compiling:$ac_tool_warned in
|
---|
2729 | yes:)
|
---|
2730 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
2731 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
2732 | ac_tool_warned=yes ;;
|
---|
2733 | esac
|
---|
2734 | STRIP=$ac_ct_STRIP
|
---|
2735 | fi
|
---|
2736 | else
|
---|
2737 | STRIP="$ac_cv_prog_STRIP"
|
---|
2738 | fi
|
---|
2739 |
|
---|
2740 | fi
|
---|
2741 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
|
---|
2742 |
|
---|
2743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
|
---|
2744 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
|
---|
2745 | if test -z "$MKDIR_P"; then
|
---|
2746 | if ${ac_cv_path_mkdir+:} false; then :
|
---|
2747 | $as_echo_n "(cached) " >&6
|
---|
2748 | else
|
---|
2749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2750 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
|
---|
2751 | do
|
---|
2752 | IFS=$as_save_IFS
|
---|
2753 | test -z "$as_dir" && as_dir=.
|
---|
2754 | for ac_prog in mkdir gmkdir; do
|
---|
2755 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2756 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
|
---|
2757 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
|
---|
2758 | 'mkdir (GNU coreutils) '* | \
|
---|
2759 | 'mkdir (coreutils) '* | \
|
---|
2760 | 'mkdir (fileutils) '4.1*)
|
---|
2761 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
|
---|
2762 | break 3;;
|
---|
2763 | esac
|
---|
2764 | done
|
---|
2765 | done
|
---|
2766 | done
|
---|
2767 | IFS=$as_save_IFS
|
---|
2768 |
|
---|
2769 | fi
|
---|
2770 |
|
---|
2771 | test -d ./--version && rmdir ./--version
|
---|
2772 | if test "${ac_cv_path_mkdir+set}" = set; then
|
---|
2773 | MKDIR_P="$ac_cv_path_mkdir -p"
|
---|
2774 | else
|
---|
2775 | # As a last resort, use the slow shell script. Don't cache a
|
---|
2776 | # value for MKDIR_P within a source directory, because that will
|
---|
2777 | # break other packages using the cache if that directory is
|
---|
2778 | # removed, or if the value is a relative name.
|
---|
2779 | MKDIR_P="$ac_install_sh -d"
|
---|
2780 | fi
|
---|
2781 | fi
|
---|
2782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
|
---|
2783 | $as_echo "$MKDIR_P" >&6; }
|
---|
2784 |
|
---|
2785 | for ac_prog in gawk mawk nawk awk
|
---|
2786 | do
|
---|
2787 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2788 | set dummy $ac_prog; ac_word=$2
|
---|
2789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2790 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2791 | if ${ac_cv_prog_AWK+:} false; then :
|
---|
2792 | $as_echo_n "(cached) " >&6
|
---|
2793 | else
|
---|
2794 | if test -n "$AWK"; then
|
---|
2795 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
2796 | else
|
---|
2797 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2798 | for as_dir in $PATH
|
---|
2799 | do
|
---|
2800 | IFS=$as_save_IFS
|
---|
2801 | test -z "$as_dir" && as_dir=.
|
---|
2802 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2803 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2804 | ac_cv_prog_AWK="$ac_prog"
|
---|
2805 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2806 | break 2
|
---|
2807 | fi
|
---|
2808 | done
|
---|
2809 | done
|
---|
2810 | IFS=$as_save_IFS
|
---|
2811 |
|
---|
2812 | fi
|
---|
2813 | fi
|
---|
2814 | AWK=$ac_cv_prog_AWK
|
---|
2815 | if test -n "$AWK"; then
|
---|
2816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
|
---|
2817 | $as_echo "$AWK" >&6; }
|
---|
2818 | else
|
---|
2819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2820 | $as_echo "no" >&6; }
|
---|
2821 | fi
|
---|
2822 |
|
---|
2823 |
|
---|
2824 | test -n "$AWK" && break
|
---|
2825 | done
|
---|
2826 |
|
---|
2827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
2828 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
|
---|
2829 | set x ${MAKE-make}
|
---|
2830 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
---|
2831 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
|
---|
2832 | $as_echo_n "(cached) " >&6
|
---|
2833 | else
|
---|
2834 | cat >conftest.make <<\_ACEOF
|
---|
2835 | SHELL = /bin/sh
|
---|
2836 | all:
|
---|
2837 | @echo '@@@%%%=$(MAKE)=@@@%%%'
|
---|
2838 | _ACEOF
|
---|
2839 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
|
---|
2840 | case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
---|
2841 | *@@@%%%=?*=@@@%%%*)
|
---|
2842 | eval ac_cv_prog_make_${ac_make}_set=yes;;
|
---|
2843 | *)
|
---|
2844 | eval ac_cv_prog_make_${ac_make}_set=no;;
|
---|
2845 | esac
|
---|
2846 | rm -f conftest.make
|
---|
2847 | fi
|
---|
2848 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
---|
2849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
2850 | $as_echo "yes" >&6; }
|
---|
2851 | SET_MAKE=
|
---|
2852 | else
|
---|
2853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2854 | $as_echo "no" >&6; }
|
---|
2855 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
2856 | fi
|
---|
2857 |
|
---|
2858 | rm -rf .tst 2>/dev/null
|
---|
2859 | mkdir .tst 2>/dev/null
|
---|
2860 | if test -d .tst; then
|
---|
2861 | am__leading_dot=.
|
---|
2862 | else
|
---|
2863 | am__leading_dot=_
|
---|
2864 | fi
|
---|
2865 | rmdir .tst 2>/dev/null
|
---|
2866 |
|
---|
2867 | # Check whether --enable-silent-rules was given.
|
---|
2868 | if test "${enable_silent_rules+set}" = set; then :
|
---|
2869 | enableval=$enable_silent_rules;
|
---|
2870 | fi
|
---|
2871 |
|
---|
2872 | case $enable_silent_rules in # (((
|
---|
2873 | yes) AM_DEFAULT_VERBOSITY=0;;
|
---|
2874 | no) AM_DEFAULT_VERBOSITY=1;;
|
---|
2875 | *) AM_DEFAULT_VERBOSITY=1;;
|
---|
2876 | esac
|
---|
2877 | am_make=${MAKE-make}
|
---|
2878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
|
---|
2879 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
|
---|
2880 | if ${am_cv_make_support_nested_variables+:} false; then :
|
---|
2881 | $as_echo_n "(cached) " >&6
|
---|
2882 | else
|
---|
2883 | if $as_echo 'TRUE=$(BAR$(V))
|
---|
2884 | BAR0=false
|
---|
2885 | BAR1=true
|
---|
2886 | V=1
|
---|
2887 | am__doit:
|
---|
2888 | @$(TRUE)
|
---|
2889 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
|
---|
2890 | am_cv_make_support_nested_variables=yes
|
---|
2891 | else
|
---|
2892 | am_cv_make_support_nested_variables=no
|
---|
2893 | fi
|
---|
2894 | fi
|
---|
2895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
|
---|
2896 | $as_echo "$am_cv_make_support_nested_variables" >&6; }
|
---|
2897 | if test $am_cv_make_support_nested_variables = yes; then
|
---|
2898 | AM_V='$(V)'
|
---|
2899 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
|
---|
2900 | else
|
---|
2901 | AM_V=$AM_DEFAULT_VERBOSITY
|
---|
2902 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
|
---|
2903 | fi
|
---|
2904 | AM_BACKSLASH='\'
|
---|
2905 |
|
---|
2906 | if test "`cd $srcdir && pwd`" != "`pwd`"; then
|
---|
2907 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
|
---|
2908 | # is not polluted with repeated "-I."
|
---|
2909 | am__isrc=' -I$(srcdir)'
|
---|
2910 | # test to see if srcdir already configured
|
---|
2911 | if test -f $srcdir/config.status; then
|
---|
2912 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
|
---|
2913 | fi
|
---|
2914 | fi
|
---|
2915 |
|
---|
2916 | # test whether we have cygpath
|
---|
2917 | if test -z "$CYGPATH_W"; then
|
---|
2918 | if (cygpath --version) >/dev/null 2>/dev/null; then
|
---|
2919 | CYGPATH_W='cygpath -w'
|
---|
2920 | else
|
---|
2921 | CYGPATH_W=echo
|
---|
2922 | fi
|
---|
2923 | fi
|
---|
2924 |
|
---|
2925 |
|
---|
2926 | # Define the identity of the package.
|
---|
2927 | PACKAGE='libvorbis'
|
---|
2928 | VERSION='1.3.7'
|
---|
2929 |
|
---|
2930 |
|
---|
2931 | cat >>confdefs.h <<_ACEOF
|
---|
2932 | #define PACKAGE "$PACKAGE"
|
---|
2933 | _ACEOF
|
---|
2934 |
|
---|
2935 |
|
---|
2936 | cat >>confdefs.h <<_ACEOF
|
---|
2937 | #define VERSION "$VERSION"
|
---|
2938 | _ACEOF
|
---|
2939 |
|
---|
2940 | # Some tools Automake needs.
|
---|
2941 |
|
---|
2942 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
|
---|
2943 |
|
---|
2944 |
|
---|
2945 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
|
---|
2946 |
|
---|
2947 |
|
---|
2948 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
|
---|
2949 |
|
---|
2950 |
|
---|
2951 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
|
---|
2952 |
|
---|
2953 |
|
---|
2954 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
|
---|
2955 |
|
---|
2956 | # For better backward compatibility. To be removed once Automake 1.9.x
|
---|
2957 | # dies out for good. For more background, see:
|
---|
2958 | # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
|
---|
2959 | # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
|
---|
2960 | mkdir_p='$(MKDIR_P)'
|
---|
2961 |
|
---|
2962 | # We need awk for the "check" target (and possibly the TAP driver). The
|
---|
2963 | # system "awk" is bad on some platforms.
|
---|
2964 | # Always define AMTAR for backward compatibility. Yes, it's still used
|
---|
2965 | # in the wild :-( We should find a proper way to deprecate it ...
|
---|
2966 | AMTAR='$${TAR-tar}'
|
---|
2967 |
|
---|
2968 |
|
---|
2969 | # We'll loop over all known methods to create a tar archive until one works.
|
---|
2970 | _am_tools='gnutar pax cpio none'
|
---|
2971 |
|
---|
2972 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
|
---|
2973 |
|
---|
2974 |
|
---|
2975 |
|
---|
2976 |
|
---|
2977 |
|
---|
2978 |
|
---|
2979 | # POSIX will say in a future version that running "rm -f" with no argument
|
---|
2980 | # is OK; and we want to be able to make that assumption in our Makefile
|
---|
2981 | # recipes. So use an aggressive probe to check that the usage we want is
|
---|
2982 | # actually supported "in the wild" to an acceptable degree.
|
---|
2983 | # See automake bug#10828.
|
---|
2984 | # To make any issue more visible, cause the running configure to be aborted
|
---|
2985 | # by default if the 'rm' program in use doesn't match our expectations; the
|
---|
2986 | # user can still override this though.
|
---|
2987 | if rm -f && rm -fr && rm -rf; then : OK; else
|
---|
2988 | cat >&2 <<'END'
|
---|
2989 | Oops!
|
---|
2990 |
|
---|
2991 | Your 'rm' program seems unable to run without file operands specified
|
---|
2992 | on the command line, even when the '-f' option is present. This is contrary
|
---|
2993 | to the behaviour of most rm programs out there, and not conforming with
|
---|
2994 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
|
---|
2995 |
|
---|
2996 | Please tell bug-automake@gnu.org about your system, including the value
|
---|
2997 | of your $PATH and any error possibly output before this message. This
|
---|
2998 | can help us improve future automake versions.
|
---|
2999 |
|
---|
3000 | END
|
---|
3001 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
|
---|
3002 | echo 'Configuration will proceed anyway, since you have set the' >&2
|
---|
3003 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
|
---|
3004 | echo >&2
|
---|
3005 | else
|
---|
3006 | cat >&2 <<'END'
|
---|
3007 | Aborting the configuration process, to ensure you take notice of the issue.
|
---|
3008 |
|
---|
3009 | You can download and install GNU coreutils to get an 'rm' implementation
|
---|
3010 | that behaves properly: <https://www.gnu.org/software/coreutils/>.
|
---|
3011 |
|
---|
3012 | If you want to complete the configuration process using your problematic
|
---|
3013 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
|
---|
3014 | to "yes", and re-run configure.
|
---|
3015 |
|
---|
3016 | END
|
---|
3017 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
|
---|
3018 | fi
|
---|
3019 | fi
|
---|
3020 |
|
---|
3021 |
|
---|
3022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
|
---|
3023 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
|
---|
3024 | # Check whether --enable-maintainer-mode was given.
|
---|
3025 | if test "${enable_maintainer_mode+set}" = set; then :
|
---|
3026 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
|
---|
3027 | else
|
---|
3028 | USE_MAINTAINER_MODE=no
|
---|
3029 | fi
|
---|
3030 |
|
---|
3031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
|
---|
3032 | $as_echo "$USE_MAINTAINER_MODE" >&6; }
|
---|
3033 | if test $USE_MAINTAINER_MODE = yes; then
|
---|
3034 | MAINTAINER_MODE_TRUE=
|
---|
3035 | MAINTAINER_MODE_FALSE='#'
|
---|
3036 | else
|
---|
3037 | MAINTAINER_MODE_TRUE='#'
|
---|
3038 | MAINTAINER_MODE_FALSE=
|
---|
3039 | fi
|
---|
3040 |
|
---|
3041 | MAINT=$MAINTAINER_MODE_TRUE
|
---|
3042 |
|
---|
3043 |
|
---|
3044 |
|
---|
3045 | ACLOCAL_AMFLAGS="-I m4"
|
---|
3046 |
|
---|
3047 |
|
---|
3048 | # Check whether --enable-silent-rules was given.
|
---|
3049 | if test "${enable_silent_rules+set}" = set; then :
|
---|
3050 | enableval=$enable_silent_rules;
|
---|
3051 | fi
|
---|
3052 |
|
---|
3053 | case $enable_silent_rules in # (((
|
---|
3054 | yes) AM_DEFAULT_VERBOSITY=0;;
|
---|
3055 | no) AM_DEFAULT_VERBOSITY=1;;
|
---|
3056 | *) AM_DEFAULT_VERBOSITY=0;;
|
---|
3057 | esac
|
---|
3058 | am_make=${MAKE-make}
|
---|
3059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
|
---|
3060 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
|
---|
3061 | if ${am_cv_make_support_nested_variables+:} false; then :
|
---|
3062 | $as_echo_n "(cached) " >&6
|
---|
3063 | else
|
---|
3064 | if $as_echo 'TRUE=$(BAR$(V))
|
---|
3065 | BAR0=false
|
---|
3066 | BAR1=true
|
---|
3067 | V=1
|
---|
3068 | am__doit:
|
---|
3069 | @$(TRUE)
|
---|
3070 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
|
---|
3071 | am_cv_make_support_nested_variables=yes
|
---|
3072 | else
|
---|
3073 | am_cv_make_support_nested_variables=no
|
---|
3074 | fi
|
---|
3075 | fi
|
---|
3076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
|
---|
3077 | $as_echo "$am_cv_make_support_nested_variables" >&6; }
|
---|
3078 | if test $am_cv_make_support_nested_variables = yes; then
|
---|
3079 | AM_V='$(V)'
|
---|
3080 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
|
---|
3081 | else
|
---|
3082 | AM_V=$AM_DEFAULT_VERBOSITY
|
---|
3083 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
|
---|
3084 | fi
|
---|
3085 | AM_BACKSLASH='\'
|
---|
3086 |
|
---|
3087 |
|
---|
3088 |
|
---|
3089 | V_LIB_CURRENT=4
|
---|
3090 | V_LIB_REVISION=9
|
---|
3091 | V_LIB_AGE=4
|
---|
3092 |
|
---|
3093 | VF_LIB_CURRENT=6
|
---|
3094 | VF_LIB_REVISION=8
|
---|
3095 | VF_LIB_AGE=3
|
---|
3096 |
|
---|
3097 | VE_LIB_CURRENT=2
|
---|
3098 | VE_LIB_REVISION=12
|
---|
3099 | VE_LIB_AGE=0
|
---|
3100 |
|
---|
3101 |
|
---|
3102 |
|
---|
3103 |
|
---|
3104 |
|
---|
3105 |
|
---|
3106 |
|
---|
3107 |
|
---|
3108 |
|
---|
3109 |
|
---|
3110 |
|
---|
3111 |
|
---|
3112 | cflags_save="$CFLAGS"
|
---|
3113 | ac_ext=c
|
---|
3114 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3115 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3116 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3117 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3118 | if test -n "$ac_tool_prefix"; then
|
---|
3119 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
3120 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
3121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3122 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3123 | if ${ac_cv_prog_CC+:} false; then :
|
---|
3124 | $as_echo_n "(cached) " >&6
|
---|
3125 | else
|
---|
3126 | if test -n "$CC"; then
|
---|
3127 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
3128 | else
|
---|
3129 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3130 | for as_dir in $PATH
|
---|
3131 | do
|
---|
3132 | IFS=$as_save_IFS
|
---|
3133 | test -z "$as_dir" && as_dir=.
|
---|
3134 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3135 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3136 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
3137 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3138 | break 2
|
---|
3139 | fi
|
---|
3140 | done
|
---|
3141 | done
|
---|
3142 | IFS=$as_save_IFS
|
---|
3143 |
|
---|
3144 | fi
|
---|
3145 | fi
|
---|
3146 | CC=$ac_cv_prog_CC
|
---|
3147 | if test -n "$CC"; then
|
---|
3148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
3149 | $as_echo "$CC" >&6; }
|
---|
3150 | else
|
---|
3151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3152 | $as_echo "no" >&6; }
|
---|
3153 | fi
|
---|
3154 |
|
---|
3155 |
|
---|
3156 | fi
|
---|
3157 | if test -z "$ac_cv_prog_CC"; then
|
---|
3158 | ac_ct_CC=$CC
|
---|
3159 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
3160 | set dummy gcc; ac_word=$2
|
---|
3161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3162 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3163 | if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
---|
3164 | $as_echo_n "(cached) " >&6
|
---|
3165 | else
|
---|
3166 | if test -n "$ac_ct_CC"; then
|
---|
3167 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
3168 | else
|
---|
3169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3170 | for as_dir in $PATH
|
---|
3171 | do
|
---|
3172 | IFS=$as_save_IFS
|
---|
3173 | test -z "$as_dir" && as_dir=.
|
---|
3174 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3175 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3176 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
3177 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3178 | break 2
|
---|
3179 | fi
|
---|
3180 | done
|
---|
3181 | done
|
---|
3182 | IFS=$as_save_IFS
|
---|
3183 |
|
---|
3184 | fi
|
---|
3185 | fi
|
---|
3186 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
3187 | if test -n "$ac_ct_CC"; then
|
---|
3188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
3189 | $as_echo "$ac_ct_CC" >&6; }
|
---|
3190 | else
|
---|
3191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3192 | $as_echo "no" >&6; }
|
---|
3193 | fi
|
---|
3194 |
|
---|
3195 | if test "x$ac_ct_CC" = x; then
|
---|
3196 | CC=""
|
---|
3197 | else
|
---|
3198 | case $cross_compiling:$ac_tool_warned in
|
---|
3199 | yes:)
|
---|
3200 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
3201 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
3202 | ac_tool_warned=yes ;;
|
---|
3203 | esac
|
---|
3204 | CC=$ac_ct_CC
|
---|
3205 | fi
|
---|
3206 | else
|
---|
3207 | CC="$ac_cv_prog_CC"
|
---|
3208 | fi
|
---|
3209 |
|
---|
3210 | if test -z "$CC"; then
|
---|
3211 | if test -n "$ac_tool_prefix"; then
|
---|
3212 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
3213 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
3214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3215 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3216 | if ${ac_cv_prog_CC+:} false; then :
|
---|
3217 | $as_echo_n "(cached) " >&6
|
---|
3218 | else
|
---|
3219 | if test -n "$CC"; then
|
---|
3220 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
3221 | else
|
---|
3222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3223 | for as_dir in $PATH
|
---|
3224 | do
|
---|
3225 | IFS=$as_save_IFS
|
---|
3226 | test -z "$as_dir" && as_dir=.
|
---|
3227 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3228 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3229 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
3230 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3231 | break 2
|
---|
3232 | fi
|
---|
3233 | done
|
---|
3234 | done
|
---|
3235 | IFS=$as_save_IFS
|
---|
3236 |
|
---|
3237 | fi
|
---|
3238 | fi
|
---|
3239 | CC=$ac_cv_prog_CC
|
---|
3240 | if test -n "$CC"; then
|
---|
3241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
3242 | $as_echo "$CC" >&6; }
|
---|
3243 | else
|
---|
3244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3245 | $as_echo "no" >&6; }
|
---|
3246 | fi
|
---|
3247 |
|
---|
3248 |
|
---|
3249 | fi
|
---|
3250 | fi
|
---|
3251 | if test -z "$CC"; then
|
---|
3252 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
3253 | set dummy cc; ac_word=$2
|
---|
3254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3255 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3256 | if ${ac_cv_prog_CC+:} false; then :
|
---|
3257 | $as_echo_n "(cached) " >&6
|
---|
3258 | else
|
---|
3259 | if test -n "$CC"; then
|
---|
3260 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
3261 | else
|
---|
3262 | ac_prog_rejected=no
|
---|
3263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3264 | for as_dir in $PATH
|
---|
3265 | do
|
---|
3266 | IFS=$as_save_IFS
|
---|
3267 | test -z "$as_dir" && as_dir=.
|
---|
3268 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3269 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3270 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
3271 | ac_prog_rejected=yes
|
---|
3272 | continue
|
---|
3273 | fi
|
---|
3274 | ac_cv_prog_CC="cc"
|
---|
3275 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3276 | break 2
|
---|
3277 | fi
|
---|
3278 | done
|
---|
3279 | done
|
---|
3280 | IFS=$as_save_IFS
|
---|
3281 |
|
---|
3282 | if test $ac_prog_rejected = yes; then
|
---|
3283 | # We found a bogon in the path, so make sure we never use it.
|
---|
3284 | set dummy $ac_cv_prog_CC
|
---|
3285 | shift
|
---|
3286 | if test $# != 0; then
|
---|
3287 | # We chose a different compiler from the bogus one.
|
---|
3288 | # However, it has the same basename, so the bogon will be chosen
|
---|
3289 | # first if we set CC to just the basename; use the full file name.
|
---|
3290 | shift
|
---|
3291 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
3292 | fi
|
---|
3293 | fi
|
---|
3294 | fi
|
---|
3295 | fi
|
---|
3296 | CC=$ac_cv_prog_CC
|
---|
3297 | if test -n "$CC"; then
|
---|
3298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
3299 | $as_echo "$CC" >&6; }
|
---|
3300 | else
|
---|
3301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3302 | $as_echo "no" >&6; }
|
---|
3303 | fi
|
---|
3304 |
|
---|
3305 |
|
---|
3306 | fi
|
---|
3307 | if test -z "$CC"; then
|
---|
3308 | if test -n "$ac_tool_prefix"; then
|
---|
3309 | for ac_prog in cl.exe
|
---|
3310 | do
|
---|
3311 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
3312 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
3313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3314 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3315 | if ${ac_cv_prog_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 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3322 | for as_dir in $PATH
|
---|
3323 | do
|
---|
3324 | IFS=$as_save_IFS
|
---|
3325 | test -z "$as_dir" && as_dir=.
|
---|
3326 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3327 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3328 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
3329 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3330 | break 2
|
---|
3331 | fi
|
---|
3332 | done
|
---|
3333 | done
|
---|
3334 | IFS=$as_save_IFS
|
---|
3335 |
|
---|
3336 | fi
|
---|
3337 | fi
|
---|
3338 | CC=$ac_cv_prog_CC
|
---|
3339 | if test -n "$CC"; then
|
---|
3340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
3341 | $as_echo "$CC" >&6; }
|
---|
3342 | else
|
---|
3343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3344 | $as_echo "no" >&6; }
|
---|
3345 | fi
|
---|
3346 |
|
---|
3347 |
|
---|
3348 | test -n "$CC" && break
|
---|
3349 | done
|
---|
3350 | fi
|
---|
3351 | if test -z "$CC"; then
|
---|
3352 | ac_ct_CC=$CC
|
---|
3353 | for ac_prog in cl.exe
|
---|
3354 | do
|
---|
3355 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3356 | set dummy $ac_prog; ac_word=$2
|
---|
3357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3358 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3359 | if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
---|
3360 | $as_echo_n "(cached) " >&6
|
---|
3361 | else
|
---|
3362 | if test -n "$ac_ct_CC"; then
|
---|
3363 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
3364 | else
|
---|
3365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3366 | for as_dir in $PATH
|
---|
3367 | do
|
---|
3368 | IFS=$as_save_IFS
|
---|
3369 | test -z "$as_dir" && as_dir=.
|
---|
3370 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3371 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3372 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
3373 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3374 | break 2
|
---|
3375 | fi
|
---|
3376 | done
|
---|
3377 | done
|
---|
3378 | IFS=$as_save_IFS
|
---|
3379 |
|
---|
3380 | fi
|
---|
3381 | fi
|
---|
3382 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
3383 | if test -n "$ac_ct_CC"; then
|
---|
3384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
3385 | $as_echo "$ac_ct_CC" >&6; }
|
---|
3386 | else
|
---|
3387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3388 | $as_echo "no" >&6; }
|
---|
3389 | fi
|
---|
3390 |
|
---|
3391 |
|
---|
3392 | test -n "$ac_ct_CC" && break
|
---|
3393 | done
|
---|
3394 |
|
---|
3395 | if test "x$ac_ct_CC" = x; then
|
---|
3396 | CC=""
|
---|
3397 | else
|
---|
3398 | case $cross_compiling:$ac_tool_warned in
|
---|
3399 | yes:)
|
---|
3400 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
3401 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
3402 | ac_tool_warned=yes ;;
|
---|
3403 | esac
|
---|
3404 | CC=$ac_ct_CC
|
---|
3405 | fi
|
---|
3406 | fi
|
---|
3407 |
|
---|
3408 | fi
|
---|
3409 |
|
---|
3410 |
|
---|
3411 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
3412 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
3413 | as_fn_error $? "no acceptable C compiler found in \$PATH
|
---|
3414 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
3415 |
|
---|
3416 | # Provide some information about the compiler.
|
---|
3417 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
---|
3418 | set X $ac_compile
|
---|
3419 | ac_compiler=$2
|
---|
3420 | for ac_option in --version -v -V -qversion; do
|
---|
3421 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
3422 | case "(($ac_try" in
|
---|
3423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3424 | *) ac_try_echo=$ac_try;;
|
---|
3425 | esac
|
---|
3426 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3427 | $as_echo "$ac_try_echo"; } >&5
|
---|
3428 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
---|
3429 | ac_status=$?
|
---|
3430 | if test -s conftest.err; then
|
---|
3431 | sed '10a\
|
---|
3432 | ... rest of stderr output deleted ...
|
---|
3433 | 10q' conftest.err >conftest.er1
|
---|
3434 | cat conftest.er1 >&5
|
---|
3435 | fi
|
---|
3436 | rm -f conftest.er1 conftest.err
|
---|
3437 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3438 | test $ac_status = 0; }
|
---|
3439 | done
|
---|
3440 |
|
---|
3441 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3442 | /* end confdefs.h. */
|
---|
3443 |
|
---|
3444 | int
|
---|
3445 | main ()
|
---|
3446 | {
|
---|
3447 |
|
---|
3448 | ;
|
---|
3449 | return 0;
|
---|
3450 | }
|
---|
3451 | _ACEOF
|
---|
3452 | ac_clean_files_save=$ac_clean_files
|
---|
3453 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
|
---|
3454 | # Try to create an executable without -o first, disregard a.out.
|
---|
3455 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
3456 | # of exeext.
|
---|
3457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
|
---|
3458 | $as_echo_n "checking whether the C compiler works... " >&6; }
|
---|
3459 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
3460 |
|
---|
3461 | # The possible output files:
|
---|
3462 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
|
---|
3463 |
|
---|
3464 | ac_rmfiles=
|
---|
3465 | for ac_file in $ac_files
|
---|
3466 | do
|
---|
3467 | case $ac_file in
|
---|
3468 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
3469 | * ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
---|
3470 | esac
|
---|
3471 | done
|
---|
3472 | rm -f $ac_rmfiles
|
---|
3473 |
|
---|
3474 | if { { ac_try="$ac_link_default"
|
---|
3475 | case "(($ac_try" in
|
---|
3476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3477 | *) ac_try_echo=$ac_try;;
|
---|
3478 | esac
|
---|
3479 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3480 | $as_echo "$ac_try_echo"; } >&5
|
---|
3481 | (eval "$ac_link_default") 2>&5
|
---|
3482 | ac_status=$?
|
---|
3483 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3484 | test $ac_status = 0; }; then :
|
---|
3485 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
---|
3486 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
---|
3487 | # in a Makefile. We should not override ac_cv_exeext if it was cached,
|
---|
3488 | # so that the user can short-circuit this test for compilers unknown to
|
---|
3489 | # Autoconf.
|
---|
3490 | for ac_file in $ac_files ''
|
---|
3491 | do
|
---|
3492 | test -f "$ac_file" || continue
|
---|
3493 | case $ac_file in
|
---|
3494 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
|
---|
3495 | ;;
|
---|
3496 | [ab].out )
|
---|
3497 | # We found the default executable, but exeext='' is most
|
---|
3498 | # certainly right.
|
---|
3499 | break;;
|
---|
3500 | *.* )
|
---|
3501 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
---|
3502 | then :; else
|
---|
3503 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
3504 | fi
|
---|
3505 | # We set ac_cv_exeext here because the later test for it is not
|
---|
3506 | # safe: cross compilers may not add the suffix if given an `-o'
|
---|
3507 | # argument, so we may need to know it at that point already.
|
---|
3508 | # Even if this section looks crufty: it has the advantage of
|
---|
3509 | # actually working.
|
---|
3510 | break;;
|
---|
3511 | * )
|
---|
3512 | break;;
|
---|
3513 | esac
|
---|
3514 | done
|
---|
3515 | test "$ac_cv_exeext" = no && ac_cv_exeext=
|
---|
3516 |
|
---|
3517 | else
|
---|
3518 | ac_file=''
|
---|
3519 | fi
|
---|
3520 | if test -z "$ac_file"; then :
|
---|
3521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3522 | $as_echo "no" >&6; }
|
---|
3523 | $as_echo "$as_me: failed program was:" >&5
|
---|
3524 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3525 |
|
---|
3526 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
3527 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
3528 | as_fn_error 77 "C compiler cannot create executables
|
---|
3529 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
3530 | else
|
---|
3531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
3532 | $as_echo "yes" >&6; }
|
---|
3533 | fi
|
---|
3534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
|
---|
3535 | $as_echo_n "checking for C compiler default output file name... " >&6; }
|
---|
3536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
---|
3537 | $as_echo "$ac_file" >&6; }
|
---|
3538 | ac_exeext=$ac_cv_exeext
|
---|
3539 |
|
---|
3540 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
|
---|
3541 | ac_clean_files=$ac_clean_files_save
|
---|
3542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
|
---|
3543 | $as_echo_n "checking for suffix of executables... " >&6; }
|
---|
3544 | if { { ac_try="$ac_link"
|
---|
3545 | case "(($ac_try" in
|
---|
3546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3547 | *) ac_try_echo=$ac_try;;
|
---|
3548 | esac
|
---|
3549 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3550 | $as_echo "$ac_try_echo"; } >&5
|
---|
3551 | (eval "$ac_link") 2>&5
|
---|
3552 | ac_status=$?
|
---|
3553 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3554 | test $ac_status = 0; }; then :
|
---|
3555 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
3556 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
3557 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
3558 | # `rm'.
|
---|
3559 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
3560 | test -f "$ac_file" || continue
|
---|
3561 | case $ac_file in
|
---|
3562 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
3563 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
3564 | break;;
|
---|
3565 | * ) break;;
|
---|
3566 | esac
|
---|
3567 | done
|
---|
3568 | else
|
---|
3569 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
3570 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
3571 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link
|
---|
3572 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
3573 | fi
|
---|
3574 | rm -f conftest conftest$ac_cv_exeext
|
---|
3575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
|
---|
3576 | $as_echo "$ac_cv_exeext" >&6; }
|
---|
3577 |
|
---|
3578 | rm -f conftest.$ac_ext
|
---|
3579 | EXEEXT=$ac_cv_exeext
|
---|
3580 | ac_exeext=$EXEEXT
|
---|
3581 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3582 | /* end confdefs.h. */
|
---|
3583 | #include <stdio.h>
|
---|
3584 | int
|
---|
3585 | main ()
|
---|
3586 | {
|
---|
3587 | FILE *f = fopen ("conftest.out", "w");
|
---|
3588 | return ferror (f) || fclose (f) != 0;
|
---|
3589 |
|
---|
3590 | ;
|
---|
3591 | return 0;
|
---|
3592 | }
|
---|
3593 | _ACEOF
|
---|
3594 | ac_clean_files="$ac_clean_files conftest.out"
|
---|
3595 | # Check that the compiler produces executables we can run. If not, either
|
---|
3596 | # the compiler is broken, or we cross compile.
|
---|
3597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
|
---|
3598 | $as_echo_n "checking whether we are cross compiling... " >&6; }
|
---|
3599 | if test "$cross_compiling" != yes; then
|
---|
3600 | { { ac_try="$ac_link"
|
---|
3601 | case "(($ac_try" in
|
---|
3602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3603 | *) ac_try_echo=$ac_try;;
|
---|
3604 | esac
|
---|
3605 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3606 | $as_echo "$ac_try_echo"; } >&5
|
---|
3607 | (eval "$ac_link") 2>&5
|
---|
3608 | ac_status=$?
|
---|
3609 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3610 | test $ac_status = 0; }
|
---|
3611 | if { ac_try='./conftest$ac_cv_exeext'
|
---|
3612 | { { case "(($ac_try" in
|
---|
3613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3614 | *) ac_try_echo=$ac_try;;
|
---|
3615 | esac
|
---|
3616 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3617 | $as_echo "$ac_try_echo"; } >&5
|
---|
3618 | (eval "$ac_try") 2>&5
|
---|
3619 | ac_status=$?
|
---|
3620 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3621 | test $ac_status = 0; }; }; then
|
---|
3622 | cross_compiling=no
|
---|
3623 | else
|
---|
3624 | if test "$cross_compiling" = maybe; then
|
---|
3625 | cross_compiling=yes
|
---|
3626 | else
|
---|
3627 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
3628 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
3629 | as_fn_error $? "cannot run C compiled programs.
|
---|
3630 | If you meant to cross compile, use \`--host'.
|
---|
3631 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
3632 | fi
|
---|
3633 | fi
|
---|
3634 | fi
|
---|
3635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
|
---|
3636 | $as_echo "$cross_compiling" >&6; }
|
---|
3637 |
|
---|
3638 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
|
---|
3639 | ac_clean_files=$ac_clean_files_save
|
---|
3640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
|
---|
3641 | $as_echo_n "checking for suffix of object files... " >&6; }
|
---|
3642 | if ${ac_cv_objext+:} false; then :
|
---|
3643 | $as_echo_n "(cached) " >&6
|
---|
3644 | else
|
---|
3645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3646 | /* end confdefs.h. */
|
---|
3647 |
|
---|
3648 | int
|
---|
3649 | main ()
|
---|
3650 | {
|
---|
3651 |
|
---|
3652 | ;
|
---|
3653 | return 0;
|
---|
3654 | }
|
---|
3655 | _ACEOF
|
---|
3656 | rm -f conftest.o conftest.obj
|
---|
3657 | if { { ac_try="$ac_compile"
|
---|
3658 | case "(($ac_try" in
|
---|
3659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3660 | *) ac_try_echo=$ac_try;;
|
---|
3661 | esac
|
---|
3662 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3663 | $as_echo "$ac_try_echo"; } >&5
|
---|
3664 | (eval "$ac_compile") 2>&5
|
---|
3665 | ac_status=$?
|
---|
3666 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3667 | test $ac_status = 0; }; then :
|
---|
3668 | for ac_file in conftest.o conftest.obj conftest.*; do
|
---|
3669 | test -f "$ac_file" || continue;
|
---|
3670 | case $ac_file in
|
---|
3671 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
|
---|
3672 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
3673 | break;;
|
---|
3674 | esac
|
---|
3675 | done
|
---|
3676 | else
|
---|
3677 | $as_echo "$as_me: failed program was:" >&5
|
---|
3678 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3679 |
|
---|
3680 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
3681 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
3682 | as_fn_error $? "cannot compute suffix of object files: cannot compile
|
---|
3683 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
3684 | fi
|
---|
3685 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
3686 | fi
|
---|
3687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
|
---|
3688 | $as_echo "$ac_cv_objext" >&6; }
|
---|
3689 | OBJEXT=$ac_cv_objext
|
---|
3690 | ac_objext=$OBJEXT
|
---|
3691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
|
---|
3692 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
|
---|
3693 | if ${ac_cv_c_compiler_gnu+:} false; then :
|
---|
3694 | $as_echo_n "(cached) " >&6
|
---|
3695 | else
|
---|
3696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3697 | /* end confdefs.h. */
|
---|
3698 |
|
---|
3699 | int
|
---|
3700 | main ()
|
---|
3701 | {
|
---|
3702 | #ifndef __GNUC__
|
---|
3703 | choke me
|
---|
3704 | #endif
|
---|
3705 |
|
---|
3706 | ;
|
---|
3707 | return 0;
|
---|
3708 | }
|
---|
3709 | _ACEOF
|
---|
3710 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3711 | ac_compiler_gnu=yes
|
---|
3712 | else
|
---|
3713 | ac_compiler_gnu=no
|
---|
3714 | fi
|
---|
3715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3716 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
3717 |
|
---|
3718 | fi
|
---|
3719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
|
---|
3720 | $as_echo "$ac_cv_c_compiler_gnu" >&6; }
|
---|
3721 | if test $ac_compiler_gnu = yes; then
|
---|
3722 | GCC=yes
|
---|
3723 | else
|
---|
3724 | GCC=
|
---|
3725 | fi
|
---|
3726 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
3727 | ac_save_CFLAGS=$CFLAGS
|
---|
3728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
|
---|
3729 | $as_echo_n "checking whether $CC accepts -g... " >&6; }
|
---|
3730 | if ${ac_cv_prog_cc_g+:} false; then :
|
---|
3731 | $as_echo_n "(cached) " >&6
|
---|
3732 | else
|
---|
3733 | ac_save_c_werror_flag=$ac_c_werror_flag
|
---|
3734 | ac_c_werror_flag=yes
|
---|
3735 | ac_cv_prog_cc_g=no
|
---|
3736 | CFLAGS="-g"
|
---|
3737 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3738 | /* end confdefs.h. */
|
---|
3739 |
|
---|
3740 | int
|
---|
3741 | main ()
|
---|
3742 | {
|
---|
3743 |
|
---|
3744 | ;
|
---|
3745 | return 0;
|
---|
3746 | }
|
---|
3747 | _ACEOF
|
---|
3748 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3749 | ac_cv_prog_cc_g=yes
|
---|
3750 | else
|
---|
3751 | CFLAGS=""
|
---|
3752 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3753 | /* end confdefs.h. */
|
---|
3754 |
|
---|
3755 | int
|
---|
3756 | main ()
|
---|
3757 | {
|
---|
3758 |
|
---|
3759 | ;
|
---|
3760 | return 0;
|
---|
3761 | }
|
---|
3762 | _ACEOF
|
---|
3763 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3764 |
|
---|
3765 | else
|
---|
3766 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
3767 | CFLAGS="-g"
|
---|
3768 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3769 | /* end confdefs.h. */
|
---|
3770 |
|
---|
3771 | int
|
---|
3772 | main ()
|
---|
3773 | {
|
---|
3774 |
|
---|
3775 | ;
|
---|
3776 | return 0;
|
---|
3777 | }
|
---|
3778 | _ACEOF
|
---|
3779 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3780 | ac_cv_prog_cc_g=yes
|
---|
3781 | fi
|
---|
3782 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3783 | fi
|
---|
3784 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3785 | fi
|
---|
3786 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3787 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
3788 | fi
|
---|
3789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
|
---|
3790 | $as_echo "$ac_cv_prog_cc_g" >&6; }
|
---|
3791 | if test "$ac_test_CFLAGS" = set; then
|
---|
3792 | CFLAGS=$ac_save_CFLAGS
|
---|
3793 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
3794 | if test "$GCC" = yes; then
|
---|
3795 | CFLAGS="-g -O2"
|
---|
3796 | else
|
---|
3797 | CFLAGS="-g"
|
---|
3798 | fi
|
---|
3799 | else
|
---|
3800 | if test "$GCC" = yes; then
|
---|
3801 | CFLAGS="-O2"
|
---|
3802 | else
|
---|
3803 | CFLAGS=
|
---|
3804 | fi
|
---|
3805 | fi
|
---|
3806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
|
---|
3807 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
|
---|
3808 | if ${ac_cv_prog_cc_c89+:} false; then :
|
---|
3809 | $as_echo_n "(cached) " >&6
|
---|
3810 | else
|
---|
3811 | ac_cv_prog_cc_c89=no
|
---|
3812 | ac_save_CC=$CC
|
---|
3813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3814 | /* end confdefs.h. */
|
---|
3815 | #include <stdarg.h>
|
---|
3816 | #include <stdio.h>
|
---|
3817 | struct stat;
|
---|
3818 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
3819 | struct buf { int x; };
|
---|
3820 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
3821 | static char *e (p, i)
|
---|
3822 | char **p;
|
---|
3823 | int i;
|
---|
3824 | {
|
---|
3825 | return p[i];
|
---|
3826 | }
|
---|
3827 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
3828 | {
|
---|
3829 | char *s;
|
---|
3830 | va_list v;
|
---|
3831 | va_start (v,p);
|
---|
3832 | s = g (p, va_arg (v,int));
|
---|
3833 | va_end (v);
|
---|
3834 | return s;
|
---|
3835 | }
|
---|
3836 |
|
---|
3837 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
3838 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
3839 | These don't provoke an error unfortunately, instead are silently treated
|
---|
3840 | as 'x'. The following induces an error, until -std is added to get
|
---|
3841 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
3842 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
3843 | that's true only with -std. */
|
---|
3844 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
3845 |
|
---|
3846 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
---|
3847 | inside strings and character constants. */
|
---|
3848 | #define FOO(x) 'x'
|
---|
3849 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
---|
3850 |
|
---|
3851 | int test (int i, double x);
|
---|
3852 | struct s1 {int (*f) (int a);};
|
---|
3853 | struct s2 {int (*f) (double a);};
|
---|
3854 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
3855 | int argc;
|
---|
3856 | char **argv;
|
---|
3857 | int
|
---|
3858 | main ()
|
---|
3859 | {
|
---|
3860 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
3861 | ;
|
---|
3862 | return 0;
|
---|
3863 | }
|
---|
3864 | _ACEOF
|
---|
3865 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
---|
3866 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
3867 | do
|
---|
3868 | CC="$ac_save_CC $ac_arg"
|
---|
3869 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3870 | ac_cv_prog_cc_c89=$ac_arg
|
---|
3871 | fi
|
---|
3872 | rm -f core conftest.err conftest.$ac_objext
|
---|
3873 | test "x$ac_cv_prog_cc_c89" != "xno" && break
|
---|
3874 | done
|
---|
3875 | rm -f conftest.$ac_ext
|
---|
3876 | CC=$ac_save_CC
|
---|
3877 |
|
---|
3878 | fi
|
---|
3879 | # AC_CACHE_VAL
|
---|
3880 | case "x$ac_cv_prog_cc_c89" in
|
---|
3881 | x)
|
---|
3882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
---|
3883 | $as_echo "none needed" >&6; } ;;
|
---|
3884 | xno)
|
---|
3885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
---|
3886 | $as_echo "unsupported" >&6; } ;;
|
---|
3887 | *)
|
---|
3888 | CC="$CC $ac_cv_prog_cc_c89"
|
---|
3889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
---|
3890 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
|
---|
3891 | esac
|
---|
3892 | if test "x$ac_cv_prog_cc_c89" != xno; then :
|
---|
3893 |
|
---|
3894 | fi
|
---|
3895 |
|
---|
3896 | ac_ext=c
|
---|
3897 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3898 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3899 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3900 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3901 |
|
---|
3902 | ac_ext=c
|
---|
3903 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3904 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3905 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3906 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
|
---|
3908 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
|
---|
3909 | if ${am_cv_prog_cc_c_o+:} false; then :
|
---|
3910 | $as_echo_n "(cached) " >&6
|
---|
3911 | else
|
---|
3912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3913 | /* end confdefs.h. */
|
---|
3914 |
|
---|
3915 | int
|
---|
3916 | main ()
|
---|
3917 | {
|
---|
3918 |
|
---|
3919 | ;
|
---|
3920 | return 0;
|
---|
3921 | }
|
---|
3922 | _ACEOF
|
---|
3923 | # Make sure it works both with $CC and with simple cc.
|
---|
3924 | # Following AC_PROG_CC_C_O, we do the test twice because some
|
---|
3925 | # compilers refuse to overwrite an existing .o file with -o,
|
---|
3926 | # though they will create one.
|
---|
3927 | am_cv_prog_cc_c_o=yes
|
---|
3928 | for am_i in 1 2; do
|
---|
3929 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
|
---|
3930 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
|
---|
3931 | ac_status=$?
|
---|
3932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3933 | (exit $ac_status); } \
|
---|
3934 | && test -f conftest2.$ac_objext; then
|
---|
3935 | : OK
|
---|
3936 | else
|
---|
3937 | am_cv_prog_cc_c_o=no
|
---|
3938 | break
|
---|
3939 | fi
|
---|
3940 | done
|
---|
3941 | rm -f core conftest*
|
---|
3942 | unset am_i
|
---|
3943 | fi
|
---|
3944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
|
---|
3945 | $as_echo "$am_cv_prog_cc_c_o" >&6; }
|
---|
3946 | if test "$am_cv_prog_cc_c_o" != yes; then
|
---|
3947 | # Losing compiler, so override with the script.
|
---|
3948 | # FIXME: It is wrong to rewrite CC.
|
---|
3949 | # But if we don't then we get into trouble of one sort or another.
|
---|
3950 | # A longer-term fix would be to have automake use am__CC in this case,
|
---|
3951 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
|
---|
3952 | CC="$am_aux_dir/compile $CC"
|
---|
3953 | fi
|
---|
3954 | ac_ext=c
|
---|
3955 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3956 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3957 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3958 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3959 |
|
---|
3960 | DEPDIR="${am__leading_dot}deps"
|
---|
3961 |
|
---|
3962 | ac_config_commands="$ac_config_commands depfiles"
|
---|
3963 |
|
---|
3964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
|
---|
3965 | $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
|
---|
3966 | cat > confinc.mk << 'END'
|
---|
3967 | am__doit:
|
---|
3968 | @echo this is the am__doit target >confinc.out
|
---|
3969 | .PHONY: am__doit
|
---|
3970 | END
|
---|
3971 | am__include="#"
|
---|
3972 | am__quote=
|
---|
3973 | # BSD make does it like this.
|
---|
3974 | echo '.include "confinc.mk" # ignored' > confmf.BSD
|
---|
3975 | # Other make implementations (GNU, Solaris 10, AIX) do it like this.
|
---|
3976 | echo 'include confinc.mk # ignored' > confmf.GNU
|
---|
3977 | _am_result=no
|
---|
3978 | for s in GNU BSD; do
|
---|
3979 | { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
|
---|
3980 | (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
|
---|
3981 | ac_status=$?
|
---|
3982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3983 | (exit $ac_status); }
|
---|
3984 | case $?:`cat confinc.out 2>/dev/null` in #(
|
---|
3985 | '0:this is the am__doit target') :
|
---|
3986 | case $s in #(
|
---|
3987 | BSD) :
|
---|
3988 | am__include='.include' am__quote='"' ;; #(
|
---|
3989 | *) :
|
---|
3990 | am__include='include' am__quote='' ;;
|
---|
3991 | esac ;; #(
|
---|
3992 | *) :
|
---|
3993 | ;;
|
---|
3994 | esac
|
---|
3995 | if test "$am__include" != "#"; then
|
---|
3996 | _am_result="yes ($s style)"
|
---|
3997 | break
|
---|
3998 | fi
|
---|
3999 | done
|
---|
4000 | rm -f confinc.* confmf.*
|
---|
4001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
|
---|
4002 | $as_echo "${_am_result}" >&6; }
|
---|
4003 |
|
---|
4004 | # Check whether --enable-dependency-tracking was given.
|
---|
4005 | if test "${enable_dependency_tracking+set}" = set; then :
|
---|
4006 | enableval=$enable_dependency_tracking;
|
---|
4007 | fi
|
---|
4008 |
|
---|
4009 | if test "x$enable_dependency_tracking" != xno; then
|
---|
4010 | am_depcomp="$ac_aux_dir/depcomp"
|
---|
4011 | AMDEPBACKSLASH='\'
|
---|
4012 | am__nodep='_no'
|
---|
4013 | fi
|
---|
4014 | if test "x$enable_dependency_tracking" != xno; then
|
---|
4015 | AMDEP_TRUE=
|
---|
4016 | AMDEP_FALSE='#'
|
---|
4017 | else
|
---|
4018 | AMDEP_TRUE='#'
|
---|
4019 | AMDEP_FALSE=
|
---|
4020 | fi
|
---|
4021 |
|
---|
4022 |
|
---|
4023 |
|
---|
4024 | depcc="$CC" am_compiler_list=
|
---|
4025 |
|
---|
4026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
|
---|
4027 | $as_echo_n "checking dependency style of $depcc... " >&6; }
|
---|
4028 | if ${am_cv_CC_dependencies_compiler_type+:} false; then :
|
---|
4029 | $as_echo_n "(cached) " >&6
|
---|
4030 | else
|
---|
4031 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
---|
4032 | # We make a subdir and do the tests there. Otherwise we can end up
|
---|
4033 | # making bogus files that we don't know about and never remove. For
|
---|
4034 | # instance it was reported that on HP-UX the gcc test will end up
|
---|
4035 | # making a dummy file named 'D' -- because '-MD' means "put the output
|
---|
4036 | # in D".
|
---|
4037 | rm -rf conftest.dir
|
---|
4038 | mkdir conftest.dir
|
---|
4039 | # Copy depcomp to subdir because otherwise we won't find it if we're
|
---|
4040 | # using a relative directory.
|
---|
4041 | cp "$am_depcomp" conftest.dir
|
---|
4042 | cd conftest.dir
|
---|
4043 | # We will build objects and dependencies in a subdirectory because
|
---|
4044 | # it helps to detect inapplicable dependency modes. For instance
|
---|
4045 | # both Tru64's cc and ICC support -MD to output dependencies as a
|
---|
4046 | # side effect of compilation, but ICC will put the dependencies in
|
---|
4047 | # the current directory while Tru64 will put them in the object
|
---|
4048 | # directory.
|
---|
4049 | mkdir sub
|
---|
4050 |
|
---|
4051 | am_cv_CC_dependencies_compiler_type=none
|
---|
4052 | if test "$am_compiler_list" = ""; then
|
---|
4053 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
|
---|
4054 | fi
|
---|
4055 | am__universal=false
|
---|
4056 | case " $depcc " in #(
|
---|
4057 | *\ -arch\ *\ -arch\ *) am__universal=true ;;
|
---|
4058 | esac
|
---|
4059 |
|
---|
4060 | for depmode in $am_compiler_list; do
|
---|
4061 | # Setup a source with many dependencies, because some compilers
|
---|
4062 | # like to wrap large dependency lists on column 80 (with \), and
|
---|
4063 | # we should not choose a depcomp mode which is confused by this.
|
---|
4064 | #
|
---|
4065 | # We need to recreate these files for each test, as the compiler may
|
---|
4066 | # overwrite some of them when testing with obscure command lines.
|
---|
4067 | # This happens at least with the AIX C compiler.
|
---|
4068 | : > sub/conftest.c
|
---|
4069 | for i in 1 2 3 4 5 6; do
|
---|
4070 | echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
---|
4071 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
|
---|
4072 | # Solaris 10 /bin/sh.
|
---|
4073 | echo '/* dummy */' > sub/conftst$i.h
|
---|
4074 | done
|
---|
4075 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
---|
4076 |
|
---|
4077 | # We check with '-c' and '-o' for the sake of the "dashmstdout"
|
---|
4078 | # mode. It turns out that the SunPro C++ compiler does not properly
|
---|
4079 | # handle '-M -o', and we need to detect this. Also, some Intel
|
---|
4080 | # versions had trouble with output in subdirs.
|
---|
4081 | am__obj=sub/conftest.${OBJEXT-o}
|
---|
4082 | am__minus_obj="-o $am__obj"
|
---|
4083 | case $depmode in
|
---|
4084 | gcc)
|
---|
4085 | # This depmode causes a compiler race in universal mode.
|
---|
4086 | test "$am__universal" = false || continue
|
---|
4087 | ;;
|
---|
4088 | nosideeffect)
|
---|
4089 | # After this tag, mechanisms are not by side-effect, so they'll
|
---|
4090 | # only be used when explicitly requested.
|
---|
4091 | if test "x$enable_dependency_tracking" = xyes; then
|
---|
4092 | continue
|
---|
4093 | else
|
---|
4094 | break
|
---|
4095 | fi
|
---|
4096 | ;;
|
---|
4097 | msvc7 | msvc7msys | msvisualcpp | msvcmsys)
|
---|
4098 | # This compiler won't grok '-c -o', but also, the minuso test has
|
---|
4099 | # not run yet. These depmodes are late enough in the game, and
|
---|
4100 | # so weak that their functioning should not be impacted.
|
---|
4101 | am__obj=conftest.${OBJEXT-o}
|
---|
4102 | am__minus_obj=
|
---|
4103 | ;;
|
---|
4104 | none) break ;;
|
---|
4105 | esac
|
---|
4106 | if depmode=$depmode \
|
---|
4107 | source=sub/conftest.c object=$am__obj \
|
---|
4108 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
---|
4109 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
|
---|
4110 | >/dev/null 2>conftest.err &&
|
---|
4111 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
|
---|
4112 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
---|
4113 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
|
---|
4114 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
---|
4115 | # icc doesn't choke on unknown options, it will just issue warnings
|
---|
4116 | # or remarks (even with -Werror). So we grep stderr for any message
|
---|
4117 | # that says an option was ignored or not supported.
|
---|
4118 | # When given -MP, icc 7.0 and 7.1 complain thusly:
|
---|
4119 | # icc: Command line warning: ignoring option '-M'; no argument required
|
---|
4120 | # The diagnosis changed in icc 8.0:
|
---|
4121 | # icc: Command line remark: option '-MP' not supported
|
---|
4122 | if (grep 'ignoring option' conftest.err ||
|
---|
4123 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
---|
4124 | am_cv_CC_dependencies_compiler_type=$depmode
|
---|
4125 | break
|
---|
4126 | fi
|
---|
4127 | fi
|
---|
4128 | done
|
---|
4129 |
|
---|
4130 | cd ..
|
---|
4131 | rm -rf conftest.dir
|
---|
4132 | else
|
---|
4133 | am_cv_CC_dependencies_compiler_type=none
|
---|
4134 | fi
|
---|
4135 |
|
---|
4136 | fi
|
---|
4137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
|
---|
4138 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
|
---|
4139 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
|
---|
4140 |
|
---|
4141 | if
|
---|
4142 | test "x$enable_dependency_tracking" != xno \
|
---|
4143 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
|
---|
4144 | am__fastdepCC_TRUE=
|
---|
4145 | am__fastdepCC_FALSE='#'
|
---|
4146 | else
|
---|
4147 | am__fastdepCC_TRUE='#'
|
---|
4148 | am__fastdepCC_FALSE=
|
---|
4149 | fi
|
---|
4150 |
|
---|
4151 |
|
---|
4152 | ac_ext=c
|
---|
4153 | ac_cpp='$CPP $CPPFLAGS'
|
---|
4154 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
4155 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
4156 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
4157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
|
---|
4158 | $as_echo_n "checking how to run the C preprocessor... " >&6; }
|
---|
4159 | # On Suns, sometimes $CPP names a directory.
|
---|
4160 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
4161 | CPP=
|
---|
4162 | fi
|
---|
4163 | if test -z "$CPP"; then
|
---|
4164 | if ${ac_cv_prog_CPP+:} false; then :
|
---|
4165 | $as_echo_n "(cached) " >&6
|
---|
4166 | else
|
---|
4167 | # Double quotes because CPP needs to be expanded
|
---|
4168 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
4169 | do
|
---|
4170 | ac_preproc_ok=false
|
---|
4171 | for ac_c_preproc_warn_flag in '' yes
|
---|
4172 | do
|
---|
4173 | # Use a header file that comes with gcc, so configuring glibc
|
---|
4174 | # with a fresh cross-compiler works.
|
---|
4175 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
4176 | # <limits.h> exists even on freestanding compilers.
|
---|
4177 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
4178 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
4179 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4180 | /* end confdefs.h. */
|
---|
4181 | #ifdef __STDC__
|
---|
4182 | # include <limits.h>
|
---|
4183 | #else
|
---|
4184 | # include <assert.h>
|
---|
4185 | #endif
|
---|
4186 | Syntax error
|
---|
4187 | _ACEOF
|
---|
4188 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
4189 |
|
---|
4190 | else
|
---|
4191 | # Broken: fails on valid input.
|
---|
4192 | continue
|
---|
4193 | fi
|
---|
4194 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
4195 |
|
---|
4196 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
4197 | # can be detected and how.
|
---|
4198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4199 | /* end confdefs.h. */
|
---|
4200 | #include <ac_nonexistent.h>
|
---|
4201 | _ACEOF
|
---|
4202 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
4203 | # Broken: success on invalid input.
|
---|
4204 | continue
|
---|
4205 | else
|
---|
4206 | # Passes both tests.
|
---|
4207 | ac_preproc_ok=:
|
---|
4208 | break
|
---|
4209 | fi
|
---|
4210 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
4211 |
|
---|
4212 | done
|
---|
4213 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
4214 | rm -f conftest.i conftest.err conftest.$ac_ext
|
---|
4215 | if $ac_preproc_ok; then :
|
---|
4216 | break
|
---|
4217 | fi
|
---|
4218 |
|
---|
4219 | done
|
---|
4220 | ac_cv_prog_CPP=$CPP
|
---|
4221 |
|
---|
4222 | fi
|
---|
4223 | CPP=$ac_cv_prog_CPP
|
---|
4224 | else
|
---|
4225 | ac_cv_prog_CPP=$CPP
|
---|
4226 | fi
|
---|
4227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
|
---|
4228 | $as_echo "$CPP" >&6; }
|
---|
4229 | ac_preproc_ok=false
|
---|
4230 | for ac_c_preproc_warn_flag in '' yes
|
---|
4231 | do
|
---|
4232 | # Use a header file that comes with gcc, so configuring glibc
|
---|
4233 | # with a fresh cross-compiler works.
|
---|
4234 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
4235 | # <limits.h> exists even on freestanding compilers.
|
---|
4236 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
4237 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
4238 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4239 | /* end confdefs.h. */
|
---|
4240 | #ifdef __STDC__
|
---|
4241 | # include <limits.h>
|
---|
4242 | #else
|
---|
4243 | # include <assert.h>
|
---|
4244 | #endif
|
---|
4245 | Syntax error
|
---|
4246 | _ACEOF
|
---|
4247 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
4248 |
|
---|
4249 | else
|
---|
4250 | # Broken: fails on valid input.
|
---|
4251 | continue
|
---|
4252 | fi
|
---|
4253 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
4254 |
|
---|
4255 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
4256 | # can be detected and how.
|
---|
4257 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4258 | /* end confdefs.h. */
|
---|
4259 | #include <ac_nonexistent.h>
|
---|
4260 | _ACEOF
|
---|
4261 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
4262 | # Broken: success on invalid input.
|
---|
4263 | continue
|
---|
4264 | else
|
---|
4265 | # Passes both tests.
|
---|
4266 | ac_preproc_ok=:
|
---|
4267 | break
|
---|
4268 | fi
|
---|
4269 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
4270 |
|
---|
4271 | done
|
---|
4272 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
4273 | rm -f conftest.i conftest.err conftest.$ac_ext
|
---|
4274 | if $ac_preproc_ok; then :
|
---|
4275 |
|
---|
4276 | else
|
---|
4277 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
4278 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
4279 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
|
---|
4280 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
4281 | fi
|
---|
4282 |
|
---|
4283 | ac_ext=c
|
---|
4284 | ac_cpp='$CPP $CPPFLAGS'
|
---|
4285 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
4286 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
4287 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
4288 |
|
---|
4289 | CFLAGS="$cflags_save"
|
---|
4290 |
|
---|
4291 |
|
---|
4292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
|
---|
4293 | $as_echo_n "checking for inline... " >&6; }
|
---|
4294 | if ${ac_cv_c_inline+:} false; then :
|
---|
4295 | $as_echo_n "(cached) " >&6
|
---|
4296 | else
|
---|
4297 | ac_cv_c_inline=no
|
---|
4298 | for ac_kw in inline __inline__ __inline; do
|
---|
4299 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4300 | /* end confdefs.h. */
|
---|
4301 | #ifndef __cplusplus
|
---|
4302 | typedef int foo_t;
|
---|
4303 | static $ac_kw foo_t static_foo () {return 0; }
|
---|
4304 | $ac_kw foo_t foo () {return 0; }
|
---|
4305 | #endif
|
---|
4306 |
|
---|
4307 | _ACEOF
|
---|
4308 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
4309 | ac_cv_c_inline=$ac_kw
|
---|
4310 | fi
|
---|
4311 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4312 | test "$ac_cv_c_inline" != no && break
|
---|
4313 | done
|
---|
4314 |
|
---|
4315 | fi
|
---|
4316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
|
---|
4317 | $as_echo "$ac_cv_c_inline" >&6; }
|
---|
4318 |
|
---|
4319 | case $ac_cv_c_inline in
|
---|
4320 | inline | yes) ;;
|
---|
4321 | *)
|
---|
4322 | case $ac_cv_c_inline in
|
---|
4323 | no) ac_val=;;
|
---|
4324 | *) ac_val=$ac_cv_c_inline;;
|
---|
4325 | esac
|
---|
4326 | cat >>confdefs.h <<_ACEOF
|
---|
4327 | #ifndef __cplusplus
|
---|
4328 | #define inline $ac_val
|
---|
4329 | #endif
|
---|
4330 | _ACEOF
|
---|
4331 | ;;
|
---|
4332 | esac
|
---|
4333 |
|
---|
4334 |
|
---|
4335 | enable_win32_dll=yes
|
---|
4336 |
|
---|
4337 | case $host in
|
---|
4338 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
|
---|
4339 | if test -n "$ac_tool_prefix"; then
|
---|
4340 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
|
---|
4341 | set dummy ${ac_tool_prefix}as; ac_word=$2
|
---|
4342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4343 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4344 | if ${ac_cv_prog_AS+:} false; then :
|
---|
4345 | $as_echo_n "(cached) " >&6
|
---|
4346 | else
|
---|
4347 | if test -n "$AS"; then
|
---|
4348 | ac_cv_prog_AS="$AS" # Let the user override the test.
|
---|
4349 | else
|
---|
4350 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4351 | for as_dir in $PATH
|
---|
4352 | do
|
---|
4353 | IFS=$as_save_IFS
|
---|
4354 | test -z "$as_dir" && as_dir=.
|
---|
4355 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4356 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
4357 | ac_cv_prog_AS="${ac_tool_prefix}as"
|
---|
4358 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4359 | break 2
|
---|
4360 | fi
|
---|
4361 | done
|
---|
4362 | done
|
---|
4363 | IFS=$as_save_IFS
|
---|
4364 |
|
---|
4365 | fi
|
---|
4366 | fi
|
---|
4367 | AS=$ac_cv_prog_AS
|
---|
4368 | if test -n "$AS"; then
|
---|
4369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
|
---|
4370 | $as_echo "$AS" >&6; }
|
---|
4371 | else
|
---|
4372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4373 | $as_echo "no" >&6; }
|
---|
4374 | fi
|
---|
4375 |
|
---|
4376 |
|
---|
4377 | fi
|
---|
4378 | if test -z "$ac_cv_prog_AS"; then
|
---|
4379 | ac_ct_AS=$AS
|
---|
4380 | # Extract the first word of "as", so it can be a program name with args.
|
---|
4381 | set dummy as; ac_word=$2
|
---|
4382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4383 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4384 | if ${ac_cv_prog_ac_ct_AS+:} false; then :
|
---|
4385 | $as_echo_n "(cached) " >&6
|
---|
4386 | else
|
---|
4387 | if test -n "$ac_ct_AS"; then
|
---|
4388 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
|
---|
4389 | else
|
---|
4390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4391 | for as_dir in $PATH
|
---|
4392 | do
|
---|
4393 | IFS=$as_save_IFS
|
---|
4394 | test -z "$as_dir" && as_dir=.
|
---|
4395 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4396 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
4397 | ac_cv_prog_ac_ct_AS="as"
|
---|
4398 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4399 | break 2
|
---|
4400 | fi
|
---|
4401 | done
|
---|
4402 | done
|
---|
4403 | IFS=$as_save_IFS
|
---|
4404 |
|
---|
4405 | fi
|
---|
4406 | fi
|
---|
4407 | ac_ct_AS=$ac_cv_prog_ac_ct_AS
|
---|
4408 | if test -n "$ac_ct_AS"; then
|
---|
4409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
|
---|
4410 | $as_echo "$ac_ct_AS" >&6; }
|
---|
4411 | else
|
---|
4412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4413 | $as_echo "no" >&6; }
|
---|
4414 | fi
|
---|
4415 |
|
---|
4416 | if test "x$ac_ct_AS" = x; then
|
---|
4417 | AS="false"
|
---|
4418 | else
|
---|
4419 | case $cross_compiling:$ac_tool_warned in
|
---|
4420 | yes:)
|
---|
4421 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
4422 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
4423 | ac_tool_warned=yes ;;
|
---|
4424 | esac
|
---|
4425 | AS=$ac_ct_AS
|
---|
4426 | fi
|
---|
4427 | else
|
---|
4428 | AS="$ac_cv_prog_AS"
|
---|
4429 | fi
|
---|
4430 |
|
---|
4431 | if test -n "$ac_tool_prefix"; then
|
---|
4432 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
|
---|
4433 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2
|
---|
4434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4435 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4436 | if ${ac_cv_prog_DLLTOOL+:} false; then :
|
---|
4437 | $as_echo_n "(cached) " >&6
|
---|
4438 | else
|
---|
4439 | if test -n "$DLLTOOL"; then
|
---|
4440 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
|
---|
4441 | else
|
---|
4442 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4443 | for as_dir in $PATH
|
---|
4444 | do
|
---|
4445 | IFS=$as_save_IFS
|
---|
4446 | test -z "$as_dir" && as_dir=.
|
---|
4447 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4448 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
4449 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
|
---|
4450 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4451 | break 2
|
---|
4452 | fi
|
---|
4453 | done
|
---|
4454 | done
|
---|
4455 | IFS=$as_save_IFS
|
---|
4456 |
|
---|
4457 | fi
|
---|
4458 | fi
|
---|
4459 | DLLTOOL=$ac_cv_prog_DLLTOOL
|
---|
4460 | if test -n "$DLLTOOL"; then
|
---|
4461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
|
---|
4462 | $as_echo "$DLLTOOL" >&6; }
|
---|
4463 | else
|
---|
4464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4465 | $as_echo "no" >&6; }
|
---|
4466 | fi
|
---|
4467 |
|
---|
4468 |
|
---|
4469 | fi
|
---|
4470 | if test -z "$ac_cv_prog_DLLTOOL"; then
|
---|
4471 | ac_ct_DLLTOOL=$DLLTOOL
|
---|
4472 | # Extract the first word of "dlltool", so it can be a program name with args.
|
---|
4473 | set dummy dlltool; ac_word=$2
|
---|
4474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4475 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4476 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
|
---|
4477 | $as_echo_n "(cached) " >&6
|
---|
4478 | else
|
---|
4479 | if test -n "$ac_ct_DLLTOOL"; then
|
---|
4480 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
|
---|
4481 | else
|
---|
4482 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4483 | for as_dir in $PATH
|
---|
4484 | do
|
---|
4485 | IFS=$as_save_IFS
|
---|
4486 | test -z "$as_dir" && as_dir=.
|
---|
4487 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4488 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
4489 | ac_cv_prog_ac_ct_DLLTOOL="dlltool"
|
---|
4490 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4491 | break 2
|
---|
4492 | fi
|
---|
4493 | done
|
---|
4494 | done
|
---|
4495 | IFS=$as_save_IFS
|
---|
4496 |
|
---|
4497 | fi
|
---|
4498 | fi
|
---|
4499 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
|
---|
4500 | if test -n "$ac_ct_DLLTOOL"; then
|
---|
4501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
|
---|
4502 | $as_echo "$ac_ct_DLLTOOL" >&6; }
|
---|
4503 | else
|
---|
4504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4505 | $as_echo "no" >&6; }
|
---|
4506 | fi
|
---|
4507 |
|
---|
4508 | if test "x$ac_ct_DLLTOOL" = x; then
|
---|
4509 | DLLTOOL="false"
|
---|
4510 | else
|
---|
4511 | case $cross_compiling:$ac_tool_warned in
|
---|
4512 | yes:)
|
---|
4513 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
4514 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
4515 | ac_tool_warned=yes ;;
|
---|
4516 | esac
|
---|
4517 | DLLTOOL=$ac_ct_DLLTOOL
|
---|
4518 | fi
|
---|
4519 | else
|
---|
4520 | DLLTOOL="$ac_cv_prog_DLLTOOL"
|
---|
4521 | fi
|
---|
4522 |
|
---|
4523 | if test -n "$ac_tool_prefix"; then
|
---|
4524 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
|
---|
4525 | set dummy ${ac_tool_prefix}objdump; ac_word=$2
|
---|
4526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4527 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4528 | if ${ac_cv_prog_OBJDUMP+:} false; then :
|
---|
4529 | $as_echo_n "(cached) " >&6
|
---|
4530 | else
|
---|
4531 | if test -n "$OBJDUMP"; then
|
---|
4532 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
|
---|
4533 | else
|
---|
4534 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4535 | for as_dir in $PATH
|
---|
4536 | do
|
---|
4537 | IFS=$as_save_IFS
|
---|
4538 | test -z "$as_dir" && as_dir=.
|
---|
4539 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4540 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
4541 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
|
---|
4542 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4543 | break 2
|
---|
4544 | fi
|
---|
4545 | done
|
---|
4546 | done
|
---|
4547 | IFS=$as_save_IFS
|
---|
4548 |
|
---|
4549 | fi
|
---|
4550 | fi
|
---|
4551 | OBJDUMP=$ac_cv_prog_OBJDUMP
|
---|
4552 | if test -n "$OBJDUMP"; then
|
---|
4553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
|
---|
4554 | $as_echo "$OBJDUMP" >&6; }
|
---|
4555 | else
|
---|
4556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4557 | $as_echo "no" >&6; }
|
---|
4558 | fi
|
---|
4559 |
|
---|
4560 |
|
---|
4561 | fi
|
---|
4562 | if test -z "$ac_cv_prog_OBJDUMP"; then
|
---|
4563 | ac_ct_OBJDUMP=$OBJDUMP
|
---|
4564 | # Extract the first word of "objdump", so it can be a program name with args.
|
---|
4565 | set dummy objdump; ac_word=$2
|
---|
4566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4567 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4568 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
|
---|
4569 | $as_echo_n "(cached) " >&6
|
---|
4570 | else
|
---|
4571 | if test -n "$ac_ct_OBJDUMP"; then
|
---|
4572 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
|
---|
4573 | else
|
---|
4574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4575 | for as_dir in $PATH
|
---|
4576 | do
|
---|
4577 | IFS=$as_save_IFS
|
---|
4578 | test -z "$as_dir" && as_dir=.
|
---|
4579 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4580 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
4581 | ac_cv_prog_ac_ct_OBJDUMP="objdump"
|
---|
4582 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4583 | break 2
|
---|
4584 | fi
|
---|
4585 | done
|
---|
4586 | done
|
---|
4587 | IFS=$as_save_IFS
|
---|
4588 |
|
---|
4589 | fi
|
---|
4590 | fi
|
---|
4591 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
|
---|
4592 | if test -n "$ac_ct_OBJDUMP"; then
|
---|
4593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
|
---|
4594 | $as_echo "$ac_ct_OBJDUMP" >&6; }
|
---|
4595 | else
|
---|
4596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4597 | $as_echo "no" >&6; }
|
---|
4598 | fi
|
---|
4599 |
|
---|
4600 | if test "x$ac_ct_OBJDUMP" = x; then
|
---|
4601 | OBJDUMP="false"
|
---|
4602 | else
|
---|
4603 | case $cross_compiling:$ac_tool_warned in
|
---|
4604 | yes:)
|
---|
4605 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
4606 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
4607 | ac_tool_warned=yes ;;
|
---|
4608 | esac
|
---|
4609 | OBJDUMP=$ac_ct_OBJDUMP
|
---|
4610 | fi
|
---|
4611 | else
|
---|
4612 | OBJDUMP="$ac_cv_prog_OBJDUMP"
|
---|
4613 | fi
|
---|
4614 |
|
---|
4615 | ;;
|
---|
4616 | esac
|
---|
4617 |
|
---|
4618 | test -z "$AS" && AS=as
|
---|
4619 |
|
---|
4620 |
|
---|
4621 |
|
---|
4622 |
|
---|
4623 |
|
---|
4624 | test -z "$DLLTOOL" && DLLTOOL=dlltool
|
---|
4625 |
|
---|
4626 |
|
---|
4627 |
|
---|
4628 |
|
---|
4629 |
|
---|
4630 | test -z "$OBJDUMP" && OBJDUMP=objdump
|
---|
4631 |
|
---|
4632 |
|
---|
4633 |
|
---|
4634 |
|
---|
4635 |
|
---|
4636 |
|
---|
4637 |
|
---|
4638 | case `pwd` in
|
---|
4639 | *\ * | *\ *)
|
---|
4640 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
|
---|
4641 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
|
---|
4642 | esac
|
---|
4643 |
|
---|
4644 |
|
---|
4645 |
|
---|
4646 | macro_version='2.4.6'
|
---|
4647 | macro_revision='2.4.6'
|
---|
4648 |
|
---|
4649 |
|
---|
4650 |
|
---|
4651 |
|
---|
4652 |
|
---|
4653 |
|
---|
4654 |
|
---|
4655 |
|
---|
4656 |
|
---|
4657 |
|
---|
4658 |
|
---|
4659 |
|
---|
4660 |
|
---|
4661 | ltmain=$ac_aux_dir/ltmain.sh
|
---|
4662 |
|
---|
4663 | # Backslashify metacharacters that are still active within
|
---|
4664 | # double-quoted strings.
|
---|
4665 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
|
---|
4666 |
|
---|
4667 | # Same as above, but do not quote variable references.
|
---|
4668 | double_quote_subst='s/\(["`\\]\)/\\\1/g'
|
---|
4669 |
|
---|
4670 | # Sed substitution to delay expansion of an escaped shell variable in a
|
---|
4671 | # double_quote_subst'ed string.
|
---|
4672 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
|
---|
4673 |
|
---|
4674 | # Sed substitution to delay expansion of an escaped single quote.
|
---|
4675 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
|
---|
4676 |
|
---|
4677 | # Sed substitution to avoid accidental globbing in evaled expressions
|
---|
4678 | no_glob_subst='s/\*/\\\*/g'
|
---|
4679 |
|
---|
4680 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
4681 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
|
---|
4682 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
|
---|
4683 |
|
---|
4684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
|
---|
4685 | $as_echo_n "checking how to print strings... " >&6; }
|
---|
4686 | # Test print first, because it will be a builtin if present.
|
---|
4687 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
|
---|
4688 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
|
---|
4689 | ECHO='print -r --'
|
---|
4690 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
|
---|
4691 | ECHO='printf %s\n'
|
---|
4692 | else
|
---|
4693 | # Use this function as a fallback that always works.
|
---|
4694 | func_fallback_echo ()
|
---|
4695 | {
|
---|
4696 | eval 'cat <<_LTECHO_EOF
|
---|
4697 | $1
|
---|
4698 | _LTECHO_EOF'
|
---|
4699 | }
|
---|
4700 | ECHO='func_fallback_echo'
|
---|
4701 | fi
|
---|
4702 |
|
---|
4703 | # func_echo_all arg...
|
---|
4704 | # Invoke $ECHO with all args, space-separated.
|
---|
4705 | func_echo_all ()
|
---|
4706 | {
|
---|
4707 | $ECHO ""
|
---|
4708 | }
|
---|
4709 |
|
---|
4710 | case $ECHO in
|
---|
4711 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
|
---|
4712 | $as_echo "printf" >&6; } ;;
|
---|
4713 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
|
---|
4714 | $as_echo "print -r" >&6; } ;;
|
---|
4715 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
|
---|
4716 | $as_echo "cat" >&6; } ;;
|
---|
4717 | esac
|
---|
4718 |
|
---|
4719 |
|
---|
4720 |
|
---|
4721 |
|
---|
4722 |
|
---|
4723 |
|
---|
4724 |
|
---|
4725 |
|
---|
4726 |
|
---|
4727 |
|
---|
4728 |
|
---|
4729 |
|
---|
4730 |
|
---|
4731 |
|
---|
4732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
|
---|
4733 | $as_echo_n "checking for a sed that does not truncate output... " >&6; }
|
---|
4734 | if ${ac_cv_path_SED+:} false; then :
|
---|
4735 | $as_echo_n "(cached) " >&6
|
---|
4736 | else
|
---|
4737 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
|
---|
4738 | for ac_i in 1 2 3 4 5 6 7; do
|
---|
4739 | ac_script="$ac_script$as_nl$ac_script"
|
---|
4740 | done
|
---|
4741 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
|
---|
4742 | { ac_script=; unset ac_script;}
|
---|
4743 | if test -z "$SED"; then
|
---|
4744 | ac_path_SED_found=false
|
---|
4745 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
4746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4747 | for as_dir in $PATH
|
---|
4748 | do
|
---|
4749 | IFS=$as_save_IFS
|
---|
4750 | test -z "$as_dir" && as_dir=.
|
---|
4751 | for ac_prog in sed gsed; do
|
---|
4752 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4753 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
|
---|
4754 | as_fn_executable_p "$ac_path_SED" || continue
|
---|
4755 | # Check for GNU ac_path_SED and select it if it is found.
|
---|
4756 | # Check for GNU $ac_path_SED
|
---|
4757 | case `"$ac_path_SED" --version 2>&1` in
|
---|
4758 | *GNU*)
|
---|
4759 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
|
---|
4760 | *)
|
---|
4761 | ac_count=0
|
---|
4762 | $as_echo_n 0123456789 >"conftest.in"
|
---|
4763 | while :
|
---|
4764 | do
|
---|
4765 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
4766 | mv "conftest.tmp" "conftest.in"
|
---|
4767 | cp "conftest.in" "conftest.nl"
|
---|
4768 | $as_echo '' >> "conftest.nl"
|
---|
4769 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
4770 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
4771 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
4772 | if test $ac_count -gt ${ac_path_SED_max-0}; then
|
---|
4773 | # Best one so far, save it but keep looking for a better one
|
---|
4774 | ac_cv_path_SED="$ac_path_SED"
|
---|
4775 | ac_path_SED_max=$ac_count
|
---|
4776 | fi
|
---|
4777 | # 10*(2^10) chars as input seems more than enough
|
---|
4778 | test $ac_count -gt 10 && break
|
---|
4779 | done
|
---|
4780 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
4781 | esac
|
---|
4782 |
|
---|
4783 | $ac_path_SED_found && break 3
|
---|
4784 | done
|
---|
4785 | done
|
---|
4786 | done
|
---|
4787 | IFS=$as_save_IFS
|
---|
4788 | if test -z "$ac_cv_path_SED"; then
|
---|
4789 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
|
---|
4790 | fi
|
---|
4791 | else
|
---|
4792 | ac_cv_path_SED=$SED
|
---|
4793 | fi
|
---|
4794 |
|
---|
4795 | fi
|
---|
4796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
|
---|
4797 | $as_echo "$ac_cv_path_SED" >&6; }
|
---|
4798 | SED="$ac_cv_path_SED"
|
---|
4799 | rm -f conftest.sed
|
---|
4800 |
|
---|
4801 | test -z "$SED" && SED=sed
|
---|
4802 | Xsed="$SED -e 1s/^X//"
|
---|
4803 |
|
---|
4804 |
|
---|
4805 |
|
---|
4806 |
|
---|
4807 |
|
---|
4808 |
|
---|
4809 |
|
---|
4810 |
|
---|
4811 |
|
---|
4812 |
|
---|
4813 |
|
---|
4814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
|
---|
4815 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
|
---|
4816 | if ${ac_cv_path_GREP+:} false; then :
|
---|
4817 | $as_echo_n "(cached) " >&6
|
---|
4818 | else
|
---|
4819 | if test -z "$GREP"; then
|
---|
4820 | ac_path_GREP_found=false
|
---|
4821 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
4822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4823 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
4824 | do
|
---|
4825 | IFS=$as_save_IFS
|
---|
4826 | test -z "$as_dir" && as_dir=.
|
---|
4827 | for ac_prog in grep ggrep; do
|
---|
4828 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4829 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
4830 | as_fn_executable_p "$ac_path_GREP" || continue
|
---|
4831 | # Check for GNU ac_path_GREP and select it if it is found.
|
---|
4832 | # Check for GNU $ac_path_GREP
|
---|
4833 | case `"$ac_path_GREP" --version 2>&1` in
|
---|
4834 | *GNU*)
|
---|
4835 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
---|
4836 | *)
|
---|
4837 | ac_count=0
|
---|
4838 | $as_echo_n 0123456789 >"conftest.in"
|
---|
4839 | while :
|
---|
4840 | do
|
---|
4841 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
4842 | mv "conftest.tmp" "conftest.in"
|
---|
4843 | cp "conftest.in" "conftest.nl"
|
---|
4844 | $as_echo 'GREP' >> "conftest.nl"
|
---|
4845 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
4846 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
4847 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
4848 | if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
---|
4849 | # Best one so far, save it but keep looking for a better one
|
---|
4850 | ac_cv_path_GREP="$ac_path_GREP"
|
---|
4851 | ac_path_GREP_max=$ac_count
|
---|
4852 | fi
|
---|
4853 | # 10*(2^10) chars as input seems more than enough
|
---|
4854 | test $ac_count -gt 10 && break
|
---|
4855 | done
|
---|
4856 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
4857 | esac
|
---|
4858 |
|
---|
4859 | $ac_path_GREP_found && break 3
|
---|
4860 | done
|
---|
4861 | done
|
---|
4862 | done
|
---|
4863 | IFS=$as_save_IFS
|
---|
4864 | if test -z "$ac_cv_path_GREP"; then
|
---|
4865 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
4866 | fi
|
---|
4867 | else
|
---|
4868 | ac_cv_path_GREP=$GREP
|
---|
4869 | fi
|
---|
4870 |
|
---|
4871 | fi
|
---|
4872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
|
---|
4873 | $as_echo "$ac_cv_path_GREP" >&6; }
|
---|
4874 | GREP="$ac_cv_path_GREP"
|
---|
4875 |
|
---|
4876 |
|
---|
4877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
|
---|
4878 | $as_echo_n "checking for egrep... " >&6; }
|
---|
4879 | if ${ac_cv_path_EGREP+:} false; then :
|
---|
4880 | $as_echo_n "(cached) " >&6
|
---|
4881 | else
|
---|
4882 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
---|
4883 | then ac_cv_path_EGREP="$GREP -E"
|
---|
4884 | else
|
---|
4885 | if test -z "$EGREP"; then
|
---|
4886 | ac_path_EGREP_found=false
|
---|
4887 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
4888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4889 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
4890 | do
|
---|
4891 | IFS=$as_save_IFS
|
---|
4892 | test -z "$as_dir" && as_dir=.
|
---|
4893 | for ac_prog in egrep; do
|
---|
4894 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4895 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
4896 | as_fn_executable_p "$ac_path_EGREP" || continue
|
---|
4897 | # Check for GNU ac_path_EGREP and select it if it is found.
|
---|
4898 | # Check for GNU $ac_path_EGREP
|
---|
4899 | case `"$ac_path_EGREP" --version 2>&1` in
|
---|
4900 | *GNU*)
|
---|
4901 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
---|
4902 | *)
|
---|
4903 | ac_count=0
|
---|
4904 | $as_echo_n 0123456789 >"conftest.in"
|
---|
4905 | while :
|
---|
4906 | do
|
---|
4907 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
4908 | mv "conftest.tmp" "conftest.in"
|
---|
4909 | cp "conftest.in" "conftest.nl"
|
---|
4910 | $as_echo 'EGREP' >> "conftest.nl"
|
---|
4911 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
4912 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
4913 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
4914 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
---|
4915 | # Best one so far, save it but keep looking for a better one
|
---|
4916 | ac_cv_path_EGREP="$ac_path_EGREP"
|
---|
4917 | ac_path_EGREP_max=$ac_count
|
---|
4918 | fi
|
---|
4919 | # 10*(2^10) chars as input seems more than enough
|
---|
4920 | test $ac_count -gt 10 && break
|
---|
4921 | done
|
---|
4922 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
4923 | esac
|
---|
4924 |
|
---|
4925 | $ac_path_EGREP_found && break 3
|
---|
4926 | done
|
---|
4927 | done
|
---|
4928 | done
|
---|
4929 | IFS=$as_save_IFS
|
---|
4930 | if test -z "$ac_cv_path_EGREP"; then
|
---|
4931 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
4932 | fi
|
---|
4933 | else
|
---|
4934 | ac_cv_path_EGREP=$EGREP
|
---|
4935 | fi
|
---|
4936 |
|
---|
4937 | fi
|
---|
4938 | fi
|
---|
4939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
|
---|
4940 | $as_echo "$ac_cv_path_EGREP" >&6; }
|
---|
4941 | EGREP="$ac_cv_path_EGREP"
|
---|
4942 |
|
---|
4943 |
|
---|
4944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
|
---|
4945 | $as_echo_n "checking for fgrep... " >&6; }
|
---|
4946 | if ${ac_cv_path_FGREP+:} false; then :
|
---|
4947 | $as_echo_n "(cached) " >&6
|
---|
4948 | else
|
---|
4949 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
|
---|
4950 | then ac_cv_path_FGREP="$GREP -F"
|
---|
4951 | else
|
---|
4952 | if test -z "$FGREP"; then
|
---|
4953 | ac_path_FGREP_found=false
|
---|
4954 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
4955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4956 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
4957 | do
|
---|
4958 | IFS=$as_save_IFS
|
---|
4959 | test -z "$as_dir" && as_dir=.
|
---|
4960 | for ac_prog in fgrep; do
|
---|
4961 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4962 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
4963 | as_fn_executable_p "$ac_path_FGREP" || continue
|
---|
4964 | # Check for GNU ac_path_FGREP and select it if it is found.
|
---|
4965 | # Check for GNU $ac_path_FGREP
|
---|
4966 | case `"$ac_path_FGREP" --version 2>&1` in
|
---|
4967 | *GNU*)
|
---|
4968 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
|
---|
4969 | *)
|
---|
4970 | ac_count=0
|
---|
4971 | $as_echo_n 0123456789 >"conftest.in"
|
---|
4972 | while :
|
---|
4973 | do
|
---|
4974 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
4975 | mv "conftest.tmp" "conftest.in"
|
---|
4976 | cp "conftest.in" "conftest.nl"
|
---|
4977 | $as_echo 'FGREP' >> "conftest.nl"
|
---|
4978 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
4979 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
4980 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
4981 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then
|
---|
4982 | # Best one so far, save it but keep looking for a better one
|
---|
4983 | ac_cv_path_FGREP="$ac_path_FGREP"
|
---|
4984 | ac_path_FGREP_max=$ac_count
|
---|
4985 | fi
|
---|
4986 | # 10*(2^10) chars as input seems more than enough
|
---|
4987 | test $ac_count -gt 10 && break
|
---|
4988 | done
|
---|
4989 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
4990 | esac
|
---|
4991 |
|
---|
4992 | $ac_path_FGREP_found && break 3
|
---|
4993 | done
|
---|
4994 | done
|
---|
4995 | done
|
---|
4996 | IFS=$as_save_IFS
|
---|
4997 | if test -z "$ac_cv_path_FGREP"; then
|
---|
4998 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
4999 | fi
|
---|
5000 | else
|
---|
5001 | ac_cv_path_FGREP=$FGREP
|
---|
5002 | fi
|
---|
5003 |
|
---|
5004 | fi
|
---|
5005 | fi
|
---|
5006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
|
---|
5007 | $as_echo "$ac_cv_path_FGREP" >&6; }
|
---|
5008 | FGREP="$ac_cv_path_FGREP"
|
---|
5009 |
|
---|
5010 |
|
---|
5011 | test -z "$GREP" && GREP=grep
|
---|
5012 |
|
---|
5013 |
|
---|
5014 |
|
---|
5015 |
|
---|
5016 |
|
---|
5017 |
|
---|
5018 |
|
---|
5019 |
|
---|
5020 |
|
---|
5021 |
|
---|
5022 |
|
---|
5023 |
|
---|
5024 |
|
---|
5025 |
|
---|
5026 |
|
---|
5027 |
|
---|
5028 |
|
---|
5029 |
|
---|
5030 |
|
---|
5031 | # Check whether --with-gnu-ld was given.
|
---|
5032 | if test "${with_gnu_ld+set}" = set; then :
|
---|
5033 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
|
---|
5034 | else
|
---|
5035 | with_gnu_ld=no
|
---|
5036 | fi
|
---|
5037 |
|
---|
5038 | ac_prog=ld
|
---|
5039 | if test yes = "$GCC"; then
|
---|
5040 | # Check if gcc -print-prog-name=ld gives a path.
|
---|
5041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
|
---|
5042 | $as_echo_n "checking for ld used by $CC... " >&6; }
|
---|
5043 | case $host in
|
---|
5044 | *-*-mingw*)
|
---|
5045 | # gcc leaves a trailing carriage return, which upsets mingw
|
---|
5046 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
---|
5047 | *)
|
---|
5048 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
---|
5049 | esac
|
---|
5050 | case $ac_prog in
|
---|
5051 | # Accept absolute paths.
|
---|
5052 | [\\/]* | ?:[\\/]*)
|
---|
5053 | re_direlt='/[^/][^/]*/\.\./'
|
---|
5054 | # Canonicalize the pathname of ld
|
---|
5055 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
|
---|
5056 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
|
---|
5057 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
|
---|
5058 | done
|
---|
5059 | test -z "$LD" && LD=$ac_prog
|
---|
5060 | ;;
|
---|
5061 | "")
|
---|
5062 | # If it fails, then pretend we aren't using GCC.
|
---|
5063 | ac_prog=ld
|
---|
5064 | ;;
|
---|
5065 | *)
|
---|
5066 | # If it is relative, then search for the first ld in PATH.
|
---|
5067 | with_gnu_ld=unknown
|
---|
5068 | ;;
|
---|
5069 | esac
|
---|
5070 | elif test yes = "$with_gnu_ld"; then
|
---|
5071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
|
---|
5072 | $as_echo_n "checking for GNU ld... " >&6; }
|
---|
5073 | else
|
---|
5074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
|
---|
5075 | $as_echo_n "checking for non-GNU ld... " >&6; }
|
---|
5076 | fi
|
---|
5077 | if ${lt_cv_path_LD+:} false; then :
|
---|
5078 | $as_echo_n "(cached) " >&6
|
---|
5079 | else
|
---|
5080 | if test -z "$LD"; then
|
---|
5081 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
|
---|
5082 | for ac_dir in $PATH; do
|
---|
5083 | IFS=$lt_save_ifs
|
---|
5084 | test -z "$ac_dir" && ac_dir=.
|
---|
5085 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
---|
5086 | lt_cv_path_LD=$ac_dir/$ac_prog
|
---|
5087 | # Check to see if the program is GNU ld. I'd rather use --version,
|
---|
5088 | # but apparently some variants of GNU ld only accept -v.
|
---|
5089 | # Break only if it was the GNU/non-GNU ld that we prefer.
|
---|
5090 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
|
---|
5091 | *GNU* | *'with BFD'*)
|
---|
5092 | test no != "$with_gnu_ld" && break
|
---|
5093 | ;;
|
---|
5094 | *)
|
---|
5095 | test yes != "$with_gnu_ld" && break
|
---|
5096 | ;;
|
---|
5097 | esac
|
---|
5098 | fi
|
---|
5099 | done
|
---|
5100 | IFS=$lt_save_ifs
|
---|
5101 | else
|
---|
5102 | lt_cv_path_LD=$LD # Let the user override the test with a path.
|
---|
5103 | fi
|
---|
5104 | fi
|
---|
5105 |
|
---|
5106 | LD=$lt_cv_path_LD
|
---|
5107 | if test -n "$LD"; then
|
---|
5108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
|
---|
5109 | $as_echo "$LD" >&6; }
|
---|
5110 | else
|
---|
5111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5112 | $as_echo "no" >&6; }
|
---|
5113 | fi
|
---|
5114 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
|
---|
5115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
|
---|
5116 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
|
---|
5117 | if ${lt_cv_prog_gnu_ld+:} false; then :
|
---|
5118 | $as_echo_n "(cached) " >&6
|
---|
5119 | else
|
---|
5120 | # I'd rather use --version here, but apparently some GNU lds only accept -v.
|
---|
5121 | case `$LD -v 2>&1 </dev/null` in
|
---|
5122 | *GNU* | *'with BFD'*)
|
---|
5123 | lt_cv_prog_gnu_ld=yes
|
---|
5124 | ;;
|
---|
5125 | *)
|
---|
5126 | lt_cv_prog_gnu_ld=no
|
---|
5127 | ;;
|
---|
5128 | esac
|
---|
5129 | fi
|
---|
5130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
|
---|
5131 | $as_echo "$lt_cv_prog_gnu_ld" >&6; }
|
---|
5132 | with_gnu_ld=$lt_cv_prog_gnu_ld
|
---|
5133 |
|
---|
5134 |
|
---|
5135 |
|
---|
5136 |
|
---|
5137 |
|
---|
5138 |
|
---|
5139 |
|
---|
5140 |
|
---|
5141 |
|
---|
5142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
|
---|
5143 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
|
---|
5144 | if ${lt_cv_path_NM+:} false; then :
|
---|
5145 | $as_echo_n "(cached) " >&6
|
---|
5146 | else
|
---|
5147 | if test -n "$NM"; then
|
---|
5148 | # Let the user override the test.
|
---|
5149 | lt_cv_path_NM=$NM
|
---|
5150 | else
|
---|
5151 | lt_nm_to_check=${ac_tool_prefix}nm
|
---|
5152 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
|
---|
5153 | lt_nm_to_check="$lt_nm_to_check nm"
|
---|
5154 | fi
|
---|
5155 | for lt_tmp_nm in $lt_nm_to_check; do
|
---|
5156 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
|
---|
5157 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
|
---|
5158 | IFS=$lt_save_ifs
|
---|
5159 | test -z "$ac_dir" && ac_dir=.
|
---|
5160 | tmp_nm=$ac_dir/$lt_tmp_nm
|
---|
5161 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
|
---|
5162 | # Check to see if the nm accepts a BSD-compat flag.
|
---|
5163 | # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
|
---|
5164 | # nm: unknown option "B" ignored
|
---|
5165 | # Tru64's nm complains that /dev/null is an invalid object file
|
---|
5166 | # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
|
---|
5167 | case $build_os in
|
---|
5168 | mingw*) lt_bad_file=conftest.nm/nofile ;;
|
---|
5169 | *) lt_bad_file=/dev/null ;;
|
---|
5170 | esac
|
---|
5171 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
|
---|
5172 | *$lt_bad_file* | *'Invalid file or object type'*)
|
---|
5173 | lt_cv_path_NM="$tmp_nm -B"
|
---|
5174 | break 2
|
---|
5175 | ;;
|
---|
5176 | *)
|
---|
5177 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
|
---|
5178 | */dev/null*)
|
---|
5179 | lt_cv_path_NM="$tmp_nm -p"
|
---|
5180 | break 2
|
---|
5181 | ;;
|
---|
5182 | *)
|
---|
5183 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
---|
5184 | continue # so that we can try to find one that supports BSD flags
|
---|
5185 | ;;
|
---|
5186 | esac
|
---|
5187 | ;;
|
---|
5188 | esac
|
---|
5189 | fi
|
---|
5190 | done
|
---|
5191 | IFS=$lt_save_ifs
|
---|
5192 | done
|
---|
5193 | : ${lt_cv_path_NM=no}
|
---|
5194 | fi
|
---|
5195 | fi
|
---|
5196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
|
---|
5197 | $as_echo "$lt_cv_path_NM" >&6; }
|
---|
5198 | if test no != "$lt_cv_path_NM"; then
|
---|
5199 | NM=$lt_cv_path_NM
|
---|
5200 | else
|
---|
5201 | # Didn't find any BSD compatible name lister, look for dumpbin.
|
---|
5202 | if test -n "$DUMPBIN"; then :
|
---|
5203 | # Let the user override the test.
|
---|
5204 | else
|
---|
5205 | if test -n "$ac_tool_prefix"; then
|
---|
5206 | for ac_prog in dumpbin "link -dump"
|
---|
5207 | do
|
---|
5208 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
5209 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
5210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
5211 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
5212 | if ${ac_cv_prog_DUMPBIN+:} false; then :
|
---|
5213 | $as_echo_n "(cached) " >&6
|
---|
5214 | else
|
---|
5215 | if test -n "$DUMPBIN"; then
|
---|
5216 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
|
---|
5217 | else
|
---|
5218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5219 | for as_dir in $PATH
|
---|
5220 | do
|
---|
5221 | IFS=$as_save_IFS
|
---|
5222 | test -z "$as_dir" && as_dir=.
|
---|
5223 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5224 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
5225 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
|
---|
5226 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
5227 | break 2
|
---|
5228 | fi
|
---|
5229 | done
|
---|
5230 | done
|
---|
5231 | IFS=$as_save_IFS
|
---|
5232 |
|
---|
5233 | fi
|
---|
5234 | fi
|
---|
5235 | DUMPBIN=$ac_cv_prog_DUMPBIN
|
---|
5236 | if test -n "$DUMPBIN"; then
|
---|
5237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
|
---|
5238 | $as_echo "$DUMPBIN" >&6; }
|
---|
5239 | else
|
---|
5240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5241 | $as_echo "no" >&6; }
|
---|
5242 | fi
|
---|
5243 |
|
---|
5244 |
|
---|
5245 | test -n "$DUMPBIN" && break
|
---|
5246 | done
|
---|
5247 | fi
|
---|
5248 | if test -z "$DUMPBIN"; then
|
---|
5249 | ac_ct_DUMPBIN=$DUMPBIN
|
---|
5250 | for ac_prog in dumpbin "link -dump"
|
---|
5251 | do
|
---|
5252 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
5253 | set dummy $ac_prog; ac_word=$2
|
---|
5254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
5255 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
5256 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
|
---|
5257 | $as_echo_n "(cached) " >&6
|
---|
5258 | else
|
---|
5259 | if test -n "$ac_ct_DUMPBIN"; then
|
---|
5260 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
|
---|
5261 | else
|
---|
5262 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5263 | for as_dir in $PATH
|
---|
5264 | do
|
---|
5265 | IFS=$as_save_IFS
|
---|
5266 | test -z "$as_dir" && as_dir=.
|
---|
5267 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5268 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
5269 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
|
---|
5270 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
5271 | break 2
|
---|
5272 | fi
|
---|
5273 | done
|
---|
5274 | done
|
---|
5275 | IFS=$as_save_IFS
|
---|
5276 |
|
---|
5277 | fi
|
---|
5278 | fi
|
---|
5279 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
|
---|
5280 | if test -n "$ac_ct_DUMPBIN"; then
|
---|
5281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
|
---|
5282 | $as_echo "$ac_ct_DUMPBIN" >&6; }
|
---|
5283 | else
|
---|
5284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5285 | $as_echo "no" >&6; }
|
---|
5286 | fi
|
---|
5287 |
|
---|
5288 |
|
---|
5289 | test -n "$ac_ct_DUMPBIN" && break
|
---|
5290 | done
|
---|
5291 |
|
---|
5292 | if test "x$ac_ct_DUMPBIN" = x; then
|
---|
5293 | DUMPBIN=":"
|
---|
5294 | else
|
---|
5295 | case $cross_compiling:$ac_tool_warned in
|
---|
5296 | yes:)
|
---|
5297 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
5298 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
5299 | ac_tool_warned=yes ;;
|
---|
5300 | esac
|
---|
5301 | DUMPBIN=$ac_ct_DUMPBIN
|
---|
5302 | fi
|
---|
5303 | fi
|
---|
5304 |
|
---|
5305 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
|
---|
5306 | *COFF*)
|
---|
5307 | DUMPBIN="$DUMPBIN -symbols -headers"
|
---|
5308 | ;;
|
---|
5309 | *)
|
---|
5310 | DUMPBIN=:
|
---|
5311 | ;;
|
---|
5312 | esac
|
---|
5313 | fi
|
---|
5314 |
|
---|
5315 | if test : != "$DUMPBIN"; then
|
---|
5316 | NM=$DUMPBIN
|
---|
5317 | fi
|
---|
5318 | fi
|
---|
5319 | test -z "$NM" && NM=nm
|
---|
5320 |
|
---|
5321 |
|
---|
5322 |
|
---|
5323 |
|
---|
5324 |
|
---|
5325 |
|
---|
5326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
|
---|
5327 | $as_echo_n "checking the name lister ($NM) interface... " >&6; }
|
---|
5328 | if ${lt_cv_nm_interface+:} false; then :
|
---|
5329 | $as_echo_n "(cached) " >&6
|
---|
5330 | else
|
---|
5331 | lt_cv_nm_interface="BSD nm"
|
---|
5332 | echo "int some_variable = 0;" > conftest.$ac_ext
|
---|
5333 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
|
---|
5334 | (eval "$ac_compile" 2>conftest.err)
|
---|
5335 | cat conftest.err >&5
|
---|
5336 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
|
---|
5337 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
|
---|
5338 | cat conftest.err >&5
|
---|
5339 | (eval echo "\"\$as_me:$LINENO: output\"" >&5)
|
---|
5340 | cat conftest.out >&5
|
---|
5341 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then
|
---|
5342 | lt_cv_nm_interface="MS dumpbin"
|
---|
5343 | fi
|
---|
5344 | rm -f conftest*
|
---|
5345 | fi
|
---|
5346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
|
---|
5347 | $as_echo "$lt_cv_nm_interface" >&6; }
|
---|
5348 |
|
---|
5349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
|
---|
5350 | $as_echo_n "checking whether ln -s works... " >&6; }
|
---|
5351 | LN_S=$as_ln_s
|
---|
5352 | if test "$LN_S" = "ln -s"; then
|
---|
5353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
5354 | $as_echo "yes" >&6; }
|
---|
5355 | else
|
---|
5356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
|
---|
5357 | $as_echo "no, using $LN_S" >&6; }
|
---|
5358 | fi
|
---|
5359 |
|
---|
5360 | # find the maximum length of command line arguments
|
---|
5361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
|
---|
5362 | $as_echo_n "checking the maximum length of command line arguments... " >&6; }
|
---|
5363 | if ${lt_cv_sys_max_cmd_len+:} false; then :
|
---|
5364 | $as_echo_n "(cached) " >&6
|
---|
5365 | else
|
---|
5366 | i=0
|
---|
5367 | teststring=ABCD
|
---|
5368 |
|
---|
5369 | case $build_os in
|
---|
5370 | msdosdjgpp*)
|
---|
5371 | # On DJGPP, this test can blow up pretty badly due to problems in libc
|
---|
5372 | # (any single argument exceeding 2000 bytes causes a buffer overrun
|
---|
5373 | # during glob expansion). Even if it were fixed, the result of this
|
---|
5374 | # check would be larger than it should be.
|
---|
5375 | lt_cv_sys_max_cmd_len=12288; # 12K is about right
|
---|
5376 | ;;
|
---|
5377 |
|
---|
5378 | gnu*)
|
---|
5379 | # Under GNU Hurd, this test is not required because there is
|
---|
5380 | # no limit to the length of command line arguments.
|
---|
5381 | # Libtool will interpret -1 as no limit whatsoever
|
---|
5382 | lt_cv_sys_max_cmd_len=-1;
|
---|
5383 | ;;
|
---|
5384 |
|
---|
5385 | cygwin* | mingw* | cegcc*)
|
---|
5386 | # On Win9x/ME, this test blows up -- it succeeds, but takes
|
---|
5387 | # about 5 minutes as the teststring grows exponentially.
|
---|
5388 | # Worse, since 9x/ME are not pre-emptively multitasking,
|
---|
5389 | # you end up with a "frozen" computer, even though with patience
|
---|
5390 | # the test eventually succeeds (with a max line length of 256k).
|
---|
5391 | # Instead, let's just punt: use the minimum linelength reported by
|
---|
5392 | # all of the supported platforms: 8192 (on NT/2K/XP).
|
---|
5393 | lt_cv_sys_max_cmd_len=8192;
|
---|
5394 | ;;
|
---|
5395 |
|
---|
5396 | mint*)
|
---|
5397 | # On MiNT this can take a long time and run out of memory.
|
---|
5398 | lt_cv_sys_max_cmd_len=8192;
|
---|
5399 | ;;
|
---|
5400 |
|
---|
5401 | amigaos*)
|
---|
5402 | # On AmigaOS with pdksh, this test takes hours, literally.
|
---|
5403 | # So we just punt and use a minimum line length of 8192.
|
---|
5404 | lt_cv_sys_max_cmd_len=8192;
|
---|
5405 | ;;
|
---|
5406 |
|
---|
5407 | bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
|
---|
5408 | # This has been around since 386BSD, at least. Likely further.
|
---|
5409 | if test -x /sbin/sysctl; then
|
---|
5410 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
|
---|
5411 | elif test -x /usr/sbin/sysctl; then
|
---|
5412 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
|
---|
5413 | else
|
---|
5414 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
|
---|
5415 | fi
|
---|
5416 | # And add a safety zone
|
---|
5417 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
---|
5418 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
---|
5419 | ;;
|
---|
5420 |
|
---|
5421 | interix*)
|
---|
5422 | # We know the value 262144 and hardcode it with a safety zone (like BSD)
|
---|
5423 | lt_cv_sys_max_cmd_len=196608
|
---|
5424 | ;;
|
---|
5425 |
|
---|
5426 | os2*)
|
---|
5427 | # The test takes a long time on OS/2.
|
---|
5428 | lt_cv_sys_max_cmd_len=8192
|
---|
5429 | ;;
|
---|
5430 |
|
---|
5431 | osf*)
|
---|
5432 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
|
---|
5433 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
|
---|
5434 | # nice to cause kernel panics so lets avoid the loop below.
|
---|
5435 | # First set a reasonable default.
|
---|
5436 | lt_cv_sys_max_cmd_len=16384
|
---|
5437 | #
|
---|
5438 | if test -x /sbin/sysconfig; then
|
---|
5439 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
|
---|
5440 | *1*) lt_cv_sys_max_cmd_len=-1 ;;
|
---|
5441 | esac
|
---|
5442 | fi
|
---|
5443 | ;;
|
---|
5444 | sco3.2v5*)
|
---|
5445 | lt_cv_sys_max_cmd_len=102400
|
---|
5446 | ;;
|
---|
5447 | sysv5* | sco5v6* | sysv4.2uw2*)
|
---|
5448 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
|
---|
5449 | if test -n "$kargmax"; then
|
---|
5450 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
|
---|
5451 | else
|
---|
5452 | lt_cv_sys_max_cmd_len=32768
|
---|
5453 | fi
|
---|
5454 | ;;
|
---|
5455 | *)
|
---|
5456 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
|
---|
5457 | if test -n "$lt_cv_sys_max_cmd_len" && \
|
---|
5458 | test undefined != "$lt_cv_sys_max_cmd_len"; then
|
---|
5459 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
---|
5460 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
---|
5461 | else
|
---|
5462 | # Make teststring a little bigger before we do anything with it.
|
---|
5463 | # a 1K string should be a reasonable start.
|
---|
5464 | for i in 1 2 3 4 5 6 7 8; do
|
---|
5465 | teststring=$teststring$teststring
|
---|
5466 | done
|
---|
5467 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
|
---|
5468 | # If test is not a shell built-in, we'll probably end up computing a
|
---|
5469 | # maximum length that is only half of the actual maximum length, but
|
---|
5470 | # we can't tell.
|
---|
5471 | while { test X`env echo "$teststring$teststring" 2>/dev/null` \
|
---|
5472 | = "X$teststring$teststring"; } >/dev/null 2>&1 &&
|
---|
5473 | test 17 != "$i" # 1/2 MB should be enough
|
---|
5474 | do
|
---|
5475 | i=`expr $i + 1`
|
---|
5476 | teststring=$teststring$teststring
|
---|
5477 | done
|
---|
5478 | # Only check the string length outside the loop.
|
---|
5479 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
|
---|
5480 | teststring=
|
---|
5481 | # Add a significant safety factor because C++ compilers can tack on
|
---|
5482 | # massive amounts of additional arguments before passing them to the
|
---|
5483 | # linker. It appears as though 1/2 is a usable value.
|
---|
5484 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
|
---|
5485 | fi
|
---|
5486 | ;;
|
---|
5487 | esac
|
---|
5488 |
|
---|
5489 | fi
|
---|
5490 |
|
---|
5491 | if test -n "$lt_cv_sys_max_cmd_len"; then
|
---|
5492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
|
---|
5493 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
|
---|
5494 | else
|
---|
5495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
|
---|
5496 | $as_echo "none" >&6; }
|
---|
5497 | fi
|
---|
5498 | max_cmd_len=$lt_cv_sys_max_cmd_len
|
---|
5499 |
|
---|
5500 |
|
---|
5501 |
|
---|
5502 |
|
---|
5503 |
|
---|
5504 |
|
---|
5505 | : ${CP="cp -f"}
|
---|
5506 | : ${MV="mv -f"}
|
---|
5507 | : ${RM="rm -f"}
|
---|
5508 |
|
---|
5509 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
5510 | lt_unset=unset
|
---|
5511 | else
|
---|
5512 | lt_unset=false
|
---|
5513 | fi
|
---|
5514 |
|
---|
5515 |
|
---|
5516 |
|
---|
5517 |
|
---|
5518 |
|
---|
5519 | # test EBCDIC or ASCII
|
---|
5520 | case `echo X|tr X '\101'` in
|
---|
5521 | A) # ASCII based system
|
---|
5522 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
|
---|
5523 | lt_SP2NL='tr \040 \012'
|
---|
5524 | lt_NL2SP='tr \015\012 \040\040'
|
---|
5525 | ;;
|
---|
5526 | *) # EBCDIC based system
|
---|
5527 | lt_SP2NL='tr \100 \n'
|
---|
5528 | lt_NL2SP='tr \r\n \100\100'
|
---|
5529 | ;;
|
---|
5530 | esac
|
---|
5531 |
|
---|
5532 |
|
---|
5533 |
|
---|
5534 |
|
---|
5535 |
|
---|
5536 |
|
---|
5537 |
|
---|
5538 |
|
---|
5539 |
|
---|
5540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
|
---|
5541 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
|
---|
5542 | if ${lt_cv_to_host_file_cmd+:} false; then :
|
---|
5543 | $as_echo_n "(cached) " >&6
|
---|
5544 | else
|
---|
5545 | case $host in
|
---|
5546 | *-*-mingw* )
|
---|
5547 | case $build in
|
---|
5548 | *-*-mingw* ) # actually msys
|
---|
5549 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
|
---|
5550 | ;;
|
---|
5551 | *-*-cygwin* )
|
---|
5552 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
|
---|
5553 | ;;
|
---|
5554 | * ) # otherwise, assume *nix
|
---|
5555 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
|
---|
5556 | ;;
|
---|
5557 | esac
|
---|
5558 | ;;
|
---|
5559 | *-*-cygwin* )
|
---|
5560 | case $build in
|
---|
5561 | *-*-mingw* ) # actually msys
|
---|
5562 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
|
---|
5563 | ;;
|
---|
5564 | *-*-cygwin* )
|
---|
5565 | lt_cv_to_host_file_cmd=func_convert_file_noop
|
---|
5566 | ;;
|
---|
5567 | * ) # otherwise, assume *nix
|
---|
5568 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
|
---|
5569 | ;;
|
---|
5570 | esac
|
---|
5571 | ;;
|
---|
5572 | * ) # unhandled hosts (and "normal" native builds)
|
---|
5573 | lt_cv_to_host_file_cmd=func_convert_file_noop
|
---|
5574 | ;;
|
---|
5575 | esac
|
---|
5576 |
|
---|
5577 | fi
|
---|
5578 |
|
---|
5579 | to_host_file_cmd=$lt_cv_to_host_file_cmd
|
---|
5580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
|
---|
5581 | $as_echo "$lt_cv_to_host_file_cmd" >&6; }
|
---|
5582 |
|
---|
5583 |
|
---|
5584 |
|
---|
5585 |
|
---|
5586 |
|
---|
5587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
|
---|
5588 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
|
---|
5589 | if ${lt_cv_to_tool_file_cmd+:} false; then :
|
---|
5590 | $as_echo_n "(cached) " >&6
|
---|
5591 | else
|
---|
5592 | #assume ordinary cross tools, or native build.
|
---|
5593 | lt_cv_to_tool_file_cmd=func_convert_file_noop
|
---|
5594 | case $host in
|
---|
5595 | *-*-mingw* )
|
---|
5596 | case $build in
|
---|
5597 | *-*-mingw* ) # actually msys
|
---|
5598 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
|
---|
5599 | ;;
|
---|
5600 | esac
|
---|
5601 | ;;
|
---|
5602 | esac
|
---|
5603 |
|
---|
5604 | fi
|
---|
5605 |
|
---|
5606 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
---|
5607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
|
---|
5608 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
|
---|
5609 |
|
---|
5610 |
|
---|
5611 |
|
---|
5612 |
|
---|
5613 |
|
---|
5614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
|
---|
5615 | $as_echo_n "checking for $LD option to reload object files... " >&6; }
|
---|
5616 | if ${lt_cv_ld_reload_flag+:} false; then :
|
---|
5617 | $as_echo_n "(cached) " >&6
|
---|
5618 | else
|
---|
5619 | lt_cv_ld_reload_flag='-r'
|
---|
5620 | fi
|
---|
5621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
|
---|
5622 | $as_echo "$lt_cv_ld_reload_flag" >&6; }
|
---|
5623 | reload_flag=$lt_cv_ld_reload_flag
|
---|
5624 | case $reload_flag in
|
---|
5625 | "" | " "*) ;;
|
---|
5626 | *) reload_flag=" $reload_flag" ;;
|
---|
5627 | esac
|
---|
5628 | reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
---|
5629 | case $host_os in
|
---|
5630 | cygwin* | mingw* | pw32* | cegcc*)
|
---|
5631 | if test yes != "$GCC"; then
|
---|
5632 | reload_cmds=false
|
---|
5633 | fi
|
---|
5634 | ;;
|
---|
5635 | darwin*)
|
---|
5636 | if test yes = "$GCC"; then
|
---|
5637 | reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
|
---|
5638 | else
|
---|
5639 | reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
---|
5640 | fi
|
---|
5641 | ;;
|
---|
5642 | esac
|
---|
5643 |
|
---|
5644 |
|
---|
5645 |
|
---|
5646 |
|
---|
5647 |
|
---|
5648 |
|
---|
5649 |
|
---|
5650 |
|
---|
5651 |
|
---|
5652 | if test -n "$ac_tool_prefix"; then
|
---|
5653 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
|
---|
5654 | set dummy ${ac_tool_prefix}objdump; ac_word=$2
|
---|
5655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
5656 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
5657 | if ${ac_cv_prog_OBJDUMP+:} false; then :
|
---|
5658 | $as_echo_n "(cached) " >&6
|
---|
5659 | else
|
---|
5660 | if test -n "$OBJDUMP"; then
|
---|
5661 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
|
---|
5662 | else
|
---|
5663 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5664 | for as_dir in $PATH
|
---|
5665 | do
|
---|
5666 | IFS=$as_save_IFS
|
---|
5667 | test -z "$as_dir" && as_dir=.
|
---|
5668 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5669 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
5670 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
|
---|
5671 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
5672 | break 2
|
---|
5673 | fi
|
---|
5674 | done
|
---|
5675 | done
|
---|
5676 | IFS=$as_save_IFS
|
---|
5677 |
|
---|
5678 | fi
|
---|
5679 | fi
|
---|
5680 | OBJDUMP=$ac_cv_prog_OBJDUMP
|
---|
5681 | if test -n "$OBJDUMP"; then
|
---|
5682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
|
---|
5683 | $as_echo "$OBJDUMP" >&6; }
|
---|
5684 | else
|
---|
5685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5686 | $as_echo "no" >&6; }
|
---|
5687 | fi
|
---|
5688 |
|
---|
5689 |
|
---|
5690 | fi
|
---|
5691 | if test -z "$ac_cv_prog_OBJDUMP"; then
|
---|
5692 | ac_ct_OBJDUMP=$OBJDUMP
|
---|
5693 | # Extract the first word of "objdump", so it can be a program name with args.
|
---|
5694 | set dummy objdump; ac_word=$2
|
---|
5695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
5696 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
5697 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
|
---|
5698 | $as_echo_n "(cached) " >&6
|
---|
5699 | else
|
---|
5700 | if test -n "$ac_ct_OBJDUMP"; then
|
---|
5701 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
|
---|
5702 | else
|
---|
5703 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5704 | for as_dir in $PATH
|
---|
5705 | do
|
---|
5706 | IFS=$as_save_IFS
|
---|
5707 | test -z "$as_dir" && as_dir=.
|
---|
5708 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5709 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
5710 | ac_cv_prog_ac_ct_OBJDUMP="objdump"
|
---|
5711 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
5712 | break 2
|
---|
5713 | fi
|
---|
5714 | done
|
---|
5715 | done
|
---|
5716 | IFS=$as_save_IFS
|
---|
5717 |
|
---|
5718 | fi
|
---|
5719 | fi
|
---|
5720 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
|
---|
5721 | if test -n "$ac_ct_OBJDUMP"; then
|
---|
5722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
|
---|
5723 | $as_echo "$ac_ct_OBJDUMP" >&6; }
|
---|
5724 | else
|
---|
5725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5726 | $as_echo "no" >&6; }
|
---|
5727 | fi
|
---|
5728 |
|
---|
5729 | if test "x$ac_ct_OBJDUMP" = x; then
|
---|
5730 | OBJDUMP="false"
|
---|
5731 | else
|
---|
5732 | case $cross_compiling:$ac_tool_warned in
|
---|
5733 | yes:)
|
---|
5734 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
5735 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
5736 | ac_tool_warned=yes ;;
|
---|
5737 | esac
|
---|
5738 | OBJDUMP=$ac_ct_OBJDUMP
|
---|
5739 | fi
|
---|
5740 | else
|
---|
5741 | OBJDUMP="$ac_cv_prog_OBJDUMP"
|
---|
5742 | fi
|
---|
5743 |
|
---|
5744 | test -z "$OBJDUMP" && OBJDUMP=objdump
|
---|
5745 |
|
---|
5746 |
|
---|
5747 |
|
---|
5748 |
|
---|
5749 |
|
---|
5750 |
|
---|
5751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
|
---|
5752 | $as_echo_n "checking how to recognize dependent libraries... " >&6; }
|
---|
5753 | if ${lt_cv_deplibs_check_method+:} false; then :
|
---|
5754 | $as_echo_n "(cached) " >&6
|
---|
5755 | else
|
---|
5756 | lt_cv_file_magic_cmd='$MAGIC_CMD'
|
---|
5757 | lt_cv_file_magic_test_file=
|
---|
5758 | lt_cv_deplibs_check_method='unknown'
|
---|
5759 | # Need to set the preceding variable on all platforms that support
|
---|
5760 | # interlibrary dependencies.
|
---|
5761 | # 'none' -- dependencies not supported.
|
---|
5762 | # 'unknown' -- same as none, but documents that we really don't know.
|
---|
5763 | # 'pass_all' -- all dependencies passed with no checks.
|
---|
5764 | # 'test_compile' -- check by making test program.
|
---|
5765 | # 'file_magic [[regex]]' -- check by looking for files in library path
|
---|
5766 | # that responds to the $file_magic_cmd with a given extended regex.
|
---|
5767 | # If you have 'file' or equivalent on your system and you're not sure
|
---|
5768 | # whether 'pass_all' will *always* work, you probably want this one.
|
---|
5769 |
|
---|
5770 | case $host_os in
|
---|
5771 | aix[4-9]*)
|
---|
5772 | lt_cv_deplibs_check_method=pass_all
|
---|
5773 | ;;
|
---|
5774 |
|
---|
5775 | beos*)
|
---|
5776 | lt_cv_deplibs_check_method=pass_all
|
---|
5777 | ;;
|
---|
5778 |
|
---|
5779 | bsdi[45]*)
|
---|
5780 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
---|
5781 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
---|
5782 | lt_cv_file_magic_test_file=/shlib/libc.so
|
---|
5783 | ;;
|
---|
5784 |
|
---|
5785 | cygwin*)
|
---|
5786 | # func_win32_libid is a shell function defined in ltmain.sh
|
---|
5787 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
---|
5788 | lt_cv_file_magic_cmd='func_win32_libid'
|
---|
5789 | ;;
|
---|
5790 |
|
---|
5791 | mingw* | pw32*)
|
---|
5792 | # Base MSYS/MinGW do not provide the 'file' command needed by
|
---|
5793 | # func_win32_libid shell function, so use a weaker test based on 'objdump',
|
---|
5794 | # unless we find 'file', for example because we are cross-compiling.
|
---|
5795 | if ( file / ) >/dev/null 2>&1; then
|
---|
5796 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
---|
5797 | lt_cv_file_magic_cmd='func_win32_libid'
|
---|
5798 | else
|
---|
5799 | # Keep this pattern in sync with the one in func_win32_libid.
|
---|
5800 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
|
---|
5801 | lt_cv_file_magic_cmd='$OBJDUMP -f'
|
---|
5802 | fi
|
---|
5803 | ;;
|
---|
5804 |
|
---|
5805 | cegcc*)
|
---|
5806 | # use the weaker test based on 'objdump'. See mingw*.
|
---|
5807 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
|
---|
5808 | lt_cv_file_magic_cmd='$OBJDUMP -f'
|
---|
5809 | ;;
|
---|
5810 |
|
---|
5811 | darwin* | rhapsody*)
|
---|
5812 | lt_cv_deplibs_check_method=pass_all
|
---|
5813 | ;;
|
---|
5814 |
|
---|
5815 | freebsd* | dragonfly*)
|
---|
5816 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
|
---|
5817 | case $host_cpu in
|
---|
5818 | i*86 )
|
---|
5819 | # Not sure whether the presence of OpenBSD here was a mistake.
|
---|
5820 | # Let's accept both of them until this is cleared up.
|
---|
5821 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
|
---|
5822 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
5823 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
---|
5824 | ;;
|
---|
5825 | esac
|
---|
5826 | else
|
---|
5827 | lt_cv_deplibs_check_method=pass_all
|
---|
5828 | fi
|
---|
5829 | ;;
|
---|
5830 |
|
---|
5831 | haiku*)
|
---|
5832 | lt_cv_deplibs_check_method=pass_all
|
---|
5833 | ;;
|
---|
5834 |
|
---|
5835 | hpux10.20* | hpux11*)
|
---|
5836 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
5837 | case $host_cpu in
|
---|
5838 | ia64*)
|
---|
5839 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
|
---|
5840 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
---|
5841 | ;;
|
---|
5842 | hppa*64*)
|
---|
5843 | 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]'
|
---|
5844 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
|
---|
5845 | ;;
|
---|
5846 | *)
|
---|
5847 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
|
---|
5848 | lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
---|
5849 | ;;
|
---|
5850 | esac
|
---|
5851 | ;;
|
---|
5852 |
|
---|
5853 | interix[3-9]*)
|
---|
5854 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
|
---|
5855 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
|
---|
5856 | ;;
|
---|
5857 |
|
---|
5858 | irix5* | irix6* | nonstopux*)
|
---|
5859 | case $LD in
|
---|
5860 | *-32|*"-32 ") libmagic=32-bit;;
|
---|
5861 | *-n32|*"-n32 ") libmagic=N32;;
|
---|
5862 | *-64|*"-64 ") libmagic=64-bit;;
|
---|
5863 | *) libmagic=never-match;;
|
---|
5864 | esac
|
---|
5865 | lt_cv_deplibs_check_method=pass_all
|
---|
5866 | ;;
|
---|
5867 |
|
---|
5868 | # This must be glibc/ELF.
|
---|
5869 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
|
---|
5870 | lt_cv_deplibs_check_method=pass_all
|
---|
5871 | ;;
|
---|
5872 |
|
---|
5873 | netbsd* | netbsdelf*-gnu)
|
---|
5874 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
|
---|
5875 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
|
---|
5876 | else
|
---|
5877 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
|
---|
5878 | fi
|
---|
5879 | ;;
|
---|
5880 |
|
---|
5881 | newos6*)
|
---|
5882 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
|
---|
5883 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
5884 | lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
---|
5885 | ;;
|
---|
5886 |
|
---|
5887 | *nto* | *qnx*)
|
---|
5888 | lt_cv_deplibs_check_method=pass_all
|
---|
5889 | ;;
|
---|
5890 |
|
---|
5891 | openbsd* | bitrig*)
|
---|
5892 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
|
---|
5893 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
|
---|
5894 | else
|
---|
5895 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
|
---|
5896 | fi
|
---|
5897 | ;;
|
---|
5898 |
|
---|
5899 | osf3* | osf4* | osf5*)
|
---|
5900 | lt_cv_deplibs_check_method=pass_all
|
---|
5901 | ;;
|
---|
5902 |
|
---|
5903 | rdos*)
|
---|
5904 | lt_cv_deplibs_check_method=pass_all
|
---|
5905 | ;;
|
---|
5906 |
|
---|
5907 | solaris*)
|
---|
5908 | lt_cv_deplibs_check_method=pass_all
|
---|
5909 | ;;
|
---|
5910 |
|
---|
5911 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
---|
5912 | lt_cv_deplibs_check_method=pass_all
|
---|
5913 | ;;
|
---|
5914 |
|
---|
5915 | sysv4 | sysv4.3*)
|
---|
5916 | case $host_vendor in
|
---|
5917 | motorola)
|
---|
5918 | 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]'
|
---|
5919 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
---|
5920 | ;;
|
---|
5921 | ncr)
|
---|
5922 | lt_cv_deplibs_check_method=pass_all
|
---|
5923 | ;;
|
---|
5924 | sequent)
|
---|
5925 | lt_cv_file_magic_cmd='/bin/file'
|
---|
5926 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
|
---|
5927 | ;;
|
---|
5928 | sni)
|
---|
5929 | lt_cv_file_magic_cmd='/bin/file'
|
---|
5930 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
|
---|
5931 | lt_cv_file_magic_test_file=/lib/libc.so
|
---|
5932 | ;;
|
---|
5933 | siemens)
|
---|
5934 | lt_cv_deplibs_check_method=pass_all
|
---|
5935 | ;;
|
---|
5936 | pc)
|
---|
5937 | lt_cv_deplibs_check_method=pass_all
|
---|
5938 | ;;
|
---|
5939 | esac
|
---|
5940 | ;;
|
---|
5941 |
|
---|
5942 | tpf*)
|
---|
5943 | lt_cv_deplibs_check_method=pass_all
|
---|
5944 | ;;
|
---|
5945 | os2*)
|
---|
5946 | lt_cv_deplibs_check_method=pass_all
|
---|
5947 | ;;
|
---|
5948 | esac
|
---|
5949 |
|
---|
5950 | fi
|
---|
5951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
|
---|
5952 | $as_echo "$lt_cv_deplibs_check_method" >&6; }
|
---|
5953 |
|
---|
5954 | file_magic_glob=
|
---|
5955 | want_nocaseglob=no
|
---|
5956 | if test "$build" = "$host"; then
|
---|
5957 | case $host_os in
|
---|
5958 | mingw* | pw32*)
|
---|
5959 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
|
---|
5960 | want_nocaseglob=yes
|
---|
5961 | else
|
---|
5962 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
|
---|
5963 | fi
|
---|
5964 | ;;
|
---|
5965 | esac
|
---|
5966 | fi
|
---|
5967 |
|
---|
5968 | file_magic_cmd=$lt_cv_file_magic_cmd
|
---|
5969 | deplibs_check_method=$lt_cv_deplibs_check_method
|
---|
5970 | test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
---|
5971 |
|
---|
5972 |
|
---|
5973 |
|
---|
5974 |
|
---|
5975 |
|
---|
5976 |
|
---|
5977 |
|
---|
5978 |
|
---|
5979 |
|
---|
5980 |
|
---|
5981 |
|
---|
5982 |
|
---|
5983 |
|
---|
5984 |
|
---|
5985 |
|
---|
5986 |
|
---|
5987 |
|
---|
5988 |
|
---|
5989 |
|
---|
5990 |
|
---|
5991 |
|
---|
5992 |
|
---|
5993 | if test -n "$ac_tool_prefix"; then
|
---|
5994 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
|
---|
5995 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2
|
---|
5996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
5997 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
5998 | if ${ac_cv_prog_DLLTOOL+:} false; then :
|
---|
5999 | $as_echo_n "(cached) " >&6
|
---|
6000 | else
|
---|
6001 | if test -n "$DLLTOOL"; then
|
---|
6002 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
|
---|
6003 | else
|
---|
6004 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6005 | for as_dir in $PATH
|
---|
6006 | do
|
---|
6007 | IFS=$as_save_IFS
|
---|
6008 | test -z "$as_dir" && as_dir=.
|
---|
6009 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6010 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
6011 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
|
---|
6012 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
6013 | break 2
|
---|
6014 | fi
|
---|
6015 | done
|
---|
6016 | done
|
---|
6017 | IFS=$as_save_IFS
|
---|
6018 |
|
---|
6019 | fi
|
---|
6020 | fi
|
---|
6021 | DLLTOOL=$ac_cv_prog_DLLTOOL
|
---|
6022 | if test -n "$DLLTOOL"; then
|
---|
6023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
|
---|
6024 | $as_echo "$DLLTOOL" >&6; }
|
---|
6025 | else
|
---|
6026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6027 | $as_echo "no" >&6; }
|
---|
6028 | fi
|
---|
6029 |
|
---|
6030 |
|
---|
6031 | fi
|
---|
6032 | if test -z "$ac_cv_prog_DLLTOOL"; then
|
---|
6033 | ac_ct_DLLTOOL=$DLLTOOL
|
---|
6034 | # Extract the first word of "dlltool", so it can be a program name with args.
|
---|
6035 | set dummy dlltool; ac_word=$2
|
---|
6036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
6037 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
6038 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
|
---|
6039 | $as_echo_n "(cached) " >&6
|
---|
6040 | else
|
---|
6041 | if test -n "$ac_ct_DLLTOOL"; then
|
---|
6042 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
|
---|
6043 | else
|
---|
6044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6045 | for as_dir in $PATH
|
---|
6046 | do
|
---|
6047 | IFS=$as_save_IFS
|
---|
6048 | test -z "$as_dir" && as_dir=.
|
---|
6049 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6050 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
6051 | ac_cv_prog_ac_ct_DLLTOOL="dlltool"
|
---|
6052 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
6053 | break 2
|
---|
6054 | fi
|
---|
6055 | done
|
---|
6056 | done
|
---|
6057 | IFS=$as_save_IFS
|
---|
6058 |
|
---|
6059 | fi
|
---|
6060 | fi
|
---|
6061 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
|
---|
6062 | if test -n "$ac_ct_DLLTOOL"; then
|
---|
6063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
|
---|
6064 | $as_echo "$ac_ct_DLLTOOL" >&6; }
|
---|
6065 | else
|
---|
6066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6067 | $as_echo "no" >&6; }
|
---|
6068 | fi
|
---|
6069 |
|
---|
6070 | if test "x$ac_ct_DLLTOOL" = x; then
|
---|
6071 | DLLTOOL="false"
|
---|
6072 | else
|
---|
6073 | case $cross_compiling:$ac_tool_warned in
|
---|
6074 | yes:)
|
---|
6075 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
6076 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
6077 | ac_tool_warned=yes ;;
|
---|
6078 | esac
|
---|
6079 | DLLTOOL=$ac_ct_DLLTOOL
|
---|
6080 | fi
|
---|
6081 | else
|
---|
6082 | DLLTOOL="$ac_cv_prog_DLLTOOL"
|
---|
6083 | fi
|
---|
6084 |
|
---|
6085 | test -z "$DLLTOOL" && DLLTOOL=dlltool
|
---|
6086 |
|
---|
6087 |
|
---|
6088 |
|
---|
6089 |
|
---|
6090 |
|
---|
6091 |
|
---|
6092 |
|
---|
6093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
|
---|
6094 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
|
---|
6095 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
|
---|
6096 | $as_echo_n "(cached) " >&6
|
---|
6097 | else
|
---|
6098 | lt_cv_sharedlib_from_linklib_cmd='unknown'
|
---|
6099 |
|
---|
6100 | case $host_os in
|
---|
6101 | cygwin* | mingw* | pw32* | cegcc*)
|
---|
6102 | # two different shell functions defined in ltmain.sh;
|
---|
6103 | # decide which one to use based on capabilities of $DLLTOOL
|
---|
6104 | case `$DLLTOOL --help 2>&1` in
|
---|
6105 | *--identify-strict*)
|
---|
6106 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
|
---|
6107 | ;;
|
---|
6108 | *)
|
---|
6109 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
|
---|
6110 | ;;
|
---|
6111 | esac
|
---|
6112 | ;;
|
---|
6113 | *)
|
---|
6114 | # fallback: assume linklib IS sharedlib
|
---|
6115 | lt_cv_sharedlib_from_linklib_cmd=$ECHO
|
---|
6116 | ;;
|
---|
6117 | esac
|
---|
6118 |
|
---|
6119 | fi
|
---|
6120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
|
---|
6121 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
|
---|
6122 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
|
---|
6123 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
|
---|
6124 |
|
---|
6125 |
|
---|
6126 |
|
---|
6127 |
|
---|
6128 |
|
---|
6129 |
|
---|
6130 |
|
---|
6131 | if test -n "$ac_tool_prefix"; then
|
---|
6132 | for ac_prog in ar
|
---|
6133 | do
|
---|
6134 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
6135 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
6136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
6137 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
6138 | if ${ac_cv_prog_AR+:} false; then :
|
---|
6139 | $as_echo_n "(cached) " >&6
|
---|
6140 | else
|
---|
6141 | if test -n "$AR"; then
|
---|
6142 | ac_cv_prog_AR="$AR" # Let the user override the test.
|
---|
6143 | else
|
---|
6144 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6145 | for as_dir in $PATH
|
---|
6146 | do
|
---|
6147 | IFS=$as_save_IFS
|
---|
6148 | test -z "$as_dir" && as_dir=.
|
---|
6149 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6150 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
6151 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
|
---|
6152 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
6153 | break 2
|
---|
6154 | fi
|
---|
6155 | done
|
---|
6156 | done
|
---|
6157 | IFS=$as_save_IFS
|
---|
6158 |
|
---|
6159 | fi
|
---|
6160 | fi
|
---|
6161 | AR=$ac_cv_prog_AR
|
---|
6162 | if test -n "$AR"; then
|
---|
6163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
|
---|
6164 | $as_echo "$AR" >&6; }
|
---|
6165 | else
|
---|
6166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6167 | $as_echo "no" >&6; }
|
---|
6168 | fi
|
---|
6169 |
|
---|
6170 |
|
---|
6171 | test -n "$AR" && break
|
---|
6172 | done
|
---|
6173 | fi
|
---|
6174 | if test -z "$AR"; then
|
---|
6175 | ac_ct_AR=$AR
|
---|
6176 | for ac_prog in ar
|
---|
6177 | do
|
---|
6178 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
6179 | set dummy $ac_prog; ac_word=$2
|
---|
6180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
6181 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
6182 | if ${ac_cv_prog_ac_ct_AR+:} false; then :
|
---|
6183 | $as_echo_n "(cached) " >&6
|
---|
6184 | else
|
---|
6185 | if test -n "$ac_ct_AR"; then
|
---|
6186 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
|
---|
6187 | else
|
---|
6188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6189 | for as_dir in $PATH
|
---|
6190 | do
|
---|
6191 | IFS=$as_save_IFS
|
---|
6192 | test -z "$as_dir" && as_dir=.
|
---|
6193 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6194 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
6195 | ac_cv_prog_ac_ct_AR="$ac_prog"
|
---|
6196 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
6197 | break 2
|
---|
6198 | fi
|
---|
6199 | done
|
---|
6200 | done
|
---|
6201 | IFS=$as_save_IFS
|
---|
6202 |
|
---|
6203 | fi
|
---|
6204 | fi
|
---|
6205 | ac_ct_AR=$ac_cv_prog_ac_ct_AR
|
---|
6206 | if test -n "$ac_ct_AR"; then
|
---|
6207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
|
---|
6208 | $as_echo "$ac_ct_AR" >&6; }
|
---|
6209 | else
|
---|
6210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6211 | $as_echo "no" >&6; }
|
---|
6212 | fi
|
---|
6213 |
|
---|
6214 |
|
---|
6215 | test -n "$ac_ct_AR" && break
|
---|
6216 | done
|
---|
6217 |
|
---|
6218 | if test "x$ac_ct_AR" = x; then
|
---|
6219 | AR="false"
|
---|
6220 | else
|
---|
6221 | case $cross_compiling:$ac_tool_warned in
|
---|
6222 | yes:)
|
---|
6223 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
6224 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
6225 | ac_tool_warned=yes ;;
|
---|
6226 | esac
|
---|
6227 | AR=$ac_ct_AR
|
---|
6228 | fi
|
---|
6229 | fi
|
---|
6230 |
|
---|
6231 | : ${AR=ar}
|
---|
6232 | : ${AR_FLAGS=cr}
|
---|
6233 |
|
---|
6234 |
|
---|
6235 |
|
---|
6236 |
|
---|
6237 |
|
---|
6238 |
|
---|
6239 |
|
---|
6240 |
|
---|
6241 |
|
---|
6242 |
|
---|
6243 |
|
---|
6244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
|
---|
6245 | $as_echo_n "checking for archiver @FILE support... " >&6; }
|
---|
6246 | if ${lt_cv_ar_at_file+:} false; then :
|
---|
6247 | $as_echo_n "(cached) " >&6
|
---|
6248 | else
|
---|
6249 | lt_cv_ar_at_file=no
|
---|
6250 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6251 | /* end confdefs.h. */
|
---|
6252 |
|
---|
6253 | int
|
---|
6254 | main ()
|
---|
6255 | {
|
---|
6256 |
|
---|
6257 | ;
|
---|
6258 | return 0;
|
---|
6259 | }
|
---|
6260 | _ACEOF
|
---|
6261 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
6262 | echo conftest.$ac_objext > conftest.lst
|
---|
6263 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
|
---|
6264 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
---|
6265 | (eval $lt_ar_try) 2>&5
|
---|
6266 | ac_status=$?
|
---|
6267 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
6268 | test $ac_status = 0; }
|
---|
6269 | if test 0 -eq "$ac_status"; then
|
---|
6270 | # Ensure the archiver fails upon bogus file names.
|
---|
6271 | rm -f conftest.$ac_objext libconftest.a
|
---|
6272 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
---|
6273 | (eval $lt_ar_try) 2>&5
|
---|
6274 | ac_status=$?
|
---|
6275 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
6276 | test $ac_status = 0; }
|
---|
6277 | if test 0 -ne "$ac_status"; then
|
---|
6278 | lt_cv_ar_at_file=@
|
---|
6279 | fi
|
---|
6280 | fi
|
---|
6281 | rm -f conftest.* libconftest.a
|
---|
6282 |
|
---|
6283 | fi
|
---|
6284 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6285 |
|
---|
6286 | fi
|
---|
6287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
|
---|
6288 | $as_echo "$lt_cv_ar_at_file" >&6; }
|
---|
6289 |
|
---|
6290 | if test no = "$lt_cv_ar_at_file"; then
|
---|
6291 | archiver_list_spec=
|
---|
6292 | else
|
---|
6293 | archiver_list_spec=$lt_cv_ar_at_file
|
---|
6294 | fi
|
---|
6295 |
|
---|
6296 |
|
---|
6297 |
|
---|
6298 |
|
---|
6299 |
|
---|
6300 |
|
---|
6301 |
|
---|
6302 | if test -n "$ac_tool_prefix"; then
|
---|
6303 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
---|
6304 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
---|
6305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
6306 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
6307 | if ${ac_cv_prog_STRIP+:} false; then :
|
---|
6308 | $as_echo_n "(cached) " >&6
|
---|
6309 | else
|
---|
6310 | if test -n "$STRIP"; then
|
---|
6311 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
6312 | else
|
---|
6313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6314 | for as_dir in $PATH
|
---|
6315 | do
|
---|
6316 | IFS=$as_save_IFS
|
---|
6317 | test -z "$as_dir" && as_dir=.
|
---|
6318 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6319 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
6320 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
---|
6321 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
6322 | break 2
|
---|
6323 | fi
|
---|
6324 | done
|
---|
6325 | done
|
---|
6326 | IFS=$as_save_IFS
|
---|
6327 |
|
---|
6328 | fi
|
---|
6329 | fi
|
---|
6330 | STRIP=$ac_cv_prog_STRIP
|
---|
6331 | if test -n "$STRIP"; then
|
---|
6332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
|
---|
6333 | $as_echo "$STRIP" >&6; }
|
---|
6334 | else
|
---|
6335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6336 | $as_echo "no" >&6; }
|
---|
6337 | fi
|
---|
6338 |
|
---|
6339 |
|
---|
6340 | fi
|
---|
6341 | if test -z "$ac_cv_prog_STRIP"; then
|
---|
6342 | ac_ct_STRIP=$STRIP
|
---|
6343 | # Extract the first word of "strip", so it can be a program name with args.
|
---|
6344 | set dummy strip; ac_word=$2
|
---|
6345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
6346 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
6347 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
|
---|
6348 | $as_echo_n "(cached) " >&6
|
---|
6349 | else
|
---|
6350 | if test -n "$ac_ct_STRIP"; then
|
---|
6351 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
---|
6352 | else
|
---|
6353 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6354 | for as_dir in $PATH
|
---|
6355 | do
|
---|
6356 | IFS=$as_save_IFS
|
---|
6357 | test -z "$as_dir" && as_dir=.
|
---|
6358 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6359 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
6360 | ac_cv_prog_ac_ct_STRIP="strip"
|
---|
6361 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
6362 | break 2
|
---|
6363 | fi
|
---|
6364 | done
|
---|
6365 | done
|
---|
6366 | IFS=$as_save_IFS
|
---|
6367 |
|
---|
6368 | fi
|
---|
6369 | fi
|
---|
6370 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
---|
6371 | if test -n "$ac_ct_STRIP"; then
|
---|
6372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
|
---|
6373 | $as_echo "$ac_ct_STRIP" >&6; }
|
---|
6374 | else
|
---|
6375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6376 | $as_echo "no" >&6; }
|
---|
6377 | fi
|
---|
6378 |
|
---|
6379 | if test "x$ac_ct_STRIP" = x; then
|
---|
6380 | STRIP=":"
|
---|
6381 | else
|
---|
6382 | case $cross_compiling:$ac_tool_warned in
|
---|
6383 | yes:)
|
---|
6384 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
6385 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
6386 | ac_tool_warned=yes ;;
|
---|
6387 | esac
|
---|
6388 | STRIP=$ac_ct_STRIP
|
---|
6389 | fi
|
---|
6390 | else
|
---|
6391 | STRIP="$ac_cv_prog_STRIP"
|
---|
6392 | fi
|
---|
6393 |
|
---|
6394 | test -z "$STRIP" && STRIP=:
|
---|
6395 |
|
---|
6396 |
|
---|
6397 |
|
---|
6398 |
|
---|
6399 |
|
---|
6400 |
|
---|
6401 | if test -n "$ac_tool_prefix"; then
|
---|
6402 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
6403 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
6404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
6405 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
6406 | if ${ac_cv_prog_RANLIB+:} false; then :
|
---|
6407 | $as_echo_n "(cached) " >&6
|
---|
6408 | else
|
---|
6409 | if test -n "$RANLIB"; then
|
---|
6410 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
6411 | else
|
---|
6412 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6413 | for as_dir in $PATH
|
---|
6414 | do
|
---|
6415 | IFS=$as_save_IFS
|
---|
6416 | test -z "$as_dir" && as_dir=.
|
---|
6417 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6418 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
6419 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
6420 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
6421 | break 2
|
---|
6422 | fi
|
---|
6423 | done
|
---|
6424 | done
|
---|
6425 | IFS=$as_save_IFS
|
---|
6426 |
|
---|
6427 | fi
|
---|
6428 | fi
|
---|
6429 | RANLIB=$ac_cv_prog_RANLIB
|
---|
6430 | if test -n "$RANLIB"; then
|
---|
6431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
|
---|
6432 | $as_echo "$RANLIB" >&6; }
|
---|
6433 | else
|
---|
6434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6435 | $as_echo "no" >&6; }
|
---|
6436 | fi
|
---|
6437 |
|
---|
6438 |
|
---|
6439 | fi
|
---|
6440 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
6441 | ac_ct_RANLIB=$RANLIB
|
---|
6442 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
6443 | set dummy ranlib; ac_word=$2
|
---|
6444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
6445 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
6446 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
|
---|
6447 | $as_echo_n "(cached) " >&6
|
---|
6448 | else
|
---|
6449 | if test -n "$ac_ct_RANLIB"; then
|
---|
6450 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
6451 | else
|
---|
6452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6453 | for as_dir in $PATH
|
---|
6454 | do
|
---|
6455 | IFS=$as_save_IFS
|
---|
6456 | test -z "$as_dir" && as_dir=.
|
---|
6457 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6458 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
6459 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
6460 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
6461 | break 2
|
---|
6462 | fi
|
---|
6463 | done
|
---|
6464 | done
|
---|
6465 | IFS=$as_save_IFS
|
---|
6466 |
|
---|
6467 | fi
|
---|
6468 | fi
|
---|
6469 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
6470 | if test -n "$ac_ct_RANLIB"; then
|
---|
6471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
|
---|
6472 | $as_echo "$ac_ct_RANLIB" >&6; }
|
---|
6473 | else
|
---|
6474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6475 | $as_echo "no" >&6; }
|
---|
6476 | fi
|
---|
6477 |
|
---|
6478 | if test "x$ac_ct_RANLIB" = x; then
|
---|
6479 | RANLIB=":"
|
---|
6480 | else
|
---|
6481 | case $cross_compiling:$ac_tool_warned in
|
---|
6482 | yes:)
|
---|
6483 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
6484 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
6485 | ac_tool_warned=yes ;;
|
---|
6486 | esac
|
---|
6487 | RANLIB=$ac_ct_RANLIB
|
---|
6488 | fi
|
---|
6489 | else
|
---|
6490 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
6491 | fi
|
---|
6492 |
|
---|
6493 | test -z "$RANLIB" && RANLIB=:
|
---|
6494 |
|
---|
6495 |
|
---|
6496 |
|
---|
6497 |
|
---|
6498 |
|
---|
6499 |
|
---|
6500 | # Determine commands to create old-style static archives.
|
---|
6501 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
|
---|
6502 | old_postinstall_cmds='chmod 644 $oldlib'
|
---|
6503 | old_postuninstall_cmds=
|
---|
6504 |
|
---|
6505 | if test -n "$RANLIB"; then
|
---|
6506 | case $host_os in
|
---|
6507 | bitrig* | openbsd*)
|
---|
6508 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
|
---|
6509 | ;;
|
---|
6510 | *)
|
---|
6511 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
|
---|
6512 | ;;
|
---|
6513 | esac
|
---|
6514 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
|
---|
6515 | fi
|
---|
6516 |
|
---|
6517 | case $host_os in
|
---|
6518 | darwin*)
|
---|
6519 | lock_old_archive_extraction=yes ;;
|
---|
6520 | *)
|
---|
6521 | lock_old_archive_extraction=no ;;
|
---|
6522 | esac
|
---|
6523 |
|
---|
6524 |
|
---|
6525 |
|
---|
6526 |
|
---|
6527 |
|
---|
6528 |
|
---|
6529 |
|
---|
6530 |
|
---|
6531 |
|
---|
6532 |
|
---|
6533 |
|
---|
6534 |
|
---|
6535 |
|
---|
6536 |
|
---|
6537 |
|
---|
6538 |
|
---|
6539 |
|
---|
6540 |
|
---|
6541 |
|
---|
6542 |
|
---|
6543 |
|
---|
6544 |
|
---|
6545 |
|
---|
6546 |
|
---|
6547 |
|
---|
6548 |
|
---|
6549 |
|
---|
6550 |
|
---|
6551 |
|
---|
6552 |
|
---|
6553 |
|
---|
6554 |
|
---|
6555 |
|
---|
6556 |
|
---|
6557 |
|
---|
6558 |
|
---|
6559 |
|
---|
6560 |
|
---|
6561 |
|
---|
6562 | # If no C compiler was specified, use CC.
|
---|
6563 | LTCC=${LTCC-"$CC"}
|
---|
6564 |
|
---|
6565 | # If no C compiler flags were specified, use CFLAGS.
|
---|
6566 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
---|
6567 |
|
---|
6568 | # Allow CC to be a program name with arguments.
|
---|
6569 | compiler=$CC
|
---|
6570 |
|
---|
6571 |
|
---|
6572 | # Check for command to grab the raw symbol name followed by C symbol from nm.
|
---|
6573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
|
---|
6574 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
|
---|
6575 | if ${lt_cv_sys_global_symbol_pipe+:} false; then :
|
---|
6576 | $as_echo_n "(cached) " >&6
|
---|
6577 | else
|
---|
6578 |
|
---|
6579 | # These are sane defaults that work on at least a few old systems.
|
---|
6580 | # [They come from Ultrix. What could be older than Ultrix?!! ;)]
|
---|
6581 |
|
---|
6582 | # Character class describing NM global symbol codes.
|
---|
6583 | symcode='[BCDEGRST]'
|
---|
6584 |
|
---|
6585 | # Regexp to match symbols that can be accessed directly from C.
|
---|
6586 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
|
---|
6587 |
|
---|
6588 | # Define system-specific variables.
|
---|
6589 | case $host_os in
|
---|
6590 | aix*)
|
---|
6591 | symcode='[BCDT]'
|
---|
6592 | ;;
|
---|
6593 | cygwin* | mingw* | pw32* | cegcc*)
|
---|
6594 | symcode='[ABCDGISTW]'
|
---|
6595 | ;;
|
---|
6596 | hpux*)
|
---|
6597 | if test ia64 = "$host_cpu"; then
|
---|
6598 | symcode='[ABCDEGRST]'
|
---|
6599 | fi
|
---|
6600 | ;;
|
---|
6601 | irix* | nonstopux*)
|
---|
6602 | symcode='[BCDEGRST]'
|
---|
6603 | ;;
|
---|
6604 | osf*)
|
---|
6605 | symcode='[BCDEGQRST]'
|
---|
6606 | ;;
|
---|
6607 | solaris*)
|
---|
6608 | symcode='[BDRT]'
|
---|
6609 | ;;
|
---|
6610 | sco3.2v5*)
|
---|
6611 | symcode='[DT]'
|
---|
6612 | ;;
|
---|
6613 | sysv4.2uw2*)
|
---|
6614 | symcode='[DT]'
|
---|
6615 | ;;
|
---|
6616 | sysv5* | sco5v6* | unixware* | OpenUNIX*)
|
---|
6617 | symcode='[ABDT]'
|
---|
6618 | ;;
|
---|
6619 | sysv4)
|
---|
6620 | symcode='[DFNSTU]'
|
---|
6621 | ;;
|
---|
6622 | esac
|
---|
6623 |
|
---|
6624 | # If we're using GNU nm, then use its standard symbol codes.
|
---|
6625 | case `$NM -V 2>&1` in
|
---|
6626 | *GNU* | *'with BFD'*)
|
---|
6627 | symcode='[ABCDGIRSTW]' ;;
|
---|
6628 | esac
|
---|
6629 |
|
---|
6630 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
---|
6631 | # Gets list of data symbols to import.
|
---|
6632 | lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
|
---|
6633 | # Adjust the below global symbol transforms to fixup imported variables.
|
---|
6634 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
|
---|
6635 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
|
---|
6636 | lt_c_name_lib_hook="\
|
---|
6637 | -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
|
---|
6638 | -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
|
---|
6639 | else
|
---|
6640 | # Disable hooks by default.
|
---|
6641 | lt_cv_sys_global_symbol_to_import=
|
---|
6642 | lt_cdecl_hook=
|
---|
6643 | lt_c_name_hook=
|
---|
6644 | lt_c_name_lib_hook=
|
---|
6645 | fi
|
---|
6646 |
|
---|
6647 | # Transform an extracted symbol line into a proper C declaration.
|
---|
6648 | # Some systems (esp. on ia64) link data and code symbols differently,
|
---|
6649 | # so use this general approach.
|
---|
6650 | lt_cv_sys_global_symbol_to_cdecl="sed -n"\
|
---|
6651 | $lt_cdecl_hook\
|
---|
6652 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
|
---|
6653 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
|
---|
6654 |
|
---|
6655 | # Transform an extracted symbol line into symbol name and symbol address
|
---|
6656 | lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
|
---|
6657 | $lt_c_name_hook\
|
---|
6658 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
|
---|
6659 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
|
---|
6660 |
|
---|
6661 | # Transform an extracted symbol line into symbol name with lib prefix and
|
---|
6662 | # symbol address.
|
---|
6663 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
|
---|
6664 | $lt_c_name_lib_hook\
|
---|
6665 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
|
---|
6666 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
|
---|
6667 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
|
---|
6668 |
|
---|
6669 | # Handle CRLF in mingw tool chain
|
---|
6670 | opt_cr=
|
---|
6671 | case $build_os in
|
---|
6672 | mingw*)
|
---|
6673 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
|
---|
6674 | ;;
|
---|
6675 | esac
|
---|
6676 |
|
---|
6677 | # Try without a prefix underscore, then with it.
|
---|
6678 | for ac_symprfx in "" "_"; do
|
---|
6679 |
|
---|
6680 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
|
---|
6681 | symxfrm="\\1 $ac_symprfx\\2 \\2"
|
---|
6682 |
|
---|
6683 | # Write the raw and C identifiers.
|
---|
6684 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
---|
6685 | # Fake it for dumpbin and say T for any non-static function,
|
---|
6686 | # D for any global variable and I for any imported variable.
|
---|
6687 | # Also find C++ and __fastcall symbols from MSVC++,
|
---|
6688 | # which start with @ or ?.
|
---|
6689 | lt_cv_sys_global_symbol_pipe="$AWK '"\
|
---|
6690 | " {last_section=section; section=\$ 3};"\
|
---|
6691 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
|
---|
6692 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
|
---|
6693 | " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
|
---|
6694 | " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
|
---|
6695 | " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
|
---|
6696 | " \$ 0!~/External *\|/{next};"\
|
---|
6697 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
|
---|
6698 | " {if(hide[section]) next};"\
|
---|
6699 | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
|
---|
6700 | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
|
---|
6701 | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
|
---|
6702 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
|
---|
6703 | " ' prfx=^$ac_symprfx"
|
---|
6704 | else
|
---|
6705 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
---|
6706 | fi
|
---|
6707 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
|
---|
6708 |
|
---|
6709 | # Check to see that the pipe works correctly.
|
---|
6710 | pipe_works=no
|
---|
6711 |
|
---|
6712 | rm -f conftest*
|
---|
6713 | cat > conftest.$ac_ext <<_LT_EOF
|
---|
6714 | #ifdef __cplusplus
|
---|
6715 | extern "C" {
|
---|
6716 | #endif
|
---|
6717 | char nm_test_var;
|
---|
6718 | void nm_test_func(void);
|
---|
6719 | void nm_test_func(void){}
|
---|
6720 | #ifdef __cplusplus
|
---|
6721 | }
|
---|
6722 | #endif
|
---|
6723 | int main(){nm_test_var='a';nm_test_func();return(0);}
|
---|
6724 | _LT_EOF
|
---|
6725 |
|
---|
6726 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
---|
6727 | (eval $ac_compile) 2>&5
|
---|
6728 | ac_status=$?
|
---|
6729 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
6730 | test $ac_status = 0; }; then
|
---|
6731 | # Now try to grab the symbols.
|
---|
6732 | nlist=conftest.nm
|
---|
6733 | $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
|
---|
6734 | if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
|
---|
6735 | # Try sorting and uniquifying the output.
|
---|
6736 | if sort "$nlist" | uniq > "$nlist"T; then
|
---|
6737 | mv -f "$nlist"T "$nlist"
|
---|
6738 | else
|
---|
6739 | rm -f "$nlist"T
|
---|
6740 | fi
|
---|
6741 |
|
---|
6742 | # Make sure that we snagged all the symbols we need.
|
---|
6743 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
|
---|
6744 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
|
---|
6745 | cat <<_LT_EOF > conftest.$ac_ext
|
---|
6746 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
|
---|
6747 | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
|
---|
6748 | /* DATA imports from DLLs on WIN32 can't be const, because runtime
|
---|
6749 | relocations are performed -- see ld's documentation on pseudo-relocs. */
|
---|
6750 | # define LT_DLSYM_CONST
|
---|
6751 | #elif defined __osf__
|
---|
6752 | /* This system does not cope well with relocations in const data. */
|
---|
6753 | # define LT_DLSYM_CONST
|
---|
6754 | #else
|
---|
6755 | # define LT_DLSYM_CONST const
|
---|
6756 | #endif
|
---|
6757 |
|
---|
6758 | #ifdef __cplusplus
|
---|
6759 | extern "C" {
|
---|
6760 | #endif
|
---|
6761 |
|
---|
6762 | _LT_EOF
|
---|
6763 | # Now generate the symbol file.
|
---|
6764 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
|
---|
6765 |
|
---|
6766 | cat <<_LT_EOF >> conftest.$ac_ext
|
---|
6767 |
|
---|
6768 | /* The mapping between symbol names and symbols. */
|
---|
6769 | LT_DLSYM_CONST struct {
|
---|
6770 | const char *name;
|
---|
6771 | void *address;
|
---|
6772 | }
|
---|
6773 | lt__PROGRAM__LTX_preloaded_symbols[] =
|
---|
6774 | {
|
---|
6775 | { "@PROGRAM@", (void *) 0 },
|
---|
6776 | _LT_EOF
|
---|
6777 | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
|
---|
6778 | cat <<\_LT_EOF >> conftest.$ac_ext
|
---|
6779 | {0, (void *) 0}
|
---|
6780 | };
|
---|
6781 |
|
---|
6782 | /* This works around a problem in FreeBSD linker */
|
---|
6783 | #ifdef FREEBSD_WORKAROUND
|
---|
6784 | static const void *lt_preloaded_setup() {
|
---|
6785 | return lt__PROGRAM__LTX_preloaded_symbols;
|
---|
6786 | }
|
---|
6787 | #endif
|
---|
6788 |
|
---|
6789 | #ifdef __cplusplus
|
---|
6790 | }
|
---|
6791 | #endif
|
---|
6792 | _LT_EOF
|
---|
6793 | # Now try linking the two files.
|
---|
6794 | mv conftest.$ac_objext conftstm.$ac_objext
|
---|
6795 | lt_globsym_save_LIBS=$LIBS
|
---|
6796 | lt_globsym_save_CFLAGS=$CFLAGS
|
---|
6797 | LIBS=conftstm.$ac_objext
|
---|
6798 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
|
---|
6799 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
|
---|
6800 | (eval $ac_link) 2>&5
|
---|
6801 | ac_status=$?
|
---|
6802 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
6803 | test $ac_status = 0; } && test -s conftest$ac_exeext; then
|
---|
6804 | pipe_works=yes
|
---|
6805 | fi
|
---|
6806 | LIBS=$lt_globsym_save_LIBS
|
---|
6807 | CFLAGS=$lt_globsym_save_CFLAGS
|
---|
6808 | else
|
---|
6809 | echo "cannot find nm_test_func in $nlist" >&5
|
---|
6810 | fi
|
---|
6811 | else
|
---|
6812 | echo "cannot find nm_test_var in $nlist" >&5
|
---|
6813 | fi
|
---|
6814 | else
|
---|
6815 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
|
---|
6816 | fi
|
---|
6817 | else
|
---|
6818 | echo "$progname: failed program was:" >&5
|
---|
6819 | cat conftest.$ac_ext >&5
|
---|
6820 | fi
|
---|
6821 | rm -rf conftest* conftst*
|
---|
6822 |
|
---|
6823 | # Do not use the global_symbol_pipe unless it works.
|
---|
6824 | if test yes = "$pipe_works"; then
|
---|
6825 | break
|
---|
6826 | else
|
---|
6827 | lt_cv_sys_global_symbol_pipe=
|
---|
6828 | fi
|
---|
6829 | done
|
---|
6830 |
|
---|
6831 | fi
|
---|
6832 |
|
---|
6833 | if test -z "$lt_cv_sys_global_symbol_pipe"; then
|
---|
6834 | lt_cv_sys_global_symbol_to_cdecl=
|
---|
6835 | fi
|
---|
6836 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
|
---|
6837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
|
---|
6838 | $as_echo "failed" >&6; }
|
---|
6839 | else
|
---|
6840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
|
---|
6841 | $as_echo "ok" >&6; }
|
---|
6842 | fi
|
---|
6843 |
|
---|
6844 | # Response file support.
|
---|
6845 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
---|
6846 | nm_file_list_spec='@'
|
---|
6847 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
|
---|
6848 | nm_file_list_spec='@'
|
---|
6849 | fi
|
---|
6850 |
|
---|
6851 |
|
---|
6852 |
|
---|
6853 |
|
---|
6854 |
|
---|
6855 |
|
---|
6856 |
|
---|
6857 |
|
---|
6858 |
|
---|
6859 |
|
---|
6860 |
|
---|
6861 |
|
---|
6862 |
|
---|
6863 |
|
---|
6864 |
|
---|
6865 |
|
---|
6866 |
|
---|
6867 |
|
---|
6868 |
|
---|
6869 |
|
---|
6870 |
|
---|
6871 |
|
---|
6872 |
|
---|
6873 |
|
---|
6874 |
|
---|
6875 |
|
---|
6876 |
|
---|
6877 |
|
---|
6878 |
|
---|
6879 |
|
---|
6880 |
|
---|
6881 |
|
---|
6882 |
|
---|
6883 |
|
---|
6884 |
|
---|
6885 |
|
---|
6886 |
|
---|
6887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
|
---|
6888 | $as_echo_n "checking for sysroot... " >&6; }
|
---|
6889 |
|
---|
6890 | # Check whether --with-sysroot was given.
|
---|
6891 | if test "${with_sysroot+set}" = set; then :
|
---|
6892 | withval=$with_sysroot;
|
---|
6893 | else
|
---|
6894 | with_sysroot=no
|
---|
6895 | fi
|
---|
6896 |
|
---|
6897 |
|
---|
6898 | lt_sysroot=
|
---|
6899 | case $with_sysroot in #(
|
---|
6900 | yes)
|
---|
6901 | if test yes = "$GCC"; then
|
---|
6902 | lt_sysroot=`$CC --print-sysroot 2>/dev/null`
|
---|
6903 | fi
|
---|
6904 | ;; #(
|
---|
6905 | /*)
|
---|
6906 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
|
---|
6907 | ;; #(
|
---|
6908 | no|'')
|
---|
6909 | ;; #(
|
---|
6910 | *)
|
---|
6911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
|
---|
6912 | $as_echo "$with_sysroot" >&6; }
|
---|
6913 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
|
---|
6914 | ;;
|
---|
6915 | esac
|
---|
6916 |
|
---|
6917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
|
---|
6918 | $as_echo "${lt_sysroot:-no}" >&6; }
|
---|
6919 |
|
---|
6920 |
|
---|
6921 |
|
---|
6922 |
|
---|
6923 |
|
---|
6924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
|
---|
6925 | $as_echo_n "checking for a working dd... " >&6; }
|
---|
6926 | if ${ac_cv_path_lt_DD+:} false; then :
|
---|
6927 | $as_echo_n "(cached) " >&6
|
---|
6928 | else
|
---|
6929 | printf 0123456789abcdef0123456789abcdef >conftest.i
|
---|
6930 | cat conftest.i conftest.i >conftest2.i
|
---|
6931 | : ${lt_DD:=$DD}
|
---|
6932 | if test -z "$lt_DD"; then
|
---|
6933 | ac_path_lt_DD_found=false
|
---|
6934 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
6935 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6936 | for as_dir in $PATH
|
---|
6937 | do
|
---|
6938 | IFS=$as_save_IFS
|
---|
6939 | test -z "$as_dir" && as_dir=.
|
---|
6940 | for ac_prog in dd; do
|
---|
6941 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6942 | ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
|
---|
6943 | as_fn_executable_p "$ac_path_lt_DD" || continue
|
---|
6944 | if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
|
---|
6945 | cmp -s conftest.i conftest.out \
|
---|
6946 | && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
|
---|
6947 | fi
|
---|
6948 | $ac_path_lt_DD_found && break 3
|
---|
6949 | done
|
---|
6950 | done
|
---|
6951 | done
|
---|
6952 | IFS=$as_save_IFS
|
---|
6953 | if test -z "$ac_cv_path_lt_DD"; then
|
---|
6954 | :
|
---|
6955 | fi
|
---|
6956 | else
|
---|
6957 | ac_cv_path_lt_DD=$lt_DD
|
---|
6958 | fi
|
---|
6959 |
|
---|
6960 | rm -f conftest.i conftest2.i conftest.out
|
---|
6961 | fi
|
---|
6962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
|
---|
6963 | $as_echo "$ac_cv_path_lt_DD" >&6; }
|
---|
6964 |
|
---|
6965 |
|
---|
6966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
|
---|
6967 | $as_echo_n "checking how to truncate binary pipes... " >&6; }
|
---|
6968 | if ${lt_cv_truncate_bin+:} false; then :
|
---|
6969 | $as_echo_n "(cached) " >&6
|
---|
6970 | else
|
---|
6971 | printf 0123456789abcdef0123456789abcdef >conftest.i
|
---|
6972 | cat conftest.i conftest.i >conftest2.i
|
---|
6973 | lt_cv_truncate_bin=
|
---|
6974 | if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
|
---|
6975 | cmp -s conftest.i conftest.out \
|
---|
6976 | && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
|
---|
6977 | fi
|
---|
6978 | rm -f conftest.i conftest2.i conftest.out
|
---|
6979 | test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
|
---|
6980 | fi
|
---|
6981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
|
---|
6982 | $as_echo "$lt_cv_truncate_bin" >&6; }
|
---|
6983 |
|
---|
6984 |
|
---|
6985 |
|
---|
6986 |
|
---|
6987 |
|
---|
6988 |
|
---|
6989 |
|
---|
6990 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
|
---|
6991 | func_cc_basename ()
|
---|
6992 | {
|
---|
6993 | for cc_temp in $*""; do
|
---|
6994 | case $cc_temp in
|
---|
6995 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
---|
6996 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
---|
6997 | \-*) ;;
|
---|
6998 | *) break;;
|
---|
6999 | esac
|
---|
7000 | done
|
---|
7001 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
|
---|
7002 | }
|
---|
7003 |
|
---|
7004 | # Check whether --enable-libtool-lock was given.
|
---|
7005 | if test "${enable_libtool_lock+set}" = set; then :
|
---|
7006 | enableval=$enable_libtool_lock;
|
---|
7007 | fi
|
---|
7008 |
|
---|
7009 | test no = "$enable_libtool_lock" || enable_libtool_lock=yes
|
---|
7010 |
|
---|
7011 | # Some flags need to be propagated to the compiler or linker for good
|
---|
7012 | # libtool support.
|
---|
7013 | case $host in
|
---|
7014 | ia64-*-hpux*)
|
---|
7015 | # Find out what ABI is being produced by ac_compile, and set mode
|
---|
7016 | # options accordingly.
|
---|
7017 | echo 'int i;' > conftest.$ac_ext
|
---|
7018 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
---|
7019 | (eval $ac_compile) 2>&5
|
---|
7020 | ac_status=$?
|
---|
7021 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
7022 | test $ac_status = 0; }; then
|
---|
7023 | case `/usr/bin/file conftest.$ac_objext` in
|
---|
7024 | *ELF-32*)
|
---|
7025 | HPUX_IA64_MODE=32
|
---|
7026 | ;;
|
---|
7027 | *ELF-64*)
|
---|
7028 | HPUX_IA64_MODE=64
|
---|
7029 | ;;
|
---|
7030 | esac
|
---|
7031 | fi
|
---|
7032 | rm -rf conftest*
|
---|
7033 | ;;
|
---|
7034 | *-*-irix6*)
|
---|
7035 | # Find out what ABI is being produced by ac_compile, and set linker
|
---|
7036 | # options accordingly.
|
---|
7037 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext
|
---|
7038 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
---|
7039 | (eval $ac_compile) 2>&5
|
---|
7040 | ac_status=$?
|
---|
7041 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
7042 | test $ac_status = 0; }; then
|
---|
7043 | if test yes = "$lt_cv_prog_gnu_ld"; then
|
---|
7044 | case `/usr/bin/file conftest.$ac_objext` in
|
---|
7045 | *32-bit*)
|
---|
7046 | LD="${LD-ld} -melf32bsmip"
|
---|
7047 | ;;
|
---|
7048 | *N32*)
|
---|
7049 | LD="${LD-ld} -melf32bmipn32"
|
---|
7050 | ;;
|
---|
7051 | *64-bit*)
|
---|
7052 | LD="${LD-ld} -melf64bmip"
|
---|
7053 | ;;
|
---|
7054 | esac
|
---|
7055 | else
|
---|
7056 | case `/usr/bin/file conftest.$ac_objext` in
|
---|
7057 | *32-bit*)
|
---|
7058 | LD="${LD-ld} -32"
|
---|
7059 | ;;
|
---|
7060 | *N32*)
|
---|
7061 | LD="${LD-ld} -n32"
|
---|
7062 | ;;
|
---|
7063 | *64-bit*)
|
---|
7064 | LD="${LD-ld} -64"
|
---|
7065 | ;;
|
---|
7066 | esac
|
---|
7067 | fi
|
---|
7068 | fi
|
---|
7069 | rm -rf conftest*
|
---|
7070 | ;;
|
---|
7071 |
|
---|
7072 | mips64*-*linux*)
|
---|
7073 | # Find out what ABI is being produced by ac_compile, and set linker
|
---|
7074 | # options accordingly.
|
---|
7075 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext
|
---|
7076 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
---|
7077 | (eval $ac_compile) 2>&5
|
---|
7078 | ac_status=$?
|
---|
7079 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
7080 | test $ac_status = 0; }; then
|
---|
7081 | emul=elf
|
---|
7082 | case `/usr/bin/file conftest.$ac_objext` in
|
---|
7083 | *32-bit*)
|
---|
7084 | emul="${emul}32"
|
---|
7085 | ;;
|
---|
7086 | *64-bit*)
|
---|
7087 | emul="${emul}64"
|
---|
7088 | ;;
|
---|
7089 | esac
|
---|
7090 | case `/usr/bin/file conftest.$ac_objext` in
|
---|
7091 | *MSB*)
|
---|
7092 | emul="${emul}btsmip"
|
---|
7093 | ;;
|
---|
7094 | *LSB*)
|
---|
7095 | emul="${emul}ltsmip"
|
---|
7096 | ;;
|
---|
7097 | esac
|
---|
7098 | case `/usr/bin/file conftest.$ac_objext` in
|
---|
7099 | *N32*)
|
---|
7100 | emul="${emul}n32"
|
---|
7101 | ;;
|
---|
7102 | esac
|
---|
7103 | LD="${LD-ld} -m $emul"
|
---|
7104 | fi
|
---|
7105 | rm -rf conftest*
|
---|
7106 | ;;
|
---|
7107 |
|
---|
7108 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
|
---|
7109 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
|
---|
7110 | # Find out what ABI is being produced by ac_compile, and set linker
|
---|
7111 | # options accordingly. Note that the listed cases only cover the
|
---|
7112 | # situations where additional linker options are needed (such as when
|
---|
7113 | # doing 32-bit compilation for a host where ld defaults to 64-bit, or
|
---|
7114 | # vice versa); the common cases where no linker options are needed do
|
---|
7115 | # not appear in the list.
|
---|
7116 | echo 'int i;' > conftest.$ac_ext
|
---|
7117 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
---|
7118 | (eval $ac_compile) 2>&5
|
---|
7119 | ac_status=$?
|
---|
7120 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
7121 | test $ac_status = 0; }; then
|
---|
7122 | case `/usr/bin/file conftest.o` in
|
---|
7123 | *32-bit*)
|
---|
7124 | case $host in
|
---|
7125 | x86_64-*kfreebsd*-gnu)
|
---|
7126 | LD="${LD-ld} -m elf_i386_fbsd"
|
---|
7127 | ;;
|
---|
7128 | x86_64-*linux*)
|
---|
7129 | case `/usr/bin/file conftest.o` in
|
---|
7130 | *x86-64*)
|
---|
7131 | LD="${LD-ld} -m elf32_x86_64"
|
---|
7132 | ;;
|
---|
7133 | *)
|
---|
7134 | LD="${LD-ld} -m elf_i386"
|
---|
7135 | ;;
|
---|
7136 | esac
|
---|
7137 | ;;
|
---|
7138 | powerpc64le-*linux*)
|
---|
7139 | LD="${LD-ld} -m elf32lppclinux"
|
---|
7140 | ;;
|
---|
7141 | powerpc64-*linux*)
|
---|
7142 | LD="${LD-ld} -m elf32ppclinux"
|
---|
7143 | ;;
|
---|
7144 | s390x-*linux*)
|
---|
7145 | LD="${LD-ld} -m elf_s390"
|
---|
7146 | ;;
|
---|
7147 | sparc64-*linux*)
|
---|
7148 | LD="${LD-ld} -m elf32_sparc"
|
---|
7149 | ;;
|
---|
7150 | esac
|
---|
7151 | ;;
|
---|
7152 | *64-bit*)
|
---|
7153 | case $host in
|
---|
7154 | x86_64-*kfreebsd*-gnu)
|
---|
7155 | LD="${LD-ld} -m elf_x86_64_fbsd"
|
---|
7156 | ;;
|
---|
7157 | x86_64-*linux*)
|
---|
7158 | LD="${LD-ld} -m elf_x86_64"
|
---|
7159 | ;;
|
---|
7160 | powerpcle-*linux*)
|
---|
7161 | LD="${LD-ld} -m elf64lppc"
|
---|
7162 | ;;
|
---|
7163 | powerpc-*linux*)
|
---|
7164 | LD="${LD-ld} -m elf64ppc"
|
---|
7165 | ;;
|
---|
7166 | s390*-*linux*|s390*-*tpf*)
|
---|
7167 | LD="${LD-ld} -m elf64_s390"
|
---|
7168 | ;;
|
---|
7169 | sparc*-*linux*)
|
---|
7170 | LD="${LD-ld} -m elf64_sparc"
|
---|
7171 | ;;
|
---|
7172 | esac
|
---|
7173 | ;;
|
---|
7174 | esac
|
---|
7175 | fi
|
---|
7176 | rm -rf conftest*
|
---|
7177 | ;;
|
---|
7178 |
|
---|
7179 | *-*-sco3.2v5*)
|
---|
7180 | # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
---|
7181 | SAVE_CFLAGS=$CFLAGS
|
---|
7182 | CFLAGS="$CFLAGS -belf"
|
---|
7183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
|
---|
7184 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
|
---|
7185 | if ${lt_cv_cc_needs_belf+:} false; then :
|
---|
7186 | $as_echo_n "(cached) " >&6
|
---|
7187 | else
|
---|
7188 | ac_ext=c
|
---|
7189 | ac_cpp='$CPP $CPPFLAGS'
|
---|
7190 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
7191 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
7192 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
7193 |
|
---|
7194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
7195 | /* end confdefs.h. */
|
---|
7196 |
|
---|
7197 | int
|
---|
7198 | main ()
|
---|
7199 | {
|
---|
7200 |
|
---|
7201 | ;
|
---|
7202 | return 0;
|
---|
7203 | }
|
---|
7204 | _ACEOF
|
---|
7205 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
7206 | lt_cv_cc_needs_belf=yes
|
---|
7207 | else
|
---|
7208 | lt_cv_cc_needs_belf=no
|
---|
7209 | fi
|
---|
7210 | rm -f core conftest.err conftest.$ac_objext \
|
---|
7211 | conftest$ac_exeext conftest.$ac_ext
|
---|
7212 | ac_ext=c
|
---|
7213 | ac_cpp='$CPP $CPPFLAGS'
|
---|
7214 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
7215 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
7216 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
7217 |
|
---|
7218 | fi
|
---|
7219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
|
---|
7220 | $as_echo "$lt_cv_cc_needs_belf" >&6; }
|
---|
7221 | if test yes != "$lt_cv_cc_needs_belf"; then
|
---|
7222 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
---|
7223 | CFLAGS=$SAVE_CFLAGS
|
---|
7224 | fi
|
---|
7225 | ;;
|
---|
7226 | *-*solaris*)
|
---|
7227 | # Find out what ABI is being produced by ac_compile, and set linker
|
---|
7228 | # options accordingly.
|
---|
7229 | echo 'int i;' > conftest.$ac_ext
|
---|
7230 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
---|
7231 | (eval $ac_compile) 2>&5
|
---|
7232 | ac_status=$?
|
---|
7233 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
7234 | test $ac_status = 0; }; then
|
---|
7235 | case `/usr/bin/file conftest.o` in
|
---|
7236 | *64-bit*)
|
---|
7237 | case $lt_cv_prog_gnu_ld in
|
---|
7238 | yes*)
|
---|
7239 | case $host in
|
---|
7240 | i?86-*-solaris*|x86_64-*-solaris*)
|
---|
7241 | LD="${LD-ld} -m elf_x86_64"
|
---|
7242 | ;;
|
---|
7243 | sparc*-*-solaris*)
|
---|
7244 | LD="${LD-ld} -m elf64_sparc"
|
---|
7245 | ;;
|
---|
7246 | esac
|
---|
7247 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
|
---|
7248 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
|
---|
7249 | LD=${LD-ld}_sol2
|
---|
7250 | fi
|
---|
7251 | ;;
|
---|
7252 | *)
|
---|
7253 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
|
---|
7254 | LD="${LD-ld} -64"
|
---|
7255 | fi
|
---|
7256 | ;;
|
---|
7257 | esac
|
---|
7258 | ;;
|
---|
7259 | esac
|
---|
7260 | fi
|
---|
7261 | rm -rf conftest*
|
---|
7262 | ;;
|
---|
7263 | esac
|
---|
7264 |
|
---|
7265 | need_locks=$enable_libtool_lock
|
---|
7266 |
|
---|
7267 | if test -n "$ac_tool_prefix"; then
|
---|
7268 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
|
---|
7269 | set dummy ${ac_tool_prefix}mt; ac_word=$2
|
---|
7270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
7271 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
7272 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
|
---|
7273 | $as_echo_n "(cached) " >&6
|
---|
7274 | else
|
---|
7275 | if test -n "$MANIFEST_TOOL"; then
|
---|
7276 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
|
---|
7277 | else
|
---|
7278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7279 | for as_dir in $PATH
|
---|
7280 | do
|
---|
7281 | IFS=$as_save_IFS
|
---|
7282 | test -z "$as_dir" && as_dir=.
|
---|
7283 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
7284 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
7285 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
|
---|
7286 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
7287 | break 2
|
---|
7288 | fi
|
---|
7289 | done
|
---|
7290 | done
|
---|
7291 | IFS=$as_save_IFS
|
---|
7292 |
|
---|
7293 | fi
|
---|
7294 | fi
|
---|
7295 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
|
---|
7296 | if test -n "$MANIFEST_TOOL"; then
|
---|
7297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
|
---|
7298 | $as_echo "$MANIFEST_TOOL" >&6; }
|
---|
7299 | else
|
---|
7300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
7301 | $as_echo "no" >&6; }
|
---|
7302 | fi
|
---|
7303 |
|
---|
7304 |
|
---|
7305 | fi
|
---|
7306 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
|
---|
7307 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
|
---|
7308 | # Extract the first word of "mt", so it can be a program name with args.
|
---|
7309 | set dummy mt; ac_word=$2
|
---|
7310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
7311 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
7312 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
|
---|
7313 | $as_echo_n "(cached) " >&6
|
---|
7314 | else
|
---|
7315 | if test -n "$ac_ct_MANIFEST_TOOL"; then
|
---|
7316 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
|
---|
7317 | else
|
---|
7318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7319 | for as_dir in $PATH
|
---|
7320 | do
|
---|
7321 | IFS=$as_save_IFS
|
---|
7322 | test -z "$as_dir" && as_dir=.
|
---|
7323 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
7324 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
7325 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
|
---|
7326 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
7327 | break 2
|
---|
7328 | fi
|
---|
7329 | done
|
---|
7330 | done
|
---|
7331 | IFS=$as_save_IFS
|
---|
7332 |
|
---|
7333 | fi
|
---|
7334 | fi
|
---|
7335 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
|
---|
7336 | if test -n "$ac_ct_MANIFEST_TOOL"; then
|
---|
7337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
|
---|
7338 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
|
---|
7339 | else
|
---|
7340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
7341 | $as_echo "no" >&6; }
|
---|
7342 | fi
|
---|
7343 |
|
---|
7344 | if test "x$ac_ct_MANIFEST_TOOL" = x; then
|
---|
7345 | MANIFEST_TOOL=":"
|
---|
7346 | else
|
---|
7347 | case $cross_compiling:$ac_tool_warned in
|
---|
7348 | yes:)
|
---|
7349 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
7350 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
7351 | ac_tool_warned=yes ;;
|
---|
7352 | esac
|
---|
7353 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
|
---|
7354 | fi
|
---|
7355 | else
|
---|
7356 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
|
---|
7357 | fi
|
---|
7358 |
|
---|
7359 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
|
---|
7360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
|
---|
7361 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
|
---|
7362 | if ${lt_cv_path_mainfest_tool+:} false; then :
|
---|
7363 | $as_echo_n "(cached) " >&6
|
---|
7364 | else
|
---|
7365 | lt_cv_path_mainfest_tool=no
|
---|
7366 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
|
---|
7367 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
|
---|
7368 | cat conftest.err >&5
|
---|
7369 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then
|
---|
7370 | lt_cv_path_mainfest_tool=yes
|
---|
7371 | fi
|
---|
7372 | rm -f conftest*
|
---|
7373 | fi
|
---|
7374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
|
---|
7375 | $as_echo "$lt_cv_path_mainfest_tool" >&6; }
|
---|
7376 | if test yes != "$lt_cv_path_mainfest_tool"; then
|
---|
7377 | MANIFEST_TOOL=:
|
---|
7378 | fi
|
---|
7379 |
|
---|
7380 |
|
---|
7381 |
|
---|
7382 |
|
---|
7383 |
|
---|
7384 |
|
---|
7385 | case $host_os in
|
---|
7386 | rhapsody* | darwin*)
|
---|
7387 | if test -n "$ac_tool_prefix"; then
|
---|
7388 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
|
---|
7389 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
|
---|
7390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
7391 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
7392 | if ${ac_cv_prog_DSYMUTIL+:} false; then :
|
---|
7393 | $as_echo_n "(cached) " >&6
|
---|
7394 | else
|
---|
7395 | if test -n "$DSYMUTIL"; then
|
---|
7396 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
|
---|
7397 | else
|
---|
7398 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7399 | for as_dir in $PATH
|
---|
7400 | do
|
---|
7401 | IFS=$as_save_IFS
|
---|
7402 | test -z "$as_dir" && as_dir=.
|
---|
7403 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
7404 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
7405 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
|
---|
7406 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
7407 | break 2
|
---|
7408 | fi
|
---|
7409 | done
|
---|
7410 | done
|
---|
7411 | IFS=$as_save_IFS
|
---|
7412 |
|
---|
7413 | fi
|
---|
7414 | fi
|
---|
7415 | DSYMUTIL=$ac_cv_prog_DSYMUTIL
|
---|
7416 | if test -n "$DSYMUTIL"; then
|
---|
7417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
|
---|
7418 | $as_echo "$DSYMUTIL" >&6; }
|
---|
7419 | else
|
---|
7420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
7421 | $as_echo "no" >&6; }
|
---|
7422 | fi
|
---|
7423 |
|
---|
7424 |
|
---|
7425 | fi
|
---|
7426 | if test -z "$ac_cv_prog_DSYMUTIL"; then
|
---|
7427 | ac_ct_DSYMUTIL=$DSYMUTIL
|
---|
7428 | # Extract the first word of "dsymutil", so it can be a program name with args.
|
---|
7429 | set dummy dsymutil; ac_word=$2
|
---|
7430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
7431 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
7432 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
|
---|
7433 | $as_echo_n "(cached) " >&6
|
---|
7434 | else
|
---|
7435 | if test -n "$ac_ct_DSYMUTIL"; then
|
---|
7436 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
|
---|
7437 | else
|
---|
7438 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7439 | for as_dir in $PATH
|
---|
7440 | do
|
---|
7441 | IFS=$as_save_IFS
|
---|
7442 | test -z "$as_dir" && as_dir=.
|
---|
7443 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
7444 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
7445 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
|
---|
7446 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
7447 | break 2
|
---|
7448 | fi
|
---|
7449 | done
|
---|
7450 | done
|
---|
7451 | IFS=$as_save_IFS
|
---|
7452 |
|
---|
7453 | fi
|
---|
7454 | fi
|
---|
7455 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
|
---|
7456 | if test -n "$ac_ct_DSYMUTIL"; then
|
---|
7457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
|
---|
7458 | $as_echo "$ac_ct_DSYMUTIL" >&6; }
|
---|
7459 | else
|
---|
7460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
7461 | $as_echo "no" >&6; }
|
---|
7462 | fi
|
---|
7463 |
|
---|
7464 | if test "x$ac_ct_DSYMUTIL" = x; then
|
---|
7465 | DSYMUTIL=":"
|
---|
7466 | else
|
---|
7467 | case $cross_compiling:$ac_tool_warned in
|
---|
7468 | yes:)
|
---|
7469 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
7470 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
7471 | ac_tool_warned=yes ;;
|
---|
7472 | esac
|
---|
7473 | DSYMUTIL=$ac_ct_DSYMUTIL
|
---|
7474 | fi
|
---|
7475 | else
|
---|
7476 | DSYMUTIL="$ac_cv_prog_DSYMUTIL"
|
---|
7477 | fi
|
---|
7478 |
|
---|
7479 | if test -n "$ac_tool_prefix"; then
|
---|
7480 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
|
---|
7481 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2
|
---|
7482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
7483 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
7484 | if ${ac_cv_prog_NMEDIT+:} false; then :
|
---|
7485 | $as_echo_n "(cached) " >&6
|
---|
7486 | else
|
---|
7487 | if test -n "$NMEDIT"; then
|
---|
7488 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
|
---|
7489 | else
|
---|
7490 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7491 | for as_dir in $PATH
|
---|
7492 | do
|
---|
7493 | IFS=$as_save_IFS
|
---|
7494 | test -z "$as_dir" && as_dir=.
|
---|
7495 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
7496 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
7497 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
|
---|
7498 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
7499 | break 2
|
---|
7500 | fi
|
---|
7501 | done
|
---|
7502 | done
|
---|
7503 | IFS=$as_save_IFS
|
---|
7504 |
|
---|
7505 | fi
|
---|
7506 | fi
|
---|
7507 | NMEDIT=$ac_cv_prog_NMEDIT
|
---|
7508 | if test -n "$NMEDIT"; then
|
---|
7509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
|
---|
7510 | $as_echo "$NMEDIT" >&6; }
|
---|
7511 | else
|
---|
7512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
7513 | $as_echo "no" >&6; }
|
---|
7514 | fi
|
---|
7515 |
|
---|
7516 |
|
---|
7517 | fi
|
---|
7518 | if test -z "$ac_cv_prog_NMEDIT"; then
|
---|
7519 | ac_ct_NMEDIT=$NMEDIT
|
---|
7520 | # Extract the first word of "nmedit", so it can be a program name with args.
|
---|
7521 | set dummy nmedit; ac_word=$2
|
---|
7522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
7523 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
7524 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
|
---|
7525 | $as_echo_n "(cached) " >&6
|
---|
7526 | else
|
---|
7527 | if test -n "$ac_ct_NMEDIT"; then
|
---|
7528 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
|
---|
7529 | else
|
---|
7530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7531 | for as_dir in $PATH
|
---|
7532 | do
|
---|
7533 | IFS=$as_save_IFS
|
---|
7534 | test -z "$as_dir" && as_dir=.
|
---|
7535 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
7536 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
7537 | ac_cv_prog_ac_ct_NMEDIT="nmedit"
|
---|
7538 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
7539 | break 2
|
---|
7540 | fi
|
---|
7541 | done
|
---|
7542 | done
|
---|
7543 | IFS=$as_save_IFS
|
---|
7544 |
|
---|
7545 | fi
|
---|
7546 | fi
|
---|
7547 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
|
---|
7548 | if test -n "$ac_ct_NMEDIT"; then
|
---|
7549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
|
---|
7550 | $as_echo "$ac_ct_NMEDIT" >&6; }
|
---|
7551 | else
|
---|
7552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
7553 | $as_echo "no" >&6; }
|
---|
7554 | fi
|
---|
7555 |
|
---|
7556 | if test "x$ac_ct_NMEDIT" = x; then
|
---|
7557 | NMEDIT=":"
|
---|
7558 | else
|
---|
7559 | case $cross_compiling:$ac_tool_warned in
|
---|
7560 | yes:)
|
---|
7561 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
7562 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
7563 | ac_tool_warned=yes ;;
|
---|
7564 | esac
|
---|
7565 | NMEDIT=$ac_ct_NMEDIT
|
---|
7566 | fi
|
---|
7567 | else
|
---|
7568 | NMEDIT="$ac_cv_prog_NMEDIT"
|
---|
7569 | fi
|
---|
7570 |
|
---|
7571 | if test -n "$ac_tool_prefix"; then
|
---|
7572 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
|
---|
7573 | set dummy ${ac_tool_prefix}lipo; ac_word=$2
|
---|
7574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
7575 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
7576 | if ${ac_cv_prog_LIPO+:} false; then :
|
---|
7577 | $as_echo_n "(cached) " >&6
|
---|
7578 | else
|
---|
7579 | if test -n "$LIPO"; then
|
---|
7580 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
|
---|
7581 | else
|
---|
7582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7583 | for as_dir in $PATH
|
---|
7584 | do
|
---|
7585 | IFS=$as_save_IFS
|
---|
7586 | test -z "$as_dir" && as_dir=.
|
---|
7587 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
7588 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
7589 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
|
---|
7590 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
7591 | break 2
|
---|
7592 | fi
|
---|
7593 | done
|
---|
7594 | done
|
---|
7595 | IFS=$as_save_IFS
|
---|
7596 |
|
---|
7597 | fi
|
---|
7598 | fi
|
---|
7599 | LIPO=$ac_cv_prog_LIPO
|
---|
7600 | if test -n "$LIPO"; then
|
---|
7601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
|
---|
7602 | $as_echo "$LIPO" >&6; }
|
---|
7603 | else
|
---|
7604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
7605 | $as_echo "no" >&6; }
|
---|
7606 | fi
|
---|
7607 |
|
---|
7608 |
|
---|
7609 | fi
|
---|
7610 | if test -z "$ac_cv_prog_LIPO"; then
|
---|
7611 | ac_ct_LIPO=$LIPO
|
---|
7612 | # Extract the first word of "lipo", so it can be a program name with args.
|
---|
7613 | set dummy lipo; ac_word=$2
|
---|
7614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
7615 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
7616 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
|
---|
7617 | $as_echo_n "(cached) " >&6
|
---|
7618 | else
|
---|
7619 | if test -n "$ac_ct_LIPO"; then
|
---|
7620 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
|
---|
7621 | else
|
---|
7622 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7623 | for as_dir in $PATH
|
---|
7624 | do
|
---|
7625 | IFS=$as_save_IFS
|
---|
7626 | test -z "$as_dir" && as_dir=.
|
---|
7627 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
7628 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
7629 | ac_cv_prog_ac_ct_LIPO="lipo"
|
---|
7630 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
7631 | break 2
|
---|
7632 | fi
|
---|
7633 | done
|
---|
7634 | done
|
---|
7635 | IFS=$as_save_IFS
|
---|
7636 |
|
---|
7637 | fi
|
---|
7638 | fi
|
---|
7639 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
|
---|
7640 | if test -n "$ac_ct_LIPO"; then
|
---|
7641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
|
---|
7642 | $as_echo "$ac_ct_LIPO" >&6; }
|
---|
7643 | else
|
---|
7644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
7645 | $as_echo "no" >&6; }
|
---|
7646 | fi
|
---|
7647 |
|
---|
7648 | if test "x$ac_ct_LIPO" = x; then
|
---|
7649 | LIPO=":"
|
---|
7650 | else
|
---|
7651 | case $cross_compiling:$ac_tool_warned in
|
---|
7652 | yes:)
|
---|
7653 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
7654 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
7655 | ac_tool_warned=yes ;;
|
---|
7656 | esac
|
---|
7657 | LIPO=$ac_ct_LIPO
|
---|
7658 | fi
|
---|
7659 | else
|
---|
7660 | LIPO="$ac_cv_prog_LIPO"
|
---|
7661 | fi
|
---|
7662 |
|
---|
7663 | if test -n "$ac_tool_prefix"; then
|
---|
7664 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
|
---|
7665 | set dummy ${ac_tool_prefix}otool; ac_word=$2
|
---|
7666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
7667 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
7668 | if ${ac_cv_prog_OTOOL+:} false; then :
|
---|
7669 | $as_echo_n "(cached) " >&6
|
---|
7670 | else
|
---|
7671 | if test -n "$OTOOL"; then
|
---|
7672 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
|
---|
7673 | else
|
---|
7674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7675 | for as_dir in $PATH
|
---|
7676 | do
|
---|
7677 | IFS=$as_save_IFS
|
---|
7678 | test -z "$as_dir" && as_dir=.
|
---|
7679 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
7680 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
7681 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
|
---|
7682 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
7683 | break 2
|
---|
7684 | fi
|
---|
7685 | done
|
---|
7686 | done
|
---|
7687 | IFS=$as_save_IFS
|
---|
7688 |
|
---|
7689 | fi
|
---|
7690 | fi
|
---|
7691 | OTOOL=$ac_cv_prog_OTOOL
|
---|
7692 | if test -n "$OTOOL"; then
|
---|
7693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
|
---|
7694 | $as_echo "$OTOOL" >&6; }
|
---|
7695 | else
|
---|
7696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
7697 | $as_echo "no" >&6; }
|
---|
7698 | fi
|
---|
7699 |
|
---|
7700 |
|
---|
7701 | fi
|
---|
7702 | if test -z "$ac_cv_prog_OTOOL"; then
|
---|
7703 | ac_ct_OTOOL=$OTOOL
|
---|
7704 | # Extract the first word of "otool", so it can be a program name with args.
|
---|
7705 | set dummy otool; ac_word=$2
|
---|
7706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
7707 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
7708 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
|
---|
7709 | $as_echo_n "(cached) " >&6
|
---|
7710 | else
|
---|
7711 | if test -n "$ac_ct_OTOOL"; then
|
---|
7712 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
|
---|
7713 | else
|
---|
7714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7715 | for as_dir in $PATH
|
---|
7716 | do
|
---|
7717 | IFS=$as_save_IFS
|
---|
7718 | test -z "$as_dir" && as_dir=.
|
---|
7719 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
7720 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
7721 | ac_cv_prog_ac_ct_OTOOL="otool"
|
---|
7722 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
7723 | break 2
|
---|
7724 | fi
|
---|
7725 | done
|
---|
7726 | done
|
---|
7727 | IFS=$as_save_IFS
|
---|
7728 |
|
---|
7729 | fi
|
---|
7730 | fi
|
---|
7731 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
|
---|
7732 | if test -n "$ac_ct_OTOOL"; then
|
---|
7733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
|
---|
7734 | $as_echo "$ac_ct_OTOOL" >&6; }
|
---|
7735 | else
|
---|
7736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
7737 | $as_echo "no" >&6; }
|
---|
7738 | fi
|
---|
7739 |
|
---|
7740 | if test "x$ac_ct_OTOOL" = x; then
|
---|
7741 | OTOOL=":"
|
---|
7742 | else
|
---|
7743 | case $cross_compiling:$ac_tool_warned in
|
---|
7744 | yes:)
|
---|
7745 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
7746 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
7747 | ac_tool_warned=yes ;;
|
---|
7748 | esac
|
---|
7749 | OTOOL=$ac_ct_OTOOL
|
---|
7750 | fi
|
---|
7751 | else
|
---|
7752 | OTOOL="$ac_cv_prog_OTOOL"
|
---|
7753 | fi
|
---|
7754 |
|
---|
7755 | if test -n "$ac_tool_prefix"; then
|
---|
7756 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
|
---|
7757 | set dummy ${ac_tool_prefix}otool64; ac_word=$2
|
---|
7758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
7759 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
7760 | if ${ac_cv_prog_OTOOL64+:} false; then :
|
---|
7761 | $as_echo_n "(cached) " >&6
|
---|
7762 | else
|
---|
7763 | if test -n "$OTOOL64"; then
|
---|
7764 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
|
---|
7765 | else
|
---|
7766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7767 | for as_dir in $PATH
|
---|
7768 | do
|
---|
7769 | IFS=$as_save_IFS
|
---|
7770 | test -z "$as_dir" && as_dir=.
|
---|
7771 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
7772 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
7773 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
|
---|
7774 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
7775 | break 2
|
---|
7776 | fi
|
---|
7777 | done
|
---|
7778 | done
|
---|
7779 | IFS=$as_save_IFS
|
---|
7780 |
|
---|
7781 | fi
|
---|
7782 | fi
|
---|
7783 | OTOOL64=$ac_cv_prog_OTOOL64
|
---|
7784 | if test -n "$OTOOL64"; then
|
---|
7785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
|
---|
7786 | $as_echo "$OTOOL64" >&6; }
|
---|
7787 | else
|
---|
7788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
7789 | $as_echo "no" >&6; }
|
---|
7790 | fi
|
---|
7791 |
|
---|
7792 |
|
---|
7793 | fi
|
---|
7794 | if test -z "$ac_cv_prog_OTOOL64"; then
|
---|
7795 | ac_ct_OTOOL64=$OTOOL64
|
---|
7796 | # Extract the first word of "otool64", so it can be a program name with args.
|
---|
7797 | set dummy otool64; ac_word=$2
|
---|
7798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
7799 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
7800 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
|
---|
7801 | $as_echo_n "(cached) " >&6
|
---|
7802 | else
|
---|
7803 | if test -n "$ac_ct_OTOOL64"; then
|
---|
7804 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
|
---|
7805 | else
|
---|
7806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7807 | for as_dir in $PATH
|
---|
7808 | do
|
---|
7809 | IFS=$as_save_IFS
|
---|
7810 | test -z "$as_dir" && as_dir=.
|
---|
7811 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
7812 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
7813 | ac_cv_prog_ac_ct_OTOOL64="otool64"
|
---|
7814 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
7815 | break 2
|
---|
7816 | fi
|
---|
7817 | done
|
---|
7818 | done
|
---|
7819 | IFS=$as_save_IFS
|
---|
7820 |
|
---|
7821 | fi
|
---|
7822 | fi
|
---|
7823 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
|
---|
7824 | if test -n "$ac_ct_OTOOL64"; then
|
---|
7825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
|
---|
7826 | $as_echo "$ac_ct_OTOOL64" >&6; }
|
---|
7827 | else
|
---|
7828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
7829 | $as_echo "no" >&6; }
|
---|
7830 | fi
|
---|
7831 |
|
---|
7832 | if test "x$ac_ct_OTOOL64" = x; then
|
---|
7833 | OTOOL64=":"
|
---|
7834 | else
|
---|
7835 | case $cross_compiling:$ac_tool_warned in
|
---|
7836 | yes:)
|
---|
7837 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
7838 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
7839 | ac_tool_warned=yes ;;
|
---|
7840 | esac
|
---|
7841 | OTOOL64=$ac_ct_OTOOL64
|
---|
7842 | fi
|
---|
7843 | else
|
---|
7844 | OTOOL64="$ac_cv_prog_OTOOL64"
|
---|
7845 | fi
|
---|
7846 |
|
---|
7847 |
|
---|
7848 |
|
---|
7849 |
|
---|
7850 |
|
---|
7851 |
|
---|
7852 |
|
---|
7853 |
|
---|
7854 |
|
---|
7855 |
|
---|
7856 |
|
---|
7857 |
|
---|
7858 |
|
---|
7859 |
|
---|
7860 |
|
---|
7861 |
|
---|
7862 |
|
---|
7863 |
|
---|
7864 |
|
---|
7865 |
|
---|
7866 |
|
---|
7867 |
|
---|
7868 |
|
---|
7869 |
|
---|
7870 |
|
---|
7871 |
|
---|
7872 |
|
---|
7873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
|
---|
7874 | $as_echo_n "checking for -single_module linker flag... " >&6; }
|
---|
7875 | if ${lt_cv_apple_cc_single_mod+:} false; then :
|
---|
7876 | $as_echo_n "(cached) " >&6
|
---|
7877 | else
|
---|
7878 | lt_cv_apple_cc_single_mod=no
|
---|
7879 | if test -z "$LT_MULTI_MODULE"; then
|
---|
7880 | # By default we will add the -single_module flag. You can override
|
---|
7881 | # by either setting the environment variable LT_MULTI_MODULE
|
---|
7882 | # non-empty at configure time, or by adding -multi_module to the
|
---|
7883 | # link flags.
|
---|
7884 | rm -rf libconftest.dylib*
|
---|
7885 | echo "int foo(void){return 1;}" > conftest.c
|
---|
7886 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
---|
7887 | -dynamiclib -Wl,-single_module conftest.c" >&5
|
---|
7888 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
---|
7889 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
|
---|
7890 | _lt_result=$?
|
---|
7891 | # If there is a non-empty error log, and "single_module"
|
---|
7892 | # appears in it, assume the flag caused a linker warning
|
---|
7893 | if test -s conftest.err && $GREP single_module conftest.err; then
|
---|
7894 | cat conftest.err >&5
|
---|
7895 | # Otherwise, if the output was created with a 0 exit code from
|
---|
7896 | # the compiler, it worked.
|
---|
7897 | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
|
---|
7898 | lt_cv_apple_cc_single_mod=yes
|
---|
7899 | else
|
---|
7900 | cat conftest.err >&5
|
---|
7901 | fi
|
---|
7902 | rm -rf libconftest.dylib*
|
---|
7903 | rm -f conftest.*
|
---|
7904 | fi
|
---|
7905 | fi
|
---|
7906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
|
---|
7907 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
|
---|
7908 |
|
---|
7909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
|
---|
7910 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
|
---|
7911 | if ${lt_cv_ld_exported_symbols_list+:} false; then :
|
---|
7912 | $as_echo_n "(cached) " >&6
|
---|
7913 | else
|
---|
7914 | lt_cv_ld_exported_symbols_list=no
|
---|
7915 | save_LDFLAGS=$LDFLAGS
|
---|
7916 | echo "_main" > conftest.sym
|
---|
7917 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
|
---|
7918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
7919 | /* end confdefs.h. */
|
---|
7920 |
|
---|
7921 | int
|
---|
7922 | main ()
|
---|
7923 | {
|
---|
7924 |
|
---|
7925 | ;
|
---|
7926 | return 0;
|
---|
7927 | }
|
---|
7928 | _ACEOF
|
---|
7929 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
7930 | lt_cv_ld_exported_symbols_list=yes
|
---|
7931 | else
|
---|
7932 | lt_cv_ld_exported_symbols_list=no
|
---|
7933 | fi
|
---|
7934 | rm -f core conftest.err conftest.$ac_objext \
|
---|
7935 | conftest$ac_exeext conftest.$ac_ext
|
---|
7936 | LDFLAGS=$save_LDFLAGS
|
---|
7937 |
|
---|
7938 | fi
|
---|
7939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
|
---|
7940 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
|
---|
7941 |
|
---|
7942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
|
---|
7943 | $as_echo_n "checking for -force_load linker flag... " >&6; }
|
---|
7944 | if ${lt_cv_ld_force_load+:} false; then :
|
---|
7945 | $as_echo_n "(cached) " >&6
|
---|
7946 | else
|
---|
7947 | lt_cv_ld_force_load=no
|
---|
7948 | cat > conftest.c << _LT_EOF
|
---|
7949 | int forced_loaded() { return 2;}
|
---|
7950 | _LT_EOF
|
---|
7951 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
|
---|
7952 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
|
---|
7953 | echo "$AR cr libconftest.a conftest.o" >&5
|
---|
7954 | $AR cr libconftest.a conftest.o 2>&5
|
---|
7955 | echo "$RANLIB libconftest.a" >&5
|
---|
7956 | $RANLIB libconftest.a 2>&5
|
---|
7957 | cat > conftest.c << _LT_EOF
|
---|
7958 | int main() { return 0;}
|
---|
7959 | _LT_EOF
|
---|
7960 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
|
---|
7961 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
|
---|
7962 | _lt_result=$?
|
---|
7963 | if test -s conftest.err && $GREP force_load conftest.err; then
|
---|
7964 | cat conftest.err >&5
|
---|
7965 | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
|
---|
7966 | lt_cv_ld_force_load=yes
|
---|
7967 | else
|
---|
7968 | cat conftest.err >&5
|
---|
7969 | fi
|
---|
7970 | rm -f conftest.err libconftest.a conftest conftest.c
|
---|
7971 | rm -rf conftest.dSYM
|
---|
7972 |
|
---|
7973 | fi
|
---|
7974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
|
---|
7975 | $as_echo "$lt_cv_ld_force_load" >&6; }
|
---|
7976 | case $host_os in
|
---|
7977 | rhapsody* | darwin1.[012])
|
---|
7978 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
|
---|
7979 | darwin1.*)
|
---|
7980 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
|
---|
7981 | darwin*) # darwin 5.x on
|
---|
7982 | # if running on 10.5 or later, the deployment target defaults
|
---|
7983 | # to the OS version, if on x86, and 10.4, the deployment
|
---|
7984 | # target defaults to 10.4. Don't you love it?
|
---|
7985 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
|
---|
7986 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
|
---|
7987 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
|
---|
7988 | 10.[012][,.]*)
|
---|
7989 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
|
---|
7990 | 10.*)
|
---|
7991 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
|
---|
7992 | esac
|
---|
7993 | ;;
|
---|
7994 | esac
|
---|
7995 | if test yes = "$lt_cv_apple_cc_single_mod"; then
|
---|
7996 | _lt_dar_single_mod='$single_module'
|
---|
7997 | fi
|
---|
7998 | if test yes = "$lt_cv_ld_exported_symbols_list"; then
|
---|
7999 | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
|
---|
8000 | else
|
---|
8001 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
|
---|
8002 | fi
|
---|
8003 | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
|
---|
8004 | _lt_dsymutil='~$DSYMUTIL $lib || :'
|
---|
8005 | else
|
---|
8006 | _lt_dsymutil=
|
---|
8007 | fi
|
---|
8008 | ;;
|
---|
8009 | esac
|
---|
8010 |
|
---|
8011 | # func_munge_path_list VARIABLE PATH
|
---|
8012 | # -----------------------------------
|
---|
8013 | # VARIABLE is name of variable containing _space_ separated list of
|
---|
8014 | # directories to be munged by the contents of PATH, which is string
|
---|
8015 | # having a format:
|
---|
8016 | # "DIR[:DIR]:"
|
---|
8017 | # string "DIR[ DIR]" will be prepended to VARIABLE
|
---|
8018 | # ":DIR[:DIR]"
|
---|
8019 | # string "DIR[ DIR]" will be appended to VARIABLE
|
---|
8020 | # "DIRP[:DIRP]::[DIRA:]DIRA"
|
---|
8021 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
|
---|
8022 | # "DIRA[ DIRA]" will be appended to VARIABLE
|
---|
8023 | # "DIR[:DIR]"
|
---|
8024 | # VARIABLE will be replaced by "DIR[ DIR]"
|
---|
8025 | func_munge_path_list ()
|
---|
8026 | {
|
---|
8027 | case x$2 in
|
---|
8028 | x)
|
---|
8029 | ;;
|
---|
8030 | *:)
|
---|
8031 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
|
---|
8032 | ;;
|
---|
8033 | x:*)
|
---|
8034 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
|
---|
8035 | ;;
|
---|
8036 | *::*)
|
---|
8037 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
|
---|
8038 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
|
---|
8039 | ;;
|
---|
8040 | *)
|
---|
8041 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
|
---|
8042 | ;;
|
---|
8043 | esac
|
---|
8044 | }
|
---|
8045 |
|
---|
8046 |
|
---|
8047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
---|
8048 | $as_echo_n "checking for ANSI C header files... " >&6; }
|
---|
8049 | if ${ac_cv_header_stdc+:} false; then :
|
---|
8050 | $as_echo_n "(cached) " >&6
|
---|
8051 | else
|
---|
8052 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
8053 | /* end confdefs.h. */
|
---|
8054 | #include <stdlib.h>
|
---|
8055 | #include <stdarg.h>
|
---|
8056 | #include <string.h>
|
---|
8057 | #include <float.h>
|
---|
8058 |
|
---|
8059 | int
|
---|
8060 | main ()
|
---|
8061 | {
|
---|
8062 |
|
---|
8063 | ;
|
---|
8064 | return 0;
|
---|
8065 | }
|
---|
8066 | _ACEOF
|
---|
8067 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
8068 | ac_cv_header_stdc=yes
|
---|
8069 | else
|
---|
8070 | ac_cv_header_stdc=no
|
---|
8071 | fi
|
---|
8072 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
8073 |
|
---|
8074 | if test $ac_cv_header_stdc = yes; then
|
---|
8075 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
8076 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
8077 | /* end confdefs.h. */
|
---|
8078 | #include <string.h>
|
---|
8079 |
|
---|
8080 | _ACEOF
|
---|
8081 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
8082 | $EGREP "memchr" >/dev/null 2>&1; then :
|
---|
8083 |
|
---|
8084 | else
|
---|
8085 | ac_cv_header_stdc=no
|
---|
8086 | fi
|
---|
8087 | rm -f conftest*
|
---|
8088 |
|
---|
8089 | fi
|
---|
8090 |
|
---|
8091 | if test $ac_cv_header_stdc = yes; then
|
---|
8092 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
8093 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
8094 | /* end confdefs.h. */
|
---|
8095 | #include <stdlib.h>
|
---|
8096 |
|
---|
8097 | _ACEOF
|
---|
8098 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
8099 | $EGREP "free" >/dev/null 2>&1; then :
|
---|
8100 |
|
---|
8101 | else
|
---|
8102 | ac_cv_header_stdc=no
|
---|
8103 | fi
|
---|
8104 | rm -f conftest*
|
---|
8105 |
|
---|
8106 | fi
|
---|
8107 |
|
---|
8108 | if test $ac_cv_header_stdc = yes; then
|
---|
8109 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
8110 | if test "$cross_compiling" = yes; then :
|
---|
8111 | :
|
---|
8112 | else
|
---|
8113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
8114 | /* end confdefs.h. */
|
---|
8115 | #include <ctype.h>
|
---|
8116 | #include <stdlib.h>
|
---|
8117 | #if ((' ' & 0x0FF) == 0x020)
|
---|
8118 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
8119 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
8120 | #else
|
---|
8121 | # define ISLOWER(c) \
|
---|
8122 | (('a' <= (c) && (c) <= 'i') \
|
---|
8123 | || ('j' <= (c) && (c) <= 'r') \
|
---|
8124 | || ('s' <= (c) && (c) <= 'z'))
|
---|
8125 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
8126 | #endif
|
---|
8127 |
|
---|
8128 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
8129 | int
|
---|
8130 | main ()
|
---|
8131 | {
|
---|
8132 | int i;
|
---|
8133 | for (i = 0; i < 256; i++)
|
---|
8134 | if (XOR (islower (i), ISLOWER (i))
|
---|
8135 | || toupper (i) != TOUPPER (i))
|
---|
8136 | return 2;
|
---|
8137 | return 0;
|
---|
8138 | }
|
---|
8139 | _ACEOF
|
---|
8140 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
8141 |
|
---|
8142 | else
|
---|
8143 | ac_cv_header_stdc=no
|
---|
8144 | fi
|
---|
8145 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
8146 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
8147 | fi
|
---|
8148 |
|
---|
8149 | fi
|
---|
8150 | fi
|
---|
8151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
---|
8152 | $as_echo "$ac_cv_header_stdc" >&6; }
|
---|
8153 | if test $ac_cv_header_stdc = yes; then
|
---|
8154 |
|
---|
8155 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
---|
8156 |
|
---|
8157 | fi
|
---|
8158 |
|
---|
8159 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
8160 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
8161 | inttypes.h stdint.h unistd.h
|
---|
8162 | do :
|
---|
8163 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
8164 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
|
---|
8165 | "
|
---|
8166 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
---|
8167 | cat >>confdefs.h <<_ACEOF
|
---|
8168 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
8169 | _ACEOF
|
---|
8170 |
|
---|
8171 | fi
|
---|
8172 |
|
---|
8173 | done
|
---|
8174 |
|
---|
8175 |
|
---|
8176 | for ac_header in dlfcn.h
|
---|
8177 | do :
|
---|
8178 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
|
---|
8179 | "
|
---|
8180 | if test "x$ac_cv_header_dlfcn_h" = xyes; then :
|
---|
8181 | cat >>confdefs.h <<_ACEOF
|
---|
8182 | #define HAVE_DLFCN_H 1
|
---|
8183 | _ACEOF
|
---|
8184 |
|
---|
8185 | fi
|
---|
8186 |
|
---|
8187 | done
|
---|
8188 |
|
---|
8189 |
|
---|
8190 |
|
---|
8191 |
|
---|
8192 |
|
---|
8193 | # Set options
|
---|
8194 |
|
---|
8195 |
|
---|
8196 |
|
---|
8197 | enable_dlopen=no
|
---|
8198 |
|
---|
8199 |
|
---|
8200 |
|
---|
8201 | # Check whether --enable-shared was given.
|
---|
8202 | if test "${enable_shared+set}" = set; then :
|
---|
8203 | enableval=$enable_shared; p=${PACKAGE-default}
|
---|
8204 | case $enableval in
|
---|
8205 | yes) enable_shared=yes ;;
|
---|
8206 | no) enable_shared=no ;;
|
---|
8207 | *)
|
---|
8208 | enable_shared=no
|
---|
8209 | # Look at the argument we got. We use all the common list separators.
|
---|
8210 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
|
---|
8211 | for pkg in $enableval; do
|
---|
8212 | IFS=$lt_save_ifs
|
---|
8213 | if test "X$pkg" = "X$p"; then
|
---|
8214 | enable_shared=yes
|
---|
8215 | fi
|
---|
8216 | done
|
---|
8217 | IFS=$lt_save_ifs
|
---|
8218 | ;;
|
---|
8219 | esac
|
---|
8220 | else
|
---|
8221 | enable_shared=yes
|
---|
8222 | fi
|
---|
8223 |
|
---|
8224 |
|
---|
8225 |
|
---|
8226 |
|
---|
8227 |
|
---|
8228 |
|
---|
8229 |
|
---|
8230 |
|
---|
8231 |
|
---|
8232 | # Check whether --enable-static was given.
|
---|
8233 | if test "${enable_static+set}" = set; then :
|
---|
8234 | enableval=$enable_static; p=${PACKAGE-default}
|
---|
8235 | case $enableval in
|
---|
8236 | yes) enable_static=yes ;;
|
---|
8237 | no) enable_static=no ;;
|
---|
8238 | *)
|
---|
8239 | enable_static=no
|
---|
8240 | # Look at the argument we got. We use all the common list separators.
|
---|
8241 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
|
---|
8242 | for pkg in $enableval; do
|
---|
8243 | IFS=$lt_save_ifs
|
---|
8244 | if test "X$pkg" = "X$p"; then
|
---|
8245 | enable_static=yes
|
---|
8246 | fi
|
---|
8247 | done
|
---|
8248 | IFS=$lt_save_ifs
|
---|
8249 | ;;
|
---|
8250 | esac
|
---|
8251 | else
|
---|
8252 | enable_static=yes
|
---|
8253 | fi
|
---|
8254 |
|
---|
8255 |
|
---|
8256 |
|
---|
8257 |
|
---|
8258 |
|
---|
8259 |
|
---|
8260 |
|
---|
8261 |
|
---|
8262 |
|
---|
8263 |
|
---|
8264 | # Check whether --with-pic was given.
|
---|
8265 | if test "${with_pic+set}" = set; then :
|
---|
8266 | withval=$with_pic; lt_p=${PACKAGE-default}
|
---|
8267 | case $withval in
|
---|
8268 | yes|no) pic_mode=$withval ;;
|
---|
8269 | *)
|
---|
8270 | pic_mode=default
|
---|
8271 | # Look at the argument we got. We use all the common list separators.
|
---|
8272 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
|
---|
8273 | for lt_pkg in $withval; do
|
---|
8274 | IFS=$lt_save_ifs
|
---|
8275 | if test "X$lt_pkg" = "X$lt_p"; then
|
---|
8276 | pic_mode=yes
|
---|
8277 | fi
|
---|
8278 | done
|
---|
8279 | IFS=$lt_save_ifs
|
---|
8280 | ;;
|
---|
8281 | esac
|
---|
8282 | else
|
---|
8283 | pic_mode=default
|
---|
8284 | fi
|
---|
8285 |
|
---|
8286 |
|
---|
8287 |
|
---|
8288 |
|
---|
8289 |
|
---|
8290 |
|
---|
8291 |
|
---|
8292 |
|
---|
8293 | # Check whether --enable-fast-install was given.
|
---|
8294 | if test "${enable_fast_install+set}" = set; then :
|
---|
8295 | enableval=$enable_fast_install; p=${PACKAGE-default}
|
---|
8296 | case $enableval in
|
---|
8297 | yes) enable_fast_install=yes ;;
|
---|
8298 | no) enable_fast_install=no ;;
|
---|
8299 | *)
|
---|
8300 | enable_fast_install=no
|
---|
8301 | # Look at the argument we got. We use all the common list separators.
|
---|
8302 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
|
---|
8303 | for pkg in $enableval; do
|
---|
8304 | IFS=$lt_save_ifs
|
---|
8305 | if test "X$pkg" = "X$p"; then
|
---|
8306 | enable_fast_install=yes
|
---|
8307 | fi
|
---|
8308 | done
|
---|
8309 | IFS=$lt_save_ifs
|
---|
8310 | ;;
|
---|
8311 | esac
|
---|
8312 | else
|
---|
8313 | enable_fast_install=yes
|
---|
8314 | fi
|
---|
8315 |
|
---|
8316 |
|
---|
8317 |
|
---|
8318 |
|
---|
8319 |
|
---|
8320 |
|
---|
8321 |
|
---|
8322 |
|
---|
8323 | shared_archive_member_spec=
|
---|
8324 | case $host,$enable_shared in
|
---|
8325 | power*-*-aix[5-9]*,yes)
|
---|
8326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
|
---|
8327 | $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
|
---|
8328 |
|
---|
8329 | # Check whether --with-aix-soname was given.
|
---|
8330 | if test "${with_aix_soname+set}" = set; then :
|
---|
8331 | withval=$with_aix_soname; case $withval in
|
---|
8332 | aix|svr4|both)
|
---|
8333 | ;;
|
---|
8334 | *)
|
---|
8335 | as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
|
---|
8336 | ;;
|
---|
8337 | esac
|
---|
8338 | lt_cv_with_aix_soname=$with_aix_soname
|
---|
8339 | else
|
---|
8340 | if ${lt_cv_with_aix_soname+:} false; then :
|
---|
8341 | $as_echo_n "(cached) " >&6
|
---|
8342 | else
|
---|
8343 | lt_cv_with_aix_soname=aix
|
---|
8344 | fi
|
---|
8345 |
|
---|
8346 | with_aix_soname=$lt_cv_with_aix_soname
|
---|
8347 | fi
|
---|
8348 |
|
---|
8349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
|
---|
8350 | $as_echo "$with_aix_soname" >&6; }
|
---|
8351 | if test aix != "$with_aix_soname"; then
|
---|
8352 | # For the AIX way of multilib, we name the shared archive member
|
---|
8353 | # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
|
---|
8354 | # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
|
---|
8355 | # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
|
---|
8356 | # the AIX toolchain works better with OBJECT_MODE set (default 32).
|
---|
8357 | if test 64 = "${OBJECT_MODE-32}"; then
|
---|
8358 | shared_archive_member_spec=shr_64
|
---|
8359 | else
|
---|
8360 | shared_archive_member_spec=shr
|
---|
8361 | fi
|
---|
8362 | fi
|
---|
8363 | ;;
|
---|
8364 | *)
|
---|
8365 | with_aix_soname=aix
|
---|
8366 | ;;
|
---|
8367 | esac
|
---|
8368 |
|
---|
8369 |
|
---|
8370 |
|
---|
8371 |
|
---|
8372 |
|
---|
8373 |
|
---|
8374 |
|
---|
8375 |
|
---|
8376 |
|
---|
8377 |
|
---|
8378 | # This can be used to rebuild libtool when needed
|
---|
8379 | LIBTOOL_DEPS=$ltmain
|
---|
8380 |
|
---|
8381 | # Always use our own libtool.
|
---|
8382 | LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
---|
8383 |
|
---|
8384 |
|
---|
8385 |
|
---|
8386 |
|
---|
8387 |
|
---|
8388 |
|
---|
8389 |
|
---|
8390 |
|
---|
8391 |
|
---|
8392 |
|
---|
8393 |
|
---|
8394 |
|
---|
8395 |
|
---|
8396 |
|
---|
8397 |
|
---|
8398 |
|
---|
8399 |
|
---|
8400 |
|
---|
8401 |
|
---|
8402 |
|
---|
8403 |
|
---|
8404 |
|
---|
8405 |
|
---|
8406 |
|
---|
8407 |
|
---|
8408 |
|
---|
8409 |
|
---|
8410 |
|
---|
8411 |
|
---|
8412 |
|
---|
8413 | test -z "$LN_S" && LN_S="ln -s"
|
---|
8414 |
|
---|
8415 |
|
---|
8416 |
|
---|
8417 |
|
---|
8418 |
|
---|
8419 |
|
---|
8420 |
|
---|
8421 |
|
---|
8422 |
|
---|
8423 |
|
---|
8424 |
|
---|
8425 |
|
---|
8426 |
|
---|
8427 |
|
---|
8428 | if test -n "${ZSH_VERSION+set}"; then
|
---|
8429 | setopt NO_GLOB_SUBST
|
---|
8430 | fi
|
---|
8431 |
|
---|
8432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
|
---|
8433 | $as_echo_n "checking for objdir... " >&6; }
|
---|
8434 | if ${lt_cv_objdir+:} false; then :
|
---|
8435 | $as_echo_n "(cached) " >&6
|
---|
8436 | else
|
---|
8437 | rm -f .libs 2>/dev/null
|
---|
8438 | mkdir .libs 2>/dev/null
|
---|
8439 | if test -d .libs; then
|
---|
8440 | lt_cv_objdir=.libs
|
---|
8441 | else
|
---|
8442 | # MS-DOS does not allow filenames that begin with a dot.
|
---|
8443 | lt_cv_objdir=_libs
|
---|
8444 | fi
|
---|
8445 | rmdir .libs 2>/dev/null
|
---|
8446 | fi
|
---|
8447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
|
---|
8448 | $as_echo "$lt_cv_objdir" >&6; }
|
---|
8449 | objdir=$lt_cv_objdir
|
---|
8450 |
|
---|
8451 |
|
---|
8452 |
|
---|
8453 |
|
---|
8454 |
|
---|
8455 | cat >>confdefs.h <<_ACEOF
|
---|
8456 | #define LT_OBJDIR "$lt_cv_objdir/"
|
---|
8457 | _ACEOF
|
---|
8458 |
|
---|
8459 |
|
---|
8460 |
|
---|
8461 |
|
---|
8462 | case $host_os in
|
---|
8463 | aix3*)
|
---|
8464 | # AIX sometimes has problems with the GCC collect2 program. For some
|
---|
8465 | # reason, if we set the COLLECT_NAMES environment variable, the problems
|
---|
8466 | # vanish in a puff of smoke.
|
---|
8467 | if test set != "${COLLECT_NAMES+set}"; then
|
---|
8468 | COLLECT_NAMES=
|
---|
8469 | export COLLECT_NAMES
|
---|
8470 | fi
|
---|
8471 | ;;
|
---|
8472 | esac
|
---|
8473 |
|
---|
8474 | # Global variables:
|
---|
8475 | ofile=libtool
|
---|
8476 | can_build_shared=yes
|
---|
8477 |
|
---|
8478 | # All known linkers require a '.a' archive for static linking (except MSVC,
|
---|
8479 | # which needs '.lib').
|
---|
8480 | libext=a
|
---|
8481 |
|
---|
8482 | with_gnu_ld=$lt_cv_prog_gnu_ld
|
---|
8483 |
|
---|
8484 | old_CC=$CC
|
---|
8485 | old_CFLAGS=$CFLAGS
|
---|
8486 |
|
---|
8487 | # Set sane defaults for various variables
|
---|
8488 | test -z "$CC" && CC=cc
|
---|
8489 | test -z "$LTCC" && LTCC=$CC
|
---|
8490 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
|
---|
8491 | test -z "$LD" && LD=ld
|
---|
8492 | test -z "$ac_objext" && ac_objext=o
|
---|
8493 |
|
---|
8494 | func_cc_basename $compiler
|
---|
8495 | cc_basename=$func_cc_basename_result
|
---|
8496 |
|
---|
8497 |
|
---|
8498 | # Only perform the check for file, if the check method requires it
|
---|
8499 | test -z "$MAGIC_CMD" && MAGIC_CMD=file
|
---|
8500 | case $deplibs_check_method in
|
---|
8501 | file_magic*)
|
---|
8502 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
---|
8503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
|
---|
8504 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
|
---|
8505 | if ${lt_cv_path_MAGIC_CMD+:} false; then :
|
---|
8506 | $as_echo_n "(cached) " >&6
|
---|
8507 | else
|
---|
8508 | case $MAGIC_CMD in
|
---|
8509 | [\\/*] | ?:[\\/]*)
|
---|
8510 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
|
---|
8511 | ;;
|
---|
8512 | *)
|
---|
8513 | lt_save_MAGIC_CMD=$MAGIC_CMD
|
---|
8514 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
|
---|
8515 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
|
---|
8516 | for ac_dir in $ac_dummy; do
|
---|
8517 | IFS=$lt_save_ifs
|
---|
8518 | test -z "$ac_dir" && ac_dir=.
|
---|
8519 | if test -f "$ac_dir/${ac_tool_prefix}file"; then
|
---|
8520 | lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
|
---|
8521 | if test -n "$file_magic_test_file"; then
|
---|
8522 | case $deplibs_check_method in
|
---|
8523 | "file_magic "*)
|
---|
8524 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
|
---|
8525 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD
|
---|
8526 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
---|
8527 | $EGREP "$file_magic_regex" > /dev/null; then
|
---|
8528 | :
|
---|
8529 | else
|
---|
8530 | cat <<_LT_EOF 1>&2
|
---|
8531 |
|
---|
8532 | *** Warning: the command libtool uses to detect shared libraries,
|
---|
8533 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
---|
8534 | *** The result is that libtool may fail to recognize shared libraries
|
---|
8535 | *** as such. This will affect the creation of libtool libraries that
|
---|
8536 | *** depend on shared libraries, but programs linked with such libtool
|
---|
8537 | *** libraries will work regardless of this problem. Nevertheless, you
|
---|
8538 | *** may want to report the problem to your system manager and/or to
|
---|
8539 | *** bug-libtool@gnu.org
|
---|
8540 |
|
---|
8541 | _LT_EOF
|
---|
8542 | fi ;;
|
---|
8543 | esac
|
---|
8544 | fi
|
---|
8545 | break
|
---|
8546 | fi
|
---|
8547 | done
|
---|
8548 | IFS=$lt_save_ifs
|
---|
8549 | MAGIC_CMD=$lt_save_MAGIC_CMD
|
---|
8550 | ;;
|
---|
8551 | esac
|
---|
8552 | fi
|
---|
8553 |
|
---|
8554 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD
|
---|
8555 | if test -n "$MAGIC_CMD"; then
|
---|
8556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
|
---|
8557 | $as_echo "$MAGIC_CMD" >&6; }
|
---|
8558 | else
|
---|
8559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
8560 | $as_echo "no" >&6; }
|
---|
8561 | fi
|
---|
8562 |
|
---|
8563 |
|
---|
8564 |
|
---|
8565 |
|
---|
8566 |
|
---|
8567 | if test -z "$lt_cv_path_MAGIC_CMD"; then
|
---|
8568 | if test -n "$ac_tool_prefix"; then
|
---|
8569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
|
---|
8570 | $as_echo_n "checking for file... " >&6; }
|
---|
8571 | if ${lt_cv_path_MAGIC_CMD+:} false; then :
|
---|
8572 | $as_echo_n "(cached) " >&6
|
---|
8573 | else
|
---|
8574 | case $MAGIC_CMD in
|
---|
8575 | [\\/*] | ?:[\\/]*)
|
---|
8576 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
|
---|
8577 | ;;
|
---|
8578 | *)
|
---|
8579 | lt_save_MAGIC_CMD=$MAGIC_CMD
|
---|
8580 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
|
---|
8581 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
|
---|
8582 | for ac_dir in $ac_dummy; do
|
---|
8583 | IFS=$lt_save_ifs
|
---|
8584 | test -z "$ac_dir" && ac_dir=.
|
---|
8585 | if test -f "$ac_dir/file"; then
|
---|
8586 | lt_cv_path_MAGIC_CMD=$ac_dir/"file"
|
---|
8587 | if test -n "$file_magic_test_file"; then
|
---|
8588 | case $deplibs_check_method in
|
---|
8589 | "file_magic "*)
|
---|
8590 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
|
---|
8591 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD
|
---|
8592 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
---|
8593 | $EGREP "$file_magic_regex" > /dev/null; then
|
---|
8594 | :
|
---|
8595 | else
|
---|
8596 | cat <<_LT_EOF 1>&2
|
---|
8597 |
|
---|
8598 | *** Warning: the command libtool uses to detect shared libraries,
|
---|
8599 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
---|
8600 | *** The result is that libtool may fail to recognize shared libraries
|
---|
8601 | *** as such. This will affect the creation of libtool libraries that
|
---|
8602 | *** depend on shared libraries, but programs linked with such libtool
|
---|
8603 | *** libraries will work regardless of this problem. Nevertheless, you
|
---|
8604 | *** may want to report the problem to your system manager and/or to
|
---|
8605 | *** bug-libtool@gnu.org
|
---|
8606 |
|
---|
8607 | _LT_EOF
|
---|
8608 | fi ;;
|
---|
8609 | esac
|
---|
8610 | fi
|
---|
8611 | break
|
---|
8612 | fi
|
---|
8613 | done
|
---|
8614 | IFS=$lt_save_ifs
|
---|
8615 | MAGIC_CMD=$lt_save_MAGIC_CMD
|
---|
8616 | ;;
|
---|
8617 | esac
|
---|
8618 | fi
|
---|
8619 |
|
---|
8620 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD
|
---|
8621 | if test -n "$MAGIC_CMD"; then
|
---|
8622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
|
---|
8623 | $as_echo "$MAGIC_CMD" >&6; }
|
---|
8624 | else
|
---|
8625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
8626 | $as_echo "no" >&6; }
|
---|
8627 | fi
|
---|
8628 |
|
---|
8629 |
|
---|
8630 | else
|
---|
8631 | MAGIC_CMD=:
|
---|
8632 | fi
|
---|
8633 | fi
|
---|
8634 |
|
---|
8635 | fi
|
---|
8636 | ;;
|
---|
8637 | esac
|
---|
8638 |
|
---|
8639 | # Use C for the default configuration in the libtool script
|
---|
8640 |
|
---|
8641 | lt_save_CC=$CC
|
---|
8642 | ac_ext=c
|
---|
8643 | ac_cpp='$CPP $CPPFLAGS'
|
---|
8644 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
8645 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
8646 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
8647 |
|
---|
8648 |
|
---|
8649 | # Source file extension for C test sources.
|
---|
8650 | ac_ext=c
|
---|
8651 |
|
---|
8652 | # Object file extension for compiled C test sources.
|
---|
8653 | objext=o
|
---|
8654 | objext=$objext
|
---|
8655 |
|
---|
8656 | # Code to be used in simple compile tests
|
---|
8657 | lt_simple_compile_test_code="int some_variable = 0;"
|
---|
8658 |
|
---|
8659 | # Code to be used in simple link tests
|
---|
8660 | lt_simple_link_test_code='int main(){return(0);}'
|
---|
8661 |
|
---|
8662 |
|
---|
8663 |
|
---|
8664 |
|
---|
8665 |
|
---|
8666 |
|
---|
8667 |
|
---|
8668 | # If no C compiler was specified, use CC.
|
---|
8669 | LTCC=${LTCC-"$CC"}
|
---|
8670 |
|
---|
8671 | # If no C compiler flags were specified, use CFLAGS.
|
---|
8672 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
---|
8673 |
|
---|
8674 | # Allow CC to be a program name with arguments.
|
---|
8675 | compiler=$CC
|
---|
8676 |
|
---|
8677 | # Save the default compiler, since it gets overwritten when the other
|
---|
8678 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
|
---|
8679 | compiler_DEFAULT=$CC
|
---|
8680 |
|
---|
8681 | # save warnings/boilerplate of simple test code
|
---|
8682 | ac_outfile=conftest.$ac_objext
|
---|
8683 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext
|
---|
8684 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
---|
8685 | _lt_compiler_boilerplate=`cat conftest.err`
|
---|
8686 | $RM conftest*
|
---|
8687 |
|
---|
8688 | ac_outfile=conftest.$ac_objext
|
---|
8689 | echo "$lt_simple_link_test_code" >conftest.$ac_ext
|
---|
8690 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
---|
8691 | _lt_linker_boilerplate=`cat conftest.err`
|
---|
8692 | $RM -r conftest*
|
---|
8693 |
|
---|
8694 |
|
---|
8695 | ## CAVEAT EMPTOR:
|
---|
8696 | ## There is no encapsulation within the following macros, do not change
|
---|
8697 | ## the running order or otherwise move them around unless you know exactly
|
---|
8698 | ## what you are doing...
|
---|
8699 | if test -n "$compiler"; then
|
---|
8700 |
|
---|
8701 | lt_prog_compiler_no_builtin_flag=
|
---|
8702 |
|
---|
8703 | if test yes = "$GCC"; then
|
---|
8704 | case $cc_basename in
|
---|
8705 | nvcc*)
|
---|
8706 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
|
---|
8707 | *)
|
---|
8708 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
|
---|
8709 | esac
|
---|
8710 |
|
---|
8711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
|
---|
8712 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
|
---|
8713 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
|
---|
8714 | $as_echo_n "(cached) " >&6
|
---|
8715 | else
|
---|
8716 | lt_cv_prog_compiler_rtti_exceptions=no
|
---|
8717 | ac_outfile=conftest.$ac_objext
|
---|
8718 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
---|
8719 | lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
|
---|
8720 | # Insert the option either (1) after the last *FLAGS variable, or
|
---|
8721 | # (2) before a word containing "conftest.", or (3) at the end.
|
---|
8722 | # Note that $ac_compile itself does not contain backslashes and begins
|
---|
8723 | # with a dollar sign (not a hyphen), so the echo should work correctly.
|
---|
8724 | # The option is referenced via a variable to avoid confusing sed.
|
---|
8725 | lt_compile=`echo "$ac_compile" | $SED \
|
---|
8726 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
---|
8727 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
---|
8728 | -e 's:$: $lt_compiler_flag:'`
|
---|
8729 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
|
---|
8730 | (eval "$lt_compile" 2>conftest.err)
|
---|
8731 | ac_status=$?
|
---|
8732 | cat conftest.err >&5
|
---|
8733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8734 | if (exit $ac_status) && test -s "$ac_outfile"; then
|
---|
8735 | # The compiler can only warn and ignore the option if not recognized
|
---|
8736 | # So say no if there are warnings other than the usual output.
|
---|
8737 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
|
---|
8738 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
---|
8739 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
---|
8740 | lt_cv_prog_compiler_rtti_exceptions=yes
|
---|
8741 | fi
|
---|
8742 | fi
|
---|
8743 | $RM conftest*
|
---|
8744 |
|
---|
8745 | fi
|
---|
8746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
|
---|
8747 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
|
---|
8748 |
|
---|
8749 | if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
|
---|
8750 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
|
---|
8751 | else
|
---|
8752 | :
|
---|
8753 | fi
|
---|
8754 |
|
---|
8755 | fi
|
---|
8756 |
|
---|
8757 |
|
---|
8758 |
|
---|
8759 |
|
---|
8760 |
|
---|
8761 |
|
---|
8762 | lt_prog_compiler_wl=
|
---|
8763 | lt_prog_compiler_pic=
|
---|
8764 | lt_prog_compiler_static=
|
---|
8765 |
|
---|
8766 |
|
---|
8767 | if test yes = "$GCC"; then
|
---|
8768 | lt_prog_compiler_wl='-Wl,'
|
---|
8769 | lt_prog_compiler_static='-static'
|
---|
8770 |
|
---|
8771 | case $host_os in
|
---|
8772 | aix*)
|
---|
8773 | # All AIX code is PIC.
|
---|
8774 | if test ia64 = "$host_cpu"; then
|
---|
8775 | # AIX 5 now supports IA64 processor
|
---|
8776 | lt_prog_compiler_static='-Bstatic'
|
---|
8777 | fi
|
---|
8778 | lt_prog_compiler_pic='-fPIC'
|
---|
8779 | ;;
|
---|
8780 |
|
---|
8781 | amigaos*)
|
---|
8782 | case $host_cpu in
|
---|
8783 | powerpc)
|
---|
8784 | # see comment about AmigaOS4 .so support
|
---|
8785 | lt_prog_compiler_pic='-fPIC'
|
---|
8786 | ;;
|
---|
8787 | m68k)
|
---|
8788 | # FIXME: we need at least 68020 code to build shared libraries, but
|
---|
8789 | # adding the '-m68020' flag to GCC prevents building anything better,
|
---|
8790 | # like '-m68040'.
|
---|
8791 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
|
---|
8792 | ;;
|
---|
8793 | esac
|
---|
8794 | ;;
|
---|
8795 |
|
---|
8796 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
---|
8797 | # PIC is the default for these OSes.
|
---|
8798 | ;;
|
---|
8799 |
|
---|
8800 | mingw* | cygwin* | pw32* | os2* | cegcc*)
|
---|
8801 | # This hack is so that the source file can tell whether it is being
|
---|
8802 | # built for inclusion in a dll (and should export symbols for example).
|
---|
8803 | # Although the cygwin gcc ignores -fPIC, still need this for old-style
|
---|
8804 | # (--disable-auto-import) libraries
|
---|
8805 | lt_prog_compiler_pic='-DDLL_EXPORT'
|
---|
8806 | case $host_os in
|
---|
8807 | os2*)
|
---|
8808 | lt_prog_compiler_static='$wl-static'
|
---|
8809 | ;;
|
---|
8810 | esac
|
---|
8811 | ;;
|
---|
8812 |
|
---|
8813 | darwin* | rhapsody*)
|
---|
8814 | # PIC is the default on this platform
|
---|
8815 | # Common symbols not allowed in MH_DYLIB files
|
---|
8816 | lt_prog_compiler_pic='-fno-common'
|
---|
8817 | ;;
|
---|
8818 |
|
---|
8819 | haiku*)
|
---|
8820 | # PIC is the default for Haiku.
|
---|
8821 | # The "-static" flag exists, but is broken.
|
---|
8822 | lt_prog_compiler_static=
|
---|
8823 | ;;
|
---|
8824 |
|
---|
8825 | hpux*)
|
---|
8826 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
|
---|
8827 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
|
---|
8828 | # sets the default TLS model and affects inlining.
|
---|
8829 | case $host_cpu in
|
---|
8830 | hppa*64*)
|
---|
8831 | # +Z the default
|
---|
8832 | ;;
|
---|
8833 | *)
|
---|
8834 | lt_prog_compiler_pic='-fPIC'
|
---|
8835 | ;;
|
---|
8836 | esac
|
---|
8837 | ;;
|
---|
8838 |
|
---|
8839 | interix[3-9]*)
|
---|
8840 | # Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
---|
8841 | # Instead, we relocate shared libraries at runtime.
|
---|
8842 | ;;
|
---|
8843 |
|
---|
8844 | msdosdjgpp*)
|
---|
8845 | # Just because we use GCC doesn't mean we suddenly get shared libraries
|
---|
8846 | # on systems that don't support them.
|
---|
8847 | lt_prog_compiler_can_build_shared=no
|
---|
8848 | enable_shared=no
|
---|
8849 | ;;
|
---|
8850 |
|
---|
8851 | *nto* | *qnx*)
|
---|
8852 | # QNX uses GNU C++, but need to define -shared option too, otherwise
|
---|
8853 | # it will coredump.
|
---|
8854 | lt_prog_compiler_pic='-fPIC -shared'
|
---|
8855 | ;;
|
---|
8856 |
|
---|
8857 | sysv4*MP*)
|
---|
8858 | if test -d /usr/nec; then
|
---|
8859 | lt_prog_compiler_pic=-Kconform_pic
|
---|
8860 | fi
|
---|
8861 | ;;
|
---|
8862 |
|
---|
8863 | *)
|
---|
8864 | lt_prog_compiler_pic='-fPIC'
|
---|
8865 | ;;
|
---|
8866 | esac
|
---|
8867 |
|
---|
8868 | case $cc_basename in
|
---|
8869 | nvcc*) # Cuda Compiler Driver 2.2
|
---|
8870 | lt_prog_compiler_wl='-Xlinker '
|
---|
8871 | if test -n "$lt_prog_compiler_pic"; then
|
---|
8872 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
|
---|
8873 | fi
|
---|
8874 | ;;
|
---|
8875 | esac
|
---|
8876 | else
|
---|
8877 | # PORTME Check for flag to pass linker flags through the system compiler.
|
---|
8878 | case $host_os in
|
---|
8879 | aix*)
|
---|
8880 | lt_prog_compiler_wl='-Wl,'
|
---|
8881 | if test ia64 = "$host_cpu"; then
|
---|
8882 | # AIX 5 now supports IA64 processor
|
---|
8883 | lt_prog_compiler_static='-Bstatic'
|
---|
8884 | else
|
---|
8885 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
|
---|
8886 | fi
|
---|
8887 | ;;
|
---|
8888 |
|
---|
8889 | darwin* | rhapsody*)
|
---|
8890 | # PIC is the default on this platform
|
---|
8891 | # Common symbols not allowed in MH_DYLIB files
|
---|
8892 | lt_prog_compiler_pic='-fno-common'
|
---|
8893 | case $cc_basename in
|
---|
8894 | nagfor*)
|
---|
8895 | # NAG Fortran compiler
|
---|
8896 | lt_prog_compiler_wl='-Wl,-Wl,,'
|
---|
8897 | lt_prog_compiler_pic='-PIC'
|
---|
8898 | lt_prog_compiler_static='-Bstatic'
|
---|
8899 | ;;
|
---|
8900 | esac
|
---|
8901 | ;;
|
---|
8902 |
|
---|
8903 | mingw* | cygwin* | pw32* | os2* | cegcc*)
|
---|
8904 | # This hack is so that the source file can tell whether it is being
|
---|
8905 | # built for inclusion in a dll (and should export symbols for example).
|
---|
8906 | lt_prog_compiler_pic='-DDLL_EXPORT'
|
---|
8907 | case $host_os in
|
---|
8908 | os2*)
|
---|
8909 | lt_prog_compiler_static='$wl-static'
|
---|
8910 | ;;
|
---|
8911 | esac
|
---|
8912 | ;;
|
---|
8913 |
|
---|
8914 | hpux9* | hpux10* | hpux11*)
|
---|
8915 | lt_prog_compiler_wl='-Wl,'
|
---|
8916 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
---|
8917 | # not for PA HP-UX.
|
---|
8918 | case $host_cpu in
|
---|
8919 | hppa*64*|ia64*)
|
---|
8920 | # +Z the default
|
---|
8921 | ;;
|
---|
8922 | *)
|
---|
8923 | lt_prog_compiler_pic='+Z'
|
---|
8924 | ;;
|
---|
8925 | esac
|
---|
8926 | # Is there a better lt_prog_compiler_static that works with the bundled CC?
|
---|
8927 | lt_prog_compiler_static='$wl-a ${wl}archive'
|
---|
8928 | ;;
|
---|
8929 |
|
---|
8930 | irix5* | irix6* | nonstopux*)
|
---|
8931 | lt_prog_compiler_wl='-Wl,'
|
---|
8932 | # PIC (with -KPIC) is the default.
|
---|
8933 | lt_prog_compiler_static='-non_shared'
|
---|
8934 | ;;
|
---|
8935 |
|
---|
8936 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
|
---|
8937 | case $cc_basename in
|
---|
8938 | # old Intel for x86_64, which still supported -KPIC.
|
---|
8939 | ecc*)
|
---|
8940 | lt_prog_compiler_wl='-Wl,'
|
---|
8941 | lt_prog_compiler_pic='-KPIC'
|
---|
8942 | lt_prog_compiler_static='-static'
|
---|
8943 | ;;
|
---|
8944 | # flang / f18. f95 an alias for gfortran or flang on Debian
|
---|
8945 | flang* | f18* | f95*)
|
---|
8946 | lt_prog_compiler_wl='-Wl,'
|
---|
8947 | lt_prog_compiler_pic='-fPIC'
|
---|
8948 | lt_prog_compiler_static='-static'
|
---|
8949 | ;;
|
---|
8950 | # icc used to be incompatible with GCC.
|
---|
8951 | # ICC 10 doesn't accept -KPIC any more.
|
---|
8952 | icc* | ifort*)
|
---|
8953 | lt_prog_compiler_wl='-Wl,'
|
---|
8954 | lt_prog_compiler_pic='-fPIC'
|
---|
8955 | lt_prog_compiler_static='-static'
|
---|
8956 | ;;
|
---|
8957 | # Lahey Fortran 8.1.
|
---|
8958 | lf95*)
|
---|
8959 | lt_prog_compiler_wl='-Wl,'
|
---|
8960 | lt_prog_compiler_pic='--shared'
|
---|
8961 | lt_prog_compiler_static='--static'
|
---|
8962 | ;;
|
---|
8963 | nagfor*)
|
---|
8964 | # NAG Fortran compiler
|
---|
8965 | lt_prog_compiler_wl='-Wl,-Wl,,'
|
---|
8966 | lt_prog_compiler_pic='-PIC'
|
---|
8967 | lt_prog_compiler_static='-Bstatic'
|
---|
8968 | ;;
|
---|
8969 | tcc*)
|
---|
8970 | # Fabrice Bellard et al's Tiny C Compiler
|
---|
8971 | lt_prog_compiler_wl='-Wl,'
|
---|
8972 | lt_prog_compiler_pic='-fPIC'
|
---|
8973 | lt_prog_compiler_static='-static'
|
---|
8974 | ;;
|
---|
8975 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
|
---|
8976 | # Portland Group compilers (*not* the Pentium gcc compiler,
|
---|
8977 | # which looks to be a dead project)
|
---|
8978 | lt_prog_compiler_wl='-Wl,'
|
---|
8979 | lt_prog_compiler_pic='-fpic'
|
---|
8980 | lt_prog_compiler_static='-Bstatic'
|
---|
8981 | ;;
|
---|
8982 | ccc*)
|
---|
8983 | lt_prog_compiler_wl='-Wl,'
|
---|
8984 | # All Alpha code is PIC.
|
---|
8985 | lt_prog_compiler_static='-non_shared'
|
---|
8986 | ;;
|
---|
8987 | xl* | bgxl* | bgf* | mpixl*)
|
---|
8988 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
|
---|
8989 | lt_prog_compiler_wl='-Wl,'
|
---|
8990 | lt_prog_compiler_pic='-qpic'
|
---|
8991 | lt_prog_compiler_static='-qstaticlink'
|
---|
8992 | ;;
|
---|
8993 | *)
|
---|
8994 | case `$CC -V 2>&1 | sed 5q` in
|
---|
8995 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
|
---|
8996 | # Sun Fortran 8.3 passes all unrecognized flags to the linker
|
---|
8997 | lt_prog_compiler_pic='-KPIC'
|
---|
8998 | lt_prog_compiler_static='-Bstatic'
|
---|
8999 | lt_prog_compiler_wl=''
|
---|
9000 | ;;
|
---|
9001 | *Sun\ F* | *Sun*Fortran*)
|
---|
9002 | lt_prog_compiler_pic='-KPIC'
|
---|
9003 | lt_prog_compiler_static='-Bstatic'
|
---|
9004 | lt_prog_compiler_wl='-Qoption ld '
|
---|
9005 | ;;
|
---|
9006 | *Sun\ C*)
|
---|
9007 | # Sun C 5.9
|
---|
9008 | lt_prog_compiler_pic='-KPIC'
|
---|
9009 | lt_prog_compiler_static='-Bstatic'
|
---|
9010 | lt_prog_compiler_wl='-Wl,'
|
---|
9011 | ;;
|
---|
9012 | *Intel*\ [CF]*Compiler*)
|
---|
9013 | lt_prog_compiler_wl='-Wl,'
|
---|
9014 | lt_prog_compiler_pic='-fPIC'
|
---|
9015 | lt_prog_compiler_static='-static'
|
---|
9016 | ;;
|
---|
9017 | *Portland\ Group*)
|
---|
9018 | lt_prog_compiler_wl='-Wl,'
|
---|
9019 | lt_prog_compiler_pic='-fpic'
|
---|
9020 | lt_prog_compiler_static='-Bstatic'
|
---|
9021 | ;;
|
---|
9022 | esac
|
---|
9023 | ;;
|
---|
9024 | esac
|
---|
9025 | ;;
|
---|
9026 |
|
---|
9027 | newsos6)
|
---|
9028 | lt_prog_compiler_pic='-KPIC'
|
---|
9029 | lt_prog_compiler_static='-Bstatic'
|
---|
9030 | ;;
|
---|
9031 |
|
---|
9032 | *nto* | *qnx*)
|
---|
9033 | # QNX uses GNU C++, but need to define -shared option too, otherwise
|
---|
9034 | # it will coredump.
|
---|
9035 | lt_prog_compiler_pic='-fPIC -shared'
|
---|
9036 | ;;
|
---|
9037 |
|
---|
9038 | osf3* | osf4* | osf5*)
|
---|
9039 | lt_prog_compiler_wl='-Wl,'
|
---|
9040 | # All OSF/1 code is PIC.
|
---|
9041 | lt_prog_compiler_static='-non_shared'
|
---|
9042 | ;;
|
---|
9043 |
|
---|
9044 | rdos*)
|
---|
9045 | lt_prog_compiler_static='-non_shared'
|
---|
9046 | ;;
|
---|
9047 |
|
---|
9048 | solaris*)
|
---|
9049 | lt_prog_compiler_pic='-KPIC'
|
---|
9050 | lt_prog_compiler_static='-Bstatic'
|
---|
9051 | case $cc_basename in
|
---|
9052 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
|
---|
9053 | lt_prog_compiler_wl='-Qoption ld ';;
|
---|
9054 | *)
|
---|
9055 | lt_prog_compiler_wl='-Wl,';;
|
---|
9056 | esac
|
---|
9057 | ;;
|
---|
9058 |
|
---|
9059 | sunos4*)
|
---|
9060 | lt_prog_compiler_wl='-Qoption ld '
|
---|
9061 | lt_prog_compiler_pic='-PIC'
|
---|
9062 | lt_prog_compiler_static='-Bstatic'
|
---|
9063 | ;;
|
---|
9064 |
|
---|
9065 | sysv4 | sysv4.2uw2* | sysv4.3*)
|
---|
9066 | lt_prog_compiler_wl='-Wl,'
|
---|
9067 | lt_prog_compiler_pic='-KPIC'
|
---|
9068 | lt_prog_compiler_static='-Bstatic'
|
---|
9069 | ;;
|
---|
9070 |
|
---|
9071 | sysv4*MP*)
|
---|
9072 | if test -d /usr/nec; then
|
---|
9073 | lt_prog_compiler_pic='-Kconform_pic'
|
---|
9074 | lt_prog_compiler_static='-Bstatic'
|
---|
9075 | fi
|
---|
9076 | ;;
|
---|
9077 |
|
---|
9078 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
---|
9079 | lt_prog_compiler_wl='-Wl,'
|
---|
9080 | lt_prog_compiler_pic='-KPIC'
|
---|
9081 | lt_prog_compiler_static='-Bstatic'
|
---|
9082 | ;;
|
---|
9083 |
|
---|
9084 | unicos*)
|
---|
9085 | lt_prog_compiler_wl='-Wl,'
|
---|
9086 | lt_prog_compiler_can_build_shared=no
|
---|
9087 | ;;
|
---|
9088 |
|
---|
9089 | uts4*)
|
---|
9090 | lt_prog_compiler_pic='-pic'
|
---|
9091 | lt_prog_compiler_static='-Bstatic'
|
---|
9092 | ;;
|
---|
9093 |
|
---|
9094 | *)
|
---|
9095 | lt_prog_compiler_can_build_shared=no
|
---|
9096 | ;;
|
---|
9097 | esac
|
---|
9098 | fi
|
---|
9099 |
|
---|
9100 | case $host_os in
|
---|
9101 | # For platforms that do not support PIC, -DPIC is meaningless:
|
---|
9102 | *djgpp*)
|
---|
9103 | lt_prog_compiler_pic=
|
---|
9104 | ;;
|
---|
9105 | *)
|
---|
9106 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
|
---|
9107 | ;;
|
---|
9108 | esac
|
---|
9109 |
|
---|
9110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
|
---|
9111 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
---|
9112 | if ${lt_cv_prog_compiler_pic+:} false; then :
|
---|
9113 | $as_echo_n "(cached) " >&6
|
---|
9114 | else
|
---|
9115 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
|
---|
9116 | fi
|
---|
9117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
|
---|
9118 | $as_echo "$lt_cv_prog_compiler_pic" >&6; }
|
---|
9119 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
|
---|
9120 |
|
---|
9121 | #
|
---|
9122 | # Check to make sure the PIC flag actually works.
|
---|
9123 | #
|
---|
9124 | if test -n "$lt_prog_compiler_pic"; then
|
---|
9125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
|
---|
9126 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
|
---|
9127 | if ${lt_cv_prog_compiler_pic_works+:} false; then :
|
---|
9128 | $as_echo_n "(cached) " >&6
|
---|
9129 | else
|
---|
9130 | lt_cv_prog_compiler_pic_works=no
|
---|
9131 | ac_outfile=conftest.$ac_objext
|
---|
9132 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
---|
9133 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
|
---|
9134 | # Insert the option either (1) after the last *FLAGS variable, or
|
---|
9135 | # (2) before a word containing "conftest.", or (3) at the end.
|
---|
9136 | # Note that $ac_compile itself does not contain backslashes and begins
|
---|
9137 | # with a dollar sign (not a hyphen), so the echo should work correctly.
|
---|
9138 | # The option is referenced via a variable to avoid confusing sed.
|
---|
9139 | lt_compile=`echo "$ac_compile" | $SED \
|
---|
9140 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
---|
9141 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
---|
9142 | -e 's:$: $lt_compiler_flag:'`
|
---|
9143 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
|
---|
9144 | (eval "$lt_compile" 2>conftest.err)
|
---|
9145 | ac_status=$?
|
---|
9146 | cat conftest.err >&5
|
---|
9147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9148 | if (exit $ac_status) && test -s "$ac_outfile"; then
|
---|
9149 | # The compiler can only warn and ignore the option if not recognized
|
---|
9150 | # So say no if there are warnings other than the usual output.
|
---|
9151 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
|
---|
9152 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
---|
9153 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
---|
9154 | lt_cv_prog_compiler_pic_works=yes
|
---|
9155 | fi
|
---|
9156 | fi
|
---|
9157 | $RM conftest*
|
---|
9158 |
|
---|
9159 | fi
|
---|
9160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
|
---|
9161 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
|
---|
9162 |
|
---|
9163 | if test yes = "$lt_cv_prog_compiler_pic_works"; then
|
---|
9164 | case $lt_prog_compiler_pic in
|
---|
9165 | "" | " "*) ;;
|
---|
9166 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
|
---|
9167 | esac
|
---|
9168 | else
|
---|
9169 | lt_prog_compiler_pic=
|
---|
9170 | lt_prog_compiler_can_build_shared=no
|
---|
9171 | fi
|
---|
9172 |
|
---|
9173 | fi
|
---|
9174 |
|
---|
9175 |
|
---|
9176 |
|
---|
9177 |
|
---|
9178 |
|
---|
9179 |
|
---|
9180 |
|
---|
9181 |
|
---|
9182 |
|
---|
9183 |
|
---|
9184 |
|
---|
9185 | #
|
---|
9186 | # Check to make sure the static flag actually works.
|
---|
9187 | #
|
---|
9188 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
|
---|
9189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
|
---|
9190 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
|
---|
9191 | if ${lt_cv_prog_compiler_static_works+:} false; then :
|
---|
9192 | $as_echo_n "(cached) " >&6
|
---|
9193 | else
|
---|
9194 | lt_cv_prog_compiler_static_works=no
|
---|
9195 | save_LDFLAGS=$LDFLAGS
|
---|
9196 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
|
---|
9197 | echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
---|
9198 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
---|
9199 | # The linker can only warn and ignore the option if not recognized
|
---|
9200 | # So say no if there are warnings
|
---|
9201 | if test -s conftest.err; then
|
---|
9202 | # Append any errors to the config.log.
|
---|
9203 | cat conftest.err 1>&5
|
---|
9204 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
|
---|
9205 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
---|
9206 | if diff conftest.exp conftest.er2 >/dev/null; then
|
---|
9207 | lt_cv_prog_compiler_static_works=yes
|
---|
9208 | fi
|
---|
9209 | else
|
---|
9210 | lt_cv_prog_compiler_static_works=yes
|
---|
9211 | fi
|
---|
9212 | fi
|
---|
9213 | $RM -r conftest*
|
---|
9214 | LDFLAGS=$save_LDFLAGS
|
---|
9215 |
|
---|
9216 | fi
|
---|
9217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
|
---|
9218 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
|
---|
9219 |
|
---|
9220 | if test yes = "$lt_cv_prog_compiler_static_works"; then
|
---|
9221 | :
|
---|
9222 | else
|
---|
9223 | lt_prog_compiler_static=
|
---|
9224 | fi
|
---|
9225 |
|
---|
9226 |
|
---|
9227 |
|
---|
9228 |
|
---|
9229 |
|
---|
9230 |
|
---|
9231 |
|
---|
9232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
|
---|
9233 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
|
---|
9234 | if ${lt_cv_prog_compiler_c_o+:} false; then :
|
---|
9235 | $as_echo_n "(cached) " >&6
|
---|
9236 | else
|
---|
9237 | lt_cv_prog_compiler_c_o=no
|
---|
9238 | $RM -r conftest 2>/dev/null
|
---|
9239 | mkdir conftest
|
---|
9240 | cd conftest
|
---|
9241 | mkdir out
|
---|
9242 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
---|
9243 |
|
---|
9244 | lt_compiler_flag="-o out/conftest2.$ac_objext"
|
---|
9245 | # Insert the option either (1) after the last *FLAGS variable, or
|
---|
9246 | # (2) before a word containing "conftest.", or (3) at the end.
|
---|
9247 | # Note that $ac_compile itself does not contain backslashes and begins
|
---|
9248 | # with a dollar sign (not a hyphen), so the echo should work correctly.
|
---|
9249 | lt_compile=`echo "$ac_compile" | $SED \
|
---|
9250 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
---|
9251 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
---|
9252 | -e 's:$: $lt_compiler_flag:'`
|
---|
9253 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
|
---|
9254 | (eval "$lt_compile" 2>out/conftest.err)
|
---|
9255 | ac_status=$?
|
---|
9256 | cat out/conftest.err >&5
|
---|
9257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9258 | if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
---|
9259 | then
|
---|
9260 | # The compiler can only warn and ignore the option if not recognized
|
---|
9261 | # So say no if there are warnings
|
---|
9262 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
|
---|
9263 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
---|
9264 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
---|
9265 | lt_cv_prog_compiler_c_o=yes
|
---|
9266 | fi
|
---|
9267 | fi
|
---|
9268 | chmod u+w . 2>&5
|
---|
9269 | $RM conftest*
|
---|
9270 | # SGI C++ compiler will create directory out/ii_files/ for
|
---|
9271 | # template instantiation
|
---|
9272 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
|
---|
9273 | $RM out/* && rmdir out
|
---|
9274 | cd ..
|
---|
9275 | $RM -r conftest
|
---|
9276 | $RM conftest*
|
---|
9277 |
|
---|
9278 | fi
|
---|
9279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
|
---|
9280 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
|
---|
9281 |
|
---|
9282 |
|
---|
9283 |
|
---|
9284 |
|
---|
9285 |
|
---|
9286 |
|
---|
9287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
|
---|
9288 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
|
---|
9289 | if ${lt_cv_prog_compiler_c_o+:} false; then :
|
---|
9290 | $as_echo_n "(cached) " >&6
|
---|
9291 | else
|
---|
9292 | lt_cv_prog_compiler_c_o=no
|
---|
9293 | $RM -r conftest 2>/dev/null
|
---|
9294 | mkdir conftest
|
---|
9295 | cd conftest
|
---|
9296 | mkdir out
|
---|
9297 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
---|
9298 |
|
---|
9299 | lt_compiler_flag="-o out/conftest2.$ac_objext"
|
---|
9300 | # Insert the option either (1) after the last *FLAGS variable, or
|
---|
9301 | # (2) before a word containing "conftest.", or (3) at the end.
|
---|
9302 | # Note that $ac_compile itself does not contain backslashes and begins
|
---|
9303 | # with a dollar sign (not a hyphen), so the echo should work correctly.
|
---|
9304 | lt_compile=`echo "$ac_compile" | $SED \
|
---|
9305 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
---|
9306 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
---|
9307 | -e 's:$: $lt_compiler_flag:'`
|
---|
9308 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
|
---|
9309 | (eval "$lt_compile" 2>out/conftest.err)
|
---|
9310 | ac_status=$?
|
---|
9311 | cat out/conftest.err >&5
|
---|
9312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9313 | if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
---|
9314 | then
|
---|
9315 | # The compiler can only warn and ignore the option if not recognized
|
---|
9316 | # So say no if there are warnings
|
---|
9317 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
|
---|
9318 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
---|
9319 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
---|
9320 | lt_cv_prog_compiler_c_o=yes
|
---|
9321 | fi
|
---|
9322 | fi
|
---|
9323 | chmod u+w . 2>&5
|
---|
9324 | $RM conftest*
|
---|
9325 | # SGI C++ compiler will create directory out/ii_files/ for
|
---|
9326 | # template instantiation
|
---|
9327 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
|
---|
9328 | $RM out/* && rmdir out
|
---|
9329 | cd ..
|
---|
9330 | $RM -r conftest
|
---|
9331 | $RM conftest*
|
---|
9332 |
|
---|
9333 | fi
|
---|
9334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
|
---|
9335 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
|
---|
9336 |
|
---|
9337 |
|
---|
9338 |
|
---|
9339 |
|
---|
9340 | hard_links=nottested
|
---|
9341 | if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
|
---|
9342 | # do not overwrite the value of need_locks provided by the user
|
---|
9343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
|
---|
9344 | $as_echo_n "checking if we can lock with hard links... " >&6; }
|
---|
9345 | hard_links=yes
|
---|
9346 | $RM conftest*
|
---|
9347 | ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
---|
9348 | touch conftest.a
|
---|
9349 | ln conftest.a conftest.b 2>&5 || hard_links=no
|
---|
9350 | ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
---|
9351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
|
---|
9352 | $as_echo "$hard_links" >&6; }
|
---|
9353 | if test no = "$hard_links"; then
|
---|
9354 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
|
---|
9355 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
|
---|
9356 | need_locks=warn
|
---|
9357 | fi
|
---|
9358 | else
|
---|
9359 | need_locks=no
|
---|
9360 | fi
|
---|
9361 |
|
---|
9362 |
|
---|
9363 |
|
---|
9364 |
|
---|
9365 |
|
---|
9366 |
|
---|
9367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
|
---|
9368 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
|
---|
9369 |
|
---|
9370 | runpath_var=
|
---|
9371 | allow_undefined_flag=
|
---|
9372 | always_export_symbols=no
|
---|
9373 | archive_cmds=
|
---|
9374 | archive_expsym_cmds=
|
---|
9375 | compiler_needs_object=no
|
---|
9376 | enable_shared_with_static_runtimes=no
|
---|
9377 | export_dynamic_flag_spec=
|
---|
9378 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
---|
9379 | hardcode_automatic=no
|
---|
9380 | hardcode_direct=no
|
---|
9381 | hardcode_direct_absolute=no
|
---|
9382 | hardcode_libdir_flag_spec=
|
---|
9383 | hardcode_libdir_separator=
|
---|
9384 | hardcode_minus_L=no
|
---|
9385 | hardcode_shlibpath_var=unsupported
|
---|
9386 | inherit_rpath=no
|
---|
9387 | link_all_deplibs=unknown
|
---|
9388 | module_cmds=
|
---|
9389 | module_expsym_cmds=
|
---|
9390 | old_archive_from_new_cmds=
|
---|
9391 | old_archive_from_expsyms_cmds=
|
---|
9392 | thread_safe_flag_spec=
|
---|
9393 | whole_archive_flag_spec=
|
---|
9394 | # include_expsyms should be a list of space-separated symbols to be *always*
|
---|
9395 | # included in the symbol list
|
---|
9396 | include_expsyms=
|
---|
9397 | # exclude_expsyms can be an extended regexp of symbols to exclude
|
---|
9398 | # it will be wrapped by ' (' and ')$', so one must not match beginning or
|
---|
9399 | # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
|
---|
9400 | # as well as any symbol that contains 'd'.
|
---|
9401 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
|
---|
9402 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
|
---|
9403 | # platforms (ab)use it in PIC code, but their linkers get confused if
|
---|
9404 | # the symbol is explicitly referenced. Since portable code cannot
|
---|
9405 | # rely on this symbol name, it's probably fine to never include it in
|
---|
9406 | # preloaded symbol tables.
|
---|
9407 | # Exclude shared library initialization/finalization symbols.
|
---|
9408 | extract_expsyms_cmds=
|
---|
9409 |
|
---|
9410 | case $host_os in
|
---|
9411 | cygwin* | mingw* | pw32* | cegcc*)
|
---|
9412 | # FIXME: the MSVC++ port hasn't been tested in a loooong time
|
---|
9413 | # When not using gcc, we currently assume that we are using
|
---|
9414 | # Microsoft Visual C++.
|
---|
9415 | if test yes != "$GCC"; then
|
---|
9416 | with_gnu_ld=no
|
---|
9417 | fi
|
---|
9418 | ;;
|
---|
9419 | interix*)
|
---|
9420 | # we just hope/assume this is gcc and not c89 (= MSVC++)
|
---|
9421 | with_gnu_ld=yes
|
---|
9422 | ;;
|
---|
9423 | openbsd* | bitrig*)
|
---|
9424 | with_gnu_ld=no
|
---|
9425 | ;;
|
---|
9426 | linux* | k*bsd*-gnu | gnu*)
|
---|
9427 | link_all_deplibs=no
|
---|
9428 | ;;
|
---|
9429 | esac
|
---|
9430 |
|
---|
9431 | ld_shlibs=yes
|
---|
9432 |
|
---|
9433 | # On some targets, GNU ld is compatible enough with the native linker
|
---|
9434 | # that we're better off using the native interface for both.
|
---|
9435 | lt_use_gnu_ld_interface=no
|
---|
9436 | if test yes = "$with_gnu_ld"; then
|
---|
9437 | case $host_os in
|
---|
9438 | aix*)
|
---|
9439 | # The AIX port of GNU ld has always aspired to compatibility
|
---|
9440 | # with the native linker. However, as the warning in the GNU ld
|
---|
9441 | # block says, versions before 2.19.5* couldn't really create working
|
---|
9442 | # shared libraries, regardless of the interface used.
|
---|
9443 | case `$LD -v 2>&1` in
|
---|
9444 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
|
---|
9445 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
|
---|
9446 | *\ \(GNU\ Binutils\)\ [3-9]*) ;;
|
---|
9447 | *)
|
---|
9448 | lt_use_gnu_ld_interface=yes
|
---|
9449 | ;;
|
---|
9450 | esac
|
---|
9451 | ;;
|
---|
9452 | *)
|
---|
9453 | lt_use_gnu_ld_interface=yes
|
---|
9454 | ;;
|
---|
9455 | esac
|
---|
9456 | fi
|
---|
9457 |
|
---|
9458 | if test yes = "$lt_use_gnu_ld_interface"; then
|
---|
9459 | # If archive_cmds runs LD, not CC, wlarc should be empty
|
---|
9460 | wlarc='$wl'
|
---|
9461 |
|
---|
9462 | # Set some defaults for GNU ld with shared library support. These
|
---|
9463 | # are reset later if shared libraries are not supported. Putting them
|
---|
9464 | # here allows them to be overridden if necessary.
|
---|
9465 | runpath_var=LD_RUN_PATH
|
---|
9466 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
---|
9467 | export_dynamic_flag_spec='$wl--export-dynamic'
|
---|
9468 | # ancient GNU ld didn't support --whole-archive et. al.
|
---|
9469 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
|
---|
9470 | whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
|
---|
9471 | else
|
---|
9472 | whole_archive_flag_spec=
|
---|
9473 | fi
|
---|
9474 | supports_anon_versioning=no
|
---|
9475 | case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
|
---|
9476 | *GNU\ gold*) supports_anon_versioning=yes ;;
|
---|
9477 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
|
---|
9478 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
|
---|
9479 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
|
---|
9480 | *\ 2.11.*) ;; # other 2.11 versions
|
---|
9481 | *) supports_anon_versioning=yes ;;
|
---|
9482 | esac
|
---|
9483 |
|
---|
9484 | # See if GNU ld supports shared libraries.
|
---|
9485 | case $host_os in
|
---|
9486 | aix[3-9]*)
|
---|
9487 | # On AIX/PPC, the GNU linker is very broken
|
---|
9488 | if test ia64 != "$host_cpu"; then
|
---|
9489 | ld_shlibs=no
|
---|
9490 | cat <<_LT_EOF 1>&2
|
---|
9491 |
|
---|
9492 | *** Warning: the GNU linker, at least up to release 2.19, is reported
|
---|
9493 | *** to be unable to reliably create shared libraries on AIX.
|
---|
9494 | *** Therefore, libtool is disabling shared libraries support. If you
|
---|
9495 | *** really care for shared libraries, you may want to install binutils
|
---|
9496 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
|
---|
9497 | *** You will then need to restart the configuration process.
|
---|
9498 |
|
---|
9499 | _LT_EOF
|
---|
9500 | fi
|
---|
9501 | ;;
|
---|
9502 |
|
---|
9503 | amigaos*)
|
---|
9504 | case $host_cpu in
|
---|
9505 | powerpc)
|
---|
9506 | # see comment about AmigaOS4 .so support
|
---|
9507 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
9508 | archive_expsym_cmds=''
|
---|
9509 | ;;
|
---|
9510 | m68k)
|
---|
9511 | 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)'
|
---|
9512 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
9513 | hardcode_minus_L=yes
|
---|
9514 | ;;
|
---|
9515 | esac
|
---|
9516 | ;;
|
---|
9517 |
|
---|
9518 | beos*)
|
---|
9519 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
---|
9520 | allow_undefined_flag=unsupported
|
---|
9521 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
|
---|
9522 | # support --undefined. This deserves some investigation. FIXME
|
---|
9523 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
9524 | else
|
---|
9525 | ld_shlibs=no
|
---|
9526 | fi
|
---|
9527 | ;;
|
---|
9528 |
|
---|
9529 | cygwin* | mingw* | pw32* | cegcc*)
|
---|
9530 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
|
---|
9531 | # as there is no search path for DLLs.
|
---|
9532 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
9533 | export_dynamic_flag_spec='$wl--export-all-symbols'
|
---|
9534 | allow_undefined_flag=unsupported
|
---|
9535 | always_export_symbols=no
|
---|
9536 | enable_shared_with_static_runtimes=yes
|
---|
9537 | 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'
|
---|
9538 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
|
---|
9539 |
|
---|
9540 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
---|
9541 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
---|
9542 | # If the export-symbols file already is a .def file, use it as
|
---|
9543 | # is; otherwise, prepend EXPORTS...
|
---|
9544 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
|
---|
9545 | cp $export_symbols $output_objdir/$soname.def;
|
---|
9546 | else
|
---|
9547 | echo EXPORTS > $output_objdir/$soname.def;
|
---|
9548 | cat $export_symbols >> $output_objdir/$soname.def;
|
---|
9549 | fi~
|
---|
9550 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
---|
9551 | else
|
---|
9552 | ld_shlibs=no
|
---|
9553 | fi
|
---|
9554 | ;;
|
---|
9555 |
|
---|
9556 | haiku*)
|
---|
9557 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
9558 | link_all_deplibs=yes
|
---|
9559 | ;;
|
---|
9560 |
|
---|
9561 | os2*)
|
---|
9562 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
9563 | hardcode_minus_L=yes
|
---|
9564 | allow_undefined_flag=unsupported
|
---|
9565 | shrext_cmds=.dll
|
---|
9566 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
|
---|
9567 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
|
---|
9568 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
|
---|
9569 | $ECHO EXPORTS >> $output_objdir/$libname.def~
|
---|
9570 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
|
---|
9571 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
|
---|
9572 | emximp -o $lib $output_objdir/$libname.def'
|
---|
9573 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
|
---|
9574 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
|
---|
9575 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
|
---|
9576 | $ECHO EXPORTS >> $output_objdir/$libname.def~
|
---|
9577 | prefix_cmds="$SED"~
|
---|
9578 | if test EXPORTS = "`$SED 1q $export_symbols`"; then
|
---|
9579 | prefix_cmds="$prefix_cmds -e 1d";
|
---|
9580 | fi~
|
---|
9581 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
|
---|
9582 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
|
---|
9583 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
|
---|
9584 | emximp -o $lib $output_objdir/$libname.def'
|
---|
9585 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
|
---|
9586 | enable_shared_with_static_runtimes=yes
|
---|
9587 | ;;
|
---|
9588 |
|
---|
9589 | interix[3-9]*)
|
---|
9590 | hardcode_direct=no
|
---|
9591 | hardcode_shlibpath_var=no
|
---|
9592 | hardcode_libdir_flag_spec='$wl-rpath,$libdir'
|
---|
9593 | export_dynamic_flag_spec='$wl-E'
|
---|
9594 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
---|
9595 | # Instead, shared libraries are loaded at an image base (0x10000000 by
|
---|
9596 | # default) and relocated if they conflict, which is a slow very memory
|
---|
9597 | # consuming and fragmenting process. To avoid this, we pick a random,
|
---|
9598 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
---|
9599 | # time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
---|
9600 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
---|
9601 | 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'
|
---|
9602 | ;;
|
---|
9603 |
|
---|
9604 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
|
---|
9605 | tmp_diet=no
|
---|
9606 | if test linux-dietlibc = "$host_os"; then
|
---|
9607 | case $cc_basename in
|
---|
9608 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
|
---|
9609 | esac
|
---|
9610 | fi
|
---|
9611 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
|
---|
9612 | && test no = "$tmp_diet"
|
---|
9613 | then
|
---|
9614 | tmp_addflag=' $pic_flag'
|
---|
9615 | tmp_sharedflag='-shared'
|
---|
9616 | case $cc_basename,$host_cpu in
|
---|
9617 | pgcc*) # Portland Group C compiler
|
---|
9618 | 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'
|
---|
9619 | tmp_addflag=' $pic_flag'
|
---|
9620 | ;;
|
---|
9621 | pgf77* | pgf90* | pgf95* | pgfortran*)
|
---|
9622 | # Portland Group f77 and f90 compilers
|
---|
9623 | 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'
|
---|
9624 | tmp_addflag=' $pic_flag -Mnomain' ;;
|
---|
9625 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
|
---|
9626 | tmp_addflag=' -i_dynamic' ;;
|
---|
9627 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
|
---|
9628 | tmp_addflag=' -i_dynamic -nofor_main' ;;
|
---|
9629 | ifc* | ifort*) # Intel Fortran compiler
|
---|
9630 | tmp_addflag=' -nofor_main' ;;
|
---|
9631 | lf95*) # Lahey Fortran 8.1
|
---|
9632 | whole_archive_flag_spec=
|
---|
9633 | tmp_sharedflag='--shared' ;;
|
---|
9634 | nagfor*) # NAGFOR 5.3
|
---|
9635 | tmp_sharedflag='-Wl,-shared' ;;
|
---|
9636 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
|
---|
9637 | tmp_sharedflag='-qmkshrobj'
|
---|
9638 | tmp_addflag= ;;
|
---|
9639 | nvcc*) # Cuda Compiler Driver 2.2
|
---|
9640 | 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'
|
---|
9641 | compiler_needs_object=yes
|
---|
9642 | ;;
|
---|
9643 | esac
|
---|
9644 | case `$CC -V 2>&1 | sed 5q` in
|
---|
9645 | *Sun\ C*) # Sun C 5.9
|
---|
9646 | 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'
|
---|
9647 | compiler_needs_object=yes
|
---|
9648 | tmp_sharedflag='-G' ;;
|
---|
9649 | *Sun\ F*) # Sun Fortran 8.3
|
---|
9650 | tmp_sharedflag='-G' ;;
|
---|
9651 | esac
|
---|
9652 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
9653 |
|
---|
9654 | if test yes = "$supports_anon_versioning"; then
|
---|
9655 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
|
---|
9656 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
---|
9657 | echo "local: *; };" >> $output_objdir/$libname.ver~
|
---|
9658 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
|
---|
9659 | fi
|
---|
9660 |
|
---|
9661 | case $cc_basename in
|
---|
9662 | tcc*)
|
---|
9663 | export_dynamic_flag_spec='-rdynamic'
|
---|
9664 | ;;
|
---|
9665 | xlf* | bgf* | bgxlf* | mpixlf*)
|
---|
9666 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
|
---|
9667 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
|
---|
9668 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
---|
9669 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
|
---|
9670 | if test yes = "$supports_anon_versioning"; then
|
---|
9671 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
|
---|
9672 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
---|
9673 | echo "local: *; };" >> $output_objdir/$libname.ver~
|
---|
9674 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
---|
9675 | fi
|
---|
9676 | ;;
|
---|
9677 | esac
|
---|
9678 | else
|
---|
9679 | ld_shlibs=no
|
---|
9680 | fi
|
---|
9681 | ;;
|
---|
9682 |
|
---|
9683 | netbsd* | netbsdelf*-gnu)
|
---|
9684 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
---|
9685 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
---|
9686 | wlarc=
|
---|
9687 | else
|
---|
9688 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
9689 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
|
---|
9690 | fi
|
---|
9691 | ;;
|
---|
9692 |
|
---|
9693 | solaris*)
|
---|
9694 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
|
---|
9695 | ld_shlibs=no
|
---|
9696 | cat <<_LT_EOF 1>&2
|
---|
9697 |
|
---|
9698 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably
|
---|
9699 | *** create shared libraries on Solaris systems. Therefore, libtool
|
---|
9700 | *** is disabling shared libraries support. We urge you to upgrade GNU
|
---|
9701 | *** binutils to release 2.9.1 or newer. Another option is to modify
|
---|
9702 | *** your PATH or compiler configuration so that the native linker is
|
---|
9703 | *** used, and then restart.
|
---|
9704 |
|
---|
9705 | _LT_EOF
|
---|
9706 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
---|
9707 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
9708 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
|
---|
9709 | else
|
---|
9710 | ld_shlibs=no
|
---|
9711 | fi
|
---|
9712 | ;;
|
---|
9713 |
|
---|
9714 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
|
---|
9715 | case `$LD -v 2>&1` in
|
---|
9716 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
|
---|
9717 | ld_shlibs=no
|
---|
9718 | cat <<_LT_EOF 1>&2
|
---|
9719 |
|
---|
9720 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
|
---|
9721 | *** reliably create shared libraries on SCO systems. Therefore, libtool
|
---|
9722 | *** is disabling shared libraries support. We urge you to upgrade GNU
|
---|
9723 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
|
---|
9724 | *** your PATH or compiler configuration so that the native linker is
|
---|
9725 | *** used, and then restart.
|
---|
9726 |
|
---|
9727 | _LT_EOF
|
---|
9728 | ;;
|
---|
9729 | *)
|
---|
9730 | # For security reasons, it is highly recommended that you always
|
---|
9731 | # use absolute paths for naming shared libraries, and exclude the
|
---|
9732 | # DT_RUNPATH tag from executables and libraries. But doing so
|
---|
9733 | # requires that you compile everything twice, which is a pain.
|
---|
9734 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
---|
9735 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
---|
9736 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
9737 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
|
---|
9738 | else
|
---|
9739 | ld_shlibs=no
|
---|
9740 | fi
|
---|
9741 | ;;
|
---|
9742 | esac
|
---|
9743 | ;;
|
---|
9744 |
|
---|
9745 | sunos4*)
|
---|
9746 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
---|
9747 | wlarc=
|
---|
9748 | hardcode_direct=yes
|
---|
9749 | hardcode_shlibpath_var=no
|
---|
9750 | ;;
|
---|
9751 |
|
---|
9752 | *)
|
---|
9753 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
---|
9754 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
9755 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
|
---|
9756 | else
|
---|
9757 | ld_shlibs=no
|
---|
9758 | fi
|
---|
9759 | ;;
|
---|
9760 | esac
|
---|
9761 |
|
---|
9762 | if test no = "$ld_shlibs"; then
|
---|
9763 | runpath_var=
|
---|
9764 | hardcode_libdir_flag_spec=
|
---|
9765 | export_dynamic_flag_spec=
|
---|
9766 | whole_archive_flag_spec=
|
---|
9767 | fi
|
---|
9768 | else
|
---|
9769 | # PORTME fill in a description of your system's linker (not GNU ld)
|
---|
9770 | case $host_os in
|
---|
9771 | aix3*)
|
---|
9772 | allow_undefined_flag=unsupported
|
---|
9773 | always_export_symbols=yes
|
---|
9774 | 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'
|
---|
9775 | # Note: this linker hardcodes the directories in LIBPATH if there
|
---|
9776 | # are no directories specified by -L.
|
---|
9777 | hardcode_minus_L=yes
|
---|
9778 | if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
|
---|
9779 | # Neither direct hardcoding nor static linking is supported with a
|
---|
9780 | # broken collect2.
|
---|
9781 | hardcode_direct=unsupported
|
---|
9782 | fi
|
---|
9783 | ;;
|
---|
9784 |
|
---|
9785 | aix[4-9]*)
|
---|
9786 | if test ia64 = "$host_cpu"; then
|
---|
9787 | # On IA64, the linker does run time linking by default, so we don't
|
---|
9788 | # have to do anything special.
|
---|
9789 | aix_use_runtimelinking=no
|
---|
9790 | exp_sym_flag='-Bexport'
|
---|
9791 | no_entry_flag=
|
---|
9792 | else
|
---|
9793 | # If we're using GNU nm, then we don't want the "-C" option.
|
---|
9794 | # -C means demangle to GNU nm, but means don't demangle to AIX nm.
|
---|
9795 | # Without the "-l" option, or with the "-B" option, AIX nm treats
|
---|
9796 | # weak defined symbols like other global defined symbols, whereas
|
---|
9797 | # GNU nm marks them as "W".
|
---|
9798 | # While the 'weak' keyword is ignored in the Export File, we need
|
---|
9799 | # it in the Import File for the 'aix-soname' feature, so we have
|
---|
9800 | # to replace the "-B" option with "-P" for AIX nm.
|
---|
9801 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
|
---|
9802 | 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'
|
---|
9803 | else
|
---|
9804 | 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'
|
---|
9805 | fi
|
---|
9806 | aix_use_runtimelinking=no
|
---|
9807 |
|
---|
9808 | # Test if we are trying to use run time linking or normal
|
---|
9809 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
---|
9810 | # have runtime linking enabled, and use it for executables.
|
---|
9811 | # For shared libraries, we enable/disable runtime linking
|
---|
9812 | # depending on the kind of the shared library created -
|
---|
9813 | # when "with_aix_soname,aix_use_runtimelinking" is:
|
---|
9814 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
|
---|
9815 | # "aix,yes" lib.so shared, rtl:yes, for executables
|
---|
9816 | # lib.a static archive
|
---|
9817 | # "both,no" lib.so.V(shr.o) shared, rtl:yes
|
---|
9818 | # lib.a(lib.so.V) shared, rtl:no, for executables
|
---|
9819 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
|
---|
9820 | # lib.a(lib.so.V) shared, rtl:no
|
---|
9821 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
|
---|
9822 | # lib.a static archive
|
---|
9823 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
|
---|
9824 | for ld_flag in $LDFLAGS; do
|
---|
9825 | if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
|
---|
9826 | aix_use_runtimelinking=yes
|
---|
9827 | break
|
---|
9828 | fi
|
---|
9829 | done
|
---|
9830 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
|
---|
9831 | # With aix-soname=svr4, we create the lib.so.V shared archives only,
|
---|
9832 | # so we don't have lib.a shared libs to link our executables.
|
---|
9833 | # We have to force runtime linking in this case.
|
---|
9834 | aix_use_runtimelinking=yes
|
---|
9835 | LDFLAGS="$LDFLAGS -Wl,-brtl"
|
---|
9836 | fi
|
---|
9837 | ;;
|
---|
9838 | esac
|
---|
9839 |
|
---|
9840 | exp_sym_flag='-bexport'
|
---|
9841 | no_entry_flag='-bnoentry'
|
---|
9842 | fi
|
---|
9843 |
|
---|
9844 | # When large executables or shared objects are built, AIX ld can
|
---|
9845 | # have problems creating the table of contents. If linking a library
|
---|
9846 | # or program results in "error TOC overflow" add -mminimal-toc to
|
---|
9847 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
---|
9848 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
---|
9849 |
|
---|
9850 | archive_cmds=''
|
---|
9851 | hardcode_direct=yes
|
---|
9852 | hardcode_direct_absolute=yes
|
---|
9853 | hardcode_libdir_separator=':'
|
---|
9854 | link_all_deplibs=yes
|
---|
9855 | file_list_spec='$wl-f,'
|
---|
9856 | case $with_aix_soname,$aix_use_runtimelinking in
|
---|
9857 | aix,*) ;; # traditional, no import file
|
---|
9858 | svr4,* | *,yes) # use import file
|
---|
9859 | # The Import File defines what to hardcode.
|
---|
9860 | hardcode_direct=no
|
---|
9861 | hardcode_direct_absolute=no
|
---|
9862 | ;;
|
---|
9863 | esac
|
---|
9864 |
|
---|
9865 | if test yes = "$GCC"; then
|
---|
9866 | case $host_os in aix4.[012]|aix4.[012].*)
|
---|
9867 | # We only want to do this on AIX 4.2 and lower, the check
|
---|
9868 | # below for broken collect2 doesn't work under 4.3+
|
---|
9869 | collect2name=`$CC -print-prog-name=collect2`
|
---|
9870 | if test -f "$collect2name" &&
|
---|
9871 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null
|
---|
9872 | then
|
---|
9873 | # We have reworked collect2
|
---|
9874 | :
|
---|
9875 | else
|
---|
9876 | # We have old collect2
|
---|
9877 | hardcode_direct=unsupported
|
---|
9878 | # It fails to find uninstalled libraries when the uninstalled
|
---|
9879 | # path is not listed in the libpath. Setting hardcode_minus_L
|
---|
9880 | # to unsupported forces relinking
|
---|
9881 | hardcode_minus_L=yes
|
---|
9882 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
9883 | hardcode_libdir_separator=
|
---|
9884 | fi
|
---|
9885 | ;;
|
---|
9886 | esac
|
---|
9887 | shared_flag='-shared'
|
---|
9888 | if test yes = "$aix_use_runtimelinking"; then
|
---|
9889 | shared_flag="$shared_flag "'$wl-G'
|
---|
9890 | fi
|
---|
9891 | # Need to ensure runtime linking is disabled for the traditional
|
---|
9892 | # shared library, or the linker may eventually find shared libraries
|
---|
9893 | # /with/ Import File - we do not want to mix them.
|
---|
9894 | shared_flag_aix='-shared'
|
---|
9895 | shared_flag_svr4='-shared $wl-G'
|
---|
9896 | else
|
---|
9897 | # not using gcc
|
---|
9898 | if test ia64 = "$host_cpu"; then
|
---|
9899 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
---|
9900 | # chokes on -Wl,-G. The following line is correct:
|
---|
9901 | shared_flag='-G'
|
---|
9902 | else
|
---|
9903 | if test yes = "$aix_use_runtimelinking"; then
|
---|
9904 | shared_flag='$wl-G'
|
---|
9905 | else
|
---|
9906 | shared_flag='$wl-bM:SRE'
|
---|
9907 | fi
|
---|
9908 | shared_flag_aix='$wl-bM:SRE'
|
---|
9909 | shared_flag_svr4='$wl-G'
|
---|
9910 | fi
|
---|
9911 | fi
|
---|
9912 |
|
---|
9913 | export_dynamic_flag_spec='$wl-bexpall'
|
---|
9914 | # It seems that -bexpall does not export symbols beginning with
|
---|
9915 | # underscore (_), so it is better to generate a list of symbols to export.
|
---|
9916 | always_export_symbols=yes
|
---|
9917 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
|
---|
9918 | # Warning - without using the other runtime loading flags (-brtl),
|
---|
9919 | # -berok will link without error, but may produce a broken library.
|
---|
9920 | allow_undefined_flag='-berok'
|
---|
9921 | # Determine the default libpath from the value encoded in an
|
---|
9922 | # empty executable.
|
---|
9923 | if test set = "${lt_cv_aix_libpath+set}"; then
|
---|
9924 | aix_libpath=$lt_cv_aix_libpath
|
---|
9925 | else
|
---|
9926 | if ${lt_cv_aix_libpath_+:} false; then :
|
---|
9927 | $as_echo_n "(cached) " >&6
|
---|
9928 | else
|
---|
9929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
9930 | /* end confdefs.h. */
|
---|
9931 |
|
---|
9932 | int
|
---|
9933 | main ()
|
---|
9934 | {
|
---|
9935 |
|
---|
9936 | ;
|
---|
9937 | return 0;
|
---|
9938 | }
|
---|
9939 | _ACEOF
|
---|
9940 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
9941 |
|
---|
9942 | lt_aix_libpath_sed='
|
---|
9943 | /Import File Strings/,/^$/ {
|
---|
9944 | /^0/ {
|
---|
9945 | s/^0 *\([^ ]*\) *$/\1/
|
---|
9946 | p
|
---|
9947 | }
|
---|
9948 | }'
|
---|
9949 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
---|
9950 | # Check for a 64-bit object if we didn't find anything.
|
---|
9951 | if test -z "$lt_cv_aix_libpath_"; then
|
---|
9952 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
---|
9953 | fi
|
---|
9954 | fi
|
---|
9955 | rm -f core conftest.err conftest.$ac_objext \
|
---|
9956 | conftest$ac_exeext conftest.$ac_ext
|
---|
9957 | if test -z "$lt_cv_aix_libpath_"; then
|
---|
9958 | lt_cv_aix_libpath_=/usr/lib:/lib
|
---|
9959 | fi
|
---|
9960 |
|
---|
9961 | fi
|
---|
9962 |
|
---|
9963 | aix_libpath=$lt_cv_aix_libpath_
|
---|
9964 | fi
|
---|
9965 |
|
---|
9966 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
|
---|
9967 | 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
|
---|
9968 | else
|
---|
9969 | if test ia64 = "$host_cpu"; then
|
---|
9970 | hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
|
---|
9971 | allow_undefined_flag="-z nodefs"
|
---|
9972 | 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"
|
---|
9973 | else
|
---|
9974 | # Determine the default libpath from the value encoded in an
|
---|
9975 | # empty executable.
|
---|
9976 | if test set = "${lt_cv_aix_libpath+set}"; then
|
---|
9977 | aix_libpath=$lt_cv_aix_libpath
|
---|
9978 | else
|
---|
9979 | if ${lt_cv_aix_libpath_+:} false; then :
|
---|
9980 | $as_echo_n "(cached) " >&6
|
---|
9981 | else
|
---|
9982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
9983 | /* end confdefs.h. */
|
---|
9984 |
|
---|
9985 | int
|
---|
9986 | main ()
|
---|
9987 | {
|
---|
9988 |
|
---|
9989 | ;
|
---|
9990 | return 0;
|
---|
9991 | }
|
---|
9992 | _ACEOF
|
---|
9993 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
9994 |
|
---|
9995 | lt_aix_libpath_sed='
|
---|
9996 | /Import File Strings/,/^$/ {
|
---|
9997 | /^0/ {
|
---|
9998 | s/^0 *\([^ ]*\) *$/\1/
|
---|
9999 | p
|
---|
10000 | }
|
---|
10001 | }'
|
---|
10002 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
---|
10003 | # Check for a 64-bit object if we didn't find anything.
|
---|
10004 | if test -z "$lt_cv_aix_libpath_"; then
|
---|
10005 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
---|
10006 | fi
|
---|
10007 | fi
|
---|
10008 | rm -f core conftest.err conftest.$ac_objext \
|
---|
10009 | conftest$ac_exeext conftest.$ac_ext
|
---|
10010 | if test -z "$lt_cv_aix_libpath_"; then
|
---|
10011 | lt_cv_aix_libpath_=/usr/lib:/lib
|
---|
10012 | fi
|
---|
10013 |
|
---|
10014 | fi
|
---|
10015 |
|
---|
10016 | aix_libpath=$lt_cv_aix_libpath_
|
---|
10017 | fi
|
---|
10018 |
|
---|
10019 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
|
---|
10020 | # Warning - without using the other run time loading flags,
|
---|
10021 | # -berok will link without error, but may produce a broken library.
|
---|
10022 | no_undefined_flag=' $wl-bernotok'
|
---|
10023 | allow_undefined_flag=' $wl-berok'
|
---|
10024 | if test yes = "$with_gnu_ld"; then
|
---|
10025 | # We only use this code for GNU lds that support --whole-archive.
|
---|
10026 | whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
|
---|
10027 | else
|
---|
10028 | # Exported symbols can be pulled into shared objects from archives
|
---|
10029 | whole_archive_flag_spec='$convenience'
|
---|
10030 | fi
|
---|
10031 | archive_cmds_need_lc=yes
|
---|
10032 | archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
|
---|
10033 | # -brtl affects multiple linker settings, -berok does not and is overridden later
|
---|
10034 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
|
---|
10035 | if test svr4 != "$with_aix_soname"; then
|
---|
10036 | # This is similar to how AIX traditionally builds its shared libraries.
|
---|
10037 | 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'
|
---|
10038 | fi
|
---|
10039 | if test aix != "$with_aix_soname"; then
|
---|
10040 | 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'
|
---|
10041 | else
|
---|
10042 | # used by -dlpreopen to get the symbols
|
---|
10043 | archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
|
---|
10044 | fi
|
---|
10045 | archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
|
---|
10046 | fi
|
---|
10047 | fi
|
---|
10048 | ;;
|
---|
10049 |
|
---|
10050 | amigaos*)
|
---|
10051 | case $host_cpu in
|
---|
10052 | powerpc)
|
---|
10053 | # see comment about AmigaOS4 .so support
|
---|
10054 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
10055 | archive_expsym_cmds=''
|
---|
10056 | ;;
|
---|
10057 | m68k)
|
---|
10058 | 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)'
|
---|
10059 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
10060 | hardcode_minus_L=yes
|
---|
10061 | ;;
|
---|
10062 | esac
|
---|
10063 | ;;
|
---|
10064 |
|
---|
10065 | bsdi[45]*)
|
---|
10066 | export_dynamic_flag_spec=-rdynamic
|
---|
10067 | ;;
|
---|
10068 |
|
---|
10069 | cygwin* | mingw* | pw32* | cegcc*)
|
---|
10070 | # When not using gcc, we currently assume that we are using
|
---|
10071 | # Microsoft Visual C++.
|
---|
10072 | # hardcode_libdir_flag_spec is actually meaningless, as there is
|
---|
10073 | # no search path for DLLs.
|
---|
10074 | case $cc_basename in
|
---|
10075 | cl*)
|
---|
10076 | # Native MSVC
|
---|
10077 | hardcode_libdir_flag_spec=' '
|
---|
10078 | allow_undefined_flag=unsupported
|
---|
10079 | always_export_symbols=yes
|
---|
10080 | file_list_spec='@'
|
---|
10081 | # Tell ltmain to make .lib files, not .a files.
|
---|
10082 | libext=lib
|
---|
10083 | # Tell ltmain to make .dll files, not .so files.
|
---|
10084 | shrext_cmds=.dll
|
---|
10085 | # FIXME: Setting linknames here is a bad hack.
|
---|
10086 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
|
---|
10087 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
|
---|
10088 | cp "$export_symbols" "$output_objdir/$soname.def";
|
---|
10089 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
|
---|
10090 | else
|
---|
10091 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
|
---|
10092 | fi~
|
---|
10093 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
|
---|
10094 | linknames='
|
---|
10095 | # The linker will not automatically build a static lib if we build a DLL.
|
---|
10096 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
|
---|
10097 | enable_shared_with_static_runtimes=yes
|
---|
10098 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
|
---|
10099 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
---|
10100 | # Don't use ranlib
|
---|
10101 | old_postinstall_cmds='chmod 644 $oldlib'
|
---|
10102 | postlink_cmds='lt_outputfile="@OUTPUT@"~
|
---|
10103 | lt_tool_outputfile="@TOOL_OUTPUT@"~
|
---|
10104 | case $lt_outputfile in
|
---|
10105 | *.exe|*.EXE) ;;
|
---|
10106 | *)
|
---|
10107 | lt_outputfile=$lt_outputfile.exe
|
---|
10108 | lt_tool_outputfile=$lt_tool_outputfile.exe
|
---|
10109 | ;;
|
---|
10110 | esac~
|
---|
10111 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
|
---|
10112 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
|
---|
10113 | $RM "$lt_outputfile.manifest";
|
---|
10114 | fi'
|
---|
10115 | ;;
|
---|
10116 | *)
|
---|
10117 | # Assume MSVC wrapper
|
---|
10118 | hardcode_libdir_flag_spec=' '
|
---|
10119 | allow_undefined_flag=unsupported
|
---|
10120 | # Tell ltmain to make .lib files, not .a files.
|
---|
10121 | libext=lib
|
---|
10122 | # Tell ltmain to make .dll files, not .so files.
|
---|
10123 | shrext_cmds=.dll
|
---|
10124 | # FIXME: Setting linknames here is a bad hack.
|
---|
10125 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
|
---|
10126 | # The linker will automatically build a .lib file if we build a DLL.
|
---|
10127 | old_archive_from_new_cmds='true'
|
---|
10128 | # FIXME: Should let the user specify the lib program.
|
---|
10129 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
---|
10130 | enable_shared_with_static_runtimes=yes
|
---|
10131 | ;;
|
---|
10132 | esac
|
---|
10133 | ;;
|
---|
10134 |
|
---|
10135 | darwin* | rhapsody*)
|
---|
10136 |
|
---|
10137 |
|
---|
10138 | archive_cmds_need_lc=no
|
---|
10139 | hardcode_direct=no
|
---|
10140 | hardcode_automatic=yes
|
---|
10141 | hardcode_shlibpath_var=unsupported
|
---|
10142 | if test yes = "$lt_cv_ld_force_load"; then
|
---|
10143 | 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\"`'
|
---|
10144 |
|
---|
10145 | else
|
---|
10146 | whole_archive_flag_spec=''
|
---|
10147 | fi
|
---|
10148 | link_all_deplibs=yes
|
---|
10149 | allow_undefined_flag=$_lt_dar_allow_undefined
|
---|
10150 | case $cc_basename in
|
---|
10151 | ifort*|nagfor*) _lt_dar_can_shared=yes ;;
|
---|
10152 | *) _lt_dar_can_shared=$GCC ;;
|
---|
10153 | esac
|
---|
10154 | if test yes = "$_lt_dar_can_shared"; then
|
---|
10155 | output_verbose_link_cmd=func_echo_all
|
---|
10156 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
|
---|
10157 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
|
---|
10158 | 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"
|
---|
10159 | 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"
|
---|
10160 |
|
---|
10161 | else
|
---|
10162 | ld_shlibs=no
|
---|
10163 | fi
|
---|
10164 |
|
---|
10165 | ;;
|
---|
10166 |
|
---|
10167 | dgux*)
|
---|
10168 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
10169 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
10170 | hardcode_shlibpath_var=no
|
---|
10171 | ;;
|
---|
10172 |
|
---|
10173 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
---|
10174 | # support. Future versions do this automatically, but an explicit c++rt0.o
|
---|
10175 | # does not break anything, and helps significantly (at the cost of a little
|
---|
10176 | # extra space).
|
---|
10177 | freebsd2.2*)
|
---|
10178 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
|
---|
10179 | hardcode_libdir_flag_spec='-R$libdir'
|
---|
10180 | hardcode_direct=yes
|
---|
10181 | hardcode_shlibpath_var=no
|
---|
10182 | ;;
|
---|
10183 |
|
---|
10184 | # Unfortunately, older versions of FreeBSD 2 do not have this feature.
|
---|
10185 | freebsd2.*)
|
---|
10186 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
---|
10187 | hardcode_direct=yes
|
---|
10188 | hardcode_minus_L=yes
|
---|
10189 | hardcode_shlibpath_var=no
|
---|
10190 | ;;
|
---|
10191 |
|
---|
10192 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
---|
10193 | freebsd* | dragonfly*)
|
---|
10194 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
---|
10195 | hardcode_libdir_flag_spec='-R$libdir'
|
---|
10196 | hardcode_direct=yes
|
---|
10197 | hardcode_shlibpath_var=no
|
---|
10198 | ;;
|
---|
10199 |
|
---|
10200 | hpux9*)
|
---|
10201 | if test yes = "$GCC"; then
|
---|
10202 | 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'
|
---|
10203 | else
|
---|
10204 | 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'
|
---|
10205 | fi
|
---|
10206 | hardcode_libdir_flag_spec='$wl+b $wl$libdir'
|
---|
10207 | hardcode_libdir_separator=:
|
---|
10208 | hardcode_direct=yes
|
---|
10209 |
|
---|
10210 | # hardcode_minus_L: Not really in the search PATH,
|
---|
10211 | # but as the default location of the library.
|
---|
10212 | hardcode_minus_L=yes
|
---|
10213 | export_dynamic_flag_spec='$wl-E'
|
---|
10214 | ;;
|
---|
10215 |
|
---|
10216 | hpux10*)
|
---|
10217 | if test yes,no = "$GCC,$with_gnu_ld"; then
|
---|
10218 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
---|
10219 | else
|
---|
10220 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
---|
10221 | fi
|
---|
10222 | if test no = "$with_gnu_ld"; then
|
---|
10223 | hardcode_libdir_flag_spec='$wl+b $wl$libdir'
|
---|
10224 | hardcode_libdir_separator=:
|
---|
10225 | hardcode_direct=yes
|
---|
10226 | hardcode_direct_absolute=yes
|
---|
10227 | export_dynamic_flag_spec='$wl-E'
|
---|
10228 | # hardcode_minus_L: Not really in the search PATH,
|
---|
10229 | # but as the default location of the library.
|
---|
10230 | hardcode_minus_L=yes
|
---|
10231 | fi
|
---|
10232 | ;;
|
---|
10233 |
|
---|
10234 | hpux11*)
|
---|
10235 | if test yes,no = "$GCC,$with_gnu_ld"; then
|
---|
10236 | case $host_cpu in
|
---|
10237 | hppa*64*)
|
---|
10238 | archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
10239 | ;;
|
---|
10240 | ia64*)
|
---|
10241 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
---|
10242 | ;;
|
---|
10243 | *)
|
---|
10244 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
---|
10245 | ;;
|
---|
10246 | esac
|
---|
10247 | else
|
---|
10248 | case $host_cpu in
|
---|
10249 | hppa*64*)
|
---|
10250 | archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
10251 | ;;
|
---|
10252 | ia64*)
|
---|
10253 | archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
---|
10254 | ;;
|
---|
10255 | *)
|
---|
10256 |
|
---|
10257 | # Older versions of the 11.00 compiler do not understand -b yet
|
---|
10258 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
|
---|
10259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
|
---|
10260 | $as_echo_n "checking if $CC understands -b... " >&6; }
|
---|
10261 | if ${lt_cv_prog_compiler__b+:} false; then :
|
---|
10262 | $as_echo_n "(cached) " >&6
|
---|
10263 | else
|
---|
10264 | lt_cv_prog_compiler__b=no
|
---|
10265 | save_LDFLAGS=$LDFLAGS
|
---|
10266 | LDFLAGS="$LDFLAGS -b"
|
---|
10267 | echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
---|
10268 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
---|
10269 | # The linker can only warn and ignore the option if not recognized
|
---|
10270 | # So say no if there are warnings
|
---|
10271 | if test -s conftest.err; then
|
---|
10272 | # Append any errors to the config.log.
|
---|
10273 | cat conftest.err 1>&5
|
---|
10274 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
|
---|
10275 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
---|
10276 | if diff conftest.exp conftest.er2 >/dev/null; then
|
---|
10277 | lt_cv_prog_compiler__b=yes
|
---|
10278 | fi
|
---|
10279 | else
|
---|
10280 | lt_cv_prog_compiler__b=yes
|
---|
10281 | fi
|
---|
10282 | fi
|
---|
10283 | $RM -r conftest*
|
---|
10284 | LDFLAGS=$save_LDFLAGS
|
---|
10285 |
|
---|
10286 | fi
|
---|
10287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
|
---|
10288 | $as_echo "$lt_cv_prog_compiler__b" >&6; }
|
---|
10289 |
|
---|
10290 | if test yes = "$lt_cv_prog_compiler__b"; then
|
---|
10291 | archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
---|
10292 | else
|
---|
10293 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
---|
10294 | fi
|
---|
10295 |
|
---|
10296 | ;;
|
---|
10297 | esac
|
---|
10298 | fi
|
---|
10299 | if test no = "$with_gnu_ld"; then
|
---|
10300 | hardcode_libdir_flag_spec='$wl+b $wl$libdir'
|
---|
10301 | hardcode_libdir_separator=:
|
---|
10302 |
|
---|
10303 | case $host_cpu in
|
---|
10304 | hppa*64*|ia64*)
|
---|
10305 | hardcode_direct=no
|
---|
10306 | hardcode_shlibpath_var=no
|
---|
10307 | ;;
|
---|
10308 | *)
|
---|
10309 | hardcode_direct=yes
|
---|
10310 | hardcode_direct_absolute=yes
|
---|
10311 | export_dynamic_flag_spec='$wl-E'
|
---|
10312 |
|
---|
10313 | # hardcode_minus_L: Not really in the search PATH,
|
---|
10314 | # but as the default location of the library.
|
---|
10315 | hardcode_minus_L=yes
|
---|
10316 | ;;
|
---|
10317 | esac
|
---|
10318 | fi
|
---|
10319 | ;;
|
---|
10320 |
|
---|
10321 | irix5* | irix6* | nonstopux*)
|
---|
10322 | if test yes = "$GCC"; then
|
---|
10323 | 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'
|
---|
10324 | # Try to use the -exported_symbol ld option, if it does not
|
---|
10325 | # work, assume that -exports_file does not work either and
|
---|
10326 | # implicitly export all symbols.
|
---|
10327 | # This should be the same for all languages, so no per-tag cache variable.
|
---|
10328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
|
---|
10329 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
|
---|
10330 | if ${lt_cv_irix_exported_symbol+:} false; then :
|
---|
10331 | $as_echo_n "(cached) " >&6
|
---|
10332 | else
|
---|
10333 | save_LDFLAGS=$LDFLAGS
|
---|
10334 | LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
|
---|
10335 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
10336 | /* end confdefs.h. */
|
---|
10337 | int foo (void) { return 0; }
|
---|
10338 | _ACEOF
|
---|
10339 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
10340 | lt_cv_irix_exported_symbol=yes
|
---|
10341 | else
|
---|
10342 | lt_cv_irix_exported_symbol=no
|
---|
10343 | fi
|
---|
10344 | rm -f core conftest.err conftest.$ac_objext \
|
---|
10345 | conftest$ac_exeext conftest.$ac_ext
|
---|
10346 | LDFLAGS=$save_LDFLAGS
|
---|
10347 | fi
|
---|
10348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
|
---|
10349 | $as_echo "$lt_cv_irix_exported_symbol" >&6; }
|
---|
10350 | if test yes = "$lt_cv_irix_exported_symbol"; then
|
---|
10351 | 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'
|
---|
10352 | fi
|
---|
10353 | link_all_deplibs=no
|
---|
10354 | else
|
---|
10355 | 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'
|
---|
10356 | 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'
|
---|
10357 | fi
|
---|
10358 | archive_cmds_need_lc='no'
|
---|
10359 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
---|
10360 | hardcode_libdir_separator=:
|
---|
10361 | inherit_rpath=yes
|
---|
10362 | link_all_deplibs=yes
|
---|
10363 | ;;
|
---|
10364 |
|
---|
10365 | linux*)
|
---|
10366 | case $cc_basename in
|
---|
10367 | tcc*)
|
---|
10368 | # Fabrice Bellard et al's Tiny C Compiler
|
---|
10369 | ld_shlibs=yes
|
---|
10370 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
---|
10371 | ;;
|
---|
10372 | esac
|
---|
10373 | ;;
|
---|
10374 |
|
---|
10375 | netbsd* | netbsdelf*-gnu)
|
---|
10376 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
---|
10377 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
---|
10378 | else
|
---|
10379 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
|
---|
10380 | fi
|
---|
10381 | hardcode_libdir_flag_spec='-R$libdir'
|
---|
10382 | hardcode_direct=yes
|
---|
10383 | hardcode_shlibpath_var=no
|
---|
10384 | ;;
|
---|
10385 |
|
---|
10386 | newsos6)
|
---|
10387 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
10388 | hardcode_direct=yes
|
---|
10389 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
---|
10390 | hardcode_libdir_separator=:
|
---|
10391 | hardcode_shlibpath_var=no
|
---|
10392 | ;;
|
---|
10393 |
|
---|
10394 | *nto* | *qnx*)
|
---|
10395 | ;;
|
---|
10396 |
|
---|
10397 | openbsd* | bitrig*)
|
---|
10398 | if test -f /usr/libexec/ld.so; then
|
---|
10399 | hardcode_direct=yes
|
---|
10400 | hardcode_shlibpath_var=no
|
---|
10401 | hardcode_direct_absolute=yes
|
---|
10402 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
|
---|
10403 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
---|
10404 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
|
---|
10405 | hardcode_libdir_flag_spec='$wl-rpath,$libdir'
|
---|
10406 | export_dynamic_flag_spec='$wl-E'
|
---|
10407 | else
|
---|
10408 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
---|
10409 | hardcode_libdir_flag_spec='$wl-rpath,$libdir'
|
---|
10410 | fi
|
---|
10411 | else
|
---|
10412 | ld_shlibs=no
|
---|
10413 | fi
|
---|
10414 | ;;
|
---|
10415 |
|
---|
10416 | os2*)
|
---|
10417 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
10418 | hardcode_minus_L=yes
|
---|
10419 | allow_undefined_flag=unsupported
|
---|
10420 | shrext_cmds=.dll
|
---|
10421 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
|
---|
10422 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
|
---|
10423 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
|
---|
10424 | $ECHO EXPORTS >> $output_objdir/$libname.def~
|
---|
10425 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
|
---|
10426 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
|
---|
10427 | emximp -o $lib $output_objdir/$libname.def'
|
---|
10428 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
|
---|
10429 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
|
---|
10430 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
|
---|
10431 | $ECHO EXPORTS >> $output_objdir/$libname.def~
|
---|
10432 | prefix_cmds="$SED"~
|
---|
10433 | if test EXPORTS = "`$SED 1q $export_symbols`"; then
|
---|
10434 | prefix_cmds="$prefix_cmds -e 1d";
|
---|
10435 | fi~
|
---|
10436 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
|
---|
10437 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
|
---|
10438 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
|
---|
10439 | emximp -o $lib $output_objdir/$libname.def'
|
---|
10440 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
|
---|
10441 | enable_shared_with_static_runtimes=yes
|
---|
10442 | ;;
|
---|
10443 |
|
---|
10444 | osf3*)
|
---|
10445 | if test yes = "$GCC"; then
|
---|
10446 | allow_undefined_flag=' $wl-expect_unresolved $wl\*'
|
---|
10447 | 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'
|
---|
10448 | else
|
---|
10449 | allow_undefined_flag=' -expect_unresolved \*'
|
---|
10450 | 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'
|
---|
10451 | fi
|
---|
10452 | archive_cmds_need_lc='no'
|
---|
10453 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
---|
10454 | hardcode_libdir_separator=:
|
---|
10455 | ;;
|
---|
10456 |
|
---|
10457 | osf4* | osf5*) # as osf3* with the addition of -msym flag
|
---|
10458 | if test yes = "$GCC"; then
|
---|
10459 | allow_undefined_flag=' $wl-expect_unresolved $wl\*'
|
---|
10460 | 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'
|
---|
10461 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
---|
10462 | else
|
---|
10463 | allow_undefined_flag=' -expect_unresolved \*'
|
---|
10464 | 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'
|
---|
10465 | 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~
|
---|
10466 | $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'
|
---|
10467 |
|
---|
10468 | # Both c and cxx compiler support -rpath directly
|
---|
10469 | hardcode_libdir_flag_spec='-rpath $libdir'
|
---|
10470 | fi
|
---|
10471 | archive_cmds_need_lc='no'
|
---|
10472 | hardcode_libdir_separator=:
|
---|
10473 | ;;
|
---|
10474 |
|
---|
10475 | solaris*)
|
---|
10476 | no_undefined_flag=' -z defs'
|
---|
10477 | if test yes = "$GCC"; then
|
---|
10478 | wlarc='$wl'
|
---|
10479 | archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
10480 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
---|
10481 | $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'
|
---|
10482 | else
|
---|
10483 | case `$CC -V 2>&1` in
|
---|
10484 | *"Compilers 5.0"*)
|
---|
10485 | wlarc=''
|
---|
10486 | archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
10487 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
---|
10488 | $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
|
---|
10489 | ;;
|
---|
10490 | *)
|
---|
10491 | wlarc='$wl'
|
---|
10492 | archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
10493 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
---|
10494 | $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
---|
10495 | ;;
|
---|
10496 | esac
|
---|
10497 | fi
|
---|
10498 | hardcode_libdir_flag_spec='-R$libdir'
|
---|
10499 | hardcode_shlibpath_var=no
|
---|
10500 | case $host_os in
|
---|
10501 | solaris2.[0-5] | solaris2.[0-5].*) ;;
|
---|
10502 | *)
|
---|
10503 | # The compiler driver will combine and reorder linker options,
|
---|
10504 | # but understands '-z linker_flag'. GCC discards it without '$wl',
|
---|
10505 | # but is careful enough not to reorder.
|
---|
10506 | # Supported since Solaris 2.6 (maybe 2.5.1?)
|
---|
10507 | if test yes = "$GCC"; then
|
---|
10508 | whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
|
---|
10509 | else
|
---|
10510 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
|
---|
10511 | fi
|
---|
10512 | ;;
|
---|
10513 | esac
|
---|
10514 | link_all_deplibs=yes
|
---|
10515 | ;;
|
---|
10516 |
|
---|
10517 | sunos4*)
|
---|
10518 | if test sequent = "$host_vendor"; then
|
---|
10519 | # Use $CC to link under sequent, because it throws in some extra .o
|
---|
10520 | # files that make .init and .fini sections work.
|
---|
10521 | archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
10522 | else
|
---|
10523 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
|
---|
10524 | fi
|
---|
10525 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
10526 | hardcode_direct=yes
|
---|
10527 | hardcode_minus_L=yes
|
---|
10528 | hardcode_shlibpath_var=no
|
---|
10529 | ;;
|
---|
10530 |
|
---|
10531 | sysv4)
|
---|
10532 | case $host_vendor in
|
---|
10533 | sni)
|
---|
10534 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
10535 | hardcode_direct=yes # is this really true???
|
---|
10536 | ;;
|
---|
10537 | siemens)
|
---|
10538 | ## LD is ld it makes a PLAMLIB
|
---|
10539 | ## CC just makes a GrossModule.
|
---|
10540 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
---|
10541 | reload_cmds='$CC -r -o $output$reload_objs'
|
---|
10542 | hardcode_direct=no
|
---|
10543 | ;;
|
---|
10544 | motorola)
|
---|
10545 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
10546 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie
|
---|
10547 | ;;
|
---|
10548 | esac
|
---|
10549 | runpath_var='LD_RUN_PATH'
|
---|
10550 | hardcode_shlibpath_var=no
|
---|
10551 | ;;
|
---|
10552 |
|
---|
10553 | sysv4.3*)
|
---|
10554 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
10555 | hardcode_shlibpath_var=no
|
---|
10556 | export_dynamic_flag_spec='-Bexport'
|
---|
10557 | ;;
|
---|
10558 |
|
---|
10559 | sysv4*MP*)
|
---|
10560 | if test -d /usr/nec; then
|
---|
10561 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
10562 | hardcode_shlibpath_var=no
|
---|
10563 | runpath_var=LD_RUN_PATH
|
---|
10564 | hardcode_runpath_var=yes
|
---|
10565 | ld_shlibs=yes
|
---|
10566 | fi
|
---|
10567 | ;;
|
---|
10568 |
|
---|
10569 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
|
---|
10570 | no_undefined_flag='$wl-z,text'
|
---|
10571 | archive_cmds_need_lc=no
|
---|
10572 | hardcode_shlibpath_var=no
|
---|
10573 | runpath_var='LD_RUN_PATH'
|
---|
10574 |
|
---|
10575 | if test yes = "$GCC"; then
|
---|
10576 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
10577 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
10578 | else
|
---|
10579 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
10580 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
10581 | fi
|
---|
10582 | ;;
|
---|
10583 |
|
---|
10584 | sysv5* | sco3.2v5* | sco5v6*)
|
---|
10585 | # Note: We CANNOT use -z defs as we might desire, because we do not
|
---|
10586 | # link with -lc, and that would cause any symbols used from libc to
|
---|
10587 | # always be unresolved, which means just about no library would
|
---|
10588 | # ever link correctly. If we're not using GNU ld we use -z text
|
---|
10589 | # though, which does catch some bad symbols but isn't as heavy-handed
|
---|
10590 | # as -z defs.
|
---|
10591 | no_undefined_flag='$wl-z,text'
|
---|
10592 | allow_undefined_flag='$wl-z,nodefs'
|
---|
|
---|