1 | #! /bin/sh
|
---|
2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
3 | # Generated by GNU Autoconf 2.69 for libogg 1.3.5.
|
---|
4 | #
|
---|
5 | # Report bugs to <ogg-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 ogg-dev@xiph.org
|
---|
278 | $0: about your system, including any error possibly output
|
---|
279 | $0: before this message. Then install a modern shell, or
|
---|
280 | $0: manually run the script under such a shell if you do
|
---|
281 | $0: 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='libogg'
|
---|
592 | PACKAGE_TARNAME='libogg'
|
---|
593 | PACKAGE_VERSION='1.3.5'
|
---|
594 | PACKAGE_STRING='libogg 1.3.5'
|
---|
595 | PACKAGE_BUGREPORT='ogg-dev@xiph.org'
|
---|
596 | PACKAGE_URL=''
|
---|
597 |
|
---|
598 | # Factoring default headers for most tests.
|
---|
599 | ac_includes_default="\
|
---|
600 | #include <stdio.h>
|
---|
601 | #ifdef HAVE_SYS_TYPES_H
|
---|
602 | # include <sys/types.h>
|
---|
603 | #endif
|
---|
604 | #ifdef HAVE_SYS_STAT_H
|
---|
605 | # include <sys/stat.h>
|
---|
606 | #endif
|
---|
607 | #ifdef STDC_HEADERS
|
---|
608 | # include <stdlib.h>
|
---|
609 | # include <stddef.h>
|
---|
610 | #else
|
---|
611 | # ifdef HAVE_STDLIB_H
|
---|
612 | # include <stdlib.h>
|
---|
613 | # endif
|
---|
614 | #endif
|
---|
615 | #ifdef HAVE_STRING_H
|
---|
616 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
|
---|
617 | # include <memory.h>
|
---|
618 | # endif
|
---|
619 | # include <string.h>
|
---|
620 | #endif
|
---|
621 | #ifdef HAVE_STRINGS_H
|
---|
622 | # include <strings.h>
|
---|
623 | #endif
|
---|
624 | #ifdef HAVE_INTTYPES_H
|
---|
625 | # include <inttypes.h>
|
---|
626 | #endif
|
---|
627 | #ifdef HAVE_STDINT_H
|
---|
628 | # include <stdint.h>
|
---|
629 | #endif
|
---|
630 | #ifdef HAVE_UNISTD_H
|
---|
631 | # include <unistd.h>
|
---|
632 | #endif"
|
---|
633 |
|
---|
634 | ac_unique_file="src/framing.c"
|
---|
635 | ac_subst_vars='am__EXEEXT_FALSE
|
---|
636 | am__EXEEXT_TRUE
|
---|
637 | LTLIBOBJS
|
---|
638 | PROFILE
|
---|
639 | DEBUG
|
---|
640 | OPT
|
---|
641 | USIZE64
|
---|
642 | SIZE64
|
---|
643 | USIZE32
|
---|
644 | SIZE32
|
---|
645 | USIZE16
|
---|
646 | SIZE16
|
---|
647 | INCLUDE_SYS_TYPES_H
|
---|
648 | INCLUDE_STDINT_H
|
---|
649 | INCLUDE_INTTYPES_H
|
---|
650 | LIBTOOL_DEPS
|
---|
651 | LIBOBJS
|
---|
652 | DISABLE_CRC_FALSE
|
---|
653 | DISABLE_CRC_TRUE
|
---|
654 | LIB_AGE
|
---|
655 | LIB_REVISION
|
---|
656 | LIB_CURRENT
|
---|
657 | MAINT
|
---|
658 | MAINTAINER_MODE_FALSE
|
---|
659 | MAINTAINER_MODE_TRUE
|
---|
660 | AM_BACKSLASH
|
---|
661 | AM_DEFAULT_VERBOSITY
|
---|
662 | AM_DEFAULT_V
|
---|
663 | AM_V
|
---|
664 | am__fastdepCC_FALSE
|
---|
665 | am__fastdepCC_TRUE
|
---|
666 | CCDEPMODE
|
---|
667 | am__nodep
|
---|
668 | AMDEPBACKSLASH
|
---|
669 | AMDEP_FALSE
|
---|
670 | AMDEP_TRUE
|
---|
671 | am__include
|
---|
672 | DEPDIR
|
---|
673 | am__untar
|
---|
674 | am__tar
|
---|
675 | AMTAR
|
---|
676 | am__leading_dot
|
---|
677 | SET_MAKE
|
---|
678 | mkdir_p
|
---|
679 | MKDIR_P
|
---|
680 | INSTALL_STRIP_PROGRAM
|
---|
681 | install_sh
|
---|
682 | MAKEINFO
|
---|
683 | AUTOHEADER
|
---|
684 | AUTOMAKE
|
---|
685 | AUTOCONF
|
---|
686 | ACLOCAL
|
---|
687 | VERSION
|
---|
688 | PACKAGE
|
---|
689 | CYGPATH_W
|
---|
690 | am__isrc
|
---|
691 | INSTALL_DATA
|
---|
692 | INSTALL_SCRIPT
|
---|
693 | INSTALL_PROGRAM
|
---|
694 | CPP
|
---|
695 | LT_SYS_LIBRARY_PATH
|
---|
696 | OTOOL64
|
---|
697 | OTOOL
|
---|
698 | LIPO
|
---|
699 | NMEDIT
|
---|
700 | DSYMUTIL
|
---|
701 | MANIFEST_TOOL
|
---|
702 | AWK
|
---|
703 | RANLIB
|
---|
704 | STRIP
|
---|
705 | ac_ct_AR
|
---|
706 | AR
|
---|
707 | DLLTOOL
|
---|
708 | OBJDUMP
|
---|
709 | LN_S
|
---|
710 | NM
|
---|
711 | ac_ct_DUMPBIN
|
---|
712 | DUMPBIN
|
---|
713 | LD
|
---|
714 | FGREP
|
---|
715 | EGREP
|
---|
716 | GREP
|
---|
717 | SED
|
---|
718 | OBJEXT
|
---|
719 | EXEEXT
|
---|
720 | ac_ct_CC
|
---|
721 | CPPFLAGS
|
---|
722 | LDFLAGS
|
---|
723 | CFLAGS
|
---|
724 | CC
|
---|
725 | host_os
|
---|
726 | host_vendor
|
---|
727 | host_cpu
|
---|
728 | host
|
---|
729 | build_os
|
---|
730 | build_vendor
|
---|
731 | build_cpu
|
---|
732 | build
|
---|
733 | LIBTOOL
|
---|
734 | target_alias
|
---|
735 | host_alias
|
---|
736 | build_alias
|
---|
737 | LIBS
|
---|
738 | ECHO_T
|
---|
739 | ECHO_N
|
---|
740 | ECHO_C
|
---|
741 | DEFS
|
---|
742 | mandir
|
---|
743 | localedir
|
---|
744 | libdir
|
---|
745 | psdir
|
---|
746 | pdfdir
|
---|
747 | dvidir
|
---|
748 | htmldir
|
---|
749 | infodir
|
---|
750 | docdir
|
---|
751 | oldincludedir
|
---|
752 | includedir
|
---|
753 | runstatedir
|
---|
754 | localstatedir
|
---|
755 | sharedstatedir
|
---|
756 | sysconfdir
|
---|
757 | datadir
|
---|
758 | datarootdir
|
---|
759 | libexecdir
|
---|
760 | sbindir
|
---|
761 | bindir
|
---|
762 | program_transform_name
|
---|
763 | prefix
|
---|
764 | exec_prefix
|
---|
765 | PACKAGE_URL
|
---|
766 | PACKAGE_BUGREPORT
|
---|
767 | PACKAGE_STRING
|
---|
768 | PACKAGE_VERSION
|
---|
769 | PACKAGE_TARNAME
|
---|
770 | PACKAGE_NAME
|
---|
771 | PATH_SEPARATOR
|
---|
772 | SHELL
|
---|
773 | am__quote'
|
---|
774 | ac_subst_files=''
|
---|
775 | ac_user_opts='
|
---|
776 | enable_option_checking
|
---|
777 | enable_shared
|
---|
778 | enable_static
|
---|
779 | with_pic
|
---|
780 | enable_fast_install
|
---|
781 | with_aix_soname
|
---|
782 | with_gnu_ld
|
---|
783 | with_sysroot
|
---|
784 | enable_libtool_lock
|
---|
785 | enable_dependency_tracking
|
---|
786 | enable_silent_rules
|
---|
787 | enable_maintainer_mode
|
---|
788 | enable_crc
|
---|
789 | '
|
---|
790 | ac_precious_vars='build_alias
|
---|
791 | host_alias
|
---|
792 | target_alias
|
---|
793 | CC
|
---|
794 | CFLAGS
|
---|
795 | LDFLAGS
|
---|
796 | LIBS
|
---|
797 | CPPFLAGS
|
---|
798 | LT_SYS_LIBRARY_PATH
|
---|
799 | CPP'
|
---|
800 |
|
---|
801 |
|
---|
802 | # Initialize some variables set by options.
|
---|
803 | ac_init_help=
|
---|
804 | ac_init_version=false
|
---|
805 | ac_unrecognized_opts=
|
---|
806 | ac_unrecognized_sep=
|
---|
807 | # The variables have the same names as the options, with
|
---|
808 | # dashes changed to underlines.
|
---|
809 | cache_file=/dev/null
|
---|
810 | exec_prefix=NONE
|
---|
811 | no_create=
|
---|
812 | no_recursion=
|
---|
813 | prefix=NONE
|
---|
814 | program_prefix=NONE
|
---|
815 | program_suffix=NONE
|
---|
816 | program_transform_name=s,x,x,
|
---|
817 | silent=
|
---|
818 | site=
|
---|
819 | srcdir=
|
---|
820 | verbose=
|
---|
821 | x_includes=NONE
|
---|
822 | x_libraries=NONE
|
---|
823 |
|
---|
824 | # Installation directory options.
|
---|
825 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
826 | # and all the variables that are supposed to be based on exec_prefix
|
---|
827 | # by default will actually change.
|
---|
828 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
829 | # (The list follows the same order as the GNU Coding Standards.)
|
---|
830 | bindir='${exec_prefix}/bin'
|
---|
831 | sbindir='${exec_prefix}/sbin'
|
---|
832 | libexecdir='${exec_prefix}/libexec'
|
---|
833 | datarootdir='${prefix}/share'
|
---|
834 | datadir='${datarootdir}'
|
---|
835 | sysconfdir='${prefix}/etc'
|
---|
836 | sharedstatedir='${prefix}/com'
|
---|
837 | localstatedir='${prefix}/var'
|
---|
838 | runstatedir='${localstatedir}/run'
|
---|
839 | includedir='${prefix}/include'
|
---|
840 | oldincludedir='/usr/include'
|
---|
841 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
|
---|
842 | infodir='${datarootdir}/info'
|
---|
843 | htmldir='${docdir}'
|
---|
844 | dvidir='${docdir}'
|
---|
845 | pdfdir='${docdir}'
|
---|
846 | psdir='${docdir}'
|
---|
847 | libdir='${exec_prefix}/lib'
|
---|
848 | localedir='${datarootdir}/locale'
|
---|
849 | mandir='${datarootdir}/man'
|
---|
850 |
|
---|
851 | ac_prev=
|
---|
852 | ac_dashdash=
|
---|
853 | for ac_option
|
---|
854 | do
|
---|
855 | # If the previous option needs an argument, assign it.
|
---|
856 | if test -n "$ac_prev"; then
|
---|
857 | eval $ac_prev=\$ac_option
|
---|
858 | ac_prev=
|
---|
859 | continue
|
---|
860 | fi
|
---|
861 |
|
---|
862 | case $ac_option in
|
---|
863 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
---|
864 | *=) ac_optarg= ;;
|
---|
865 | *) ac_optarg=yes ;;
|
---|
866 | esac
|
---|
867 |
|
---|
868 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
869 |
|
---|
870 | case $ac_dashdash$ac_option in
|
---|
871 | --)
|
---|
872 | ac_dashdash=yes ;;
|
---|
873 |
|
---|
874 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
875 | ac_prev=bindir ;;
|
---|
876 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
877 | bindir=$ac_optarg ;;
|
---|
878 |
|
---|
879 | -build | --build | --buil | --bui | --bu)
|
---|
880 | ac_prev=build_alias ;;
|
---|
881 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
882 | build_alias=$ac_optarg ;;
|
---|
883 |
|
---|
884 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
885 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
886 | ac_prev=cache_file ;;
|
---|
887 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
888 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
889 | cache_file=$ac_optarg ;;
|
---|
890 |
|
---|
891 | --config-cache | -C)
|
---|
892 | cache_file=config.cache ;;
|
---|
893 |
|
---|
894 | -datadir | --datadir | --datadi | --datad)
|
---|
895 | ac_prev=datadir ;;
|
---|
896 | -datadir=* | --datadir=* | --datadi=* | --datad=*)
|
---|
897 | datadir=$ac_optarg ;;
|
---|
898 |
|
---|
899 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
---|
900 | | --dataroo | --dataro | --datar)
|
---|
901 | ac_prev=datarootdir ;;
|
---|
902 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
---|
903 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
---|
904 | datarootdir=$ac_optarg ;;
|
---|
905 |
|
---|
906 | -disable-* | --disable-*)
|
---|
907 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
908 | # Reject names that are not valid shell variable names.
|
---|
909 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
910 | as_fn_error $? "invalid feature name: $ac_useropt"
|
---|
911 | ac_useropt_orig=$ac_useropt
|
---|
912 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
913 | case $ac_user_opts in
|
---|
914 | *"
|
---|
915 | "enable_$ac_useropt"
|
---|
916 | "*) ;;
|
---|
917 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
|
---|
918 | ac_unrecognized_sep=', ';;
|
---|
919 | esac
|
---|
920 | eval enable_$ac_useropt=no ;;
|
---|
921 |
|
---|
922 | -docdir | --docdir | --docdi | --doc | --do)
|
---|
923 | ac_prev=docdir ;;
|
---|
924 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
---|
925 | docdir=$ac_optarg ;;
|
---|
926 |
|
---|
927 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
---|
928 | ac_prev=dvidir ;;
|
---|
929 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
---|
930 | dvidir=$ac_optarg ;;
|
---|
931 |
|
---|
932 | -enable-* | --enable-*)
|
---|
933 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
934 | # Reject names that are not valid shell variable names.
|
---|
935 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
936 | as_fn_error $? "invalid feature name: $ac_useropt"
|
---|
937 | ac_useropt_orig=$ac_useropt
|
---|
938 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
939 | case $ac_user_opts in
|
---|
940 | *"
|
---|
941 | "enable_$ac_useropt"
|
---|
942 | "*) ;;
|
---|
943 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
|
---|
944 | ac_unrecognized_sep=', ';;
|
---|
945 | esac
|
---|
946 | eval enable_$ac_useropt=\$ac_optarg ;;
|
---|
947 |
|
---|
948 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
949 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
950 | | --exec | --exe | --ex)
|
---|
951 | ac_prev=exec_prefix ;;
|
---|
952 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
953 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
954 | | --exec=* | --exe=* | --ex=*)
|
---|
955 | exec_prefix=$ac_optarg ;;
|
---|
956 |
|
---|
957 | -gas | --gas | --ga | --g)
|
---|
958 | # Obsolete; use --with-gas.
|
---|
959 | with_gas=yes ;;
|
---|
960 |
|
---|
961 | -help | --help | --hel | --he | -h)
|
---|
962 | ac_init_help=long ;;
|
---|
963 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
964 | ac_init_help=recursive ;;
|
---|
965 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
966 | ac_init_help=short ;;
|
---|
967 |
|
---|
968 | -host | --host | --hos | --ho)
|
---|
969 | ac_prev=host_alias ;;
|
---|
970 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
971 | host_alias=$ac_optarg ;;
|
---|
972 |
|
---|
973 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
---|
974 | ac_prev=htmldir ;;
|
---|
975 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
---|
976 | | --ht=*)
|
---|
977 | htmldir=$ac_optarg ;;
|
---|
978 |
|
---|
979 | -includedir | --includedir | --includedi | --included | --include \
|
---|
980 | | --includ | --inclu | --incl | --inc)
|
---|
981 | ac_prev=includedir ;;
|
---|
982 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
983 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
984 | includedir=$ac_optarg ;;
|
---|
985 |
|
---|
986 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
987 | ac_prev=infodir ;;
|
---|
988 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
989 | infodir=$ac_optarg ;;
|
---|
990 |
|
---|
991 | -libdir | --libdir | --libdi | --libd)
|
---|
992 | ac_prev=libdir ;;
|
---|
993 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
994 | libdir=$ac_optarg ;;
|
---|
995 |
|
---|
996 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
997 | | --libexe | --libex | --libe)
|
---|
998 | ac_prev=libexecdir ;;
|
---|
999 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
1000 | | --libexe=* | --libex=* | --libe=*)
|
---|
1001 | libexecdir=$ac_optarg ;;
|
---|
1002 |
|
---|
1003 | -localedir | --localedir | --localedi | --localed | --locale)
|
---|
1004 | ac_prev=localedir ;;
|
---|
1005 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
---|
1006 | localedir=$ac_optarg ;;
|
---|
1007 |
|
---|
1008 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
1009 | | --localstate | --localstat | --localsta | --localst | --locals)
|
---|
1010 | ac_prev=localstatedir ;;
|
---|
1011 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
1012 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
---|
1013 | localstatedir=$ac_optarg ;;
|
---|
1014 |
|
---|
1015 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
1016 | ac_prev=mandir ;;
|
---|
1017 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
1018 | mandir=$ac_optarg ;;
|
---|
1019 |
|
---|
1020 | -nfp | --nfp | --nf)
|
---|
1021 | # Obsolete; use --without-fp.
|
---|
1022 | with_fp=no ;;
|
---|
1023 |
|
---|
1024 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
1025 | | --no-cr | --no-c | -n)
|
---|
1026 | no_create=yes ;;
|
---|
1027 |
|
---|
1028 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
1029 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
1030 | no_recursion=yes ;;
|
---|
1031 |
|
---|
1032 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
1033 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
1034 | | --oldin | --oldi | --old | --ol | --o)
|
---|
1035 | ac_prev=oldincludedir ;;
|
---|
1036 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
1037 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
1038 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
1039 | oldincludedir=$ac_optarg ;;
|
---|
1040 |
|
---|
1041 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
1042 | ac_prev=prefix ;;
|
---|
1043 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
1044 | prefix=$ac_optarg ;;
|
---|
1045 |
|
---|
1046 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
1047 | | --program-pre | --program-pr | --program-p)
|
---|
1048 | ac_prev=program_prefix ;;
|
---|
1049 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
1050 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
1051 | program_prefix=$ac_optarg ;;
|
---|
1052 |
|
---|
1053 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
1054 | | --program-suf | --program-su | --program-s)
|
---|
1055 | ac_prev=program_suffix ;;
|
---|
1056 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
1057 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
1058 | program_suffix=$ac_optarg ;;
|
---|
1059 |
|
---|
1060 | -program-transform-name | --program-transform-name \
|
---|
1061 | | --program-transform-nam | --program-transform-na \
|
---|
1062 | | --program-transform-n | --program-transform- \
|
---|
1063 | | --program-transform | --program-transfor \
|
---|
1064 | | --program-transfo | --program-transf \
|
---|
1065 | | --program-trans | --program-tran \
|
---|
1066 | | --progr-tra | --program-tr | --program-t)
|
---|
1067 | ac_prev=program_transform_name ;;
|
---|
1068 | -program-transform-name=* | --program-transform-name=* \
|
---|
1069 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
1070 | | --program-transform-n=* | --program-transform-=* \
|
---|
1071 | | --program-transform=* | --program-transfor=* \
|
---|
1072 | | --program-transfo=* | --program-transf=* \
|
---|
1073 | | --program-trans=* | --program-tran=* \
|
---|
1074 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
1075 | program_transform_name=$ac_optarg ;;
|
---|
1076 |
|
---|
1077 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
---|
1078 | ac_prev=pdfdir ;;
|
---|
1079 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
---|
1080 | pdfdir=$ac_optarg ;;
|
---|
1081 |
|
---|
1082 | -psdir | --psdir | --psdi | --psd | --ps)
|
---|
1083 | ac_prev=psdir ;;
|
---|
1084 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
---|
1085 | psdir=$ac_optarg ;;
|
---|
1086 |
|
---|
1087 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
1088 | | -silent | --silent | --silen | --sile | --sil)
|
---|
1089 | silent=yes ;;
|
---|
1090 |
|
---|
1091 | -runstatedir | --runstatedir | --runstatedi | --runstated \
|
---|
1092 | | --runstate | --runstat | --runsta | --runst | --runs \
|
---|
1093 | | --run | --ru | --r)
|
---|
1094 | ac_prev=runstatedir ;;
|
---|
1095 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
|
---|
1096 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
|
---|
1097 | | --run=* | --ru=* | --r=*)
|
---|
1098 | runstatedir=$ac_optarg ;;
|
---|
1099 |
|
---|
1100 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
1101 | ac_prev=sbindir ;;
|
---|
1102 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
1103 | | --sbi=* | --sb=*)
|
---|
1104 | sbindir=$ac_optarg ;;
|
---|
1105 |
|
---|
1106 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
1107 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
1108 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
1109 | | --sha | --sh)
|
---|
1110 | ac_prev=sharedstatedir ;;
|
---|
1111 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
1112 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
1113 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
1114 | | --sha=* | --sh=*)
|
---|
1115 | sharedstatedir=$ac_optarg ;;
|
---|
1116 |
|
---|
1117 | -site | --site | --sit)
|
---|
1118 | ac_prev=site ;;
|
---|
1119 | -site=* | --site=* | --sit=*)
|
---|
1120 | site=$ac_optarg ;;
|
---|
1121 |
|
---|
1122 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
1123 | ac_prev=srcdir ;;
|
---|
1124 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
1125 | srcdir=$ac_optarg ;;
|
---|
1126 |
|
---|
1127 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
1128 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
1129 | ac_prev=sysconfdir ;;
|
---|
1130 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
1131 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
1132 | sysconfdir=$ac_optarg ;;
|
---|
1133 |
|
---|
1134 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
1135 | ac_prev=target_alias ;;
|
---|
1136 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
1137 | target_alias=$ac_optarg ;;
|
---|
1138 |
|
---|
1139 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
1140 | verbose=yes ;;
|
---|
1141 |
|
---|
1142 | -version | --version | --versio | --versi | --vers | -V)
|
---|
1143 | ac_init_version=: ;;
|
---|
1144 |
|
---|
1145 | -with-* | --with-*)
|
---|
1146 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
1147 | # Reject names that are not valid shell variable names.
|
---|
1148 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
1149 | as_fn_error $? "invalid package name: $ac_useropt"
|
---|
1150 | ac_useropt_orig=$ac_useropt
|
---|
1151 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
1152 | case $ac_user_opts in
|
---|
1153 | *"
|
---|
1154 | "with_$ac_useropt"
|
---|
1155 | "*) ;;
|
---|
1156 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
|
---|
1157 | ac_unrecognized_sep=', ';;
|
---|
1158 | esac
|
---|
1159 | eval with_$ac_useropt=\$ac_optarg ;;
|
---|
1160 |
|
---|
1161 | -without-* | --without-*)
|
---|
1162 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
1163 | # Reject names that are not valid shell variable names.
|
---|
1164 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
1165 | as_fn_error $? "invalid package name: $ac_useropt"
|
---|
1166 | ac_useropt_orig=$ac_useropt
|
---|
1167 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
1168 | case $ac_user_opts in
|
---|
1169 | *"
|
---|
1170 | "with_$ac_useropt"
|
---|
1171 | "*) ;;
|
---|
1172 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
|
---|
1173 | ac_unrecognized_sep=', ';;
|
---|
1174 | esac
|
---|
1175 | eval with_$ac_useropt=no ;;
|
---|
1176 |
|
---|
1177 | --x)
|
---|
1178 | # Obsolete; use --with-x.
|
---|
1179 | with_x=yes ;;
|
---|
1180 |
|
---|
1181 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
1182 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
1183 | ac_prev=x_includes ;;
|
---|
1184 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
1185 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
1186 | x_includes=$ac_optarg ;;
|
---|
1187 |
|
---|
1188 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
1189 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
1190 | ac_prev=x_libraries ;;
|
---|
1191 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
1192 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
1193 | x_libraries=$ac_optarg ;;
|
---|
1194 |
|
---|
1195 | -*) as_fn_error $? "unrecognized option: \`$ac_option'
|
---|
1196 | Try \`$0 --help' for more information"
|
---|
1197 | ;;
|
---|
1198 |
|
---|
1199 | *=*)
|
---|
1200 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
1201 | # Reject names that are not valid shell variable names.
|
---|
1202 | case $ac_envvar in #(
|
---|
1203 | '' | [0-9]* | *[!_$as_cr_alnum]* )
|
---|
1204 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
|
---|
1205 | esac
|
---|
1206 | eval $ac_envvar=\$ac_optarg
|
---|
1207 | export $ac_envvar ;;
|
---|
1208 |
|
---|
1209 | *)
|
---|
1210 | # FIXME: should be removed in autoconf 3.0.
|
---|
1211 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
1212 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
1213 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
1214 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
|
---|
1215 | ;;
|
---|
1216 |
|
---|
1217 | esac
|
---|
1218 | done
|
---|
1219 |
|
---|
1220 | if test -n "$ac_prev"; then
|
---|
1221 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
1222 | as_fn_error $? "missing argument to $ac_option"
|
---|
1223 | fi
|
---|
1224 |
|
---|
1225 | if test -n "$ac_unrecognized_opts"; then
|
---|
1226 | case $enable_option_checking in
|
---|
1227 | no) ;;
|
---|
1228 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
|
---|
1229 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
|
---|
1230 | esac
|
---|
1231 | fi
|
---|
1232 |
|
---|
1233 | # Check all directory arguments for consistency.
|
---|
1234 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
---|
1235 | datadir sysconfdir sharedstatedir localstatedir includedir \
|
---|
1236 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
---|
1237 | libdir localedir mandir runstatedir
|
---|
1238 | do
|
---|
1239 | eval ac_val=\$$ac_var
|
---|
1240 | # Remove trailing slashes.
|
---|
1241 | case $ac_val in
|
---|
1242 | */ )
|
---|
1243 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
|
---|
1244 | eval $ac_var=\$ac_val;;
|
---|
1245 | esac
|
---|
1246 | # Be sure to have absolute directory names.
|
---|
1247 | case $ac_val in
|
---|
1248 | [\\/$]* | ?:[\\/]* ) continue;;
|
---|
1249 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
---|
1250 | esac
|
---|
1251 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
|
---|
1252 | done
|
---|
1253 |
|
---|
1254 | # There might be people who depend on the old broken behavior: `$host'
|
---|
1255 | # used to hold the argument of --host etc.
|
---|
1256 | # FIXME: To remove some day.
|
---|
1257 | build=$build_alias
|
---|
1258 | host=$host_alias
|
---|
1259 | target=$target_alias
|
---|
1260 |
|
---|
1261 | # FIXME: To remove some day.
|
---|
1262 | if test "x$host_alias" != x; then
|
---|
1263 | if test "x$build_alias" = x; then
|
---|
1264 | cross_compiling=maybe
|
---|
1265 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
1266 | cross_compiling=yes
|
---|
1267 | fi
|
---|
1268 | fi
|
---|
1269 |
|
---|
1270 | ac_tool_prefix=
|
---|
1271 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
1272 |
|
---|
1273 | test "$silent" = yes && exec 6>/dev/null
|
---|
1274 |
|
---|
1275 |
|
---|
1276 | ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
---|
1277 | ac_ls_di=`ls -di .` &&
|
---|
1278 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
---|
1279 | as_fn_error $? "working directory cannot be determined"
|
---|
1280 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
---|
1281 | as_fn_error $? "pwd does not report name of working directory"
|
---|
1282 |
|
---|
1283 |
|
---|
1284 | # Find the source files, if location was not specified.
|
---|
1285 | if test -z "$srcdir"; then
|
---|
1286 | ac_srcdir_defaulted=yes
|
---|
1287 | # Try the directory containing this script, then the parent directory.
|
---|
1288 | ac_confdir=`$as_dirname -- "$as_myself" ||
|
---|
1289 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
1290 | X"$as_myself" : 'X\(//\)[^/]' \| \
|
---|
1291 | X"$as_myself" : 'X\(//\)$' \| \
|
---|
1292 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
1293 | $as_echo X"$as_myself" |
|
---|
1294 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
1295 | s//\1/
|
---|
1296 | q
|
---|
1297 | }
|
---|
1298 | /^X\(\/\/\)[^/].*/{
|
---|
1299 | s//\1/
|
---|
1300 | q
|
---|
1301 | }
|
---|
1302 | /^X\(\/\/\)$/{
|
---|
1303 | s//\1/
|
---|
1304 | q
|
---|
1305 | }
|
---|
1306 | /^X\(\/\).*/{
|
---|
1307 | s//\1/
|
---|
1308 | q
|
---|
1309 | }
|
---|
1310 | s/.*/./; q'`
|
---|
1311 | srcdir=$ac_confdir
|
---|
1312 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1313 | srcdir=..
|
---|
1314 | fi
|
---|
1315 | else
|
---|
1316 | ac_srcdir_defaulted=no
|
---|
1317 | fi
|
---|
1318 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1319 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
---|
1320 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
|
---|
1321 | fi
|
---|
1322 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
---|
1323 | ac_abs_confdir=`(
|
---|
1324 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
|
---|
1325 | pwd)`
|
---|
1326 | # When building in place, set srcdir=.
|
---|
1327 | if test "$ac_abs_confdir" = "$ac_pwd"; then
|
---|
1328 | srcdir=.
|
---|
1329 | fi
|
---|
1330 | # Remove unnecessary trailing slashes from srcdir.
|
---|
1331 | # Double slashes in file names in object file debugging info
|
---|
1332 | # mess up M-x gdb in Emacs.
|
---|
1333 | case $srcdir in
|
---|
1334 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
---|
1335 | esac
|
---|
1336 | for ac_var in $ac_precious_vars; do
|
---|
1337 | eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1338 | eval ac_env_${ac_var}_value=\$${ac_var}
|
---|
1339 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1340 | eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
---|
1341 | done
|
---|
1342 |
|
---|
1343 | #
|
---|
1344 | # Report the --help message.
|
---|
1345 | #
|
---|
1346 | if test "$ac_init_help" = "long"; then
|
---|
1347 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
1348 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
1349 | cat <<_ACEOF
|
---|
1350 | \`configure' configures libogg 1.3.5 to adapt to many kinds of systems.
|
---|
1351 |
|
---|
1352 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
1353 |
|
---|
1354 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
1355 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
1356 |
|
---|
1357 | Defaults for the options are specified in brackets.
|
---|
1358 |
|
---|
1359 | Configuration:
|
---|
1360 | -h, --help display this help and exit
|
---|
1361 | --help=short display options specific to this package
|
---|
1362 | --help=recursive display the short help of all the included packages
|
---|
1363 | -V, --version display version information and exit
|
---|
1364 | -q, --quiet, --silent do not print \`checking ...' messages
|
---|
1365 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
1366 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
1367 | -n, --no-create do not create output files
|
---|
1368 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
1369 |
|
---|
1370 | Installation directories:
|
---|
1371 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
1372 | [$ac_default_prefix]
|
---|
1373 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
1374 | [PREFIX]
|
---|
1375 |
|
---|
1376 | By default, \`make install' will install all the files in
|
---|
1377 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
1378 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
1379 | for instance \`--prefix=\$HOME'.
|
---|
1380 |
|
---|
1381 | For better control, use the options below.
|
---|
1382 |
|
---|
1383 | Fine tuning of the installation directories:
|
---|
1384 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
1385 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
1386 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
1387 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
1388 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
1389 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
1390 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
|
---|
1391 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
1392 | --includedir=DIR C header files [PREFIX/include]
|
---|
1393 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
1394 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
---|
1395 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
---|
1396 | --infodir=DIR info documentation [DATAROOTDIR/info]
|
---|
1397 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
---|
1398 | --mandir=DIR man documentation [DATAROOTDIR/man]
|
---|
1399 | --docdir=DIR documentation root [DATAROOTDIR/doc/libogg]
|
---|
1400 | --htmldir=DIR html documentation [DOCDIR]
|
---|
1401 | --dvidir=DIR dvi documentation [DOCDIR]
|
---|
1402 | --pdfdir=DIR pdf documentation [DOCDIR]
|
---|
1403 | --psdir=DIR ps documentation [DOCDIR]
|
---|
1404 | _ACEOF
|
---|
1405 |
|
---|
1406 | cat <<\_ACEOF
|
---|
1407 |
|
---|
1408 | Program names:
|
---|
1409 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
---|
1410 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
---|
1411 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names
|
---|
1412 |
|
---|
1413 | System types:
|
---|
1414 | --build=BUILD configure for building on BUILD [guessed]
|
---|
1415 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
1416 | _ACEOF
|
---|
1417 | fi
|
---|
1418 |
|
---|
1419 | if test -n "$ac_init_help"; then
|
---|
1420 | case $ac_init_help in
|
---|
1421 | short | recursive ) echo "Configuration of libogg 1.3.5:";;
|
---|
1422 | esac
|
---|
1423 | cat <<\_ACEOF
|
---|
1424 |
|
---|
1425 | Optional Features:
|
---|
1426 | --disable-option-checking ignore unrecognized --enable/--with options
|
---|
1427 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
1428 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
1429 | --enable-shared[=PKGS] build shared libraries [default=yes]
|
---|
1430 | --enable-static[=PKGS] build static libraries [default=yes]
|
---|
1431 | --enable-fast-install[=PKGS]
|
---|
1432 | optimize for fast installation [default=yes]
|
---|
1433 | --disable-libtool-lock avoid locking (might break parallel builds)
|
---|
1434 | --enable-dependency-tracking
|
---|
1435 | do not reject slow dependency extractors
|
---|
1436 | --disable-dependency-tracking
|
---|
1437 | speeds up one-time build
|
---|
1438 | --enable-silent-rules less verbose build output (undo: "make V=1")
|
---|
1439 | --disable-silent-rules verbose build output (undo: "make V=0")
|
---|
1440 | --disable-maintainer-mode
|
---|
1441 | disable make rules and dependencies not useful (and
|
---|
1442 | sometimes confusing) to the casual installer
|
---|
1443 | --disable-crc Disable CRC in the demuxer
|
---|
1444 |
|
---|
1445 | Optional Packages:
|
---|
1446 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
1447 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
1448 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
|
---|
1449 | both]
|
---|
1450 | --with-aix-soname=aix|svr4|both
|
---|
1451 | shared library versioning (aka "SONAME") variant to
|
---|
1452 | provide on AIX, [default=aix].
|
---|
1453 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]
|
---|
1454 | --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
|
---|
1455 | compiler's sysroot if not specified).
|
---|
1456 |
|
---|
1457 | Some influential environment variables:
|
---|
1458 | CC C compiler command
|
---|
1459 | CFLAGS C compiler flags
|
---|
1460 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
1461 | nonstandard directory <lib dir>
|
---|
1462 | LIBS libraries to pass to the linker, e.g. -l<library>
|
---|
1463 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
|
---|
1464 | you have headers in a nonstandard directory <include dir>
|
---|
1465 | LT_SYS_LIBRARY_PATH
|
---|
1466 | User-defined run-time library search path.
|
---|
1467 | CPP C preprocessor
|
---|
1468 |
|
---|
1469 | Use these variables to override the choices made by `configure' or to help
|
---|
1470 | it to find libraries and programs with nonstandard names/locations.
|
---|
1471 |
|
---|
1472 | Report bugs to <ogg-dev@xiph.org>.
|
---|
1473 | _ACEOF
|
---|
1474 | ac_status=$?
|
---|
1475 | fi
|
---|
1476 |
|
---|
1477 | if test "$ac_init_help" = "recursive"; then
|
---|
1478 | # If there are subdirs, report their specific --help.
|
---|
1479 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
1480 | test -d "$ac_dir" ||
|
---|
1481 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
|
---|
1482 | continue
|
---|
1483 | ac_builddir=.
|
---|
1484 |
|
---|
1485 | case "$ac_dir" in
|
---|
1486 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1487 | *)
|
---|
1488 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
1489 | # A ".." for each directory in $ac_dir_suffix.
|
---|
1490 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
1491 | case $ac_top_builddir_sub in
|
---|
1492 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1493 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
1494 | esac ;;
|
---|
1495 | esac
|
---|
1496 | ac_abs_top_builddir=$ac_pwd
|
---|
1497 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
1498 | # for backward compatibility:
|
---|
1499 | ac_top_builddir=$ac_top_build_prefix
|
---|
1500 |
|
---|
1501 | case $srcdir in
|
---|
1502 | .) # We are building in place.
|
---|
1503 | ac_srcdir=.
|
---|
1504 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
1505 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
1506 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
1507 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
1508 | ac_top_srcdir=$srcdir
|
---|
1509 | ac_abs_top_srcdir=$srcdir ;;
|
---|
1510 | *) # Relative name.
|
---|
1511 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
1512 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
1513 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
1514 | esac
|
---|
1515 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
1516 |
|
---|
1517 | cd "$ac_dir" || { ac_status=$?; continue; }
|
---|
1518 | # Check for guested configure.
|
---|
1519 | if test -f "$ac_srcdir/configure.gnu"; then
|
---|
1520 | echo &&
|
---|
1521 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
---|
1522 | elif test -f "$ac_srcdir/configure"; then
|
---|
1523 | echo &&
|
---|
1524 | $SHELL "$ac_srcdir/configure" --help=recursive
|
---|
1525 | else
|
---|
1526 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
1527 | fi || ac_status=$?
|
---|
1528 | cd "$ac_pwd" || { ac_status=$?; break; }
|
---|
1529 | done
|
---|
1530 | fi
|
---|
1531 |
|
---|
1532 | test -n "$ac_init_help" && exit $ac_status
|
---|
1533 | if $ac_init_version; then
|
---|
1534 | cat <<\_ACEOF
|
---|
1535 | libogg configure 1.3.5
|
---|
1536 | generated by GNU Autoconf 2.69
|
---|
1537 |
|
---|
1538 | Copyright (C) 2012 Free Software Foundation, Inc.
|
---|
1539 | This configure script is free software; the Free Software Foundation
|
---|
1540 | gives unlimited permission to copy, distribute and modify it.
|
---|
1541 | _ACEOF
|
---|
1542 | exit
|
---|
1543 | fi
|
---|
1544 |
|
---|
1545 | ## ------------------------ ##
|
---|
1546 | ## Autoconf initialization. ##
|
---|
1547 | ## ------------------------ ##
|
---|
1548 |
|
---|
1549 | # ac_fn_c_try_compile LINENO
|
---|
1550 | # --------------------------
|
---|
1551 | # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
---|
1552 | ac_fn_c_try_compile ()
|
---|
1553 | {
|
---|
1554 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1555 | rm -f conftest.$ac_objext
|
---|
1556 | if { { ac_try="$ac_compile"
|
---|
1557 | case "(($ac_try" in
|
---|
1558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1559 | *) ac_try_echo=$ac_try;;
|
---|
1560 | esac
|
---|
1561 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1562 | $as_echo "$ac_try_echo"; } >&5
|
---|
1563 | (eval "$ac_compile") 2>conftest.err
|
---|
1564 | ac_status=$?
|
---|
1565 | if test -s conftest.err; then
|
---|
1566 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1567 | cat conftest.er1 >&5
|
---|
1568 | mv -f conftest.er1 conftest.err
|
---|
1569 | fi
|
---|
1570 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1571 | test $ac_status = 0; } && {
|
---|
1572 | test -z "$ac_c_werror_flag" ||
|
---|
1573 | test ! -s conftest.err
|
---|
1574 | } && test -s conftest.$ac_objext; then :
|
---|
1575 | ac_retval=0
|
---|
1576 | else
|
---|
1577 | $as_echo "$as_me: failed program was:" >&5
|
---|
1578 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1579 |
|
---|
1580 | ac_retval=1
|
---|
1581 | fi
|
---|
1582 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1583 | as_fn_set_status $ac_retval
|
---|
1584 |
|
---|
1585 | } # ac_fn_c_try_compile
|
---|
1586 |
|
---|
1587 | # ac_fn_c_try_link LINENO
|
---|
1588 | # -----------------------
|
---|
1589 | # Try to link conftest.$ac_ext, and return whether this succeeded.
|
---|
1590 | ac_fn_c_try_link ()
|
---|
1591 | {
|
---|
1592 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1593 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
1594 | if { { ac_try="$ac_link"
|
---|
1595 | case "(($ac_try" in
|
---|
1596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1597 | *) ac_try_echo=$ac_try;;
|
---|
1598 | esac
|
---|
1599 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1600 | $as_echo "$ac_try_echo"; } >&5
|
---|
1601 | (eval "$ac_link") 2>conftest.err
|
---|
1602 | ac_status=$?
|
---|
1603 | if test -s conftest.err; then
|
---|
1604 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1605 | cat conftest.er1 >&5
|
---|
1606 | mv -f conftest.er1 conftest.err
|
---|
1607 | fi
|
---|
1608 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1609 | test $ac_status = 0; } && {
|
---|
1610 | test -z "$ac_c_werror_flag" ||
|
---|
1611 | test ! -s conftest.err
|
---|
1612 | } && test -s conftest$ac_exeext && {
|
---|
1613 | test "$cross_compiling" = yes ||
|
---|
1614 | test -x conftest$ac_exeext
|
---|
1615 | }; then :
|
---|
1616 | ac_retval=0
|
---|
1617 | else
|
---|
1618 | $as_echo "$as_me: failed program was:" >&5
|
---|
1619 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1620 |
|
---|
1621 | ac_retval=1
|
---|
1622 | fi
|
---|
1623 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
|
---|
1624 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
|
---|
1625 | # interfere with the next link command; also delete a directory that is
|
---|
1626 | # left behind by Apple's compiler. We do this before executing the actions.
|
---|
1627 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
1628 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1629 | as_fn_set_status $ac_retval
|
---|
1630 |
|
---|
1631 | } # ac_fn_c_try_link
|
---|
1632 |
|
---|
1633 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
|
---|
1634 | # -------------------------------------------------------
|
---|
1635 | # Tests whether HEADER exists and can be compiled using the include files in
|
---|
1636 | # INCLUDES, setting the cache variable VAR accordingly.
|
---|
1637 | ac_fn_c_check_header_compile ()
|
---|
1638 | {
|
---|
1639 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1641 | $as_echo_n "checking for $2... " >&6; }
|
---|
1642 | if eval \${$3+:} false; then :
|
---|
1643 | $as_echo_n "(cached) " >&6
|
---|
1644 | else
|
---|
1645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1646 | /* end confdefs.h. */
|
---|
1647 | $4
|
---|
1648 | #include <$2>
|
---|
1649 | _ACEOF
|
---|
1650 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1651 | eval "$3=yes"
|
---|
1652 | else
|
---|
1653 | eval "$3=no"
|
---|
1654 | fi
|
---|
1655 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1656 | fi
|
---|
1657 | eval ac_res=\$$3
|
---|
1658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1659 | $as_echo "$ac_res" >&6; }
|
---|
1660 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1661 |
|
---|
1662 | } # ac_fn_c_check_header_compile
|
---|
1663 |
|
---|
1664 | # ac_fn_c_try_cpp LINENO
|
---|
1665 | # ----------------------
|
---|
1666 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
|
---|
1667 | ac_fn_c_try_cpp ()
|
---|
1668 | {
|
---|
1669 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1670 | if { { ac_try="$ac_cpp conftest.$ac_ext"
|
---|
1671 | case "(($ac_try" in
|
---|
1672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1673 | *) ac_try_echo=$ac_try;;
|
---|
1674 | esac
|
---|
1675 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1676 | $as_echo "$ac_try_echo"; } >&5
|
---|
1677 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
|
---|
1678 | ac_status=$?
|
---|
1679 | if test -s conftest.err; then
|
---|
1680 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1681 | cat conftest.er1 >&5
|
---|
1682 | mv -f conftest.er1 conftest.err
|
---|
1683 | fi
|
---|
1684 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1685 | test $ac_status = 0; } > conftest.i && {
|
---|
1686 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
1687 | test ! -s conftest.err
|
---|
1688 | }; then :
|
---|
1689 | ac_retval=0
|
---|
1690 | else
|
---|
1691 | $as_echo "$as_me: failed program was:" >&5
|
---|
1692 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1693 |
|
---|
1694 | ac_retval=1
|
---|
1695 | fi
|
---|
1696 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1697 | as_fn_set_status $ac_retval
|
---|
1698 |
|
---|
1699 | } # ac_fn_c_try_cpp
|
---|
1700 |
|
---|
1701 | # ac_fn_c_try_run LINENO
|
---|
1702 | # ----------------------
|
---|
1703 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
|
---|
1704 | # that executables *can* be run.
|
---|
1705 | ac_fn_c_try_run ()
|
---|
1706 | {
|
---|
1707 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1708 | if { { ac_try="$ac_link"
|
---|
1709 | case "(($ac_try" in
|
---|
1710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1711 | *) ac_try_echo=$ac_try;;
|
---|
1712 | esac
|
---|
1713 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1714 | $as_echo "$ac_try_echo"; } >&5
|
---|
1715 | (eval "$ac_link") 2>&5
|
---|
1716 | ac_status=$?
|
---|
1717 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1718 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
|
---|
1719 | { { case "(($ac_try" in
|
---|
1720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1721 | *) ac_try_echo=$ac_try;;
|
---|
1722 | esac
|
---|
1723 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1724 | $as_echo "$ac_try_echo"; } >&5
|
---|
1725 | (eval "$ac_try") 2>&5
|
---|
1726 | ac_status=$?
|
---|
1727 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1728 | test $ac_status = 0; }; }; then :
|
---|
1729 | ac_retval=0
|
---|
1730 | else
|
---|
1731 | $as_echo "$as_me: program exited with status $ac_status" >&5
|
---|
1732 | $as_echo "$as_me: failed program was:" >&5
|
---|
1733 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1734 |
|
---|
1735 | ac_retval=$ac_status
|
---|
1736 | fi
|
---|
1737 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
1738 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1739 | as_fn_set_status $ac_retval
|
---|
1740 |
|
---|
1741 | } # ac_fn_c_try_run
|
---|
1742 |
|
---|
1743 | # ac_fn_c_check_func LINENO FUNC VAR
|
---|
1744 | # ----------------------------------
|
---|
1745 | # Tests whether FUNC exists, setting the cache variable VAR accordingly
|
---|
1746 | ac_fn_c_check_func ()
|
---|
1747 | {
|
---|
1748 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1750 | $as_echo_n "checking for $2... " >&6; }
|
---|
1751 | if eval \${$3+:} false; then :
|
---|
1752 | $as_echo_n "(cached) " >&6
|
---|
1753 | else
|
---|
1754 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1755 | /* end confdefs.h. */
|
---|
1756 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
|
---|
1757 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
1758 | #define $2 innocuous_$2
|
---|
1759 |
|
---|
1760 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
1761 | which can conflict with char $2 (); below.
|
---|
1762 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
1763 | <limits.h> exists even on freestanding compilers. */
|
---|
1764 |
|
---|
1765 | #ifdef __STDC__
|
---|
1766 | # include <limits.h>
|
---|
1767 | #else
|
---|
1768 | # include <assert.h>
|
---|
1769 | #endif
|
---|
1770 |
|
---|
1771 | #undef $2
|
---|
1772 |
|
---|
1773 | /* Override any GCC internal prototype to avoid an error.
|
---|
1774 | Use char because int might match the return type of a GCC
|
---|
1775 | builtin and then its argument prototype would still apply. */
|
---|
1776 | #ifdef __cplusplus
|
---|
1777 | extern "C"
|
---|
1778 | #endif
|
---|
1779 | char $2 ();
|
---|
1780 | /* The GNU C library defines this for functions which it implements
|
---|
1781 | to always fail with ENOSYS. Some functions are actually named
|
---|
1782 | something starting with __ and the normal name is an alias. */
|
---|
1783 | #if defined __stub_$2 || defined __stub___$2
|
---|
1784 | choke me
|
---|
1785 | #endif
|
---|
1786 |
|
---|
1787 | int
|
---|
1788 | main ()
|
---|
1789 | {
|
---|
1790 | return $2 ();
|
---|
1791 | ;
|
---|
1792 | return 0;
|
---|
1793 | }
|
---|
1794 | _ACEOF
|
---|
1795 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
1796 | eval "$3=yes"
|
---|
1797 | else
|
---|
1798 | eval "$3=no"
|
---|
1799 | fi
|
---|
1800 | rm -f core conftest.err conftest.$ac_objext \
|
---|
1801 | conftest$ac_exeext conftest.$ac_ext
|
---|
1802 | fi
|
---|
1803 | eval ac_res=\$$3
|
---|
1804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1805 | $as_echo "$ac_res" >&6; }
|
---|
1806 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1807 |
|
---|
1808 | } # ac_fn_c_check_func
|
---|
1809 |
|
---|
1810 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
|
---|
1811 | # -------------------------------------------------------
|
---|
1812 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using
|
---|
1813 | # the include files in INCLUDES and setting the cache variable VAR
|
---|
1814 | # accordingly.
|
---|
1815 | ac_fn_c_check_header_mongrel ()
|
---|
1816 | {
|
---|
1817 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1818 | if eval \${$3+:} false; then :
|
---|
1819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1820 | $as_echo_n "checking for $2... " >&6; }
|
---|
1821 | if eval \${$3+:} false; then :
|
---|
1822 | $as_echo_n "(cached) " >&6
|
---|
1823 | fi
|
---|
1824 | eval ac_res=\$$3
|
---|
1825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1826 | $as_echo "$ac_res" >&6; }
|
---|
1827 | else
|
---|
1828 | # Is the header compilable?
|
---|
1829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
|
---|
1830 | $as_echo_n "checking $2 usability... " >&6; }
|
---|
1831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1832 | /* end confdefs.h. */
|
---|
1833 | $4
|
---|
1834 | #include <$2>
|
---|
1835 | _ACEOF
|
---|
1836 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1837 | ac_header_compiler=yes
|
---|
1838 | else
|
---|
1839 | ac_header_compiler=no
|
---|
1840 | fi
|
---|
1841 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
|
---|
1843 | $as_echo "$ac_header_compiler" >&6; }
|
---|
1844 |
|
---|
1845 | # Is the header present?
|
---|
1846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
|
---|
1847 | $as_echo_n "checking $2 presence... " >&6; }
|
---|
1848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1849 | /* end confdefs.h. */
|
---|
1850 | #include <$2>
|
---|
1851 | _ACEOF
|
---|
1852 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
1853 | ac_header_preproc=yes
|
---|
1854 | else
|
---|
1855 | ac_header_preproc=no
|
---|
1856 | fi
|
---|
1857 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
1858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
|
---|
1859 | $as_echo "$ac_header_preproc" >&6; }
|
---|
1860 |
|
---|
1861 | # So? What about this header?
|
---|
1862 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
|
---|
1863 | yes:no: )
|
---|
1864 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
1865 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
1866 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
---|
1867 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
---|
1868 | ;;
|
---|
1869 | no:yes:* )
|
---|
1870 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
|
---|
1871 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
|
---|
1872 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
|
---|
1873 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
|
---|
1874 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
|
---|
1875 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
|
---|
1876 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
|
---|
1877 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
1878 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
---|
1879 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
---|
1880 | ( $as_echo "## ------------------------------- ##
|
---|
1881 | ## Report this to ogg-dev@xiph.org ##
|
---|
1882 | ## ------------------------------- ##"
|
---|
1883 | ) | sed "s/^/$as_me: WARNING: /" >&2
|
---|
1884 | ;;
|
---|
1885 | esac
|
---|
1886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1887 | $as_echo_n "checking for $2... " >&6; }
|
---|
1888 | if eval \${$3+:} false; then :
|
---|
1889 | $as_echo_n "(cached) " >&6
|
---|
1890 | else
|
---|
1891 | eval "$3=\$ac_header_compiler"
|
---|
1892 | fi
|
---|
1893 | eval ac_res=\$$3
|
---|
1894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1895 | $as_echo "$ac_res" >&6; }
|
---|
1896 | fi
|
---|
1897 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1898 |
|
---|
1899 | } # ac_fn_c_check_header_mongrel
|
---|
1900 |
|
---|
1901 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
|
---|
1902 | # --------------------------------------------
|
---|
1903 | # Tries to find the compile-time value of EXPR in a program that includes
|
---|
1904 | # INCLUDES, setting VAR accordingly. Returns whether the value could be
|
---|
1905 | # computed
|
---|
1906 | ac_fn_c_compute_int ()
|
---|
1907 | {
|
---|
1908 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1909 | if test "$cross_compiling" = yes; then
|
---|
1910 | # Depending upon the size, compute the lo and hi bounds.
|
---|
1911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1912 | /* end confdefs.h. */
|
---|
1913 | $4
|
---|
1914 | int
|
---|
1915 | main ()
|
---|
1916 | {
|
---|
1917 | static int test_array [1 - 2 * !(($2) >= 0)];
|
---|
1918 | test_array [0] = 0;
|
---|
1919 | return test_array [0];
|
---|
1920 |
|
---|
1921 | ;
|
---|
1922 | return 0;
|
---|
1923 | }
|
---|
1924 | _ACEOF
|
---|
1925 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1926 | ac_lo=0 ac_mid=0
|
---|
1927 | while :; do
|
---|
1928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1929 | /* end confdefs.h. */
|
---|
1930 | $4
|
---|
1931 | int
|
---|
1932 | main ()
|
---|
1933 | {
|
---|
1934 | static int test_array [1 - 2 * !(($2) <= $ac_mid)];
|
---|
1935 | test_array [0] = 0;
|
---|
1936 | return test_array [0];
|
---|
1937 |
|
---|
1938 | ;
|
---|
1939 | return 0;
|
---|
1940 | }
|
---|
1941 | _ACEOF
|
---|
1942 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1943 | ac_hi=$ac_mid; break
|
---|
1944 | else
|
---|
1945 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val
|
---|
1946 | if test $ac_lo -le $ac_mid; then
|
---|
1947 | ac_lo= ac_hi=
|
---|
1948 | break
|
---|
1949 | fi
|
---|
1950 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
|
---|
1951 | fi
|
---|
1952 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1953 | done
|
---|
1954 | else
|
---|
1955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1956 | /* end confdefs.h. */
|
---|
1957 | $4
|
---|
1958 | int
|
---|
1959 | main ()
|
---|
1960 | {
|
---|
1961 | static int test_array [1 - 2 * !(($2) < 0)];
|
---|
1962 | test_array [0] = 0;
|
---|
1963 | return test_array [0];
|
---|
1964 |
|
---|
1965 | ;
|
---|
1966 | return 0;
|
---|
1967 | }
|
---|
1968 | _ACEOF
|
---|
1969 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1970 | ac_hi=-1 ac_mid=-1
|
---|
1971 | while :; do
|
---|
1972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1973 | /* end confdefs.h. */
|
---|
1974 | $4
|
---|
1975 | int
|
---|
1976 | main ()
|
---|
1977 | {
|
---|
1978 | static int test_array [1 - 2 * !(($2) >= $ac_mid)];
|
---|
1979 | test_array [0] = 0;
|
---|
1980 | return test_array [0];
|
---|
1981 |
|
---|
1982 | ;
|
---|
1983 | return 0;
|
---|
1984 | }
|
---|
1985 | _ACEOF
|
---|
1986 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
1987 | ac_lo=$ac_mid; break
|
---|
1988 | else
|
---|
1989 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
|
---|
1990 | if test $ac_mid -le $ac_hi; then
|
---|
1991 | ac_lo= ac_hi=
|
---|
1992 | break
|
---|
1993 | fi
|
---|
1994 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
|
---|
1995 | fi
|
---|
1996 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1997 | done
|
---|
1998 | else
|
---|
1999 | ac_lo= ac_hi=
|
---|
2000 | fi
|
---|
2001 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2002 | fi
|
---|
2003 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2004 | # Binary search between lo and hi bounds.
|
---|
2005 | while test "x$ac_lo" != "x$ac_hi"; do
|
---|
2006 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
|
---|
2007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2008 | /* end confdefs.h. */
|
---|
2009 | $4
|
---|
2010 | int
|
---|
2011 | main ()
|
---|
2012 | {
|
---|
2013 | static int test_array [1 - 2 * !(($2) <= $ac_mid)];
|
---|
2014 | test_array [0] = 0;
|
---|
2015 | return test_array [0];
|
---|
2016 |
|
---|
2017 | ;
|
---|
2018 | return 0;
|
---|
2019 | }
|
---|
2020 | _ACEOF
|
---|
2021 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
2022 | ac_hi=$ac_mid
|
---|
2023 | else
|
---|
2024 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
|
---|
2025 | fi
|
---|
2026 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2027 | done
|
---|
2028 | case $ac_lo in #((
|
---|
2029 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
|
---|
2030 | '') ac_retval=1 ;;
|
---|
2031 | esac
|
---|
2032 | else
|
---|
2033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2034 | /* end confdefs.h. */
|
---|
2035 | $4
|
---|
2036 | static long int longval () { return $2; }
|
---|
2037 | static unsigned long int ulongval () { return $2; }
|
---|
2038 | #include <stdio.h>
|
---|
2039 | #include <stdlib.h>
|
---|
2040 | int
|
---|
2041 | main ()
|
---|
2042 | {
|
---|
2043 |
|
---|
2044 | FILE *f = fopen ("conftest.val", "w");
|
---|
2045 | if (! f)
|
---|
2046 | return 1;
|
---|
2047 | if (($2) < 0)
|
---|
2048 | {
|
---|
2049 | long int i = longval ();
|
---|
2050 | if (i != ($2))
|
---|
2051 | return 1;
|
---|
2052 | fprintf (f, "%ld", i);
|
---|
2053 | }
|
---|
2054 | else
|
---|
2055 | {
|
---|
2056 | unsigned long int i = ulongval ();
|
---|
2057 | if (i != ($2))
|
---|
2058 | return 1;
|
---|
2059 | fprintf (f, "%lu", i);
|
---|
2060 | }
|
---|
2061 | /* Do not output a trailing newline, as this causes \r\n confusion
|
---|
2062 | on some platforms. */
|
---|
2063 | return ferror (f) || fclose (f) != 0;
|
---|
2064 |
|
---|
2065 | ;
|
---|
2066 | return 0;
|
---|
2067 | }
|
---|
2068 | _ACEOF
|
---|
2069 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
2070 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0
|
---|
2071 | else
|
---|
2072 | ac_retval=1
|
---|
2073 | fi
|
---|
2074 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
2075 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
2076 | rm -f conftest.val
|
---|
2077 |
|
---|
2078 | fi
|
---|
2079 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
2080 | as_fn_set_status $ac_retval
|
---|
2081 |
|
---|
2082 | } # ac_fn_c_compute_int
|
---|
2083 | cat >config.log <<_ACEOF
|
---|
2084 | This file contains any messages produced by compilers while
|
---|
2085 | running configure, to aid debugging if configure makes a mistake.
|
---|
2086 |
|
---|
2087 | It was created by libogg $as_me 1.3.5, which was
|
---|
2088 | generated by GNU Autoconf 2.69. Invocation command line was
|
---|
2089 |
|
---|
2090 | $ $0 $@
|
---|
2091 |
|
---|
2092 | _ACEOF
|
---|
2093 | exec 5>>config.log
|
---|
2094 | {
|
---|
2095 | cat <<_ASUNAME
|
---|
2096 | ## --------- ##
|
---|
2097 | ## Platform. ##
|
---|
2098 | ## --------- ##
|
---|
2099 |
|
---|
2100 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
2101 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
2102 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
2103 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
2104 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
2105 |
|
---|
2106 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
2107 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
2108 |
|
---|
2109 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
2110 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
2111 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
2112 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
---|
2113 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
2114 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
2115 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
2116 |
|
---|
2117 | _ASUNAME
|
---|
2118 |
|
---|
2119 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2120 | for as_dir in $PATH
|
---|
2121 | do
|
---|
2122 | IFS=$as_save_IFS
|
---|
2123 | test -z "$as_dir" && as_dir=.
|
---|
2124 | $as_echo "PATH: $as_dir"
|
---|
2125 | done
|
---|
2126 | IFS=$as_save_IFS
|
---|
2127 |
|
---|
2128 | } >&5
|
---|
2129 |
|
---|
2130 | cat >&5 <<_ACEOF
|
---|
2131 |
|
---|
2132 |
|
---|
2133 | ## ----------- ##
|
---|
2134 | ## Core tests. ##
|
---|
2135 | ## ----------- ##
|
---|
2136 |
|
---|
2137 | _ACEOF
|
---|
2138 |
|
---|
2139 |
|
---|
2140 | # Keep a trace of the command line.
|
---|
2141 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
2142 | # Strip out --silent because we don't want to record it for future runs.
|
---|
2143 | # Also quote any args containing shell meta-characters.
|
---|
2144 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
2145 | ac_configure_args=
|
---|
2146 | ac_configure_args0=
|
---|
2147 | ac_configure_args1=
|
---|
2148 | ac_must_keep_next=false
|
---|
2149 | for ac_pass in 1 2
|
---|
2150 | do
|
---|
2151 | for ac_arg
|
---|
2152 | do
|
---|
2153 | case $ac_arg in
|
---|
2154 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
2155 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
2156 | | -silent | --silent | --silen | --sile | --sil)
|
---|
2157 | continue ;;
|
---|
2158 | *\'*)
|
---|
2159 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
2160 | esac
|
---|
2161 | case $ac_pass in
|
---|
2162 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
|
---|
2163 | 2)
|
---|
2164 | as_fn_append ac_configure_args1 " '$ac_arg'"
|
---|
2165 | if test $ac_must_keep_next = true; then
|
---|
2166 | ac_must_keep_next=false # Got value, back to normal.
|
---|
2167 | else
|
---|
2168 | case $ac_arg in
|
---|
2169 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
2170 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
2171 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
2172 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
2173 | case "$ac_configure_args0 " in
|
---|
2174 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
2175 | esac
|
---|
2176 | ;;
|
---|
2177 | -* ) ac_must_keep_next=true ;;
|
---|
2178 | esac
|
---|
2179 | fi
|
---|
2180 | as_fn_append ac_configure_args " '$ac_arg'"
|
---|
2181 | ;;
|
---|
2182 | esac
|
---|
2183 | done
|
---|
2184 | done
|
---|
2185 | { ac_configure_args0=; unset ac_configure_args0;}
|
---|
2186 | { ac_configure_args1=; unset ac_configure_args1;}
|
---|
2187 |
|
---|
2188 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
2189 | # config.log. We remove comments because anyway the quotes in there
|
---|
2190 | # would cause problems or look ugly.
|
---|
2191 | # WARNING: Use '\'' to represent an apostrophe within the trap.
|
---|
2192 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
---|
2193 | trap 'exit_status=$?
|
---|
2194 | # Save into config.log some information that might help in debugging.
|
---|
2195 | {
|
---|
2196 | echo
|
---|
2197 |
|
---|
2198 | $as_echo "## ---------------- ##
|
---|
2199 | ## Cache variables. ##
|
---|
2200 | ## ---------------- ##"
|
---|
2201 | echo
|
---|
2202 | # The following way of writing the cache mishandles newlines in values,
|
---|
2203 | (
|
---|
2204 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
---|
2205 | eval ac_val=\$$ac_var
|
---|
2206 | case $ac_val in #(
|
---|
2207 | *${as_nl}*)
|
---|
2208 | case $ac_var in #(
|
---|
2209 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
2210 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
2211 | esac
|
---|
2212 | case $ac_var in #(
|
---|
2213 | _ | IFS | as_nl) ;; #(
|
---|
2214 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
2215 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
2216 | esac ;;
|
---|
2217 | esac
|
---|
2218 | done
|
---|
2219 | (set) 2>&1 |
|
---|
2220 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
---|
2221 | *${as_nl}ac_space=\ *)
|
---|
2222 | sed -n \
|
---|
2223 | "s/'\''/'\''\\\\'\'''\''/g;
|
---|
2224 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
---|
2225 | ;; #(
|
---|
2226 | *)
|
---|
2227 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
2228 | ;;
|
---|
2229 | esac |
|
---|
2230 | sort
|
---|
2231 | )
|
---|
2232 | echo
|
---|
2233 |
|
---|
2234 | $as_echo "## ----------------- ##
|
---|
2235 | ## Output variables. ##
|
---|
2236 | ## ----------------- ##"
|
---|
2237 | echo
|
---|
2238 | for ac_var in $ac_subst_vars
|
---|
2239 | do
|
---|
2240 | eval ac_val=\$$ac_var
|
---|
2241 | case $ac_val in
|
---|
2242 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
2243 | esac
|
---|
2244 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
2245 | done | sort
|
---|
2246 | echo
|
---|
2247 |
|
---|
2248 | if test -n "$ac_subst_files"; then
|
---|
2249 | $as_echo "## ------------------- ##
|
---|
2250 | ## File substitutions. ##
|
---|
2251 | ## ------------------- ##"
|
---|
2252 | echo
|
---|
2253 | for ac_var in $ac_subst_files
|
---|
2254 | do
|
---|
2255 | eval ac_val=\$$ac_var
|
---|
2256 | case $ac_val in
|
---|
2257 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
2258 | esac
|
---|
2259 | $as_echo "$ac_var='\''$ac_val'\''"
|
---|
2260 | done | sort
|
---|
2261 | echo
|
---|
2262 | fi
|
---|
2263 |
|
---|
2264 | if test -s confdefs.h; then
|
---|
2265 | $as_echo "## ----------- ##
|
---|
2266 | ## confdefs.h. ##
|
---|
2267 | ## ----------- ##"
|
---|
2268 | echo
|
---|
2269 | cat confdefs.h
|
---|
2270 | echo
|
---|
2271 | fi
|
---|
2272 | test "$ac_signal" != 0 &&
|
---|
2273 | $as_echo "$as_me: caught signal $ac_signal"
|
---|
2274 | $as_echo "$as_me: exit $exit_status"
|
---|
2275 | } >&5
|
---|
2276 | rm -f core *.core core.conftest.* &&
|
---|
2277 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
2278 | exit $exit_status
|
---|
2279 | ' 0
|
---|
2280 | for ac_signal in 1 2 13 15; do
|
---|
2281 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
|
---|
2282 | done
|
---|
2283 | ac_signal=0
|
---|
2284 |
|
---|
2285 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
2286 | rm -f -r conftest* confdefs.h
|
---|
2287 |
|
---|
2288 | $as_echo "/* confdefs.h */" > confdefs.h
|
---|
2289 |
|
---|
2290 | # Predefined preprocessor variables.
|
---|
2291 |
|
---|
2292 | cat >>confdefs.h <<_ACEOF
|
---|
2293 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
2294 | _ACEOF
|
---|
2295 |
|
---|
2296 | cat >>confdefs.h <<_ACEOF
|
---|
2297 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
2298 | _ACEOF
|
---|
2299 |
|
---|
2300 | cat >>confdefs.h <<_ACEOF
|
---|
2301 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
2302 | _ACEOF
|
---|
2303 |
|
---|
2304 | cat >>confdefs.h <<_ACEOF
|
---|
2305 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
2306 | _ACEOF
|
---|
2307 |
|
---|
2308 | cat >>confdefs.h <<_ACEOF
|
---|
2309 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
2310 | _ACEOF
|
---|
2311 |
|
---|
2312 | cat >>confdefs.h <<_ACEOF
|
---|
2313 | #define PACKAGE_URL "$PACKAGE_URL"
|
---|
2314 | _ACEOF
|
---|
2315 |
|
---|
2316 |
|
---|
2317 | # Let the site file select an alternate cache file if it wants to.
|
---|
2318 | # Prefer an explicitly selected file to automatically selected ones.
|
---|
2319 | ac_site_file1=NONE
|
---|
2320 | ac_site_file2=NONE
|
---|
2321 | if test -n "$CONFIG_SITE"; then
|
---|
2322 | # We do not want a PATH search for config.site.
|
---|
2323 | case $CONFIG_SITE in #((
|
---|
2324 | -*) ac_site_file1=./$CONFIG_SITE;;
|
---|
2325 | */*) ac_site_file1=$CONFIG_SITE;;
|
---|
2326 | *) ac_site_file1=./$CONFIG_SITE;;
|
---|
2327 | esac
|
---|
2328 | elif test "x$prefix" != xNONE; then
|
---|
2329 | ac_site_file1=$prefix/share/config.site
|
---|
2330 | ac_site_file2=$prefix/etc/config.site
|
---|
2331 | else
|
---|
2332 | ac_site_file1=$ac_default_prefix/share/config.site
|
---|
2333 | ac_site_file2=$ac_default_prefix/etc/config.site
|
---|
2334 | fi
|
---|
2335 | for ac_site_file in "$ac_site_file1" "$ac_site_file2"
|
---|
2336 | do
|
---|
2337 | test "x$ac_site_file" = xNONE && continue
|
---|
2338 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
|
---|
2339 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
|
---|
2340 | $as_echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
2341 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
2342 | . "$ac_site_file" \
|
---|
2343 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2344 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2345 | as_fn_error $? "failed to load site script $ac_site_file
|
---|
2346 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
2347 | fi
|
---|
2348 | done
|
---|
2349 |
|
---|
2350 | if test -r "$cache_file"; then
|
---|
2351 | # Some versions of bash will fail to source /dev/null (special files
|
---|
2352 | # actually), so we avoid doing that. DJGPP emulates it as a regular file.
|
---|
2353 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then
|
---|
2354 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
|
---|
2355 | $as_echo "$as_me: loading cache $cache_file" >&6;}
|
---|
2356 | case $cache_file in
|
---|
2357 | [\\/]* | ?:[\\/]* ) . "$cache_file";;
|
---|
2358 | *) . "./$cache_file";;
|
---|
2359 | esac
|
---|
2360 | fi
|
---|
2361 | else
|
---|
2362 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
|
---|
2363 | $as_echo "$as_me: creating cache $cache_file" >&6;}
|
---|
2364 | >$cache_file
|
---|
2365 | fi
|
---|
2366 |
|
---|
2367 | # Check that the precious variables saved in the cache have kept the same
|
---|
2368 | # value.
|
---|
2369 | ac_cache_corrupted=false
|
---|
2370 | for ac_var in $ac_precious_vars; do
|
---|
2371 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
2372 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
2373 | eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
---|
2374 | eval ac_new_val=\$ac_env_${ac_var}_value
|
---|
2375 | case $ac_old_set,$ac_new_set in
|
---|
2376 | set,)
|
---|
2377 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
2378 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
2379 | ac_cache_corrupted=: ;;
|
---|
2380 | ,set)
|
---|
2381 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
|
---|
2382 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
2383 | ac_cache_corrupted=: ;;
|
---|
2384 | ,);;
|
---|
2385 | *)
|
---|
2386 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
2387 | # differences in whitespace do not lead to failure.
|
---|
2388 | ac_old_val_w=`echo x $ac_old_val`
|
---|
2389 | ac_new_val_w=`echo x $ac_new_val`
|
---|
2390 | if test "$ac_old_val_w" != "$ac_new_val_w"; then
|
---|
2391 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
2392 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
2393 | ac_cache_corrupted=:
|
---|
2394 | else
|
---|
2395 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
|
---|
2396 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
|
---|
2397 | eval $ac_var=\$ac_old_val
|
---|
2398 | fi
|
---|
2399 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
|
---|
2400 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
|
---|
2401 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
|
---|
2402 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
|
---|
2403 | fi;;
|
---|
2404 | esac
|
---|
2405 | # Pass precious variables to config.status.
|
---|
2406 | if test "$ac_new_set" = set; then
|
---|
2407 | case $ac_new_val in
|
---|
2408 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
2409 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
2410 | esac
|
---|
2411 | case " $ac_configure_args " in
|
---|
2412 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
2413 | *) as_fn_append ac_configure_args " '$ac_arg'" ;;
|
---|
2414 | esac
|
---|
2415 | fi
|
---|
2416 | done
|
---|
2417 | if $ac_cache_corrupted; then
|
---|
2418 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2419 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2420 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
|
---|
2421 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
2422 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
|
---|
2423 | fi
|
---|
2424 | ## -------------------- ##
|
---|
2425 | ## Main body of script. ##
|
---|
2426 | ## -------------------- ##
|
---|
2427 |
|
---|
2428 | ac_ext=c
|
---|
2429 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2430 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2431 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2432 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2433 |
|
---|
2434 |
|
---|
2435 |
|
---|
2436 | ac_aux_dir=
|
---|
2437 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
---|
2438 | if test -f "$ac_dir/install-sh"; then
|
---|
2439 | ac_aux_dir=$ac_dir
|
---|
2440 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
2441 | break
|
---|
2442 | elif test -f "$ac_dir/install.sh"; then
|
---|
2443 | ac_aux_dir=$ac_dir
|
---|
2444 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
2445 | break
|
---|
2446 | elif test -f "$ac_dir/shtool"; then
|
---|
2447 | ac_aux_dir=$ac_dir
|
---|
2448 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
2449 | break
|
---|
2450 | fi
|
---|
2451 | done
|
---|
2452 | if test -z "$ac_aux_dir"; then
|
---|
2453 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
|
---|
2454 | fi
|
---|
2455 |
|
---|
2456 | # These three variables are undocumented and unsupported,
|
---|
2457 | # and are intended to be withdrawn in a future Autoconf release.
|
---|
2458 | # They can cause serious problems if a builder's source tree is in a directory
|
---|
2459 | # whose full name contains unusual characters.
|
---|
2460 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
---|
2461 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
---|
2462 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
---|
2463 |
|
---|
2464 |
|
---|
2465 | case `pwd` in
|
---|
2466 | *\ * | *\ *)
|
---|
2467 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
|
---|
2468 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
|
---|
2469 | esac
|
---|
2470 |
|
---|
2471 |
|
---|
2472 |
|
---|
2473 | macro_version='2.4.6'
|
---|
2474 | macro_revision='2.4.6'
|
---|
2475 |
|
---|
2476 |
|
---|
2477 |
|
---|
2478 |
|
---|
2479 |
|
---|
2480 |
|
---|
2481 |
|
---|
2482 |
|
---|
2483 |
|
---|
2484 |
|
---|
2485 |
|
---|
2486 |
|
---|
2487 |
|
---|
2488 | ltmain=$ac_aux_dir/ltmain.sh
|
---|
2489 |
|
---|
2490 | # Make sure we can run config.sub.
|
---|
2491 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
---|
2492 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
|
---|
2493 |
|
---|
2494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
|
---|
2495 | $as_echo_n "checking build system type... " >&6; }
|
---|
2496 | if ${ac_cv_build+:} false; then :
|
---|
2497 | $as_echo_n "(cached) " >&6
|
---|
2498 | else
|
---|
2499 | ac_build_alias=$build_alias
|
---|
2500 | test "x$ac_build_alias" = x &&
|
---|
2501 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
---|
2502 | test "x$ac_build_alias" = x &&
|
---|
2503 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
|
---|
2504 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
---|
2505 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
|
---|
2506 |
|
---|
2507 | fi
|
---|
2508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
|
---|
2509 | $as_echo "$ac_cv_build" >&6; }
|
---|
2510 | case $ac_cv_build in
|
---|
2511 | *-*-*) ;;
|
---|
2512 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
|
---|
2513 | esac
|
---|
2514 | build=$ac_cv_build
|
---|
2515 | ac_save_IFS=$IFS; IFS='-'
|
---|
2516 | set x $ac_cv_build
|
---|
2517 | shift
|
---|
2518 | build_cpu=$1
|
---|
2519 | build_vendor=$2
|
---|
2520 | shift; shift
|
---|
2521 | # Remember, the first character of IFS is used to create $*,
|
---|
2522 | # except with old shells:
|
---|
2523 | build_os=$*
|
---|
2524 | IFS=$ac_save_IFS
|
---|
2525 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
---|
2526 |
|
---|
2527 |
|
---|
2528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
|
---|
2529 | $as_echo_n "checking host system type... " >&6; }
|
---|
2530 | if ${ac_cv_host+:} false; then :
|
---|
2531 | $as_echo_n "(cached) " >&6
|
---|
2532 | else
|
---|
2533 | if test "x$host_alias" = x; then
|
---|
2534 | ac_cv_host=$ac_cv_build
|
---|
2535 | else
|
---|
2536 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
---|
2537 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
|
---|
2538 | fi
|
---|
2539 |
|
---|
2540 | fi
|
---|
2541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
|
---|
2542 | $as_echo "$ac_cv_host" >&6; }
|
---|
2543 | case $ac_cv_host in
|
---|
2544 | *-*-*) ;;
|
---|
2545 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
|
---|
2546 | esac
|
---|
2547 | host=$ac_cv_host
|
---|
2548 | ac_save_IFS=$IFS; IFS='-'
|
---|
2549 | set x $ac_cv_host
|
---|
2550 | shift
|
---|
2551 | host_cpu=$1
|
---|
2552 | host_vendor=$2
|
---|
2553 | shift; shift
|
---|
2554 | # Remember, the first character of IFS is used to create $*,
|
---|
2555 | # except with old shells:
|
---|
2556 | host_os=$*
|
---|
2557 | IFS=$ac_save_IFS
|
---|
2558 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
---|
2559 |
|
---|
2560 |
|
---|
2561 | # Backslashify metacharacters that are still active within
|
---|
2562 | # double-quoted strings.
|
---|
2563 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
|
---|
2564 |
|
---|
2565 | # Same as above, but do not quote variable references.
|
---|
2566 | double_quote_subst='s/\(["`\\]\)/\\\1/g'
|
---|
2567 |
|
---|
2568 | # Sed substitution to delay expansion of an escaped shell variable in a
|
---|
2569 | # double_quote_subst'ed string.
|
---|
2570 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
|
---|
2571 |
|
---|
2572 | # Sed substitution to delay expansion of an escaped single quote.
|
---|
2573 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
|
---|
2574 |
|
---|
2575 | # Sed substitution to avoid accidental globbing in evaled expressions
|
---|
2576 | no_glob_subst='s/\*/\\\*/g'
|
---|
2577 |
|
---|
2578 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
2579 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
|
---|
2580 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
|
---|
2581 |
|
---|
2582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
|
---|
2583 | $as_echo_n "checking how to print strings... " >&6; }
|
---|
2584 | # Test print first, because it will be a builtin if present.
|
---|
2585 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
|
---|
2586 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
|
---|
2587 | ECHO='print -r --'
|
---|
2588 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
|
---|
2589 | ECHO='printf %s\n'
|
---|
2590 | else
|
---|
2591 | # Use this function as a fallback that always works.
|
---|
2592 | func_fallback_echo ()
|
---|
2593 | {
|
---|
2594 | eval 'cat <<_LTECHO_EOF
|
---|
2595 | $1
|
---|
2596 | _LTECHO_EOF'
|
---|
2597 | }
|
---|
2598 | ECHO='func_fallback_echo'
|
---|
2599 | fi
|
---|
2600 |
|
---|
2601 | # func_echo_all arg...
|
---|
2602 | # Invoke $ECHO with all args, space-separated.
|
---|
2603 | func_echo_all ()
|
---|
2604 | {
|
---|
2605 | $ECHO ""
|
---|
2606 | }
|
---|
2607 |
|
---|
2608 | case $ECHO in
|
---|
2609 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
|
---|
2610 | $as_echo "printf" >&6; } ;;
|
---|
2611 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
|
---|
2612 | $as_echo "print -r" >&6; } ;;
|
---|
2613 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
|
---|
2614 | $as_echo "cat" >&6; } ;;
|
---|
2615 | esac
|
---|
2616 |
|
---|
2617 |
|
---|
2618 |
|
---|
2619 |
|
---|
2620 |
|
---|
2621 |
|
---|
2622 |
|
---|
2623 |
|
---|
2624 |
|
---|
2625 |
|
---|
2626 |
|
---|
2627 |
|
---|
2628 |
|
---|
2629 |
|
---|
2630 | # Expand $ac_aux_dir to an absolute path.
|
---|
2631 | am_aux_dir=`cd "$ac_aux_dir" && pwd`
|
---|
2632 |
|
---|
2633 | ac_ext=c
|
---|
2634 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2635 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2636 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2637 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2638 | if test -n "$ac_tool_prefix"; then
|
---|
2639 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
2640 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
2641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2642 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2643 | if ${ac_cv_prog_CC+:} false; then :
|
---|
2644 | $as_echo_n "(cached) " >&6
|
---|
2645 | else
|
---|
2646 | if test -n "$CC"; then
|
---|
2647 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2648 | else
|
---|
2649 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2650 | for as_dir in $PATH
|
---|
2651 | do
|
---|
2652 | IFS=$as_save_IFS
|
---|
2653 | test -z "$as_dir" && as_dir=.
|
---|
2654 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2655 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2656 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
2657 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2658 | break 2
|
---|
2659 | fi
|
---|
2660 | done
|
---|
2661 | done
|
---|
2662 | IFS=$as_save_IFS
|
---|
2663 |
|
---|
2664 | fi
|
---|
2665 | fi
|
---|
2666 | CC=$ac_cv_prog_CC
|
---|
2667 | if test -n "$CC"; then
|
---|
2668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
2669 | $as_echo "$CC" >&6; }
|
---|
2670 | else
|
---|
2671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2672 | $as_echo "no" >&6; }
|
---|
2673 | fi
|
---|
2674 |
|
---|
2675 |
|
---|
2676 | fi
|
---|
2677 | if test -z "$ac_cv_prog_CC"; then
|
---|
2678 | ac_ct_CC=$CC
|
---|
2679 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
2680 | set dummy gcc; ac_word=$2
|
---|
2681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2682 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2683 | if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
---|
2684 | $as_echo_n "(cached) " >&6
|
---|
2685 | else
|
---|
2686 | if test -n "$ac_ct_CC"; then
|
---|
2687 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
2688 | else
|
---|
2689 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2690 | for as_dir in $PATH
|
---|
2691 | do
|
---|
2692 | IFS=$as_save_IFS
|
---|
2693 | test -z "$as_dir" && as_dir=.
|
---|
2694 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2695 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2696 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
2697 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2698 | break 2
|
---|
2699 | fi
|
---|
2700 | done
|
---|
2701 | done
|
---|
2702 | IFS=$as_save_IFS
|
---|
2703 |
|
---|
2704 | fi
|
---|
2705 | fi
|
---|
2706 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
2707 | if test -n "$ac_ct_CC"; then
|
---|
2708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
2709 | $as_echo "$ac_ct_CC" >&6; }
|
---|
2710 | else
|
---|
2711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2712 | $as_echo "no" >&6; }
|
---|
2713 | fi
|
---|
2714 |
|
---|
2715 | if test "x$ac_ct_CC" = x; then
|
---|
2716 | CC=""
|
---|
2717 | else
|
---|
2718 | case $cross_compiling:$ac_tool_warned in
|
---|
2719 | yes:)
|
---|
2720 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
2721 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
2722 | ac_tool_warned=yes ;;
|
---|
2723 | esac
|
---|
2724 | CC=$ac_ct_CC
|
---|
2725 | fi
|
---|
2726 | else
|
---|
2727 | CC="$ac_cv_prog_CC"
|
---|
2728 | fi
|
---|
2729 |
|
---|
2730 | if test -z "$CC"; then
|
---|
2731 | if test -n "$ac_tool_prefix"; then
|
---|
2732 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
2733 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
2734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2735 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2736 | if ${ac_cv_prog_CC+:} false; then :
|
---|
2737 | $as_echo_n "(cached) " >&6
|
---|
2738 | else
|
---|
2739 | if test -n "$CC"; then
|
---|
2740 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2741 | else
|
---|
2742 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2743 | for as_dir in $PATH
|
---|
2744 | do
|
---|
2745 | IFS=$as_save_IFS
|
---|
2746 | test -z "$as_dir" && as_dir=.
|
---|
2747 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2748 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2749 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
2750 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2751 | break 2
|
---|
2752 | fi
|
---|
2753 | done
|
---|
2754 | done
|
---|
2755 | IFS=$as_save_IFS
|
---|
2756 |
|
---|
2757 | fi
|
---|
2758 | fi
|
---|
2759 | CC=$ac_cv_prog_CC
|
---|
2760 | if test -n "$CC"; then
|
---|
2761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
2762 | $as_echo "$CC" >&6; }
|
---|
2763 | else
|
---|
2764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2765 | $as_echo "no" >&6; }
|
---|
2766 | fi
|
---|
2767 |
|
---|
2768 |
|
---|
2769 | fi
|
---|
2770 | fi
|
---|
2771 | if test -z "$CC"; then
|
---|
2772 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
2773 | set dummy cc; ac_word=$2
|
---|
2774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2775 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2776 | if ${ac_cv_prog_CC+:} false; then :
|
---|
2777 | $as_echo_n "(cached) " >&6
|
---|
2778 | else
|
---|
2779 | if test -n "$CC"; then
|
---|
2780 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2781 | else
|
---|
2782 | ac_prog_rejected=no
|
---|
2783 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2784 | for as_dir in $PATH
|
---|
2785 | do
|
---|
2786 | IFS=$as_save_IFS
|
---|
2787 | test -z "$as_dir" && as_dir=.
|
---|
2788 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2789 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2790 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
2791 | ac_prog_rejected=yes
|
---|
2792 | continue
|
---|
2793 | fi
|
---|
2794 | ac_cv_prog_CC="cc"
|
---|
2795 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2796 | break 2
|
---|
2797 | fi
|
---|
2798 | done
|
---|
2799 | done
|
---|
2800 | IFS=$as_save_IFS
|
---|
2801 |
|
---|
2802 | if test $ac_prog_rejected = yes; then
|
---|
2803 | # We found a bogon in the path, so make sure we never use it.
|
---|
2804 | set dummy $ac_cv_prog_CC
|
---|
2805 | shift
|
---|
2806 | if test $# != 0; then
|
---|
2807 | # We chose a different compiler from the bogus one.
|
---|
2808 | # However, it has the same basename, so the bogon will be chosen
|
---|
2809 | # first if we set CC to just the basename; use the full file name.
|
---|
2810 | shift
|
---|
2811 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
2812 | fi
|
---|
2813 | fi
|
---|
2814 | fi
|
---|
2815 | fi
|
---|
2816 | CC=$ac_cv_prog_CC
|
---|
2817 | if test -n "$CC"; then
|
---|
2818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
2819 | $as_echo "$CC" >&6; }
|
---|
2820 | else
|
---|
2821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2822 | $as_echo "no" >&6; }
|
---|
2823 | fi
|
---|
2824 |
|
---|
2825 |
|
---|
2826 | fi
|
---|
2827 | if test -z "$CC"; then
|
---|
2828 | if test -n "$ac_tool_prefix"; then
|
---|
2829 | for ac_prog in cl.exe
|
---|
2830 | do
|
---|
2831 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
2832 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
2833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2834 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2835 | if ${ac_cv_prog_CC+:} false; then :
|
---|
2836 | $as_echo_n "(cached) " >&6
|
---|
2837 | else
|
---|
2838 | if test -n "$CC"; then
|
---|
2839 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
2840 | else
|
---|
2841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2842 | for as_dir in $PATH
|
---|
2843 | do
|
---|
2844 | IFS=$as_save_IFS
|
---|
2845 | test -z "$as_dir" && as_dir=.
|
---|
2846 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2847 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2848 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
2849 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2850 | break 2
|
---|
2851 | fi
|
---|
2852 | done
|
---|
2853 | done
|
---|
2854 | IFS=$as_save_IFS
|
---|
2855 |
|
---|
2856 | fi
|
---|
2857 | fi
|
---|
2858 | CC=$ac_cv_prog_CC
|
---|
2859 | if test -n "$CC"; then
|
---|
2860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
2861 | $as_echo "$CC" >&6; }
|
---|
2862 | else
|
---|
2863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2864 | $as_echo "no" >&6; }
|
---|
2865 | fi
|
---|
2866 |
|
---|
2867 |
|
---|
2868 | test -n "$CC" && break
|
---|
2869 | done
|
---|
2870 | fi
|
---|
2871 | if test -z "$CC"; then
|
---|
2872 | ac_ct_CC=$CC
|
---|
2873 | for ac_prog in cl.exe
|
---|
2874 | do
|
---|
2875 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2876 | set dummy $ac_prog; ac_word=$2
|
---|
2877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
2878 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
2879 | if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
---|
2880 | $as_echo_n "(cached) " >&6
|
---|
2881 | else
|
---|
2882 | if test -n "$ac_ct_CC"; then
|
---|
2883 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
2884 | else
|
---|
2885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2886 | for as_dir in $PATH
|
---|
2887 | do
|
---|
2888 | IFS=$as_save_IFS
|
---|
2889 | test -z "$as_dir" && as_dir=.
|
---|
2890 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2891 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2892 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
2893 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2894 | break 2
|
---|
2895 | fi
|
---|
2896 | done
|
---|
2897 | done
|
---|
2898 | IFS=$as_save_IFS
|
---|
2899 |
|
---|
2900 | fi
|
---|
2901 | fi
|
---|
2902 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
2903 | if test -n "$ac_ct_CC"; then
|
---|
2904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
2905 | $as_echo "$ac_ct_CC" >&6; }
|
---|
2906 | else
|
---|
2907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
2908 | $as_echo "no" >&6; }
|
---|
2909 | fi
|
---|
2910 |
|
---|
2911 |
|
---|
2912 | test -n "$ac_ct_CC" && break
|
---|
2913 | done
|
---|
2914 |
|
---|
2915 | if test "x$ac_ct_CC" = x; then
|
---|
2916 | CC=""
|
---|
2917 | else
|
---|
2918 | case $cross_compiling:$ac_tool_warned in
|
---|
2919 | yes:)
|
---|
2920 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
2921 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
2922 | ac_tool_warned=yes ;;
|
---|
2923 | esac
|
---|
2924 | CC=$ac_ct_CC
|
---|
2925 | fi
|
---|
2926 | fi
|
---|
2927 |
|
---|
2928 | fi
|
---|
2929 |
|
---|
2930 |
|
---|
2931 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
2932 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
2933 | as_fn_error $? "no acceptable C compiler found in \$PATH
|
---|
2934 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
2935 |
|
---|
2936 | # Provide some information about the compiler.
|
---|
2937 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
---|
2938 | set X $ac_compile
|
---|
2939 | ac_compiler=$2
|
---|
2940 | for ac_option in --version -v -V -qversion; do
|
---|
2941 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
2942 | case "(($ac_try" in
|
---|
2943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2944 | *) ac_try_echo=$ac_try;;
|
---|
2945 | esac
|
---|
2946 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
2947 | $as_echo "$ac_try_echo"; } >&5
|
---|
2948 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
---|
2949 | ac_status=$?
|
---|
2950 | if test -s conftest.err; then
|
---|
2951 | sed '10a\
|
---|
2952 | ... rest of stderr output deleted ...
|
---|
2953 | 10q' conftest.err >conftest.er1
|
---|
2954 | cat conftest.er1 >&5
|
---|
2955 | fi
|
---|
2956 | rm -f conftest.er1 conftest.err
|
---|
2957 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
2958 | test $ac_status = 0; }
|
---|
2959 | done
|
---|
2960 |
|
---|
2961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
2962 | /* end confdefs.h. */
|
---|
2963 |
|
---|
2964 | int
|
---|
2965 | main ()
|
---|
2966 | {
|
---|
2967 |
|
---|
2968 | ;
|
---|
2969 | return 0;
|
---|
2970 | }
|
---|
2971 | _ACEOF
|
---|
2972 | ac_clean_files_save=$ac_clean_files
|
---|
2973 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
|
---|
2974 | # Try to create an executable without -o first, disregard a.out.
|
---|
2975 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
2976 | # of exeext.
|
---|
2977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
|
---|
2978 | $as_echo_n "checking whether the C compiler works... " >&6; }
|
---|
2979 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
2980 |
|
---|
2981 | # The possible output files:
|
---|
2982 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
|
---|
2983 |
|
---|
2984 | ac_rmfiles=
|
---|
2985 | for ac_file in $ac_files
|
---|
2986 | do
|
---|
2987 | case $ac_file in
|
---|
2988 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
2989 | * ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
---|
2990 | esac
|
---|
2991 | done
|
---|
2992 | rm -f $ac_rmfiles
|
---|
2993 |
|
---|
2994 | if { { ac_try="$ac_link_default"
|
---|
2995 | case "(($ac_try" in
|
---|
2996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2997 | *) ac_try_echo=$ac_try;;
|
---|
2998 | esac
|
---|
2999 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3000 | $as_echo "$ac_try_echo"; } >&5
|
---|
3001 | (eval "$ac_link_default") 2>&5
|
---|
3002 | ac_status=$?
|
---|
3003 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3004 | test $ac_status = 0; }; then :
|
---|
3005 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
---|
3006 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
---|
3007 | # in a Makefile. We should not override ac_cv_exeext if it was cached,
|
---|
3008 | # so that the user can short-circuit this test for compilers unknown to
|
---|
3009 | # Autoconf.
|
---|
3010 | for ac_file in $ac_files ''
|
---|
3011 | do
|
---|
3012 | test -f "$ac_file" || continue
|
---|
3013 | case $ac_file in
|
---|
3014 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
|
---|
3015 | ;;
|
---|
3016 | [ab].out )
|
---|
3017 | # We found the default executable, but exeext='' is most
|
---|
3018 | # certainly right.
|
---|
3019 | break;;
|
---|
3020 | *.* )
|
---|
3021 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
---|
3022 | then :; else
|
---|
3023 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
3024 | fi
|
---|
3025 | # We set ac_cv_exeext here because the later test for it is not
|
---|
3026 | # safe: cross compilers may not add the suffix if given an `-o'
|
---|
3027 | # argument, so we may need to know it at that point already.
|
---|
3028 | # Even if this section looks crufty: it has the advantage of
|
---|
3029 | # actually working.
|
---|
3030 | break;;
|
---|
3031 | * )
|
---|
3032 | break;;
|
---|
3033 | esac
|
---|
3034 | done
|
---|
3035 | test "$ac_cv_exeext" = no && ac_cv_exeext=
|
---|
3036 |
|
---|
3037 | else
|
---|
3038 | ac_file=''
|
---|
3039 | fi
|
---|
3040 | if test -z "$ac_file"; then :
|
---|
3041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3042 | $as_echo "no" >&6; }
|
---|
3043 | $as_echo "$as_me: failed program was:" >&5
|
---|
3044 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3045 |
|
---|
3046 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
3047 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
3048 | as_fn_error 77 "C compiler cannot create executables
|
---|
3049 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
3050 | else
|
---|
3051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
3052 | $as_echo "yes" >&6; }
|
---|
3053 | fi
|
---|
3054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
|
---|
3055 | $as_echo_n "checking for C compiler default output file name... " >&6; }
|
---|
3056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
---|
3057 | $as_echo "$ac_file" >&6; }
|
---|
3058 | ac_exeext=$ac_cv_exeext
|
---|
3059 |
|
---|
3060 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
|
---|
3061 | ac_clean_files=$ac_clean_files_save
|
---|
3062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
|
---|
3063 | $as_echo_n "checking for suffix of executables... " >&6; }
|
---|
3064 | if { { ac_try="$ac_link"
|
---|
3065 | case "(($ac_try" in
|
---|
3066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3067 | *) ac_try_echo=$ac_try;;
|
---|
3068 | esac
|
---|
3069 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3070 | $as_echo "$ac_try_echo"; } >&5
|
---|
3071 | (eval "$ac_link") 2>&5
|
---|
3072 | ac_status=$?
|
---|
3073 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3074 | test $ac_status = 0; }; then :
|
---|
3075 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
3076 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
3077 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
3078 | # `rm'.
|
---|
3079 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
3080 | test -f "$ac_file" || continue
|
---|
3081 | case $ac_file in
|
---|
3082 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
3083 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
3084 | break;;
|
---|
3085 | * ) break;;
|
---|
3086 | esac
|
---|
3087 | done
|
---|
3088 | else
|
---|
3089 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
3090 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
3091 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link
|
---|
3092 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
3093 | fi
|
---|
3094 | rm -f conftest conftest$ac_cv_exeext
|
---|
3095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
|
---|
3096 | $as_echo "$ac_cv_exeext" >&6; }
|
---|
3097 |
|
---|
3098 | rm -f conftest.$ac_ext
|
---|
3099 | EXEEXT=$ac_cv_exeext
|
---|
3100 | ac_exeext=$EXEEXT
|
---|
3101 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3102 | /* end confdefs.h. */
|
---|
3103 | #include <stdio.h>
|
---|
3104 | int
|
---|
3105 | main ()
|
---|
3106 | {
|
---|
3107 | FILE *f = fopen ("conftest.out", "w");
|
---|
3108 | return ferror (f) || fclose (f) != 0;
|
---|
3109 |
|
---|
3110 | ;
|
---|
3111 | return 0;
|
---|
3112 | }
|
---|
3113 | _ACEOF
|
---|
3114 | ac_clean_files="$ac_clean_files conftest.out"
|
---|
3115 | # Check that the compiler produces executables we can run. If not, either
|
---|
3116 | # the compiler is broken, or we cross compile.
|
---|
3117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
|
---|
3118 | $as_echo_n "checking whether we are cross compiling... " >&6; }
|
---|
3119 | if test "$cross_compiling" != yes; then
|
---|
3120 | { { ac_try="$ac_link"
|
---|
3121 | case "(($ac_try" in
|
---|
3122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3123 | *) ac_try_echo=$ac_try;;
|
---|
3124 | esac
|
---|
3125 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3126 | $as_echo "$ac_try_echo"; } >&5
|
---|
3127 | (eval "$ac_link") 2>&5
|
---|
3128 | ac_status=$?
|
---|
3129 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3130 | test $ac_status = 0; }
|
---|
3131 | if { ac_try='./conftest$ac_cv_exeext'
|
---|
3132 | { { case "(($ac_try" in
|
---|
3133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3134 | *) ac_try_echo=$ac_try;;
|
---|
3135 | esac
|
---|
3136 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3137 | $as_echo "$ac_try_echo"; } >&5
|
---|
3138 | (eval "$ac_try") 2>&5
|
---|
3139 | ac_status=$?
|
---|
3140 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3141 | test $ac_status = 0; }; }; then
|
---|
3142 | cross_compiling=no
|
---|
3143 | else
|
---|
3144 | if test "$cross_compiling" = maybe; then
|
---|
3145 | cross_compiling=yes
|
---|
3146 | else
|
---|
3147 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
3148 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
3149 | as_fn_error $? "cannot run C compiled programs.
|
---|
3150 | If you meant to cross compile, use \`--host'.
|
---|
3151 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
3152 | fi
|
---|
3153 | fi
|
---|
3154 | fi
|
---|
3155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
|
---|
3156 | $as_echo "$cross_compiling" >&6; }
|
---|
3157 |
|
---|
3158 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
|
---|
3159 | ac_clean_files=$ac_clean_files_save
|
---|
3160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
|
---|
3161 | $as_echo_n "checking for suffix of object files... " >&6; }
|
---|
3162 | if ${ac_cv_objext+:} false; then :
|
---|
3163 | $as_echo_n "(cached) " >&6
|
---|
3164 | else
|
---|
3165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3166 | /* end confdefs.h. */
|
---|
3167 |
|
---|
3168 | int
|
---|
3169 | main ()
|
---|
3170 | {
|
---|
3171 |
|
---|
3172 | ;
|
---|
3173 | return 0;
|
---|
3174 | }
|
---|
3175 | _ACEOF
|
---|
3176 | rm -f conftest.o conftest.obj
|
---|
3177 | if { { ac_try="$ac_compile"
|
---|
3178 | case "(($ac_try" in
|
---|
3179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3180 | *) ac_try_echo=$ac_try;;
|
---|
3181 | esac
|
---|
3182 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
3183 | $as_echo "$ac_try_echo"; } >&5
|
---|
3184 | (eval "$ac_compile") 2>&5
|
---|
3185 | ac_status=$?
|
---|
3186 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
3187 | test $ac_status = 0; }; then :
|
---|
3188 | for ac_file in conftest.o conftest.obj conftest.*; do
|
---|
3189 | test -f "$ac_file" || continue;
|
---|
3190 | case $ac_file in
|
---|
3191 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
|
---|
3192 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
3193 | break;;
|
---|
3194 | esac
|
---|
3195 | done
|
---|
3196 | else
|
---|
3197 | $as_echo "$as_me: failed program was:" >&5
|
---|
3198 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3199 |
|
---|
3200 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
3201 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
3202 | as_fn_error $? "cannot compute suffix of object files: cannot compile
|
---|
3203 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
3204 | fi
|
---|
3205 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
3206 | fi
|
---|
3207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
|
---|
3208 | $as_echo "$ac_cv_objext" >&6; }
|
---|
3209 | OBJEXT=$ac_cv_objext
|
---|
3210 | ac_objext=$OBJEXT
|
---|
3211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
|
---|
3212 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
|
---|
3213 | if ${ac_cv_c_compiler_gnu+:} false; then :
|
---|
3214 | $as_echo_n "(cached) " >&6
|
---|
3215 | else
|
---|
3216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3217 | /* end confdefs.h. */
|
---|
3218 |
|
---|
3219 | int
|
---|
3220 | main ()
|
---|
3221 | {
|
---|
3222 | #ifndef __GNUC__
|
---|
3223 | choke me
|
---|
3224 | #endif
|
---|
3225 |
|
---|
3226 | ;
|
---|
3227 | return 0;
|
---|
3228 | }
|
---|
3229 | _ACEOF
|
---|
3230 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3231 | ac_compiler_gnu=yes
|
---|
3232 | else
|
---|
3233 | ac_compiler_gnu=no
|
---|
3234 | fi
|
---|
3235 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3236 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
3237 |
|
---|
3238 | fi
|
---|
3239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
|
---|
3240 | $as_echo "$ac_cv_c_compiler_gnu" >&6; }
|
---|
3241 | if test $ac_compiler_gnu = yes; then
|
---|
3242 | GCC=yes
|
---|
3243 | else
|
---|
3244 | GCC=
|
---|
3245 | fi
|
---|
3246 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
3247 | ac_save_CFLAGS=$CFLAGS
|
---|
3248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
|
---|
3249 | $as_echo_n "checking whether $CC accepts -g... " >&6; }
|
---|
3250 | if ${ac_cv_prog_cc_g+:} false; then :
|
---|
3251 | $as_echo_n "(cached) " >&6
|
---|
3252 | else
|
---|
3253 | ac_save_c_werror_flag=$ac_c_werror_flag
|
---|
3254 | ac_c_werror_flag=yes
|
---|
3255 | ac_cv_prog_cc_g=no
|
---|
3256 | CFLAGS="-g"
|
---|
3257 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3258 | /* end confdefs.h. */
|
---|
3259 |
|
---|
3260 | int
|
---|
3261 | main ()
|
---|
3262 | {
|
---|
3263 |
|
---|
3264 | ;
|
---|
3265 | return 0;
|
---|
3266 | }
|
---|
3267 | _ACEOF
|
---|
3268 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3269 | ac_cv_prog_cc_g=yes
|
---|
3270 | else
|
---|
3271 | CFLAGS=""
|
---|
3272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3273 | /* end confdefs.h. */
|
---|
3274 |
|
---|
3275 | int
|
---|
3276 | main ()
|
---|
3277 | {
|
---|
3278 |
|
---|
3279 | ;
|
---|
3280 | return 0;
|
---|
3281 | }
|
---|
3282 | _ACEOF
|
---|
3283 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3284 |
|
---|
3285 | else
|
---|
3286 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
3287 | CFLAGS="-g"
|
---|
3288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3289 | /* end confdefs.h. */
|
---|
3290 |
|
---|
3291 | int
|
---|
3292 | main ()
|
---|
3293 | {
|
---|
3294 |
|
---|
3295 | ;
|
---|
3296 | return 0;
|
---|
3297 | }
|
---|
3298 | _ACEOF
|
---|
3299 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3300 | ac_cv_prog_cc_g=yes
|
---|
3301 | fi
|
---|
3302 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3303 | fi
|
---|
3304 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3305 | fi
|
---|
3306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3307 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
3308 | fi
|
---|
3309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
|
---|
3310 | $as_echo "$ac_cv_prog_cc_g" >&6; }
|
---|
3311 | if test "$ac_test_CFLAGS" = set; then
|
---|
3312 | CFLAGS=$ac_save_CFLAGS
|
---|
3313 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
3314 | if test "$GCC" = yes; then
|
---|
3315 | CFLAGS="-g -O2"
|
---|
3316 | else
|
---|
3317 | CFLAGS="-g"
|
---|
3318 | fi
|
---|
3319 | else
|
---|
3320 | if test "$GCC" = yes; then
|
---|
3321 | CFLAGS="-O2"
|
---|
3322 | else
|
---|
3323 | CFLAGS=
|
---|
3324 | fi
|
---|
3325 | fi
|
---|
3326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
|
---|
3327 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
|
---|
3328 | if ${ac_cv_prog_cc_c89+:} false; then :
|
---|
3329 | $as_echo_n "(cached) " >&6
|
---|
3330 | else
|
---|
3331 | ac_cv_prog_cc_c89=no
|
---|
3332 | ac_save_CC=$CC
|
---|
3333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3334 | /* end confdefs.h. */
|
---|
3335 | #include <stdarg.h>
|
---|
3336 | #include <stdio.h>
|
---|
3337 | struct stat;
|
---|
3338 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
3339 | struct buf { int x; };
|
---|
3340 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
3341 | static char *e (p, i)
|
---|
3342 | char **p;
|
---|
3343 | int i;
|
---|
3344 | {
|
---|
3345 | return p[i];
|
---|
3346 | }
|
---|
3347 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
3348 | {
|
---|
3349 | char *s;
|
---|
3350 | va_list v;
|
---|
3351 | va_start (v,p);
|
---|
3352 | s = g (p, va_arg (v,int));
|
---|
3353 | va_end (v);
|
---|
3354 | return s;
|
---|
3355 | }
|
---|
3356 |
|
---|
3357 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
3358 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
3359 | These don't provoke an error unfortunately, instead are silently treated
|
---|
3360 | as 'x'. The following induces an error, until -std is added to get
|
---|
3361 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
3362 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
3363 | that's true only with -std. */
|
---|
3364 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
3365 |
|
---|
3366 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
---|
3367 | inside strings and character constants. */
|
---|
3368 | #define FOO(x) 'x'
|
---|
3369 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
---|
3370 |
|
---|
3371 | int test (int i, double x);
|
---|
3372 | struct s1 {int (*f) (int a);};
|
---|
3373 | struct s2 {int (*f) (double a);};
|
---|
3374 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
3375 | int argc;
|
---|
3376 | char **argv;
|
---|
3377 | int
|
---|
3378 | main ()
|
---|
3379 | {
|
---|
3380 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
3381 | ;
|
---|
3382 | return 0;
|
---|
3383 | }
|
---|
3384 | _ACEOF
|
---|
3385 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
---|
3386 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
3387 | do
|
---|
3388 | CC="$ac_save_CC $ac_arg"
|
---|
3389 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
3390 | ac_cv_prog_cc_c89=$ac_arg
|
---|
3391 | fi
|
---|
3392 | rm -f core conftest.err conftest.$ac_objext
|
---|
3393 | test "x$ac_cv_prog_cc_c89" != "xno" && break
|
---|
3394 | done
|
---|
3395 | rm -f conftest.$ac_ext
|
---|
3396 | CC=$ac_save_CC
|
---|
3397 |
|
---|
3398 | fi
|
---|
3399 | # AC_CACHE_VAL
|
---|
3400 | case "x$ac_cv_prog_cc_c89" in
|
---|
3401 | x)
|
---|
3402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
---|
3403 | $as_echo "none needed" >&6; } ;;
|
---|
3404 | xno)
|
---|
3405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
---|
3406 | $as_echo "unsupported" >&6; } ;;
|
---|
3407 | *)
|
---|
3408 | CC="$CC $ac_cv_prog_cc_c89"
|
---|
3409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
---|
3410 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
|
---|
3411 | esac
|
---|
3412 | if test "x$ac_cv_prog_cc_c89" != xno; then :
|
---|
3413 |
|
---|
3414 | fi
|
---|
3415 |
|
---|
3416 | ac_ext=c
|
---|
3417 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3418 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3419 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3420 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3421 |
|
---|
3422 | ac_ext=c
|
---|
3423 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3424 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3425 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3426 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
|
---|
3428 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
|
---|
3429 | if ${am_cv_prog_cc_c_o+:} false; then :
|
---|
3430 | $as_echo_n "(cached) " >&6
|
---|
3431 | else
|
---|
3432 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
3433 | /* end confdefs.h. */
|
---|
3434 |
|
---|
3435 | int
|
---|
3436 | main ()
|
---|
3437 | {
|
---|
3438 |
|
---|
3439 | ;
|
---|
3440 | return 0;
|
---|
3441 | }
|
---|
3442 | _ACEOF
|
---|
3443 | # Make sure it works both with $CC and with simple cc.
|
---|
3444 | # Following AC_PROG_CC_C_O, we do the test twice because some
|
---|
3445 | # compilers refuse to overwrite an existing .o file with -o,
|
---|
3446 | # though they will create one.
|
---|
3447 | am_cv_prog_cc_c_o=yes
|
---|
3448 | for am_i in 1 2; do
|
---|
3449 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
|
---|
3450 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
|
---|
3451 | ac_status=$?
|
---|
3452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3453 | (exit $ac_status); } \
|
---|
3454 | && test -f conftest2.$ac_objext; then
|
---|
3455 | : OK
|
---|
3456 | else
|
---|
3457 | am_cv_prog_cc_c_o=no
|
---|
3458 | break
|
---|
3459 | fi
|
---|
3460 | done
|
---|
3461 | rm -f core conftest*
|
---|
3462 | unset am_i
|
---|
3463 | fi
|
---|
3464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
|
---|
3465 | $as_echo "$am_cv_prog_cc_c_o" >&6; }
|
---|
3466 | if test "$am_cv_prog_cc_c_o" != yes; then
|
---|
3467 | # Losing compiler, so override with the script.
|
---|
3468 | # FIXME: It is wrong to rewrite CC.
|
---|
3469 | # But if we don't then we get into trouble of one sort or another.
|
---|
3470 | # A longer-term fix would be to have automake use am__CC in this case,
|
---|
3471 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
|
---|
3472 | CC="$am_aux_dir/compile $CC"
|
---|
3473 | fi
|
---|
3474 | ac_ext=c
|
---|
3475 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3476 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3477 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3478 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3479 |
|
---|
3480 |
|
---|
3481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
|
---|
3482 | $as_echo_n "checking for a sed that does not truncate output... " >&6; }
|
---|
3483 | if ${ac_cv_path_SED+:} false; then :
|
---|
3484 | $as_echo_n "(cached) " >&6
|
---|
3485 | else
|
---|
3486 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
|
---|
3487 | for ac_i in 1 2 3 4 5 6 7; do
|
---|
3488 | ac_script="$ac_script$as_nl$ac_script"
|
---|
3489 | done
|
---|
3490 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
|
---|
3491 | { ac_script=; unset ac_script;}
|
---|
3492 | if test -z "$SED"; then
|
---|
3493 | ac_path_SED_found=false
|
---|
3494 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
3495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3496 | for as_dir in $PATH
|
---|
3497 | do
|
---|
3498 | IFS=$as_save_IFS
|
---|
3499 | test -z "$as_dir" && as_dir=.
|
---|
3500 | for ac_prog in sed gsed; do
|
---|
3501 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3502 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
|
---|
3503 | as_fn_executable_p "$ac_path_SED" || continue
|
---|
3504 | # Check for GNU ac_path_SED and select it if it is found.
|
---|
3505 | # Check for GNU $ac_path_SED
|
---|
3506 | case `"$ac_path_SED" --version 2>&1` in
|
---|
3507 | *GNU*)
|
---|
3508 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
|
---|
3509 | *)
|
---|
3510 | ac_count=0
|
---|
3511 | $as_echo_n 0123456789 >"conftest.in"
|
---|
3512 | while :
|
---|
3513 | do
|
---|
3514 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
3515 | mv "conftest.tmp" "conftest.in"
|
---|
3516 | cp "conftest.in" "conftest.nl"
|
---|
3517 | $as_echo '' >> "conftest.nl"
|
---|
3518 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
3519 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
3520 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
3521 | if test $ac_count -gt ${ac_path_SED_max-0}; then
|
---|
3522 | # Best one so far, save it but keep looking for a better one
|
---|
3523 | ac_cv_path_SED="$ac_path_SED"
|
---|
3524 | ac_path_SED_max=$ac_count
|
---|
3525 | fi
|
---|
3526 | # 10*(2^10) chars as input seems more than enough
|
---|
3527 | test $ac_count -gt 10 && break
|
---|
3528 | done
|
---|
3529 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
3530 | esac
|
---|
3531 |
|
---|
3532 | $ac_path_SED_found && break 3
|
---|
3533 | done
|
---|
3534 | done
|
---|
3535 | done
|
---|
3536 | IFS=$as_save_IFS
|
---|
3537 | if test -z "$ac_cv_path_SED"; then
|
---|
3538 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
|
---|
3539 | fi
|
---|
3540 | else
|
---|
3541 | ac_cv_path_SED=$SED
|
---|
3542 | fi
|
---|
3543 |
|
---|
3544 | fi
|
---|
3545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
|
---|
3546 | $as_echo "$ac_cv_path_SED" >&6; }
|
---|
3547 | SED="$ac_cv_path_SED"
|
---|
3548 | rm -f conftest.sed
|
---|
3549 |
|
---|
3550 | test -z "$SED" && SED=sed
|
---|
3551 | Xsed="$SED -e 1s/^X//"
|
---|
3552 |
|
---|
3553 |
|
---|
3554 |
|
---|
3555 |
|
---|
3556 |
|
---|
3557 |
|
---|
3558 |
|
---|
3559 |
|
---|
3560 |
|
---|
3561 |
|
---|
3562 |
|
---|
3563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
|
---|
3564 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
|
---|
3565 | if ${ac_cv_path_GREP+:} false; then :
|
---|
3566 | $as_echo_n "(cached) " >&6
|
---|
3567 | else
|
---|
3568 | if test -z "$GREP"; then
|
---|
3569 | ac_path_GREP_found=false
|
---|
3570 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
3571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3572 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
3573 | do
|
---|
3574 | IFS=$as_save_IFS
|
---|
3575 | test -z "$as_dir" && as_dir=.
|
---|
3576 | for ac_prog in grep ggrep; do
|
---|
3577 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3578 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
3579 | as_fn_executable_p "$ac_path_GREP" || continue
|
---|
3580 | # Check for GNU ac_path_GREP and select it if it is found.
|
---|
3581 | # Check for GNU $ac_path_GREP
|
---|
3582 | case `"$ac_path_GREP" --version 2>&1` in
|
---|
3583 | *GNU*)
|
---|
3584 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
---|
3585 | *)
|
---|
3586 | ac_count=0
|
---|
3587 | $as_echo_n 0123456789 >"conftest.in"
|
---|
3588 | while :
|
---|
3589 | do
|
---|
3590 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
3591 | mv "conftest.tmp" "conftest.in"
|
---|
3592 | cp "conftest.in" "conftest.nl"
|
---|
3593 | $as_echo 'GREP' >> "conftest.nl"
|
---|
3594 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
3595 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
3596 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
3597 | if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
---|
3598 | # Best one so far, save it but keep looking for a better one
|
---|
3599 | ac_cv_path_GREP="$ac_path_GREP"
|
---|
3600 | ac_path_GREP_max=$ac_count
|
---|
3601 | fi
|
---|
3602 | # 10*(2^10) chars as input seems more than enough
|
---|
3603 | test $ac_count -gt 10 && break
|
---|
3604 | done
|
---|
3605 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
3606 | esac
|
---|
3607 |
|
---|
3608 | $ac_path_GREP_found && break 3
|
---|
3609 | done
|
---|
3610 | done
|
---|
3611 | done
|
---|
3612 | IFS=$as_save_IFS
|
---|
3613 | if test -z "$ac_cv_path_GREP"; then
|
---|
3614 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
3615 | fi
|
---|
3616 | else
|
---|
3617 | ac_cv_path_GREP=$GREP
|
---|
3618 | fi
|
---|
3619 |
|
---|
3620 | fi
|
---|
3621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
|
---|
3622 | $as_echo "$ac_cv_path_GREP" >&6; }
|
---|
3623 | GREP="$ac_cv_path_GREP"
|
---|
3624 |
|
---|
3625 |
|
---|
3626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
|
---|
3627 | $as_echo_n "checking for egrep... " >&6; }
|
---|
3628 | if ${ac_cv_path_EGREP+:} false; then :
|
---|
3629 | $as_echo_n "(cached) " >&6
|
---|
3630 | else
|
---|
3631 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
---|
3632 | then ac_cv_path_EGREP="$GREP -E"
|
---|
3633 | else
|
---|
3634 | if test -z "$EGREP"; then
|
---|
3635 | ac_path_EGREP_found=false
|
---|
3636 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
3637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3638 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
3639 | do
|
---|
3640 | IFS=$as_save_IFS
|
---|
3641 | test -z "$as_dir" && as_dir=.
|
---|
3642 | for ac_prog in egrep; do
|
---|
3643 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3644 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
3645 | as_fn_executable_p "$ac_path_EGREP" || continue
|
---|
3646 | # Check for GNU ac_path_EGREP and select it if it is found.
|
---|
3647 | # Check for GNU $ac_path_EGREP
|
---|
3648 | case `"$ac_path_EGREP" --version 2>&1` in
|
---|
3649 | *GNU*)
|
---|
3650 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
---|
3651 | *)
|
---|
3652 | ac_count=0
|
---|
3653 | $as_echo_n 0123456789 >"conftest.in"
|
---|
3654 | while :
|
---|
3655 | do
|
---|
3656 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
3657 | mv "conftest.tmp" "conftest.in"
|
---|
3658 | cp "conftest.in" "conftest.nl"
|
---|
3659 | $as_echo 'EGREP' >> "conftest.nl"
|
---|
3660 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
3661 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
3662 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
3663 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
---|
3664 | # Best one so far, save it but keep looking for a better one
|
---|
3665 | ac_cv_path_EGREP="$ac_path_EGREP"
|
---|
3666 | ac_path_EGREP_max=$ac_count
|
---|
3667 | fi
|
---|
3668 | # 10*(2^10) chars as input seems more than enough
|
---|
3669 | test $ac_count -gt 10 && break
|
---|
3670 | done
|
---|
3671 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
3672 | esac
|
---|
3673 |
|
---|
3674 | $ac_path_EGREP_found && break 3
|
---|
3675 | done
|
---|
3676 | done
|
---|
3677 | done
|
---|
3678 | IFS=$as_save_IFS
|
---|
3679 | if test -z "$ac_cv_path_EGREP"; then
|
---|
3680 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
3681 | fi
|
---|
3682 | else
|
---|
3683 | ac_cv_path_EGREP=$EGREP
|
---|
3684 | fi
|
---|
3685 |
|
---|
3686 | fi
|
---|
3687 | fi
|
---|
3688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
|
---|
3689 | $as_echo "$ac_cv_path_EGREP" >&6; }
|
---|
3690 | EGREP="$ac_cv_path_EGREP"
|
---|
3691 |
|
---|
3692 |
|
---|
3693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
|
---|
3694 | $as_echo_n "checking for fgrep... " >&6; }
|
---|
3695 | if ${ac_cv_path_FGREP+:} false; then :
|
---|
3696 | $as_echo_n "(cached) " >&6
|
---|
3697 | else
|
---|
3698 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
|
---|
3699 | then ac_cv_path_FGREP="$GREP -F"
|
---|
3700 | else
|
---|
3701 | if test -z "$FGREP"; then
|
---|
3702 | ac_path_FGREP_found=false
|
---|
3703 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
3704 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3705 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
3706 | do
|
---|
3707 | IFS=$as_save_IFS
|
---|
3708 | test -z "$as_dir" && as_dir=.
|
---|
3709 | for ac_prog in fgrep; do
|
---|
3710 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3711 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
3712 | as_fn_executable_p "$ac_path_FGREP" || continue
|
---|
3713 | # Check for GNU ac_path_FGREP and select it if it is found.
|
---|
3714 | # Check for GNU $ac_path_FGREP
|
---|
3715 | case `"$ac_path_FGREP" --version 2>&1` in
|
---|
3716 | *GNU*)
|
---|
3717 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
|
---|
3718 | *)
|
---|
3719 | ac_count=0
|
---|
3720 | $as_echo_n 0123456789 >"conftest.in"
|
---|
3721 | while :
|
---|
3722 | do
|
---|
3723 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
3724 | mv "conftest.tmp" "conftest.in"
|
---|
3725 | cp "conftest.in" "conftest.nl"
|
---|
3726 | $as_echo 'FGREP' >> "conftest.nl"
|
---|
3727 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
3728 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
3729 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
3730 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then
|
---|
3731 | # Best one so far, save it but keep looking for a better one
|
---|
3732 | ac_cv_path_FGREP="$ac_path_FGREP"
|
---|
3733 | ac_path_FGREP_max=$ac_count
|
---|
3734 | fi
|
---|
3735 | # 10*(2^10) chars as input seems more than enough
|
---|
3736 | test $ac_count -gt 10 && break
|
---|
3737 | done
|
---|
3738 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
3739 | esac
|
---|
3740 |
|
---|
3741 | $ac_path_FGREP_found && break 3
|
---|
3742 | done
|
---|
3743 | done
|
---|
3744 | done
|
---|
3745 | IFS=$as_save_IFS
|
---|
3746 | if test -z "$ac_cv_path_FGREP"; then
|
---|
3747 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
3748 | fi
|
---|
3749 | else
|
---|
3750 | ac_cv_path_FGREP=$FGREP
|
---|
3751 | fi
|
---|
3752 |
|
---|
3753 | fi
|
---|
3754 | fi
|
---|
3755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
|
---|
3756 | $as_echo "$ac_cv_path_FGREP" >&6; }
|
---|
3757 | FGREP="$ac_cv_path_FGREP"
|
---|
3758 |
|
---|
3759 |
|
---|
3760 | test -z "$GREP" && GREP=grep
|
---|
3761 |
|
---|
3762 |
|
---|
3763 |
|
---|
3764 |
|
---|
3765 |
|
---|
3766 |
|
---|
3767 |
|
---|
3768 |
|
---|
3769 |
|
---|
3770 |
|
---|
3771 |
|
---|
3772 |
|
---|
3773 |
|
---|
3774 |
|
---|
3775 |
|
---|
3776 |
|
---|
3777 |
|
---|
3778 |
|
---|
3779 |
|
---|
3780 | # Check whether --with-gnu-ld was given.
|
---|
3781 | if test "${with_gnu_ld+set}" = set; then :
|
---|
3782 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
|
---|
3783 | else
|
---|
3784 | with_gnu_ld=no
|
---|
3785 | fi
|
---|
3786 |
|
---|
3787 | ac_prog=ld
|
---|
3788 | if test yes = "$GCC"; then
|
---|
3789 | # Check if gcc -print-prog-name=ld gives a path.
|
---|
3790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
|
---|
3791 | $as_echo_n "checking for ld used by $CC... " >&6; }
|
---|
3792 | case $host in
|
---|
3793 | *-*-mingw*)
|
---|
3794 | # gcc leaves a trailing carriage return, which upsets mingw
|
---|
3795 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
---|
3796 | *)
|
---|
3797 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
---|
3798 | esac
|
---|
3799 | case $ac_prog in
|
---|
3800 | # Accept absolute paths.
|
---|
3801 | [\\/]* | ?:[\\/]*)
|
---|
3802 | re_direlt='/[^/][^/]*/\.\./'
|
---|
3803 | # Canonicalize the pathname of ld
|
---|
3804 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
|
---|
3805 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
|
---|
3806 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
|
---|
3807 | done
|
---|
3808 | test -z "$LD" && LD=$ac_prog
|
---|
3809 | ;;
|
---|
3810 | "")
|
---|
3811 | # If it fails, then pretend we aren't using GCC.
|
---|
3812 | ac_prog=ld
|
---|
3813 | ;;
|
---|
3814 | *)
|
---|
3815 | # If it is relative, then search for the first ld in PATH.
|
---|
3816 | with_gnu_ld=unknown
|
---|
3817 | ;;
|
---|
3818 | esac
|
---|
3819 | elif test yes = "$with_gnu_ld"; then
|
---|
3820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
|
---|
3821 | $as_echo_n "checking for GNU ld... " >&6; }
|
---|
3822 | else
|
---|
3823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
|
---|
3824 | $as_echo_n "checking for non-GNU ld... " >&6; }
|
---|
3825 | fi
|
---|
3826 | if ${lt_cv_path_LD+:} false; then :
|
---|
3827 | $as_echo_n "(cached) " >&6
|
---|
3828 | else
|
---|
3829 | if test -z "$LD"; then
|
---|
3830 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
|
---|
3831 | for ac_dir in $PATH; do
|
---|
3832 | IFS=$lt_save_ifs
|
---|
3833 | test -z "$ac_dir" && ac_dir=.
|
---|
3834 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
---|
3835 | lt_cv_path_LD=$ac_dir/$ac_prog
|
---|
3836 | # Check to see if the program is GNU ld. I'd rather use --version,
|
---|
3837 | # but apparently some variants of GNU ld only accept -v.
|
---|
3838 | # Break only if it was the GNU/non-GNU ld that we prefer.
|
---|
3839 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
|
---|
3840 | *GNU* | *'with BFD'*)
|
---|
3841 | test no != "$with_gnu_ld" && break
|
---|
3842 | ;;
|
---|
3843 | *)
|
---|
3844 | test yes != "$with_gnu_ld" && break
|
---|
3845 | ;;
|
---|
3846 | esac
|
---|
3847 | fi
|
---|
3848 | done
|
---|
3849 | IFS=$lt_save_ifs
|
---|
3850 | else
|
---|
3851 | lt_cv_path_LD=$LD # Let the user override the test with a path.
|
---|
3852 | fi
|
---|
3853 | fi
|
---|
3854 |
|
---|
3855 | LD=$lt_cv_path_LD
|
---|
3856 | if test -n "$LD"; then
|
---|
3857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
|
---|
3858 | $as_echo "$LD" >&6; }
|
---|
3859 | else
|
---|
3860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3861 | $as_echo "no" >&6; }
|
---|
3862 | fi
|
---|
3863 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
|
---|
3864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
|
---|
3865 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
|
---|
3866 | if ${lt_cv_prog_gnu_ld+:} false; then :
|
---|
3867 | $as_echo_n "(cached) " >&6
|
---|
3868 | else
|
---|
3869 | # I'd rather use --version here, but apparently some GNU lds only accept -v.
|
---|
3870 | case `$LD -v 2>&1 </dev/null` in
|
---|
3871 | *GNU* | *'with BFD'*)
|
---|
3872 | lt_cv_prog_gnu_ld=yes
|
---|
3873 | ;;
|
---|
3874 | *)
|
---|
3875 | lt_cv_prog_gnu_ld=no
|
---|
3876 | ;;
|
---|
3877 | esac
|
---|
3878 | fi
|
---|
3879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
|
---|
3880 | $as_echo "$lt_cv_prog_gnu_ld" >&6; }
|
---|
3881 | with_gnu_ld=$lt_cv_prog_gnu_ld
|
---|
3882 |
|
---|
3883 |
|
---|
3884 |
|
---|
3885 |
|
---|
3886 |
|
---|
3887 |
|
---|
3888 |
|
---|
3889 |
|
---|
3890 |
|
---|
3891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
|
---|
3892 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
|
---|
3893 | if ${lt_cv_path_NM+:} false; then :
|
---|
3894 | $as_echo_n "(cached) " >&6
|
---|
3895 | else
|
---|
3896 | if test -n "$NM"; then
|
---|
3897 | # Let the user override the test.
|
---|
3898 | lt_cv_path_NM=$NM
|
---|
3899 | else
|
---|
3900 | lt_nm_to_check=${ac_tool_prefix}nm
|
---|
3901 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
|
---|
3902 | lt_nm_to_check="$lt_nm_to_check nm"
|
---|
3903 | fi
|
---|
3904 | for lt_tmp_nm in $lt_nm_to_check; do
|
---|
3905 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
|
---|
3906 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
|
---|
3907 | IFS=$lt_save_ifs
|
---|
3908 | test -z "$ac_dir" && ac_dir=.
|
---|
3909 | tmp_nm=$ac_dir/$lt_tmp_nm
|
---|
3910 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
|
---|
3911 | # Check to see if the nm accepts a BSD-compat flag.
|
---|
3912 | # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
|
---|
3913 | # nm: unknown option "B" ignored
|
---|
3914 | # Tru64's nm complains that /dev/null is an invalid object file
|
---|
3915 | # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
|
---|
3916 | case $build_os in
|
---|
3917 | mingw*) lt_bad_file=conftest.nm/nofile ;;
|
---|
3918 | *) lt_bad_file=/dev/null ;;
|
---|
3919 | esac
|
---|
3920 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
|
---|
3921 | *$lt_bad_file* | *'Invalid file or object type'*)
|
---|
3922 | lt_cv_path_NM="$tmp_nm -B"
|
---|
3923 | break 2
|
---|
3924 | ;;
|
---|
3925 | *)
|
---|
3926 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
|
---|
3927 | */dev/null*)
|
---|
3928 | lt_cv_path_NM="$tmp_nm -p"
|
---|
3929 | break 2
|
---|
3930 | ;;
|
---|
3931 | *)
|
---|
3932 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
---|
3933 | continue # so that we can try to find one that supports BSD flags
|
---|
3934 | ;;
|
---|
3935 | esac
|
---|
3936 | ;;
|
---|
3937 | esac
|
---|
3938 | fi
|
---|
3939 | done
|
---|
3940 | IFS=$lt_save_ifs
|
---|
3941 | done
|
---|
3942 | : ${lt_cv_path_NM=no}
|
---|
3943 | fi
|
---|
3944 | fi
|
---|
3945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
|
---|
3946 | $as_echo "$lt_cv_path_NM" >&6; }
|
---|
3947 | if test no != "$lt_cv_path_NM"; then
|
---|
3948 | NM=$lt_cv_path_NM
|
---|
3949 | else
|
---|
3950 | # Didn't find any BSD compatible name lister, look for dumpbin.
|
---|
3951 | if test -n "$DUMPBIN"; then :
|
---|
3952 | # Let the user override the test.
|
---|
3953 | else
|
---|
3954 | if test -n "$ac_tool_prefix"; then
|
---|
3955 | for ac_prog in dumpbin "link -dump"
|
---|
3956 | do
|
---|
3957 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
3958 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
3959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3960 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
3961 | if ${ac_cv_prog_DUMPBIN+:} false; then :
|
---|
3962 | $as_echo_n "(cached) " >&6
|
---|
3963 | else
|
---|
3964 | if test -n "$DUMPBIN"; then
|
---|
3965 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
|
---|
3966 | else
|
---|
3967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3968 | for as_dir in $PATH
|
---|
3969 | do
|
---|
3970 | IFS=$as_save_IFS
|
---|
3971 | test -z "$as_dir" && as_dir=.
|
---|
3972 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3973 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3974 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
|
---|
3975 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3976 | break 2
|
---|
3977 | fi
|
---|
3978 | done
|
---|
3979 | done
|
---|
3980 | IFS=$as_save_IFS
|
---|
3981 |
|
---|
3982 | fi
|
---|
3983 | fi
|
---|
3984 | DUMPBIN=$ac_cv_prog_DUMPBIN
|
---|
3985 | if test -n "$DUMPBIN"; then
|
---|
3986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
|
---|
3987 | $as_echo "$DUMPBIN" >&6; }
|
---|
3988 | else
|
---|
3989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3990 | $as_echo "no" >&6; }
|
---|
3991 | fi
|
---|
3992 |
|
---|
3993 |
|
---|
3994 | test -n "$DUMPBIN" && break
|
---|
3995 | done
|
---|
3996 | fi
|
---|
3997 | if test -z "$DUMPBIN"; then
|
---|
3998 | ac_ct_DUMPBIN=$DUMPBIN
|
---|
3999 | for ac_prog in dumpbin "link -dump"
|
---|
4000 | do
|
---|
4001 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
4002 | set dummy $ac_prog; ac_word=$2
|
---|
4003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4004 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4005 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
|
---|
4006 | $as_echo_n "(cached) " >&6
|
---|
4007 | else
|
---|
4008 | if test -n "$ac_ct_DUMPBIN"; then
|
---|
4009 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
|
---|
4010 | else
|
---|
4011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4012 | for as_dir in $PATH
|
---|
4013 | do
|
---|
4014 | IFS=$as_save_IFS
|
---|
4015 | test -z "$as_dir" && as_dir=.
|
---|
4016 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4017 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
4018 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
|
---|
4019 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4020 | break 2
|
---|
4021 | fi
|
---|
4022 | done
|
---|
4023 | done
|
---|
4024 | IFS=$as_save_IFS
|
---|
4025 |
|
---|
4026 | fi
|
---|
4027 | fi
|
---|
4028 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
|
---|
4029 | if test -n "$ac_ct_DUMPBIN"; then
|
---|
4030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
|
---|
4031 | $as_echo "$ac_ct_DUMPBIN" >&6; }
|
---|
4032 | else
|
---|
4033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4034 | $as_echo "no" >&6; }
|
---|
4035 | fi
|
---|
4036 |
|
---|
4037 |
|
---|
4038 | test -n "$ac_ct_DUMPBIN" && break
|
---|
4039 | done
|
---|
4040 |
|
---|
4041 | if test "x$ac_ct_DUMPBIN" = x; then
|
---|
4042 | DUMPBIN=":"
|
---|
4043 | else
|
---|
4044 | case $cross_compiling:$ac_tool_warned in
|
---|
4045 | yes:)
|
---|
4046 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
4047 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
4048 | ac_tool_warned=yes ;;
|
---|
4049 | esac
|
---|
4050 | DUMPBIN=$ac_ct_DUMPBIN
|
---|
4051 | fi
|
---|
4052 | fi
|
---|
4053 |
|
---|
4054 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
|
---|
4055 | *COFF*)
|
---|
4056 | DUMPBIN="$DUMPBIN -symbols -headers"
|
---|
4057 | ;;
|
---|
4058 | *)
|
---|
4059 | DUMPBIN=:
|
---|
4060 | ;;
|
---|
4061 | esac
|
---|
4062 | fi
|
---|
4063 |
|
---|
4064 | if test : != "$DUMPBIN"; then
|
---|
4065 | NM=$DUMPBIN
|
---|
4066 | fi
|
---|
4067 | fi
|
---|
4068 | test -z "$NM" && NM=nm
|
---|
4069 |
|
---|
4070 |
|
---|
4071 |
|
---|
4072 |
|
---|
4073 |
|
---|
4074 |
|
---|
4075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
|
---|
4076 | $as_echo_n "checking the name lister ($NM) interface... " >&6; }
|
---|
4077 | if ${lt_cv_nm_interface+:} false; then :
|
---|
4078 | $as_echo_n "(cached) " >&6
|
---|
4079 | else
|
---|
4080 | lt_cv_nm_interface="BSD nm"
|
---|
4081 | echo "int some_variable = 0;" > conftest.$ac_ext
|
---|
4082 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
|
---|
4083 | (eval "$ac_compile" 2>conftest.err)
|
---|
4084 | cat conftest.err >&5
|
---|
4085 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
|
---|
4086 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
|
---|
4087 | cat conftest.err >&5
|
---|
4088 | (eval echo "\"\$as_me:$LINENO: output\"" >&5)
|
---|
4089 | cat conftest.out >&5
|
---|
4090 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then
|
---|
4091 | lt_cv_nm_interface="MS dumpbin"
|
---|
4092 | fi
|
---|
4093 | rm -f conftest*
|
---|
4094 | fi
|
---|
4095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
|
---|
4096 | $as_echo "$lt_cv_nm_interface" >&6; }
|
---|
4097 |
|
---|
4098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
|
---|
4099 | $as_echo_n "checking whether ln -s works... " >&6; }
|
---|
4100 | LN_S=$as_ln_s
|
---|
4101 | if test "$LN_S" = "ln -s"; then
|
---|
4102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
4103 | $as_echo "yes" >&6; }
|
---|
4104 | else
|
---|
4105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
|
---|
4106 | $as_echo "no, using $LN_S" >&6; }
|
---|
4107 | fi
|
---|
4108 |
|
---|
4109 | # find the maximum length of command line arguments
|
---|
4110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
|
---|
4111 | $as_echo_n "checking the maximum length of command line arguments... " >&6; }
|
---|
4112 | if ${lt_cv_sys_max_cmd_len+:} false; then :
|
---|
4113 | $as_echo_n "(cached) " >&6
|
---|
4114 | else
|
---|
4115 | i=0
|
---|
4116 | teststring=ABCD
|
---|
4117 |
|
---|
4118 | case $build_os in
|
---|
4119 | msdosdjgpp*)
|
---|
4120 | # On DJGPP, this test can blow up pretty badly due to problems in libc
|
---|
4121 | # (any single argument exceeding 2000 bytes causes a buffer overrun
|
---|
4122 | # during glob expansion). Even if it were fixed, the result of this
|
---|
4123 | # check would be larger than it should be.
|
---|
4124 | lt_cv_sys_max_cmd_len=12288; # 12K is about right
|
---|
4125 | ;;
|
---|
4126 |
|
---|
4127 | gnu*)
|
---|
4128 | # Under GNU Hurd, this test is not required because there is
|
---|
4129 | # no limit to the length of command line arguments.
|
---|
4130 | # Libtool will interpret -1 as no limit whatsoever
|
---|
4131 | lt_cv_sys_max_cmd_len=-1;
|
---|
4132 | ;;
|
---|
4133 |
|
---|
4134 | cygwin* | mingw* | cegcc*)
|
---|
4135 | # On Win9x/ME, this test blows up -- it succeeds, but takes
|
---|
4136 | # about 5 minutes as the teststring grows exponentially.
|
---|
4137 | # Worse, since 9x/ME are not pre-emptively multitasking,
|
---|
4138 | # you end up with a "frozen" computer, even though with patience
|
---|
4139 | # the test eventually succeeds (with a max line length of 256k).
|
---|
4140 | # Instead, let's just punt: use the minimum linelength reported by
|
---|
4141 | # all of the supported platforms: 8192 (on NT/2K/XP).
|
---|
4142 | lt_cv_sys_max_cmd_len=8192;
|
---|
4143 | ;;
|
---|
4144 |
|
---|
4145 | mint*)
|
---|
4146 | # On MiNT this can take a long time and run out of memory.
|
---|
4147 | lt_cv_sys_max_cmd_len=8192;
|
---|
4148 | ;;
|
---|
4149 |
|
---|
4150 | amigaos*)
|
---|
4151 | # On AmigaOS with pdksh, this test takes hours, literally.
|
---|
4152 | # So we just punt and use a minimum line length of 8192.
|
---|
4153 | lt_cv_sys_max_cmd_len=8192;
|
---|
4154 | ;;
|
---|
4155 |
|
---|
4156 | bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
|
---|
4157 | # This has been around since 386BSD, at least. Likely further.
|
---|
4158 | if test -x /sbin/sysctl; then
|
---|
4159 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
|
---|
4160 | elif test -x /usr/sbin/sysctl; then
|
---|
4161 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
|
---|
4162 | else
|
---|
4163 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
|
---|
4164 | fi
|
---|
4165 | # And add a safety zone
|
---|
4166 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
---|
4167 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
---|
4168 | ;;
|
---|
4169 |
|
---|
4170 | interix*)
|
---|
4171 | # We know the value 262144 and hardcode it with a safety zone (like BSD)
|
---|
4172 | lt_cv_sys_max_cmd_len=196608
|
---|
4173 | ;;
|
---|
4174 |
|
---|
4175 | os2*)
|
---|
4176 | # The test takes a long time on OS/2.
|
---|
4177 | lt_cv_sys_max_cmd_len=8192
|
---|
4178 | ;;
|
---|
4179 |
|
---|
4180 | osf*)
|
---|
4181 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
|
---|
4182 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
|
---|
4183 | # nice to cause kernel panics so lets avoid the loop below.
|
---|
4184 | # First set a reasonable default.
|
---|
4185 | lt_cv_sys_max_cmd_len=16384
|
---|
4186 | #
|
---|
4187 | if test -x /sbin/sysconfig; then
|
---|
4188 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
|
---|
4189 | *1*) lt_cv_sys_max_cmd_len=-1 ;;
|
---|
4190 | esac
|
---|
4191 | fi
|
---|
4192 | ;;
|
---|
4193 | sco3.2v5*)
|
---|
4194 | lt_cv_sys_max_cmd_len=102400
|
---|
4195 | ;;
|
---|
4196 | sysv5* | sco5v6* | sysv4.2uw2*)
|
---|
4197 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
|
---|
4198 | if test -n "$kargmax"; then
|
---|
4199 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
|
---|
4200 | else
|
---|
4201 | lt_cv_sys_max_cmd_len=32768
|
---|
4202 | fi
|
---|
4203 | ;;
|
---|
4204 | *)
|
---|
4205 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
|
---|
4206 | if test -n "$lt_cv_sys_max_cmd_len" && \
|
---|
4207 | test undefined != "$lt_cv_sys_max_cmd_len"; then
|
---|
4208 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
---|
4209 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
---|
4210 | else
|
---|
4211 | # Make teststring a little bigger before we do anything with it.
|
---|
4212 | # a 1K string should be a reasonable start.
|
---|
4213 | for i in 1 2 3 4 5 6 7 8; do
|
---|
4214 | teststring=$teststring$teststring
|
---|
4215 | done
|
---|
4216 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
|
---|
4217 | # If test is not a shell built-in, we'll probably end up computing a
|
---|
4218 | # maximum length that is only half of the actual maximum length, but
|
---|
4219 | # we can't tell.
|
---|
4220 | while { test X`env echo "$teststring$teststring" 2>/dev/null` \
|
---|
4221 | = "X$teststring$teststring"; } >/dev/null 2>&1 &&
|
---|
4222 | test 17 != "$i" # 1/2 MB should be enough
|
---|
4223 | do
|
---|
4224 | i=`expr $i + 1`
|
---|
4225 | teststring=$teststring$teststring
|
---|
4226 | done
|
---|
4227 | # Only check the string length outside the loop.
|
---|
4228 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
|
---|
4229 | teststring=
|
---|
4230 | # Add a significant safety factor because C++ compilers can tack on
|
---|
4231 | # massive amounts of additional arguments before passing them to the
|
---|
4232 | # linker. It appears as though 1/2 is a usable value.
|
---|
4233 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
|
---|
4234 | fi
|
---|
4235 | ;;
|
---|
4236 | esac
|
---|
4237 |
|
---|
4238 | fi
|
---|
4239 |
|
---|
4240 | if test -n "$lt_cv_sys_max_cmd_len"; then
|
---|
4241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
|
---|
4242 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
|
---|
4243 | else
|
---|
4244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
|
---|
4245 | $as_echo "none" >&6; }
|
---|
4246 | fi
|
---|
4247 | max_cmd_len=$lt_cv_sys_max_cmd_len
|
---|
4248 |
|
---|
4249 |
|
---|
4250 |
|
---|
4251 |
|
---|
4252 |
|
---|
4253 |
|
---|
4254 | : ${CP="cp -f"}
|
---|
4255 | : ${MV="mv -f"}
|
---|
4256 | : ${RM="rm -f"}
|
---|
4257 |
|
---|
4258 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
4259 | lt_unset=unset
|
---|
4260 | else
|
---|
4261 | lt_unset=false
|
---|
4262 | fi
|
---|
4263 |
|
---|
4264 |
|
---|
4265 |
|
---|
4266 |
|
---|
4267 |
|
---|
4268 | # test EBCDIC or ASCII
|
---|
4269 | case `echo X|tr X '\101'` in
|
---|
4270 | A) # ASCII based system
|
---|
4271 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
|
---|
4272 | lt_SP2NL='tr \040 \012'
|
---|
4273 | lt_NL2SP='tr \015\012 \040\040'
|
---|
4274 | ;;
|
---|
4275 | *) # EBCDIC based system
|
---|
4276 | lt_SP2NL='tr \100 \n'
|
---|
4277 | lt_NL2SP='tr \r\n \100\100'
|
---|
4278 | ;;
|
---|
4279 | esac
|
---|
4280 |
|
---|
4281 |
|
---|
4282 |
|
---|
4283 |
|
---|
4284 |
|
---|
4285 |
|
---|
4286 |
|
---|
4287 |
|
---|
4288 |
|
---|
4289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
|
---|
4290 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
|
---|
4291 | if ${lt_cv_to_host_file_cmd+:} false; then :
|
---|
4292 | $as_echo_n "(cached) " >&6
|
---|
4293 | else
|
---|
4294 | case $host in
|
---|
4295 | *-*-mingw* )
|
---|
4296 | case $build in
|
---|
4297 | *-*-mingw* ) # actually msys
|
---|
4298 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
|
---|
4299 | ;;
|
---|
4300 | *-*-cygwin* )
|
---|
4301 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
|
---|
4302 | ;;
|
---|
4303 | * ) # otherwise, assume *nix
|
---|
4304 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
|
---|
4305 | ;;
|
---|
4306 | esac
|
---|
4307 | ;;
|
---|
4308 | *-*-cygwin* )
|
---|
4309 | case $build in
|
---|
4310 | *-*-mingw* ) # actually msys
|
---|
4311 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
|
---|
4312 | ;;
|
---|
4313 | *-*-cygwin* )
|
---|
4314 | lt_cv_to_host_file_cmd=func_convert_file_noop
|
---|
4315 | ;;
|
---|
4316 | * ) # otherwise, assume *nix
|
---|
4317 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
|
---|
4318 | ;;
|
---|
4319 | esac
|
---|
4320 | ;;
|
---|
4321 | * ) # unhandled hosts (and "normal" native builds)
|
---|
4322 | lt_cv_to_host_file_cmd=func_convert_file_noop
|
---|
4323 | ;;
|
---|
4324 | esac
|
---|
4325 |
|
---|
4326 | fi
|
---|
4327 |
|
---|
4328 | to_host_file_cmd=$lt_cv_to_host_file_cmd
|
---|
4329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
|
---|
4330 | $as_echo "$lt_cv_to_host_file_cmd" >&6; }
|
---|
4331 |
|
---|
4332 |
|
---|
4333 |
|
---|
4334 |
|
---|
4335 |
|
---|
4336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
|
---|
4337 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
|
---|
4338 | if ${lt_cv_to_tool_file_cmd+:} false; then :
|
---|
4339 | $as_echo_n "(cached) " >&6
|
---|
4340 | else
|
---|
4341 | #assume ordinary cross tools, or native build.
|
---|
4342 | lt_cv_to_tool_file_cmd=func_convert_file_noop
|
---|
4343 | case $host in
|
---|
4344 | *-*-mingw* )
|
---|
4345 | case $build in
|
---|
4346 | *-*-mingw* ) # actually msys
|
---|
4347 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
|
---|
4348 | ;;
|
---|
4349 | esac
|
---|
4350 | ;;
|
---|
4351 | esac
|
---|
4352 |
|
---|
4353 | fi
|
---|
4354 |
|
---|
4355 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
---|
4356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
|
---|
4357 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
|
---|
4358 |
|
---|
4359 |
|
---|
4360 |
|
---|
4361 |
|
---|
4362 |
|
---|
4363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
|
---|
4364 | $as_echo_n "checking for $LD option to reload object files... " >&6; }
|
---|
4365 | if ${lt_cv_ld_reload_flag+:} false; then :
|
---|
4366 | $as_echo_n "(cached) " >&6
|
---|
4367 | else
|
---|
4368 | lt_cv_ld_reload_flag='-r'
|
---|
4369 | fi
|
---|
4370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
|
---|
4371 | $as_echo "$lt_cv_ld_reload_flag" >&6; }
|
---|
4372 | reload_flag=$lt_cv_ld_reload_flag
|
---|
4373 | case $reload_flag in
|
---|
4374 | "" | " "*) ;;
|
---|
4375 | *) reload_flag=" $reload_flag" ;;
|
---|
4376 | esac
|
---|
4377 | reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
---|
4378 | case $host_os in
|
---|
4379 | cygwin* | mingw* | pw32* | cegcc*)
|
---|
4380 | if test yes != "$GCC"; then
|
---|
4381 | reload_cmds=false
|
---|
4382 | fi
|
---|
4383 | ;;
|
---|
4384 | darwin*)
|
---|
4385 | if test yes = "$GCC"; then
|
---|
4386 | reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
|
---|
4387 | else
|
---|
4388 | reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
---|
4389 | fi
|
---|
4390 | ;;
|
---|
4391 | esac
|
---|
4392 |
|
---|
4393 |
|
---|
4394 |
|
---|
4395 |
|
---|
4396 |
|
---|
4397 |
|
---|
4398 |
|
---|
4399 |
|
---|
4400 |
|
---|
4401 | if test -n "$ac_tool_prefix"; then
|
---|
4402 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
|
---|
4403 | set dummy ${ac_tool_prefix}objdump; ac_word=$2
|
---|
4404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4405 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4406 | if ${ac_cv_prog_OBJDUMP+:} false; then :
|
---|
4407 | $as_echo_n "(cached) " >&6
|
---|
4408 | else
|
---|
4409 | if test -n "$OBJDUMP"; then
|
---|
4410 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
|
---|
4411 | else
|
---|
4412 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4413 | for as_dir in $PATH
|
---|
4414 | do
|
---|
4415 | IFS=$as_save_IFS
|
---|
4416 | test -z "$as_dir" && as_dir=.
|
---|
4417 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4418 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
4419 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
|
---|
4420 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4421 | break 2
|
---|
4422 | fi
|
---|
4423 | done
|
---|
4424 | done
|
---|
4425 | IFS=$as_save_IFS
|
---|
4426 |
|
---|
4427 | fi
|
---|
4428 | fi
|
---|
4429 | OBJDUMP=$ac_cv_prog_OBJDUMP
|
---|
4430 | if test -n "$OBJDUMP"; then
|
---|
4431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
|
---|
4432 | $as_echo "$OBJDUMP" >&6; }
|
---|
4433 | else
|
---|
4434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4435 | $as_echo "no" >&6; }
|
---|
4436 | fi
|
---|
4437 |
|
---|
4438 |
|
---|
4439 | fi
|
---|
4440 | if test -z "$ac_cv_prog_OBJDUMP"; then
|
---|
4441 | ac_ct_OBJDUMP=$OBJDUMP
|
---|
4442 | # Extract the first word of "objdump", so it can be a program name with args.
|
---|
4443 | set dummy objdump; ac_word=$2
|
---|
4444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4445 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4446 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
|
---|
4447 | $as_echo_n "(cached) " >&6
|
---|
4448 | else
|
---|
4449 | if test -n "$ac_ct_OBJDUMP"; then
|
---|
4450 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
|
---|
4451 | else
|
---|
4452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4453 | for as_dir in $PATH
|
---|
4454 | do
|
---|
4455 | IFS=$as_save_IFS
|
---|
4456 | test -z "$as_dir" && as_dir=.
|
---|
4457 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4458 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
4459 | ac_cv_prog_ac_ct_OBJDUMP="objdump"
|
---|
4460 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4461 | break 2
|
---|
4462 | fi
|
---|
4463 | done
|
---|
4464 | done
|
---|
4465 | IFS=$as_save_IFS
|
---|
4466 |
|
---|
4467 | fi
|
---|
4468 | fi
|
---|
4469 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
|
---|
4470 | if test -n "$ac_ct_OBJDUMP"; then
|
---|
4471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
|
---|
4472 | $as_echo "$ac_ct_OBJDUMP" >&6; }
|
---|
4473 | else
|
---|
4474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4475 | $as_echo "no" >&6; }
|
---|
4476 | fi
|
---|
4477 |
|
---|
4478 | if test "x$ac_ct_OBJDUMP" = x; then
|
---|
4479 | OBJDUMP="false"
|
---|
4480 | else
|
---|
4481 | case $cross_compiling:$ac_tool_warned in
|
---|
4482 | yes:)
|
---|
4483 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
4484 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
4485 | ac_tool_warned=yes ;;
|
---|
4486 | esac
|
---|
4487 | OBJDUMP=$ac_ct_OBJDUMP
|
---|
4488 | fi
|
---|
4489 | else
|
---|
4490 | OBJDUMP="$ac_cv_prog_OBJDUMP"
|
---|
4491 | fi
|
---|
4492 |
|
---|
4493 | test -z "$OBJDUMP" && OBJDUMP=objdump
|
---|
4494 |
|
---|
4495 |
|
---|
4496 |
|
---|
4497 |
|
---|
4498 |
|
---|
4499 |
|
---|
4500 |
|
---|
4501 |
|
---|
4502 |
|
---|
4503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
|
---|
4504 | $as_echo_n "checking how to recognize dependent libraries... " >&6; }
|
---|
4505 | if ${lt_cv_deplibs_check_method+:} false; then :
|
---|
4506 | $as_echo_n "(cached) " >&6
|
---|
4507 | else
|
---|
4508 | lt_cv_file_magic_cmd='$MAGIC_CMD'
|
---|
4509 | lt_cv_file_magic_test_file=
|
---|
4510 | lt_cv_deplibs_check_method='unknown'
|
---|
4511 | # Need to set the preceding variable on all platforms that support
|
---|
4512 | # interlibrary dependencies.
|
---|
4513 | # 'none' -- dependencies not supported.
|
---|
4514 | # 'unknown' -- same as none, but documents that we really don't know.
|
---|
4515 | # 'pass_all' -- all dependencies passed with no checks.
|
---|
4516 | # 'test_compile' -- check by making test program.
|
---|
4517 | # 'file_magic [[regex]]' -- check by looking for files in library path
|
---|
4518 | # that responds to the $file_magic_cmd with a given extended regex.
|
---|
4519 | # If you have 'file' or equivalent on your system and you're not sure
|
---|
4520 | # whether 'pass_all' will *always* work, you probably want this one.
|
---|
4521 |
|
---|
4522 | case $host_os in
|
---|
4523 | aix[4-9]*)
|
---|
4524 | lt_cv_deplibs_check_method=pass_all
|
---|
4525 | ;;
|
---|
4526 |
|
---|
4527 | beos*)
|
---|
4528 | lt_cv_deplibs_check_method=pass_all
|
---|
4529 | ;;
|
---|
4530 |
|
---|
4531 | bsdi[45]*)
|
---|
4532 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
---|
4533 | lt_cv_file_magic_cmd='/usr/bin/file -L'
|
---|
4534 | lt_cv_file_magic_test_file=/shlib/libc.so
|
---|
4535 | ;;
|
---|
4536 |
|
---|
4537 | cygwin*)
|
---|
4538 | # func_win32_libid is a shell function defined in ltmain.sh
|
---|
4539 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
---|
4540 | lt_cv_file_magic_cmd='func_win32_libid'
|
---|
4541 | ;;
|
---|
4542 |
|
---|
4543 | mingw* | pw32*)
|
---|
4544 | # Base MSYS/MinGW do not provide the 'file' command needed by
|
---|
4545 | # func_win32_libid shell function, so use a weaker test based on 'objdump',
|
---|
4546 | # unless we find 'file', for example because we are cross-compiling.
|
---|
4547 | if ( file / ) >/dev/null 2>&1; then
|
---|
4548 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
---|
4549 | lt_cv_file_magic_cmd='func_win32_libid'
|
---|
4550 | else
|
---|
4551 | # Keep this pattern in sync with the one in func_win32_libid.
|
---|
4552 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
|
---|
4553 | lt_cv_file_magic_cmd='$OBJDUMP -f'
|
---|
4554 | fi
|
---|
4555 | ;;
|
---|
4556 |
|
---|
4557 | cegcc*)
|
---|
4558 | # use the weaker test based on 'objdump'. See mingw*.
|
---|
4559 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
|
---|
4560 | lt_cv_file_magic_cmd='$OBJDUMP -f'
|
---|
4561 | ;;
|
---|
4562 |
|
---|
4563 | darwin* | rhapsody*)
|
---|
4564 | lt_cv_deplibs_check_method=pass_all
|
---|
4565 | ;;
|
---|
4566 |
|
---|
4567 | freebsd* | dragonfly*)
|
---|
4568 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
|
---|
4569 | case $host_cpu in
|
---|
4570 | i*86 )
|
---|
4571 | # Not sure whether the presence of OpenBSD here was a mistake.
|
---|
4572 | # Let's accept both of them until this is cleared up.
|
---|
4573 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
|
---|
4574 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
4575 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
---|
4576 | ;;
|
---|
4577 | esac
|
---|
4578 | else
|
---|
4579 | lt_cv_deplibs_check_method=pass_all
|
---|
4580 | fi
|
---|
4581 | ;;
|
---|
4582 |
|
---|
4583 | haiku*)
|
---|
4584 | lt_cv_deplibs_check_method=pass_all
|
---|
4585 | ;;
|
---|
4586 |
|
---|
4587 | hpux10.20* | hpux11*)
|
---|
4588 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
4589 | case $host_cpu in
|
---|
4590 | ia64*)
|
---|
4591 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
|
---|
4592 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
---|
4593 | ;;
|
---|
4594 | hppa*64*)
|
---|
4595 | 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]'
|
---|
4596 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
|
---|
4597 | ;;
|
---|
4598 | *)
|
---|
4599 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
|
---|
4600 | lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
---|
4601 | ;;
|
---|
4602 | esac
|
---|
4603 | ;;
|
---|
4604 |
|
---|
4605 | interix[3-9]*)
|
---|
4606 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
|
---|
4607 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
|
---|
4608 | ;;
|
---|
4609 |
|
---|
4610 | irix5* | irix6* | nonstopux*)
|
---|
4611 | case $LD in
|
---|
4612 | *-32|*"-32 ") libmagic=32-bit;;
|
---|
4613 | *-n32|*"-n32 ") libmagic=N32;;
|
---|
4614 | *-64|*"-64 ") libmagic=64-bit;;
|
---|
4615 | *) libmagic=never-match;;
|
---|
4616 | esac
|
---|
4617 | lt_cv_deplibs_check_method=pass_all
|
---|
4618 | ;;
|
---|
4619 |
|
---|
4620 | # This must be glibc/ELF.
|
---|
4621 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
|
---|
4622 | lt_cv_deplibs_check_method=pass_all
|
---|
4623 | ;;
|
---|
4624 |
|
---|
4625 | netbsd* | netbsdelf*-gnu)
|
---|
4626 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
|
---|
4627 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
|
---|
4628 | else
|
---|
4629 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
|
---|
4630 | fi
|
---|
4631 | ;;
|
---|
4632 |
|
---|
4633 | newos6*)
|
---|
4634 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
|
---|
4635 | lt_cv_file_magic_cmd=/usr/bin/file
|
---|
4636 | lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
---|
4637 | ;;
|
---|
4638 |
|
---|
4639 | *nto* | *qnx*)
|
---|
4640 | lt_cv_deplibs_check_method=pass_all
|
---|
4641 | ;;
|
---|
4642 |
|
---|
4643 | openbsd* | bitrig*)
|
---|
4644 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
|
---|
4645 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
|
---|
4646 | else
|
---|
4647 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
|
---|
4648 | fi
|
---|
4649 | ;;
|
---|
4650 |
|
---|
4651 | osf3* | osf4* | osf5*)
|
---|
4652 | lt_cv_deplibs_check_method=pass_all
|
---|
4653 | ;;
|
---|
4654 |
|
---|
4655 | rdos*)
|
---|
4656 | lt_cv_deplibs_check_method=pass_all
|
---|
4657 | ;;
|
---|
4658 |
|
---|
4659 | solaris*)
|
---|
4660 | lt_cv_deplibs_check_method=pass_all
|
---|
4661 | ;;
|
---|
4662 |
|
---|
4663 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
---|
4664 | lt_cv_deplibs_check_method=pass_all
|
---|
4665 | ;;
|
---|
4666 |
|
---|
4667 | sysv4 | sysv4.3*)
|
---|
4668 | case $host_vendor in
|
---|
4669 | motorola)
|
---|
4670 | 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]'
|
---|
4671 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
---|
4672 | ;;
|
---|
4673 | ncr)
|
---|
4674 | lt_cv_deplibs_check_method=pass_all
|
---|
4675 | ;;
|
---|
4676 | sequent)
|
---|
4677 | lt_cv_file_magic_cmd='/bin/file'
|
---|
4678 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
|
---|
4679 | ;;
|
---|
4680 | sni)
|
---|
4681 | lt_cv_file_magic_cmd='/bin/file'
|
---|
4682 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
|
---|
4683 | lt_cv_file_magic_test_file=/lib/libc.so
|
---|
4684 | ;;
|
---|
4685 | siemens)
|
---|
4686 | lt_cv_deplibs_check_method=pass_all
|
---|
4687 | ;;
|
---|
4688 | pc)
|
---|
4689 | lt_cv_deplibs_check_method=pass_all
|
---|
4690 | ;;
|
---|
4691 | esac
|
---|
4692 | ;;
|
---|
4693 |
|
---|
4694 | tpf*)
|
---|
4695 | lt_cv_deplibs_check_method=pass_all
|
---|
4696 | ;;
|
---|
4697 | os2*)
|
---|
4698 | lt_cv_deplibs_check_method=pass_all
|
---|
4699 | ;;
|
---|
4700 | esac
|
---|
4701 |
|
---|
4702 | fi
|
---|
4703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
|
---|
4704 | $as_echo "$lt_cv_deplibs_check_method" >&6; }
|
---|
4705 |
|
---|
4706 | file_magic_glob=
|
---|
4707 | want_nocaseglob=no
|
---|
4708 | if test "$build" = "$host"; then
|
---|
4709 | case $host_os in
|
---|
4710 | mingw* | pw32*)
|
---|
4711 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
|
---|
4712 | want_nocaseglob=yes
|
---|
4713 | else
|
---|
4714 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
|
---|
4715 | fi
|
---|
4716 | ;;
|
---|
4717 | esac
|
---|
4718 | fi
|
---|
4719 |
|
---|
4720 | file_magic_cmd=$lt_cv_file_magic_cmd
|
---|
4721 | deplibs_check_method=$lt_cv_deplibs_check_method
|
---|
4722 | test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
---|
4723 |
|
---|
4724 |
|
---|
4725 |
|
---|
4726 |
|
---|
4727 |
|
---|
4728 |
|
---|
4729 |
|
---|
4730 |
|
---|
4731 |
|
---|
4732 |
|
---|
4733 |
|
---|
4734 |
|
---|
4735 |
|
---|
4736 |
|
---|
4737 |
|
---|
4738 |
|
---|
4739 |
|
---|
4740 |
|
---|
4741 |
|
---|
4742 |
|
---|
4743 |
|
---|
4744 |
|
---|
4745 | if test -n "$ac_tool_prefix"; then
|
---|
4746 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
|
---|
4747 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2
|
---|
4748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4749 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4750 | if ${ac_cv_prog_DLLTOOL+:} false; then :
|
---|
4751 | $as_echo_n "(cached) " >&6
|
---|
4752 | else
|
---|
4753 | if test -n "$DLLTOOL"; then
|
---|
4754 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
|
---|
4755 | else
|
---|
4756 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4757 | for as_dir in $PATH
|
---|
4758 | do
|
---|
4759 | IFS=$as_save_IFS
|
---|
4760 | test -z "$as_dir" && as_dir=.
|
---|
4761 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4762 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
4763 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
|
---|
4764 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4765 | break 2
|
---|
4766 | fi
|
---|
4767 | done
|
---|
4768 | done
|
---|
4769 | IFS=$as_save_IFS
|
---|
4770 |
|
---|
4771 | fi
|
---|
4772 | fi
|
---|
4773 | DLLTOOL=$ac_cv_prog_DLLTOOL
|
---|
4774 | if test -n "$DLLTOOL"; then
|
---|
4775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
|
---|
4776 | $as_echo "$DLLTOOL" >&6; }
|
---|
4777 | else
|
---|
4778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4779 | $as_echo "no" >&6; }
|
---|
4780 | fi
|
---|
4781 |
|
---|
4782 |
|
---|
4783 | fi
|
---|
4784 | if test -z "$ac_cv_prog_DLLTOOL"; then
|
---|
4785 | ac_ct_DLLTOOL=$DLLTOOL
|
---|
4786 | # Extract the first word of "dlltool", so it can be a program name with args.
|
---|
4787 | set dummy dlltool; ac_word=$2
|
---|
4788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4789 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4790 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
|
---|
4791 | $as_echo_n "(cached) " >&6
|
---|
4792 | else
|
---|
4793 | if test -n "$ac_ct_DLLTOOL"; then
|
---|
4794 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
|
---|
4795 | else
|
---|
4796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4797 | for as_dir in $PATH
|
---|
4798 | do
|
---|
4799 | IFS=$as_save_IFS
|
---|
4800 | test -z "$as_dir" && as_dir=.
|
---|
4801 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4802 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
4803 | ac_cv_prog_ac_ct_DLLTOOL="dlltool"
|
---|
4804 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4805 | break 2
|
---|
4806 | fi
|
---|
4807 | done
|
---|
4808 | done
|
---|
4809 | IFS=$as_save_IFS
|
---|
4810 |
|
---|
4811 | fi
|
---|
4812 | fi
|
---|
4813 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
|
---|
4814 | if test -n "$ac_ct_DLLTOOL"; then
|
---|
4815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
|
---|
4816 | $as_echo "$ac_ct_DLLTOOL" >&6; }
|
---|
4817 | else
|
---|
4818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4819 | $as_echo "no" >&6; }
|
---|
4820 | fi
|
---|
4821 |
|
---|
4822 | if test "x$ac_ct_DLLTOOL" = x; then
|
---|
4823 | DLLTOOL="false"
|
---|
4824 | else
|
---|
4825 | case $cross_compiling:$ac_tool_warned in
|
---|
4826 | yes:)
|
---|
4827 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
4828 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
4829 | ac_tool_warned=yes ;;
|
---|
4830 | esac
|
---|
4831 | DLLTOOL=$ac_ct_DLLTOOL
|
---|
4832 | fi
|
---|
4833 | else
|
---|
4834 | DLLTOOL="$ac_cv_prog_DLLTOOL"
|
---|
4835 | fi
|
---|
4836 |
|
---|
4837 | test -z "$DLLTOOL" && DLLTOOL=dlltool
|
---|
4838 |
|
---|
4839 |
|
---|
4840 |
|
---|
4841 |
|
---|
4842 |
|
---|
4843 |
|
---|
4844 |
|
---|
4845 |
|
---|
4846 |
|
---|
4847 |
|
---|
4848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
|
---|
4849 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
|
---|
4850 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
|
---|
4851 | $as_echo_n "(cached) " >&6
|
---|
4852 | else
|
---|
4853 | lt_cv_sharedlib_from_linklib_cmd='unknown'
|
---|
4854 |
|
---|
4855 | case $host_os in
|
---|
4856 | cygwin* | mingw* | pw32* | cegcc*)
|
---|
4857 | # two different shell functions defined in ltmain.sh;
|
---|
4858 | # decide which one to use based on capabilities of $DLLTOOL
|
---|
4859 | case `$DLLTOOL --help 2>&1` in
|
---|
4860 | *--identify-strict*)
|
---|
4861 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
|
---|
4862 | ;;
|
---|
4863 | *)
|
---|
4864 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
|
---|
4865 | ;;
|
---|
4866 | esac
|
---|
4867 | ;;
|
---|
4868 | *)
|
---|
4869 | # fallback: assume linklib IS sharedlib
|
---|
4870 | lt_cv_sharedlib_from_linklib_cmd=$ECHO
|
---|
4871 | ;;
|
---|
4872 | esac
|
---|
4873 |
|
---|
4874 | fi
|
---|
4875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
|
---|
4876 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
|
---|
4877 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
|
---|
4878 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
|
---|
4879 |
|
---|
4880 |
|
---|
4881 |
|
---|
4882 |
|
---|
4883 |
|
---|
4884 |
|
---|
4885 |
|
---|
4886 |
|
---|
4887 | if test -n "$ac_tool_prefix"; then
|
---|
4888 | for ac_prog in ar
|
---|
4889 | do
|
---|
4890 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
4891 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
4892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4893 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4894 | if ${ac_cv_prog_AR+:} false; then :
|
---|
4895 | $as_echo_n "(cached) " >&6
|
---|
4896 | else
|
---|
4897 | if test -n "$AR"; then
|
---|
4898 | ac_cv_prog_AR="$AR" # Let the user override the test.
|
---|
4899 | else
|
---|
4900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4901 | for as_dir in $PATH
|
---|
4902 | do
|
---|
4903 | IFS=$as_save_IFS
|
---|
4904 | test -z "$as_dir" && as_dir=.
|
---|
4905 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4906 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
4907 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
|
---|
4908 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4909 | break 2
|
---|
4910 | fi
|
---|
4911 | done
|
---|
4912 | done
|
---|
4913 | IFS=$as_save_IFS
|
---|
4914 |
|
---|
4915 | fi
|
---|
4916 | fi
|
---|
4917 | AR=$ac_cv_prog_AR
|
---|
4918 | if test -n "$AR"; then
|
---|
4919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
|
---|
4920 | $as_echo "$AR" >&6; }
|
---|
4921 | else
|
---|
4922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4923 | $as_echo "no" >&6; }
|
---|
4924 | fi
|
---|
4925 |
|
---|
4926 |
|
---|
4927 | test -n "$AR" && break
|
---|
4928 | done
|
---|
4929 | fi
|
---|
4930 | if test -z "$AR"; then
|
---|
4931 | ac_ct_AR=$AR
|
---|
4932 | for ac_prog in ar
|
---|
4933 | do
|
---|
4934 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
4935 | set dummy $ac_prog; ac_word=$2
|
---|
4936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
4937 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
4938 | if ${ac_cv_prog_ac_ct_AR+:} false; then :
|
---|
4939 | $as_echo_n "(cached) " >&6
|
---|
4940 | else
|
---|
4941 | if test -n "$ac_ct_AR"; then
|
---|
4942 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
|
---|
4943 | else
|
---|
4944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
4945 | for as_dir in $PATH
|
---|
4946 | do
|
---|
4947 | IFS=$as_save_IFS
|
---|
4948 | test -z "$as_dir" && as_dir=.
|
---|
4949 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
4950 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
4951 | ac_cv_prog_ac_ct_AR="$ac_prog"
|
---|
4952 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
4953 | break 2
|
---|
4954 | fi
|
---|
4955 | done
|
---|
4956 | done
|
---|
4957 | IFS=$as_save_IFS
|
---|
4958 |
|
---|
4959 | fi
|
---|
4960 | fi
|
---|
4961 | ac_ct_AR=$ac_cv_prog_ac_ct_AR
|
---|
4962 | if test -n "$ac_ct_AR"; then
|
---|
4963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
|
---|
4964 | $as_echo "$ac_ct_AR" >&6; }
|
---|
4965 | else
|
---|
4966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4967 | $as_echo "no" >&6; }
|
---|
4968 | fi
|
---|
4969 |
|
---|
4970 |
|
---|
4971 | test -n "$ac_ct_AR" && break
|
---|
4972 | done
|
---|
4973 |
|
---|
4974 | if test "x$ac_ct_AR" = x; then
|
---|
4975 | AR="false"
|
---|
4976 | else
|
---|
4977 | case $cross_compiling:$ac_tool_warned in
|
---|
4978 | yes:)
|
---|
4979 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
4980 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
4981 | ac_tool_warned=yes ;;
|
---|
4982 | esac
|
---|
4983 | AR=$ac_ct_AR
|
---|
4984 | fi
|
---|
4985 | fi
|
---|
4986 |
|
---|
4987 | : ${AR=ar}
|
---|
4988 | : ${AR_FLAGS=cr}
|
---|
4989 |
|
---|
4990 |
|
---|
4991 |
|
---|
4992 |
|
---|
4993 |
|
---|
4994 |
|
---|
4995 |
|
---|
4996 |
|
---|
4997 |
|
---|
4998 |
|
---|
4999 |
|
---|
5000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
|
---|
5001 | $as_echo_n "checking for archiver @FILE support... " >&6; }
|
---|
5002 | if ${lt_cv_ar_at_file+:} false; then :
|
---|
5003 | $as_echo_n "(cached) " >&6
|
---|
5004 | else
|
---|
5005 | lt_cv_ar_at_file=no
|
---|
5006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5007 | /* end confdefs.h. */
|
---|
5008 |
|
---|
5009 | int
|
---|
5010 | main ()
|
---|
5011 | {
|
---|
5012 |
|
---|
5013 | ;
|
---|
5014 | return 0;
|
---|
5015 | }
|
---|
5016 | _ACEOF
|
---|
5017 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
5018 | echo conftest.$ac_objext > conftest.lst
|
---|
5019 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
|
---|
5020 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
---|
5021 | (eval $lt_ar_try) 2>&5
|
---|
5022 | ac_status=$?
|
---|
5023 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
5024 | test $ac_status = 0; }
|
---|
5025 | if test 0 -eq "$ac_status"; then
|
---|
5026 | # Ensure the archiver fails upon bogus file names.
|
---|
5027 | rm -f conftest.$ac_objext libconftest.a
|
---|
5028 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
---|
5029 | (eval $lt_ar_try) 2>&5
|
---|
5030 | ac_status=$?
|
---|
5031 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
5032 | test $ac_status = 0; }
|
---|
5033 | if test 0 -ne "$ac_status"; then
|
---|
5034 | lt_cv_ar_at_file=@
|
---|
5035 | fi
|
---|
5036 | fi
|
---|
5037 | rm -f conftest.* libconftest.a
|
---|
5038 |
|
---|
5039 | fi
|
---|
5040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5041 |
|
---|
5042 | fi
|
---|
5043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
|
---|
5044 | $as_echo "$lt_cv_ar_at_file" >&6; }
|
---|
5045 |
|
---|
5046 | if test no = "$lt_cv_ar_at_file"; then
|
---|
5047 | archiver_list_spec=
|
---|
5048 | else
|
---|
5049 | archiver_list_spec=$lt_cv_ar_at_file
|
---|
5050 | fi
|
---|
5051 |
|
---|
5052 |
|
---|
5053 |
|
---|
5054 |
|
---|
5055 |
|
---|
5056 |
|
---|
5057 |
|
---|
5058 | if test -n "$ac_tool_prefix"; then
|
---|
5059 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
---|
5060 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
---|
5061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
5062 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
5063 | if ${ac_cv_prog_STRIP+:} false; then :
|
---|
5064 | $as_echo_n "(cached) " >&6
|
---|
5065 | else
|
---|
5066 | if test -n "$STRIP"; then
|
---|
5067 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
5068 | else
|
---|
5069 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5070 | for as_dir in $PATH
|
---|
5071 | do
|
---|
5072 | IFS=$as_save_IFS
|
---|
5073 | test -z "$as_dir" && as_dir=.
|
---|
5074 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5075 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
5076 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
---|
5077 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
5078 | break 2
|
---|
5079 | fi
|
---|
5080 | done
|
---|
5081 | done
|
---|
5082 | IFS=$as_save_IFS
|
---|
5083 |
|
---|
5084 | fi
|
---|
5085 | fi
|
---|
5086 | STRIP=$ac_cv_prog_STRIP
|
---|
5087 | if test -n "$STRIP"; then
|
---|
5088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
|
---|
5089 | $as_echo "$STRIP" >&6; }
|
---|
5090 | else
|
---|
5091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5092 | $as_echo "no" >&6; }
|
---|
5093 | fi
|
---|
5094 |
|
---|
5095 |
|
---|
5096 | fi
|
---|
5097 | if test -z "$ac_cv_prog_STRIP"; then
|
---|
5098 | ac_ct_STRIP=$STRIP
|
---|
5099 | # Extract the first word of "strip", so it can be a program name with args.
|
---|
5100 | set dummy strip; ac_word=$2
|
---|
5101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
5102 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
5103 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
|
---|
5104 | $as_echo_n "(cached) " >&6
|
---|
5105 | else
|
---|
5106 | if test -n "$ac_ct_STRIP"; then
|
---|
5107 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
---|
5108 | else
|
---|
5109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5110 | for as_dir in $PATH
|
---|
5111 | do
|
---|
5112 | IFS=$as_save_IFS
|
---|
5113 | test -z "$as_dir" && as_dir=.
|
---|
5114 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5115 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
5116 | ac_cv_prog_ac_ct_STRIP="strip"
|
---|
5117 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
5118 | break 2
|
---|
5119 | fi
|
---|
5120 | done
|
---|
5121 | done
|
---|
5122 | IFS=$as_save_IFS
|
---|
5123 |
|
---|
5124 | fi
|
---|
5125 | fi
|
---|
5126 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
---|
5127 | if test -n "$ac_ct_STRIP"; then
|
---|
5128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
|
---|
5129 | $as_echo "$ac_ct_STRIP" >&6; }
|
---|
5130 | else
|
---|
5131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5132 | $as_echo "no" >&6; }
|
---|
5133 | fi
|
---|
5134 |
|
---|
5135 | if test "x$ac_ct_STRIP" = x; then
|
---|
5136 | STRIP=":"
|
---|
5137 | else
|
---|
5138 | case $cross_compiling:$ac_tool_warned in
|
---|
5139 | yes:)
|
---|
5140 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
5141 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
5142 | ac_tool_warned=yes ;;
|
---|
5143 | esac
|
---|
5144 | STRIP=$ac_ct_STRIP
|
---|
5145 | fi
|
---|
5146 | else
|
---|
5147 | STRIP="$ac_cv_prog_STRIP"
|
---|
5148 | fi
|
---|
5149 |
|
---|
5150 | test -z "$STRIP" && STRIP=:
|
---|
5151 |
|
---|
5152 |
|
---|
5153 |
|
---|
5154 |
|
---|
5155 |
|
---|
5156 |
|
---|
5157 | if test -n "$ac_tool_prefix"; then
|
---|
5158 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
5159 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
5160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
5161 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
5162 | if ${ac_cv_prog_RANLIB+:} false; then :
|
---|
5163 | $as_echo_n "(cached) " >&6
|
---|
5164 | else
|
---|
5165 | if test -n "$RANLIB"; then
|
---|
5166 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
5167 | else
|
---|
5168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5169 | for as_dir in $PATH
|
---|
5170 | do
|
---|
5171 | IFS=$as_save_IFS
|
---|
5172 | test -z "$as_dir" && as_dir=.
|
---|
5173 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5174 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
5175 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
5176 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
5177 | break 2
|
---|
5178 | fi
|
---|
5179 | done
|
---|
5180 | done
|
---|
5181 | IFS=$as_save_IFS
|
---|
5182 |
|
---|
5183 | fi
|
---|
5184 | fi
|
---|
5185 | RANLIB=$ac_cv_prog_RANLIB
|
---|
5186 | if test -n "$RANLIB"; then
|
---|
5187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
|
---|
5188 | $as_echo "$RANLIB" >&6; }
|
---|
5189 | else
|
---|
5190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5191 | $as_echo "no" >&6; }
|
---|
5192 | fi
|
---|
5193 |
|
---|
5194 |
|
---|
5195 | fi
|
---|
5196 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
5197 | ac_ct_RANLIB=$RANLIB
|
---|
5198 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
5199 | set dummy ranlib; ac_word=$2
|
---|
5200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
5201 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
5202 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
|
---|
5203 | $as_echo_n "(cached) " >&6
|
---|
5204 | else
|
---|
5205 | if test -n "$ac_ct_RANLIB"; then
|
---|
5206 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
5207 | else
|
---|
5208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5209 | for as_dir in $PATH
|
---|
5210 | do
|
---|
5211 | IFS=$as_save_IFS
|
---|
5212 | test -z "$as_dir" && as_dir=.
|
---|
5213 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5214 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
5215 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
5216 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
5217 | break 2
|
---|
5218 | fi
|
---|
5219 | done
|
---|
5220 | done
|
---|
5221 | IFS=$as_save_IFS
|
---|
5222 |
|
---|
5223 | fi
|
---|
5224 | fi
|
---|
5225 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
5226 | if test -n "$ac_ct_RANLIB"; then
|
---|
5227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
|
---|
5228 | $as_echo "$ac_ct_RANLIB" >&6; }
|
---|
5229 | else
|
---|
5230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5231 | $as_echo "no" >&6; }
|
---|
5232 | fi
|
---|
5233 |
|
---|
5234 | if test "x$ac_ct_RANLIB" = x; then
|
---|
5235 | RANLIB=":"
|
---|
5236 | else
|
---|
5237 | case $cross_compiling:$ac_tool_warned in
|
---|
5238 | yes:)
|
---|
5239 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
5240 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
5241 | ac_tool_warned=yes ;;
|
---|
5242 | esac
|
---|
5243 | RANLIB=$ac_ct_RANLIB
|
---|
5244 | fi
|
---|
5245 | else
|
---|
5246 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
5247 | fi
|
---|
5248 |
|
---|
5249 | test -z "$RANLIB" && RANLIB=:
|
---|
5250 |
|
---|
5251 |
|
---|
5252 |
|
---|
5253 |
|
---|
5254 |
|
---|
5255 |
|
---|
5256 | # Determine commands to create old-style static archives.
|
---|
5257 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
|
---|
5258 | old_postinstall_cmds='chmod 644 $oldlib'
|
---|
5259 | old_postuninstall_cmds=
|
---|
5260 |
|
---|
5261 | if test -n "$RANLIB"; then
|
---|
5262 | case $host_os in
|
---|
5263 | bitrig* | openbsd*)
|
---|
5264 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
|
---|
5265 | ;;
|
---|
5266 | *)
|
---|
5267 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
|
---|
5268 | ;;
|
---|
5269 | esac
|
---|
5270 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
|
---|
5271 | fi
|
---|
5272 |
|
---|
5273 | case $host_os in
|
---|
5274 | darwin*)
|
---|
5275 | lock_old_archive_extraction=yes ;;
|
---|
5276 | *)
|
---|
5277 | lock_old_archive_extraction=no ;;
|
---|
5278 | esac
|
---|
5279 |
|
---|
5280 |
|
---|
5281 |
|
---|
5282 |
|
---|
5283 |
|
---|
5284 |
|
---|
5285 |
|
---|
5286 |
|
---|
5287 |
|
---|
5288 |
|
---|
5289 |
|
---|
5290 |
|
---|
5291 |
|
---|
5292 |
|
---|
5293 |
|
---|
5294 |
|
---|
5295 |
|
---|
5296 |
|
---|
5297 |
|
---|
5298 |
|
---|
5299 |
|
---|
5300 | for ac_prog in gawk mawk nawk awk
|
---|
5301 | do
|
---|
5302 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
5303 | set dummy $ac_prog; ac_word=$2
|
---|
5304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
5305 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
5306 | if ${ac_cv_prog_AWK+:} false; then :
|
---|
5307 | $as_echo_n "(cached) " >&6
|
---|
5308 | else
|
---|
5309 | if test -n "$AWK"; then
|
---|
5310 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
5311 | else
|
---|
5312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5313 | for as_dir in $PATH
|
---|
5314 | do
|
---|
5315 | IFS=$as_save_IFS
|
---|
5316 | test -z "$as_dir" && as_dir=.
|
---|
5317 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5318 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
5319 | ac_cv_prog_AWK="$ac_prog"
|
---|
5320 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
5321 | break 2
|
---|
5322 | fi
|
---|
5323 | done
|
---|
5324 | done
|
---|
5325 | IFS=$as_save_IFS
|
---|
5326 |
|
---|
5327 | fi
|
---|
5328 | fi
|
---|
5329 | AWK=$ac_cv_prog_AWK
|
---|
5330 | if test -n "$AWK"; then
|
---|
5331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
|
---|
5332 | $as_echo "$AWK" >&6; }
|
---|
5333 | else
|
---|
5334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5335 | $as_echo "no" >&6; }
|
---|
5336 | fi
|
---|
5337 |
|
---|
5338 |
|
---|
5339 | test -n "$AWK" && break
|
---|
5340 | done
|
---|
5341 |
|
---|
5342 |
|
---|
5343 |
|
---|
5344 |
|
---|
5345 |
|
---|
5346 |
|
---|
5347 |
|
---|
5348 |
|
---|
5349 |
|
---|
5350 |
|
---|
5351 |
|
---|
5352 |
|
---|
5353 |
|
---|
5354 |
|
---|
5355 |
|
---|
5356 |
|
---|
5357 |
|
---|
5358 |
|
---|
5359 |
|
---|
5360 | # If no C compiler was specified, use CC.
|
---|
5361 | LTCC=${LTCC-"$CC"}
|
---|
5362 |
|
---|
5363 | # If no C compiler flags were specified, use CFLAGS.
|
---|
5364 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
---|
5365 |
|
---|
5366 | # Allow CC to be a program name with arguments.
|
---|
5367 | compiler=$CC
|
---|
5368 |
|
---|
5369 |
|
---|
5370 | # Check for command to grab the raw symbol name followed by C symbol from nm.
|
---|
5371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
|
---|
5372 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
|
---|
5373 | if ${lt_cv_sys_global_symbol_pipe+:} false; then :
|
---|
5374 | $as_echo_n "(cached) " >&6
|
---|
5375 | else
|
---|
5376 |
|
---|
5377 | # These are sane defaults that work on at least a few old systems.
|
---|
5378 | # [They come from Ultrix. What could be older than Ultrix?!! ;)]
|
---|
5379 |
|
---|
5380 | # Character class describing NM global symbol codes.
|
---|
5381 | symcode='[BCDEGRST]'
|
---|
5382 |
|
---|
5383 | # Regexp to match symbols that can be accessed directly from C.
|
---|
5384 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
|
---|
5385 |
|
---|
5386 | # Define system-specific variables.
|
---|
5387 | case $host_os in
|
---|
5388 | aix*)
|
---|
5389 | symcode='[BCDT]'
|
---|
5390 | ;;
|
---|
5391 | cygwin* | mingw* | pw32* | cegcc*)
|
---|
5392 | symcode='[ABCDGISTW]'
|
---|
5393 | ;;
|
---|
5394 | hpux*)
|
---|
5395 | if test ia64 = "$host_cpu"; then
|
---|
5396 | symcode='[ABCDEGRST]'
|
---|
5397 | fi
|
---|
5398 | ;;
|
---|
5399 | irix* | nonstopux*)
|
---|
5400 | symcode='[BCDEGRST]'
|
---|
5401 | ;;
|
---|
5402 | osf*)
|
---|
5403 | symcode='[BCDEGQRST]'
|
---|
5404 | ;;
|
---|
5405 | solaris*)
|
---|
5406 | symcode='[BDRT]'
|
---|
5407 | ;;
|
---|
5408 | sco3.2v5*)
|
---|
5409 | symcode='[DT]'
|
---|
5410 | ;;
|
---|
5411 | sysv4.2uw2*)
|
---|
5412 | symcode='[DT]'
|
---|
5413 | ;;
|
---|
5414 | sysv5* | sco5v6* | unixware* | OpenUNIX*)
|
---|
5415 | symcode='[ABDT]'
|
---|
5416 | ;;
|
---|
5417 | sysv4)
|
---|
5418 | symcode='[DFNSTU]'
|
---|
5419 | ;;
|
---|
5420 | esac
|
---|
5421 |
|
---|
5422 | # If we're using GNU nm, then use its standard symbol codes.
|
---|
5423 | case `$NM -V 2>&1` in
|
---|
5424 | *GNU* | *'with BFD'*)
|
---|
5425 | symcode='[ABCDGIRSTW]' ;;
|
---|
5426 | esac
|
---|
5427 |
|
---|
5428 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
---|
5429 | # Gets list of data symbols to import.
|
---|
5430 | lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
|
---|
5431 | # Adjust the below global symbol transforms to fixup imported variables.
|
---|
5432 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
|
---|
5433 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
|
---|
5434 | lt_c_name_lib_hook="\
|
---|
5435 | -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
|
---|
5436 | -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
|
---|
5437 | else
|
---|
5438 | # Disable hooks by default.
|
---|
5439 | lt_cv_sys_global_symbol_to_import=
|
---|
5440 | lt_cdecl_hook=
|
---|
5441 | lt_c_name_hook=
|
---|
5442 | lt_c_name_lib_hook=
|
---|
5443 | fi
|
---|
5444 |
|
---|
5445 | # Transform an extracted symbol line into a proper C declaration.
|
---|
5446 | # Some systems (esp. on ia64) link data and code symbols differently,
|
---|
5447 | # so use this general approach.
|
---|
5448 | lt_cv_sys_global_symbol_to_cdecl="sed -n"\
|
---|
5449 | $lt_cdecl_hook\
|
---|
5450 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
|
---|
5451 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
|
---|
5452 |
|
---|
5453 | # Transform an extracted symbol line into symbol name and symbol address
|
---|
5454 | lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
|
---|
5455 | $lt_c_name_hook\
|
---|
5456 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
|
---|
5457 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
|
---|
5458 |
|
---|
5459 | # Transform an extracted symbol line into symbol name with lib prefix and
|
---|
5460 | # symbol address.
|
---|
5461 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
|
---|
5462 | $lt_c_name_lib_hook\
|
---|
5463 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
|
---|
5464 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
|
---|
5465 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
|
---|
5466 |
|
---|
5467 | # Handle CRLF in mingw tool chain
|
---|
5468 | opt_cr=
|
---|
5469 | case $build_os in
|
---|
5470 | mingw*)
|
---|
5471 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
|
---|
5472 | ;;
|
---|
5473 | esac
|
---|
5474 |
|
---|
5475 | # Try without a prefix underscore, then with it.
|
---|
5476 | for ac_symprfx in "" "_"; do
|
---|
5477 |
|
---|
5478 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
|
---|
5479 | symxfrm="\\1 $ac_symprfx\\2 \\2"
|
---|
5480 |
|
---|
5481 | # Write the raw and C identifiers.
|
---|
5482 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
---|
5483 | # Fake it for dumpbin and say T for any non-static function,
|
---|
5484 | # D for any global variable and I for any imported variable.
|
---|
5485 | # Also find C++ and __fastcall symbols from MSVC++,
|
---|
5486 | # which start with @ or ?.
|
---|
5487 | lt_cv_sys_global_symbol_pipe="$AWK '"\
|
---|
5488 | " {last_section=section; section=\$ 3};"\
|
---|
5489 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
|
---|
5490 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
|
---|
5491 | " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
|
---|
5492 | " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
|
---|
5493 | " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
|
---|
5494 | " \$ 0!~/External *\|/{next};"\
|
---|
5495 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
|
---|
5496 | " {if(hide[section]) next};"\
|
---|
5497 | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
|
---|
5498 | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
|
---|
5499 | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
|
---|
5500 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
|
---|
5501 | " ' prfx=^$ac_symprfx"
|
---|
5502 | else
|
---|
5503 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
---|
5504 | fi
|
---|
5505 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
|
---|
5506 |
|
---|
5507 | # Check to see that the pipe works correctly.
|
---|
5508 | pipe_works=no
|
---|
5509 |
|
---|
5510 | rm -f conftest*
|
---|
5511 | cat > conftest.$ac_ext <<_LT_EOF
|
---|
5512 | #ifdef __cplusplus
|
---|
5513 | extern "C" {
|
---|
5514 | #endif
|
---|
5515 | char nm_test_var;
|
---|
5516 | void nm_test_func(void);
|
---|
5517 | void nm_test_func(void){}
|
---|
5518 | #ifdef __cplusplus
|
---|
5519 | }
|
---|
5520 | #endif
|
---|
5521 | int main(){nm_test_var='a';nm_test_func();return(0);}
|
---|
5522 | _LT_EOF
|
---|
5523 |
|
---|
5524 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
---|
5525 | (eval $ac_compile) 2>&5
|
---|
5526 | ac_status=$?
|
---|
5527 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
5528 | test $ac_status = 0; }; then
|
---|
5529 | # Now try to grab the symbols.
|
---|
5530 | nlist=conftest.nm
|
---|
5531 | $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
|
---|
5532 | if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
|
---|
5533 | # Try sorting and uniquifying the output.
|
---|
5534 | if sort "$nlist" | uniq > "$nlist"T; then
|
---|
5535 | mv -f "$nlist"T "$nlist"
|
---|
5536 | else
|
---|
5537 | rm -f "$nlist"T
|
---|
5538 | fi
|
---|
5539 |
|
---|
5540 | # Make sure that we snagged all the symbols we need.
|
---|
5541 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
|
---|
5542 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
|
---|
5543 | cat <<_LT_EOF > conftest.$ac_ext
|
---|
5544 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
|
---|
5545 | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
|
---|
5546 | /* DATA imports from DLLs on WIN32 can't be const, because runtime
|
---|
5547 | relocations are performed -- see ld's documentation on pseudo-relocs. */
|
---|
5548 | # define LT_DLSYM_CONST
|
---|
5549 | #elif defined __osf__
|
---|
5550 | /* This system does not cope well with relocations in const data. */
|
---|
5551 | # define LT_DLSYM_CONST
|
---|
5552 | #else
|
---|
5553 | # define LT_DLSYM_CONST const
|
---|
5554 | #endif
|
---|
5555 |
|
---|
5556 | #ifdef __cplusplus
|
---|
5557 | extern "C" {
|
---|
5558 | #endif
|
---|
5559 |
|
---|
5560 | _LT_EOF
|
---|
5561 | # Now generate the symbol file.
|
---|
5562 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
|
---|
5563 |
|
---|
5564 | cat <<_LT_EOF >> conftest.$ac_ext
|
---|
5565 |
|
---|
5566 | /* The mapping between symbol names and symbols. */
|
---|
5567 | LT_DLSYM_CONST struct {
|
---|
5568 | const char *name;
|
---|
5569 | void *address;
|
---|
5570 | }
|
---|
5571 | lt__PROGRAM__LTX_preloaded_symbols[] =
|
---|
5572 | {
|
---|
5573 | { "@PROGRAM@", (void *) 0 },
|
---|
5574 | _LT_EOF
|
---|
5575 | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
|
---|
5576 | cat <<\_LT_EOF >> conftest.$ac_ext
|
---|
5577 | {0, (void *) 0}
|
---|
5578 | };
|
---|
5579 |
|
---|
5580 | /* This works around a problem in FreeBSD linker */
|
---|
5581 | #ifdef FREEBSD_WORKAROUND
|
---|
5582 | static const void *lt_preloaded_setup() {
|
---|
5583 | return lt__PROGRAM__LTX_preloaded_symbols;
|
---|
5584 | }
|
---|
5585 | #endif
|
---|
5586 |
|
---|
5587 | #ifdef __cplusplus
|
---|
5588 | }
|
---|
5589 | #endif
|
---|
5590 | _LT_EOF
|
---|
5591 | # Now try linking the two files.
|
---|
5592 | mv conftest.$ac_objext conftstm.$ac_objext
|
---|
5593 | lt_globsym_save_LIBS=$LIBS
|
---|
5594 | lt_globsym_save_CFLAGS=$CFLAGS
|
---|
5595 | LIBS=conftstm.$ac_objext
|
---|
5596 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
|
---|
5597 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
|
---|
5598 | (eval $ac_link) 2>&5
|
---|
5599 | ac_status=$?
|
---|
5600 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
5601 | test $ac_status = 0; } && test -s conftest$ac_exeext; then
|
---|
5602 | pipe_works=yes
|
---|
5603 | fi
|
---|
5604 | LIBS=$lt_globsym_save_LIBS
|
---|
5605 | CFLAGS=$lt_globsym_save_CFLAGS
|
---|
5606 | else
|
---|
5607 | echo "cannot find nm_test_func in $nlist" >&5
|
---|
5608 | fi
|
---|
5609 | else
|
---|
5610 | echo "cannot find nm_test_var in $nlist" >&5
|
---|
5611 | fi
|
---|
5612 | else
|
---|
5613 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
|
---|
5614 | fi
|
---|
5615 | else
|
---|
5616 | echo "$progname: failed program was:" >&5
|
---|
5617 | cat conftest.$ac_ext >&5
|
---|
5618 | fi
|
---|
5619 | rm -rf conftest* conftst*
|
---|
5620 |
|
---|
5621 | # Do not use the global_symbol_pipe unless it works.
|
---|
5622 | if test yes = "$pipe_works"; then
|
---|
5623 | break
|
---|
5624 | else
|
---|
5625 | lt_cv_sys_global_symbol_pipe=
|
---|
5626 | fi
|
---|
5627 | done
|
---|
5628 |
|
---|
5629 | fi
|
---|
5630 |
|
---|
5631 | if test -z "$lt_cv_sys_global_symbol_pipe"; then
|
---|
5632 | lt_cv_sys_global_symbol_to_cdecl=
|
---|
5633 | fi
|
---|
5634 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
|
---|
5635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
|
---|
5636 | $as_echo "failed" >&6; }
|
---|
5637 | else
|
---|
5638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
|
---|
5639 | $as_echo "ok" >&6; }
|
---|
5640 | fi
|
---|
5641 |
|
---|
5642 | # Response file support.
|
---|
5643 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
---|
5644 | nm_file_list_spec='@'
|
---|
5645 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
|
---|
5646 | nm_file_list_spec='@'
|
---|
5647 | fi
|
---|
5648 |
|
---|
5649 |
|
---|
5650 |
|
---|
5651 |
|
---|
5652 |
|
---|
5653 |
|
---|
5654 |
|
---|
5655 |
|
---|
5656 |
|
---|
5657 |
|
---|
5658 |
|
---|
5659 |
|
---|
5660 |
|
---|
5661 |
|
---|
5662 |
|
---|
5663 |
|
---|
5664 |
|
---|
5665 |
|
---|
5666 |
|
---|
5667 |
|
---|
5668 |
|
---|
5669 |
|
---|
5670 |
|
---|
5671 |
|
---|
5672 |
|
---|
5673 |
|
---|
5674 |
|
---|
5675 |
|
---|
5676 |
|
---|
5677 |
|
---|
5678 |
|
---|
5679 |
|
---|
5680 |
|
---|
5681 |
|
---|
5682 |
|
---|
5683 |
|
---|
5684 |
|
---|
5685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
|
---|
5686 | $as_echo_n "checking for sysroot... " >&6; }
|
---|
5687 |
|
---|
5688 | # Check whether --with-sysroot was given.
|
---|
5689 | if test "${with_sysroot+set}" = set; then :
|
---|
5690 | withval=$with_sysroot;
|
---|
5691 | else
|
---|
5692 | with_sysroot=no
|
---|
5693 | fi
|
---|
5694 |
|
---|
5695 |
|
---|
5696 | lt_sysroot=
|
---|
5697 | case $with_sysroot in #(
|
---|
5698 | yes)
|
---|
5699 | if test yes = "$GCC"; then
|
---|
5700 | lt_sysroot=`$CC --print-sysroot 2>/dev/null`
|
---|
5701 | fi
|
---|
5702 | ;; #(
|
---|
5703 | /*)
|
---|
5704 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
|
---|
5705 | ;; #(
|
---|
5706 | no|'')
|
---|
5707 | ;; #(
|
---|
5708 | *)
|
---|
5709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
|
---|
5710 | $as_echo "$with_sysroot" >&6; }
|
---|
5711 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
|
---|
5712 | ;;
|
---|
5713 | esac
|
---|
5714 |
|
---|
5715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
|
---|
5716 | $as_echo "${lt_sysroot:-no}" >&6; }
|
---|
5717 |
|
---|
5718 |
|
---|
5719 |
|
---|
5720 |
|
---|
5721 |
|
---|
5722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
|
---|
5723 | $as_echo_n "checking for a working dd... " >&6; }
|
---|
5724 | if ${ac_cv_path_lt_DD+:} false; then :
|
---|
5725 | $as_echo_n "(cached) " >&6
|
---|
5726 | else
|
---|
5727 | printf 0123456789abcdef0123456789abcdef >conftest.i
|
---|
5728 | cat conftest.i conftest.i >conftest2.i
|
---|
5729 | : ${lt_DD:=$DD}
|
---|
5730 | if test -z "$lt_DD"; then
|
---|
5731 | ac_path_lt_DD_found=false
|
---|
5732 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
5733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5734 | for as_dir in $PATH
|
---|
5735 | do
|
---|
5736 | IFS=$as_save_IFS
|
---|
5737 | test -z "$as_dir" && as_dir=.
|
---|
5738 | for ac_prog in dd; do
|
---|
5739 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5740 | ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
|
---|
5741 | as_fn_executable_p "$ac_path_lt_DD" || continue
|
---|
5742 | if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
|
---|
5743 | cmp -s conftest.i conftest.out \
|
---|
5744 | && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
|
---|
5745 | fi
|
---|
5746 | $ac_path_lt_DD_found && break 3
|
---|
5747 | done
|
---|
5748 | done
|
---|
5749 | done
|
---|
5750 | IFS=$as_save_IFS
|
---|
5751 | if test -z "$ac_cv_path_lt_DD"; then
|
---|
5752 | :
|
---|
5753 | fi
|
---|
5754 | else
|
---|
5755 | ac_cv_path_lt_DD=$lt_DD
|
---|
5756 | fi
|
---|
5757 |
|
---|
5758 | rm -f conftest.i conftest2.i conftest.out
|
---|
5759 | fi
|
---|
5760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
|
---|
5761 | $as_echo "$ac_cv_path_lt_DD" >&6; }
|
---|
5762 |
|
---|
5763 |
|
---|
5764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
|
---|
5765 | $as_echo_n "checking how to truncate binary pipes... " >&6; }
|
---|
5766 | if ${lt_cv_truncate_bin+:} false; then :
|
---|
5767 | $as_echo_n "(cached) " >&6
|
---|
5768 | else
|
---|
5769 | printf 0123456789abcdef0123456789abcdef >conftest.i
|
---|
5770 | cat conftest.i conftest.i >conftest2.i
|
---|
5771 | lt_cv_truncate_bin=
|
---|
5772 | if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
|
---|
5773 | cmp -s conftest.i conftest.out \
|
---|
5774 | && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
|
---|
5775 | fi
|
---|
5776 | rm -f conftest.i conftest2.i conftest.out
|
---|
5777 | test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
|
---|
5778 | fi
|
---|
5779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
|
---|
5780 | $as_echo "$lt_cv_truncate_bin" >&6; }
|
---|
5781 |
|
---|
5782 |
|
---|
5783 |
|
---|
5784 |
|
---|
5785 |
|
---|
5786 |
|
---|
5787 |
|
---|
5788 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
|
---|
5789 | func_cc_basename ()
|
---|
5790 | {
|
---|
5791 | for cc_temp in $*""; do
|
---|
5792 | case $cc_temp in
|
---|
5793 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
---|
5794 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
---|
5795 | \-*) ;;
|
---|
5796 | *) break;;
|
---|
5797 | esac
|
---|
5798 | done
|
---|
5799 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
|
---|
5800 | }
|
---|
5801 |
|
---|
5802 | # Check whether --enable-libtool-lock was given.
|
---|
5803 | if test "${enable_libtool_lock+set}" = set; then :
|
---|
5804 | enableval=$enable_libtool_lock;
|
---|
5805 | fi
|
---|
5806 |
|
---|
5807 | test no = "$enable_libtool_lock" || enable_libtool_lock=yes
|
---|
5808 |
|
---|
5809 | # Some flags need to be propagated to the compiler or linker for good
|
---|
5810 | # libtool support.
|
---|
5811 | case $host in
|
---|
5812 | ia64-*-hpux*)
|
---|
5813 | # Find out what ABI is being produced by ac_compile, and set mode
|
---|
5814 | # options accordingly.
|
---|
5815 | echo 'int i;' > conftest.$ac_ext
|
---|
5816 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
---|
5817 | (eval $ac_compile) 2>&5
|
---|
5818 | ac_status=$?
|
---|
5819 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
5820 | test $ac_status = 0; }; then
|
---|
5821 | case `/usr/bin/file conftest.$ac_objext` in
|
---|
5822 | *ELF-32*)
|
---|
5823 | HPUX_IA64_MODE=32
|
---|
5824 | ;;
|
---|
5825 | *ELF-64*)
|
---|
5826 | HPUX_IA64_MODE=64
|
---|
5827 | ;;
|
---|
5828 | esac
|
---|
5829 | fi
|
---|
5830 | rm -rf conftest*
|
---|
5831 | ;;
|
---|
5832 | *-*-irix6*)
|
---|
5833 | # Find out what ABI is being produced by ac_compile, and set linker
|
---|
5834 | # options accordingly.
|
---|
5835 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext
|
---|
5836 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
---|
5837 | (eval $ac_compile) 2>&5
|
---|
5838 | ac_status=$?
|
---|
5839 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
5840 | test $ac_status = 0; }; then
|
---|
5841 | if test yes = "$lt_cv_prog_gnu_ld"; then
|
---|
5842 | case `/usr/bin/file conftest.$ac_objext` in
|
---|
5843 | *32-bit*)
|
---|
5844 | LD="${LD-ld} -melf32bsmip"
|
---|
5845 | ;;
|
---|
5846 | *N32*)
|
---|
5847 | LD="${LD-ld} -melf32bmipn32"
|
---|
5848 | ;;
|
---|
5849 | *64-bit*)
|
---|
5850 | LD="${LD-ld} -melf64bmip"
|
---|
5851 | ;;
|
---|
5852 | esac
|
---|
5853 | else
|
---|
5854 | case `/usr/bin/file conftest.$ac_objext` in
|
---|
5855 | *32-bit*)
|
---|
5856 | LD="${LD-ld} -32"
|
---|
5857 | ;;
|
---|
5858 | *N32*)
|
---|
5859 | LD="${LD-ld} -n32"
|
---|
5860 | ;;
|
---|
5861 | *64-bit*)
|
---|
5862 | LD="${LD-ld} -64"
|
---|
5863 | ;;
|
---|
5864 | esac
|
---|
5865 | fi
|
---|
5866 | fi
|
---|
5867 | rm -rf conftest*
|
---|
5868 | ;;
|
---|
5869 |
|
---|
5870 | mips64*-*linux*)
|
---|
5871 | # Find out what ABI is being produced by ac_compile, and set linker
|
---|
5872 | # options accordingly.
|
---|
5873 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext
|
---|
5874 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
---|
5875 | (eval $ac_compile) 2>&5
|
---|
5876 | ac_status=$?
|
---|
5877 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
5878 | test $ac_status = 0; }; then
|
---|
5879 | emul=elf
|
---|
5880 | case `/usr/bin/file conftest.$ac_objext` in
|
---|
5881 | *32-bit*)
|
---|
5882 | emul="${emul}32"
|
---|
5883 | ;;
|
---|
5884 | *64-bit*)
|
---|
5885 | emul="${emul}64"
|
---|
5886 | ;;
|
---|
5887 | esac
|
---|
5888 | case `/usr/bin/file conftest.$ac_objext` in
|
---|
5889 | *MSB*)
|
---|
5890 | emul="${emul}btsmip"
|
---|
5891 | ;;
|
---|
5892 | *LSB*)
|
---|
5893 | emul="${emul}ltsmip"
|
---|
5894 | ;;
|
---|
5895 | esac
|
---|
5896 | case `/usr/bin/file conftest.$ac_objext` in
|
---|
5897 | *N32*)
|
---|
5898 | emul="${emul}n32"
|
---|
5899 | ;;
|
---|
5900 | esac
|
---|
5901 | LD="${LD-ld} -m $emul"
|
---|
5902 | fi
|
---|
5903 | rm -rf conftest*
|
---|
5904 | ;;
|
---|
5905 |
|
---|
5906 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
|
---|
5907 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
|
---|
5908 | # Find out what ABI is being produced by ac_compile, and set linker
|
---|
5909 | # options accordingly. Note that the listed cases only cover the
|
---|
5910 | # situations where additional linker options are needed (such as when
|
---|
5911 | # doing 32-bit compilation for a host where ld defaults to 64-bit, or
|
---|
5912 | # vice versa); the common cases where no linker options are needed do
|
---|
5913 | # not appear in the list.
|
---|
5914 | echo 'int i;' > conftest.$ac_ext
|
---|
5915 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
---|
5916 | (eval $ac_compile) 2>&5
|
---|
5917 | ac_status=$?
|
---|
5918 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
5919 | test $ac_status = 0; }; then
|
---|
5920 | case `/usr/bin/file conftest.o` in
|
---|
5921 | *32-bit*)
|
---|
5922 | case $host in
|
---|
5923 | x86_64-*kfreebsd*-gnu)
|
---|
5924 | LD="${LD-ld} -m elf_i386_fbsd"
|
---|
5925 | ;;
|
---|
5926 | x86_64-*linux*)
|
---|
5927 | case `/usr/bin/file conftest.o` in
|
---|
5928 | *x86-64*)
|
---|
5929 | LD="${LD-ld} -m elf32_x86_64"
|
---|
5930 | ;;
|
---|
5931 | *)
|
---|
5932 | LD="${LD-ld} -m elf_i386"
|
---|
5933 | ;;
|
---|
5934 | esac
|
---|
5935 | ;;
|
---|
5936 | powerpc64le-*linux*)
|
---|
5937 | LD="${LD-ld} -m elf32lppclinux"
|
---|
5938 | ;;
|
---|
5939 | powerpc64-*linux*)
|
---|
5940 | LD="${LD-ld} -m elf32ppclinux"
|
---|
5941 | ;;
|
---|
5942 | s390x-*linux*)
|
---|
5943 | LD="${LD-ld} -m elf_s390"
|
---|
5944 | ;;
|
---|
5945 | sparc64-*linux*)
|
---|
5946 | LD="${LD-ld} -m elf32_sparc"
|
---|
5947 | ;;
|
---|
5948 | esac
|
---|
5949 | ;;
|
---|
5950 | *64-bit*)
|
---|
5951 | case $host in
|
---|
5952 | x86_64-*kfreebsd*-gnu)
|
---|
5953 | LD="${LD-ld} -m elf_x86_64_fbsd"
|
---|
5954 | ;;
|
---|
5955 | x86_64-*linux*)
|
---|
5956 | LD="${LD-ld} -m elf_x86_64"
|
---|
5957 | ;;
|
---|
5958 | powerpcle-*linux*)
|
---|
5959 | LD="${LD-ld} -m elf64lppc"
|
---|
5960 | ;;
|
---|
5961 | powerpc-*linux*)
|
---|
5962 | LD="${LD-ld} -m elf64ppc"
|
---|
5963 | ;;
|
---|
5964 | s390*-*linux*|s390*-*tpf*)
|
---|
5965 | LD="${LD-ld} -m elf64_s390"
|
---|
5966 | ;;
|
---|
5967 | sparc*-*linux*)
|
---|
5968 | LD="${LD-ld} -m elf64_sparc"
|
---|
5969 | ;;
|
---|
5970 | esac
|
---|
5971 | ;;
|
---|
5972 | esac
|
---|
5973 | fi
|
---|
5974 | rm -rf conftest*
|
---|
5975 | ;;
|
---|
5976 |
|
---|
5977 | *-*-sco3.2v5*)
|
---|
5978 | # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
---|
5979 | SAVE_CFLAGS=$CFLAGS
|
---|
5980 | CFLAGS="$CFLAGS -belf"
|
---|
5981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
|
---|
5982 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
|
---|
5983 | if ${lt_cv_cc_needs_belf+:} false; then :
|
---|
5984 | $as_echo_n "(cached) " >&6
|
---|
5985 | else
|
---|
5986 | ac_ext=c
|
---|
5987 | ac_cpp='$CPP $CPPFLAGS'
|
---|
5988 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
5989 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
5990 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
5991 |
|
---|
5992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5993 | /* end confdefs.h. */
|
---|
5994 |
|
---|
5995 | int
|
---|
5996 | main ()
|
---|
5997 | {
|
---|
5998 |
|
---|
5999 | ;
|
---|
6000 | return 0;
|
---|
6001 | }
|
---|
6002 | _ACEOF
|
---|
6003 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
6004 | lt_cv_cc_needs_belf=yes
|
---|
6005 | else
|
---|
6006 | lt_cv_cc_needs_belf=no
|
---|
6007 | fi
|
---|
6008 | rm -f core conftest.err conftest.$ac_objext \
|
---|
6009 | conftest$ac_exeext conftest.$ac_ext
|
---|
6010 | ac_ext=c
|
---|
6011 | ac_cpp='$CPP $CPPFLAGS'
|
---|
6012 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
6013 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
6014 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
6015 |
|
---|
6016 | fi
|
---|
6017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
|
---|
6018 | $as_echo "$lt_cv_cc_needs_belf" >&6; }
|
---|
6019 | if test yes != "$lt_cv_cc_needs_belf"; then
|
---|
6020 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
---|
6021 | CFLAGS=$SAVE_CFLAGS
|
---|
6022 | fi
|
---|
6023 | ;;
|
---|
6024 | *-*solaris*)
|
---|
6025 | # Find out what ABI is being produced by ac_compile, and set linker
|
---|
6026 | # options accordingly.
|
---|
6027 | echo 'int i;' > conftest.$ac_ext
|
---|
6028 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
---|
6029 | (eval $ac_compile) 2>&5
|
---|
6030 | ac_status=$?
|
---|
6031 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
6032 | test $ac_status = 0; }; then
|
---|
6033 | case `/usr/bin/file conftest.o` in
|
---|
6034 | *64-bit*)
|
---|
6035 | case $lt_cv_prog_gnu_ld in
|
---|
6036 | yes*)
|
---|
6037 | case $host in
|
---|
6038 | i?86-*-solaris*|x86_64-*-solaris*)
|
---|
6039 | LD="${LD-ld} -m elf_x86_64"
|
---|
6040 | ;;
|
---|
6041 | sparc*-*-solaris*)
|
---|
6042 | LD="${LD-ld} -m elf64_sparc"
|
---|
6043 | ;;
|
---|
6044 | esac
|
---|
6045 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
|
---|
6046 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
|
---|
6047 | LD=${LD-ld}_sol2
|
---|
6048 | fi
|
---|
6049 | ;;
|
---|
6050 | *)
|
---|
6051 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
|
---|
6052 | LD="${LD-ld} -64"
|
---|
6053 | fi
|
---|
6054 | ;;
|
---|
6055 | esac
|
---|
6056 | ;;
|
---|
6057 | esac
|
---|
6058 | fi
|
---|
6059 | rm -rf conftest*
|
---|
6060 | ;;
|
---|
6061 | esac
|
---|
6062 |
|
---|
6063 | need_locks=$enable_libtool_lock
|
---|
6064 |
|
---|
6065 | if test -n "$ac_tool_prefix"; then
|
---|
6066 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
|
---|
6067 | set dummy ${ac_tool_prefix}mt; ac_word=$2
|
---|
6068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
6069 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
6070 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
|
---|
6071 | $as_echo_n "(cached) " >&6
|
---|
6072 | else
|
---|
6073 | if test -n "$MANIFEST_TOOL"; then
|
---|
6074 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
|
---|
6075 | else
|
---|
6076 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6077 | for as_dir in $PATH
|
---|
6078 | do
|
---|
6079 | IFS=$as_save_IFS
|
---|
6080 | test -z "$as_dir" && as_dir=.
|
---|
6081 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6082 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
6083 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
|
---|
6084 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
6085 | break 2
|
---|
6086 | fi
|
---|
6087 | done
|
---|
6088 | done
|
---|
6089 | IFS=$as_save_IFS
|
---|
6090 |
|
---|
6091 | fi
|
---|
6092 | fi
|
---|
6093 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
|
---|
6094 | if test -n "$MANIFEST_TOOL"; then
|
---|
6095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
|
---|
6096 | $as_echo "$MANIFEST_TOOL" >&6; }
|
---|
6097 | else
|
---|
6098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6099 | $as_echo "no" >&6; }
|
---|
6100 | fi
|
---|
6101 |
|
---|
6102 |
|
---|
6103 | fi
|
---|
6104 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
|
---|
6105 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
|
---|
6106 | # Extract the first word of "mt", so it can be a program name with args.
|
---|
6107 | set dummy mt; ac_word=$2
|
---|
6108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
6109 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
6110 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
|
---|
6111 | $as_echo_n "(cached) " >&6
|
---|
6112 | else
|
---|
6113 | if test -n "$ac_ct_MANIFEST_TOOL"; then
|
---|
6114 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
|
---|
6115 | else
|
---|
6116 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6117 | for as_dir in $PATH
|
---|
6118 | do
|
---|
6119 | IFS=$as_save_IFS
|
---|
6120 | test -z "$as_dir" && as_dir=.
|
---|
6121 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6122 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
6123 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
|
---|
6124 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
6125 | break 2
|
---|
6126 | fi
|
---|
6127 | done
|
---|
6128 | done
|
---|
6129 | IFS=$as_save_IFS
|
---|
6130 |
|
---|
6131 | fi
|
---|
6132 | fi
|
---|
6133 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
|
---|
6134 | if test -n "$ac_ct_MANIFEST_TOOL"; then
|
---|
6135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
|
---|
6136 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
|
---|
6137 | else
|
---|
6138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6139 | $as_echo "no" >&6; }
|
---|
6140 | fi
|
---|
6141 |
|
---|
6142 | if test "x$ac_ct_MANIFEST_TOOL" = x; then
|
---|
6143 | MANIFEST_TOOL=":"
|
---|
6144 | else
|
---|
6145 | case $cross_compiling:$ac_tool_warned in
|
---|
6146 | yes:)
|
---|
6147 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
6148 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
6149 | ac_tool_warned=yes ;;
|
---|
6150 | esac
|
---|
6151 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
|
---|
6152 | fi
|
---|
6153 | else
|
---|
6154 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
|
---|
6155 | fi
|
---|
6156 |
|
---|
6157 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
|
---|
6158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
|
---|
6159 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
|
---|
6160 | if ${lt_cv_path_mainfest_tool+:} false; then :
|
---|
6161 | $as_echo_n "(cached) " >&6
|
---|
6162 | else
|
---|
6163 | lt_cv_path_mainfest_tool=no
|
---|
6164 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
|
---|
6165 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
|
---|
6166 | cat conftest.err >&5
|
---|
6167 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then
|
---|
6168 | lt_cv_path_mainfest_tool=yes
|
---|
6169 | fi
|
---|
6170 | rm -f conftest*
|
---|
6171 | fi
|
---|
6172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
|
---|
6173 | $as_echo "$lt_cv_path_mainfest_tool" >&6; }
|
---|
6174 | if test yes != "$lt_cv_path_mainfest_tool"; then
|
---|
6175 | MANIFEST_TOOL=:
|
---|
6176 | fi
|
---|
6177 |
|
---|
6178 |
|
---|
6179 |
|
---|
6180 |
|
---|
6181 |
|
---|
6182 |
|
---|
6183 | case $host_os in
|
---|
6184 | rhapsody* | darwin*)
|
---|
6185 | if test -n "$ac_tool_prefix"; then
|
---|
6186 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
|
---|
6187 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
|
---|
6188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
6189 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
6190 | if ${ac_cv_prog_DSYMUTIL+:} false; then :
|
---|
6191 | $as_echo_n "(cached) " >&6
|
---|
6192 | else
|
---|
6193 | if test -n "$DSYMUTIL"; then
|
---|
6194 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
|
---|
6195 | else
|
---|
6196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6197 | for as_dir in $PATH
|
---|
6198 | do
|
---|
6199 | IFS=$as_save_IFS
|
---|
6200 | test -z "$as_dir" && as_dir=.
|
---|
6201 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6202 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
6203 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
|
---|
6204 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
6205 | break 2
|
---|
6206 | fi
|
---|
6207 | done
|
---|
6208 | done
|
---|
6209 | IFS=$as_save_IFS
|
---|
6210 |
|
---|
6211 | fi
|
---|
6212 | fi
|
---|
6213 | DSYMUTIL=$ac_cv_prog_DSYMUTIL
|
---|
6214 | if test -n "$DSYMUTIL"; then
|
---|
6215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
|
---|
6216 | $as_echo "$DSYMUTIL" >&6; }
|
---|
6217 | else
|
---|
6218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6219 | $as_echo "no" >&6; }
|
---|
6220 | fi
|
---|
6221 |
|
---|
6222 |
|
---|
6223 | fi
|
---|
6224 | if test -z "$ac_cv_prog_DSYMUTIL"; then
|
---|
6225 | ac_ct_DSYMUTIL=$DSYMUTIL
|
---|
6226 | # Extract the first word of "dsymutil", so it can be a program name with args.
|
---|
6227 | set dummy dsymutil; ac_word=$2
|
---|
6228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
6229 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
6230 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
|
---|
6231 | $as_echo_n "(cached) " >&6
|
---|
6232 | else
|
---|
6233 | if test -n "$ac_ct_DSYMUTIL"; then
|
---|
6234 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
|
---|
6235 | else
|
---|
6236 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6237 | for as_dir in $PATH
|
---|
6238 | do
|
---|
6239 | IFS=$as_save_IFS
|
---|
6240 | test -z "$as_dir" && as_dir=.
|
---|
6241 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6242 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
6243 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
|
---|
6244 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
6245 | break 2
|
---|
6246 | fi
|
---|
6247 | done
|
---|
6248 | done
|
---|
6249 | IFS=$as_save_IFS
|
---|
6250 |
|
---|
6251 | fi
|
---|
6252 | fi
|
---|
6253 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
|
---|
6254 | if test -n "$ac_ct_DSYMUTIL"; then
|
---|
6255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
|
---|
6256 | $as_echo "$ac_ct_DSYMUTIL" >&6; }
|
---|
6257 | else
|
---|
6258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6259 | $as_echo "no" >&6; }
|
---|
6260 | fi
|
---|
6261 |
|
---|
6262 | if test "x$ac_ct_DSYMUTIL" = x; then
|
---|
6263 | DSYMUTIL=":"
|
---|
6264 | else
|
---|
6265 | case $cross_compiling:$ac_tool_warned in
|
---|
6266 | yes:)
|
---|
6267 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
6268 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
6269 | ac_tool_warned=yes ;;
|
---|
6270 | esac
|
---|
6271 | DSYMUTIL=$ac_ct_DSYMUTIL
|
---|
6272 | fi
|
---|
6273 | else
|
---|
6274 | DSYMUTIL="$ac_cv_prog_DSYMUTIL"
|
---|
6275 | fi
|
---|
6276 |
|
---|
6277 | if test -n "$ac_tool_prefix"; then
|
---|
6278 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
|
---|
6279 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2
|
---|
6280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
6281 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
6282 | if ${ac_cv_prog_NMEDIT+:} false; then :
|
---|
6283 | $as_echo_n "(cached) " >&6
|
---|
6284 | else
|
---|
6285 | if test -n "$NMEDIT"; then
|
---|
6286 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
|
---|
6287 | else
|
---|
6288 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6289 | for as_dir in $PATH
|
---|
6290 | do
|
---|
6291 | IFS=$as_save_IFS
|
---|
6292 | test -z "$as_dir" && as_dir=.
|
---|
6293 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6294 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
6295 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
|
---|
6296 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
6297 | break 2
|
---|
6298 | fi
|
---|
6299 | done
|
---|
6300 | done
|
---|
6301 | IFS=$as_save_IFS
|
---|
6302 |
|
---|
6303 | fi
|
---|
6304 | fi
|
---|
6305 | NMEDIT=$ac_cv_prog_NMEDIT
|
---|
6306 | if test -n "$NMEDIT"; then
|
---|
6307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
|
---|
6308 | $as_echo "$NMEDIT" >&6; }
|
---|
6309 | else
|
---|
6310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6311 | $as_echo "no" >&6; }
|
---|
6312 | fi
|
---|
6313 |
|
---|
6314 |
|
---|
6315 | fi
|
---|
6316 | if test -z "$ac_cv_prog_NMEDIT"; then
|
---|
6317 | ac_ct_NMEDIT=$NMEDIT
|
---|
6318 | # Extract the first word of "nmedit", so it can be a program name with args.
|
---|
6319 | set dummy nmedit; ac_word=$2
|
---|
6320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
6321 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
6322 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
|
---|
6323 | $as_echo_n "(cached) " >&6
|
---|
6324 | else
|
---|
6325 | if test -n "$ac_ct_NMEDIT"; then
|
---|
6326 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
|
---|
6327 | else
|
---|
6328 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6329 | for as_dir in $PATH
|
---|
6330 | do
|
---|
6331 | IFS=$as_save_IFS
|
---|
6332 | test -z "$as_dir" && as_dir=.
|
---|
6333 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6334 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
6335 | ac_cv_prog_ac_ct_NMEDIT="nmedit"
|
---|
6336 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
6337 | break 2
|
---|
6338 | fi
|
---|
6339 | done
|
---|
6340 | done
|
---|
6341 | IFS=$as_save_IFS
|
---|
6342 |
|
---|
6343 | fi
|
---|
6344 | fi
|
---|
6345 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
|
---|
6346 | if test -n "$ac_ct_NMEDIT"; then
|
---|
6347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
|
---|
6348 | $as_echo "$ac_ct_NMEDIT" >&6; }
|
---|
6349 | else
|
---|
6350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6351 | $as_echo "no" >&6; }
|
---|
6352 | fi
|
---|
6353 |
|
---|
6354 | if test "x$ac_ct_NMEDIT" = x; then
|
---|
6355 | NMEDIT=":"
|
---|
6356 | else
|
---|
6357 | case $cross_compiling:$ac_tool_warned in
|
---|
6358 | yes:)
|
---|
6359 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
6360 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
6361 | ac_tool_warned=yes ;;
|
---|
6362 | esac
|
---|
6363 | NMEDIT=$ac_ct_NMEDIT
|
---|
6364 | fi
|
---|
6365 | else
|
---|
6366 | NMEDIT="$ac_cv_prog_NMEDIT"
|
---|
6367 | fi
|
---|
6368 |
|
---|
6369 | if test -n "$ac_tool_prefix"; then
|
---|
6370 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
|
---|
6371 | set dummy ${ac_tool_prefix}lipo; ac_word=$2
|
---|
6372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
6373 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
6374 | if ${ac_cv_prog_LIPO+:} false; then :
|
---|
6375 | $as_echo_n "(cached) " >&6
|
---|
6376 | else
|
---|
6377 | if test -n "$LIPO"; then
|
---|
6378 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
|
---|
6379 | else
|
---|
6380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6381 | for as_dir in $PATH
|
---|
6382 | do
|
---|
6383 | IFS=$as_save_IFS
|
---|
6384 | test -z "$as_dir" && as_dir=.
|
---|
6385 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6386 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
6387 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
|
---|
6388 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
6389 | break 2
|
---|
6390 | fi
|
---|
6391 | done
|
---|
6392 | done
|
---|
6393 | IFS=$as_save_IFS
|
---|
6394 |
|
---|
6395 | fi
|
---|
6396 | fi
|
---|
6397 | LIPO=$ac_cv_prog_LIPO
|
---|
6398 | if test -n "$LIPO"; then
|
---|
6399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
|
---|
6400 | $as_echo "$LIPO" >&6; }
|
---|
6401 | else
|
---|
6402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6403 | $as_echo "no" >&6; }
|
---|
6404 | fi
|
---|
6405 |
|
---|
6406 |
|
---|
6407 | fi
|
---|
6408 | if test -z "$ac_cv_prog_LIPO"; then
|
---|
6409 | ac_ct_LIPO=$LIPO
|
---|
6410 | # Extract the first word of "lipo", so it can be a program name with args.
|
---|
6411 | set dummy lipo; ac_word=$2
|
---|
6412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
6413 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
6414 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
|
---|
6415 | $as_echo_n "(cached) " >&6
|
---|
6416 | else
|
---|
6417 | if test -n "$ac_ct_LIPO"; then
|
---|
6418 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
|
---|
6419 | else
|
---|
6420 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6421 | for as_dir in $PATH
|
---|
6422 | do
|
---|
6423 | IFS=$as_save_IFS
|
---|
6424 | test -z "$as_dir" && as_dir=.
|
---|
6425 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6426 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
6427 | ac_cv_prog_ac_ct_LIPO="lipo"
|
---|
6428 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
6429 | break 2
|
---|
6430 | fi
|
---|
6431 | done
|
---|
6432 | done
|
---|
6433 | IFS=$as_save_IFS
|
---|
6434 |
|
---|
6435 | fi
|
---|
6436 | fi
|
---|
6437 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
|
---|
6438 | if test -n "$ac_ct_LIPO"; then
|
---|
6439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
|
---|
6440 | $as_echo "$ac_ct_LIPO" >&6; }
|
---|
6441 | else
|
---|
6442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6443 | $as_echo "no" >&6; }
|
---|
6444 | fi
|
---|
6445 |
|
---|
6446 | if test "x$ac_ct_LIPO" = x; then
|
---|
6447 | LIPO=":"
|
---|
6448 | else
|
---|
6449 | case $cross_compiling:$ac_tool_warned in
|
---|
6450 | yes:)
|
---|
6451 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
6452 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
6453 | ac_tool_warned=yes ;;
|
---|
6454 | esac
|
---|
6455 | LIPO=$ac_ct_LIPO
|
---|
6456 | fi
|
---|
6457 | else
|
---|
6458 | LIPO="$ac_cv_prog_LIPO"
|
---|
6459 | fi
|
---|
6460 |
|
---|
6461 | if test -n "$ac_tool_prefix"; then
|
---|
6462 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
|
---|
6463 | set dummy ${ac_tool_prefix}otool; ac_word=$2
|
---|
6464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
6465 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
6466 | if ${ac_cv_prog_OTOOL+:} false; then :
|
---|
6467 | $as_echo_n "(cached) " >&6
|
---|
6468 | else
|
---|
6469 | if test -n "$OTOOL"; then
|
---|
6470 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
|
---|
6471 | else
|
---|
6472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6473 | for as_dir in $PATH
|
---|
6474 | do
|
---|
6475 | IFS=$as_save_IFS
|
---|
6476 | test -z "$as_dir" && as_dir=.
|
---|
6477 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6478 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
6479 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
|
---|
6480 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
6481 | break 2
|
---|
6482 | fi
|
---|
6483 | done
|
---|
6484 | done
|
---|
6485 | IFS=$as_save_IFS
|
---|
6486 |
|
---|
6487 | fi
|
---|
6488 | fi
|
---|
6489 | OTOOL=$ac_cv_prog_OTOOL
|
---|
6490 | if test -n "$OTOOL"; then
|
---|
6491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
|
---|
6492 | $as_echo "$OTOOL" >&6; }
|
---|
6493 | else
|
---|
6494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6495 | $as_echo "no" >&6; }
|
---|
6496 | fi
|
---|
6497 |
|
---|
6498 |
|
---|
6499 | fi
|
---|
6500 | if test -z "$ac_cv_prog_OTOOL"; then
|
---|
6501 | ac_ct_OTOOL=$OTOOL
|
---|
6502 | # Extract the first word of "otool", so it can be a program name with args.
|
---|
6503 | set dummy otool; ac_word=$2
|
---|
6504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
6505 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
6506 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
|
---|
6507 | $as_echo_n "(cached) " >&6
|
---|
6508 | else
|
---|
6509 | if test -n "$ac_ct_OTOOL"; then
|
---|
6510 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
|
---|
6511 | else
|
---|
6512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6513 | for as_dir in $PATH
|
---|
6514 | do
|
---|
6515 | IFS=$as_save_IFS
|
---|
6516 | test -z "$as_dir" && as_dir=.
|
---|
6517 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6518 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
6519 | ac_cv_prog_ac_ct_OTOOL="otool"
|
---|
6520 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
6521 | break 2
|
---|
6522 | fi
|
---|
6523 | done
|
---|
6524 | done
|
---|
6525 | IFS=$as_save_IFS
|
---|
6526 |
|
---|
6527 | fi
|
---|
6528 | fi
|
---|
6529 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
|
---|
6530 | if test -n "$ac_ct_OTOOL"; then
|
---|
6531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
|
---|
6532 | $as_echo "$ac_ct_OTOOL" >&6; }
|
---|
6533 | else
|
---|
6534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6535 | $as_echo "no" >&6; }
|
---|
6536 | fi
|
---|
6537 |
|
---|
6538 | if test "x$ac_ct_OTOOL" = x; then
|
---|
6539 | OTOOL=":"
|
---|
6540 | else
|
---|
6541 | case $cross_compiling:$ac_tool_warned in
|
---|
6542 | yes:)
|
---|
6543 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
6544 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
6545 | ac_tool_warned=yes ;;
|
---|
6546 | esac
|
---|
6547 | OTOOL=$ac_ct_OTOOL
|
---|
6548 | fi
|
---|
6549 | else
|
---|
6550 | OTOOL="$ac_cv_prog_OTOOL"
|
---|
6551 | fi
|
---|
6552 |
|
---|
6553 | if test -n "$ac_tool_prefix"; then
|
---|
6554 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
|
---|
6555 | set dummy ${ac_tool_prefix}otool64; ac_word=$2
|
---|
6556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
6557 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
6558 | if ${ac_cv_prog_OTOOL64+:} false; then :
|
---|
6559 | $as_echo_n "(cached) " >&6
|
---|
6560 | else
|
---|
6561 | if test -n "$OTOOL64"; then
|
---|
6562 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
|
---|
6563 | else
|
---|
6564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6565 | for as_dir in $PATH
|
---|
6566 | do
|
---|
6567 | IFS=$as_save_IFS
|
---|
6568 | test -z "$as_dir" && as_dir=.
|
---|
6569 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6570 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
6571 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
|
---|
6572 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
6573 | break 2
|
---|
6574 | fi
|
---|
6575 | done
|
---|
6576 | done
|
---|
6577 | IFS=$as_save_IFS
|
---|
6578 |
|
---|
6579 | fi
|
---|
6580 | fi
|
---|
6581 | OTOOL64=$ac_cv_prog_OTOOL64
|
---|
6582 | if test -n "$OTOOL64"; then
|
---|
6583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
|
---|
6584 | $as_echo "$OTOOL64" >&6; }
|
---|
6585 | else
|
---|
6586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6587 | $as_echo "no" >&6; }
|
---|
6588 | fi
|
---|
6589 |
|
---|
6590 |
|
---|
6591 | fi
|
---|
6592 | if test -z "$ac_cv_prog_OTOOL64"; then
|
---|
6593 | ac_ct_OTOOL64=$OTOOL64
|
---|
6594 | # Extract the first word of "otool64", so it can be a program name with args.
|
---|
6595 | set dummy otool64; ac_word=$2
|
---|
6596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
6597 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
6598 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
|
---|
6599 | $as_echo_n "(cached) " >&6
|
---|
6600 | else
|
---|
6601 | if test -n "$ac_ct_OTOOL64"; then
|
---|
6602 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
|
---|
6603 | else
|
---|
6604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6605 | for as_dir in $PATH
|
---|
6606 | do
|
---|
6607 | IFS=$as_save_IFS
|
---|
6608 | test -z "$as_dir" && as_dir=.
|
---|
6609 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6610 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
6611 | ac_cv_prog_ac_ct_OTOOL64="otool64"
|
---|
6612 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
6613 | break 2
|
---|
6614 | fi
|
---|
6615 | done
|
---|
6616 | done
|
---|
6617 | IFS=$as_save_IFS
|
---|
6618 |
|
---|
6619 | fi
|
---|
6620 | fi
|
---|
6621 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
|
---|
6622 | if test -n "$ac_ct_OTOOL64"; then
|
---|
6623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
|
---|
6624 | $as_echo "$ac_ct_OTOOL64" >&6; }
|
---|
6625 | else
|
---|
6626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6627 | $as_echo "no" >&6; }
|
---|
6628 | fi
|
---|
6629 |
|
---|
6630 | if test "x$ac_ct_OTOOL64" = x; then
|
---|
6631 | OTOOL64=":"
|
---|
6632 | else
|
---|
6633 | case $cross_compiling:$ac_tool_warned in
|
---|
6634 | yes:)
|
---|
6635 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
6636 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
6637 | ac_tool_warned=yes ;;
|
---|
6638 | esac
|
---|
6639 | OTOOL64=$ac_ct_OTOOL64
|
---|
6640 | fi
|
---|
6641 | else
|
---|
6642 | OTOOL64="$ac_cv_prog_OTOOL64"
|
---|
6643 | fi
|
---|
6644 |
|
---|
6645 |
|
---|
6646 |
|
---|
6647 |
|
---|
6648 |
|
---|
6649 |
|
---|
6650 |
|
---|
6651 |
|
---|
6652 |
|
---|
6653 |
|
---|
6654 |
|
---|
6655 |
|
---|
6656 |
|
---|
6657 |
|
---|
6658 |
|
---|
6659 |
|
---|
6660 |
|
---|
6661 |
|
---|
6662 |
|
---|
6663 |
|
---|
6664 |
|
---|
6665 |
|
---|
6666 |
|
---|
6667 |
|
---|
6668 |
|
---|
6669 |
|
---|
6670 |
|
---|
6671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
|
---|
6672 | $as_echo_n "checking for -single_module linker flag... " >&6; }
|
---|
6673 | if ${lt_cv_apple_cc_single_mod+:} false; then :
|
---|
6674 | $as_echo_n "(cached) " >&6
|
---|
6675 | else
|
---|
6676 | lt_cv_apple_cc_single_mod=no
|
---|
6677 | if test -z "$LT_MULTI_MODULE"; then
|
---|
6678 | # By default we will add the -single_module flag. You can override
|
---|
6679 | # by either setting the environment variable LT_MULTI_MODULE
|
---|
6680 | # non-empty at configure time, or by adding -multi_module to the
|
---|
6681 | # link flags.
|
---|
6682 | rm -rf libconftest.dylib*
|
---|
6683 | echo "int foo(void){return 1;}" > conftest.c
|
---|
6684 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
---|
6685 | -dynamiclib -Wl,-single_module conftest.c" >&5
|
---|
6686 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
---|
6687 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
|
---|
6688 | _lt_result=$?
|
---|
6689 | # If there is a non-empty error log, and "single_module"
|
---|
6690 | # appears in it, assume the flag caused a linker warning
|
---|
6691 | if test -s conftest.err && $GREP single_module conftest.err; then
|
---|
6692 | cat conftest.err >&5
|
---|
6693 | # Otherwise, if the output was created with a 0 exit code from
|
---|
6694 | # the compiler, it worked.
|
---|
6695 | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
|
---|
6696 | lt_cv_apple_cc_single_mod=yes
|
---|
6697 | else
|
---|
6698 | cat conftest.err >&5
|
---|
6699 | fi
|
---|
6700 | rm -rf libconftest.dylib*
|
---|
6701 | rm -f conftest.*
|
---|
6702 | fi
|
---|
6703 | fi
|
---|
6704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
|
---|
6705 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
|
---|
6706 |
|
---|
6707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
|
---|
6708 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
|
---|
6709 | if ${lt_cv_ld_exported_symbols_list+:} false; then :
|
---|
6710 | $as_echo_n "(cached) " >&6
|
---|
6711 | else
|
---|
6712 | lt_cv_ld_exported_symbols_list=no
|
---|
6713 | save_LDFLAGS=$LDFLAGS
|
---|
6714 | echo "_main" > conftest.sym
|
---|
6715 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
|
---|
6716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6717 | /* end confdefs.h. */
|
---|
6718 |
|
---|
6719 | int
|
---|
6720 | main ()
|
---|
6721 | {
|
---|
6722 |
|
---|
6723 | ;
|
---|
6724 | return 0;
|
---|
6725 | }
|
---|
6726 | _ACEOF
|
---|
6727 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
6728 | lt_cv_ld_exported_symbols_list=yes
|
---|
6729 | else
|
---|
6730 | lt_cv_ld_exported_symbols_list=no
|
---|
6731 | fi
|
---|
6732 | rm -f core conftest.err conftest.$ac_objext \
|
---|
6733 | conftest$ac_exeext conftest.$ac_ext
|
---|
6734 | LDFLAGS=$save_LDFLAGS
|
---|
6735 |
|
---|
6736 | fi
|
---|
6737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
|
---|
6738 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
|
---|
6739 |
|
---|
6740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
|
---|
6741 | $as_echo_n "checking for -force_load linker flag... " >&6; }
|
---|
6742 | if ${lt_cv_ld_force_load+:} false; then :
|
---|
6743 | $as_echo_n "(cached) " >&6
|
---|
6744 | else
|
---|
6745 | lt_cv_ld_force_load=no
|
---|
6746 | cat > conftest.c << _LT_EOF
|
---|
6747 | int forced_loaded() { return 2;}
|
---|
6748 | _LT_EOF
|
---|
6749 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
|
---|
6750 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
|
---|
6751 | echo "$AR cr libconftest.a conftest.o" >&5
|
---|
6752 | $AR cr libconftest.a conftest.o 2>&5
|
---|
6753 | echo "$RANLIB libconftest.a" >&5
|
---|
6754 | $RANLIB libconftest.a 2>&5
|
---|
6755 | cat > conftest.c << _LT_EOF
|
---|
6756 | int main() { return 0;}
|
---|
6757 | _LT_EOF
|
---|
6758 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
|
---|
6759 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
|
---|
6760 | _lt_result=$?
|
---|
6761 | if test -s conftest.err && $GREP force_load conftest.err; then
|
---|
6762 | cat conftest.err >&5
|
---|
6763 | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
|
---|
6764 | lt_cv_ld_force_load=yes
|
---|
6765 | else
|
---|
6766 | cat conftest.err >&5
|
---|
6767 | fi
|
---|
6768 | rm -f conftest.err libconftest.a conftest conftest.c
|
---|
6769 | rm -rf conftest.dSYM
|
---|
6770 |
|
---|
6771 | fi
|
---|
6772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
|
---|
6773 | $as_echo "$lt_cv_ld_force_load" >&6; }
|
---|
6774 | case $host_os in
|
---|
6775 | rhapsody* | darwin1.[012])
|
---|
6776 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
|
---|
6777 | darwin1.*)
|
---|
6778 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
|
---|
6779 | darwin*) # darwin 5.x on
|
---|
6780 | # if running on 10.5 or later, the deployment target defaults
|
---|
6781 | # to the OS version, if on x86, and 10.4, the deployment
|
---|
6782 | # target defaults to 10.4. Don't you love it?
|
---|
6783 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
|
---|
6784 | 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
|
---|
6785 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
|
---|
6786 | 10.[012][,.]*)
|
---|
6787 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
|
---|
6788 | 10.*|11.*)
|
---|
6789 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
|
---|
6790 | esac
|
---|
6791 | ;;
|
---|
6792 | esac
|
---|
6793 | if test yes = "$lt_cv_apple_cc_single_mod"; then
|
---|
6794 | _lt_dar_single_mod='$single_module'
|
---|
6795 | fi
|
---|
6796 | if test yes = "$lt_cv_ld_exported_symbols_list"; then
|
---|
6797 | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
|
---|
6798 | else
|
---|
6799 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
|
---|
6800 | fi
|
---|
6801 | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
|
---|
6802 | _lt_dsymutil='~$DSYMUTIL $lib || :'
|
---|
6803 | else
|
---|
6804 | _lt_dsymutil=
|
---|
6805 | fi
|
---|
6806 | ;;
|
---|
6807 | esac
|
---|
6808 |
|
---|
6809 | # func_munge_path_list VARIABLE PATH
|
---|
6810 | # -----------------------------------
|
---|
6811 | # VARIABLE is name of variable containing _space_ separated list of
|
---|
6812 | # directories to be munged by the contents of PATH, which is string
|
---|
6813 | # having a format:
|
---|
6814 | # "DIR[:DIR]:"
|
---|
6815 | # string "DIR[ DIR]" will be prepended to VARIABLE
|
---|
6816 | # ":DIR[:DIR]"
|
---|
6817 | # string "DIR[ DIR]" will be appended to VARIABLE
|
---|
6818 | # "DIRP[:DIRP]::[DIRA:]DIRA"
|
---|
6819 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
|
---|
6820 | # "DIRA[ DIRA]" will be appended to VARIABLE
|
---|
6821 | # "DIR[:DIR]"
|
---|
6822 | # VARIABLE will be replaced by "DIR[ DIR]"
|
---|
6823 | func_munge_path_list ()
|
---|
6824 | {
|
---|
6825 | case x$2 in
|
---|
6826 | x)
|
---|
6827 | ;;
|
---|
6828 | *:)
|
---|
6829 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
|
---|
6830 | ;;
|
---|
6831 | x:*)
|
---|
6832 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
|
---|
6833 | ;;
|
---|
6834 | *::*)
|
---|
6835 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
|
---|
6836 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
|
---|
6837 | ;;
|
---|
6838 | *)
|
---|
6839 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
|
---|
6840 | ;;
|
---|
6841 | esac
|
---|
6842 | }
|
---|
6843 |
|
---|
6844 | ac_ext=c
|
---|
6845 | ac_cpp='$CPP $CPPFLAGS'
|
---|
6846 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
6847 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
6848 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
6849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
|
---|
6850 | $as_echo_n "checking how to run the C preprocessor... " >&6; }
|
---|
6851 | # On Suns, sometimes $CPP names a directory.
|
---|
6852 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
6853 | CPP=
|
---|
6854 | fi
|
---|
6855 | if test -z "$CPP"; then
|
---|
6856 | if ${ac_cv_prog_CPP+:} false; then :
|
---|
6857 | $as_echo_n "(cached) " >&6
|
---|
6858 | else
|
---|
6859 | # Double quotes because CPP needs to be expanded
|
---|
6860 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
6861 | do
|
---|
6862 | ac_preproc_ok=false
|
---|
6863 | for ac_c_preproc_warn_flag in '' yes
|
---|
6864 | do
|
---|
6865 | # Use a header file that comes with gcc, so configuring glibc
|
---|
6866 | # with a fresh cross-compiler works.
|
---|
6867 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6868 | # <limits.h> exists even on freestanding compilers.
|
---|
6869 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
6870 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
6871 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6872 | /* end confdefs.h. */
|
---|
6873 | #ifdef __STDC__
|
---|
6874 | # include <limits.h>
|
---|
6875 | #else
|
---|
6876 | # include <assert.h>
|
---|
6877 | #endif
|
---|
6878 | Syntax error
|
---|
6879 | _ACEOF
|
---|
6880 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
6881 |
|
---|
6882 | else
|
---|
6883 | # Broken: fails on valid input.
|
---|
6884 | continue
|
---|
6885 | fi
|
---|
6886 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
6887 |
|
---|
6888 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
6889 | # can be detected and how.
|
---|
6890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6891 | /* end confdefs.h. */
|
---|
6892 | #include <ac_nonexistent.h>
|
---|
6893 | _ACEOF
|
---|
6894 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
6895 | # Broken: success on invalid input.
|
---|
6896 | continue
|
---|
6897 | else
|
---|
6898 | # Passes both tests.
|
---|
6899 | ac_preproc_ok=:
|
---|
6900 | break
|
---|
6901 | fi
|
---|
6902 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
6903 |
|
---|
6904 | done
|
---|
6905 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
6906 | rm -f conftest.i conftest.err conftest.$ac_ext
|
---|
6907 | if $ac_preproc_ok; then :
|
---|
6908 | break
|
---|
6909 | fi
|
---|
6910 |
|
---|
6911 | done
|
---|
6912 | ac_cv_prog_CPP=$CPP
|
---|
6913 |
|
---|
6914 | fi
|
---|
6915 | CPP=$ac_cv_prog_CPP
|
---|
6916 | else
|
---|
6917 | ac_cv_prog_CPP=$CPP
|
---|
6918 | fi
|
---|
6919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
|
---|
6920 | $as_echo "$CPP" >&6; }
|
---|
6921 | ac_preproc_ok=false
|
---|
6922 | for ac_c_preproc_warn_flag in '' yes
|
---|
6923 | do
|
---|
6924 | # Use a header file that comes with gcc, so configuring glibc
|
---|
6925 | # with a fresh cross-compiler works.
|
---|
6926 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6927 | # <limits.h> exists even on freestanding compilers.
|
---|
6928 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
6929 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
6930 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6931 | /* end confdefs.h. */
|
---|
6932 | #ifdef __STDC__
|
---|
6933 | # include <limits.h>
|
---|
6934 | #else
|
---|
6935 | # include <assert.h>
|
---|
6936 | #endif
|
---|
6937 | Syntax error
|
---|
6938 | _ACEOF
|
---|
6939 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
6940 |
|
---|
6941 | else
|
---|
6942 | # Broken: fails on valid input.
|
---|
6943 | continue
|
---|
6944 | fi
|
---|
6945 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
6946 |
|
---|
6947 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
6948 | # can be detected and how.
|
---|
6949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6950 | /* end confdefs.h. */
|
---|
6951 | #include <ac_nonexistent.h>
|
---|
6952 | _ACEOF
|
---|
6953 | if ac_fn_c_try_cpp "$LINENO"; then :
|
---|
6954 | # Broken: success on invalid input.
|
---|
6955 | continue
|
---|
6956 | else
|
---|
6957 | # Passes both tests.
|
---|
6958 | ac_preproc_ok=:
|
---|
6959 | break
|
---|
6960 | fi
|
---|
6961 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
6962 |
|
---|
6963 | done
|
---|
6964 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
6965 | rm -f conftest.i conftest.err conftest.$ac_ext
|
---|
6966 | if $ac_preproc_ok; then :
|
---|
6967 |
|
---|
6968 | else
|
---|
6969 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
6970 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
6971 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
|
---|
6972 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
6973 | fi
|
---|
6974 |
|
---|
6975 | ac_ext=c
|
---|
6976 | ac_cpp='$CPP $CPPFLAGS'
|
---|
6977 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
6978 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
6979 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
6980 |
|
---|
6981 |
|
---|
6982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
---|
6983 | $as_echo_n "checking for ANSI C header files... " >&6; }
|
---|
6984 | if ${ac_cv_header_stdc+:} false; then :
|
---|
6985 | $as_echo_n "(cached) " >&6
|
---|
6986 | else
|
---|
6987 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
6988 | /* end confdefs.h. */
|
---|
6989 | #include <stdlib.h>
|
---|
6990 | #include <stdarg.h>
|
---|
6991 | #include <string.h>
|
---|
6992 | #include <float.h>
|
---|
6993 |
|
---|
6994 | int
|
---|
6995 | main ()
|
---|
6996 | {
|
---|
6997 |
|
---|
6998 | ;
|
---|
6999 | return 0;
|
---|
7000 | }
|
---|
7001 | _ACEOF
|
---|
7002 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
7003 | ac_cv_header_stdc=yes
|
---|
7004 | else
|
---|
7005 | ac_cv_header_stdc=no
|
---|
7006 | fi
|
---|
7007 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7008 |
|
---|
7009 | if test $ac_cv_header_stdc = yes; then
|
---|
7010 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
7011 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
7012 | /* end confdefs.h. */
|
---|
7013 | #include <string.h>
|
---|
7014 |
|
---|
7015 | _ACEOF
|
---|
7016 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
7017 | $EGREP "memchr" >/dev/null 2>&1; then :
|
---|
7018 |
|
---|
7019 | else
|
---|
7020 | ac_cv_header_stdc=no
|
---|
7021 | fi
|
---|
7022 | rm -f conftest*
|
---|
7023 |
|
---|
7024 | fi
|
---|
7025 |
|
---|
7026 | if test $ac_cv_header_stdc = yes; then
|
---|
7027 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
7028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
7029 | /* end confdefs.h. */
|
---|
7030 | #include <stdlib.h>
|
---|
7031 |
|
---|
7032 | _ACEOF
|
---|
7033 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
7034 | $EGREP "free" >/dev/null 2>&1; then :
|
---|
7035 |
|
---|
7036 | else
|
---|
7037 | ac_cv_header_stdc=no
|
---|
7038 | fi
|
---|
7039 | rm -f conftest*
|
---|
7040 |
|
---|
7041 | fi
|
---|
7042 |
|
---|
7043 | if test $ac_cv_header_stdc = yes; then
|
---|
7044 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
7045 | if test "$cross_compiling" = yes; then :
|
---|
7046 | :
|
---|
7047 | else
|
---|
7048 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
7049 | /* end confdefs.h. */
|
---|
7050 | #include <ctype.h>
|
---|
7051 | #include <stdlib.h>
|
---|
7052 | #if ((' ' & 0x0FF) == 0x020)
|
---|
7053 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
7054 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
7055 | #else
|
---|
7056 | # define ISLOWER(c) \
|
---|
7057 | (('a' <= (c) && (c) <= 'i') \
|
---|
7058 | || ('j' <= (c) && (c) <= 'r') \
|
---|
7059 | || ('s' <= (c) && (c) <= 'z'))
|
---|
7060 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
7061 | #endif
|
---|
7062 |
|
---|
7063 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
7064 | int
|
---|
7065 | main ()
|
---|
7066 | {
|
---|
7067 | int i;
|
---|
7068 | for (i = 0; i < 256; i++)
|
---|
7069 | if (XOR (islower (i), ISLOWER (i))
|
---|
7070 | || toupper (i) != TOUPPER (i))
|
---|
7071 | return 2;
|
---|
7072 | return 0;
|
---|
7073 | }
|
---|
7074 | _ACEOF
|
---|
7075 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
7076 |
|
---|
7077 | else
|
---|
7078 | ac_cv_header_stdc=no
|
---|
7079 | fi
|
---|
7080 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
7081 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
7082 | fi
|
---|
7083 |
|
---|
7084 | fi
|
---|
7085 | fi
|
---|
7086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
---|
7087 | $as_echo "$ac_cv_header_stdc" >&6; }
|
---|
7088 | if test $ac_cv_header_stdc = yes; then
|
---|
7089 |
|
---|
7090 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
---|
7091 |
|
---|
7092 | fi
|
---|
7093 |
|
---|
7094 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
7095 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
7096 | inttypes.h stdint.h unistd.h
|
---|
7097 | do :
|
---|
7098 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
7099 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
|
---|
7100 | "
|
---|
7101 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
---|
7102 | cat >>confdefs.h <<_ACEOF
|
---|
7103 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
7104 | _ACEOF
|
---|
7105 |
|
---|
7106 | fi
|
---|
7107 |
|
---|
7108 | done
|
---|
7109 |
|
---|
7110 |
|
---|
7111 | for ac_header in dlfcn.h
|
---|
7112 | do :
|
---|
7113 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
|
---|
7114 | "
|
---|
7115 | if test "x$ac_cv_header_dlfcn_h" = xyes; then :
|
---|
7116 | cat >>confdefs.h <<_ACEOF
|
---|
7117 | #define HAVE_DLFCN_H 1
|
---|
7118 | _ACEOF
|
---|
7119 |
|
---|
7120 | fi
|
---|
7121 |
|
---|
7122 | done
|
---|
7123 |
|
---|
7124 |
|
---|
7125 |
|
---|
7126 |
|
---|
7127 |
|
---|
7128 | # Set options
|
---|
7129 |
|
---|
7130 |
|
---|
7131 |
|
---|
7132 | enable_dlopen=no
|
---|
7133 |
|
---|
7134 |
|
---|
7135 | enable_win32_dll=no
|
---|
7136 |
|
---|
7137 |
|
---|
7138 | # Check whether --enable-shared was given.
|
---|
7139 | if test "${enable_shared+set}" = set; then :
|
---|
7140 | enableval=$enable_shared; p=${PACKAGE-default}
|
---|
7141 | case $enableval in
|
---|
7142 | yes) enable_shared=yes ;;
|
---|
7143 | no) enable_shared=no ;;
|
---|
7144 | *)
|
---|
7145 | enable_shared=no
|
---|
7146 | # Look at the argument we got. We use all the common list separators.
|
---|
7147 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
|
---|
7148 | for pkg in $enableval; do
|
---|
7149 | IFS=$lt_save_ifs
|
---|
7150 | if test "X$pkg" = "X$p"; then
|
---|
7151 | enable_shared=yes
|
---|
7152 | fi
|
---|
7153 | done
|
---|
7154 | IFS=$lt_save_ifs
|
---|
7155 | ;;
|
---|
7156 | esac
|
---|
7157 | else
|
---|
7158 | enable_shared=yes
|
---|
7159 | fi
|
---|
7160 |
|
---|
7161 |
|
---|
7162 |
|
---|
7163 |
|
---|
7164 |
|
---|
7165 |
|
---|
7166 |
|
---|
7167 |
|
---|
7168 |
|
---|
7169 | # Check whether --enable-static was given.
|
---|
7170 | if test "${enable_static+set}" = set; then :
|
---|
7171 | enableval=$enable_static; p=${PACKAGE-default}
|
---|
7172 | case $enableval in
|
---|
7173 | yes) enable_static=yes ;;
|
---|
7174 | no) enable_static=no ;;
|
---|
7175 | *)
|
---|
7176 | enable_static=no
|
---|
7177 | # Look at the argument we got. We use all the common list separators.
|
---|
7178 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
|
---|
7179 | for pkg in $enableval; do
|
---|
7180 | IFS=$lt_save_ifs
|
---|
7181 | if test "X$pkg" = "X$p"; then
|
---|
7182 | enable_static=yes
|
---|
7183 | fi
|
---|
7184 | done
|
---|
7185 | IFS=$lt_save_ifs
|
---|
7186 | ;;
|
---|
7187 | esac
|
---|
7188 | else
|
---|
7189 | enable_static=yes
|
---|
7190 | fi
|
---|
7191 |
|
---|
7192 |
|
---|
7193 |
|
---|
7194 |
|
---|
7195 |
|
---|
7196 |
|
---|
7197 |
|
---|
7198 |
|
---|
7199 |
|
---|
7200 |
|
---|
7201 | # Check whether --with-pic was given.
|
---|
7202 | if test "${with_pic+set}" = set; then :
|
---|
7203 | withval=$with_pic; lt_p=${PACKAGE-default}
|
---|
7204 | case $withval in
|
---|
7205 | yes|no) pic_mode=$withval ;;
|
---|
7206 | *)
|
---|
7207 | pic_mode=default
|
---|
7208 | # Look at the argument we got. We use all the common list separators.
|
---|
7209 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
|
---|
7210 | for lt_pkg in $withval; do
|
---|
7211 | IFS=$lt_save_ifs
|
---|
7212 | if test "X$lt_pkg" = "X$lt_p"; then
|
---|
7213 | pic_mode=yes
|
---|
7214 | fi
|
---|
7215 | done
|
---|
7216 | IFS=$lt_save_ifs
|
---|
7217 | ;;
|
---|
7218 | esac
|
---|
7219 | else
|
---|
7220 | pic_mode=default
|
---|
7221 | fi
|
---|
7222 |
|
---|
7223 |
|
---|
7224 |
|
---|
7225 |
|
---|
7226 |
|
---|
7227 |
|
---|
7228 |
|
---|
7229 |
|
---|
7230 | # Check whether --enable-fast-install was given.
|
---|
7231 | if test "${enable_fast_install+set}" = set; then :
|
---|
7232 | enableval=$enable_fast_install; p=${PACKAGE-default}
|
---|
7233 | case $enableval in
|
---|
7234 | yes) enable_fast_install=yes ;;
|
---|
7235 | no) enable_fast_install=no ;;
|
---|
7236 | *)
|
---|
7237 | enable_fast_install=no
|
---|
7238 | # Look at the argument we got. We use all the common list separators.
|
---|
7239 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
|
---|
7240 | for pkg in $enableval; do
|
---|
7241 | IFS=$lt_save_ifs
|
---|
7242 | if test "X$pkg" = "X$p"; then
|
---|
7243 | enable_fast_install=yes
|
---|
7244 | fi
|
---|
7245 | done
|
---|
7246 | IFS=$lt_save_ifs
|
---|
7247 | ;;
|
---|
7248 | esac
|
---|
7249 | else
|
---|
7250 | enable_fast_install=yes
|
---|
7251 | fi
|
---|
7252 |
|
---|
7253 |
|
---|
7254 |
|
---|
7255 |
|
---|
7256 |
|
---|
7257 |
|
---|
7258 |
|
---|
7259 |
|
---|
7260 | shared_archive_member_spec=
|
---|
7261 | case $host,$enable_shared in
|
---|
7262 | power*-*-aix[5-9]*,yes)
|
---|
7263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
|
---|
7264 | $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
|
---|
7265 |
|
---|
7266 | # Check whether --with-aix-soname was given.
|
---|
7267 | if test "${with_aix_soname+set}" = set; then :
|
---|
7268 | withval=$with_aix_soname; case $withval in
|
---|
7269 | aix|svr4|both)
|
---|
7270 | ;;
|
---|
7271 | *)
|
---|
7272 | as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
|
---|
7273 | ;;
|
---|
7274 | esac
|
---|
7275 | lt_cv_with_aix_soname=$with_aix_soname
|
---|
7276 | else
|
---|
7277 | if ${lt_cv_with_aix_soname+:} false; then :
|
---|
7278 | $as_echo_n "(cached) " >&6
|
---|
7279 | else
|
---|
7280 | lt_cv_with_aix_soname=aix
|
---|
7281 | fi
|
---|
7282 |
|
---|
7283 | with_aix_soname=$lt_cv_with_aix_soname
|
---|
7284 | fi
|
---|
7285 |
|
---|
7286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
|
---|
7287 | $as_echo "$with_aix_soname" >&6; }
|
---|
7288 | if test aix != "$with_aix_soname"; then
|
---|
7289 | # For the AIX way of multilib, we name the shared archive member
|
---|
7290 | # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
|
---|
7291 | # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
|
---|
7292 | # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
|
---|
7293 | # the AIX toolchain works better with OBJECT_MODE set (default 32).
|
---|
7294 | if test 64 = "${OBJECT_MODE-32}"; then
|
---|
7295 | shared_archive_member_spec=shr_64
|
---|
7296 | else
|
---|
7297 | shared_archive_member_spec=shr
|
---|
7298 | fi
|
---|
7299 | fi
|
---|
7300 | ;;
|
---|
7301 | *)
|
---|
7302 | with_aix_soname=aix
|
---|
7303 | ;;
|
---|
7304 | esac
|
---|
7305 |
|
---|
7306 |
|
---|
7307 |
|
---|
7308 |
|
---|
7309 |
|
---|
7310 |
|
---|
7311 |
|
---|
7312 |
|
---|
7313 |
|
---|
7314 |
|
---|
7315 | # This can be used to rebuild libtool when needed
|
---|
7316 | LIBTOOL_DEPS=$ltmain
|
---|
7317 |
|
---|
7318 | # Always use our own libtool.
|
---|
7319 | LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
---|
7320 |
|
---|
7321 |
|
---|
7322 |
|
---|
7323 |
|
---|
7324 |
|
---|
7325 |
|
---|
7326 |
|
---|
7327 |
|
---|
7328 |
|
---|
7329 |
|
---|
7330 |
|
---|
7331 |
|
---|
7332 |
|
---|
7333 |
|
---|
7334 |
|
---|
7335 |
|
---|
7336 |
|
---|
7337 |
|
---|
7338 |
|
---|
7339 |
|
---|
7340 |
|
---|
7341 |
|
---|
7342 |
|
---|
7343 |
|
---|
7344 |
|
---|
7345 |
|
---|
7346 |
|
---|
7347 |
|
---|
7348 |
|
---|
7349 |
|
---|
7350 | test -z "$LN_S" && LN_S="ln -s"
|
---|
7351 |
|
---|
7352 |
|
---|
7353 |
|
---|
7354 |
|
---|
7355 |
|
---|
7356 |
|
---|
7357 |
|
---|
7358 |
|
---|
7359 |
|
---|
7360 |
|
---|
7361 |
|
---|
7362 |
|
---|
7363 |
|
---|
7364 |
|
---|
7365 | if test -n "${ZSH_VERSION+set}"; then
|
---|
7366 | setopt NO_GLOB_SUBST
|
---|
7367 | fi
|
---|
7368 |
|
---|
7369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
|
---|
7370 | $as_echo_n "checking for objdir... " >&6; }
|
---|
7371 | if ${lt_cv_objdir+:} false; then :
|
---|
7372 | $as_echo_n "(cached) " >&6
|
---|
7373 | else
|
---|
7374 | rm -f .libs 2>/dev/null
|
---|
7375 | mkdir .libs 2>/dev/null
|
---|
7376 | if test -d .libs; then
|
---|
7377 | lt_cv_objdir=.libs
|
---|
7378 | else
|
---|
7379 | # MS-DOS does not allow filenames that begin with a dot.
|
---|
7380 | lt_cv_objdir=_libs
|
---|
7381 | fi
|
---|
7382 | rmdir .libs 2>/dev/null
|
---|
7383 | fi
|
---|
7384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
|
---|
7385 | $as_echo "$lt_cv_objdir" >&6; }
|
---|
7386 | objdir=$lt_cv_objdir
|
---|
7387 |
|
---|
7388 |
|
---|
7389 |
|
---|
7390 |
|
---|
7391 |
|
---|
7392 | cat >>confdefs.h <<_ACEOF
|
---|
7393 | #define LT_OBJDIR "$lt_cv_objdir/"
|
---|
7394 | _ACEOF
|
---|
7395 |
|
---|
7396 |
|
---|
7397 |
|
---|
7398 |
|
---|
7399 | case $host_os in
|
---|
7400 | aix3*)
|
---|
7401 | # AIX sometimes has problems with the GCC collect2 program. For some
|
---|
7402 | # reason, if we set the COLLECT_NAMES environment variable, the problems
|
---|
7403 | # vanish in a puff of smoke.
|
---|
7404 | if test set != "${COLLECT_NAMES+set}"; then
|
---|
7405 | COLLECT_NAMES=
|
---|
7406 | export COLLECT_NAMES
|
---|
7407 | fi
|
---|
7408 | ;;
|
---|
7409 | esac
|
---|
7410 |
|
---|
7411 | # Global variables:
|
---|
7412 | ofile=libtool
|
---|
7413 | can_build_shared=yes
|
---|
7414 |
|
---|
7415 | # All known linkers require a '.a' archive for static linking (except MSVC,
|
---|
7416 | # which needs '.lib').
|
---|
7417 | libext=a
|
---|
7418 |
|
---|
7419 | with_gnu_ld=$lt_cv_prog_gnu_ld
|
---|
7420 |
|
---|
7421 | old_CC=$CC
|
---|
7422 | old_CFLAGS=$CFLAGS
|
---|
7423 |
|
---|
7424 | # Set sane defaults for various variables
|
---|
7425 | test -z "$CC" && CC=cc
|
---|
7426 | test -z "$LTCC" && LTCC=$CC
|
---|
7427 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
|
---|
7428 | test -z "$LD" && LD=ld
|
---|
7429 | test -z "$ac_objext" && ac_objext=o
|
---|
7430 |
|
---|
7431 | func_cc_basename $compiler
|
---|
7432 | cc_basename=$func_cc_basename_result
|
---|
7433 |
|
---|
7434 |
|
---|
7435 | # Only perform the check for file, if the check method requires it
|
---|
7436 | test -z "$MAGIC_CMD" && MAGIC_CMD=file
|
---|
7437 | case $deplibs_check_method in
|
---|
7438 | file_magic*)
|
---|
7439 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
---|
7440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
|
---|
7441 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
|
---|
7442 | if ${lt_cv_path_MAGIC_CMD+:} false; then :
|
---|
7443 | $as_echo_n "(cached) " >&6
|
---|
7444 | else
|
---|
7445 | case $MAGIC_CMD in
|
---|
7446 | [\\/*] | ?:[\\/]*)
|
---|
7447 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
|
---|
7448 | ;;
|
---|
7449 | *)
|
---|
7450 | lt_save_MAGIC_CMD=$MAGIC_CMD
|
---|
7451 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
|
---|
7452 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
|
---|
7453 | for ac_dir in $ac_dummy; do
|
---|
7454 | IFS=$lt_save_ifs
|
---|
7455 | test -z "$ac_dir" && ac_dir=.
|
---|
7456 | if test -f "$ac_dir/${ac_tool_prefix}file"; then
|
---|
7457 | lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
|
---|
7458 | if test -n "$file_magic_test_file"; then
|
---|
7459 | case $deplibs_check_method in
|
---|
7460 | "file_magic "*)
|
---|
7461 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
|
---|
7462 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD
|
---|
7463 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
---|
7464 | $EGREP "$file_magic_regex" > /dev/null; then
|
---|
7465 | :
|
---|
7466 | else
|
---|
7467 | cat <<_LT_EOF 1>&2
|
---|
7468 |
|
---|
7469 | *** Warning: the command libtool uses to detect shared libraries,
|
---|
7470 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
---|
7471 | *** The result is that libtool may fail to recognize shared libraries
|
---|
7472 | *** as such. This will affect the creation of libtool libraries that
|
---|
7473 | *** depend on shared libraries, but programs linked with such libtool
|
---|
7474 | *** libraries will work regardless of this problem. Nevertheless, you
|
---|
7475 | *** may want to report the problem to your system manager and/or to
|
---|
7476 | *** bug-libtool@gnu.org
|
---|
7477 |
|
---|
7478 | _LT_EOF
|
---|
7479 | fi ;;
|
---|
7480 | esac
|
---|
7481 | fi
|
---|
7482 | break
|
---|
7483 | fi
|
---|
7484 | done
|
---|
7485 | IFS=$lt_save_ifs
|
---|
7486 | MAGIC_CMD=$lt_save_MAGIC_CMD
|
---|
7487 | ;;
|
---|
7488 | esac
|
---|
7489 | fi
|
---|
7490 |
|
---|
7491 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD
|
---|
7492 | if test -n "$MAGIC_CMD"; then
|
---|
7493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
|
---|
7494 | $as_echo "$MAGIC_CMD" >&6; }
|
---|
7495 | else
|
---|
7496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
7497 | $as_echo "no" >&6; }
|
---|
7498 | fi
|
---|
7499 |
|
---|
7500 |
|
---|
7501 |
|
---|
7502 |
|
---|
7503 |
|
---|
7504 | if test -z "$lt_cv_path_MAGIC_CMD"; then
|
---|
7505 | if test -n "$ac_tool_prefix"; then
|
---|
7506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
|
---|
7507 | $as_echo_n "checking for file... " >&6; }
|
---|
7508 | if ${lt_cv_path_MAGIC_CMD+:} false; then :
|
---|
7509 | $as_echo_n "(cached) " >&6
|
---|
7510 | else
|
---|
7511 | case $MAGIC_CMD in
|
---|
7512 | [\\/*] | ?:[\\/]*)
|
---|
7513 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
|
---|
7514 | ;;
|
---|
7515 | *)
|
---|
7516 | lt_save_MAGIC_CMD=$MAGIC_CMD
|
---|
7517 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
|
---|
7518 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
|
---|
7519 | for ac_dir in $ac_dummy; do
|
---|
7520 | IFS=$lt_save_ifs
|
---|
7521 | test -z "$ac_dir" && ac_dir=.
|
---|
7522 | if test -f "$ac_dir/file"; then
|
---|
7523 | lt_cv_path_MAGIC_CMD=$ac_dir/"file"
|
---|
7524 | if test -n "$file_magic_test_file"; then
|
---|
7525 | case $deplibs_check_method in
|
---|
7526 | "file_magic "*)
|
---|
7527 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
|
---|
7528 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD
|
---|
7529 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
---|
7530 | $EGREP "$file_magic_regex" > /dev/null; then
|
---|
7531 | :
|
---|
7532 | else
|
---|
7533 | cat <<_LT_EOF 1>&2
|
---|
7534 |
|
---|
7535 | *** Warning: the command libtool uses to detect shared libraries,
|
---|
7536 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
---|
7537 | *** The result is that libtool may fail to recognize shared libraries
|
---|
7538 | *** as such. This will affect the creation of libtool libraries that
|
---|
7539 | *** depend on shared libraries, but programs linked with such libtool
|
---|
7540 | *** libraries will work regardless of this problem. Nevertheless, you
|
---|
7541 | *** may want to report the problem to your system manager and/or to
|
---|
7542 | *** bug-libtool@gnu.org
|
---|
7543 |
|
---|
7544 | _LT_EOF
|
---|
7545 | fi ;;
|
---|
7546 | esac
|
---|
7547 | fi
|
---|
7548 | break
|
---|
7549 | fi
|
---|
7550 | done
|
---|
7551 | IFS=$lt_save_ifs
|
---|
7552 | MAGIC_CMD=$lt_save_MAGIC_CMD
|
---|
7553 | ;;
|
---|
7554 | esac
|
---|
7555 | fi
|
---|
7556 |
|
---|
7557 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD
|
---|
7558 | if test -n "$MAGIC_CMD"; then
|
---|
7559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
|
---|
7560 | $as_echo "$MAGIC_CMD" >&6; }
|
---|
7561 | else
|
---|
7562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
7563 | $as_echo "no" >&6; }
|
---|
7564 | fi
|
---|
7565 |
|
---|
7566 |
|
---|
7567 | else
|
---|
7568 | MAGIC_CMD=:
|
---|
7569 | fi
|
---|
7570 | fi
|
---|
7571 |
|
---|
7572 | fi
|
---|
7573 | ;;
|
---|
7574 | esac
|
---|
7575 |
|
---|
7576 | # Use C for the default configuration in the libtool script
|
---|
7577 |
|
---|
7578 | lt_save_CC=$CC
|
---|
7579 | ac_ext=c
|
---|
7580 | ac_cpp='$CPP $CPPFLAGS'
|
---|
7581 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
7582 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
7583 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
7584 |
|
---|
7585 |
|
---|
7586 | # Source file extension for C test sources.
|
---|
7587 | ac_ext=c
|
---|
7588 |
|
---|
7589 | # Object file extension for compiled C test sources.
|
---|
7590 | objext=o
|
---|
7591 | objext=$objext
|
---|
7592 |
|
---|
7593 | # Code to be used in simple compile tests
|
---|
7594 | lt_simple_compile_test_code="int some_variable = 0;"
|
---|
7595 |
|
---|
7596 | # Code to be used in simple link tests
|
---|
7597 | lt_simple_link_test_code='int main(){return(0);}'
|
---|
7598 |
|
---|
7599 |
|
---|
7600 |
|
---|
7601 |
|
---|
7602 |
|
---|
7603 |
|
---|
7604 |
|
---|
7605 | # If no C compiler was specified, use CC.
|
---|
7606 | LTCC=${LTCC-"$CC"}
|
---|
7607 |
|
---|
7608 | # If no C compiler flags were specified, use CFLAGS.
|
---|
7609 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
---|
7610 |
|
---|
7611 | # Allow CC to be a program name with arguments.
|
---|
7612 | compiler=$CC
|
---|
7613 |
|
---|
7614 | # Save the default compiler, since it gets overwritten when the other
|
---|
7615 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
|
---|
7616 | compiler_DEFAULT=$CC
|
---|
7617 |
|
---|
7618 | # save warnings/boilerplate of simple test code
|
---|
7619 | ac_outfile=conftest.$ac_objext
|
---|
7620 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext
|
---|
7621 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
---|
7622 | _lt_compiler_boilerplate=`cat conftest.err`
|
---|
7623 | $RM conftest*
|
---|
7624 |
|
---|
7625 | ac_outfile=conftest.$ac_objext
|
---|
7626 | echo "$lt_simple_link_test_code" >conftest.$ac_ext
|
---|
7627 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
---|
7628 | _lt_linker_boilerplate=`cat conftest.err`
|
---|
7629 | $RM -r conftest*
|
---|
7630 |
|
---|
7631 |
|
---|
7632 | ## CAVEAT EMPTOR:
|
---|
7633 | ## There is no encapsulation within the following macros, do not change
|
---|
7634 | ## the running order or otherwise move them around unless you know exactly
|
---|
7635 | ## what you are doing...
|
---|
7636 | if test -n "$compiler"; then
|
---|
7637 |
|
---|
7638 | lt_prog_compiler_no_builtin_flag=
|
---|
7639 |
|
---|
7640 | if test yes = "$GCC"; then
|
---|
7641 | case $cc_basename in
|
---|
7642 | nvcc*)
|
---|
7643 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
|
---|
7644 | *)
|
---|
7645 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
|
---|
7646 | esac
|
---|
7647 |
|
---|
7648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
|
---|
7649 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
|
---|
7650 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
|
---|
7651 | $as_echo_n "(cached) " >&6
|
---|
7652 | else
|
---|
7653 | lt_cv_prog_compiler_rtti_exceptions=no
|
---|
7654 | ac_outfile=conftest.$ac_objext
|
---|
7655 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
---|
7656 | lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
|
---|
7657 | # Insert the option either (1) after the last *FLAGS variable, or
|
---|
7658 | # (2) before a word containing "conftest.", or (3) at the end.
|
---|
7659 | # Note that $ac_compile itself does not contain backslashes and begins
|
---|
7660 | # with a dollar sign (not a hyphen), so the echo should work correctly.
|
---|
7661 | # The option is referenced via a variable to avoid confusing sed.
|
---|
7662 | lt_compile=`echo "$ac_compile" | $SED \
|
---|
7663 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
---|
7664 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
---|
7665 | -e 's:$: $lt_compiler_flag:'`
|
---|
7666 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
|
---|
7667 | (eval "$lt_compile" 2>conftest.err)
|
---|
7668 | ac_status=$?
|
---|
7669 | cat conftest.err >&5
|
---|
7670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7671 | if (exit $ac_status) && test -s "$ac_outfile"; then
|
---|
7672 | # The compiler can only warn and ignore the option if not recognized
|
---|
7673 | # So say no if there are warnings other than the usual output.
|
---|
7674 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
|
---|
7675 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
---|
7676 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
---|
7677 | lt_cv_prog_compiler_rtti_exceptions=yes
|
---|
7678 | fi
|
---|
7679 | fi
|
---|
7680 | $RM conftest*
|
---|
7681 |
|
---|
7682 | fi
|
---|
7683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
|
---|
7684 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
|
---|
7685 |
|
---|
7686 | if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
|
---|
7687 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
|
---|
7688 | else
|
---|
7689 | :
|
---|
7690 | fi
|
---|
7691 |
|
---|
7692 | fi
|
---|
7693 |
|
---|
7694 |
|
---|
7695 |
|
---|
7696 |
|
---|
7697 |
|
---|
7698 |
|
---|
7699 | lt_prog_compiler_wl=
|
---|
7700 | lt_prog_compiler_pic=
|
---|
7701 | lt_prog_compiler_static=
|
---|
7702 |
|
---|
7703 |
|
---|
7704 | if test yes = "$GCC"; then
|
---|
7705 | lt_prog_compiler_wl='-Wl,'
|
---|
7706 | lt_prog_compiler_static='-static'
|
---|
7707 |
|
---|
7708 | case $host_os in
|
---|
7709 | aix*)
|
---|
7710 | # All AIX code is PIC.
|
---|
7711 | if test ia64 = "$host_cpu"; then
|
---|
7712 | # AIX 5 now supports IA64 processor
|
---|
7713 | lt_prog_compiler_static='-Bstatic'
|
---|
7714 | fi
|
---|
7715 | lt_prog_compiler_pic='-fPIC'
|
---|
7716 | ;;
|
---|
7717 |
|
---|
7718 | amigaos*)
|
---|
7719 | case $host_cpu in
|
---|
7720 | powerpc)
|
---|
7721 | # see comment about AmigaOS4 .so support
|
---|
7722 | lt_prog_compiler_pic='-fPIC'
|
---|
7723 | ;;
|
---|
7724 | m68k)
|
---|
7725 | # FIXME: we need at least 68020 code to build shared libraries, but
|
---|
7726 | # adding the '-m68020' flag to GCC prevents building anything better,
|
---|
7727 | # like '-m68040'.
|
---|
7728 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
|
---|
7729 | ;;
|
---|
7730 | esac
|
---|
7731 | ;;
|
---|
7732 |
|
---|
7733 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
---|
7734 | # PIC is the default for these OSes.
|
---|
7735 | ;;
|
---|
7736 |
|
---|
7737 | mingw* | cygwin* | pw32* | os2* | cegcc*)
|
---|
7738 | # This hack is so that the source file can tell whether it is being
|
---|
7739 | # built for inclusion in a dll (and should export symbols for example).
|
---|
7740 | # Although the cygwin gcc ignores -fPIC, still need this for old-style
|
---|
7741 | # (--disable-auto-import) libraries
|
---|
7742 | lt_prog_compiler_pic='-DDLL_EXPORT'
|
---|
7743 | case $host_os in
|
---|
7744 | os2*)
|
---|
7745 | lt_prog_compiler_static='$wl-static'
|
---|
7746 | ;;
|
---|
7747 | esac
|
---|
7748 | ;;
|
---|
7749 |
|
---|
7750 | darwin* | rhapsody*)
|
---|
7751 | # PIC is the default on this platform
|
---|
7752 | # Common symbols not allowed in MH_DYLIB files
|
---|
7753 | lt_prog_compiler_pic='-fno-common'
|
---|
7754 | ;;
|
---|
7755 |
|
---|
7756 | haiku*)
|
---|
7757 | # PIC is the default for Haiku.
|
---|
7758 | # The "-static" flag exists, but is broken.
|
---|
7759 | lt_prog_compiler_static=
|
---|
7760 | ;;
|
---|
7761 |
|
---|
7762 | hpux*)
|
---|
7763 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
|
---|
7764 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
|
---|
7765 | # sets the default TLS model and affects inlining.
|
---|
7766 | case $host_cpu in
|
---|
7767 | hppa*64*)
|
---|
7768 | # +Z the default
|
---|
7769 | ;;
|
---|
7770 | *)
|
---|
7771 | lt_prog_compiler_pic='-fPIC'
|
---|
7772 | ;;
|
---|
7773 | esac
|
---|
7774 | ;;
|
---|
7775 |
|
---|
7776 | interix[3-9]*)
|
---|
7777 | # Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
---|
7778 | # Instead, we relocate shared libraries at runtime.
|
---|
7779 | ;;
|
---|
7780 |
|
---|
7781 | msdosdjgpp*)
|
---|
7782 | # Just because we use GCC doesn't mean we suddenly get shared libraries
|
---|
7783 | # on systems that don't support them.
|
---|
7784 | lt_prog_compiler_can_build_shared=no
|
---|
7785 | enable_shared=no
|
---|
7786 | ;;
|
---|
7787 |
|
---|
7788 | *nto* | *qnx*)
|
---|
7789 | # QNX uses GNU C++, but need to define -shared option too, otherwise
|
---|
7790 | # it will coredump.
|
---|
7791 | lt_prog_compiler_pic='-fPIC -shared'
|
---|
7792 | ;;
|
---|
7793 |
|
---|
7794 | sysv4*MP*)
|
---|
7795 | if test -d /usr/nec; then
|
---|
7796 | lt_prog_compiler_pic=-Kconform_pic
|
---|
7797 | fi
|
---|
7798 | ;;
|
---|
7799 |
|
---|
7800 | *)
|
---|
7801 | lt_prog_compiler_pic='-fPIC'
|
---|
7802 | ;;
|
---|
7803 | esac
|
---|
7804 |
|
---|
7805 | case $cc_basename in
|
---|
7806 | nvcc*) # Cuda Compiler Driver 2.2
|
---|
7807 | lt_prog_compiler_wl='-Xlinker '
|
---|
7808 | if test -n "$lt_prog_compiler_pic"; then
|
---|
7809 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
|
---|
7810 | fi
|
---|
7811 | ;;
|
---|
7812 | esac
|
---|
7813 | else
|
---|
7814 | # PORTME Check for flag to pass linker flags through the system compiler.
|
---|
7815 | case $host_os in
|
---|
7816 | aix*)
|
---|
7817 | lt_prog_compiler_wl='-Wl,'
|
---|
7818 | if test ia64 = "$host_cpu"; then
|
---|
7819 | # AIX 5 now supports IA64 processor
|
---|
7820 | lt_prog_compiler_static='-Bstatic'
|
---|
7821 | else
|
---|
7822 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
|
---|
7823 | fi
|
---|
7824 | ;;
|
---|
7825 |
|
---|
7826 | darwin* | rhapsody*)
|
---|
7827 | # PIC is the default on this platform
|
---|
7828 | # Common symbols not allowed in MH_DYLIB files
|
---|
7829 | lt_prog_compiler_pic='-fno-common'
|
---|
7830 | case $cc_basename in
|
---|
7831 | nagfor*)
|
---|
7832 | # NAG Fortran compiler
|
---|
7833 | lt_prog_compiler_wl='-Wl,-Wl,,'
|
---|
7834 | lt_prog_compiler_pic='-PIC'
|
---|
7835 | lt_prog_compiler_static='-Bstatic'
|
---|
7836 | ;;
|
---|
7837 | esac
|
---|
7838 | ;;
|
---|
7839 |
|
---|
7840 | mingw* | cygwin* | pw32* | os2* | cegcc*)
|
---|
7841 | # This hack is so that the source file can tell whether it is being
|
---|
7842 | # built for inclusion in a dll (and should export symbols for example).
|
---|
7843 | lt_prog_compiler_pic='-DDLL_EXPORT'
|
---|
7844 | case $host_os in
|
---|
7845 | os2*)
|
---|
7846 | lt_prog_compiler_static='$wl-static'
|
---|
7847 | ;;
|
---|
7848 | esac
|
---|
7849 | ;;
|
---|
7850 |
|
---|
7851 | hpux9* | hpux10* | hpux11*)
|
---|
7852 | lt_prog_compiler_wl='-Wl,'
|
---|
7853 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
---|
7854 | # not for PA HP-UX.
|
---|
7855 | case $host_cpu in
|
---|
7856 | hppa*64*|ia64*)
|
---|
7857 | # +Z the default
|
---|
7858 | ;;
|
---|
7859 | *)
|
---|
7860 | lt_prog_compiler_pic='+Z'
|
---|
7861 | ;;
|
---|
7862 | esac
|
---|
7863 | # Is there a better lt_prog_compiler_static that works with the bundled CC?
|
---|
7864 | lt_prog_compiler_static='$wl-a ${wl}archive'
|
---|
7865 | ;;
|
---|
7866 |
|
---|
7867 | irix5* | irix6* | nonstopux*)
|
---|
7868 | lt_prog_compiler_wl='-Wl,'
|
---|
7869 | # PIC (with -KPIC) is the default.
|
---|
7870 | lt_prog_compiler_static='-non_shared'
|
---|
7871 | ;;
|
---|
7872 |
|
---|
7873 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
|
---|
7874 | case $cc_basename in
|
---|
7875 | # old Intel for x86_64, which still supported -KPIC.
|
---|
7876 | ecc*)
|
---|
7877 | lt_prog_compiler_wl='-Wl,'
|
---|
7878 | lt_prog_compiler_pic='-KPIC'
|
---|
7879 | lt_prog_compiler_static='-static'
|
---|
7880 | ;;
|
---|
7881 | # flang / f18. f95 an alias for gfortran or flang on Debian
|
---|
7882 | flang* | f18* | f95*)
|
---|
7883 | lt_prog_compiler_wl='-Wl,'
|
---|
7884 | lt_prog_compiler_pic='-fPIC'
|
---|
7885 | lt_prog_compiler_static='-static'
|
---|
7886 | ;;
|
---|
7887 | # icc used to be incompatible with GCC.
|
---|
7888 | # ICC 10 doesn't accept -KPIC any more.
|
---|
7889 | icc* | ifort*)
|
---|
7890 | lt_prog_compiler_wl='-Wl,'
|
---|
7891 | lt_prog_compiler_pic='-fPIC'
|
---|
7892 | lt_prog_compiler_static='-static'
|
---|
7893 | ;;
|
---|
7894 | # Lahey Fortran 8.1.
|
---|
7895 | lf95*)
|
---|
7896 | lt_prog_compiler_wl='-Wl,'
|
---|
7897 | lt_prog_compiler_pic='--shared'
|
---|
7898 | lt_prog_compiler_static='--static'
|
---|
7899 | ;;
|
---|
7900 | nagfor*)
|
---|
7901 | # NAG Fortran compiler
|
---|
7902 | lt_prog_compiler_wl='-Wl,-Wl,,'
|
---|
7903 | lt_prog_compiler_pic='-PIC'
|
---|
7904 | lt_prog_compiler_static='-Bstatic'
|
---|
7905 | ;;
|
---|
7906 | tcc*)
|
---|
7907 | # Fabrice Bellard et al's Tiny C Compiler
|
---|
7908 | lt_prog_compiler_wl='-Wl,'
|
---|
7909 | lt_prog_compiler_pic='-fPIC'
|
---|
7910 | lt_prog_compiler_static='-static'
|
---|
7911 | ;;
|
---|
7912 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
|
---|
7913 | # Portland Group compilers (*not* the Pentium gcc compiler,
|
---|
7914 | # which looks to be a dead project)
|
---|
7915 | lt_prog_compiler_wl='-Wl,'
|
---|
7916 | lt_prog_compiler_pic='-fpic'
|
---|
7917 | lt_prog_compiler_static='-Bstatic'
|
---|
7918 | ;;
|
---|
7919 | ccc*)
|
---|
7920 | lt_prog_compiler_wl='-Wl,'
|
---|
7921 | # All Alpha code is PIC.
|
---|
7922 | lt_prog_compiler_static='-non_shared'
|
---|
7923 | ;;
|
---|
7924 | xl* | bgxl* | bgf* | mpixl*)
|
---|
7925 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
|
---|
7926 | lt_prog_compiler_wl='-Wl,'
|
---|
7927 | lt_prog_compiler_pic='-qpic'
|
---|
7928 | lt_prog_compiler_static='-qstaticlink'
|
---|
7929 | ;;
|
---|
7930 | *)
|
---|
7931 | case `$CC -V 2>&1 | sed 5q` in
|
---|
7932 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
|
---|
7933 | # Sun Fortran 8.3 passes all unrecognized flags to the linker
|
---|
7934 | lt_prog_compiler_pic='-KPIC'
|
---|
7935 | lt_prog_compiler_static='-Bstatic'
|
---|
7936 | lt_prog_compiler_wl=''
|
---|
7937 | ;;
|
---|
7938 | *Sun\ F* | *Sun*Fortran*)
|
---|
7939 | lt_prog_compiler_pic='-KPIC'
|
---|
7940 | lt_prog_compiler_static='-Bstatic'
|
---|
7941 | lt_prog_compiler_wl='-Qoption ld '
|
---|
7942 | ;;
|
---|
7943 | *Sun\ C*)
|
---|
7944 | # Sun C 5.9
|
---|
7945 | lt_prog_compiler_pic='-KPIC'
|
---|
7946 | lt_prog_compiler_static='-Bstatic'
|
---|
7947 | lt_prog_compiler_wl='-Wl,'
|
---|
7948 | ;;
|
---|
7949 | *Intel*\ [CF]*Compiler*)
|
---|
7950 | lt_prog_compiler_wl='-Wl,'
|
---|
7951 | lt_prog_compiler_pic='-fPIC'
|
---|
7952 | lt_prog_compiler_static='-static'
|
---|
7953 | ;;
|
---|
7954 | *Portland\ Group*)
|
---|
7955 | lt_prog_compiler_wl='-Wl,'
|
---|
7956 | lt_prog_compiler_pic='-fpic'
|
---|
7957 | lt_prog_compiler_static='-Bstatic'
|
---|
7958 | ;;
|
---|
7959 | esac
|
---|
7960 | ;;
|
---|
7961 | esac
|
---|
7962 | ;;
|
---|
7963 |
|
---|
7964 | newsos6)
|
---|
7965 | lt_prog_compiler_pic='-KPIC'
|
---|
7966 | lt_prog_compiler_static='-Bstatic'
|
---|
7967 | ;;
|
---|
7968 |
|
---|
7969 | *nto* | *qnx*)
|
---|
7970 | # QNX uses GNU C++, but need to define -shared option too, otherwise
|
---|
7971 | # it will coredump.
|
---|
7972 | lt_prog_compiler_pic='-fPIC -shared'
|
---|
7973 | ;;
|
---|
7974 |
|
---|
7975 | osf3* | osf4* | osf5*)
|
---|
7976 | lt_prog_compiler_wl='-Wl,'
|
---|
7977 | # All OSF/1 code is PIC.
|
---|
7978 | lt_prog_compiler_static='-non_shared'
|
---|
7979 | ;;
|
---|
7980 |
|
---|
7981 | rdos*)
|
---|
7982 | lt_prog_compiler_static='-non_shared'
|
---|
7983 | ;;
|
---|
7984 |
|
---|
7985 | solaris*)
|
---|
7986 | lt_prog_compiler_pic='-KPIC'
|
---|
7987 | lt_prog_compiler_static='-Bstatic'
|
---|
7988 | case $cc_basename in
|
---|
7989 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
|
---|
7990 | lt_prog_compiler_wl='-Qoption ld ';;
|
---|
7991 | *)
|
---|
7992 | lt_prog_compiler_wl='-Wl,';;
|
---|
7993 | esac
|
---|
7994 | ;;
|
---|
7995 |
|
---|
7996 | sunos4*)
|
---|
7997 | lt_prog_compiler_wl='-Qoption ld '
|
---|
7998 | lt_prog_compiler_pic='-PIC'
|
---|
7999 | lt_prog_compiler_static='-Bstatic'
|
---|
8000 | ;;
|
---|
8001 |
|
---|
8002 | sysv4 | sysv4.2uw2* | sysv4.3*)
|
---|
8003 | lt_prog_compiler_wl='-Wl,'
|
---|
8004 | lt_prog_compiler_pic='-KPIC'
|
---|
8005 | lt_prog_compiler_static='-Bstatic'
|
---|
8006 | ;;
|
---|
8007 |
|
---|
8008 | sysv4*MP*)
|
---|
8009 | if test -d /usr/nec; then
|
---|
8010 | lt_prog_compiler_pic='-Kconform_pic'
|
---|
8011 | lt_prog_compiler_static='-Bstatic'
|
---|
8012 | fi
|
---|
8013 | ;;
|
---|
8014 |
|
---|
8015 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
---|
8016 | lt_prog_compiler_wl='-Wl,'
|
---|
8017 | lt_prog_compiler_pic='-KPIC'
|
---|
8018 | lt_prog_compiler_static='-Bstatic'
|
---|
8019 | ;;
|
---|
8020 |
|
---|
8021 | unicos*)
|
---|
8022 | lt_prog_compiler_wl='-Wl,'
|
---|
8023 | lt_prog_compiler_can_build_shared=no
|
---|
8024 | ;;
|
---|
8025 |
|
---|
8026 | uts4*)
|
---|
8027 | lt_prog_compiler_pic='-pic'
|
---|
8028 | lt_prog_compiler_static='-Bstatic'
|
---|
8029 | ;;
|
---|
8030 |
|
---|
8031 | *)
|
---|
8032 | lt_prog_compiler_can_build_shared=no
|
---|
8033 | ;;
|
---|
8034 | esac
|
---|
8035 | fi
|
---|
8036 |
|
---|
8037 | case $host_os in
|
---|
8038 | # For platforms that do not support PIC, -DPIC is meaningless:
|
---|
8039 | *djgpp*)
|
---|
8040 | lt_prog_compiler_pic=
|
---|
8041 | ;;
|
---|
8042 | *)
|
---|
8043 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
|
---|
8044 | ;;
|
---|
8045 | esac
|
---|
8046 |
|
---|
8047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
|
---|
8048 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
---|
8049 | if ${lt_cv_prog_compiler_pic+:} false; then :
|
---|
8050 | $as_echo_n "(cached) " >&6
|
---|
8051 | else
|
---|
8052 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
|
---|
8053 | fi
|
---|
8054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
|
---|
8055 | $as_echo "$lt_cv_prog_compiler_pic" >&6; }
|
---|
8056 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
|
---|
8057 |
|
---|
8058 | #
|
---|
8059 | # Check to make sure the PIC flag actually works.
|
---|
8060 | #
|
---|
8061 | if test -n "$lt_prog_compiler_pic"; then
|
---|
8062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
|
---|
8063 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
|
---|
8064 | if ${lt_cv_prog_compiler_pic_works+:} false; then :
|
---|
8065 | $as_echo_n "(cached) " >&6
|
---|
8066 | else
|
---|
8067 | lt_cv_prog_compiler_pic_works=no
|
---|
8068 | ac_outfile=conftest.$ac_objext
|
---|
8069 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
---|
8070 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
|
---|
8071 | # Insert the option either (1) after the last *FLAGS variable, or
|
---|
8072 | # (2) before a word containing "conftest.", or (3) at the end.
|
---|
8073 | # Note that $ac_compile itself does not contain backslashes and begins
|
---|
8074 | # with a dollar sign (not a hyphen), so the echo should work correctly.
|
---|
8075 | # The option is referenced via a variable to avoid confusing sed.
|
---|
8076 | lt_compile=`echo "$ac_compile" | $SED \
|
---|
8077 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
---|
8078 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
---|
8079 | -e 's:$: $lt_compiler_flag:'`
|
---|
8080 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
|
---|
8081 | (eval "$lt_compile" 2>conftest.err)
|
---|
8082 | ac_status=$?
|
---|
8083 | cat conftest.err >&5
|
---|
8084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8085 | if (exit $ac_status) && test -s "$ac_outfile"; then
|
---|
8086 | # The compiler can only warn and ignore the option if not recognized
|
---|
8087 | # So say no if there are warnings other than the usual output.
|
---|
8088 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
|
---|
8089 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
---|
8090 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
---|
8091 | lt_cv_prog_compiler_pic_works=yes
|
---|
8092 | fi
|
---|
8093 | fi
|
---|
8094 | $RM conftest*
|
---|
8095 |
|
---|
8096 | fi
|
---|
8097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
|
---|
8098 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
|
---|
8099 |
|
---|
8100 | if test yes = "$lt_cv_prog_compiler_pic_works"; then
|
---|
8101 | case $lt_prog_compiler_pic in
|
---|
8102 | "" | " "*) ;;
|
---|
8103 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
|
---|
8104 | esac
|
---|
8105 | else
|
---|
8106 | lt_prog_compiler_pic=
|
---|
8107 | lt_prog_compiler_can_build_shared=no
|
---|
8108 | fi
|
---|
8109 |
|
---|
8110 | fi
|
---|
8111 |
|
---|
8112 |
|
---|
8113 |
|
---|
8114 |
|
---|
8115 |
|
---|
8116 |
|
---|
8117 |
|
---|
8118 |
|
---|
8119 |
|
---|
8120 |
|
---|
8121 |
|
---|
8122 | #
|
---|
8123 | # Check to make sure the static flag actually works.
|
---|
8124 | #
|
---|
8125 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
|
---|
8126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
|
---|
8127 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
|
---|
8128 | if ${lt_cv_prog_compiler_static_works+:} false; then :
|
---|
8129 | $as_echo_n "(cached) " >&6
|
---|
8130 | else
|
---|
8131 | lt_cv_prog_compiler_static_works=no
|
---|
8132 | save_LDFLAGS=$LDFLAGS
|
---|
8133 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
|
---|
8134 | echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
---|
8135 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
---|
8136 | # The linker can only warn and ignore the option if not recognized
|
---|
8137 | # So say no if there are warnings
|
---|
8138 | if test -s conftest.err; then
|
---|
8139 | # Append any errors to the config.log.
|
---|
8140 | cat conftest.err 1>&5
|
---|
8141 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
|
---|
8142 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
---|
8143 | if diff conftest.exp conftest.er2 >/dev/null; then
|
---|
8144 | lt_cv_prog_compiler_static_works=yes
|
---|
8145 | fi
|
---|
8146 | else
|
---|
8147 | lt_cv_prog_compiler_static_works=yes
|
---|
8148 | fi
|
---|
8149 | fi
|
---|
8150 | $RM -r conftest*
|
---|
8151 | LDFLAGS=$save_LDFLAGS
|
---|
8152 |
|
---|
8153 | fi
|
---|
8154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
|
---|
8155 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
|
---|
8156 |
|
---|
8157 | if test yes = "$lt_cv_prog_compiler_static_works"; then
|
---|
8158 | :
|
---|
8159 | else
|
---|
8160 | lt_prog_compiler_static=
|
---|
8161 | fi
|
---|
8162 |
|
---|
8163 |
|
---|
8164 |
|
---|
8165 |
|
---|
8166 |
|
---|
8167 |
|
---|
8168 |
|
---|
8169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
|
---|
8170 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
|
---|
8171 | if ${lt_cv_prog_compiler_c_o+:} false; then :
|
---|
8172 | $as_echo_n "(cached) " >&6
|
---|
8173 | else
|
---|
8174 | lt_cv_prog_compiler_c_o=no
|
---|
8175 | $RM -r conftest 2>/dev/null
|
---|
8176 | mkdir conftest
|
---|
8177 | cd conftest
|
---|
8178 | mkdir out
|
---|
8179 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
---|
8180 |
|
---|
8181 | lt_compiler_flag="-o out/conftest2.$ac_objext"
|
---|
8182 | # Insert the option either (1) after the last *FLAGS variable, or
|
---|
8183 | # (2) before a word containing "conftest.", or (3) at the end.
|
---|
8184 | # Note that $ac_compile itself does not contain backslashes and begins
|
---|
8185 | # with a dollar sign (not a hyphen), so the echo should work correctly.
|
---|
8186 | lt_compile=`echo "$ac_compile" | $SED \
|
---|
8187 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
---|
8188 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
---|
8189 | -e 's:$: $lt_compiler_flag:'`
|
---|
8190 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
|
---|
8191 | (eval "$lt_compile" 2>out/conftest.err)
|
---|
8192 | ac_status=$?
|
---|
8193 | cat out/conftest.err >&5
|
---|
8194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8195 | if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
---|
8196 | then
|
---|
8197 | # The compiler can only warn and ignore the option if not recognized
|
---|
8198 | # So say no if there are warnings
|
---|
8199 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
|
---|
8200 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
---|
8201 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
---|
8202 | lt_cv_prog_compiler_c_o=yes
|
---|
8203 | fi
|
---|
8204 | fi
|
---|
8205 | chmod u+w . 2>&5
|
---|
8206 | $RM conftest*
|
---|
8207 | # SGI C++ compiler will create directory out/ii_files/ for
|
---|
8208 | # template instantiation
|
---|
8209 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
|
---|
8210 | $RM out/* && rmdir out
|
---|
8211 | cd ..
|
---|
8212 | $RM -r conftest
|
---|
8213 | $RM conftest*
|
---|
8214 |
|
---|
8215 | fi
|
---|
8216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
|
---|
8217 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
|
---|
8218 |
|
---|
8219 |
|
---|
8220 |
|
---|
8221 |
|
---|
8222 |
|
---|
8223 |
|
---|
8224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
|
---|
8225 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
|
---|
8226 | if ${lt_cv_prog_compiler_c_o+:} false; then :
|
---|
8227 | $as_echo_n "(cached) " >&6
|
---|
8228 | else
|
---|
8229 | lt_cv_prog_compiler_c_o=no
|
---|
8230 | $RM -r conftest 2>/dev/null
|
---|
8231 | mkdir conftest
|
---|
8232 | cd conftest
|
---|
8233 | mkdir out
|
---|
8234 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
---|
8235 |
|
---|
8236 | lt_compiler_flag="-o out/conftest2.$ac_objext"
|
---|
8237 | # Insert the option either (1) after the last *FLAGS variable, or
|
---|
8238 | # (2) before a word containing "conftest.", or (3) at the end.
|
---|
8239 | # Note that $ac_compile itself does not contain backslashes and begins
|
---|
8240 | # with a dollar sign (not a hyphen), so the echo should work correctly.
|
---|
8241 | lt_compile=`echo "$ac_compile" | $SED \
|
---|
8242 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
---|
8243 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
---|
8244 | -e 's:$: $lt_compiler_flag:'`
|
---|
8245 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
|
---|
8246 | (eval "$lt_compile" 2>out/conftest.err)
|
---|
8247 | ac_status=$?
|
---|
8248 | cat out/conftest.err >&5
|
---|
8249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8250 | if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
---|
8251 | then
|
---|
8252 | # The compiler can only warn and ignore the option if not recognized
|
---|
8253 | # So say no if there are warnings
|
---|
8254 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
|
---|
8255 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
---|
8256 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
---|
8257 | lt_cv_prog_compiler_c_o=yes
|
---|
8258 | fi
|
---|
8259 | fi
|
---|
8260 | chmod u+w . 2>&5
|
---|
8261 | $RM conftest*
|
---|
8262 | # SGI C++ compiler will create directory out/ii_files/ for
|
---|
8263 | # template instantiation
|
---|
8264 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
|
---|
8265 | $RM out/* && rmdir out
|
---|
8266 | cd ..
|
---|
8267 | $RM -r conftest
|
---|
8268 | $RM conftest*
|
---|
8269 |
|
---|
8270 | fi
|
---|
8271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
|
---|
8272 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
|
---|
8273 |
|
---|
8274 |
|
---|
8275 |
|
---|
8276 |
|
---|
8277 | hard_links=nottested
|
---|
8278 | if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
|
---|
8279 | # do not overwrite the value of need_locks provided by the user
|
---|
8280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
|
---|
8281 | $as_echo_n "checking if we can lock with hard links... " >&6; }
|
---|
8282 | hard_links=yes
|
---|
8283 | $RM conftest*
|
---|
8284 | ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
---|
8285 | touch conftest.a
|
---|
8286 | ln conftest.a conftest.b 2>&5 || hard_links=no
|
---|
8287 | ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
---|
8288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
|
---|
8289 | $as_echo "$hard_links" >&6; }
|
---|
8290 | if test no = "$hard_links"; then
|
---|
8291 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
|
---|
8292 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
|
---|
8293 | need_locks=warn
|
---|
8294 | fi
|
---|
8295 | else
|
---|
8296 | need_locks=no
|
---|
8297 | fi
|
---|
8298 |
|
---|
8299 |
|
---|
8300 |
|
---|
8301 |
|
---|
8302 |
|
---|
8303 |
|
---|
8304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
|
---|
8305 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
|
---|
8306 |
|
---|
8307 | runpath_var=
|
---|
8308 | allow_undefined_flag=
|
---|
8309 | always_export_symbols=no
|
---|
8310 | archive_cmds=
|
---|
8311 | archive_expsym_cmds=
|
---|
8312 | compiler_needs_object=no
|
---|
8313 | enable_shared_with_static_runtimes=no
|
---|
8314 | export_dynamic_flag_spec=
|
---|
8315 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
---|
8316 | hardcode_automatic=no
|
---|
8317 | hardcode_direct=no
|
---|
8318 | hardcode_direct_absolute=no
|
---|
8319 | hardcode_libdir_flag_spec=
|
---|
8320 | hardcode_libdir_separator=
|
---|
8321 | hardcode_minus_L=no
|
---|
8322 | hardcode_shlibpath_var=unsupported
|
---|
8323 | inherit_rpath=no
|
---|
8324 | link_all_deplibs=unknown
|
---|
8325 | module_cmds=
|
---|
8326 | module_expsym_cmds=
|
---|
8327 | old_archive_from_new_cmds=
|
---|
8328 | old_archive_from_expsyms_cmds=
|
---|
8329 | thread_safe_flag_spec=
|
---|
8330 | whole_archive_flag_spec=
|
---|
8331 | # include_expsyms should be a list of space-separated symbols to be *always*
|
---|
8332 | # included in the symbol list
|
---|
8333 | include_expsyms=
|
---|
8334 | # exclude_expsyms can be an extended regexp of symbols to exclude
|
---|
8335 | # it will be wrapped by ' (' and ')$', so one must not match beginning or
|
---|
8336 | # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
|
---|
8337 | # as well as any symbol that contains 'd'.
|
---|
8338 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
|
---|
8339 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
|
---|
8340 | # platforms (ab)use it in PIC code, but their linkers get confused if
|
---|
8341 | # the symbol is explicitly referenced. Since portable code cannot
|
---|
8342 | # rely on this symbol name, it's probably fine to never include it in
|
---|
8343 | # preloaded symbol tables.
|
---|
8344 | # Exclude shared library initialization/finalization symbols.
|
---|
8345 | extract_expsyms_cmds=
|
---|
8346 |
|
---|
8347 | case $host_os in
|
---|
8348 | cygwin* | mingw* | pw32* | cegcc*)
|
---|
8349 | # FIXME: the MSVC++ port hasn't been tested in a loooong time
|
---|
8350 | # When not using gcc, we currently assume that we are using
|
---|
8351 | # Microsoft Visual C++.
|
---|
8352 | if test yes != "$GCC"; then
|
---|
8353 | with_gnu_ld=no
|
---|
8354 | fi
|
---|
8355 | ;;
|
---|
8356 | interix*)
|
---|
8357 | # we just hope/assume this is gcc and not c89 (= MSVC++)
|
---|
8358 | with_gnu_ld=yes
|
---|
8359 | ;;
|
---|
8360 | openbsd* | bitrig*)
|
---|
8361 | with_gnu_ld=no
|
---|
8362 | ;;
|
---|
8363 | linux* | k*bsd*-gnu | gnu*)
|
---|
8364 | link_all_deplibs=no
|
---|
8365 | ;;
|
---|
8366 | esac
|
---|
8367 |
|
---|
8368 | ld_shlibs=yes
|
---|
8369 |
|
---|
8370 | # On some targets, GNU ld is compatible enough with the native linker
|
---|
8371 | # that we're better off using the native interface for both.
|
---|
8372 | lt_use_gnu_ld_interface=no
|
---|
8373 | if test yes = "$with_gnu_ld"; then
|
---|
8374 | case $host_os in
|
---|
8375 | aix*)
|
---|
8376 | # The AIX port of GNU ld has always aspired to compatibility
|
---|
8377 | # with the native linker. However, as the warning in the GNU ld
|
---|
8378 | # block says, versions before 2.19.5* couldn't really create working
|
---|
8379 | # shared libraries, regardless of the interface used.
|
---|
8380 | case `$LD -v 2>&1` in
|
---|
8381 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
|
---|
8382 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
|
---|
8383 | *\ \(GNU\ Binutils\)\ [3-9]*) ;;
|
---|
8384 | *)
|
---|
8385 | lt_use_gnu_ld_interface=yes
|
---|
8386 | ;;
|
---|
8387 | esac
|
---|
8388 | ;;
|
---|
8389 | *)
|
---|
8390 | lt_use_gnu_ld_interface=yes
|
---|
8391 | ;;
|
---|
8392 | esac
|
---|
8393 | fi
|
---|
8394 |
|
---|
8395 | if test yes = "$lt_use_gnu_ld_interface"; then
|
---|
8396 | # If archive_cmds runs LD, not CC, wlarc should be empty
|
---|
8397 | wlarc='$wl'
|
---|
8398 |
|
---|
8399 | # Set some defaults for GNU ld with shared library support. These
|
---|
8400 | # are reset later if shared libraries are not supported. Putting them
|
---|
8401 | # here allows them to be overridden if necessary.
|
---|
8402 | runpath_var=LD_RUN_PATH
|
---|
8403 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
---|
8404 | export_dynamic_flag_spec='$wl--export-dynamic'
|
---|
8405 | # ancient GNU ld didn't support --whole-archive et. al.
|
---|
8406 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
|
---|
8407 | whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
|
---|
8408 | else
|
---|
8409 | whole_archive_flag_spec=
|
---|
8410 | fi
|
---|
8411 | supports_anon_versioning=no
|
---|
8412 | case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
|
---|
8413 | *GNU\ gold*) supports_anon_versioning=yes ;;
|
---|
8414 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
|
---|
8415 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
|
---|
8416 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
|
---|
8417 | *\ 2.11.*) ;; # other 2.11 versions
|
---|
8418 | *) supports_anon_versioning=yes ;;
|
---|
8419 | esac
|
---|
8420 |
|
---|
8421 | # See if GNU ld supports shared libraries.
|
---|
8422 | case $host_os in
|
---|
8423 | aix[3-9]*)
|
---|
8424 | # On AIX/PPC, the GNU linker is very broken
|
---|
8425 | if test ia64 != "$host_cpu"; then
|
---|
8426 | ld_shlibs=no
|
---|
8427 | cat <<_LT_EOF 1>&2
|
---|
8428 |
|
---|
8429 | *** Warning: the GNU linker, at least up to release 2.19, is reported
|
---|
8430 | *** to be unable to reliably create shared libraries on AIX.
|
---|
8431 | *** Therefore, libtool is disabling shared libraries support. If you
|
---|
8432 | *** really care for shared libraries, you may want to install binutils
|
---|
8433 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
|
---|
8434 | *** You will then need to restart the configuration process.
|
---|
8435 |
|
---|
8436 | _LT_EOF
|
---|
8437 | fi
|
---|
8438 | ;;
|
---|
8439 |
|
---|
8440 | amigaos*)
|
---|
8441 | case $host_cpu in
|
---|
8442 | powerpc)
|
---|
8443 | # see comment about AmigaOS4 .so support
|
---|
8444 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
8445 | archive_expsym_cmds=''
|
---|
8446 | ;;
|
---|
8447 | m68k)
|
---|
8448 | 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)'
|
---|
8449 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
8450 | hardcode_minus_L=yes
|
---|
8451 | ;;
|
---|
8452 | esac
|
---|
8453 | ;;
|
---|
8454 |
|
---|
8455 | beos*)
|
---|
8456 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
---|
8457 | allow_undefined_flag=unsupported
|
---|
8458 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
|
---|
8459 | # support --undefined. This deserves some investigation. FIXME
|
---|
8460 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
8461 | else
|
---|
8462 | ld_shlibs=no
|
---|
8463 | fi
|
---|
8464 | ;;
|
---|
8465 |
|
---|
8466 | cygwin* | mingw* | pw32* | cegcc*)
|
---|
8467 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
|
---|
8468 | # as there is no search path for DLLs.
|
---|
8469 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
8470 | export_dynamic_flag_spec='$wl--export-all-symbols'
|
---|
8471 | allow_undefined_flag=unsupported
|
---|
8472 | always_export_symbols=no
|
---|
8473 | enable_shared_with_static_runtimes=yes
|
---|
8474 | 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'
|
---|
8475 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
|
---|
8476 |
|
---|
8477 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
---|
8478 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
---|
8479 | # If the export-symbols file already is a .def file, use it as
|
---|
8480 | # is; otherwise, prepend EXPORTS...
|
---|
8481 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
|
---|
8482 | cp $export_symbols $output_objdir/$soname.def;
|
---|
8483 | else
|
---|
8484 | echo EXPORTS > $output_objdir/$soname.def;
|
---|
8485 | cat $export_symbols >> $output_objdir/$soname.def;
|
---|
8486 | fi~
|
---|
8487 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
---|
8488 | else
|
---|
8489 | ld_shlibs=no
|
---|
8490 | fi
|
---|
8491 | ;;
|
---|
8492 |
|
---|
8493 | haiku*)
|
---|
8494 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
8495 | link_all_deplibs=yes
|
---|
8496 | ;;
|
---|
8497 |
|
---|
8498 | os2*)
|
---|
8499 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
8500 | hardcode_minus_L=yes
|
---|
8501 | allow_undefined_flag=unsupported
|
---|
8502 | shrext_cmds=.dll
|
---|
8503 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
|
---|
8504 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
|
---|
8505 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
|
---|
8506 | $ECHO EXPORTS >> $output_objdir/$libname.def~
|
---|
8507 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
|
---|
8508 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
|
---|
8509 | emximp -o $lib $output_objdir/$libname.def'
|
---|
8510 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
|
---|
8511 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
|
---|
8512 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
|
---|
8513 | $ECHO EXPORTS >> $output_objdir/$libname.def~
|
---|
8514 | prefix_cmds="$SED"~
|
---|
8515 | if test EXPORTS = "`$SED 1q $export_symbols`"; then
|
---|
8516 | prefix_cmds="$prefix_cmds -e 1d";
|
---|
8517 | fi~
|
---|
8518 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
|
---|
8519 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
|
---|
8520 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
|
---|
8521 | emximp -o $lib $output_objdir/$libname.def'
|
---|
8522 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
|
---|
8523 | enable_shared_with_static_runtimes=yes
|
---|
8524 | ;;
|
---|
8525 |
|
---|
8526 | interix[3-9]*)
|
---|
8527 | hardcode_direct=no
|
---|
8528 | hardcode_shlibpath_var=no
|
---|
8529 | hardcode_libdir_flag_spec='$wl-rpath,$libdir'
|
---|
8530 | export_dynamic_flag_spec='$wl-E'
|
---|
8531 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
---|
8532 | # Instead, shared libraries are loaded at an image base (0x10000000 by
|
---|
8533 | # default) and relocated if they conflict, which is a slow very memory
|
---|
8534 | # consuming and fragmenting process. To avoid this, we pick a random,
|
---|
8535 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
---|
8536 | # time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
---|
8537 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
---|
8538 | 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'
|
---|
8539 | ;;
|
---|
8540 |
|
---|
8541 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
|
---|
8542 | tmp_diet=no
|
---|
8543 | if test linux-dietlibc = "$host_os"; then
|
---|
8544 | case $cc_basename in
|
---|
8545 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
|
---|
8546 | esac
|
---|
8547 | fi
|
---|
8548 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
|
---|
8549 | && test no = "$tmp_diet"
|
---|
8550 | then
|
---|
8551 | tmp_addflag=' $pic_flag'
|
---|
8552 | tmp_sharedflag='-shared'
|
---|
8553 | case $cc_basename,$host_cpu in
|
---|
8554 | pgcc*) # Portland Group C compiler
|
---|
8555 | 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'
|
---|
8556 | tmp_addflag=' $pic_flag'
|
---|
8557 | ;;
|
---|
8558 | pgf77* | pgf90* | pgf95* | pgfortran*)
|
---|
8559 | # Portland Group f77 and f90 compilers
|
---|
8560 | 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'
|
---|
8561 | tmp_addflag=' $pic_flag -Mnomain' ;;
|
---|
8562 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
|
---|
8563 | tmp_addflag=' -i_dynamic' ;;
|
---|
8564 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
|
---|
8565 | tmp_addflag=' -i_dynamic -nofor_main' ;;
|
---|
8566 | ifc* | ifort*) # Intel Fortran compiler
|
---|
8567 | tmp_addflag=' -nofor_main' ;;
|
---|
8568 | lf95*) # Lahey Fortran 8.1
|
---|
8569 | whole_archive_flag_spec=
|
---|
8570 | tmp_sharedflag='--shared' ;;
|
---|
8571 | nagfor*) # NAGFOR 5.3
|
---|
8572 | tmp_sharedflag='-Wl,-shared' ;;
|
---|
8573 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
|
---|
8574 | tmp_sharedflag='-qmkshrobj'
|
---|
8575 | tmp_addflag= ;;
|
---|
8576 | nvcc*) # Cuda Compiler Driver 2.2
|
---|
8577 | 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'
|
---|
8578 | compiler_needs_object=yes
|
---|
8579 | ;;
|
---|
8580 | esac
|
---|
8581 | case `$CC -V 2>&1 | sed 5q` in
|
---|
8582 | *Sun\ C*) # Sun C 5.9
|
---|
8583 | 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'
|
---|
8584 | compiler_needs_object=yes
|
---|
8585 | tmp_sharedflag='-G' ;;
|
---|
8586 | *Sun\ F*) # Sun Fortran 8.3
|
---|
8587 | tmp_sharedflag='-G' ;;
|
---|
8588 | esac
|
---|
8589 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
8590 |
|
---|
8591 | if test yes = "$supports_anon_versioning"; then
|
---|
8592 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
|
---|
8593 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
---|
8594 | echo "local: *; };" >> $output_objdir/$libname.ver~
|
---|
8595 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
|
---|
8596 | fi
|
---|
8597 |
|
---|
8598 | case $cc_basename in
|
---|
8599 | tcc*)
|
---|
8600 | export_dynamic_flag_spec='-rdynamic'
|
---|
8601 | ;;
|
---|
8602 | xlf* | bgf* | bgxlf* | mpixlf*)
|
---|
8603 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
|
---|
8604 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
|
---|
8605 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
---|
8606 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
|
---|
8607 | if test yes = "$supports_anon_versioning"; then
|
---|
8608 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
|
---|
8609 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
---|
8610 | echo "local: *; };" >> $output_objdir/$libname.ver~
|
---|
8611 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
---|
8612 | fi
|
---|
8613 | ;;
|
---|
8614 | esac
|
---|
8615 | else
|
---|
8616 | ld_shlibs=no
|
---|
8617 | fi
|
---|
8618 | ;;
|
---|
8619 |
|
---|
8620 | netbsd* | netbsdelf*-gnu)
|
---|
8621 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
---|
8622 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
---|
8623 | wlarc=
|
---|
8624 | else
|
---|
8625 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
8626 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
|
---|
8627 | fi
|
---|
8628 | ;;
|
---|
8629 |
|
---|
8630 | solaris*)
|
---|
8631 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
|
---|
8632 | ld_shlibs=no
|
---|
8633 | cat <<_LT_EOF 1>&2
|
---|
8634 |
|
---|
8635 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably
|
---|
8636 | *** create shared libraries on Solaris systems. Therefore, libtool
|
---|
8637 | *** is disabling shared libraries support. We urge you to upgrade GNU
|
---|
8638 | *** binutils to release 2.9.1 or newer. Another option is to modify
|
---|
8639 | *** your PATH or compiler configuration so that the native linker is
|
---|
8640 | *** used, and then restart.
|
---|
8641 |
|
---|
8642 | _LT_EOF
|
---|
8643 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
---|
8644 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
8645 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
|
---|
8646 | else
|
---|
8647 | ld_shlibs=no
|
---|
8648 | fi
|
---|
8649 | ;;
|
---|
8650 |
|
---|
8651 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
|
---|
8652 | case `$LD -v 2>&1` in
|
---|
8653 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
|
---|
8654 | ld_shlibs=no
|
---|
8655 | cat <<_LT_EOF 1>&2
|
---|
8656 |
|
---|
8657 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
|
---|
8658 | *** reliably create shared libraries on SCO systems. Therefore, libtool
|
---|
8659 | *** is disabling shared libraries support. We urge you to upgrade GNU
|
---|
8660 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
|
---|
8661 | *** your PATH or compiler configuration so that the native linker is
|
---|
8662 | *** used, and then restart.
|
---|
8663 |
|
---|
8664 | _LT_EOF
|
---|
8665 | ;;
|
---|
8666 | *)
|
---|
8667 | # For security reasons, it is highly recommended that you always
|
---|
8668 | # use absolute paths for naming shared libraries, and exclude the
|
---|
8669 | # DT_RUNPATH tag from executables and libraries. But doing so
|
---|
8670 | # requires that you compile everything twice, which is a pain.
|
---|
8671 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
---|
8672 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
---|
8673 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
8674 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
|
---|
8675 | else
|
---|
8676 | ld_shlibs=no
|
---|
8677 | fi
|
---|
8678 | ;;
|
---|
8679 | esac
|
---|
8680 | ;;
|
---|
8681 |
|
---|
8682 | sunos4*)
|
---|
8683 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
---|
8684 | wlarc=
|
---|
8685 | hardcode_direct=yes
|
---|
8686 | hardcode_shlibpath_var=no
|
---|
8687 | ;;
|
---|
8688 |
|
---|
8689 | *)
|
---|
8690 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
---|
8691 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
8692 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
|
---|
8693 | else
|
---|
8694 | ld_shlibs=no
|
---|
8695 | fi
|
---|
8696 | ;;
|
---|
8697 | esac
|
---|
8698 |
|
---|
8699 | if test no = "$ld_shlibs"; then
|
---|
8700 | runpath_var=
|
---|
8701 | hardcode_libdir_flag_spec=
|
---|
8702 | export_dynamic_flag_spec=
|
---|
8703 | whole_archive_flag_spec=
|
---|
8704 | fi
|
---|
8705 | else
|
---|
8706 | # PORTME fill in a description of your system's linker (not GNU ld)
|
---|
8707 | case $host_os in
|
---|
8708 | aix3*)
|
---|
8709 | allow_undefined_flag=unsupported
|
---|
8710 | always_export_symbols=yes
|
---|
8711 | 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'
|
---|
8712 | # Note: this linker hardcodes the directories in LIBPATH if there
|
---|
8713 | # are no directories specified by -L.
|
---|
8714 | hardcode_minus_L=yes
|
---|
8715 | if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
|
---|
8716 | # Neither direct hardcoding nor static linking is supported with a
|
---|
8717 | # broken collect2.
|
---|
8718 | hardcode_direct=unsupported
|
---|
8719 | fi
|
---|
8720 | ;;
|
---|
8721 |
|
---|
8722 | aix[4-9]*)
|
---|
8723 | if test ia64 = "$host_cpu"; then
|
---|
8724 | # On IA64, the linker does run time linking by default, so we don't
|
---|
8725 | # have to do anything special.
|
---|
8726 | aix_use_runtimelinking=no
|
---|
8727 | exp_sym_flag='-Bexport'
|
---|
8728 | no_entry_flag=
|
---|
8729 | else
|
---|
8730 | # If we're using GNU nm, then we don't want the "-C" option.
|
---|
8731 | # -C means demangle to GNU nm, but means don't demangle to AIX nm.
|
---|
8732 | # Without the "-l" option, or with the "-B" option, AIX nm treats
|
---|
8733 | # weak defined symbols like other global defined symbols, whereas
|
---|
8734 | # GNU nm marks them as "W".
|
---|
8735 | # While the 'weak' keyword is ignored in the Export File, we need
|
---|
8736 | # it in the Import File for the 'aix-soname' feature, so we have
|
---|
8737 | # to replace the "-B" option with "-P" for AIX nm.
|
---|
8738 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
|
---|
8739 | 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'
|
---|
8740 | else
|
---|
8741 | 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'
|
---|
8742 | fi
|
---|
8743 | aix_use_runtimelinking=no
|
---|
8744 |
|
---|
8745 | # Test if we are trying to use run time linking or normal
|
---|
8746 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
---|
8747 | # have runtime linking enabled, and use it for executables.
|
---|
8748 | # For shared libraries, we enable/disable runtime linking
|
---|
8749 | # depending on the kind of the shared library created -
|
---|
8750 | # when "with_aix_soname,aix_use_runtimelinking" is:
|
---|
8751 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
|
---|
8752 | # "aix,yes" lib.so shared, rtl:yes, for executables
|
---|
8753 | # lib.a static archive
|
---|
8754 | # "both,no" lib.so.V(shr.o) shared, rtl:yes
|
---|
8755 | # lib.a(lib.so.V) shared, rtl:no, for executables
|
---|
8756 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
|
---|
8757 | # lib.a(lib.so.V) shared, rtl:no
|
---|
8758 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
|
---|
8759 | # lib.a static archive
|
---|
8760 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
|
---|
8761 | for ld_flag in $LDFLAGS; do
|
---|
8762 | if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
|
---|
8763 | aix_use_runtimelinking=yes
|
---|
8764 | break
|
---|
8765 | fi
|
---|
8766 | done
|
---|
8767 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
|
---|
8768 | # With aix-soname=svr4, we create the lib.so.V shared archives only,
|
---|
8769 | # so we don't have lib.a shared libs to link our executables.
|
---|
8770 | # We have to force runtime linking in this case.
|
---|
8771 | aix_use_runtimelinking=yes
|
---|
8772 | LDFLAGS="$LDFLAGS -Wl,-brtl"
|
---|
8773 | fi
|
---|
8774 | ;;
|
---|
8775 | esac
|
---|
8776 |
|
---|
8777 | exp_sym_flag='-bexport'
|
---|
8778 | no_entry_flag='-bnoentry'
|
---|
8779 | fi
|
---|
8780 |
|
---|
8781 | # When large executables or shared objects are built, AIX ld can
|
---|
8782 | # have problems creating the table of contents. If linking a library
|
---|
8783 | # or program results in "error TOC overflow" add -mminimal-toc to
|
---|
8784 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
---|
8785 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
---|
8786 |
|
---|
8787 | archive_cmds=''
|
---|
8788 | hardcode_direct=yes
|
---|
8789 | hardcode_direct_absolute=yes
|
---|
8790 | hardcode_libdir_separator=':'
|
---|
8791 | link_all_deplibs=yes
|
---|
8792 | file_list_spec='$wl-f,'
|
---|
8793 | case $with_aix_soname,$aix_use_runtimelinking in
|
---|
8794 | aix,*) ;; # traditional, no import file
|
---|
8795 | svr4,* | *,yes) # use import file
|
---|
8796 | # The Import File defines what to hardcode.
|
---|
8797 | hardcode_direct=no
|
---|
8798 | hardcode_direct_absolute=no
|
---|
8799 | ;;
|
---|
8800 | esac
|
---|
8801 |
|
---|
8802 | if test yes = "$GCC"; then
|
---|
8803 | case $host_os in aix4.[012]|aix4.[012].*)
|
---|
8804 | # We only want to do this on AIX 4.2 and lower, the check
|
---|
8805 | # below for broken collect2 doesn't work under 4.3+
|
---|
8806 | collect2name=`$CC -print-prog-name=collect2`
|
---|
8807 | if test -f "$collect2name" &&
|
---|
8808 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null
|
---|
8809 | then
|
---|
8810 | # We have reworked collect2
|
---|
8811 | :
|
---|
8812 | else
|
---|
8813 | # We have old collect2
|
---|
8814 | hardcode_direct=unsupported
|
---|
8815 | # It fails to find uninstalled libraries when the uninstalled
|
---|
8816 | # path is not listed in the libpath. Setting hardcode_minus_L
|
---|
8817 | # to unsupported forces relinking
|
---|
8818 | hardcode_minus_L=yes
|
---|
8819 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
8820 | hardcode_libdir_separator=
|
---|
8821 | fi
|
---|
8822 | ;;
|
---|
8823 | esac
|
---|
8824 | shared_flag='-shared'
|
---|
8825 | if test yes = "$aix_use_runtimelinking"; then
|
---|
8826 | shared_flag="$shared_flag "'$wl-G'
|
---|
8827 | fi
|
---|
8828 | # Need to ensure runtime linking is disabled for the traditional
|
---|
8829 | # shared library, or the linker may eventually find shared libraries
|
---|
8830 | # /with/ Import File - we do not want to mix them.
|
---|
8831 | shared_flag_aix='-shared'
|
---|
8832 | shared_flag_svr4='-shared $wl-G'
|
---|
8833 | else
|
---|
8834 | # not using gcc
|
---|
8835 | if test ia64 = "$host_cpu"; then
|
---|
8836 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
---|
8837 | # chokes on -Wl,-G. The following line is correct:
|
---|
8838 | shared_flag='-G'
|
---|
8839 | else
|
---|
8840 | if test yes = "$aix_use_runtimelinking"; then
|
---|
8841 | shared_flag='$wl-G'
|
---|
8842 | else
|
---|
8843 | shared_flag='$wl-bM:SRE'
|
---|
8844 | fi
|
---|
8845 | shared_flag_aix='$wl-bM:SRE'
|
---|
8846 | shared_flag_svr4='$wl-G'
|
---|
8847 | fi
|
---|
8848 | fi
|
---|
8849 |
|
---|
8850 | export_dynamic_flag_spec='$wl-bexpall'
|
---|
8851 | # It seems that -bexpall does not export symbols beginning with
|
---|
8852 | # underscore (_), so it is better to generate a list of symbols to export.
|
---|
8853 | always_export_symbols=yes
|
---|
8854 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
|
---|
8855 | # Warning - without using the other runtime loading flags (-brtl),
|
---|
8856 | # -berok will link without error, but may produce a broken library.
|
---|
8857 | allow_undefined_flag='-berok'
|
---|
8858 | # Determine the default libpath from the value encoded in an
|
---|
8859 | # empty executable.
|
---|
8860 | if test set = "${lt_cv_aix_libpath+set}"; then
|
---|
8861 | aix_libpath=$lt_cv_aix_libpath
|
---|
8862 | else
|
---|
8863 | if ${lt_cv_aix_libpath_+:} false; then :
|
---|
8864 | $as_echo_n "(cached) " >&6
|
---|
8865 | else
|
---|
8866 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
8867 | /* end confdefs.h. */
|
---|
8868 |
|
---|
8869 | int
|
---|
8870 | main ()
|
---|
8871 | {
|
---|
8872 |
|
---|
8873 | ;
|
---|
8874 | return 0;
|
---|
8875 | }
|
---|
8876 | _ACEOF
|
---|
8877 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
8878 |
|
---|
8879 | lt_aix_libpath_sed='
|
---|
8880 | /Import File Strings/,/^$/ {
|
---|
8881 | /^0/ {
|
---|
8882 | s/^0 *\([^ ]*\) *$/\1/
|
---|
8883 | p
|
---|
8884 | }
|
---|
8885 | }'
|
---|
8886 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
---|
8887 | # Check for a 64-bit object if we didn't find anything.
|
---|
8888 | if test -z "$lt_cv_aix_libpath_"; then
|
---|
8889 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
---|
8890 | fi
|
---|
8891 | fi
|
---|
8892 | rm -f core conftest.err conftest.$ac_objext \
|
---|
8893 | conftest$ac_exeext conftest.$ac_ext
|
---|
8894 | if test -z "$lt_cv_aix_libpath_"; then
|
---|
8895 | lt_cv_aix_libpath_=/usr/lib:/lib
|
---|
8896 | fi
|
---|
8897 |
|
---|
8898 | fi
|
---|
8899 |
|
---|
8900 | aix_libpath=$lt_cv_aix_libpath_
|
---|
8901 | fi
|
---|
8902 |
|
---|
8903 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
|
---|
8904 | 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
|
---|
8905 | else
|
---|
8906 | if test ia64 = "$host_cpu"; then
|
---|
8907 | hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
|
---|
8908 | allow_undefined_flag="-z nodefs"
|
---|
8909 | 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"
|
---|
8910 | else
|
---|
8911 | # Determine the default libpath from the value encoded in an
|
---|
8912 | # empty executable.
|
---|
8913 | if test set = "${lt_cv_aix_libpath+set}"; then
|
---|
8914 | aix_libpath=$lt_cv_aix_libpath
|
---|
8915 | else
|
---|
8916 | if ${lt_cv_aix_libpath_+:} false; then :
|
---|
8917 | $as_echo_n "(cached) " >&6
|
---|
8918 | else
|
---|
8919 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
8920 | /* end confdefs.h. */
|
---|
8921 |
|
---|
8922 | int
|
---|
8923 | main ()
|
---|
8924 | {
|
---|
8925 |
|
---|
8926 | ;
|
---|
8927 | return 0;
|
---|
8928 | }
|
---|
8929 | _ACEOF
|
---|
8930 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
8931 |
|
---|
8932 | lt_aix_libpath_sed='
|
---|
8933 | /Import File Strings/,/^$/ {
|
---|
8934 | /^0/ {
|
---|
8935 | s/^0 *\([^ ]*\) *$/\1/
|
---|
8936 | p
|
---|
8937 | }
|
---|
8938 | }'
|
---|
8939 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
---|
8940 | # Check for a 64-bit object if we didn't find anything.
|
---|
8941 | if test -z "$lt_cv_aix_libpath_"; then
|
---|
8942 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
---|
8943 | fi
|
---|
8944 | fi
|
---|
8945 | rm -f core conftest.err conftest.$ac_objext \
|
---|
8946 | conftest$ac_exeext conftest.$ac_ext
|
---|
8947 | if test -z "$lt_cv_aix_libpath_"; then
|
---|
8948 | lt_cv_aix_libpath_=/usr/lib:/lib
|
---|
8949 | fi
|
---|
8950 |
|
---|
8951 | fi
|
---|
8952 |
|
---|
8953 | aix_libpath=$lt_cv_aix_libpath_
|
---|
8954 | fi
|
---|
8955 |
|
---|
8956 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
|
---|
8957 | # Warning - without using the other run time loading flags,
|
---|
8958 | # -berok will link without error, but may produce a broken library.
|
---|
8959 | no_undefined_flag=' $wl-bernotok'
|
---|
8960 | allow_undefined_flag=' $wl-berok'
|
---|
8961 | if test yes = "$with_gnu_ld"; then
|
---|
8962 | # We only use this code for GNU lds that support --whole-archive.
|
---|
8963 | whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
|
---|
8964 | else
|
---|
8965 | # Exported symbols can be pulled into shared objects from archives
|
---|
8966 | whole_archive_flag_spec='$convenience'
|
---|
8967 | fi
|
---|
8968 | archive_cmds_need_lc=yes
|
---|
8969 | archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
|
---|
8970 | # -brtl affects multiple linker settings, -berok does not and is overridden later
|
---|
8971 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
|
---|
8972 | if test svr4 != "$with_aix_soname"; then
|
---|
8973 | # This is similar to how AIX traditionally builds its shared libraries.
|
---|
8974 | 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'
|
---|
8975 | fi
|
---|
8976 | if test aix != "$with_aix_soname"; then
|
---|
8977 | 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'
|
---|
8978 | else
|
---|
8979 | # used by -dlpreopen to get the symbols
|
---|
8980 | archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
|
---|
8981 | fi
|
---|
8982 | archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
|
---|
8983 | fi
|
---|
8984 | fi
|
---|
8985 | ;;
|
---|
8986 |
|
---|
8987 | amigaos*)
|
---|
8988 | case $host_cpu in
|
---|
8989 | powerpc)
|
---|
8990 | # see comment about AmigaOS4 .so support
|
---|
8991 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
8992 | archive_expsym_cmds=''
|
---|
8993 | ;;
|
---|
8994 | m68k)
|
---|
8995 | 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)'
|
---|
8996 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
8997 | hardcode_minus_L=yes
|
---|
8998 | ;;
|
---|
8999 | esac
|
---|
9000 | ;;
|
---|
9001 |
|
---|
9002 | bsdi[45]*)
|
---|
9003 | export_dynamic_flag_spec=-rdynamic
|
---|
9004 | ;;
|
---|
9005 |
|
---|
9006 | cygwin* | mingw* | pw32* | cegcc*)
|
---|
9007 | # When not using gcc, we currently assume that we are using
|
---|
9008 | # Microsoft Visual C++.
|
---|
9009 | # hardcode_libdir_flag_spec is actually meaningless, as there is
|
---|
9010 | # no search path for DLLs.
|
---|
9011 | case $cc_basename in
|
---|
9012 | cl*)
|
---|
9013 | # Native MSVC
|
---|
9014 | hardcode_libdir_flag_spec=' '
|
---|
9015 | allow_undefined_flag=unsupported
|
---|
9016 | always_export_symbols=yes
|
---|
9017 | file_list_spec='@'
|
---|
9018 | # Tell ltmain to make .lib files, not .a files.
|
---|
9019 | libext=lib
|
---|
9020 | # Tell ltmain to make .dll files, not .so files.
|
---|
9021 | shrext_cmds=.dll
|
---|
9022 | # FIXME: Setting linknames here is a bad hack.
|
---|
9023 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
|
---|
9024 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
|
---|
9025 | cp "$export_symbols" "$output_objdir/$soname.def";
|
---|
9026 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
|
---|
9027 | else
|
---|
9028 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
|
---|
9029 | fi~
|
---|
9030 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
|
---|
9031 | linknames='
|
---|
9032 | # The linker will not automatically build a static lib if we build a DLL.
|
---|
9033 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
|
---|
9034 | enable_shared_with_static_runtimes=yes
|
---|
9035 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
|
---|
9036 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
---|
9037 | # Don't use ranlib
|
---|
9038 | old_postinstall_cmds='chmod 644 $oldlib'
|
---|
9039 | postlink_cmds='lt_outputfile="@OUTPUT@"~
|
---|
9040 | lt_tool_outputfile="@TOOL_OUTPUT@"~
|
---|
9041 | case $lt_outputfile in
|
---|
9042 | *.exe|*.EXE) ;;
|
---|
9043 | *)
|
---|
9044 | lt_outputfile=$lt_outputfile.exe
|
---|
9045 | lt_tool_outputfile=$lt_tool_outputfile.exe
|
---|
9046 | ;;
|
---|
9047 | esac~
|
---|
9048 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
|
---|
9049 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
|
---|
9050 | $RM "$lt_outputfile.manifest";
|
---|
9051 | fi'
|
---|
9052 | ;;
|
---|
9053 | *)
|
---|
9054 | # Assume MSVC wrapper
|
---|
9055 | hardcode_libdir_flag_spec=' '
|
---|
9056 | allow_undefined_flag=unsupported
|
---|
9057 | # Tell ltmain to make .lib files, not .a files.
|
---|
9058 | libext=lib
|
---|
9059 | # Tell ltmain to make .dll files, not .so files.
|
---|
9060 | shrext_cmds=.dll
|
---|
9061 | # FIXME: Setting linknames here is a bad hack.
|
---|
9062 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
|
---|
9063 | # The linker will automatically build a .lib file if we build a DLL.
|
---|
9064 | old_archive_from_new_cmds='true'
|
---|
9065 | # FIXME: Should let the user specify the lib program.
|
---|
9066 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
---|
9067 | enable_shared_with_static_runtimes=yes
|
---|
9068 | ;;
|
---|
9069 | esac
|
---|
9070 | ;;
|
---|
9071 |
|
---|
9072 | darwin* | rhapsody*)
|
---|
9073 |
|
---|
9074 |
|
---|
9075 | archive_cmds_need_lc=no
|
---|
9076 | hardcode_direct=no
|
---|
9077 | hardcode_automatic=yes
|
---|
9078 | hardcode_shlibpath_var=unsupported
|
---|
9079 | if test yes = "$lt_cv_ld_force_load"; then
|
---|
9080 | 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\"`'
|
---|
9081 |
|
---|
9082 | else
|
---|
9083 | whole_archive_flag_spec=''
|
---|
9084 | fi
|
---|
9085 | link_all_deplibs=yes
|
---|
9086 | allow_undefined_flag=$_lt_dar_allow_undefined
|
---|
9087 | case $cc_basename in
|
---|
9088 | ifort*|nagfor*) _lt_dar_can_shared=yes ;;
|
---|
9089 | *) _lt_dar_can_shared=$GCC ;;
|
---|
9090 | esac
|
---|
9091 | if test yes = "$_lt_dar_can_shared"; then
|
---|
9092 | output_verbose_link_cmd=func_echo_all
|
---|
9093 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
|
---|
9094 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
|
---|
9095 | 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"
|
---|
9096 | 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"
|
---|
9097 |
|
---|
9098 | else
|
---|
9099 | ld_shlibs=no
|
---|
9100 | fi
|
---|
9101 |
|
---|
9102 | ;;
|
---|
9103 |
|
---|
9104 | dgux*)
|
---|
9105 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
9106 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
9107 | hardcode_shlibpath_var=no
|
---|
9108 | ;;
|
---|
9109 |
|
---|
9110 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
---|
9111 | # support. Future versions do this automatically, but an explicit c++rt0.o
|
---|
9112 | # does not break anything, and helps significantly (at the cost of a little
|
---|
9113 | # extra space).
|
---|
9114 | freebsd2.2*)
|
---|
9115 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
|
---|
9116 | hardcode_libdir_flag_spec='-R$libdir'
|
---|
9117 | hardcode_direct=yes
|
---|
9118 | hardcode_shlibpath_var=no
|
---|
9119 | ;;
|
---|
9120 |
|
---|
9121 | # Unfortunately, older versions of FreeBSD 2 do not have this feature.
|
---|
9122 | freebsd2.*)
|
---|
9123 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
---|
9124 | hardcode_direct=yes
|
---|
9125 | hardcode_minus_L=yes
|
---|
9126 | hardcode_shlibpath_var=no
|
---|
9127 | ;;
|
---|
9128 |
|
---|
9129 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
---|
9130 | freebsd* | dragonfly*)
|
---|
9131 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
---|
9132 | hardcode_libdir_flag_spec='-R$libdir'
|
---|
9133 | hardcode_direct=yes
|
---|
9134 | hardcode_shlibpath_var=no
|
---|
9135 | ;;
|
---|
9136 |
|
---|
9137 | hpux9*)
|
---|
9138 | if test yes = "$GCC"; then
|
---|
9139 | 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'
|
---|
9140 | else
|
---|
9141 | 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'
|
---|
9142 | fi
|
---|
9143 | hardcode_libdir_flag_spec='$wl+b $wl$libdir'
|
---|
9144 | hardcode_libdir_separator=:
|
---|
9145 | hardcode_direct=yes
|
---|
9146 |
|
---|
9147 | # hardcode_minus_L: Not really in the search PATH,
|
---|
9148 | # but as the default location of the library.
|
---|
9149 | hardcode_minus_L=yes
|
---|
9150 | export_dynamic_flag_spec='$wl-E'
|
---|
9151 | ;;
|
---|
9152 |
|
---|
9153 | hpux10*)
|
---|
9154 | if test yes,no = "$GCC,$with_gnu_ld"; then
|
---|
9155 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
---|
9156 | else
|
---|
9157 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
---|
9158 | fi
|
---|
9159 | if test no = "$with_gnu_ld"; then
|
---|
9160 | hardcode_libdir_flag_spec='$wl+b $wl$libdir'
|
---|
9161 | hardcode_libdir_separator=:
|
---|
9162 | hardcode_direct=yes
|
---|
9163 | hardcode_direct_absolute=yes
|
---|
9164 | export_dynamic_flag_spec='$wl-E'
|
---|
9165 | # hardcode_minus_L: Not really in the search PATH,
|
---|
9166 | # but as the default location of the library.
|
---|
9167 | hardcode_minus_L=yes
|
---|
9168 | fi
|
---|
9169 | ;;
|
---|
9170 |
|
---|
9171 | hpux11*)
|
---|
9172 | if test yes,no = "$GCC,$with_gnu_ld"; then
|
---|
9173 | case $host_cpu in
|
---|
9174 | hppa*64*)
|
---|
9175 | archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
9176 | ;;
|
---|
9177 | ia64*)
|
---|
9178 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
---|
9179 | ;;
|
---|
9180 | *)
|
---|
9181 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
---|
9182 | ;;
|
---|
9183 | esac
|
---|
9184 | else
|
---|
9185 | case $host_cpu in
|
---|
9186 | hppa*64*)
|
---|
9187 | archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
9188 | ;;
|
---|
9189 | ia64*)
|
---|
9190 | archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
---|
9191 | ;;
|
---|
9192 | *)
|
---|
9193 |
|
---|
9194 | # Older versions of the 11.00 compiler do not understand -b yet
|
---|
9195 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
|
---|
9196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
|
---|
9197 | $as_echo_n "checking if $CC understands -b... " >&6; }
|
---|
9198 | if ${lt_cv_prog_compiler__b+:} false; then :
|
---|
9199 | $as_echo_n "(cached) " >&6
|
---|
9200 | else
|
---|
9201 | lt_cv_prog_compiler__b=no
|
---|
9202 | save_LDFLAGS=$LDFLAGS
|
---|
9203 | LDFLAGS="$LDFLAGS -b"
|
---|
9204 | echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
---|
9205 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
---|
9206 | # The linker can only warn and ignore the option if not recognized
|
---|
9207 | # So say no if there are warnings
|
---|
9208 | if test -s conftest.err; then
|
---|
9209 | # Append any errors to the config.log.
|
---|
9210 | cat conftest.err 1>&5
|
---|
9211 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
|
---|
9212 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
---|
9213 | if diff conftest.exp conftest.er2 >/dev/null; then
|
---|
9214 | lt_cv_prog_compiler__b=yes
|
---|
9215 | fi
|
---|
9216 | else
|
---|
9217 | lt_cv_prog_compiler__b=yes
|
---|
9218 | fi
|
---|
9219 | fi
|
---|
9220 | $RM -r conftest*
|
---|
9221 | LDFLAGS=$save_LDFLAGS
|
---|
9222 |
|
---|
9223 | fi
|
---|
9224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
|
---|
9225 | $as_echo "$lt_cv_prog_compiler__b" >&6; }
|
---|
9226 |
|
---|
9227 | if test yes = "$lt_cv_prog_compiler__b"; then
|
---|
9228 | archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
---|
9229 | else
|
---|
9230 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
---|
9231 | fi
|
---|
9232 |
|
---|
9233 | ;;
|
---|
9234 | esac
|
---|
9235 | fi
|
---|
9236 | if test no = "$with_gnu_ld"; then
|
---|
9237 | hardcode_libdir_flag_spec='$wl+b $wl$libdir'
|
---|
9238 | hardcode_libdir_separator=:
|
---|
9239 |
|
---|
9240 | case $host_cpu in
|
---|
9241 | hppa*64*|ia64*)
|
---|
9242 | hardcode_direct=no
|
---|
9243 | hardcode_shlibpath_var=no
|
---|
9244 | ;;
|
---|
9245 | *)
|
---|
9246 | hardcode_direct=yes
|
---|
9247 | hardcode_direct_absolute=yes
|
---|
9248 | export_dynamic_flag_spec='$wl-E'
|
---|
9249 |
|
---|
9250 | # hardcode_minus_L: Not really in the search PATH,
|
---|
9251 | # but as the default location of the library.
|
---|
9252 | hardcode_minus_L=yes
|
---|
9253 | ;;
|
---|
9254 | esac
|
---|
9255 | fi
|
---|
9256 | ;;
|
---|
9257 |
|
---|
9258 | irix5* | irix6* | nonstopux*)
|
---|
9259 | if test yes = "$GCC"; then
|
---|
9260 | 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'
|
---|
9261 | # Try to use the -exported_symbol ld option, if it does not
|
---|
9262 | # work, assume that -exports_file does not work either and
|
---|
9263 | # implicitly export all symbols.
|
---|
9264 | # This should be the same for all languages, so no per-tag cache variable.
|
---|
9265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
|
---|
9266 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
|
---|
9267 | if ${lt_cv_irix_exported_symbol+:} false; then :
|
---|
9268 | $as_echo_n "(cached) " >&6
|
---|
9269 | else
|
---|
9270 | save_LDFLAGS=$LDFLAGS
|
---|
9271 | LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
|
---|
9272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
9273 | /* end confdefs.h. */
|
---|
9274 | int foo (void) { return 0; }
|
---|
9275 | _ACEOF
|
---|
9276 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
9277 | lt_cv_irix_exported_symbol=yes
|
---|
9278 | else
|
---|
9279 | lt_cv_irix_exported_symbol=no
|
---|
9280 | fi
|
---|
9281 | rm -f core conftest.err conftest.$ac_objext \
|
---|
9282 | conftest$ac_exeext conftest.$ac_ext
|
---|
9283 | LDFLAGS=$save_LDFLAGS
|
---|
9284 | fi
|
---|
9285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
|
---|
9286 | $as_echo "$lt_cv_irix_exported_symbol" >&6; }
|
---|
9287 | if test yes = "$lt_cv_irix_exported_symbol"; then
|
---|
9288 | 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'
|
---|
9289 | fi
|
---|
9290 | link_all_deplibs=no
|
---|
9291 | else
|
---|
9292 | 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'
|
---|
9293 | 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'
|
---|
9294 | fi
|
---|
9295 | archive_cmds_need_lc='no'
|
---|
9296 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
---|
9297 | hardcode_libdir_separator=:
|
---|
9298 | inherit_rpath=yes
|
---|
9299 | link_all_deplibs=yes
|
---|
9300 | ;;
|
---|
9301 |
|
---|
9302 | linux*)
|
---|
9303 | case $cc_basename in
|
---|
9304 | tcc*)
|
---|
9305 | # Fabrice Bellard et al's Tiny C Compiler
|
---|
9306 | ld_shlibs=yes
|
---|
9307 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
---|
9308 | ;;
|
---|
9309 | esac
|
---|
9310 | ;;
|
---|
9311 |
|
---|
9312 | netbsd* | netbsdelf*-gnu)
|
---|
9313 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
---|
9314 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
---|
9315 | else
|
---|
9316 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
|
---|
9317 | fi
|
---|
9318 | hardcode_libdir_flag_spec='-R$libdir'
|
---|
9319 | hardcode_direct=yes
|
---|
9320 | hardcode_shlibpath_var=no
|
---|
9321 | ;;
|
---|
9322 |
|
---|
9323 | newsos6)
|
---|
9324 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
9325 | hardcode_direct=yes
|
---|
9326 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
---|
9327 | hardcode_libdir_separator=:
|
---|
9328 | hardcode_shlibpath_var=no
|
---|
9329 | ;;
|
---|
9330 |
|
---|
9331 | *nto* | *qnx*)
|
---|
9332 | ;;
|
---|
9333 |
|
---|
9334 | openbsd* | bitrig*)
|
---|
9335 | if test -f /usr/libexec/ld.so; then
|
---|
9336 | hardcode_direct=yes
|
---|
9337 | hardcode_shlibpath_var=no
|
---|
9338 | hardcode_direct_absolute=yes
|
---|
9339 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
|
---|
9340 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
---|
9341 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
|
---|
9342 | hardcode_libdir_flag_spec='$wl-rpath,$libdir'
|
---|
9343 | export_dynamic_flag_spec='$wl-E'
|
---|
9344 | else
|
---|
9345 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
---|
9346 | hardcode_libdir_flag_spec='$wl-rpath,$libdir'
|
---|
9347 | fi
|
---|
9348 | else
|
---|
9349 | ld_shlibs=no
|
---|
9350 | fi
|
---|
9351 | ;;
|
---|
9352 |
|
---|
9353 | os2*)
|
---|
9354 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
9355 | hardcode_minus_L=yes
|
---|
9356 | allow_undefined_flag=unsupported
|
---|
9357 | shrext_cmds=.dll
|
---|
9358 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
|
---|
9359 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
|
---|
9360 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
|
---|
9361 | $ECHO EXPORTS >> $output_objdir/$libname.def~
|
---|
9362 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
|
---|
9363 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
|
---|
9364 | emximp -o $lib $output_objdir/$libname.def'
|
---|
9365 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
|
---|
9366 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
|
---|
9367 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
|
---|
9368 | $ECHO EXPORTS >> $output_objdir/$libname.def~
|
---|
9369 | prefix_cmds="$SED"~
|
---|
9370 | if test EXPORTS = "`$SED 1q $export_symbols`"; then
|
---|
9371 | prefix_cmds="$prefix_cmds -e 1d";
|
---|
9372 | fi~
|
---|
9373 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
|
---|
9374 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
|
---|
9375 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
|
---|
9376 | emximp -o $lib $output_objdir/$libname.def'
|
---|
9377 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
|
---|
9378 | enable_shared_with_static_runtimes=yes
|
---|
9379 | ;;
|
---|
9380 |
|
---|
9381 | osf3*)
|
---|
9382 | if test yes = "$GCC"; then
|
---|
9383 | allow_undefined_flag=' $wl-expect_unresolved $wl\*'
|
---|
9384 | 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'
|
---|
9385 | else
|
---|
9386 | allow_undefined_flag=' -expect_unresolved \*'
|
---|
9387 | 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'
|
---|
9388 | fi
|
---|
9389 | archive_cmds_need_lc='no'
|
---|
9390 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
---|
9391 | hardcode_libdir_separator=:
|
---|
9392 | ;;
|
---|
9393 |
|
---|
9394 | osf4* | osf5*) # as osf3* with the addition of -msym flag
|
---|
9395 | if test yes = "$GCC"; then
|
---|
9396 | allow_undefined_flag=' $wl-expect_unresolved $wl\*'
|
---|
9397 | 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'
|
---|
9398 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
---|
9399 | else
|
---|
9400 | allow_undefined_flag=' -expect_unresolved \*'
|
---|
9401 | 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'
|
---|
9402 | 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~
|
---|
9403 | $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'
|
---|
9404 |
|
---|
9405 | # Both c and cxx compiler support -rpath directly
|
---|
9406 | hardcode_libdir_flag_spec='-rpath $libdir'
|
---|
9407 | fi
|
---|
9408 | archive_cmds_need_lc='no'
|
---|
9409 | hardcode_libdir_separator=:
|
---|
9410 | ;;
|
---|
9411 |
|
---|
9412 | solaris*)
|
---|
9413 | no_undefined_flag=' -z defs'
|
---|
9414 | if test yes = "$GCC"; then
|
---|
9415 | wlarc='$wl'
|
---|
9416 | archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
9417 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
---|
9418 | $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'
|
---|
9419 | else
|
---|
9420 | case `$CC -V 2>&1` in
|
---|
9421 | *"Compilers 5.0"*)
|
---|
9422 | wlarc=''
|
---|
9423 | archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
9424 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
---|
9425 | $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
|
---|
9426 | ;;
|
---|
9427 | *)
|
---|
9428 | wlarc='$wl'
|
---|
9429 | archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
9430 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
---|
9431 | $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
---|
9432 | ;;
|
---|
9433 | esac
|
---|
9434 | fi
|
---|
9435 | hardcode_libdir_flag_spec='-R$libdir'
|
---|
9436 | hardcode_shlibpath_var=no
|
---|
9437 | case $host_os in
|
---|
9438 | solaris2.[0-5] | solaris2.[0-5].*) ;;
|
---|
9439 | *)
|
---|
9440 | # The compiler driver will combine and reorder linker options,
|
---|
9441 | # but understands '-z linker_flag'. GCC discards it without '$wl',
|
---|
9442 | # but is careful enough not to reorder.
|
---|
9443 | # Supported since Solaris 2.6 (maybe 2.5.1?)
|
---|
9444 | if test yes = "$GCC"; then
|
---|
9445 | whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
|
---|
9446 | else
|
---|
9447 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
|
---|
9448 | fi
|
---|
9449 | ;;
|
---|
9450 | esac
|
---|
9451 | link_all_deplibs=yes
|
---|
9452 | ;;
|
---|
9453 |
|
---|
9454 | sunos4*)
|
---|
9455 | if test sequent = "$host_vendor"; then
|
---|
9456 | # Use $CC to link under sequent, because it throws in some extra .o
|
---|
9457 | # files that make .init and .fini sections work.
|
---|
9458 | archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
9459 | else
|
---|
9460 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
|
---|
9461 | fi
|
---|
9462 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
9463 | hardcode_direct=yes
|
---|
9464 | hardcode_minus_L=yes
|
---|
9465 | hardcode_shlibpath_var=no
|
---|
9466 | ;;
|
---|
9467 |
|
---|
9468 | sysv4)
|
---|
9469 | case $host_vendor in
|
---|
9470 | sni)
|
---|
9471 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
9472 | hardcode_direct=yes # is this really true???
|
---|
9473 | ;;
|
---|
9474 | siemens)
|
---|
9475 | ## LD is ld it makes a PLAMLIB
|
---|
9476 | ## CC just makes a GrossModule.
|
---|
9477 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
---|
9478 | reload_cmds='$CC -r -o $output$reload_objs'
|
---|
9479 | hardcode_direct=no
|
---|
9480 | ;;
|
---|
9481 | motorola)
|
---|
9482 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
9483 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie
|
---|
9484 | ;;
|
---|
9485 | esac
|
---|
9486 | runpath_var='LD_RUN_PATH'
|
---|
9487 | hardcode_shlibpath_var=no
|
---|
9488 | ;;
|
---|
9489 |
|
---|
9490 | sysv4.3*)
|
---|
9491 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
9492 | hardcode_shlibpath_var=no
|
---|
9493 | export_dynamic_flag_spec='-Bexport'
|
---|
9494 | ;;
|
---|
9495 |
|
---|
9496 | sysv4*MP*)
|
---|
9497 | if test -d /usr/nec; then
|
---|
9498 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
9499 | hardcode_shlibpath_var=no
|
---|
9500 | runpath_var=LD_RUN_PATH
|
---|
9501 | hardcode_runpath_var=yes
|
---|
9502 | ld_shlibs=yes
|
---|
9503 | fi
|
---|
9504 | ;;
|
---|
9505 |
|
---|
9506 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
|
---|
9507 | no_undefined_flag='$wl-z,text'
|
---|
9508 | archive_cmds_need_lc=no
|
---|
9509 | hardcode_shlibpath_var=no
|
---|
9510 | runpath_var='LD_RUN_PATH'
|
---|
9511 |
|
---|
9512 | if test yes = "$GCC"; then
|
---|
9513 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
9514 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
9515 | else
|
---|
9516 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
9517 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
9518 | fi
|
---|
9519 | ;;
|
---|
9520 |
|
---|
9521 | sysv5* | sco3.2v5* | sco5v6*)
|
---|
9522 | # Note: We CANNOT use -z defs as we might desire, because we do not
|
---|
9523 | # link with -lc, and that would cause any symbols used from libc to
|
---|
9524 | # always be unresolved, which means just about no library would
|
---|
9525 | # ever link correctly. If we're not using GNU ld we use -z text
|
---|
9526 | # though, which does catch some bad symbols but isn't as heavy-handed
|
---|
9527 | # as -z defs.
|
---|
9528 | no_undefined_flag='$wl-z,text'
|
---|
9529 | allow_undefined_flag='$wl-z,nodefs'
|
---|
9530 | archive_cmds_need_lc=no
|
---|
9531 | hardcode_shlibpath_var=no
|
---|
9532 | hardcode_libdir_flag_spec='$wl-R,$libdir'
|
---|
9533 | hardcode_libdir_separator=':'
|
---|
9534 | link_all_deplibs=yes
|
---|
9535 | export_dynamic_flag_spec='$wl-Bexport'
|
---|
9536 | runpath_var='LD_RUN_PATH'
|
---|
9537 |
|
---|
9538 | if test yes = "$GCC"; then
|
---|
9539 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
9540 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
9541 | else
|
---|
9542 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
9543 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
9544 | fi
|
---|
9545 | ;;
|
---|
9546 |
|
---|
9547 | uts4*)
|
---|
9548 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
9549 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
9550 | hardcode_shlibpath_var=no
|
---|
9551 | ;;
|
---|
9552 |
|
---|
9553 | *)
|
---|
9554 | ld_shlibs=no
|
---|
9555 | ;;
|
---|
9556 | esac
|
---|
9557 |
|
---|
9558 | if test sni = "$host_vendor"; then
|
---|
9559 | case $host in
|
---|
9560 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
---|
9561 | export_dynamic_flag_spec='$wl-Blargedynsym'
|
---|
9562 | ;;
|
---|
9563 | esac
|
---|
9564 | fi
|
---|
9565 | fi
|
---|
9566 |
|
---|
9567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
|
---|
9568 | $as_echo "$ld_shlibs" >&6; }
|
---|
9569 | test no = "$ld_shlibs" && can_build_shared=no
|
---|
9570 |
|
---|
9571 | with_gnu_ld=$with_gnu_ld
|
---|
9572 |
|
---|
9573 |
|
---|
9574 |
|
---|
9575 |
|
---|
9576 |
|
---|
9577 |
|
---|
9578 |
|
---|
9579 |
|
---|
9580 |
|
---|
9581 |
|
---|
9582 |
|
---|
9583 |
|
---|
9584 |
|
---|
9585 |
|
---|
9586 |
|
---|
9587 | #
|
---|
9588 | # Do we need to explicitly link libc?
|
---|
9589 | #
|
---|
9590 | case "x$archive_cmds_need_lc" in
|
---|
9591 | x|xyes)
|
---|
9592 | # Assume -lc should be added
|
---|
9593 | archive_cmds_need_lc=yes
|
---|
9594 |
|
---|
9595 | if test yes,yes = "$GCC,$enable_shared"; then
|
---|
9596 | case $archive_cmds in
|
---|
9597 | *'~'*)
|
---|
9598 | # FIXME: we may have to deal with multi-command sequences.
|
---|
9599 | ;;
|
---|
9600 | '$CC '*)
|
---|
9601 | # Test whether the compiler implicitly links with -lc since on some
|
---|
9602 | # systems, -lgcc has to come before -lc. If gcc already passes -lc
|
---|
9603 | # to ld, don't add -lc before -lgcc.
|
---|
9604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
|
---|
9605 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
|
---|
9606 | if ${lt_cv_archive_cmds_need_lc+:} false; then :
|
---|
9607 | $as_echo_n "(cached) " >&6
|
---|
9608 | else
|
---|
9609 | $RM conftest*
|
---|
9610 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
---|
9611 |
|
---|
9612 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
---|
9613 | (eval $ac_compile) 2>&5
|
---|
9614 | ac_status=$?
|
---|
9615 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
9616 | test $ac_status = 0; } 2>conftest.err; then
|
---|
9617 | soname=conftest
|
---|
9618 | lib=conftest
|
---|
9619 | libobjs=conftest.$ac_objext
|
---|
9620 | deplibs=
|
---|
9621 | wl=$lt_prog_compiler_wl
|
---|
9622 | pic_flag=$lt_prog_compiler_pic
|
---|
9623 | compiler_flags=-v
|
---|
9624 | linker_flags=-v
|
---|
9625 | verstring=
|
---|
9626 | output_objdir=.
|
---|
9627 | libname=conftest
|
---|
9628 | lt_save_allow_undefined_flag=$allow_undefined_flag
|
---|
9629 | allow_undefined_flag=
|
---|
9630 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
|
---|
9631 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
|
---|
9632 | ac_status=$?
|
---|
9633 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
9634 | test $ac_status = 0; }
|
---|
9635 | then
|
---|
9636 | lt_cv_archive_cmds_need_lc=no
|
---|
9637 | else
|
---|
9638 | lt_cv_archive_cmds_need_lc=yes
|
---|
9639 | fi
|
---|
9640 | allow_undefined_flag=$lt_save_allow_undefined_flag
|
---|
9641 | else
|
---|
9642 | cat conftest.err 1>&5
|
---|
9643 | fi
|
---|
9644 | $RM conftest*
|
---|
9645 |
|
---|
9646 | fi
|
---|
9647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
|
---|
9648 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
|
---|
9649 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
|
---|
9650 | ;;
|
---|
9651 | esac
|
---|
9652 | fi
|
---|
9653 | ;;
|
---|
9654 | esac
|
---|
9655 |
|
---|
9656 |
|
---|
9657 |
|
---|
9658 |
|
---|
9659 |
|
---|
9660 |
|
---|
9661 |
|
---|
9662 |
|
---|
9663 |
|
---|
9664 |
|
---|
9665 |
|
---|
9666 |
|
---|
9667 |
|
---|
9668 |
|
---|
9669 |
|
---|
9670 |
|
---|
9671 |
|
---|
9672 |
|
---|
9673 |
|
---|
9674 |
|
---|
9675 |
|
---|
9676 |
|
---|
9677 |
|
---|
9678 |
|
---|
9679 |
|
---|
9680 |
|
---|
9681 |
|
---|
9682 |
|
---|
9683 |
|
---|
9684 |
|
---|
9685 |
|
---|
9686 |
|
---|
9687 |
|
---|
9688 |
|
---|
9689 |
|
---|
9690 |
|
---|
9691 |
|
---|
9692 |
|
---|
9693 |
|
---|
9694 |
|
---|
9695 |
|
---|
9696 |
|
---|
9697 |
|
---|
9698 |
|
---|
9699 |
|
---|
9700 |
|
---|
9701 |
|
---|
9702 |
|
---|
9703 |
|
---|
9704 |
|
---|
9705 |
|
---|
9706 |
|
---|
9707 |
|
---|
9708 |
|
---|
9709 |
|
---|
9710 |
|
---|
9711 |
|
---|
9712 |
|
---|
9713 |
|
---|
9714 |
|
---|
9715 |
|
---|
9716 |
|
---|
9717 |
|
---|
9718 |
|
---|
9719 |
|
---|
9720 |
|
---|
9721 |
|
---|
9722 |
|
---|
9723 |
|
---|
9724 |
|
---|
9725 |
|
---|
9726 |
|
---|
9727 |
|
---|
9728 |
|
---|
9729 |
|
---|
9730 |
|
---|
9731 |
|
---|
9732 |
|
---|
9733 |
|
---|
9734 |
|
---|
9735 |
|
---|
9736 |
|
---|
9737 |
|
---|
9738 |
|
---|
9739 |
|
---|
9740 |
|
---|
9741 |
|
---|
9742 |
|
---|
9743 |
|
---|
9744 |
|
---|
9745 |
|
---|
9746 |
|
---|
9747 |
|
---|
9748 |
|
---|
9749 |
|
---|
9750 |
|
---|
9751 |
|
---|
9752 |
|
---|
9753 |
|
---|
9754 |
|
---|
9755 |
|
---|
9756 |
|
---|
9757 |
|
---|
9758 |
|
---|
9759 |
|
---|
9760 |
|
---|
9761 |
|
---|
9762 |
|
---|
9763 |
|
---|
9764 |
|
---|
9765 |
|
---|
9766 |
|
---|
9767 |
|
---|
9768 |
|
---|
9769 |
|
---|
9770 |
|
---|
9771 |
|
---|
9772 |
|
---|
9773 |
|
---|
9774 |
|
---|
9775 |
|
---|
9776 |
|
---|
9777 |
|
---|
9778 |
|
---|
9779 |
|
---|
9780 |
|
---|
9781 |
|
---|
9782 |
|
---|
9783 |
|
---|
9784 |
|
---|
9785 |
|
---|
9786 |
|
---|
9787 |
|
---|
9788 |
|
---|
9789 |
|
---|
9790 |
|
---|
9791 |
|
---|
9792 |
|
---|
9793 |
|
---|
9794 |
|
---|
9795 |
|
---|
9796 |
|
---|
9797 |
|
---|
9798 |
|
---|
9799 |
|
---|
9800 |
|
---|
9801 |
|
---|
9802 |
|
---|
9803 |
|
---|
9804 |
|
---|
9805 |
|
---|
9806 |
|
---|
9807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
|
---|
9808 | $as_echo_n "checking dynamic linker characteristics... " >&6; }
|
---|
9809 |
|
---|
9810 | if test yes = "$GCC"; then
|
---|
9811 | case $host_os in
|
---|
9812 | darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
|
---|
9813 | *) lt_awk_arg='/^libraries:/' ;;
|
---|
9814 | esac
|
---|
9815 | case $host_os in
|
---|
9816 | mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
|
---|
9817 | *) lt_sed_strip_eq='s|=/|/|g' ;;
|
---|
9818 | esac
|
---|
9819 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
|
---|
9820 | case $lt_search_path_spec in
|
---|
9821 | *\;*)
|
---|
9822 | # if the path contains ";" then we assume it to be the separator
|
---|
9823 | # otherwise default to the standard path separator (i.e. ":") - it is
|
---|
9824 | # assumed that no part of a normal pathname contains ";" but that should
|
---|
9825 | # okay in the real world where ";" in dirpaths is itself problematic.
|
---|
9826 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
|
---|
9827 | ;;
|
---|
9828 | *)
|
---|
9829 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
|
---|
9830 | ;;
|
---|
9831 | esac
|
---|
9832 | # Ok, now we have the path, separated by spaces, we can step through it
|
---|
9833 | # and add multilib dir if necessary...
|
---|
9834 | lt_tmp_lt_search_path_spec=
|
---|
9835 | lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
|
---|
9836 | # ...but if some path component already ends with the multilib dir we assume
|
---|
9837 | # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
|
---|
9838 | case "$lt_multi_os_dir; $lt_search_path_spec " in
|
---|
9839 | "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
|
---|
9840 | lt_multi_os_dir=
|
---|
9841 | ;;
|
---|
9842 | esac
|
---|
9843 | for lt_sys_path in $lt_search_path_spec; do
|
---|
9844 | if test -d "$lt_sys_path$lt_multi_os_dir"; then
|
---|
9845 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
|
---|
9846 | elif test -n "$lt_multi_os_dir"; then
|
---|
9847 | test -d "$lt_sys_path" && \
|
---|
9848 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
|
---|
9849 | fi
|
---|
9850 | done
|
---|
9851 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
|
---|
9852 | BEGIN {RS = " "; FS = "/|\n";} {
|
---|
9853 | lt_foo = "";
|
---|
9854 | lt_count = 0;
|
---|
9855 | for (lt_i = NF; lt_i > 0; lt_i--) {
|
---|
9856 | if ($lt_i != "" && $lt_i != ".") {
|
---|
9857 | if ($lt_i == "..") {
|
---|
9858 | lt_count++;
|
---|
9859 | } else {
|
---|
9860 | if (lt_count == 0) {
|
---|
9861 | lt_foo = "/" $lt_i lt_foo;
|
---|
9862 | } else {
|
---|
9863 | lt_count--;
|
---|
9864 | }
|
---|
9865 | }
|
---|
9866 | }
|
---|
9867 | }
|
---|
9868 | if (lt_foo != "") { lt_freq[lt_foo]++; }
|
---|
9869 | if (lt_freq[lt_foo] == 1) { print lt_foo; }
|
---|
9870 | }'`
|
---|
9871 | # AWK program above erroneously prepends '/' to C:/dos/paths
|
---|
9872 | # for these hosts.
|
---|
9873 | case $host_os in
|
---|
9874 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
|
---|
9875 | $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
|
---|
9876 | esac
|
---|
9877 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
|
---|
9878 | else
|
---|
9879 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
---|
9880 | fi
|
---|
9881 | library_names_spec=
|
---|
9882 | libname_spec='lib$name'
|
---|
9883 | soname_spec=
|
---|
9884 | shrext_cmds=.so
|
---|
9885 | postinstall_cmds=
|
---|
9886 | postuninstall_cmds=
|
---|
9887 | finish_cmds=
|
---|
9888 | finish_eval=
|
---|
9889 | shlibpath_var=
|
---|
9890 | shlibpath_overrides_runpath=unknown
|
---|
9891 | version_type=none
|
---|
9892 | dynamic_linker="$host_os ld.so"
|
---|
9893 | sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
---|
9894 | need_lib_prefix=unknown
|
---|
9895 | hardcode_into_libs=no
|
---|
9896 |
|
---|
9897 | # when you set need_version to no, make sure it does not cause -set_version
|
---|
9898 | # flags to be left without arguments
|
---|
9899 | need_version=unknown
|
---|
9900 |
|
---|
9901 |
|
---|
9902 |
|
---|
9903 | case $host_os in
|
---|
9904 | aix3*)
|
---|
9905 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
9906 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
|
---|
9907 | shlibpath_var=LIBPATH
|
---|
9908 |
|
---|
9909 | # AIX 3 has no versioning support, so we append a major version to the name.
|
---|
9910 | soname_spec='$libname$release$shared_ext$major'
|
---|
9911 | ;;
|
---|
9912 |
|
---|
9913 | aix[4-9]*)
|
---|
9914 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
9915 | need_lib_prefix=no
|
---|
9916 | need_version=no
|
---|
9917 | hardcode_into_libs=yes
|
---|
9918 | if test ia64 = "$host_cpu"; then
|
---|
9919 | # AIX 5 supports IA64
|
---|
9920 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
|
---|
9921 | shlibpath_var=LD_LIBRARY_PATH
|
---|
9922 | else
|
---|
9923 | # With GCC up to 2.95.x, collect2 would create an import file
|
---|
9924 | # for dependence libraries. The import file would start with
|
---|
9925 | # the line '#! .'. This would cause the generated library to
|
---|
9926 | # depend on '.', always an invalid library. This was fixed in
|
---|
9927 | # development snapshots of GCC prior to 3.0.
|
---|
9928 | case $host_os in
|
---|
9929 | aix4 | aix4.[01] | aix4.[01].*)
|
---|
9930 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
---|
9931 | echo ' yes '
|
---|
9932 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
|
---|
9933 | :
|
---|
9934 | else
|
---|
9935 | can_build_shared=no
|
---|
9936 | fi
|
---|
9937 | ;;
|
---|
9938 | esac
|
---|
9939 | # Using Import Files as archive members, it is possible to support
|
---|
9940 | # filename-based versioning of shared library archives on AIX. While
|
---|
9941 | # this would work for both with and without runtime linking, it will
|
---|
9942 | # prevent static linking of such archives. So we do filename-based
|
---|
9943 | # shared library versioning with .so extension only, which is used
|
---|
9944 | # when both runtime linking and shared linking is enabled.
|
---|
9945 | # Unfortunately, runtime linking may impact performance, so we do
|
---|
9946 | # not want this to be the default eventually. Also, we use the
|
---|
9947 | # versioned .so libs for executables only if there is the -brtl
|
---|
9948 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
|
---|
9949 | # To allow for filename-based versioning support, we need to create
|
---|
9950 | # libNAME.so.V as an archive file, containing:
|
---|
9951 | # *) an Import File, referring to the versioned filename of the
|
---|
9952 | # archive as well as the shared archive member, telling the
|
---|
9953 | # bitwidth (32 or 64) of that shared object, and providing the
|
---|
9954 | # list of exported symbols of that shared object, eventually
|
---|
9955 | # decorated with the 'weak' keyword
|
---|
9956 | # *) the shared object with the F_LOADONLY flag set, to really avoid
|
---|
9957 | # it being seen by the linker.
|
---|
9958 | # At run time we better use the real file rather than another symlink,
|
---|
9959 | # but for link time we create the symlink libNAME.so -> libNAME.so.V
|
---|
9960 |
|
---|
9961 | case $with_aix_soname,$aix_use_runtimelinking in
|
---|
9962 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
|
---|
9963 | # soname into executable. Probably we can add versioning support to
|
---|
9964 | # collect2, so additional links can be useful in future.
|
---|
9965 | aix,yes) # traditional libtool
|
---|
9966 | dynamic_linker='AIX unversionable lib.so'
|
---|
9967 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so
|
---|
9968 | # instead of lib<name>.a to let people know that these are not
|
---|
9969 | # typical AIX shared libraries.
|
---|
9970 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
9971 | ;;
|
---|
9972 | aix,no) # traditional AIX only
|
---|
9973 | dynamic_linker='AIX lib.a(lib.so.V)'
|
---|
9974 | # We preserve .a as extension for shared libraries through AIX4.2
|
---|
9975 | # and later when we are not doing run time linking.
|
---|
9976 | library_names_spec='$libname$release.a $libname.a'
|
---|
9977 | soname_spec='$libname$release$shared_ext$major'
|
---|
9978 | ;;
|
---|
9979 | svr4,*) # full svr4 only
|
---|
9980 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
|
---|
9981 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
|
---|
9982 | # We do not specify a path in Import Files, so LIBPATH fires.
|
---|
9983 | shlibpath_overrides_runpath=yes
|
---|
9984 | ;;
|
---|
9985 | *,yes) # both, prefer svr4
|
---|
9986 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
|
---|
9987 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
|
---|
9988 | # unpreferred sharedlib libNAME.a needs extra handling
|
---|
9989 | postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
|
---|
9990 | postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
|
---|
9991 | # We do not specify a path in Import Files, so LIBPATH fires.
|
---|
9992 | shlibpath_overrides_runpath=yes
|
---|
9993 | ;;
|
---|
9994 | *,no) # both, prefer aix
|
---|
9995 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
|
---|
9996 | library_names_spec='$libname$release.a $libname.a'
|
---|
9997 | soname_spec='$libname$release$shared_ext$major'
|
---|
9998 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
|
---|
9999 | postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
|
---|
10000 | postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
|
---|
10001 | ;;
|
---|
10002 | esac
|
---|
10003 | shlibpath_var=LIBPATH
|
---|
10004 | fi
|
---|
10005 | ;;
|
---|
10006 |
|
---|
10007 | amigaos*)
|
---|
10008 | case $host_cpu in
|
---|
10009 | powerpc)
|
---|
10010 | # Since July 2007 AmigaOS4 officially supports .so libraries.
|
---|
10011 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
|
---|
10012 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
10013 | ;;
|
---|
10014 | m68k)
|
---|
10015 | library_names_spec='$libname.ixlibrary $libname.a'
|
---|
10016 | # Create ${libname}_ixlibrary.a entries in /sys/libs.
|
---|
10017 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
|
---|
10018 | ;;
|
---|
10019 | esac
|
---|
10020 | ;;
|
---|
10021 |
|
---|
10022 | beos*)
|
---|
10023 | library_names_spec='$libname$shared_ext'
|
---|
10024 | dynamic_linker="$host_os ld.so"
|
---|
10025 | shlibpath_var=LIBRARY_PATH
|
---|
10026 | ;;
|
---|
10027 |
|
---|
10028 | bsdi[45]*)
|
---|
10029 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
10030 | need_version=no
|
---|
10031 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
10032 | soname_spec='$libname$release$shared_ext$major'
|
---|
10033 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
---|
10034 | shlibpath_var=LD_LIBRARY_PATH
|
---|
10035 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
---|
10036 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
---|
10037 | # the default ld.so.conf also contains /usr/contrib/lib and
|
---|
10038 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
---|
10039 | # libtool to hard-code these into programs
|
---|
10040 | ;;
|
---|
10041 |
|
---|
10042 | cygwin* | mingw* | pw32* | cegcc*)
|
---|
10043 | version_type=windows
|
---|
10044 | shrext_cmds=.dll
|
---|
10045 | need_version=no
|
---|
10046 | need_lib_prefix=no
|
---|
10047 |
|
---|
10048 | case $GCC,$cc_basename in
|
---|
10049 | yes,*)
|
---|
10050 | # gcc
|
---|
10051 | library_names_spec='$libname.dll.a'
|
---|
10052 | # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
---|
10053 | postinstall_cmds='base_file=`basename \$file`~
|
---|
10054 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
|
---|
10055 | dldir=$destdir/`dirname \$dlpath`~
|
---|
10056 | test -d \$dldir || mkdir -p \$dldir~
|
---|
10057 | $install_prog $dir/$dlname \$dldir/$dlname~
|
---|
10058 | chmod a+x \$dldir/$dlname~
|
---|
10059 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
|
---|
10060 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
|
---|
10061 | fi'
|
---|
10062 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
---|
10063 | dlpath=$dir/\$dldll~
|
---|
10064 | $RM \$dlpath'
|
---|
10065 | shlibpath_overrides_runpath=yes
|
---|
10066 |
|
---|
10067 | case $host_os in
|
---|
10068 | cygwin*)
|
---|
10069 | # Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
---|
10070 | soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
|
---|
10071 |
|
---|
10072 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
|
---|
10073 | ;;
|
---|
10074 | mingw* | cegcc*)
|
---|
10075 | # MinGW DLLs use traditional 'lib' prefix
|
---|
10076 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
|
---|
10077 | ;;
|
---|
10078 | pw32*)
|
---|
10079 | # pw32 DLLs use 'pw' prefix rather than 'lib'
|
---|
10080 | library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
|
---|
10081 | ;;
|
---|
10082 | esac
|
---|
10083 | dynamic_linker='Win32 ld.exe'
|
---|
10084 | ;;
|
---|
10085 |
|
---|
10086 | *,cl*)
|
---|
10087 | # Native MSVC
|
---|
10088 | libname_spec='$name'
|
---|
10089 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
|
---|
10090 | library_names_spec='$libname.dll.lib'
|
---|
10091 |
|
---|
10092 | case $build_os in
|
---|
10093 | mingw*)
|
---|
10094 | sys_lib_search_path_spec=
|
---|
10095 | lt_save_ifs=$IFS
|
---|
10096 | IFS=';'
|
---|
10097 | for lt_path in $LIB
|
---|
10098 | do
|
---|
10099 | IFS=$lt_save_ifs
|
---|
10100 | # Let DOS variable expansion print the short 8.3 style file name.
|
---|
10101 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
|
---|
10102 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
|
---|
10103 | done
|
---|
10104 | IFS=$lt_save_ifs
|
---|
10105 | # Convert to MSYS style.
|
---|
10106 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
|
---|
10107 | ;;
|
---|
10108 | cygwin*)
|
---|
10109 | # Convert to unix form, then to dos form, then back to unix form
|
---|
10110 | # but this time dos style (no spaces!) so that the unix form looks
|
---|
10111 | # like /cygdrive/c/PROGRA~1:/cygdr...
|
---|
10112 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
|
---|
10113 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
|
---|
10114 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
---|
10115 | ;;
|
---|
10116 | *)
|
---|
10117 | sys_lib_search_path_spec=$LIB
|
---|
10118 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
|
---|
10119 | # It is most probably a Windows format PATH.
|
---|
10120 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
---|
10121 | else
|
---|
10122 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
---|
10123 | fi
|
---|
10124 | # FIXME: find the short name or the path components, as spaces are
|
---|
10125 | # common. (e.g. "Program Files" -> "PROGRA~1")
|
---|
10126 | ;;
|
---|
10127 | esac
|
---|
10128 |
|
---|
10129 | # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
---|
10130 | postinstall_cmds='base_file=`basename \$file`~
|
---|
10131 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
|
---|
10132 | dldir=$destdir/`dirname \$dlpath`~
|
---|
10133 | test -d \$dldir || mkdir -p \$dldir~
|
---|
10134 | $install_prog $dir/$dlname \$dldir/$dlname'
|
---|
10135 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
---|
10136 | dlpath=$dir/\$dldll~
|
---|
10137 | $RM \$dlpath'
|
---|
10138 | shlibpath_overrides_runpath=yes
|
---|
10139 | dynamic_linker='Win32 link.exe'
|
---|
10140 | ;;
|
---|
10141 |
|
---|
10142 | *)
|
---|
10143 | # Assume MSVC wrapper
|
---|
10144 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
|
---|
10145 | dynamic_linker='Win32 ld.exe'
|
---|
10146 | ;;
|
---|
10147 | esac
|
---|
10148 | # FIXME: first we should search . and the directory the executable is in
|
---|
10149 | shlibpath_var=PATH
|
---|
10150 | ;;
|
---|
10151 |
|
---|
10152 | darwin* | rhapsody*)
|
---|
10153 | dynamic_linker="$host_os dyld"
|
---|
10154 | version_type=darwin
|
---|
10155 | need_lib_prefix=no
|
---|
10156 | need_version=no
|
---|
10157 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
|
---|
10158 | soname_spec='$libname$release$major$shared_ext'
|
---|
10159 | shlibpath_overrides_runpath=yes
|
---|
10160 | shlibpath_var=DYLD_LIBRARY_PATH
|
---|
10161 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
---|
10162 |
|
---|
10163 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
|
---|
10164 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
---|
10165 | ;;
|
---|
10166 |
|
---|
10167 | dgux*)
|
---|
10168 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
10169 | need_lib_prefix=no
|
---|
10170 | need_version=no
|
---|
10171 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
10172 | soname_spec='$libname$release$shared_ext$major'
|
---|
10173 | shlibpath_var=LD_LIBRARY_PATH
|
---|
10174 | ;;
|
---|
10175 |
|
---|
10176 | freebsd* | dragonfly*)
|
---|
10177 | # DragonFly does not have aout. When/if they implement a new
|
---|
10178 | # versioning mechanism, adjust this.
|
---|
10179 | if test -x /usr/bin/objformat; then
|
---|
10180 | objformat=`/usr/bin/objformat`
|
---|
10181 | else
|
---|
10182 | case $host_os in
|
---|
10183 | freebsd[23].*) objformat=aout ;;
|
---|
10184 | *) objformat=elf ;;
|
---|
10185 | esac
|
---|
10186 | fi
|
---|
10187 | version_type=freebsd-$objformat
|
---|
10188 | case $version_type in
|
---|
10189 | freebsd-elf*)
|
---|
10190 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
10191 | soname_spec='$libname$release$shared_ext$major'
|
---|
10192 | need_version=no
|
---|
10193 | need_lib_prefix=no
|
---|
10194 | ;;
|
---|
10195 | freebsd-*)
|
---|
10196 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
|
---|
10197 | need_version=yes
|
---|
10198 | ;;
|
---|
10199 | esac
|
---|
10200 | shlibpath_var=LD_LIBRARY_PATH
|
---|
10201 | case $host_os in
|
---|
10202 | freebsd2.*)
|
---|
10203 | shlibpath_overrides_runpath=yes
|
---|
10204 | ;;
|
---|
10205 | freebsd3.[01]* | freebsdelf3.[01]*)
|
---|
10206 | shlibpath_overrides_runpath=yes
|
---|
10207 | hardcode_into_libs=yes
|
---|
10208 | ;;
|
---|
10209 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
|
---|
10210 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
|
---|
10211 | shlibpath_overrides_runpath=no
|
---|
10212 | hardcode_into_libs=yes
|
---|
10213 | ;;
|
---|
10214 | *) # from 4.6 on, and DragonFly
|
---|
10215 | shlibpath_overrides_runpath=yes
|
---|
10216 | hardcode_into_libs=yes
|
---|
10217 | ;;
|
---|
10218 | esac
|
---|
10219 | ;;
|
---|
10220 |
|
---|
10221 | haiku*)
|
---|
10222 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
10223 | need_lib_prefix=no
|
---|
10224 | need_version=no
|
---|
10225 | dynamic_linker="$host_os runtime_loader"
|
---|
10226 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
10227 | soname_spec='$libname$release$shared_ext$major'
|
---|
10228 | shlibpath_var=LIBRARY_PATH
|
---|
10229 | shlibpath_overrides_runpath=no
|
---|
10230 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
|
---|
10231 | hardcode_into_libs=yes
|
---|
10232 | ;;
|
---|
10233 |
|
---|
10234 | hpux9* | hpux10* | hpux11*)
|
---|
10235 | # Give a soname corresponding to the major version so that dld.sl refuses to
|
---|
10236 | # link against other versions.
|
---|
10237 | version_type=sunos
|
---|
10238 | need_lib_prefix=no
|
---|
10239 | need_version=no
|
---|
10240 | case $host_cpu in
|
---|
10241 | ia64*)
|
---|
10242 | shrext_cmds='.so'
|
---|
10243 | hardcode_into_libs=yes
|
---|
10244 | dynamic_linker="$host_os dld.so"
|
---|
10245 | shlibpath_var=LD_LIBRARY_PATH
|
---|
10246 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
---|
10247 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
10248 | soname_spec='$libname$release$shared_ext$major'
|
---|
10249 | if test 32 = "$HPUX_IA64_MODE"; then
|
---|
10250 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
|
---|
10251 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32
|
---|
10252 | else
|
---|
10253 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
|
---|
10254 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64
|
---|
10255 | fi
|
---|
10256 | ;;
|
---|
10257 | hppa*64*)
|
---|
10258 | shrext_cmds='.sl'
|
---|
10259 | hardcode_into_libs=yes
|
---|
10260 | dynamic_linker="$host_os dld.sl"
|
---|
10261 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
---|
10262 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
---|
10263 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
10264 | soname_spec='$libname$release$shared_ext$major'
|
---|
10265 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
---|
10266 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
---|
10267 | ;;
|
---|
10268 | *)
|
---|
10269 | shrext_cmds='.sl'
|
---|
10270 | dynamic_linker="$host_os dld.sl"
|
---|
10271 | shlibpath_var=SHLIB_PATH
|
---|
10272 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
---|
10273 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
10274 | soname_spec='$libname$release$shared_ext$major'
|
---|
10275 | ;;
|
---|
10276 | esac
|
---|
10277 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
|
---|
10278 | postinstall_cmds='chmod 555 $lib'
|
---|
10279 | # or fails outright, so override atomically:
|
---|
10280 | install_override_mode=555
|
---|
10281 | ;;
|
---|
10282 |
|
---|
10283 | interix[3-9]*)
|
---|
10284 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
10285 | need_lib_prefix=no
|
---|
10286 | need_version=no
|
---|
10287 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
10288 | soname_spec='$libname$release$shared_ext$major'
|
---|
10289 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
|
---|
10290 | shlibpath_var=LD_LIBRARY_PATH
|
---|
10291 | shlibpath_overrides_runpath=no
|
---|
10292 | hardcode_into_libs=yes
|
---|
10293 | ;;
|
---|
10294 |
|
---|
10295 | irix5* | irix6* | nonstopux*)
|
---|
10296 | case $host_os in
|
---|
10297 | nonstopux*) version_type=nonstopux ;;
|
---|
10298 | *)
|
---|
10299 | if test yes = "$lt_cv_prog_gnu_ld"; then
|
---|
10300 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
10301 | else
|
---|
10302 | version_type=irix
|
---|
10303 | fi ;;
|
---|
10304 | esac
|
---|
10305 | need_lib_prefix=no
|
---|
10306 | need_version=no
|
---|
10307 | soname_spec='$libname$release$shared_ext$major'
|
---|
10308 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
|
---|
10309 | case $host_os in
|
---|
10310 | irix5* | nonstopux*)
|
---|
10311 | libsuff= shlibsuff=
|
---|
10312 | ;;
|
---|
10313 | *)
|
---|
10314 | case $LD in # libtool.m4 will add one of these switches to LD
|
---|
10315 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
|
---|
10316 | libsuff= shlibsuff= libmagic=32-bit;;
|
---|
10317 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
|
---|
10318 | libsuff=32 shlibsuff=N32 libmagic=N32;;
|
---|
10319 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
|
---|
10320 | libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
---|
10321 | *) libsuff= shlibsuff= libmagic=never-match;;
|
---|
10322 | esac
|
---|
10323 | ;;
|
---|
10324 | esac
|
---|
10325 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
---|
10326 | shlibpath_overrides_runpath=no
|
---|
10327 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
|
---|
10328 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
|
---|
10329 | hardcode_into_libs=yes
|
---|
10330 | ;;
|
---|
10331 |
|
---|
10332 | # No shared lib support for Linux oldld, aout, or coff.
|
---|
10333 | linux*oldld* | linux*aout* | linux*coff*)
|
---|
10334 | dynamic_linker=no
|
---|
10335 | ;;
|
---|
10336 |
|
---|
10337 | linux*android*)
|
---|
10338 | version_type=none # Android doesn't support versioned libraries.
|
---|
10339 | need_lib_prefix=no
|
---|
10340 | need_version=no
|
---|
10341 | library_names_spec='$libname$release$shared_ext'
|
---|
10342 | soname_spec='$libname$release$shared_ext'
|
---|
10343 | finish_cmds=
|
---|
10344 | shlibpath_var=LD_LIBRARY_PATH
|
---|
10345 | shlibpath_overrides_runpath=yes
|
---|
10346 |
|
---|
10347 | # This implies no fast_install, which is unacceptable.
|
---|
10348 | # Some rework will be needed to allow for fast_install
|
---|
10349 | # before this can be enabled.
|
---|
10350 | hardcode_into_libs=yes
|
---|
10351 |
|
---|
10352 | dynamic_linker='Android linker'
|
---|
10353 | # Don't embed -rpath directories since the linker doesn't support them.
|
---|
10354 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
10355 | ;;
|
---|
10356 |
|
---|
10357 | # This must be glibc/ELF.
|
---|
10358 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
|
---|
10359 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
10360 | need_lib_prefix=no
|
---|
10361 | need_version=no
|
---|
10362 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
10363 | soname_spec='$libname$release$shared_ext$major'
|
---|
10364 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
---|
10365 | shlibpath_var=LD_LIBRARY_PATH
|
---|
10366 | shlibpath_overrides_runpath=no
|
---|
10367 |
|
---|
10368 | # Some binutils ld are patched to set DT_RUNPATH
|
---|
10369 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
|
---|
10370 | $as_echo_n "(cached) " >&6
|
---|
10371 | else
|
---|
10372 | lt_cv_shlibpath_overrides_runpath=no
|
---|
10373 | save_LDFLAGS=$LDFLAGS
|
---|
10374 | save_libdir=$libdir
|
---|
10375 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
|
---|
10376 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
|
---|
10377 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
10378 | /* end confdefs.h. */
|
---|
10379 |
|
---|
10380 | int
|
---|
10381 | main ()
|
---|
10382 | {
|
---|
10383 |
|
---|
10384 | ;
|
---|
10385 | return 0;
|
---|
10386 | }
|
---|
10387 | _ACEOF
|
---|
10388 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
10389 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
|
---|
10390 | lt_cv_shlibpath_overrides_runpath=yes
|
---|
10391 | fi
|
---|
10392 | fi
|
---|
10393 | rm -f core conftest.err conftest.$ac_objext \
|
---|
10394 | conftest$ac_exeext conftest.$ac_ext
|
---|
10395 | LDFLAGS=$save_LDFLAGS
|
---|
10396 | libdir=$save_libdir
|
---|
10397 |
|
---|
10398 | fi
|
---|
10399 |
|
---|
10400 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
|
---|
10401 |
|
---|
10402 | # This implies no fast_install, which is unacceptable.
|
---|
10403 | # Some rework will be needed to allow for fast_install
|
---|
10404 | # before this can be enabled.
|
---|
10405 | hardcode_into_libs=yes
|
---|
10406 |
|
---|
10407 | # Ideally, we could use ldconfig to report *all* directores which are
|
---|
10408 | # searched for libraries, however this is still not possible. Aside from not
|
---|
10409 | # being certain /sbin/ldconfig is available, command
|
---|
10410 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
|
---|
10411 | # even though it is searched at run-time. Try to do the best guess by
|
---|
10412 | # appending ld.so.conf contents (and includes) to the search path.
|
---|
10413 | if test -f /etc/ld.so.conf; then
|
---|
10414 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
|
---|
10415 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
---|
10416 | fi
|
---|
10417 |
|
---|
10418 | # We used to test for /lib/ld.so.1 and disable shared libraries on
|
---|
10419 | # powerpc, because MkLinux only supported shared libraries with the
|
---|
10420 | # GNU dynamic linker. Since this was broken with cross compilers,
|
---|
10421 | # most powerpc-linux boxes support dynamic linking these days and
|
---|
10422 | # people can always --disable-shared, the test was removed, and we
|
---|
10423 | # assume the GNU/Linux dynamic linker is in use.
|
---|
10424 | dynamic_linker='GNU/Linux ld.so'
|
---|
10425 | ;;
|
---|
10426 |
|
---|
10427 | netbsdelf*-gnu)
|
---|
10428 | version_type=linux
|
---|
10429 | need_lib_prefix=no
|
---|
10430 | need_version=no
|
---|
10431 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
|
---|
10432 | soname_spec='${libname}${release}${shared_ext}$major'
|
---|
10433 | shlibpath_var=LD_LIBRARY_PATH
|
---|
10434 | shlibpath_overrides_runpath=no
|
---|
10435 | hardcode_into_libs=yes
|
---|
10436 | dynamic_linker='NetBSD ld.elf_so'
|
---|
10437 | ;;
|
---|
10438 |
|
---|
10439 | netbsd*)
|
---|
10440 | version_type=sunos
|
---|
10441 | need_lib_prefix=no
|
---|
10442 | need_version=no
|
---|
10443 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
---|
10444 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
|
---|
10445 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
---|
10446 | dynamic_linker='NetBSD (a.out) ld.so'
|
---|
10447 | else
|
---|
10448 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
10449 | soname_spec='$libname$release$shared_ext$major'
|
---|
10450 | dynamic_linker='NetBSD ld.elf_so'
|
---|
10451 | fi
|
---|
10452 | shlibpath_var=LD_LIBRARY_PATH
|
---|
10453 | shlibpath_overrides_runpath=yes
|
---|
10454 | hardcode_into_libs=yes
|
---|
10455 | ;;
|
---|
10456 |
|
---|
10457 | newsos6)
|
---|
10458 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
10459 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
10460 | shlibpath_var=LD_LIBRARY_PATH
|
---|
10461 | shlibpath_overrides_runpath=yes
|
---|
10462 | ;;
|
---|
10463 |
|
---|
10464 | *nto* | *qnx*)
|
---|
10465 | version_type=qnx
|
---|
10466 | need_lib_prefix=no
|
---|
10467 | need_version=no
|
---|
10468 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
10469 | soname_spec='$libname$release$shared_ext$major'
|
---|
10470 | shlibpath_var=LD_LIBRARY_PATH
|
---|
10471 | shlibpath_overrides_runpath=no
|
---|
10472 | hardcode_into_libs=yes
|
---|
10473 | dynamic_linker='ldqnx.so'
|
---|
10474 | ;;
|
---|
10475 |
|
---|
10476 | openbsd* | bitrig*)
|
---|
10477 | version_type=sunos
|
---|
10478 | sys_lib_dlsearch_path_spec=/usr/lib
|
---|
10479 | need_lib_prefix=no
|
---|
10480 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
|
---|
10481 | need_version=no
|
---|
10482 | else
|
---|
10483 | need_version=yes
|
---|
10484 | fi
|
---|
10485 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
|
---|
10486 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
---|
10487 | shlibpath_var=LD_LIBRARY_PATH
|
---|
10488 | shlibpath_overrides_runpath=yes
|
---|
10489 | ;;
|
---|
10490 |
|
---|
10491 | os2*)
|
---|
10492 | libname_spec='$name'
|
---|
10493 | version_type=windows
|
---|
10494 | shrext_cmds=.dll
|
---|
10495 | need_version=no
|
---|
10496 | need_lib_prefix=no
|
---|
10497 | # OS/2 can only load a DLL with a base name of 8 characters or less.
|
---|
10498 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
|
---|
10499 | v=$($ECHO $release$versuffix | tr -d .-);
|
---|
10500 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
|
---|
10501 | $ECHO $n$v`$shared_ext'
|
---|
10502 | library_names_spec='${libname}_dll.$libext'
|
---|
10503 | dynamic_linker='OS/2 ld.exe'
|
---|
10504 | shlibpath_var=BEGINLIBPATH
|
---|
10505 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
---|
10506 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
---|
10507 | postinstall_cmds='base_file=`basename \$file`~
|
---|
10508 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
|
---|
10509 | dldir=$destdir/`dirname \$dlpath`~
|
---|
10510 | test -d \$dldir || mkdir -p \$dldir~
|
---|
10511 | $install_prog $dir/$dlname \$dldir/$dlname~
|
---|
10512 | chmod a+x \$dldir/$dlname~
|
---|
10513 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
|
---|
10514 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
|
---|
10515 | fi'
|
---|
10516 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
|
---|
10517 | dlpath=$dir/\$dldll~
|
---|
10518 | $RM \$dlpath'
|
---|
10519 | ;;
|
---|
10520 |
|
---|
10521 | osf3* | osf4* | osf5*)
|
---|
10522 | version_type=osf
|
---|
10523 | need_lib_prefix=no
|
---|
10524 | need_version=no
|
---|
10525 | soname_spec='$libname$release$shared_ext$major'
|
---|
10526 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
10527 | shlibpath_var=LD_LIBRARY_PATH
|
---|
10528 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
|
---|
10529 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
---|
10530 | ;;
|
---|
10531 |
|
---|
10532 | rdos*)
|
---|
10533 | dynamic_linker=no
|
---|
10534 | ;;
|
---|
10535 |
|
---|
10536 | solaris*)
|
---|
10537 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
10538 | need_lib_prefix=no
|
---|
10539 | need_version=no
|
---|
10540 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
10541 | soname_spec='$libname$release$shared_ext$major'
|
---|
10542 | shlibpath_var=LD_LIBRARY_PATH
|
---|
10543 | shlibpath_overrides_runpath=yes
|
---|
10544 | hardcode_into_libs=yes
|
---|
10545 | # ldd complains unless libraries are executable
|
---|
10546 | postinstall_cmds='chmod +x $lib'
|
---|
10547 | ;;
|
---|
10548 |
|
---|
10549 | sunos4*)
|
---|
10550 | version_type=sunos
|
---|
10551 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
|
---|
10552 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
|
---|
10553 | shlibpath_var=LD_LIBRARY_PATH
|
---|
10554 | shlibpath_overrides_runpath=yes
|
---|
10555 | if test yes = "$with_gnu_ld"; then
|
---|
10556 | need_lib_prefix=no
|
---|
10557 | fi
|
---|
10558 | need_version=yes
|
---|
10559 | ;;
|
---|
10560 |
|
---|
10561 | sysv4 | sysv4.3*)
|
---|
10562 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
10563 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
10564 | soname_spec='$libname$release$shared_ext$major'
|
---|
10565 | shlibpath_var=LD_LIBRARY_PATH
|
---|
10566 | case $host_vendor in
|
---|
10567 | sni)
|
---|
10568 | shlibpath_overrides_runpath=no
|
---|
10569 | need_lib_prefix=no
|
---|
10570 | runpath_var=LD_RUN_PATH
|
---|
10571 | ;;
|
---|
10572 | siemens)
|
---|
10573 | need_lib_prefix=no
|
---|
10574 | ;;
|
---|
10575 | motorola)
|
---|
10576 | need_lib_prefix=no
|
---|
10577 | need_version=no
|
---|
10578 | shlibpath_overrides_runpath=no
|
---|
10579 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
|
---|
10580 | ;;
|
---|
10581 | esac
|
---|
10582 | ;;
|
---|
10583 |
|
---|
10584 | sysv4*MP*)
|
---|
10585 | if test -d /usr/nec; then
|
---|
10586 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
10587 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
|
---|
10588 | soname_spec='$libname$shared_ext.$major'
|
---|
10589 | shlibpath_var=LD_LIBRARY_PATH
|
---|
10590 | fi
|
---|
10591 | ;;
|
---|
10592 |
|
---|
10593 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
---|
10594 | version_type=sco
|
---|
10595 | need_lib_prefix=no
|
---|
10596 | need_version=no
|
---|
10597 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
|
---|
10598 | soname_spec='$libname$release$shared_ext$major'
|
---|
10599 | shlibpath_var=LD_LIBRARY_PATH
|
---|
10600 | shlibpath_overrides_runpath=yes
|
---|
10601 | hardcode_into_libs=yes
|
---|
10602 | if test yes = "$with_gnu_ld"; then
|
---|
10603 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
|
---|
10604 | else
|
---|
10605 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
|
---|
10606 | case $host_os in
|
---|
|
---|