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 <[email protected]>.
|
---|
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 [email protected] and [email protected]
|
---|
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='[email protected]'
|
---|
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 <[email protected]>.
|
---|
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 [email protected] ##
|
---|
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 | *** [email protected]
|
---|
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 | *** [email protected]
|
---|
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 <[email protected]> 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
|
---|
10607 | sco3.2v5*)
|
---|
10608 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
|
---|
10609 | ;;
|
---|
10610 | esac
|
---|
10611 | fi
|
---|
10612 | sys_lib_dlsearch_path_spec='/usr/lib'
|
---|
10613 | ;;
|
---|
10614 |
|
---|
10615 | tpf*)
|
---|
10616 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
|
---|
10617 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
10618 | need_lib_prefix=no
|
---|
10619 | need_version=no
|
---|
10620 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
10621 | shlibpath_var=LD_LIBRARY_PATH
|
---|
10622 | shlibpath_overrides_runpath=no
|
---|
10623 | hardcode_into_libs=yes
|
---|
10624 | ;;
|
---|
10625 |
|
---|
10626 | uts4*)
|
---|
10627 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
10628 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
10629 | soname_spec='$libname$release$shared_ext$major'
|
---|
10630 | shlibpath_var=LD_LIBRARY_PATH
|
---|
10631 | ;;
|
---|
10632 |
|
---|
10633 | *)
|
---|
10634 | dynamic_linker=no
|
---|
10635 | ;;
|
---|
10636 | esac
|
---|
10637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
|
---|
10638 | $as_echo "$dynamic_linker" >&6; }
|
---|
10639 | test no = "$dynamic_linker" && can_build_shared=no
|
---|
10640 |
|
---|
10641 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
---|
10642 | if test yes = "$GCC"; then
|
---|
10643 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
---|
10644 | fi
|
---|
10645 |
|
---|
10646 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
|
---|
10647 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
|
---|
10648 | fi
|
---|
10649 |
|
---|
10650 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
|
---|
10651 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
|
---|
10652 | fi
|
---|
10653 |
|
---|
10654 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
|
---|
10655 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
|
---|
10656 |
|
---|
10657 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
|
---|
10658 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
|
---|
10659 |
|
---|
10660 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
|
---|
10661 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
|
---|
10662 |
|
---|
10663 |
|
---|
10664 |
|
---|
10665 |
|
---|
10666 |
|
---|
10667 |
|
---|
10668 |
|
---|
10669 |
|
---|
10670 |
|
---|
10671 |
|
---|
10672 |
|
---|
10673 |
|
---|
10674 |
|
---|
10675 |
|
---|
10676 |
|
---|
10677 |
|
---|
10678 |
|
---|
10679 |
|
---|
10680 |
|
---|
10681 |
|
---|
10682 |
|
---|
10683 |
|
---|
10684 |
|
---|
10685 |
|
---|
10686 |
|
---|
10687 |
|
---|
10688 |
|
---|
10689 |
|
---|
10690 |
|
---|
10691 |
|
---|
10692 |
|
---|
10693 |
|
---|
10694 |
|
---|
10695 |
|
---|
10696 |
|
---|
10697 |
|
---|
10698 |
|
---|
10699 |
|
---|
10700 |
|
---|
10701 |
|
---|
10702 |
|
---|
10703 |
|
---|
10704 |
|
---|
10705 |
|
---|
10706 |
|
---|
10707 |
|
---|
10708 |
|
---|
10709 |
|
---|
10710 |
|
---|
10711 |
|
---|
10712 |
|
---|
10713 |
|
---|
10714 |
|
---|
10715 |
|
---|
10716 |
|
---|
10717 |
|
---|
10718 |
|
---|
10719 |
|
---|
10720 |
|
---|
10721 |
|
---|
10722 |
|
---|
10723 |
|
---|
10724 |
|
---|
10725 |
|
---|
10726 |
|
---|
10727 |
|
---|
10728 |
|
---|
10729 |
|
---|
10730 |
|
---|
10731 |
|
---|
10732 |
|
---|
10733 |
|
---|
10734 |
|
---|
10735 |
|
---|
10736 |
|
---|
10737 |
|
---|
10738 |
|
---|
10739 |
|
---|
10740 |
|
---|
10741 |
|
---|
10742 |
|
---|
10743 |
|
---|
10744 |
|
---|
10745 |
|
---|
10746 |
|
---|
10747 |
|
---|
10748 |
|
---|
10749 |
|
---|
10750 |
|
---|
10751 |
|
---|
10752 |
|
---|
10753 |
|
---|
10754 |
|
---|
10755 |
|
---|
10756 |
|
---|
10757 |
|
---|
10758 |
|
---|
10759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
|
---|
10760 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
|
---|
10761 | hardcode_action=
|
---|
10762 | if test -n "$hardcode_libdir_flag_spec" ||
|
---|
10763 | test -n "$runpath_var" ||
|
---|
10764 | test yes = "$hardcode_automatic"; then
|
---|
10765 |
|
---|
10766 | # We can hardcode non-existent directories.
|
---|
10767 | if test no != "$hardcode_direct" &&
|
---|
10768 | # If the only mechanism to avoid hardcoding is shlibpath_var, we
|
---|
10769 | # have to relink, otherwise we might link with an installed library
|
---|
10770 | # when we should be linking with a yet-to-be-installed one
|
---|
10771 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
|
---|
10772 | test no != "$hardcode_minus_L"; then
|
---|
10773 | # Linking always hardcodes the temporary library directory.
|
---|
10774 | hardcode_action=relink
|
---|
10775 | else
|
---|
10776 | # We can link without hardcoding, and we can hardcode nonexisting dirs.
|
---|
10777 | hardcode_action=immediate
|
---|
10778 | fi
|
---|
10779 | else
|
---|
10780 | # We cannot hardcode anything, or else we can only hardcode existing
|
---|
10781 | # directories.
|
---|
10782 | hardcode_action=unsupported
|
---|
10783 | fi
|
---|
10784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
|
---|
10785 | $as_echo "$hardcode_action" >&6; }
|
---|
10786 |
|
---|
10787 | if test relink = "$hardcode_action" ||
|
---|
10788 | test yes = "$inherit_rpath"; then
|
---|
10789 | # Fast installation is not supported
|
---|
10790 | enable_fast_install=no
|
---|
10791 | elif test yes = "$shlibpath_overrides_runpath" ||
|
---|
10792 | test no = "$enable_shared"; then
|
---|
10793 | # Fast installation is not necessary
|
---|
10794 | enable_fast_install=needless
|
---|
10795 | fi
|
---|
10796 |
|
---|
10797 |
|
---|
10798 |
|
---|
10799 |
|
---|
10800 |
|
---|
10801 |
|
---|
10802 | if test yes != "$enable_dlopen"; then
|
---|
10803 | enable_dlopen=unknown
|
---|
10804 | enable_dlopen_self=unknown
|
---|
10805 | enable_dlopen_self_static=unknown
|
---|
10806 | else
|
---|
10807 | lt_cv_dlopen=no
|
---|
10808 | lt_cv_dlopen_libs=
|
---|
10809 |
|
---|
10810 | case $host_os in
|
---|
10811 | beos*)
|
---|
10812 | lt_cv_dlopen=load_add_on
|
---|
10813 | lt_cv_dlopen_libs=
|
---|
10814 | lt_cv_dlopen_self=yes
|
---|
10815 | ;;
|
---|
10816 |
|
---|
10817 | mingw* | pw32* | cegcc*)
|
---|
10818 | lt_cv_dlopen=LoadLibrary
|
---|
10819 | lt_cv_dlopen_libs=
|
---|
10820 | ;;
|
---|
10821 |
|
---|
10822 | cygwin*)
|
---|
10823 | lt_cv_dlopen=dlopen
|
---|
10824 | lt_cv_dlopen_libs=
|
---|
10825 | ;;
|
---|
10826 |
|
---|
10827 | darwin*)
|
---|
10828 | # if libdl is installed we need to link against it
|
---|
10829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
|
---|
10830 | $as_echo_n "checking for dlopen in -ldl... " >&6; }
|
---|
10831 | if ${ac_cv_lib_dl_dlopen+:} false; then :
|
---|
10832 | $as_echo_n "(cached) " >&6
|
---|
10833 | else
|
---|
10834 | ac_check_lib_save_LIBS=$LIBS
|
---|
10835 | LIBS="-ldl $LIBS"
|
---|
10836 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
10837 | /* end confdefs.h. */
|
---|
10838 |
|
---|
10839 | /* Override any GCC internal prototype to avoid an error.
|
---|
10840 | Use char because int might match the return type of a GCC
|
---|
10841 | builtin and then its argument prototype would still apply. */
|
---|
10842 | #ifdef __cplusplus
|
---|
10843 | extern "C"
|
---|
10844 | #endif
|
---|
10845 | char dlopen ();
|
---|
10846 | int
|
---|
10847 | main ()
|
---|
10848 | {
|
---|
10849 | return dlopen ();
|
---|
10850 | ;
|
---|
10851 | return 0;
|
---|
10852 | }
|
---|
10853 | _ACEOF
|
---|
10854 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
10855 | ac_cv_lib_dl_dlopen=yes
|
---|
10856 | else
|
---|
10857 | ac_cv_lib_dl_dlopen=no
|
---|
10858 | fi
|
---|
10859 | rm -f core conftest.err conftest.$ac_objext \
|
---|
10860 | conftest$ac_exeext conftest.$ac_ext
|
---|
10861 | LIBS=$ac_check_lib_save_LIBS
|
---|
10862 | fi
|
---|
10863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
|
---|
10864 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
|
---|
10865 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
|
---|
10866 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
|
---|
10867 | else
|
---|
10868 |
|
---|
10869 | lt_cv_dlopen=dyld
|
---|
10870 | lt_cv_dlopen_libs=
|
---|
10871 | lt_cv_dlopen_self=yes
|
---|
10872 |
|
---|
10873 | fi
|
---|
10874 |
|
---|
10875 | ;;
|
---|
10876 |
|
---|
10877 | tpf*)
|
---|
10878 | # Don't try to run any link tests for TPF. We know it's impossible
|
---|
10879 | # because TPF is a cross-compiler, and we know how we open DSOs.
|
---|
10880 | lt_cv_dlopen=dlopen
|
---|
10881 | lt_cv_dlopen_libs=
|
---|
10882 | lt_cv_dlopen_self=no
|
---|
10883 | ;;
|
---|
10884 |
|
---|
10885 | *)
|
---|
10886 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
|
---|
10887 | if test "x$ac_cv_func_shl_load" = xyes; then :
|
---|
10888 | lt_cv_dlopen=shl_load
|
---|
10889 | else
|
---|
10890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
|
---|
10891 | $as_echo_n "checking for shl_load in -ldld... " >&6; }
|
---|
10892 | if ${ac_cv_lib_dld_shl_load+:} false; then :
|
---|
10893 | $as_echo_n "(cached) " >&6
|
---|
10894 | else
|
---|
10895 | ac_check_lib_save_LIBS=$LIBS
|
---|
10896 | LIBS="-ldld $LIBS"
|
---|
10897 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
10898 | /* end confdefs.h. */
|
---|
10899 |
|
---|
10900 | /* Override any GCC internal prototype to avoid an error.
|
---|
10901 | Use char because int might match the return type of a GCC
|
---|
10902 | builtin and then its argument prototype would still apply. */
|
---|
10903 | #ifdef __cplusplus
|
---|
10904 | extern "C"
|
---|
10905 | #endif
|
---|
10906 | char shl_load ();
|
---|
10907 | int
|
---|
10908 | main ()
|
---|
10909 | {
|
---|
10910 | return shl_load ();
|
---|
10911 | ;
|
---|
10912 | return 0;
|
---|
10913 | }
|
---|
10914 | _ACEOF
|
---|
10915 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
10916 | ac_cv_lib_dld_shl_load=yes
|
---|
10917 | else
|
---|
10918 | ac_cv_lib_dld_shl_load=no
|
---|
10919 | fi
|
---|
10920 | rm -f core conftest.err conftest.$ac_objext \
|
---|
10921 | conftest$ac_exeext conftest.$ac_ext
|
---|
10922 | LIBS=$ac_check_lib_save_LIBS
|
---|
10923 | fi
|
---|
10924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
|
---|
10925 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
|
---|
10926 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
|
---|
10927 | lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
|
---|
10928 | else
|
---|
10929 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
|
---|
10930 | if test "x$ac_cv_func_dlopen" = xyes; then :
|
---|
10931 | lt_cv_dlopen=dlopen
|
---|
10932 | else
|
---|
10933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
|
---|
10934 | $as_echo_n "checking for dlopen in -ldl... " >&6; }
|
---|
10935 | if ${ac_cv_lib_dl_dlopen+:} false; then :
|
---|
10936 | $as_echo_n "(cached) " >&6
|
---|
10937 | else
|
---|
10938 | ac_check_lib_save_LIBS=$LIBS
|
---|
10939 | LIBS="-ldl $LIBS"
|
---|
10940 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
10941 | /* end confdefs.h. */
|
---|
10942 |
|
---|
10943 | /* Override any GCC internal prototype to avoid an error.
|
---|
10944 | Use char because int might match the return type of a GCC
|
---|
10945 | builtin and then its argument prototype would still apply. */
|
---|
10946 | #ifdef __cplusplus
|
---|
10947 | extern "C"
|
---|
10948 | #endif
|
---|
10949 | char dlopen ();
|
---|
10950 | int
|
---|
10951 | main ()
|
---|
10952 | {
|
---|
10953 | return dlopen ();
|
---|
10954 | ;
|
---|
10955 | return 0;
|
---|
10956 | }
|
---|
10957 | _ACEOF
|
---|
10958 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
10959 | ac_cv_lib_dl_dlopen=yes
|
---|
10960 | else
|
---|
10961 | ac_cv_lib_dl_dlopen=no
|
---|
10962 | fi
|
---|
10963 | rm -f core conftest.err conftest.$ac_objext \
|
---|
10964 | conftest$ac_exeext conftest.$ac_ext
|
---|
10965 | LIBS=$ac_check_lib_save_LIBS
|
---|
10966 | fi
|
---|
10967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
|
---|
10968 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
|
---|
10969 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
|
---|
10970 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
|
---|
10971 | else
|
---|
10972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
|
---|
10973 | $as_echo_n "checking for dlopen in -lsvld... " >&6; }
|
---|
10974 | if ${ac_cv_lib_svld_dlopen+:} false; then :
|
---|
10975 | $as_echo_n "(cached) " >&6
|
---|
10976 | else
|
---|
10977 | ac_check_lib_save_LIBS=$LIBS
|
---|
10978 | LIBS="-lsvld $LIBS"
|
---|
10979 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
10980 | /* end confdefs.h. */
|
---|
10981 |
|
---|
10982 | /* Override any GCC internal prototype to avoid an error.
|
---|
10983 | Use char because int might match the return type of a GCC
|
---|
10984 | builtin and then its argument prototype would still apply. */
|
---|
10985 | #ifdef __cplusplus
|
---|
10986 | extern "C"
|
---|
10987 | #endif
|
---|
10988 | char dlopen ();
|
---|
10989 | int
|
---|
10990 | main ()
|
---|
10991 | {
|
---|
10992 | return dlopen ();
|
---|
10993 | ;
|
---|
10994 | return 0;
|
---|
10995 | }
|
---|
10996 | _ACEOF
|
---|
10997 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
10998 | ac_cv_lib_svld_dlopen=yes
|
---|
10999 | else
|
---|
11000 | ac_cv_lib_svld_dlopen=no
|
---|
11001 | fi
|
---|
11002 | rm -f core conftest.err conftest.$ac_objext \
|
---|
11003 | conftest$ac_exeext conftest.$ac_ext
|
---|
11004 | LIBS=$ac_check_lib_save_LIBS
|
---|
11005 | fi
|
---|
11006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
|
---|
11007 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
|
---|
11008 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
|
---|
11009 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
|
---|
11010 | else
|
---|
11011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
|
---|
11012 | $as_echo_n "checking for dld_link in -ldld... " >&6; }
|
---|
11013 | if ${ac_cv_lib_dld_dld_link+:} false; then :
|
---|
11014 | $as_echo_n "(cached) " >&6
|
---|
11015 | else
|
---|
11016 | ac_check_lib_save_LIBS=$LIBS
|
---|
11017 | LIBS="-ldld $LIBS"
|
---|
11018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
11019 | /* end confdefs.h. */
|
---|
11020 |
|
---|
11021 | /* Override any GCC internal prototype to avoid an error.
|
---|
11022 | Use char because int might match the return type of a GCC
|
---|
11023 | builtin and then its argument prototype would still apply. */
|
---|
11024 | #ifdef __cplusplus
|
---|
11025 | extern "C"
|
---|
11026 | #endif
|
---|
11027 | char dld_link ();
|
---|
11028 | int
|
---|
11029 | main ()
|
---|
11030 | {
|
---|
11031 | return dld_link ();
|
---|
11032 | ;
|
---|
11033 | return 0;
|
---|
11034 | }
|
---|
11035 | _ACEOF
|
---|
11036 | if ac_fn_c_try_link "$LINENO"; then :
|
---|
11037 | ac_cv_lib_dld_dld_link=yes
|
---|
11038 | else
|
---|
11039 | ac_cv_lib_dld_dld_link=no
|
---|
11040 | fi
|
---|
11041 | rm -f core conftest.err conftest.$ac_objext \
|
---|
11042 | conftest$ac_exeext conftest.$ac_ext
|
---|
11043 | LIBS=$ac_check_lib_save_LIBS
|
---|
11044 | fi
|
---|
11045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
|
---|
11046 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
|
---|
11047 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
|
---|
11048 | lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
|
---|
11049 | fi
|
---|
11050 |
|
---|
11051 |
|
---|
11052 | fi
|
---|
11053 |
|
---|
11054 |
|
---|
11055 | fi
|
---|
11056 |
|
---|
11057 |
|
---|
11058 | fi
|
---|
11059 |
|
---|
11060 |
|
---|
11061 | fi
|
---|
11062 |
|
---|
11063 |
|
---|
11064 | fi
|
---|
11065 |
|
---|
11066 | ;;
|
---|
11067 | esac
|
---|
11068 |
|
---|
11069 | if test no = "$lt_cv_dlopen"; then
|
---|
11070 | enable_dlopen=no
|
---|
11071 | else
|
---|
11072 | enable_dlopen=yes
|
---|
11073 | fi
|
---|
11074 |
|
---|
11075 | case $lt_cv_dlopen in
|
---|
11076 | dlopen)
|
---|
11077 | save_CPPFLAGS=$CPPFLAGS
|
---|
11078 | test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
|
---|
11079 |
|
---|
11080 | save_LDFLAGS=$LDFLAGS
|
---|
11081 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
|
---|
11082 |
|
---|
11083 | save_LIBS=$LIBS
|
---|
11084 | LIBS="$lt_cv_dlopen_libs $LIBS"
|
---|
11085 |
|
---|
11086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
|
---|
11087 | $as_echo_n "checking whether a program can dlopen itself... " >&6; }
|
---|
11088 | if ${lt_cv_dlopen_self+:} false; then :
|
---|
11089 | $as_echo_n "(cached) " >&6
|
---|
11090 | else
|
---|
11091 | if test yes = "$cross_compiling"; then :
|
---|
11092 | lt_cv_dlopen_self=cross
|
---|
11093 | else
|
---|
11094 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
---|
11095 | lt_status=$lt_dlunknown
|
---|
11096 | cat > conftest.$ac_ext <<_LT_EOF
|
---|
11097 | #line $LINENO "configure"
|
---|
11098 | #include "confdefs.h"
|
---|
11099 |
|
---|
11100 | #if HAVE_DLFCN_H
|
---|
11101 | #include <dlfcn.h>
|
---|
11102 | #endif
|
---|
11103 |
|
---|
11104 | #include <stdio.h>
|
---|
11105 |
|
---|
11106 | #ifdef RTLD_GLOBAL
|
---|
11107 | # define LT_DLGLOBAL RTLD_GLOBAL
|
---|
11108 | #else
|
---|
11109 | # ifdef DL_GLOBAL
|
---|
11110 | # define LT_DLGLOBAL DL_GLOBAL
|
---|
11111 | # else
|
---|
11112 | # define LT_DLGLOBAL 0
|
---|
11113 | # endif
|
---|
11114 | #endif
|
---|
11115 |
|
---|
11116 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
---|
11117 | find out it does not work in some platform. */
|
---|
11118 | #ifndef LT_DLLAZY_OR_NOW
|
---|
11119 | # ifdef RTLD_LAZY
|
---|
11120 | # define LT_DLLAZY_OR_NOW RTLD_LAZY
|
---|
11121 | # else
|
---|
11122 | # ifdef DL_LAZY
|
---|
11123 | # define LT_DLLAZY_OR_NOW DL_LAZY
|
---|
11124 | # else
|
---|
11125 | # ifdef RTLD_NOW
|
---|
11126 | # define LT_DLLAZY_OR_NOW RTLD_NOW
|
---|
11127 | # else
|
---|
11128 | # ifdef DL_NOW
|
---|
11129 | # define LT_DLLAZY_OR_NOW DL_NOW
|
---|
11130 | # else
|
---|
11131 | # define LT_DLLAZY_OR_NOW 0
|
---|
11132 | # endif
|
---|
11133 | # endif
|
---|
11134 | # endif
|
---|
11135 | # endif
|
---|
11136 | #endif
|
---|
11137 |
|
---|
11138 | /* When -fvisibility=hidden is used, assume the code has been annotated
|
---|
11139 | correspondingly for the symbols needed. */
|
---|
11140 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
---|
11141 | int fnord () __attribute__((visibility("default")));
|
---|
11142 | #endif
|
---|
11143 |
|
---|
11144 | int fnord () { return 42; }
|
---|
11145 | int main ()
|
---|
11146 | {
|
---|
11147 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
---|
11148 | int status = $lt_dlunknown;
|
---|
11149 |
|
---|
11150 | if (self)
|
---|
11151 | {
|
---|
11152 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
---|
11153 | else
|
---|
11154 | {
|
---|
11155 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
---|
11156 | else puts (dlerror ());
|
---|
11157 | }
|
---|
11158 | /* dlclose (self); */
|
---|
11159 | }
|
---|
11160 | else
|
---|
11161 | puts (dlerror ());
|
---|
11162 |
|
---|
11163 | return status;
|
---|
11164 | }
|
---|
11165 | _LT_EOF
|
---|
11166 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
|
---|
11167 | (eval $ac_link) 2>&5
|
---|
11168 | ac_status=$?
|
---|
11169 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
11170 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
|
---|
11171 | (./conftest; exit; ) >&5 2>/dev/null
|
---|
11172 | lt_status=$?
|
---|
11173 | case x$lt_status in
|
---|
11174 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
|
---|
11175 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
|
---|
11176 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
|
---|
11177 | esac
|
---|
11178 | else :
|
---|
11179 | # compilation failed
|
---|
11180 | lt_cv_dlopen_self=no
|
---|
11181 | fi
|
---|
11182 | fi
|
---|
11183 | rm -fr conftest*
|
---|
11184 |
|
---|
11185 |
|
---|
11186 | fi
|
---|
11187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
|
---|
11188 | $as_echo "$lt_cv_dlopen_self" >&6; }
|
---|
11189 |
|
---|
11190 | if test yes = "$lt_cv_dlopen_self"; then
|
---|
11191 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
|
---|
11192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
|
---|
11193 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
|
---|
11194 | if ${lt_cv_dlopen_self_static+:} false; then :
|
---|
11195 | $as_echo_n "(cached) " >&6
|
---|
11196 | else
|
---|
11197 | if test yes = "$cross_compiling"; then :
|
---|
11198 | lt_cv_dlopen_self_static=cross
|
---|
11199 | else
|
---|
11200 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
---|
11201 | lt_status=$lt_dlunknown
|
---|
11202 | cat > conftest.$ac_ext <<_LT_EOF
|
---|
11203 | #line $LINENO "configure"
|
---|
11204 | #include "confdefs.h"
|
---|
11205 |
|
---|
11206 | #if HAVE_DLFCN_H
|
---|
11207 | #include <dlfcn.h>
|
---|
11208 | #endif
|
---|
11209 |
|
---|
11210 | #include <stdio.h>
|
---|
11211 |
|
---|
11212 | #ifdef RTLD_GLOBAL
|
---|
11213 | # define LT_DLGLOBAL RTLD_GLOBAL
|
---|
11214 | #else
|
---|
11215 | # ifdef DL_GLOBAL
|
---|
11216 | # define LT_DLGLOBAL DL_GLOBAL
|
---|
11217 | # else
|
---|
11218 | # define LT_DLGLOBAL 0
|
---|
11219 | # endif
|
---|
11220 | #endif
|
---|
11221 |
|
---|
11222 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
---|
11223 | find out it does not work in some platform. */
|
---|
11224 | #ifndef LT_DLLAZY_OR_NOW
|
---|
11225 | # ifdef RTLD_LAZY
|
---|
11226 | # define LT_DLLAZY_OR_NOW RTLD_LAZY
|
---|
11227 | # else
|
---|
11228 | # ifdef DL_LAZY
|
---|
11229 | # define LT_DLLAZY_OR_NOW DL_LAZY
|
---|
11230 | # else
|
---|
11231 | # ifdef RTLD_NOW
|
---|
11232 | # define LT_DLLAZY_OR_NOW RTLD_NOW
|
---|
11233 | # else
|
---|
11234 | # ifdef DL_NOW
|
---|
11235 | # define LT_DLLAZY_OR_NOW DL_NOW
|
---|
11236 | # else
|
---|
11237 | # define LT_DLLAZY_OR_NOW 0
|
---|
11238 | # endif
|
---|
11239 | # endif
|
---|
11240 | # endif
|
---|
11241 | # endif
|
---|
11242 | #endif
|
---|
11243 |
|
---|
11244 | /* When -fvisibility=hidden is used, assume the code has been annotated
|
---|
11245 | correspondingly for the symbols needed. */
|
---|
11246 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
---|
11247 | int fnord () __attribute__((visibility("default")));
|
---|
11248 | #endif
|
---|
11249 |
|
---|
11250 | int fnord () { return 42; }
|
---|
11251 | int main ()
|
---|
11252 | {
|
---|
11253 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
---|
11254 | int status = $lt_dlunknown;
|
---|
11255 |
|
---|
11256 | if (self)
|
---|
11257 | {
|
---|
11258 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
---|
11259 | else
|
---|
11260 | {
|
---|
11261 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
---|
11262 | else puts (dlerror ());
|
---|
11263 | }
|
---|
11264 | /* dlclose (self); */
|
---|
11265 | }
|
---|
11266 | else
|
---|
11267 | puts (dlerror ());
|
---|
11268 |
|
---|
11269 | return status;
|
---|
11270 | }
|
---|
11271 | _LT_EOF
|
---|
11272 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
|
---|
11273 | (eval $ac_link) 2>&5
|
---|
11274 | ac_status=$?
|
---|
11275 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
11276 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
|
---|
11277 | (./conftest; exit; ) >&5 2>/dev/null
|
---|
11278 | lt_status=$?
|
---|
11279 | case x$lt_status in
|
---|
11280 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
|
---|
11281 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
|
---|
11282 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
|
---|
11283 | esac
|
---|
11284 | else :
|
---|
11285 | # compilation failed
|
---|
11286 | lt_cv_dlopen_self_static=no
|
---|
11287 | fi
|
---|
11288 | fi
|
---|
11289 | rm -fr conftest*
|
---|
11290 |
|
---|
11291 |
|
---|
11292 | fi
|
---|
11293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
|
---|
11294 | $as_echo "$lt_cv_dlopen_self_static" >&6; }
|
---|
11295 | fi
|
---|
11296 |
|
---|
11297 | CPPFLAGS=$save_CPPFLAGS
|
---|
11298 | LDFLAGS=$save_LDFLAGS
|
---|
11299 | LIBS=$save_LIBS
|
---|
11300 | ;;
|
---|
11301 | esac
|
---|
11302 |
|
---|
11303 | case $lt_cv_dlopen_self in
|
---|
11304 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
|
---|
11305 | *) enable_dlopen_self=unknown ;;
|
---|
11306 | esac
|
---|
11307 |
|
---|
11308 | case $lt_cv_dlopen_self_static in
|
---|
11309 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
|
---|
11310 | *) enable_dlopen_self_static=unknown ;;
|
---|
11311 | esac
|
---|
11312 | fi
|
---|
11313 |
|
---|
11314 |
|
---|
11315 |
|
---|
11316 |
|
---|
11317 |
|
---|
11318 |
|
---|
11319 |
|
---|
11320 |
|
---|
11321 |
|
---|
11322 |
|
---|
11323 |
|
---|
11324 |
|
---|
11325 |
|
---|
11326 |
|
---|
11327 |
|
---|
11328 |
|
---|
11329 |
|
---|
11330 | striplib=
|
---|
11331 | old_striplib=
|
---|
11332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
|
---|
11333 | $as_echo_n "checking whether stripping libraries is possible... " >&6; }
|
---|
11334 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
|
---|
11335 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
|
---|
11336 | test -z "$striplib" && striplib="$STRIP --strip-unneeded"
|
---|
11337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
11338 | $as_echo "yes" >&6; }
|
---|
11339 | else
|
---|
11340 | # FIXME - insert some real tests, host_os isn't really good enough
|
---|
11341 | case $host_os in
|
---|
11342 | darwin*)
|
---|
11343 | if test -n "$STRIP"; then
|
---|
11344 | striplib="$STRIP -x"
|
---|
11345 | old_striplib="$STRIP -S"
|
---|
11346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
11347 | $as_echo "yes" >&6; }
|
---|
11348 | else
|
---|
11349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
11350 | $as_echo "no" >&6; }
|
---|
11351 | fi
|
---|
11352 | ;;
|
---|
11353 | *)
|
---|
11354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
11355 | $as_echo "no" >&6; }
|
---|
11356 | ;;
|
---|
11357 | esac
|
---|
11358 | fi
|
---|
11359 |
|
---|
11360 |
|
---|
11361 |
|
---|
11362 |
|
---|
11363 |
|
---|
11364 |
|
---|
11365 |
|
---|
11366 |
|
---|
11367 |
|
---|
11368 |
|
---|
11369 |
|
---|
11370 |
|
---|
11371 | # Report what library types will actually be built
|
---|
11372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
|
---|
11373 | $as_echo_n "checking if libtool supports shared libraries... " >&6; }
|
---|
11374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
|
---|
11375 | $as_echo "$can_build_shared" >&6; }
|
---|
11376 |
|
---|
11377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
|
---|
11378 | $as_echo_n "checking whether to build shared libraries... " >&6; }
|
---|
11379 | test no = "$can_build_shared" && enable_shared=no
|
---|
11380 |
|
---|
11381 | # On AIX, shared libraries and static libraries use the same namespace, and
|
---|
11382 | # are all built from PIC.
|
---|
11383 | case $host_os in
|
---|
11384 | aix3*)
|
---|
11385 | test yes = "$enable_shared" && enable_static=no
|
---|
11386 | if test -n "$RANLIB"; then
|
---|
11387 | archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
---|
11388 | postinstall_cmds='$RANLIB $lib'
|
---|
11389 | fi
|
---|
11390 | ;;
|
---|
11391 |
|
---|
11392 | aix[4-9]*)
|
---|
11393 | if test ia64 != "$host_cpu"; then
|
---|
11394 | case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
|
---|
11395 | yes,aix,yes) ;; # shared object as lib.so file only
|
---|
11396 | yes,svr4,*) ;; # shared object as lib.so archive member only
|
---|
11397 | yes,*) enable_static=no ;; # shared object in lib.a archive as well
|
---|
11398 | esac
|
---|
11399 | fi
|
---|
11400 | ;;
|
---|
11401 | esac
|
---|
11402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
|
---|
11403 | $as_echo "$enable_shared" >&6; }
|
---|
11404 |
|
---|
11405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
|
---|
11406 | $as_echo_n "checking whether to build static libraries... " >&6; }
|
---|
11407 | # Make sure either enable_shared or enable_static is yes.
|
---|
11408 | test yes = "$enable_shared" || enable_static=yes
|
---|
11409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
|
---|
11410 | $as_echo "$enable_static" >&6; }
|
---|
11411 |
|
---|
11412 |
|
---|
11413 |
|
---|
11414 |
|
---|
11415 | fi
|
---|
11416 | ac_ext=c
|
---|
11417 | ac_cpp='$CPP $CPPFLAGS'
|
---|
11418 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
11419 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
11420 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
11421 |
|
---|
11422 | CC=$lt_save_CC
|
---|
11423 |
|
---|
11424 |
|
---|
11425 |
|
---|
11426 |
|
---|
11427 |
|
---|
11428 |
|
---|
11429 |
|
---|
11430 |
|
---|
11431 |
|
---|
11432 |
|
---|
11433 |
|
---|
11434 |
|
---|
11435 |
|
---|
11436 |
|
---|
11437 |
|
---|
11438 | ac_config_commands="$ac_config_commands libtool"
|
---|
11439 |
|
---|
11440 |
|
---|
11441 |
|
---|
11442 |
|
---|
11443 | # Only expand once:
|
---|
11444 |
|
---|
11445 |
|
---|
11446 |
|
---|
11447 |
|
---|
11448 |
|
---|
11449 | am__api_version='1.16'
|
---|
11450 |
|
---|
11451 | # Find a good install program. We prefer a C program (faster),
|
---|
11452 | # so one script is as good as another. But avoid the broken or
|
---|
11453 | # incompatible versions:
|
---|
11454 | # SysV /etc/install, /usr/sbin/install
|
---|
11455 | # SunOS /usr/etc/install
|
---|
11456 | # IRIX /sbin/install
|
---|
11457 | # AIX /bin/install
|
---|
11458 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
11459 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
11460 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
11461 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
11462 | # OS/2's system install, which has a completely different semantic
|
---|
11463 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
11464 | # Reject install programs that cannot install multiple files.
|
---|
11465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
|
---|
11466 | $as_echo_n "checking for a BSD-compatible install... " >&6; }
|
---|
11467 | if test -z "$INSTALL"; then
|
---|
11468 | if ${ac_cv_path_install+:} false; then :
|
---|
11469 | $as_echo_n "(cached) " >&6
|
---|
11470 | else
|
---|
11471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
11472 | for as_dir in $PATH
|
---|
11473 | do
|
---|
11474 | IFS=$as_save_IFS
|
---|
11475 | test -z "$as_dir" && as_dir=.
|
---|
11476 | # Account for people who put trailing slashes in PATH elements.
|
---|
11477 | case $as_dir/ in #((
|
---|
11478 | ./ | .// | /[cC]/* | \
|
---|
11479 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
11480 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
|
---|
11481 | /usr/ucb/* ) ;;
|
---|
11482 | *)
|
---|
11483 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
11484 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
11485 | # by default.
|
---|
11486 | for ac_prog in ginstall scoinst install; do
|
---|
11487 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
11488 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
11489 | if test $ac_prog = install &&
|
---|
11490 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
11491 | # AIX install. It has an incompatible calling convention.
|
---|
11492 | :
|
---|
11493 | elif test $ac_prog = install &&
|
---|
11494 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
11495 | # program-specific install script used by HP pwplus--don't use.
|
---|
11496 | :
|
---|
11497 | else
|
---|
11498 | rm -rf conftest.one conftest.two conftest.dir
|
---|
11499 | echo one > conftest.one
|
---|
11500 | echo two > conftest.two
|
---|
11501 | mkdir conftest.dir
|
---|
11502 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
|
---|
11503 | test -s conftest.one && test -s conftest.two &&
|
---|
11504 | test -s conftest.dir/conftest.one &&
|
---|
11505 | test -s conftest.dir/conftest.two
|
---|
11506 | then
|
---|
11507 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
11508 | break 3
|
---|
11509 | fi
|
---|
11510 | fi
|
---|
11511 | fi
|
---|
11512 | done
|
---|
11513 | done
|
---|
11514 | ;;
|
---|
11515 | esac
|
---|
11516 |
|
---|
11517 | done
|
---|
11518 | IFS=$as_save_IFS
|
---|
11519 |
|
---|
11520 | rm -rf conftest.one conftest.two conftest.dir
|
---|
11521 |
|
---|
11522 | fi
|
---|
11523 | if test "${ac_cv_path_install+set}" = set; then
|
---|
11524 | INSTALL=$ac_cv_path_install
|
---|
11525 | else
|
---|
11526 | # As a last resort, use the slow shell script. Don't cache a
|
---|
11527 | # value for INSTALL within a source directory, because that will
|
---|
11528 | # break other packages using the cache if that directory is
|
---|
11529 | # removed, or if the value is a relative name.
|
---|
11530 | INSTALL=$ac_install_sh
|
---|
11531 | fi
|
---|
11532 | fi
|
---|
11533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
|
---|
11534 | $as_echo "$INSTALL" >&6; }
|
---|
11535 |
|
---|
11536 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
11537 | # It thinks the first close brace ends the variable substitution.
|
---|
11538 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
11539 |
|
---|
11540 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
11541 |
|
---|
11542 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
11543 |
|
---|
11544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
|
---|
11545 | $as_echo_n "checking whether build environment is sane... " >&6; }
|
---|
11546 | # Reject unsafe characters in $srcdir or the absolute working directory
|
---|
11547 | # name. Accept space and tab only in the latter.
|
---|
11548 | am_lf='
|
---|
11549 | '
|
---|
11550 | case `pwd` in
|
---|
11551 | *[\\\"\#\$\&\'\`$am_lf]*)
|
---|
11552 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
|
---|
11553 | esac
|
---|
11554 | case $srcdir in
|
---|
11555 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
|
---|
11556 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
|
---|
11557 | esac
|
---|
11558 |
|
---|
11559 | # Do 'set' in a subshell so we don't clobber the current shell's
|
---|
11560 | # arguments. Must try -L first in case configure is actually a
|
---|
11561 | # symlink; some systems play weird games with the mod time of symlinks
|
---|
11562 | # (eg FreeBSD returns the mod time of the symlink's containing
|
---|
11563 | # directory).
|
---|
11564 | if (
|
---|
11565 | am_has_slept=no
|
---|
11566 | for am_try in 1 2; do
|
---|
11567 | echo "timestamp, slept: $am_has_slept" > conftest.file
|
---|
11568 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
|
---|
11569 | if test "$*" = "X"; then
|
---|
11570 | # -L didn't work.
|
---|
11571 | set X `ls -t "$srcdir/configure" conftest.file`
|
---|
11572 | fi
|
---|
11573 | if test "$*" != "X $srcdir/configure conftest.file" \
|
---|
11574 | && test "$*" != "X conftest.file $srcdir/configure"; then
|
---|
11575 |
|
---|
11576 | # If neither matched, then we have a broken ls. This can happen
|
---|
11577 | # if, for instance, CONFIG_SHELL is bash and it inherits a
|
---|
11578 | # broken ls alias from the environment. This has actually
|
---|
11579 | # happened. Such a system could not be considered "sane".
|
---|
11580 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
|
---|
11581 | alias in your environment" "$LINENO" 5
|
---|
11582 | fi
|
---|
11583 | if test "$2" = conftest.file || test $am_try -eq 2; then
|
---|
11584 | break
|
---|
11585 | fi
|
---|
11586 | # Just in case.
|
---|
11587 | sleep 1
|
---|
11588 | am_has_slept=yes
|
---|
11589 | done
|
---|
11590 | test "$2" = conftest.file
|
---|
11591 | )
|
---|
11592 | then
|
---|
11593 | # Ok.
|
---|
11594 | :
|
---|
11595 | else
|
---|
11596 | as_fn_error $? "newly created file is older than distributed files!
|
---|
11597 | Check your system clock" "$LINENO" 5
|
---|
11598 | fi
|
---|
11599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
11600 | $as_echo "yes" >&6; }
|
---|
11601 | # If we didn't sleep, we still need to ensure time stamps of config.status and
|
---|
11602 | # generated files are strictly newer.
|
---|
11603 | am_sleep_pid=
|
---|
11604 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then
|
---|
11605 | ( sleep 1 ) &
|
---|
11606 | am_sleep_pid=$!
|
---|
11607 | fi
|
---|
11608 |
|
---|
11609 | rm -f conftest.file
|
---|
11610 |
|
---|
11611 | test "$program_prefix" != NONE &&
|
---|
11612 | program_transform_name="s&^&$program_prefix&;$program_transform_name"
|
---|
11613 | # Use a double $ so make ignores it.
|
---|
11614 | test "$program_suffix" != NONE &&
|
---|
11615 | program_transform_name="s&\$&$program_suffix&;$program_transform_name"
|
---|
11616 | # Double any \ or $.
|
---|
11617 | # By default was `s,x,x', remove it if useless.
|
---|
11618 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
|
---|
11619 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
|
---|
11620 |
|
---|
11621 | if test x"${MISSING+set}" != xset; then
|
---|
11622 | MISSING="\${SHELL} '$am_aux_dir/missing'"
|
---|
11623 | fi
|
---|
11624 | # Use eval to expand $SHELL
|
---|
11625 | if eval "$MISSING --is-lightweight"; then
|
---|
11626 | am_missing_run="$MISSING "
|
---|
11627 | else
|
---|
11628 | am_missing_run=
|
---|
11629 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
|
---|
11630 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
|
---|
11631 | fi
|
---|
11632 |
|
---|
11633 | if test x"${install_sh+set}" != xset; then
|
---|
11634 | case $am_aux_dir in
|
---|
11635 | *\ * | *\ *)
|
---|
11636 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
|
---|
11637 | *)
|
---|
11638 | install_sh="\${SHELL} $am_aux_dir/install-sh"
|
---|
11639 | esac
|
---|
11640 | fi
|
---|
11641 |
|
---|
11642 | # Installed binaries are usually stripped using 'strip' when the user
|
---|
11643 | # run "make install-strip". However 'strip' might not be the right
|
---|
11644 | # tool to use in cross-compilation environments, therefore Automake
|
---|
11645 | # will honor the 'STRIP' environment variable to overrule this program.
|
---|
11646 | if test "$cross_compiling" != no; then
|
---|
11647 | if test -n "$ac_tool_prefix"; then
|
---|
11648 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
---|
11649 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
---|
11650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
11651 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
11652 | if ${ac_cv_prog_STRIP+:} false; then :
|
---|
11653 | $as_echo_n "(cached) " >&6
|
---|
11654 | else
|
---|
11655 | if test -n "$STRIP"; then
|
---|
11656 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
11657 | else
|
---|
11658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
11659 | for as_dir in $PATH
|
---|
11660 | do
|
---|
11661 | IFS=$as_save_IFS
|
---|
11662 | test -z "$as_dir" && as_dir=.
|
---|
11663 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
11664 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
11665 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
---|
11666 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
11667 | break 2
|
---|
11668 | fi
|
---|
11669 | done
|
---|
11670 | done
|
---|
11671 | IFS=$as_save_IFS
|
---|
11672 |
|
---|
11673 | fi
|
---|
11674 | fi
|
---|
11675 | STRIP=$ac_cv_prog_STRIP
|
---|
11676 | if test -n "$STRIP"; then
|
---|
11677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
|
---|
11678 | $as_echo "$STRIP" >&6; }
|
---|
11679 | else
|
---|
11680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
11681 | $as_echo "no" >&6; }
|
---|
11682 | fi
|
---|
11683 |
|
---|
11684 |
|
---|
11685 | fi
|
---|
11686 | if test -z "$ac_cv_prog_STRIP"; then
|
---|
11687 | ac_ct_STRIP=$STRIP
|
---|
11688 | # Extract the first word of "strip", so it can be a program name with args.
|
---|
11689 | set dummy strip; ac_word=$2
|
---|
11690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
11691 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
11692 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
|
---|
11693 | $as_echo_n "(cached) " >&6
|
---|
11694 | else
|
---|
11695 | if test -n "$ac_ct_STRIP"; then
|
---|
11696 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
---|
11697 | else
|
---|
11698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
11699 | for as_dir in $PATH
|
---|
11700 | do
|
---|
11701 | IFS=$as_save_IFS
|
---|
11702 | test -z "$as_dir" && as_dir=.
|
---|
11703 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
11704 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
11705 | ac_cv_prog_ac_ct_STRIP="strip"
|
---|
11706 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
11707 | break 2
|
---|
11708 | fi
|
---|
11709 | done
|
---|
11710 | done
|
---|
11711 | IFS=$as_save_IFS
|
---|
11712 |
|
---|
11713 | fi
|
---|
11714 | fi
|
---|
11715 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
---|
11716 | if test -n "$ac_ct_STRIP"; then
|
---|
11717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
|
---|
11718 | $as_echo "$ac_ct_STRIP" >&6; }
|
---|
11719 | else
|
---|
11720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
11721 | $as_echo "no" >&6; }
|
---|
11722 | fi
|
---|
11723 |
|
---|
11724 | if test "x$ac_ct_STRIP" = x; then
|
---|
11725 | STRIP=":"
|
---|
11726 | else
|
---|
11727 | case $cross_compiling:$ac_tool_warned in
|
---|
11728 | yes:)
|
---|
11729 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
11730 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
11731 | ac_tool_warned=yes ;;
|
---|
11732 | esac
|
---|
11733 | STRIP=$ac_ct_STRIP
|
---|
11734 | fi
|
---|
11735 | else
|
---|
11736 | STRIP="$ac_cv_prog_STRIP"
|
---|
11737 | fi
|
---|
11738 |
|
---|
11739 | fi
|
---|
11740 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
|
---|
11741 |
|
---|
11742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
|
---|
11743 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
|
---|
11744 | if test -z "$MKDIR_P"; then
|
---|
11745 | if ${ac_cv_path_mkdir+:} false; then :
|
---|
11746 | $as_echo_n "(cached) " >&6
|
---|
11747 | else
|
---|
11748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
11749 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
|
---|
11750 | do
|
---|
11751 | IFS=$as_save_IFS
|
---|
11752 | test -z "$as_dir" && as_dir=.
|
---|
11753 | for ac_prog in mkdir gmkdir; do
|
---|
11754 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
11755 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
|
---|
11756 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
|
---|
11757 | 'mkdir (GNU coreutils) '* | \
|
---|
11758 | 'mkdir (coreutils) '* | \
|
---|
11759 | 'mkdir (fileutils) '4.1*)
|
---|
11760 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
|
---|
11761 | break 3;;
|
---|
11762 | esac
|
---|
11763 | done
|
---|
11764 | done
|
---|
11765 | done
|
---|
11766 | IFS=$as_save_IFS
|
---|
11767 |
|
---|
11768 | fi
|
---|
11769 |
|
---|
11770 | test -d ./--version && rmdir ./--version
|
---|
11771 | if test "${ac_cv_path_mkdir+set}" = set; then
|
---|
11772 | MKDIR_P="$ac_cv_path_mkdir -p"
|
---|
11773 | else
|
---|
11774 | # As a last resort, use the slow shell script. Don't cache a
|
---|
11775 | # value for MKDIR_P within a source directory, because that will
|
---|
11776 | # break other packages using the cache if that directory is
|
---|
11777 | # removed, or if the value is a relative name.
|
---|
11778 | MKDIR_P="$ac_install_sh -d"
|
---|
11779 | fi
|
---|
11780 | fi
|
---|
11781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
|
---|
11782 | $as_echo "$MKDIR_P" >&6; }
|
---|
11783 |
|
---|
11784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
11785 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
|
---|
11786 | set x ${MAKE-make}
|
---|
11787 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
---|
11788 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
|
---|
11789 | $as_echo_n "(cached) " >&6
|
---|
11790 | else
|
---|
11791 | cat >conftest.make <<\_ACEOF
|
---|
11792 | SHELL = /bin/sh
|
---|
11793 | all:
|
---|
11794 | @echo '@@@%%%=$(MAKE)=@@@%%%'
|
---|
11795 | _ACEOF
|
---|
11796 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
|
---|
11797 | case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
---|
11798 | *@@@%%%=?*=@@@%%%*)
|
---|
11799 | eval ac_cv_prog_make_${ac_make}_set=yes;;
|
---|
11800 | *)
|
---|
11801 | eval ac_cv_prog_make_${ac_make}_set=no;;
|
---|
11802 | esac
|
---|
11803 | rm -f conftest.make
|
---|
11804 | fi
|
---|
11805 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
---|
11806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
11807 | $as_echo "yes" >&6; }
|
---|
11808 | SET_MAKE=
|
---|
11809 | else
|
---|
11810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
11811 | $as_echo "no" >&6; }
|
---|
11812 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
11813 | fi
|
---|
11814 |
|
---|
11815 | rm -rf .tst 2>/dev/null
|
---|
11816 | mkdir .tst 2>/dev/null
|
---|
11817 | if test -d .tst; then
|
---|
11818 | am__leading_dot=.
|
---|
11819 | else
|
---|
11820 | am__leading_dot=_
|
---|
11821 | fi
|
---|
11822 | rmdir .tst 2>/dev/null
|
---|
11823 |
|
---|
11824 | DEPDIR="${am__leading_dot}deps"
|
---|
11825 |
|
---|
11826 | ac_config_commands="$ac_config_commands depfiles"
|
---|
11827 |
|
---|
11828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
|
---|
11829 | $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
|
---|
11830 | cat > confinc.mk << 'END'
|
---|
11831 | am__doit:
|
---|
11832 | @echo this is the am__doit target >confinc.out
|
---|
11833 | .PHONY: am__doit
|
---|
11834 | END
|
---|
11835 | am__include="#"
|
---|
11836 | am__quote=
|
---|
11837 | # BSD make does it like this.
|
---|
11838 | echo '.include "confinc.mk" # ignored' > confmf.BSD
|
---|
11839 | # Other make implementations (GNU, Solaris 10, AIX) do it like this.
|
---|
11840 | echo 'include confinc.mk # ignored' > confmf.GNU
|
---|
11841 | _am_result=no
|
---|
11842 | for s in GNU BSD; do
|
---|
11843 | { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
|
---|
11844 | (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
|
---|
11845 | ac_status=$?
|
---|
11846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
11847 | (exit $ac_status); }
|
---|
11848 | case $?:`cat confinc.out 2>/dev/null` in #(
|
---|
11849 | '0:this is the am__doit target') :
|
---|
11850 | case $s in #(
|
---|
11851 | BSD) :
|
---|
11852 | am__include='.include' am__quote='"' ;; #(
|
---|
11853 | *) :
|
---|
11854 | am__include='include' am__quote='' ;;
|
---|
11855 | esac ;; #(
|
---|
11856 | *) :
|
---|
11857 | ;;
|
---|
11858 | esac
|
---|
11859 | if test "$am__include" != "#"; then
|
---|
11860 | _am_result="yes ($s style)"
|
---|
11861 | break
|
---|
11862 | fi
|
---|
11863 | done
|
---|
11864 | rm -f confinc.* confmf.*
|
---|
11865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
|
---|
11866 | $as_echo "${_am_result}" >&6; }
|
---|
11867 |
|
---|
11868 | # Check whether --enable-dependency-tracking was given.
|
---|
11869 | if test "${enable_dependency_tracking+set}" = set; then :
|
---|
11870 | enableval=$enable_dependency_tracking;
|
---|
11871 | fi
|
---|
11872 |
|
---|
11873 | if test "x$enable_dependency_tracking" != xno; then
|
---|
11874 | am_depcomp="$ac_aux_dir/depcomp"
|
---|
11875 | AMDEPBACKSLASH='\'
|
---|
11876 | am__nodep='_no'
|
---|
11877 | fi
|
---|
11878 | if test "x$enable_dependency_tracking" != xno; then
|
---|
11879 | AMDEP_TRUE=
|
---|
11880 | AMDEP_FALSE='#'
|
---|
11881 | else
|
---|
11882 | AMDEP_TRUE='#'
|
---|
11883 | AMDEP_FALSE=
|
---|
11884 | fi
|
---|
11885 |
|
---|
11886 |
|
---|
11887 | # Check whether --enable-silent-rules was given.
|
---|
11888 | if test "${enable_silent_rules+set}" = set; then :
|
---|
11889 | enableval=$enable_silent_rules;
|
---|
11890 | fi
|
---|
11891 |
|
---|
11892 | case $enable_silent_rules in # (((
|
---|
11893 | yes) AM_DEFAULT_VERBOSITY=0;;
|
---|
11894 | no) AM_DEFAULT_VERBOSITY=1;;
|
---|
11895 | *) AM_DEFAULT_VERBOSITY=1;;
|
---|
11896 | esac
|
---|
11897 | am_make=${MAKE-make}
|
---|
11898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
|
---|
11899 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
|
---|
11900 | if ${am_cv_make_support_nested_variables+:} false; then :
|
---|
11901 | $as_echo_n "(cached) " >&6
|
---|
11902 | else
|
---|
11903 | if $as_echo 'TRUE=$(BAR$(V))
|
---|
11904 | BAR0=false
|
---|
11905 | BAR1=true
|
---|
11906 | V=1
|
---|
11907 | am__doit:
|
---|
11908 | @$(TRUE)
|
---|
11909 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
|
---|
11910 | am_cv_make_support_nested_variables=yes
|
---|
11911 | else
|
---|
11912 | am_cv_make_support_nested_variables=no
|
---|
11913 | fi
|
---|
11914 | fi
|
---|
11915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
|
---|
11916 | $as_echo "$am_cv_make_support_nested_variables" >&6; }
|
---|
11917 | if test $am_cv_make_support_nested_variables = yes; then
|
---|
11918 | AM_V='$(V)'
|
---|
11919 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
|
---|
11920 | else
|
---|
11921 | AM_V=$AM_DEFAULT_VERBOSITY
|
---|
11922 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
|
---|
11923 | fi
|
---|
11924 | AM_BACKSLASH='\'
|
---|
11925 |
|
---|
11926 | if test "`cd $srcdir && pwd`" != "`pwd`"; then
|
---|
11927 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
|
---|
11928 | # is not polluted with repeated "-I."
|
---|
11929 | am__isrc=' -I$(srcdir)'
|
---|
11930 | # test to see if srcdir already configured
|
---|
11931 | if test -f $srcdir/config.status; then
|
---|
11932 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
|
---|
11933 | fi
|
---|
11934 | fi
|
---|
11935 |
|
---|
11936 | # test whether we have cygpath
|
---|
11937 | if test -z "$CYGPATH_W"; then
|
---|
11938 | if (cygpath --version) >/dev/null 2>/dev/null; then
|
---|
11939 | CYGPATH_W='cygpath -w'
|
---|
11940 | else
|
---|
11941 | CYGPATH_W=echo
|
---|
11942 | fi
|
---|
11943 | fi
|
---|
11944 |
|
---|
11945 |
|
---|
11946 | # Define the identity of the package.
|
---|
11947 | PACKAGE='libogg'
|
---|
11948 | VERSION='1.3.5'
|
---|
11949 |
|
---|
11950 |
|
---|
11951 | cat >>confdefs.h <<_ACEOF
|
---|
11952 | #define PACKAGE "$PACKAGE"
|
---|
11953 | _ACEOF
|
---|
11954 |
|
---|
11955 |
|
---|
11956 | cat >>confdefs.h <<_ACEOF
|
---|
11957 | #define VERSION "$VERSION"
|
---|
11958 | _ACEOF
|
---|
11959 |
|
---|
11960 | # Some tools Automake needs.
|
---|
11961 |
|
---|
11962 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
|
---|
11963 |
|
---|
11964 |
|
---|
11965 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
|
---|
11966 |
|
---|
11967 |
|
---|
11968 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
|
---|
11969 |
|
---|
11970 |
|
---|
11971 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
|
---|
11972 |
|
---|
11973 |
|
---|
11974 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
|
---|
11975 |
|
---|
11976 | # For better backward compatibility. To be removed once Automake 1.9.x
|
---|
11977 | # dies out for good. For more background, see:
|
---|
11978 | # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
|
---|
11979 | # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
|
---|
11980 | mkdir_p='$(MKDIR_P)'
|
---|
11981 |
|
---|
11982 | # We need awk for the "check" target (and possibly the TAP driver). The
|
---|
11983 | # system "awk" is bad on some platforms.
|
---|
11984 | # Always define AMTAR for backward compatibility. Yes, it's still used
|
---|
11985 | # in the wild :-( We should find a proper way to deprecate it ...
|
---|
11986 | AMTAR='$${TAR-tar}'
|
---|
11987 |
|
---|
11988 |
|
---|
11989 | # We'll loop over all known methods to create a tar archive until one works.
|
---|
11990 | _am_tools='gnutar pax cpio none'
|
---|
11991 |
|
---|
11992 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
|
---|
11993 |
|
---|
11994 |
|
---|
11995 |
|
---|
11996 |
|
---|
11997 |
|
---|
11998 | depcc="$CC" am_compiler_list=
|
---|
11999 |
|
---|
12000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
|
---|
12001 | $as_echo_n "checking dependency style of $depcc... " >&6; }
|
---|
12002 | if ${am_cv_CC_dependencies_compiler_type+:} false; then :
|
---|
12003 | $as_echo_n "(cached) " >&6
|
---|
12004 | else
|
---|
12005 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
---|
12006 | # We make a subdir and do the tests there. Otherwise we can end up
|
---|
12007 | # making bogus files that we don't know about and never remove. For
|
---|
12008 | # instance it was reported that on HP-UX the gcc test will end up
|
---|
12009 | # making a dummy file named 'D' -- because '-MD' means "put the output
|
---|
12010 | # in D".
|
---|
12011 | rm -rf conftest.dir
|
---|
12012 | mkdir conftest.dir
|
---|
12013 | # Copy depcomp to subdir because otherwise we won't find it if we're
|
---|
12014 | # using a relative directory.
|
---|
12015 | cp "$am_depcomp" conftest.dir
|
---|
12016 | cd conftest.dir
|
---|
12017 | # We will build objects and dependencies in a subdirectory because
|
---|
12018 | # it helps to detect inapplicable dependency modes. For instance
|
---|
12019 | # both Tru64's cc and ICC support -MD to output dependencies as a
|
---|
12020 | # side effect of compilation, but ICC will put the dependencies in
|
---|
12021 | # the current directory while Tru64 will put them in the object
|
---|
12022 | # directory.
|
---|
12023 | mkdir sub
|
---|
12024 |
|
---|
12025 | am_cv_CC_dependencies_compiler_type=none
|
---|
12026 | if test "$am_compiler_list" = ""; then
|
---|
12027 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
|
---|
12028 | fi
|
---|
12029 | am__universal=false
|
---|
12030 | case " $depcc " in #(
|
---|
12031 | *\ -arch\ *\ -arch\ *) am__universal=true ;;
|
---|
12032 | esac
|
---|
12033 |
|
---|
12034 | for depmode in $am_compiler_list; do
|
---|
12035 | # Setup a source with many dependencies, because some compilers
|
---|
12036 | # like to wrap large dependency lists on column 80 (with \), and
|
---|
12037 | # we should not choose a depcomp mode which is confused by this.
|
---|
12038 | #
|
---|
12039 | # We need to recreate these files for each test, as the compiler may
|
---|
12040 | # overwrite some of them when testing with obscure command lines.
|
---|
12041 | # This happens at least with the AIX C compiler.
|
---|
12042 | : > sub/conftest.c
|
---|
12043 | for i in 1 2 3 4 5 6; do
|
---|
12044 | echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
---|
12045 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
|
---|
12046 | # Solaris 10 /bin/sh.
|
---|
12047 | echo '/* dummy */' > sub/conftst$i.h
|
---|
12048 | done
|
---|
12049 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
---|
12050 |
|
---|
12051 | # We check with '-c' and '-o' for the sake of the "dashmstdout"
|
---|
12052 | # mode. It turns out that the SunPro C++ compiler does not properly
|
---|
12053 | # handle '-M -o', and we need to detect this. Also, some Intel
|
---|
12054 | # versions had trouble with output in subdirs.
|
---|
12055 | am__obj=sub/conftest.${OBJEXT-o}
|
---|
12056 | am__minus_obj="-o $am__obj"
|
---|
12057 | case $depmode in
|
---|
12058 | gcc)
|
---|
12059 | # This depmode causes a compiler race in universal mode.
|
---|
12060 | test "$am__universal" = false || continue
|
---|
12061 | ;;
|
---|
12062 | nosideeffect)
|
---|
12063 | # After this tag, mechanisms are not by side-effect, so they'll
|
---|
12064 | # only be used when explicitly requested.
|
---|
12065 | if test "x$enable_dependency_tracking" = xyes; then
|
---|
12066 | continue
|
---|
12067 | else
|
---|
12068 | break
|
---|
12069 | fi
|
---|
12070 | ;;
|
---|
12071 | msvc7 | msvc7msys | msvisualcpp | msvcmsys)
|
---|
12072 | # This compiler won't grok '-c -o', but also, the minuso test has
|
---|
12073 | # not run yet. These depmodes are late enough in the game, and
|
---|
12074 | # so weak that their functioning should not be impacted.
|
---|
12075 | am__obj=conftest.${OBJEXT-o}
|
---|
12076 | am__minus_obj=
|
---|
12077 | ;;
|
---|
12078 | none) break ;;
|
---|
12079 | esac
|
---|
12080 | if depmode=$depmode \
|
---|
12081 | source=sub/conftest.c object=$am__obj \
|
---|
12082 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
---|
12083 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
|
---|
12084 | >/dev/null 2>conftest.err &&
|
---|
12085 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
|
---|
12086 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
---|
12087 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
|
---|
12088 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
---|
12089 | # icc doesn't choke on unknown options, it will just issue warnings
|
---|
12090 | # or remarks (even with -Werror). So we grep stderr for any message
|
---|
12091 | # that says an option was ignored or not supported.
|
---|
12092 | # When given -MP, icc 7.0 and 7.1 complain thusly:
|
---|
12093 | # icc: Command line warning: ignoring option '-M'; no argument required
|
---|
12094 | # The diagnosis changed in icc 8.0:
|
---|
12095 | # icc: Command line remark: option '-MP' not supported
|
---|
12096 | if (grep 'ignoring option' conftest.err ||
|
---|
12097 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
---|
12098 | am_cv_CC_dependencies_compiler_type=$depmode
|
---|
12099 | break
|
---|
12100 | fi
|
---|
12101 | fi
|
---|
12102 | done
|
---|
12103 |
|
---|
12104 | cd ..
|
---|
12105 | rm -rf conftest.dir
|
---|
12106 | else
|
---|
12107 | am_cv_CC_dependencies_compiler_type=none
|
---|
12108 | fi
|
---|
12109 |
|
---|
12110 | fi
|
---|
12111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
|
---|
12112 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
|
---|
12113 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
|
---|
12114 |
|
---|
12115 | if
|
---|
12116 | test "x$enable_dependency_tracking" != xno \
|
---|
12117 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
|
---|
12118 | am__fastdepCC_TRUE=
|
---|
12119 | am__fastdepCC_FALSE='#'
|
---|
12120 | else
|
---|
12121 | am__fastdepCC_TRUE='#'
|
---|
12122 | am__fastdepCC_FALSE=
|
---|
12123 | fi
|
---|
12124 |
|
---|
12125 |
|
---|
12126 |
|
---|
12127 | # POSIX will say in a future version that running "rm -f" with no argument
|
---|
12128 | # is OK; and we want to be able to make that assumption in our Makefile
|
---|
12129 | # recipes. So use an aggressive probe to check that the usage we want is
|
---|
12130 | # actually supported "in the wild" to an acceptable degree.
|
---|
12131 | # See automake bug#10828.
|
---|
12132 | # To make any issue more visible, cause the running configure to be aborted
|
---|
12133 | # by default if the 'rm' program in use doesn't match our expectations; the
|
---|
12134 | # user can still override this though.
|
---|
12135 | if rm -f && rm -fr && rm -rf; then : OK; else
|
---|
12136 | cat >&2 <<'END'
|
---|
12137 | Oops!
|
---|
12138 |
|
---|
12139 | Your 'rm' program seems unable to run without file operands specified
|
---|
12140 | on the command line, even when the '-f' option is present. This is contrary
|
---|
12141 | to the behaviour of most rm programs out there, and not conforming with
|
---|
12142 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
|
---|
12143 |
|
---|
12144 | Please tell [email protected] about your system, including the value
|
---|
12145 | of your $PATH and any error possibly output before this message. This
|
---|
12146 | can help us improve future automake versions.
|
---|
12147 |
|
---|
12148 | END
|
---|
12149 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
|
---|
12150 | echo 'Configuration will proceed anyway, since you have set the' >&2
|
---|
12151 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
|
---|
12152 | echo >&2
|
---|
12153 | else
|
---|
12154 | cat >&2 <<'END'
|
---|
12155 | Aborting the configuration process, to ensure you take notice of the issue.
|
---|
12156 |
|
---|
12157 | You can download and install GNU coreutils to get an 'rm' implementation
|
---|
12158 | that behaves properly: <https://www.gnu.org/software/coreutils/>.
|
---|
12159 |
|
---|
12160 | If you want to complete the configuration process using your problematic
|
---|
12161 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
|
---|
12162 | to "yes", and re-run configure.
|
---|
12163 |
|
---|
12164 | END
|
---|
12165 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
|
---|
12166 | fi
|
---|
12167 | fi
|
---|
12168 |
|
---|
12169 |
|
---|
12170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
|
---|
12171 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
|
---|
12172 | # Check whether --enable-maintainer-mode was given.
|
---|
12173 | if test "${enable_maintainer_mode+set}" = set; then :
|
---|
12174 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
|
---|
12175 | else
|
---|
12176 | USE_MAINTAINER_MODE=yes
|
---|
12177 | fi
|
---|
12178 |
|
---|
12179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
|
---|
12180 | $as_echo "$USE_MAINTAINER_MODE" >&6; }
|
---|
12181 | if test $USE_MAINTAINER_MODE = yes; then
|
---|
12182 | MAINTAINER_MODE_TRUE=
|
---|
12183 | MAINTAINER_MODE_FALSE='#'
|
---|
12184 | else
|
---|
12185 | MAINTAINER_MODE_TRUE='#'
|
---|
12186 | MAINTAINER_MODE_FALSE=
|
---|
12187 | fi
|
---|
12188 |
|
---|
12189 | MAINT=$MAINTAINER_MODE_TRUE
|
---|
12190 |
|
---|
12191 |
|
---|
12192 |
|
---|
12193 |
|
---|
12194 | LIB_CURRENT=8
|
---|
12195 | LIB_REVISION=5
|
---|
12196 | LIB_AGE=8
|
---|
12197 |
|
---|
12198 |
|
---|
12199 |
|
---|
12200 |
|
---|
12201 | ac_ext=c
|
---|
12202 | ac_cpp='$CPP $CPPFLAGS'
|
---|
12203 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
12204 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
12205 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
12206 | if test -n "$ac_tool_prefix"; then
|
---|
12207 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
12208 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
12209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
12210 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
12211 | if ${ac_cv_prog_CC+:} false; then :
|
---|
12212 | $as_echo_n "(cached) " >&6
|
---|
12213 | else
|
---|
12214 | if test -n "$CC"; then
|
---|
12215 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
12216 | else
|
---|
12217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
12218 | for as_dir in $PATH
|
---|
12219 | do
|
---|
12220 | IFS=$as_save_IFS
|
---|
12221 | test -z "$as_dir" && as_dir=.
|
---|
12222 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
12223 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
12224 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
12225 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
12226 | break 2
|
---|
12227 | fi
|
---|
12228 | done
|
---|
12229 | done
|
---|
12230 | IFS=$as_save_IFS
|
---|
12231 |
|
---|
12232 | fi
|
---|
12233 | fi
|
---|
12234 | CC=$ac_cv_prog_CC
|
---|
12235 | if test -n "$CC"; then
|
---|
12236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
12237 | $as_echo "$CC" >&6; }
|
---|
12238 | else
|
---|
12239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
12240 | $as_echo "no" >&6; }
|
---|
12241 | fi
|
---|
12242 |
|
---|
12243 |
|
---|
12244 | fi
|
---|
12245 | if test -z "$ac_cv_prog_CC"; then
|
---|
12246 | ac_ct_CC=$CC
|
---|
12247 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
12248 | set dummy gcc; ac_word=$2
|
---|
12249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
12250 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
12251 | if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
---|
12252 | $as_echo_n "(cached) " >&6
|
---|
12253 | else
|
---|
12254 | if test -n "$ac_ct_CC"; then
|
---|
12255 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
12256 | else
|
---|
12257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
12258 | for as_dir in $PATH
|
---|
12259 | do
|
---|
12260 | IFS=$as_save_IFS
|
---|
12261 | test -z "$as_dir" && as_dir=.
|
---|
12262 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
12263 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
12264 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
12265 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
12266 | break 2
|
---|
12267 | fi
|
---|
12268 | done
|
---|
12269 | done
|
---|
12270 | IFS=$as_save_IFS
|
---|
12271 |
|
---|
12272 | fi
|
---|
12273 | fi
|
---|
12274 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
12275 | if test -n "$ac_ct_CC"; then
|
---|
12276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
12277 | $as_echo "$ac_ct_CC" >&6; }
|
---|
12278 | else
|
---|
12279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
12280 | $as_echo "no" >&6; }
|
---|
12281 | fi
|
---|
12282 |
|
---|
12283 | if test "x$ac_ct_CC" = x; then
|
---|
12284 | CC=""
|
---|
12285 | else
|
---|
12286 | case $cross_compiling:$ac_tool_warned in
|
---|
12287 | yes:)
|
---|
12288 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
12289 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
12290 | ac_tool_warned=yes ;;
|
---|
12291 | esac
|
---|
12292 | CC=$ac_ct_CC
|
---|
12293 | fi
|
---|
12294 | else
|
---|
12295 | CC="$ac_cv_prog_CC"
|
---|
12296 | fi
|
---|
12297 |
|
---|
12298 | if test -z "$CC"; then
|
---|
12299 | if test -n "$ac_tool_prefix"; then
|
---|
12300 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
12301 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
12302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
12303 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
12304 | if ${ac_cv_prog_CC+:} false; then :
|
---|
12305 | $as_echo_n "(cached) " >&6
|
---|
12306 | else
|
---|
12307 | if test -n "$CC"; then
|
---|
12308 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
12309 | else
|
---|
12310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
12311 | for as_dir in $PATH
|
---|
12312 | do
|
---|
12313 | IFS=$as_save_IFS
|
---|
12314 | test -z "$as_dir" && as_dir=.
|
---|
12315 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
12316 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
12317 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
12318 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
12319 | break 2
|
---|
12320 | fi
|
---|
12321 | done
|
---|
12322 | done
|
---|
12323 | IFS=$as_save_IFS
|
---|
12324 |
|
---|
12325 | fi
|
---|
12326 | fi
|
---|
12327 | CC=$ac_cv_prog_CC
|
---|
12328 | if test -n "$CC"; then
|
---|
12329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
12330 | $as_echo "$CC" >&6; }
|
---|
12331 | else
|
---|
12332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
12333 | $as_echo "no" >&6; }
|
---|
12334 | fi
|
---|
12335 |
|
---|
12336 |
|
---|
12337 | fi
|
---|
12338 | fi
|
---|
12339 | if test -z "$CC"; then
|
---|
12340 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
12341 | set dummy cc; ac_word=$2
|
---|
12342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
12343 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
12344 | if ${ac_cv_prog_CC+:} false; then :
|
---|
12345 | $as_echo_n "(cached) " >&6
|
---|
12346 | else
|
---|
12347 | if test -n "$CC"; then
|
---|
12348 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
12349 | else
|
---|
12350 | ac_prog_rejected=no
|
---|
12351 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
12352 | for as_dir in $PATH
|
---|
12353 | do
|
---|
12354 | IFS=$as_save_IFS
|
---|
12355 | test -z "$as_dir" && as_dir=.
|
---|
12356 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
12357 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
12358 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
12359 | ac_prog_rejected=yes
|
---|
12360 | continue
|
---|
12361 | fi
|
---|
12362 | ac_cv_prog_CC="cc"
|
---|
12363 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
12364 | break 2
|
---|
12365 | fi
|
---|
12366 | done
|
---|
12367 | done
|
---|
12368 | IFS=$as_save_IFS
|
---|
12369 |
|
---|
12370 | if test $ac_prog_rejected = yes; then
|
---|
12371 | # We found a bogon in the path, so make sure we never use it.
|
---|
12372 | set dummy $ac_cv_prog_CC
|
---|
12373 | shift
|
---|
12374 | if test $# != 0; then
|
---|
12375 | # We chose a different compiler from the bogus one.
|
---|
12376 | # However, it has the same basename, so the bogon will be chosen
|
---|
12377 | # first if we set CC to just the basename; use the full file name.
|
---|
12378 | shift
|
---|
12379 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
12380 | fi
|
---|
12381 | fi
|
---|
12382 | fi
|
---|
12383 | fi
|
---|
12384 | CC=$ac_cv_prog_CC
|
---|
12385 | if test -n "$CC"; then
|
---|
12386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
12387 | $as_echo "$CC" >&6; }
|
---|
12388 | else
|
---|
12389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
12390 | $as_echo "no" >&6; }
|
---|
12391 | fi
|
---|
12392 |
|
---|
12393 |
|
---|
12394 | fi
|
---|
12395 | if test -z "$CC"; then
|
---|
12396 | if test -n "$ac_tool_prefix"; then
|
---|
12397 | for ac_prog in cl.exe
|
---|
12398 | do
|
---|
12399 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
12400 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
12401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
12402 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
12403 | if ${ac_cv_prog_CC+:} false; then :
|
---|
12404 | $as_echo_n "(cached) " >&6
|
---|
12405 | else
|
---|
12406 | if test -n "$CC"; then
|
---|
12407 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
12408 | else
|
---|
12409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
12410 | for as_dir in $PATH
|
---|
12411 | do
|
---|
12412 | IFS=$as_save_IFS
|
---|
12413 | test -z "$as_dir" && as_dir=.
|
---|
12414 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
12415 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
12416 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
12417 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
12418 | break 2
|
---|
12419 | fi
|
---|
12420 | done
|
---|
12421 | done
|
---|
12422 | IFS=$as_save_IFS
|
---|
12423 |
|
---|
12424 | fi
|
---|
12425 | fi
|
---|
12426 | CC=$ac_cv_prog_CC
|
---|
12427 | if test -n "$CC"; then
|
---|
12428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
12429 | $as_echo "$CC" >&6; }
|
---|
12430 | else
|
---|
12431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
12432 | $as_echo "no" >&6; }
|
---|
12433 | fi
|
---|
12434 |
|
---|
12435 |
|
---|
12436 | test -n "$CC" && break
|
---|
12437 | done
|
---|
12438 | fi
|
---|
12439 | if test -z "$CC"; then
|
---|
12440 | ac_ct_CC=$CC
|
---|
12441 | for ac_prog in cl.exe
|
---|
12442 | do
|
---|
12443 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
12444 | set dummy $ac_prog; ac_word=$2
|
---|
12445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
12446 | $as_echo_n "checking for $ac_word... " >&6; }
|
---|
12447 | if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
---|
12448 | $as_echo_n "(cached) " >&6
|
---|
12449 | else
|
---|
12450 | if test -n "$ac_ct_CC"; then
|
---|
12451 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
12452 | else
|
---|
12453 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
12454 | for as_dir in $PATH
|
---|
12455 | do
|
---|
12456 | IFS=$as_save_IFS
|
---|
12457 | test -z "$as_dir" && as_dir=.
|
---|
12458 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
12459 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
12460 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
12461 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
12462 | break 2
|
---|
12463 | fi
|
---|
12464 | done
|
---|
12465 | done
|
---|
12466 | IFS=$as_save_IFS
|
---|
12467 |
|
---|
12468 | fi
|
---|
12469 | fi
|
---|
12470 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
12471 | if test -n "$ac_ct_CC"; then
|
---|
12472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
12473 | $as_echo "$ac_ct_CC" >&6; }
|
---|
12474 | else
|
---|
12475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
12476 | $as_echo "no" >&6; }
|
---|
12477 | fi
|
---|
12478 |
|
---|
12479 |
|
---|
12480 | test -n "$ac_ct_CC" && break
|
---|
12481 | done
|
---|
12482 |
|
---|
12483 | if test "x$ac_ct_CC" = x; then
|
---|
12484 | CC=""
|
---|
12485 | else
|
---|
12486 | case $cross_compiling:$ac_tool_warned in
|
---|
12487 | yes:)
|
---|
12488 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
12489 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
12490 | ac_tool_warned=yes ;;
|
---|
12491 | esac
|
---|
12492 | CC=$ac_ct_CC
|
---|
12493 | fi
|
---|
12494 | fi
|
---|
12495 |
|
---|
12496 | fi
|
---|
12497 |
|
---|
12498 |
|
---|
12499 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
12500 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
12501 | as_fn_error $? "no acceptable C compiler found in \$PATH
|
---|
12502 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
12503 |
|
---|
12504 | # Provide some information about the compiler.
|
---|
12505 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
---|
12506 | set X $ac_compile
|
---|
12507 | ac_compiler=$2
|
---|
12508 | for ac_option in --version -v -V -qversion; do
|
---|
12509 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
12510 | case "(($ac_try" in
|
---|
12511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
12512 | *) ac_try_echo=$ac_try;;
|
---|
12513 | esac
|
---|
12514 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
12515 | $as_echo "$ac_try_echo"; } >&5
|
---|
12516 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
---|
12517 | ac_status=$?
|
---|
12518 | if test -s conftest.err; then
|
---|
12519 | sed '10a\
|
---|
12520 | ... rest of stderr output deleted ...
|
---|
12521 | 10q' conftest.err >conftest.er1
|
---|
12522 | cat conftest.er1 >&5
|
---|
12523 | fi
|
---|
12524 | rm -f conftest.er1 conftest.err
|
---|
12525 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
12526 | test $ac_status = 0; }
|
---|
12527 | done
|
---|
12528 |
|
---|
12529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
|
---|
12530 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
|
---|
12531 | if ${ac_cv_c_compiler_gnu+:} false; then :
|
---|
12532 | $as_echo_n "(cached) " >&6
|
---|
12533 | else
|
---|
12534 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
12535 | /* end confdefs.h. */
|
---|
12536 |
|
---|
12537 | int
|
---|
12538 | main ()
|
---|
12539 | {
|
---|
12540 | #ifndef __GNUC__
|
---|
12541 | choke me
|
---|
12542 | #endif
|
---|
12543 |
|
---|
12544 | ;
|
---|
12545 | return 0;
|
---|
12546 | }
|
---|
12547 | _ACEOF
|
---|
12548 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
12549 | ac_compiler_gnu=yes
|
---|
12550 | else
|
---|
12551 | ac_compiler_gnu=no
|
---|
12552 | fi
|
---|
12553 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
12554 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
12555 |
|
---|
12556 | fi
|
---|
12557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
|
---|
12558 | $as_echo "$ac_cv_c_compiler_gnu" >&6; }
|
---|
12559 | if test $ac_compiler_gnu = yes; then
|
---|
12560 | GCC=yes
|
---|
12561 | else
|
---|
12562 | GCC=
|
---|
12563 | fi
|
---|
12564 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
12565 | ac_save_CFLAGS=$CFLAGS
|
---|
12566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
|
---|
12567 | $as_echo_n "checking whether $CC accepts -g... " >&6; }
|
---|
12568 | if ${ac_cv_prog_cc_g+:} false; then :
|
---|
12569 | $as_echo_n "(cached) " >&6
|
---|
12570 | else
|
---|
12571 | ac_save_c_werror_flag=$ac_c_werror_flag
|
---|
12572 | ac_c_werror_flag=yes
|
---|
12573 | ac_cv_prog_cc_g=no
|
---|
12574 | CFLAGS="-g"
|
---|
12575 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
12576 | /* end confdefs.h. */
|
---|
12577 |
|
---|
12578 | int
|
---|
12579 | main ()
|
---|
12580 | {
|
---|
12581 |
|
---|
12582 | ;
|
---|
12583 | return 0;
|
---|
12584 | }
|
---|
12585 | _ACEOF
|
---|
12586 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
12587 | ac_cv_prog_cc_g=yes
|
---|
12588 | else
|
---|
12589 | CFLAGS=""
|
---|
12590 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
12591 | /* end confdefs.h. */
|
---|
12592 |
|
---|
12593 | int
|
---|
12594 | main ()
|
---|
12595 | {
|
---|
12596 |
|
---|
12597 | ;
|
---|
12598 | return 0;
|
---|
12599 | }
|
---|
12600 | _ACEOF
|
---|
12601 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
12602 |
|
---|
12603 | else
|
---|
12604 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
12605 | CFLAGS="-g"
|
---|
12606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
12607 | /* end confdefs.h. */
|
---|
12608 |
|
---|
12609 | int
|
---|
12610 | main ()
|
---|
12611 | {
|
---|
12612 |
|
---|
12613 | ;
|
---|
12614 | return 0;
|
---|
12615 | }
|
---|
12616 | _ACEOF
|
---|
12617 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
12618 | ac_cv_prog_cc_g=yes
|
---|
12619 | fi
|
---|
12620 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
12621 | fi
|
---|
12622 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
12623 | fi
|
---|
12624 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
12625 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
12626 | fi
|
---|
12627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
|
---|
12628 | $as_echo "$ac_cv_prog_cc_g" >&6; }
|
---|
12629 | if test "$ac_test_CFLAGS" = set; then
|
---|
12630 | CFLAGS=$ac_save_CFLAGS
|
---|
12631 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
12632 | if test "$GCC" = yes; then
|
---|
12633 | CFLAGS="-g -O2"
|
---|
12634 | else
|
---|
12635 | CFLAGS="-g"
|
---|
12636 | fi
|
---|
12637 | else
|
---|
12638 | if test "$GCC" = yes; then
|
---|
12639 | CFLAGS="-O2"
|
---|
12640 | else
|
---|
12641 | CFLAGS=
|
---|
12642 | fi
|
---|
12643 | fi
|
---|
12644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
|
---|
12645 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
|
---|
12646 | if ${ac_cv_prog_cc_c89+:} false; then :
|
---|
12647 | $as_echo_n "(cached) " >&6
|
---|
12648 | else
|
---|
12649 | ac_cv_prog_cc_c89=no
|
---|
12650 | ac_save_CC=$CC
|
---|
12651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
12652 | /* end confdefs.h. */
|
---|
12653 | #include <stdarg.h>
|
---|
12654 | #include <stdio.h>
|
---|
12655 | struct stat;
|
---|
12656 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
12657 | struct buf { int x; };
|
---|
12658 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
12659 | static char *e (p, i)
|
---|
12660 | char **p;
|
---|
12661 | int i;
|
---|
12662 | {
|
---|
12663 | return p[i];
|
---|
12664 | }
|
---|
12665 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
12666 | {
|
---|
12667 | char *s;
|
---|
12668 | va_list v;
|
---|
12669 | va_start (v,p);
|
---|
12670 | s = g (p, va_arg (v,int));
|
---|
12671 | va_end (v);
|
---|
12672 | return s;
|
---|
12673 | }
|
---|
12674 |
|
---|
12675 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
12676 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
12677 | These don't provoke an error unfortunately, instead are silently treated
|
---|
12678 | as 'x'. The following induces an error, until -std is added to get
|
---|
12679 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
12680 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
12681 | that's true only with -std. */
|
---|
12682 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
12683 |
|
---|
12684 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
---|
12685 | inside strings and character constants. */
|
---|
12686 | #define FOO(x) 'x'
|
---|
12687 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
---|
12688 |
|
---|
12689 | int test (int i, double x);
|
---|
12690 | struct s1 {int (*f) (int a);};
|
---|
12691 | struct s2 {int (*f) (double a);};
|
---|
12692 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
12693 | int argc;
|
---|
12694 | char **argv;
|
---|
12695 | int
|
---|
12696 | main ()
|
---|
12697 | {
|
---|
12698 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
12699 | ;
|
---|
12700 | return 0;
|
---|
12701 | }
|
---|
12702 | _ACEOF
|
---|
12703 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
---|
12704 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
12705 | do
|
---|
12706 | CC="$ac_save_CC $ac_arg"
|
---|
12707 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
12708 | ac_cv_prog_cc_c89=$ac_arg
|
---|
12709 | fi
|
---|
12710 | rm -f core conftest.err conftest.$ac_objext
|
---|
12711 | test "x$ac_cv_prog_cc_c89" != "xno" && break
|
---|
12712 | done
|
---|
12713 | rm -f conftest.$ac_ext
|
---|
12714 | CC=$ac_save_CC
|
---|
12715 |
|
---|
12716 | fi
|
---|
12717 | # AC_CACHE_VAL
|
---|
12718 | case "x$ac_cv_prog_cc_c89" in
|
---|
12719 | x)
|
---|
12720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
---|
12721 | $as_echo "none needed" >&6; } ;;
|
---|
12722 | xno)
|
---|
12723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
---|
12724 | $as_echo "unsupported" >&6; } ;;
|
---|
12725 | *)
|
---|
12726 | CC="$CC $ac_cv_prog_cc_c89"
|
---|
12727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
---|
12728 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
|
---|
12729 | esac
|
---|
12730 | if test "x$ac_cv_prog_cc_c89" != xno; then :
|
---|
12731 |
|
---|
12732 | fi
|
---|
12733 |
|
---|
12734 | ac_ext=c
|
---|
12735 | ac_cpp='$CPP $CPPFLAGS'
|
---|
12736 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
12737 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
12738 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
12739 |
|
---|
12740 | ac_ext=c
|
---|
12741 | ac_cpp='$CPP $CPPFLAGS'
|
---|
12742 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
12743 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
12744 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
12745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
|
---|
12746 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
|
---|
12747 | if ${am_cv_prog_cc_c_o+:} false; then :
|
---|
12748 | $as_echo_n "(cached) " >&6
|
---|
12749 | else
|
---|
12750 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
12751 | /* end confdefs.h. */
|
---|
12752 |
|
---|
12753 | int
|
---|
12754 | main ()
|
---|
12755 | {
|
---|
12756 |
|
---|
12757 | ;
|
---|
12758 | return 0;
|
---|
12759 | }
|
---|
12760 | _ACEOF
|
---|
12761 | # Make sure it works both with $CC and with simple cc.
|
---|
12762 | # Following AC_PROG_CC_C_O, we do the test twice because some
|
---|
12763 | # compilers refuse to overwrite an existing .o file with -o,
|
---|
12764 | # though they will create one.
|
---|
12765 | am_cv_prog_cc_c_o=yes
|
---|
12766 | for am_i in 1 2; do
|
---|
12767 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
|
---|
12768 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
|
---|
12769 | ac_status=$?
|
---|
12770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
12771 | (exit $ac_status); } \
|
---|
12772 | && test -f conftest2.$ac_objext; then
|
---|
12773 | : OK
|
---|
12774 | else
|
---|
12775 | am_cv_prog_cc_c_o=no
|
---|
12776 | break
|
---|
12777 | fi
|
---|
12778 | done
|
---|
12779 | rm -f core conftest*
|
---|
12780 | unset am_i
|
---|
12781 | fi
|
---|
12782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
|
---|
12783 | $as_echo "$am_cv_prog_cc_c_o" >&6; }
|
---|
12784 | if test "$am_cv_prog_cc_c_o" != yes; then
|
---|
12785 | # Losing compiler, so override with the script.
|
---|
12786 | # FIXME: It is wrong to rewrite CC.
|
---|
12787 | # But if we don't then we get into trouble of one sort or another.
|
---|
12788 | # A longer-term fix would be to have automake use am__CC in this case,
|
---|
12789 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
|
---|
12790 | CC="$am_aux_dir/compile $CC"
|
---|
12791 | fi
|
---|
12792 | ac_ext=c
|
---|
12793 | ac_cpp='$CPP $CPPFLAGS'
|
---|
12794 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
12795 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
12796 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
12797 |
|
---|
12798 |
|
---|
12799 |
|
---|
12800 |
|
---|
12801 |
|
---|
12802 | cflags_save="$CFLAGS"
|
---|
12803 | if test -z "$GCC"; then
|
---|
12804 | case $host in
|
---|
12805 | *-*-irix*)
|
---|
12806 | DEBUG="-g -signed"
|
---|
12807 | CFLAGS="-O2 -w -signed"
|
---|
12808 | PROFILE="-p -g3 -O2 -signed"
|
---|
12809 | ;;
|
---|
12810 | sparc-sun-solaris*)
|
---|
12811 | DEBUG="-v -g"
|
---|
12812 | CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
|
---|
12813 | PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc"
|
---|
12814 | ;;
|
---|
12815 | *)
|
---|
12816 | DEBUG="-g"
|
---|
12817 | CFLAGS="-O"
|
---|
12818 | PROFILE="-g -p"
|
---|
12819 | ;;
|
---|
12820 | esac
|
---|
12821 | else
|
---|
12822 | case $host in
|
---|
12823 | *-*-linux*)
|
---|
12824 | DEBUG="-g -Wall -fsigned-char"
|
---|
12825 | CFLAGS="-O2 -Wall -ffast-math -fsigned-char"
|
---|
12826 | PROFILE="-Wall -W -pg -g -O2 -ffast-math -fsigned-char"
|
---|
12827 | ;;
|
---|
12828 | sparc-sun-*)
|
---|
12829 | DEBUG="-g -Wall -fsigned-char"
|
---|
12830 | CFLAGS="-O2 -ffast-math -fsigned-char"
|
---|
12831 | PROFILE="-pg -g -O2 -fsigned-char"
|
---|
12832 | ;;
|
---|
12833 | *-*-darwin*)
|
---|
12834 | DEBUG="-fno-common -g -Wall -fsigned-char"
|
---|
12835 | CFLAGS="-fno-common -O4 -Wall -fsigned-char -ffast-math"
|
---|
12836 | PROFILE="-fno-common -O4 -Wall -pg -g -fsigned-char -ffast-math"
|
---|
12837 | ;;
|
---|
12838 | *)
|
---|
12839 | DEBUG="-g -Wall -fsigned-char"
|
---|
12840 | CFLAGS="-O2 -fsigned-char"
|
---|
12841 | PROFILE="-O2 -g -pg -fsigned-char"
|
---|
12842 | ;;
|
---|
12843 | esac
|
---|
12844 | fi
|
---|
12845 | CFLAGS="$CFLAGS $cflags_save"
|
---|
12846 | DEBUG="$DEBUG $cflags_save"
|
---|
12847 | PROFILE="$PROFILE $cflags_save"
|
---|
12848 |
|
---|
12849 |
|
---|
12850 |
|
---|
12851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
---|
12852 | $as_echo_n "checking for ANSI C header files... " >&6; }
|
---|
12853 | if ${ac_cv_header_stdc+:} false; then :
|
---|
12854 | $as_echo_n "(cached) " >&6
|
---|
12855 | else
|
---|
12856 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
12857 | /* end confdefs.h. */
|
---|
12858 | #include <stdlib.h>
|
---|
12859 | #include <stdarg.h>
|
---|
12860 | #include <string.h>
|
---|
12861 | #include <float.h>
|
---|
12862 |
|
---|
12863 | int
|
---|
12864 | main ()
|
---|
12865 | {
|
---|
12866 |
|
---|
12867 | ;
|
---|
12868 | return 0;
|
---|
12869 | }
|
---|
12870 | _ACEOF
|
---|
12871 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
12872 | ac_cv_header_stdc=yes
|
---|
12873 | else
|
---|
12874 | ac_cv_header_stdc=no
|
---|
12875 | fi
|
---|
12876 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
12877 |
|
---|
12878 | if test $ac_cv_header_stdc = yes; then
|
---|
12879 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
12880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
12881 | /* end confdefs.h. */
|
---|
12882 | #include <string.h>
|
---|
12883 |
|
---|
12884 | _ACEOF
|
---|
12885 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
12886 | $EGREP "memchr" >/dev/null 2>&1; then :
|
---|
12887 |
|
---|
12888 | else
|
---|
12889 | ac_cv_header_stdc=no
|
---|
12890 | fi
|
---|
12891 | rm -f conftest*
|
---|
12892 |
|
---|
12893 | fi
|
---|
12894 |
|
---|
12895 | if test $ac_cv_header_stdc = yes; then
|
---|
12896 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
12897 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
12898 | /* end confdefs.h. */
|
---|
12899 | #include <stdlib.h>
|
---|
12900 |
|
---|
12901 | _ACEOF
|
---|
12902 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
12903 | $EGREP "free" >/dev/null 2>&1; then :
|
---|
12904 |
|
---|
12905 | else
|
---|
12906 | ac_cv_header_stdc=no
|
---|
12907 | fi
|
---|
12908 | rm -f conftest*
|
---|
12909 |
|
---|
12910 | fi
|
---|
12911 |
|
---|
12912 | if test $ac_cv_header_stdc = yes; then
|
---|
12913 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
12914 | if test "$cross_compiling" = yes; then :
|
---|
12915 | :
|
---|
12916 | else
|
---|
12917 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
12918 | /* end confdefs.h. */
|
---|
12919 | #include <ctype.h>
|
---|
12920 | #include <stdlib.h>
|
---|
12921 | #if ((' ' & 0x0FF) == 0x020)
|
---|
12922 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
12923 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
12924 | #else
|
---|
12925 | # define ISLOWER(c) \
|
---|
12926 | (('a' <= (c) && (c) <= 'i') \
|
---|
12927 | || ('j' <= (c) && (c) <= 'r') \
|
---|
12928 | || ('s' <= (c) && (c) <= 'z'))
|
---|
12929 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
12930 | #endif
|
---|
12931 |
|
---|
12932 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
12933 | int
|
---|
12934 | main ()
|
---|
12935 | {
|
---|
12936 | int i;
|
---|
12937 | for (i = 0; i < 256; i++)
|
---|
12938 | if (XOR (islower (i), ISLOWER (i))
|
---|
12939 | || toupper (i) != TOUPPER (i))
|
---|
12940 | return 2;
|
---|
12941 | return 0;
|
---|
12942 | }
|
---|
12943 | _ACEOF
|
---|
12944 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
12945 |
|
---|
12946 | else
|
---|
12947 | ac_cv_header_stdc=no
|
---|
12948 | fi
|
---|
12949 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
12950 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
12951 | fi
|
---|
12952 |
|
---|
12953 | fi
|
---|
12954 | fi
|
---|
12955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
---|
12956 | $as_echo "$ac_cv_header_stdc" >&6; }
|
---|
12957 | if test $ac_cv_header_stdc = yes; then
|
---|
12958 |
|
---|
12959 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
---|
12960 |
|
---|
12961 | fi
|
---|
12962 |
|
---|
12963 | INCLUDE_INTTYPES_H=0
|
---|
12964 | INCLUDE_STDINT_H=0
|
---|
12965 | INCLUDE_SYS_TYPES_H=0
|
---|
12966 | ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
|
---|
12967 | if test "x$ac_cv_header_inttypes_h" = xyes; then :
|
---|
12968 | INCLUDE_INTTYPES_H=1
|
---|
12969 | fi
|
---|
12970 |
|
---|
12971 |
|
---|
12972 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
|
---|
12973 | if test "x$ac_cv_header_stdint_h" = xyes; then :
|
---|
12974 | INCLUDE_STDINT_H=1
|
---|
12975 | fi
|
---|
12976 |
|
---|
12977 |
|
---|
12978 | ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
|
---|
12979 | if test "x$ac_cv_header_sys_types_h" = xyes; then :
|
---|
12980 | INCLUDE_SYS_TYPES_H=1
|
---|
12981 | fi
|
---|
12982 |
|
---|
12983 |
|
---|
12984 |
|
---|
12985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
|
---|
12986 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
|
---|
12987 | if ${ac_cv_c_const+:} false; then :
|
---|
12988 | $as_echo_n "(cached) " >&6
|
---|
12989 | else
|
---|
12990 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
12991 | /* end confdefs.h. */
|
---|
12992 |
|
---|
12993 | int
|
---|
12994 | main ()
|
---|
12995 | {
|
---|
12996 |
|
---|
12997 | #ifndef __cplusplus
|
---|
12998 | /* Ultrix mips cc rejects this sort of thing. */
|
---|
12999 | typedef int charset[2];
|
---|
13000 | const charset cs = { 0, 0 };
|
---|
13001 | /* SunOS 4.1.1 cc rejects this. */
|
---|
13002 | char const *const *pcpcc;
|
---|
13003 | char **ppc;
|
---|
13004 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
13005 | struct point {int x, y;};
|
---|
13006 | static struct point const zero = {0,0};
|
---|
13007 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
13008 | It does not let you subtract one const X* pointer from another in
|
---|
13009 | an arm of an if-expression whose if-part is not a constant
|
---|
13010 | expression */
|
---|
13011 | const char *g = "string";
|
---|
13012 | pcpcc = &g + (g ? g-g : 0);
|
---|
13013 | /* HPUX 7.0 cc rejects these. */
|
---|
13014 | ++pcpcc;
|
---|
13015 | ppc = (char**) pcpcc;
|
---|
13016 | pcpcc = (char const *const *) ppc;
|
---|
13017 | { /* SCO 3.2v4 cc rejects this sort of thing. */
|
---|
13018 | char tx;
|
---|
13019 | char *t = &tx;
|
---|
13020 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
13021 |
|
---|
13022 | *t++ = 0;
|
---|
13023 | if (s) return 0;
|
---|
13024 | }
|
---|
13025 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
13026 | int x[] = {25, 17};
|
---|
13027 | const int *foo = &x[0];
|
---|
13028 | ++foo;
|
---|
13029 | }
|
---|
13030 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
13031 | typedef const int *iptr;
|
---|
13032 | iptr p = 0;
|
---|
13033 | ++p;
|
---|
13034 | }
|
---|
13035 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
|
---|
13036 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
13037 | struct s { int j; const int *ap[3]; } bx;
|
---|
13038 | struct s *b = &bx; b->j = 5;
|
---|
13039 | }
|
---|
13040 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
13041 | const int foo = 10;
|
---|
13042 | if (!foo) return 0;
|
---|
13043 | }
|
---|
13044 | return !cs[0] && !zero.x;
|
---|
13045 | #endif
|
---|
13046 |
|
---|
13047 | ;
|
---|
13048 | return 0;
|
---|
13049 | }
|
---|
13050 | _ACEOF
|
---|
13051 | if ac_fn_c_try_compile "$LINENO"; then :
|
---|
13052 | ac_cv_c_const=yes
|
---|
13053 | else
|
---|
13054 | ac_cv_c_const=no
|
---|
13055 | fi
|
---|
13056 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
13057 | fi
|
---|
13058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
|
---|
13059 | $as_echo "$ac_cv_c_const" >&6; }
|
---|
13060 | if test $ac_cv_c_const = no; then
|
---|
13061 |
|
---|
13062 | $as_echo "#define const /**/" >>confdefs.h
|
---|
13063 |
|
---|
13064 | fi
|
---|
13065 |
|
---|
13066 |
|
---|
13067 |
|
---|
13068 | # The cast to long int works around a bug in the HP C Compiler
|
---|
13069 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
---|
13070 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
---|
13071 | # This bug is HP SR number 8606223364.
|
---|
13072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int16_t" >&5
|
---|
13073 | $as_echo_n "checking size of int16_t... " >&6; }
|
---|
13074 | if ${ac_cv_sizeof_int16_t+:} false; then :
|
---|
13075 | $as_echo_n "(cached) " >&6
|
---|
13076 | else
|
---|
13077 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int16_t))" "ac_cv_sizeof_int16_t" "$ac_includes_default"; then :
|
---|
13078 |
|
---|
13079 | else
|
---|
13080 | if test "$ac_cv_type_int16_t" = yes; then
|
---|
13081 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
13082 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
13083 | as_fn_error 77 "cannot compute sizeof (int16_t)
|
---|
13084 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
13085 | else
|
---|
13086 | ac_cv_sizeof_int16_t=0
|
---|
13087 | fi
|
---|
13088 | fi
|
---|
13089 |
|
---|
13090 | fi
|
---|
13091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int16_t" >&5
|
---|
13092 | $as_echo "$ac_cv_sizeof_int16_t" >&6; }
|
---|
13093 |
|
---|
13094 |
|
---|
13095 |
|
---|
13096 | cat >>confdefs.h <<_ACEOF
|
---|
13097 | #define SIZEOF_INT16_T $ac_cv_sizeof_int16_t
|
---|
13098 | _ACEOF
|
---|
13099 |
|
---|
13100 |
|
---|
13101 | # The cast to long int works around a bug in the HP C Compiler
|
---|
13102 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
---|
13103 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
---|
13104 | # This bug is HP SR number 8606223364.
|
---|
13105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint16_t" >&5
|
---|
13106 | $as_echo_n "checking size of uint16_t... " >&6; }
|
---|
13107 | if ${ac_cv_sizeof_uint16_t+:} false; then :
|
---|
13108 | $as_echo_n "(cached) " >&6
|
---|
13109 | else
|
---|
13110 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint16_t))" "ac_cv_sizeof_uint16_t" "$ac_includes_default"; then :
|
---|
13111 |
|
---|
13112 | else
|
---|
13113 | if test "$ac_cv_type_uint16_t" = yes; then
|
---|
13114 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
13115 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
13116 | as_fn_error 77 "cannot compute sizeof (uint16_t)
|
---|
13117 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
13118 | else
|
---|
13119 | ac_cv_sizeof_uint16_t=0
|
---|
13120 | fi
|
---|
13121 | fi
|
---|
13122 |
|
---|
13123 | fi
|
---|
13124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint16_t" >&5
|
---|
13125 | $as_echo "$ac_cv_sizeof_uint16_t" >&6; }
|
---|
13126 |
|
---|
13127 |
|
---|
13128 |
|
---|
13129 | cat >>confdefs.h <<_ACEOF
|
---|
13130 | #define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t
|
---|
13131 | _ACEOF
|
---|
13132 |
|
---|
13133 |
|
---|
13134 | # The cast to long int works around a bug in the HP C Compiler
|
---|
13135 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
---|
13136 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
---|
13137 | # This bug is HP SR number 8606223364.
|
---|
13138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of u_int16_t" >&5
|
---|
13139 | $as_echo_n "checking size of u_int16_t... " >&6; }
|
---|
13140 | if ${ac_cv_sizeof_u_int16_t+:} false; then :
|
---|
13141 | $as_echo_n "(cached) " >&6
|
---|
13142 | else
|
---|
13143 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (u_int16_t))" "ac_cv_sizeof_u_int16_t" "$ac_includes_default"; then :
|
---|
13144 |
|
---|
13145 | else
|
---|
13146 | if test "$ac_cv_type_u_int16_t" = yes; then
|
---|
13147 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
13148 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
13149 | as_fn_error 77 "cannot compute sizeof (u_int16_t)
|
---|
13150 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
13151 | else
|
---|
13152 | ac_cv_sizeof_u_int16_t=0
|
---|
13153 | fi
|
---|
13154 | fi
|
---|
13155 |
|
---|
13156 | fi
|
---|
13157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_u_int16_t" >&5
|
---|
13158 | $as_echo "$ac_cv_sizeof_u_int16_t" >&6; }
|
---|
13159 |
|
---|
13160 |
|
---|
13161 |
|
---|
13162 | cat >>confdefs.h <<_ACEOF
|
---|
13163 | #define SIZEOF_U_INT16_T $ac_cv_sizeof_u_int16_t
|
---|
13164 | _ACEOF
|
---|
13165 |
|
---|
13166 |
|
---|
13167 | # The cast to long int works around a bug in the HP C Compiler
|
---|
13168 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
---|
13169 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
---|
13170 | # This bug is HP SR number 8606223364.
|
---|
13171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int32_t" >&5
|
---|
13172 | $as_echo_n "checking size of int32_t... " >&6; }
|
---|
13173 | if ${ac_cv_sizeof_int32_t+:} false; then :
|
---|
13174 | $as_echo_n "(cached) " >&6
|
---|
13175 | else
|
---|
13176 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int32_t))" "ac_cv_sizeof_int32_t" "$ac_includes_default"; then :
|
---|
13177 |
|
---|
13178 | else
|
---|
13179 | if test "$ac_cv_type_int32_t" = yes; then
|
---|
13180 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
13181 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
13182 | as_fn_error 77 "cannot compute sizeof (int32_t)
|
---|
13183 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
13184 | else
|
---|
13185 | ac_cv_sizeof_int32_t=0
|
---|
13186 | fi
|
---|
13187 | fi
|
---|
13188 |
|
---|
13189 | fi
|
---|
13190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int32_t" >&5
|
---|
13191 | $as_echo "$ac_cv_sizeof_int32_t" >&6; }
|
---|
13192 |
|
---|
13193 |
|
---|
13194 |
|
---|
13195 | cat >>confdefs.h <<_ACEOF
|
---|
13196 | #define SIZEOF_INT32_T $ac_cv_sizeof_int32_t
|
---|
13197 | _ACEOF
|
---|
13198 |
|
---|
13199 |
|
---|
13200 | # The cast to long int works around a bug in the HP C Compiler
|
---|
13201 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
---|
13202 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
---|
13203 | # This bug is HP SR number 8606223364.
|
---|
13204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint32_t" >&5
|
---|
13205 | $as_echo_n "checking size of uint32_t... " >&6; }
|
---|
13206 | if ${ac_cv_sizeof_uint32_t+:} false; then :
|
---|
13207 | $as_echo_n "(cached) " >&6
|
---|
13208 | else
|
---|
13209 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint32_t))" "ac_cv_sizeof_uint32_t" "$ac_includes_default"; then :
|
---|
13210 |
|
---|
13211 | else
|
---|
13212 | if test "$ac_cv_type_uint32_t" = yes; then
|
---|
13213 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
13214 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
13215 | as_fn_error 77 "cannot compute sizeof (uint32_t)
|
---|
13216 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
13217 | else
|
---|
13218 | ac_cv_sizeof_uint32_t=0
|
---|
13219 | fi
|
---|
13220 | fi
|
---|
13221 |
|
---|
13222 | fi
|
---|
13223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint32_t" >&5
|
---|
13224 | $as_echo "$ac_cv_sizeof_uint32_t" >&6; }
|
---|
13225 |
|
---|
13226 |
|
---|
13227 |
|
---|
13228 | cat >>confdefs.h <<_ACEOF
|
---|
13229 | #define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t
|
---|
13230 | _ACEOF
|
---|
13231 |
|
---|
13232 |
|
---|
13233 | # The cast to long int works around a bug in the HP C Compiler
|
---|
13234 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
---|
13235 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
---|
13236 | # This bug is HP SR number 8606223364.
|
---|
13237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of u_int32_t" >&5
|
---|
13238 | $as_echo_n "checking size of u_int32_t... " >&6; }
|
---|
13239 | if ${ac_cv_sizeof_u_int32_t+:} false; then :
|
---|
13240 | $as_echo_n "(cached) " >&6
|
---|
13241 | else
|
---|
13242 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (u_int32_t))" "ac_cv_sizeof_u_int32_t" "$ac_includes_default"; then :
|
---|
13243 |
|
---|
13244 | else
|
---|
13245 | if test "$ac_cv_type_u_int32_t" = yes; then
|
---|
13246 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
13247 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
13248 | as_fn_error 77 "cannot compute sizeof (u_int32_t)
|
---|
13249 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
13250 | else
|
---|
13251 | ac_cv_sizeof_u_int32_t=0
|
---|
13252 | fi
|
---|
13253 | fi
|
---|
13254 |
|
---|
13255 | fi
|
---|
13256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_u_int32_t" >&5
|
---|
13257 | $as_echo "$ac_cv_sizeof_u_int32_t" >&6; }
|
---|
13258 |
|
---|
13259 |
|
---|
13260 |
|
---|
13261 | cat >>confdefs.h <<_ACEOF
|
---|
13262 | #define SIZEOF_U_INT32_T $ac_cv_sizeof_u_int32_t
|
---|
13263 | _ACEOF
|
---|
13264 |
|
---|
13265 |
|
---|
13266 | # The cast to long int works around a bug in the HP C Compiler
|
---|
13267 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
---|
13268 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
---|
13269 | # This bug is HP SR number 8606223364.
|
---|
13270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5
|
---|
13271 | $as_echo_n "checking size of int64_t... " >&6; }
|
---|
13272 | if ${ac_cv_sizeof_int64_t+:} false; then :
|
---|
13273 | $as_echo_n "(cached) " >&6
|
---|
13274 | else
|
---|
13275 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t" "$ac_includes_default"; then :
|
---|
13276 |
|
---|
13277 | else
|
---|
13278 | if test "$ac_cv_type_int64_t" = yes; then
|
---|
13279 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
13280 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
13281 | as_fn_error 77 "cannot compute sizeof (int64_t)
|
---|
13282 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
13283 | else
|
---|
13284 | ac_cv_sizeof_int64_t=0
|
---|
13285 | fi
|
---|
13286 | fi
|
---|
13287 |
|
---|
13288 | fi
|
---|
13289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5
|
---|
13290 | $as_echo "$ac_cv_sizeof_int64_t" >&6; }
|
---|
13291 |
|
---|
13292 |
|
---|
13293 |
|
---|
13294 | cat >>confdefs.h <<_ACEOF
|
---|
13295 | #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
|
---|
13296 | _ACEOF
|
---|
13297 |
|
---|
13298 |
|
---|
13299 | # The cast to long int works around a bug in the HP C Compiler
|
---|
13300 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
---|
13301 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
---|
13302 | # This bug is HP SR number 8606223364.
|
---|
13303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint64_t" >&5
|
---|
13304 | $as_echo_n "checking size of uint64_t... " >&6; }
|
---|
13305 | if ${ac_cv_sizeof_uint64_t+:} false; then :
|
---|
13306 | $as_echo_n "(cached) " >&6
|
---|
13307 | else
|
---|
13308 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint64_t))" "ac_cv_sizeof_uint64_t" "$ac_includes_default"; then :
|
---|
13309 |
|
---|
13310 | else
|
---|
13311 | if test "$ac_cv_type_uint64_t" = yes; then
|
---|
13312 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
13313 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
13314 | as_fn_error 77 "cannot compute sizeof (uint64_t)
|
---|
13315 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
13316 | else
|
---|
13317 | ac_cv_sizeof_uint64_t=0
|
---|
13318 | fi
|
---|
13319 | fi
|
---|
13320 |
|
---|
13321 | fi
|
---|
13322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint64_t" >&5
|
---|
13323 | $as_echo "$ac_cv_sizeof_uint64_t" >&6; }
|
---|
13324 |
|
---|
13325 |
|
---|
13326 |
|
---|
13327 | cat >>confdefs.h <<_ACEOF
|
---|
13328 | #define SIZEOF_UINT64_T $ac_cv_sizeof_uint64_t
|
---|
13329 | _ACEOF
|
---|
13330 |
|
---|
13331 |
|
---|
13332 | # The cast to long int works around a bug in the HP C Compiler
|
---|
13333 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
---|
13334 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
---|
13335 | # This bug is HP SR number 8606223364.
|
---|
13336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
|
---|
13337 | $as_echo_n "checking size of short... " >&6; }
|
---|
13338 | if ${ac_cv_sizeof_short+:} false; then :
|
---|
13339 | $as_echo_n "(cached) " >&6
|
---|
13340 | else
|
---|
13341 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
|
---|
13342 |
|
---|
13343 | else
|
---|
13344 | if test "$ac_cv_type_short" = yes; then
|
---|
13345 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
13346 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
13347 | as_fn_error 77 "cannot compute sizeof (short)
|
---|
13348 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
13349 | else
|
---|
13350 | ac_cv_sizeof_short=0
|
---|
13351 | fi
|
---|
13352 | fi
|
---|
13353 |
|
---|
13354 | fi
|
---|
13355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
|
---|
13356 | $as_echo "$ac_cv_sizeof_short" >&6; }
|
---|
13357 |
|
---|
13358 |
|
---|
13359 |
|
---|
13360 | cat >>confdefs.h <<_ACEOF
|
---|
13361 | #define SIZEOF_SHORT $ac_cv_sizeof_short
|
---|
13362 | _ACEOF
|
---|
13363 |
|
---|
13364 |
|
---|
13365 | # The cast to long int works around a bug in the HP C Compiler
|
---|
13366 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
---|
13367 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
---|
13368 | # This bug is HP SR number 8606223364.
|
---|
13369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
|
---|
13370 | $as_echo_n "checking size of int... " >&6; }
|
---|
13371 | if ${ac_cv_sizeof_int+:} false; then :
|
---|
13372 | $as_echo_n "(cached) " >&6
|
---|
13373 | else
|
---|
13374 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
|
---|
13375 |
|
---|
13376 | else
|
---|
13377 | if test "$ac_cv_type_int" = yes; then
|
---|
13378 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
13379 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
13380 | as_fn_error 77 "cannot compute sizeof (int)
|
---|
13381 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
13382 | else
|
---|
13383 | ac_cv_sizeof_int=0
|
---|
13384 | fi
|
---|
13385 | fi
|
---|
13386 |
|
---|
13387 | fi
|
---|
13388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
|
---|
13389 | $as_echo "$ac_cv_sizeof_int" >&6; }
|
---|
13390 |
|
---|
13391 |
|
---|
13392 |
|
---|
13393 | cat >>confdefs.h <<_ACEOF
|
---|
13394 | #define SIZEOF_INT $ac_cv_sizeof_int
|
---|
13395 | _ACEOF
|
---|
13396 |
|
---|
13397 |
|
---|
13398 | # The cast to long int works around a bug in the HP C Compiler
|
---|
13399 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
---|
13400 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
---|
13401 | # This bug is HP SR number 8606223364.
|
---|
13402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
|
---|
13403 | $as_echo_n "checking size of long... " >&6; }
|
---|
13404 | if ${ac_cv_sizeof_long+:} false; then :
|
---|
13405 | $as_echo_n "(cached) " >&6
|
---|
13406 | else
|
---|
13407 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
|
---|
13408 |
|
---|
13409 | else
|
---|
13410 | if test "$ac_cv_type_long" = yes; then
|
---|
13411 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
13412 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
13413 | as_fn_error 77 "cannot compute sizeof (long)
|
---|
13414 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
13415 | else
|
---|
13416 | ac_cv_sizeof_long=0
|
---|
13417 | fi
|
---|
13418 | fi
|
---|
13419 |
|
---|
13420 | fi
|
---|
13421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
|
---|
13422 | $as_echo "$ac_cv_sizeof_long" >&6; }
|
---|
13423 |
|
---|
13424 |
|
---|
13425 |
|
---|
13426 | cat >>confdefs.h <<_ACEOF
|
---|
13427 | #define SIZEOF_LONG $ac_cv_sizeof_long
|
---|
13428 | _ACEOF
|
---|
13429 |
|
---|
13430 |
|
---|
13431 | # The cast to long int works around a bug in the HP C Compiler
|
---|
13432 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
---|
13433 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
---|
13434 | # This bug is HP SR number 8606223364.
|
---|
13435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
|
---|
13436 | $as_echo_n "checking size of long long... " >&6; }
|
---|
13437 | if ${ac_cv_sizeof_long_long+:} false; then :
|
---|
13438 | $as_echo_n "(cached) " >&6
|
---|
13439 | else
|
---|
13440 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
|
---|
13441 |
|
---|
13442 | else
|
---|
13443 | if test "$ac_cv_type_long_long" = yes; then
|
---|
13444 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
13445 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
13446 | as_fn_error 77 "cannot compute sizeof (long long)
|
---|
13447 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
13448 | else
|
---|
13449 | ac_cv_sizeof_long_long=0
|
---|
13450 | fi
|
---|
13451 | fi
|
---|
13452 |
|
---|
13453 | fi
|
---|
13454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
|
---|
13455 | $as_echo "$ac_cv_sizeof_long_long" >&6; }
|
---|
13456 |
|
---|
13457 |
|
---|
13458 |
|
---|
13459 | cat >>confdefs.h <<_ACEOF
|
---|
13460 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
|
---|
13461 | _ACEOF
|
---|
13462 |
|
---|
13463 |
|
---|
13464 |
|
---|
13465 | case 2 in
|
---|
13466 | $ac_cv_sizeof_int16_t) SIZE16="int16_t";;
|
---|
13467 | $ac_cv_sizeof_short) SIZE16="short";;
|
---|
13468 | $ac_cv_sizeof_int) SIZE16="int";;
|
---|
13469 | esac
|
---|
13470 |
|
---|
13471 | case 2 in
|
---|
13472 | $ac_cv_sizeof_uint16_t) USIZE16="uint16_t";;
|
---|
13473 | $ac_cv_sizeof_short) USIZE16="unsigned short";;
|
---|
13474 | $ac_cv_sizeof_int) USIZE16="unsigned int";;
|
---|
13475 | $ac_cv_sizeof_u_int16_t) USIZE16="u_int16_t";;
|
---|
13476 | esac
|
---|
13477 |
|
---|
13478 | case 4 in
|
---|
13479 | $ac_cv_sizeof_int32_t) SIZE32="int32_t";;
|
---|
13480 | $ac_cv_sizeof_short) SIZE32="short";;
|
---|
13481 | $ac_cv_sizeof_int) SIZE32="int";;
|
---|
13482 | $ac_cv_sizeof_long) SIZE32="long";;
|
---|
13483 | esac
|
---|
13484 |
|
---|
13485 | case 4 in
|
---|
13486 | $ac_cv_sizeof_uint32_t) USIZE32="uint32_t";;
|
---|
13487 | $ac_cv_sizeof_short) USIZE32="unsigned short";;
|
---|
13488 | $ac_cv_sizeof_int) USIZE32="unsigned int";;
|
---|
13489 | $ac_cv_sizeof_long) USIZE32="unsigned long";;
|
---|
13490 | $ac_cv_sizeof_u_int32_t) USIZE32="u_int32_t";;
|
---|
13491 | esac
|
---|
13492 |
|
---|
13493 | case 8 in
|
---|
13494 | $ac_cv_sizeof_int64_t) SIZE64="int64_t";;
|
---|
13495 | $ac_cv_sizeof_int) SIZE64="int";;
|
---|
13496 | $ac_cv_sizeof_long) SIZE64="long";;
|
---|
13497 | $ac_cv_sizeof_long_long) SIZE64="long long";;
|
---|
13498 | esac
|
---|
13499 |
|
---|
13500 | case 8 in
|
---|
13501 | $ac_cv_sizeof_uint64_t) USIZE64="uint64_t";;
|
---|
13502 | $ac_cv_sizeof_unsigned_int) USIZE64="unsigned int";;
|
---|
13503 | $ac_cv_sizeof_unsigned_long) USIZE64="unsigned long";;
|
---|
13504 | $ac_cv_sizeof_unsigned_long_long) USIZE64="unsigned long long";;
|
---|
13505 | esac
|
---|
13506 |
|
---|
13507 | if test -z "$SIZE16"; then
|
---|
13508 | as_fn_error $? "No 16 bit type found on this platform!" "$LINENO" 5
|
---|
13509 | fi
|
---|
13510 | if test -z "$USIZE16"; then
|
---|
13511 | as_fn_error $? "No unsigned 16 bit type found on this platform!" "$LINENO" 5
|
---|
13512 | fi
|
---|
13513 | if test -z "$SIZE32"; then
|
---|
13514 | as_fn_error $? "No 32 bit type found on this platform!" "$LINENO" 5
|
---|
13515 | fi
|
---|
13516 | if test -z "$USIZE32"; then
|
---|
13517 | as_fn_error $? "No unsigned 32 bit type found on this platform!" "$LINENO" 5
|
---|
13518 | fi
|
---|
13519 | if test -z "$SIZE64"; then
|
---|
13520 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No 64 bit type found on this platform!" >&5
|
---|
13521 | $as_echo "$as_me: WARNING: No 64 bit type found on this platform!" >&2;}
|
---|
13522 | fi
|
---|
13523 | if test -z "$USIZE64"; then
|
---|
13524 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No unsigned 64 bit type found on this platform!" >&5
|
---|
13525 | $as_echo "$as_me: WARNING: No unsigned 64 bit type found on this platform!" >&2;}
|
---|
13526 | fi
|
---|
13527 |
|
---|
13528 | # Check whether --enable-crc was given.
|
---|
13529 | if test "${enable_crc+set}" = set; then :
|
---|
13530 | enableval=$enable_crc;
|
---|
13531 | else
|
---|
13532 | enable_crc=yes
|
---|
13533 | fi
|
---|
13534 |
|
---|
13535 |
|
---|
13536 | if test "$enable_crc" = "no"; then
|
---|
13537 | DISABLE_CRC_TRUE=
|
---|
13538 | DISABLE_CRC_FALSE='#'
|
---|
13539 | else
|
---|
13540 | DISABLE_CRC_TRUE='#'
|
---|
13541 | DISABLE_CRC_FALSE=
|
---|
13542 | fi
|
---|
13543 |
|
---|
13544 |
|
---|
13545 | if test "$enable_crc" = "no"; then :
|
---|
13546 |
|
---|
13547 |
|
---|
13548 | $as_echo "#define DISABLE_CRC 1" >>confdefs.h
|
---|
13549 |
|
---|
13550 |
|
---|
13551 | fi
|
---|
13552 |
|
---|
13553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
|
---|
13554 | $as_echo_n "checking for working memcmp... " >&6; }
|
---|
13555 | if ${ac_cv_func_memcmp_working+:} false; then :
|
---|
13556 | $as_echo_n "(cached) " >&6
|
---|
13557 | else
|
---|
13558 | if test "$cross_compiling" = yes; then :
|
---|
13559 | ac_cv_func_memcmp_working=no
|
---|
13560 | else
|
---|
13561 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
13562 | /* end confdefs.h. */
|
---|
13563 | $ac_includes_default
|
---|
13564 | int
|
---|
13565 | main ()
|
---|
13566 | {
|
---|
13567 |
|
---|
13568 | /* Some versions of memcmp are not 8-bit clean. */
|
---|
13569 | char c0 = '\100', c1 = '\200', c2 = '\201';
|
---|
13570 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
|
---|
13571 | return 1;
|
---|
13572 |
|
---|
13573 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
|
---|
13574 | or more and with at least one buffer not starting on a 4-byte boundary.
|
---|
13575 | William Lewis provided this test program. */
|
---|
13576 | {
|
---|
13577 | char foo[21];
|
---|
13578 | char bar[21];
|
---|
13579 | int i;
|
---|
13580 | for (i = 0; i < 4; i++)
|
---|
13581 | {
|
---|
13582 | char *a = foo + i;
|
---|
13583 | char *b = bar + i;
|
---|
13584 | strcpy (a, "--------01111111");
|
---|
13585 | strcpy (b, "--------10000000");
|
---|
13586 | if (memcmp (a, b, 16) >= 0)
|
---|
13587 | return 1;
|
---|
13588 | }
|
---|
13589 | return 0;
|
---|
13590 | }
|
---|
13591 |
|
---|
13592 | ;
|
---|
13593 | return 0;
|
---|
13594 | }
|
---|
13595 | _ACEOF
|
---|
13596 | if ac_fn_c_try_run "$LINENO"; then :
|
---|
13597 | ac_cv_func_memcmp_working=yes
|
---|
13598 | else
|
---|
13599 | ac_cv_func_memcmp_working=no
|
---|
13600 | fi
|
---|
13601 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
---|
13602 | conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
13603 | fi
|
---|
13604 |
|
---|
13605 | fi
|
---|
13606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
|
---|
13607 | $as_echo "$ac_cv_func_memcmp_working" >&6; }
|
---|
13608 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
|
---|
13609 | *" memcmp.$ac_objext "* ) ;;
|
---|
13610 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
|
---|
13611 | ;;
|
---|
13612 | esac
|
---|
13613 |
|
---|
13614 |
|
---|
13615 |
|
---|
13616 |
|
---|
13617 |
|
---|
13618 |
|
---|
13619 |
|
---|
13620 |
|
---|
13621 |
|
---|
13622 |
|
---|
13623 |
|
---|
13624 |
|
---|
13625 |
|
---|
13626 |
|
---|
13627 |
|
---|
13628 |
|
---|
13629 |
|
---|
13630 |
|
---|
13631 |
|
---|
13632 |
|
---|
13633 |
|
---|
13634 | ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile doc/libogg/Makefile include/Makefile include/ogg/Makefile include/ogg/config_types.h libogg.spec ogg.pc ogg-uninstalled.pc"
|
---|
13635 |
|
---|
13636 | ac_config_headers="$ac_config_headers config.h"
|
---|
13637 |
|
---|
13638 |
|
---|
13639 | cat >confcache <<\_ACEOF
|
---|
13640 | # This file is a shell script that caches the results of configure
|
---|
13641 | # tests run on this system so they can be shared between configure
|
---|
13642 | # scripts and configure runs, see configure's option --config-cache.
|
---|
13643 | # It is not useful on other systems. If it contains results you don't
|
---|
13644 | # want to keep, you may remove or edit it.
|
---|
13645 | #
|
---|
13646 | # config.status only pays attention to the cache file if you give it
|
---|
13647 | # the --recheck option to rerun configure.
|
---|
13648 | #
|
---|
13649 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
13650 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
13651 | # following values.
|
---|
13652 |
|
---|
13653 | _ACEOF
|
---|
13654 |
|
---|
13655 | # The following way of writing the cache mishandles newlines in values,
|
---|
13656 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
13657 | # So, we kill variables containing newlines.
|
---|
13658 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
13659 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
13660 | (
|
---|
13661 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
---|
13662 | eval ac_val=\$$ac_var
|
---|
13663 | case $ac_val in #(
|
---|
13664 | *${as_nl}*)
|
---|
13665 | case $ac_var in #(
|
---|
13666 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
13667 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
13668 | esac
|
---|
13669 | case $ac_var in #(
|
---|
13670 | _ | IFS | as_nl) ;; #(
|
---|
13671 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
13672 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
13673 | esac ;;
|
---|
13674 | esac
|
---|
13675 | done
|
---|
13676 |
|
---|
13677 | (set) 2>&1 |
|
---|
13678 | case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
---|
13679 | *${as_nl}ac_space=\ *)
|
---|
13680 | # `set' does not quote correctly, so add quotes: double-quote
|
---|
13681 | # substitution turns \\\\ into \\, and sed turns \\ into \.
|
---|
13682 | sed -n \
|
---|
13683 | "s/'/'\\\\''/g;
|
---|
13684 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
13685 | ;; #(
|
---|
13686 | *)
|
---|
13687 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
13688 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
13689 | ;;
|
---|
13690 | esac |
|
---|
13691 | sort
|
---|
13692 | ) |
|
---|
13693 | sed '
|
---|
13694 | /^ac_cv_env_/b end
|
---|
13695 | t clear
|
---|
13696 | :clear
|
---|
13697 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
13698 | t end
|
---|
13699 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
13700 | :end' >>confcache
|
---|
13701 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
---|
13702 | if test -w "$cache_file"; then
|
---|
13703 | if test "x$cache_file" != "x/dev/null"; then
|
---|
13704 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
|
---|
13705 | $as_echo "$as_me: updating cache $cache_file" >&6;}
|
---|
13706 | if test ! -f "$cache_file" || test -h "$cache_file"; then
|
---|
13707 | cat confcache >"$cache_file"
|
---|
13708 | else
|
---|
13709 | case $cache_file in #(
|
---|
13710 | */* | ?:*)
|
---|
13711 | mv -f confcache "$cache_file"$$ &&
|
---|
13712 | mv -f "$cache_file"$$ "$cache_file" ;; #(
|
---|
13713 | *)
|
---|
13714 | mv -f confcache "$cache_file" ;;
|
---|
13715 | esac
|
---|
13716 | fi
|
---|
13717 | fi
|
---|
13718 | else
|
---|
13719 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
|
---|
13720 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
|
---|
13721 | fi
|
---|
13722 | fi
|
---|
13723 | rm -f confcache
|
---|
13724 |
|
---|
13725 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
13726 | # Let make expand exec_prefix.
|
---|
13727 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
13728 |
|
---|
13729 | DEFS=-DHAVE_CONFIG_H
|
---|
13730 |
|
---|
13731 | ac_libobjs=
|
---|
13732 | ac_ltlibobjs=
|
---|
13733 | U=
|
---|
13734 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
13735 | # 1. Remove the extension, and $U if already installed.
|
---|
13736 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
---|
13737 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
|
---|
13738 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
---|
13739 | # will be set to the directory where LIBOBJS objects are built.
|
---|
13740 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
---|
13741 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
|
---|
13742 | done
|
---|
13743 | LIBOBJS=$ac_libobjs
|
---|
13744 |
|
---|
13745 | LTLIBOBJS=$ac_ltlibobjs
|
---|
13746 |
|
---|
13747 |
|
---|
13748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
|
---|
13749 | $as_echo_n "checking that generated files are newer than configure... " >&6; }
|
---|
13750 | if test -n "$am_sleep_pid"; then
|
---|
13751 | # Hide warnings about reused PIDs.
|
---|
13752 | wait $am_sleep_pid 2>/dev/null
|
---|
13753 | fi
|
---|
13754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
|
---|
13755 | $as_echo "done" >&6; }
|
---|
13756 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
|
---|
13757 | as_fn_error $? "conditional \"AMDEP\" was never defined.
|
---|
13758 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
13759 | fi
|
---|
13760 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
|
---|
13761 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
|
---|
13762 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
13763 | fi
|
---|
13764 | if test -n "$EXEEXT"; then
|
---|
13765 | am__EXEEXT_TRUE=
|
---|
13766 | am__EXEEXT_FALSE='#'
|
---|
13767 | else
|
---|
13768 | am__EXEEXT_TRUE='#'
|
---|
13769 | am__EXEEXT_FALSE=
|
---|
13770 | fi
|
---|
13771 |
|
---|
13772 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
|
---|
13773 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
|
---|
13774 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
13775 | fi
|
---|
13776 | if test -z "${DISABLE_CRC_TRUE}" && test -z "${DISABLE_CRC_FALSE}"; then
|
---|
13777 | as_fn_error $? "conditional \"DISABLE_CRC\" was never defined.
|
---|
13778 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
13779 | fi
|
---|
13780 |
|
---|
13781 | : "${CONFIG_STATUS=./config.status}"
|
---|
13782 | ac_write_fail=0
|
---|
13783 | ac_clean_files_save=$ac_clean_files
|
---|
13784 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
13785 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
|
---|
13786 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
13787 | as_write_fail=0
|
---|
13788 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
|
---|
13789 | #! $SHELL
|
---|
13790 | # Generated by $as_me.
|
---|
13791 | # Run this file to recreate the current configuration.
|
---|
13792 | # Compiler output produced by configure, useful for debugging
|
---|
13793 | # configure, is in config.log if it exists.
|
---|
13794 |
|
---|
13795 | debug=false
|
---|
13796 | ac_cs_recheck=false
|
---|
13797 | ac_cs_silent=false
|
---|
13798 |
|
---|
13799 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
13800 | export SHELL
|
---|
13801 | _ASEOF
|
---|
13802 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
|
---|
13803 | ## -------------------- ##
|
---|
13804 | ## M4sh Initialization. ##
|
---|
13805 | ## -------------------- ##
|
---|
13806 |
|
---|
13807 | # Be more Bourne compatible
|
---|
13808 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
13809 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
---|
13810 | emulate sh
|
---|
13811 | NULLCMD=:
|
---|
13812 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
13813 | # is contrary to our usage. Disable this feature.
|
---|
13814 | alias -g '${1+"$@"}'='"$@"'
|
---|
13815 | setopt NO_GLOB_SUBST
|
---|
13816 | else
|
---|
13817 | case `(set -o) 2>/dev/null` in #(
|
---|
13818 | *posix*) :
|
---|
13819 | set -o posix ;; #(
|
---|
13820 | *) :
|
---|
13821 | ;;
|
---|
13822 | esac
|
---|
13823 | fi
|
---|
13824 |
|
---|
13825 |
|
---|
13826 | as_nl='
|
---|
13827 | '
|
---|
13828 | export as_nl
|
---|
13829 | # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
---|
13830 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
13831 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
13832 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
---|
13833 | # Prefer a ksh shell builtin over an external printf program on Solaris,
|
---|
13834 | # but without wasting forks for bash or zsh.
|
---|
13835 | if test -z "$BASH_VERSION$ZSH_VERSION" \
|
---|
13836 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
13837 | as_echo='print -r --'
|
---|
13838 | as_echo_n='print -rn --'
|
---|
13839 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
---|
13840 | as_echo='printf %s\n'
|
---|
13841 | as_echo_n='printf %s'
|
---|
13842 | else
|
---|
13843 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
---|
13844 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
---|
13845 | as_echo_n='/usr/ucb/echo -n'
|
---|
13846 | else
|
---|
13847 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
---|
13848 | as_echo_n_body='eval
|
---|
13849 | arg=$1;
|
---|
13850 | case $arg in #(
|
---|
13851 | *"$as_nl"*)
|
---|
13852 | expr "X$arg" : "X\\(.*\\)$as_nl";
|
---|
13853 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
---|
13854 | esac;
|
---|
13855 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
---|
13856 | '
|
---|
13857 | export as_echo_n_body
|
---|
13858 | as_echo_n='sh -c $as_echo_n_body as_echo'
|
---|
13859 | fi
|
---|
13860 | export as_echo_body
|
---|
13861 | as_echo='sh -c $as_echo_body as_echo'
|
---|
13862 | fi
|
---|
13863 |
|
---|
13864 | # The user is always right.
|
---|
13865 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
13866 | PATH_SEPARATOR=:
|
---|
13867 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
---|
13868 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
---|
13869 | PATH_SEPARATOR=';'
|
---|
13870 | }
|
---|
13871 | fi
|
---|
13872 |
|
---|
13873 |
|
---|
13874 | # IFS
|
---|
13875 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
13876 | # there to prevent editors from complaining about space-tab.
|
---|
13877 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
13878 | # splitting by setting IFS to empty value.)
|
---|
13879 | IFS=" "" $as_nl"
|
---|
13880 |
|
---|
13881 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
13882 | as_myself=
|
---|
13883 | case $0 in #((
|
---|
13884 | *[\\/]* ) as_myself=$0 ;;
|
---|
13885 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
13886 | for as_dir in $PATH
|
---|
13887 | do
|
---|
13888 | IFS=$as_save_IFS
|
---|
13889 | test -z "$as_dir" && as_dir=.
|
---|
13890 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
13891 | done
|
---|
13892 | IFS=$as_save_IFS
|
---|
13893 |
|
---|
13894 | ;;
|
---|
13895 | esac
|
---|
13896 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
13897 | # in which case we are not to be found in the path.
|
---|
13898 | if test "x$as_myself" = x; then
|
---|
13899 | as_myself=$0
|
---|
13900 | fi
|
---|
13901 | if test ! -f "$as_myself"; then
|
---|
13902 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
13903 | exit 1
|
---|
13904 | fi
|
---|
13905 |
|
---|
13906 | # Unset variables that we do not need and which cause bugs (e.g. in
|
---|
13907 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
---|
13908 | # suppresses any "Segmentation fault" message there. '((' could
|
---|
13909 | # trigger a bug in pdksh 5.2.14.
|
---|
13910 | for as_var in BASH_ENV ENV MAIL MAILPATH
|
---|
13911 | do eval test x\${$as_var+set} = xset \
|
---|
13912 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
13913 | done
|
---|
13914 | PS1='$ '
|
---|
13915 | PS2='> '
|
---|
13916 | PS4='+ '
|
---|
13917 |
|
---|
13918 | # NLS nuisances.
|
---|
13919 | LC_ALL=C
|
---|
13920 | export LC_ALL
|
---|
13921 | LANGUAGE=C
|
---|
13922 | export LANGUAGE
|
---|
13923 |
|
---|
13924 | # CDPATH.
|
---|
13925 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
13926 |
|
---|
13927 |
|
---|
13928 | # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
---|
13929 | # ----------------------------------------
|
---|
13930 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
13931 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
13932 | # script with STATUS, using 1 if that was 0.
|
---|
13933 | as_fn_error ()
|
---|
13934 | {
|
---|
13935 | as_status=$1; test $as_status -eq 0 && as_status=1
|
---|
13936 | if test "$4"; then
|
---|
13937 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
13938 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
---|
13939 | fi
|
---|
13940 | $as_echo "$as_me: error: $2" >&2
|
---|
13941 | as_fn_exit $as_status
|
---|
13942 | } # as_fn_error
|
---|
13943 |
|
---|
13944 |
|
---|
13945 | # as_fn_set_status STATUS
|
---|
13946 | # -----------------------
|
---|
13947 | # Set $? to STATUS, without forking.
|
---|
13948 | as_fn_set_status ()
|
---|
13949 | {
|
---|
13950 | return $1
|
---|
13951 | } # as_fn_set_status
|
---|
13952 |
|
---|
13953 | # as_fn_exit STATUS
|
---|
13954 | # -----------------
|
---|
13955 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
13956 | as_fn_exit ()
|
---|
13957 | {
|
---|
13958 | set +e
|
---|
13959 | as_fn_set_status $1
|
---|
13960 | exit $1
|
---|
13961 | } # as_fn_exit
|
---|
13962 |
|
---|
13963 | # as_fn_unset VAR
|
---|
13964 | # ---------------
|
---|
13965 | # Portably unset VAR.
|
---|
13966 | as_fn_unset ()
|
---|
13967 | {
|
---|
13968 | { eval $1=; unset $1;}
|
---|
13969 | }
|
---|
13970 | as_unset=as_fn_unset
|
---|
13971 | # as_fn_append VAR VALUE
|
---|
13972 | # ----------------------
|
---|
13973 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
13974 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
13975 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
13976 | # implementations.
|
---|
13977 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
---|
13978 | eval 'as_fn_append ()
|
---|
13979 | {
|
---|
13980 | eval $1+=\$2
|
---|
13981 | }'
|
---|
13982 | else
|
---|
13983 | as_fn_append ()
|
---|
13984 | {
|
---|
13985 | eval $1=\$$1\$2
|
---|
13986 | }
|
---|
13987 | fi # as_fn_append
|
---|
13988 |
|
---|
13989 | # as_fn_arith ARG...
|
---|
13990 | # ------------------
|
---|
13991 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
13992 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
13993 | # must be portable across $(()) and expr.
|
---|
13994 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
---|
13995 | eval 'as_fn_arith ()
|
---|
13996 | {
|
---|
13997 | as_val=$(( $* ))
|
---|
13998 | }'
|
---|
13999 | else
|
---|
14000 | as_fn_arith ()
|
---|
14001 | {
|
---|
14002 | as_val=`expr "$@" || test $? -eq 1`
|
---|
14003 | }
|
---|
14004 | fi # as_fn_arith
|
---|
14005 |
|
---|
14006 |
|
---|
14007 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
14008 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
14009 | as_expr=expr
|
---|
14010 | else
|
---|
14011 | as_expr=false
|
---|
14012 | fi
|
---|
14013 |
|
---|
14014 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
14015 | as_basename=basename
|
---|
14016 | else
|
---|
14017 | as_basename=false
|
---|
14018 | fi
|
---|
14019 |
|
---|
14020 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
14021 | as_dirname=dirname
|
---|
14022 | else
|
---|
14023 | as_dirname=false
|
---|
14024 | fi
|
---|
14025 |
|
---|
14026 | as_me=`$as_basename -- "$0" ||
|
---|
14027 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
14028 | X"$0" : 'X\(//\)$' \| \
|
---|
14029 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
14030 | $as_echo X/"$0" |
|
---|
14031 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
14032 | s//\1/
|
---|
14033 | q
|
---|
14034 | }
|
---|
14035 | /^X\/\(\/\/\)$/{
|
---|
14036 | s//\1/
|
---|
14037 | q
|
---|
14038 | }
|
---|
14039 | /^X\/\(\/\).*/{
|
---|
14040 | s//\1/
|
---|
14041 | q
|
---|
14042 | }
|
---|
14043 | s/.*/./; q'`
|
---|
14044 |
|
---|
14045 | # Avoid depending upon Character Ranges.
|
---|
14046 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
14047 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
14048 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
14049 | as_cr_digits='0123456789'
|
---|
14050 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
14051 |
|
---|
14052 | ECHO_C= ECHO_N= ECHO_T=
|
---|
14053 | case `echo -n x` in #(((((
|
---|
14054 | -n*)
|
---|
14055 | case `echo 'xy\c'` in
|
---|
14056 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
14057 | xy) ECHO_C='\c';;
|
---|
14058 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
14059 | ECHO_T=' ';;
|
---|
14060 | esac;;
|
---|
14061 | *)
|
---|
14062 | ECHO_N='-n';;
|
---|
14063 | esac
|
---|
14064 |
|
---|
14065 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
14066 | if test -d conf$$.dir; then
|
---|
14067 | rm -f conf$$.dir/conf$$.file
|
---|
14068 | else
|
---|
14069 | rm -f conf$$.dir
|
---|
14070 | mkdir conf$$.dir 2>/dev/null
|
---|
14071 | fi
|
---|
14072 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
14073 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
14074 | as_ln_s='ln -s'
|
---|
14075 | # ... but there are two gotchas:
|
---|
14076 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
14077 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
14078 | # In both cases, we have to default to `cp -pR'.
|
---|
14079 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
14080 | as_ln_s='cp -pR'
|
---|
14081 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
14082 | as_ln_s=ln
|
---|
14083 | else
|
---|
14084 | as_ln_s='cp -pR'
|
---|
14085 | fi
|
---|
14086 | else
|
---|
14087 | as_ln_s='cp -pR'
|
---|
14088 | fi
|
---|
14089 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
14090 | rmdir conf$$.dir 2>/dev/null
|
---|
14091 |
|
---|
14092 |
|
---|
14093 | # as_fn_mkdir_p
|
---|
14094 | # -------------
|
---|
14095 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
14096 | as_fn_mkdir_p ()
|
---|
14097 | {
|
---|
14098 |
|
---|
14099 | case $as_dir in #(
|
---|
14100 | -*) as_dir=./$as_dir;;
|
---|
14101 | esac
|
---|
14102 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
14103 | as_dirs=
|
---|
14104 | while :; do
|
---|
14105 | case $as_dir in #(
|
---|
14106 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
14107 | *) as_qdir=$as_dir;;
|
---|
14108 | esac
|
---|
14109 | as_dirs="'$as_qdir' $as_dirs"
|
---|
14110 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
14111 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
14112 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
14113 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
14114 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
14115 | $as_echo X"$as_dir" |
|
---|
14116 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
14117 | s//\1/
|
---|
14118 | q
|
---|
14119 | }
|
---|
14120 | /^X\(\/\/\)[^/].*/{
|
---|
14121 | s//\1/
|
---|
14122 | q
|
---|
14123 | }
|
---|
14124 | /^X\(\/\/\)$/{
|
---|
14125 | s//\1/
|
---|
14126 | q
|
---|
14127 | }
|
---|
14128 | /^X\(\/\).*/{
|
---|
14129 | s//\1/
|
---|
14130 | q
|
---|
14131 | }
|
---|
14132 | s/.*/./; q'`
|
---|
14133 | test -d "$as_dir" && break
|
---|
14134 | done
|
---|
14135 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
14136 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
---|
14137 |
|
---|
14138 |
|
---|
14139 | } # as_fn_mkdir_p
|
---|
14140 | if mkdir -p . 2>/dev/null; then
|
---|
14141 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
14142 | else
|
---|
14143 | test -d ./-p && rmdir ./-p
|
---|
14144 | as_mkdir_p=false
|
---|
14145 | fi
|
---|
14146 |
|
---|
14147 |
|
---|
14148 | # as_fn_executable_p FILE
|
---|
14149 | # -----------------------
|
---|
14150 | # Test if FILE is an executable regular file.
|
---|
14151 | as_fn_executable_p ()
|
---|
14152 | {
|
---|
14153 | test -f "$1" && test -x "$1"
|
---|
14154 | } # as_fn_executable_p
|
---|
14155 | as_test_x='test -x'
|
---|
14156 | as_executable_p=as_fn_executable_p
|
---|
14157 |
|
---|
14158 | # Sed expression to map a string onto a valid CPP name.
|
---|
14159 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
14160 |
|
---|
14161 | # Sed expression to map a string onto a valid variable name.
|
---|
14162 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
14163 |
|
---|
14164 |
|
---|
14165 | exec 6>&1
|
---|
14166 | ## ----------------------------------- ##
|
---|
14167 | ## Main body of $CONFIG_STATUS script. ##
|
---|
14168 | ## ----------------------------------- ##
|
---|
14169 | _ASEOF
|
---|
14170 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
|
---|
14171 |
|
---|
14172 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
14173 | # Save the log message, to keep $0 and so on meaningful, and to
|
---|
14174 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
14175 | # values after options handling.
|
---|
14176 | ac_log="
|
---|
14177 | This file was extended by libogg $as_me 1.3.5, which was
|
---|
14178 | generated by GNU Autoconf 2.69. Invocation command line was
|
---|
14179 |
|
---|
14180 | CONFIG_FILES = $CONFIG_FILES
|
---|
14181 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
14182 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
14183 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
14184 | $ $0 $@
|
---|
14185 |
|
---|
14186 | on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
14187 | "
|
---|
14188 |
|
---|
14189 | _ACEOF
|
---|
14190 |
|
---|
14191 | case $ac_config_files in *"
|
---|
14192 | "*) set x $ac_config_files; shift; ac_config_files=$*;;
|
---|
14193 | esac
|
---|
14194 |
|
---|
14195 | case $ac_config_headers in *"
|
---|
14196 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
|
---|
14197 | esac
|
---|
14198 |
|
---|
14199 |
|
---|
14200 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
14201 | # Files that config.status was made for.
|
---|
14202 | config_files="$ac_config_files"
|
---|
14203 | config_headers="$ac_config_headers"
|
---|
14204 | config_commands="$ac_config_commands"
|
---|
14205 |
|
---|
14206 | _ACEOF
|
---|
14207 |
|
---|
14208 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
14209 | ac_cs_usage="\
|
---|
14210 | \`$as_me' instantiates files and other configuration actions
|
---|
14211 | from templates according to the current configuration. Unless the files
|
---|
14212 | and actions are specified as TAGs, all are instantiated by default.
|
---|
14213 |
|
---|
14214 | Usage: $0 [OPTION]... [TAG]...
|
---|
14215 |
|
---|
14216 | -h, --help print this help, then exit
|
---|
14217 | -V, --version print version number and configuration settings, then exit
|
---|
14218 | --config print configuration, then exit
|
---|
14219 | -q, --quiet, --silent
|
---|
14220 | do not print progress messages
|
---|
14221 | -d, --debug don't remove temporary files
|
---|
14222 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
14223 | --file=FILE[:TEMPLATE]
|
---|
14224 | instantiate the configuration file FILE
|
---|
14225 | --header=FILE[:TEMPLATE]
|
---|
14226 | instantiate the configuration header FILE
|
---|
14227 |
|
---|
14228 | Configuration files:
|
---|
14229 | $config_files
|
---|
14230 |
|
---|
14231 | Configuration headers:
|
---|
14232 | $config_headers
|
---|
14233 |
|
---|
14234 | Configuration commands:
|
---|
14235 | $config_commands
|
---|
14236 |
|
---|
14237 | Report bugs to <[email protected]>."
|
---|
14238 |
|
---|
14239 | _ACEOF
|
---|
14240 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
14241 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
---|
14242 | ac_cs_version="\\
|
---|
14243 | libogg config.status 1.3.5
|
---|
14244 | configured by $0, generated by GNU Autoconf 2.69,
|
---|
14245 | with options \\"\$ac_cs_config\\"
|
---|
14246 |
|
---|
14247 | Copyright (C) 2012 Free Software Foundation, Inc.
|
---|
14248 | This config.status script is free software; the Free Software Foundation
|
---|
14249 | gives unlimited permission to copy, distribute and modify it."
|
---|
14250 |
|
---|
14251 | ac_pwd='$ac_pwd'
|
---|
14252 | srcdir='$srcdir'
|
---|
14253 | INSTALL='$INSTALL'
|
---|
14254 | MKDIR_P='$MKDIR_P'
|
---|
14255 | AWK='$AWK'
|
---|
14256 | test -n "\$AWK" || AWK=awk
|
---|
14257 | _ACEOF
|
---|
14258 |
|
---|
14259 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
14260 | # The default lists apply if the user does not specify any file.
|
---|
14261 | ac_need_defaults=:
|
---|
14262 | while test $# != 0
|
---|
14263 | do
|
---|
14264 | case $1 in
|
---|
14265 | --*=?*)
|
---|
14266 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
14267 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
---|
14268 | ac_shift=:
|
---|
14269 | ;;
|
---|
14270 | --*=)
|
---|
14271 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
14272 | ac_optarg=
|
---|
14273 | ac_shift=:
|
---|
14274 | ;;
|
---|
14275 | *)
|
---|
14276 | ac_option=$1
|
---|
14277 | ac_optarg=$2
|
---|
14278 | ac_shift=shift
|
---|
14279 | ;;
|
---|
14280 | esac
|
---|
14281 |
|
---|
14282 | case $ac_option in
|
---|
14283 | # Handling of the options.
|
---|
14284 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
14285 | ac_cs_recheck=: ;;
|
---|
14286 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
---|
14287 | $as_echo "$ac_cs_version"; exit ;;
|
---|
14288 | --config | --confi | --conf | --con | --co | --c )
|
---|
14289 | $as_echo "$ac_cs_config"; exit ;;
|
---|
14290 | --debug | --debu | --deb | --de | --d | -d )
|
---|
14291 | debug=: ;;
|
---|
14292 | --file | --fil | --fi | --f )
|
---|
14293 | $ac_shift
|
---|
14294 | case $ac_optarg in
|
---|
14295 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
14296 | '') as_fn_error $? "missing file argument" ;;
|
---|
14297 | esac
|
---|
14298 | as_fn_append CONFIG_FILES " '$ac_optarg'"
|
---|
14299 | ac_need_defaults=false;;
|
---|
14300 | --header | --heade | --head | --hea )
|
---|
14301 | $ac_shift
|
---|
14302 | case $ac_optarg in
|
---|
14303 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
14304 | esac
|
---|
14305 | as_fn_append CONFIG_HEADERS " '$ac_optarg'"
|
---|
14306 | ac_need_defaults=false;;
|
---|
14307 | --he | --h)
|
---|
14308 | # Conflict between --help and --header
|
---|
14309 | as_fn_error $? "ambiguous option: \`$1'
|
---|
14310 | Try \`$0 --help' for more information.";;
|
---|
14311 | --help | --hel | -h )
|
---|
14312 | $as_echo "$ac_cs_usage"; exit ;;
|
---|
14313 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
14314 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
14315 | ac_cs_silent=: ;;
|
---|
14316 |
|
---|
14317 | # This is an error.
|
---|
14318 | -*) as_fn_error $? "unrecognized option: \`$1'
|
---|
14319 | Try \`$0 --help' for more information." ;;
|
---|
14320 |
|
---|
14321 | *) as_fn_append ac_config_targets " $1"
|
---|
14322 | ac_need_defaults=false ;;
|
---|
14323 |
|
---|
14324 | esac
|
---|
14325 | shift
|
---|
14326 | done
|
---|
14327 |
|
---|
14328 | ac_configure_extra_args=
|
---|
14329 |
|
---|
14330 | if $ac_cs_silent; then
|
---|
14331 | exec 6>/dev/null
|
---|
14332 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
14333 | fi
|
---|
14334 |
|
---|
14335 | _ACEOF
|
---|
14336 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
14337 | if \$ac_cs_recheck; then
|
---|
14338 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
14339 | shift
|
---|
14340 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
|
---|
14341 | CONFIG_SHELL='$SHELL'
|
---|
14342 | export CONFIG_SHELL
|
---|
14343 | exec "\$@"
|
---|
14344 | fi
|
---|
14345 |
|
---|
14346 | _ACEOF
|
---|
14347 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
14348 | exec 5>>config.log
|
---|
14349 | {
|
---|
14350 | echo
|
---|
14351 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
14352 | ## Running $as_me. ##
|
---|
14353 | _ASBOX
|
---|
14354 | $as_echo "$ac_log"
|
---|
14355 | } >&5
|
---|
14356 |
|
---|
14357 | _ACEOF
|
---|
14358 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
14359 | #
|
---|
14360 | # INIT-COMMANDS
|
---|
14361 | #
|
---|
14362 |
|
---|
14363 |
|
---|
14364 | # The HP-UX ksh and POSIX shell print the target directory to stdout
|
---|
14365 | # if CDPATH is set.
|
---|
14366 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
14367 |
|
---|
14368 | sed_quote_subst='$sed_quote_subst'
|
---|
14369 | double_quote_subst='$double_quote_subst'
|
---|
14370 | delay_variable_subst='$delay_variable_subst'
|
---|
14371 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
|
---|
14372 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
|
---|
14373 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
|
---|
14374 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
|
---|
14375 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
|
---|
14376 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
|
---|
14377 | shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
|
---|
14378 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
|
---|
14379 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
|
---|
14380 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
|
---|
14381 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
|
---|
14382 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
|
---|
14383 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
|
---|
14384 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
|
---|
14385 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
|
---|
14386 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
|
---|
14387 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
|
---|
14388 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
|
---|
14389 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
|
---|
14390 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
|
---|
14391 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
|
---|
14392 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
|
---|
14393 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
|
---|
14394 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
|
---|
14395 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
|
---|
14396 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
|
---|
14397 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
|
---|
14398 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
|
---|
14399 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
|
---|
14400 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
|
---|
14401 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
|
---|
14402 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
|
---|
14403 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
|
---|
14404 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
14405 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
|
---|
14406 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
|
---|
14407 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
|
---|
14408 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
|
---|
14409 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
|
---|
14410 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
|
---|
14411 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
|
---|
14412 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
|
---|
14413 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
|
---|
14414 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
|
---|
14415 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
|
---|
14416 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
|
---|
14417 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
14418 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
14419 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
14420 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
|
---|
14421 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
|
---|
14422 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
|
---|
14423 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
|
---|
14424 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
|
---|
14425 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
|
---|
14426 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
|
---|
14427 | lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
|
---|
14428 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
|
---|
14429 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
|
---|
14430 | lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
|
---|
14431 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
|
---|
14432 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
|
---|
14433 | lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
|
---|
14434 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
|
---|
14435 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
|
---|
14436 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
|
---|
14437 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
|
---|
14438 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
|
---|
14439 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
|
---|
14440 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
|
---|
14441 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
|
---|
14442 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
|
---|
14443 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
|
---|
14444 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
|
---|
14445 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
|
---|
14446 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
|
---|
14447 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
|
---|
14448 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
|
---|
14449 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
14450 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
14451 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
|
---|
14452 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
|
---|
14453 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
|
---|
14454 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
|
---|
14455 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
|
---|
14456 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
14457 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
14458 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
14459 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
14460 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
14461 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
14462 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
|
---|
14463 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
|
---|
14464 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
|
---|
14465 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
|
---|
14466 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
|
---|
14467 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
|
---|
14468 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
|
---|
14469 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
|
---|
14470 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
|
---|
14471 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
|
---|
14472 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
|
---|
14473 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
|
---|
14474 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
|
---|
14475 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
14476 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
|
---|
14477 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
|
---|
14478 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
14479 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
14480 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
|
---|
14481 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
|
---|
14482 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
|
---|
14483 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
|
---|
14484 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
|
---|
14485 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
|
---|
14486 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
|
---|
14487 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
|
---|
14488 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
|
---|
14489 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
|
---|
14490 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
|
---|
14491 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
|
---|
14492 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
14493 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
14494 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
14495 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
|
---|
14496 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
|
---|
14497 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
|
---|
14498 | configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
|
---|
14499 | configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
|
---|
14500 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
|
---|
14501 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
|
---|
14502 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
|
---|
14503 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
|
---|
14504 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
|
---|
14505 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
|
---|
14506 |
|
---|
14507 | LTCC='$LTCC'
|
---|
14508 | LTCFLAGS='$LTCFLAGS'
|
---|
14509 | compiler='$compiler_DEFAULT'
|
---|
14510 |
|
---|
14511 | # A function that is used when there is no print builtin or printf.
|
---|
14512 | func_fallback_echo ()
|
---|
14513 | {
|
---|
14514 | eval 'cat <<_LTECHO_EOF
|
---|
14515 | \$1
|
---|
14516 | _LTECHO_EOF'
|
---|
14517 | }
|
---|
14518 |
|
---|
14519 | # Quote evaled strings.
|
---|
14520 | for var in SHELL \
|
---|
14521 | ECHO \
|
---|
14522 | PATH_SEPARATOR \
|
---|
14523 | SED \
|
---|
14524 | GREP \
|
---|
14525 | EGREP \
|
---|
14526 | FGREP \
|
---|
14527 | LD \
|
---|
14528 | NM \
|
---|
14529 | LN_S \
|
---|
14530 | lt_SP2NL \
|
---|
14531 | lt_NL2SP \
|
---|
14532 | reload_flag \
|
---|
14533 | OBJDUMP \
|
---|
14534 | deplibs_check_method \
|
---|
14535 | file_magic_cmd \
|
---|
14536 | file_magic_glob \
|
---|
14537 | want_nocaseglob \
|
---|
14538 | DLLTOOL \
|
---|
14539 | sharedlib_from_linklib_cmd \
|
---|
14540 | AR \
|
---|
14541 | AR_FLAGS \
|
---|
14542 | archiver_list_spec \
|
---|
14543 | STRIP \
|
---|
14544 | RANLIB \
|
---|
14545 | CC \
|
---|
14546 | CFLAGS \
|
---|
14547 | compiler \
|
---|
14548 | lt_cv_sys_global_symbol_pipe \
|
---|
14549 | lt_cv_sys_global_symbol_to_cdecl \
|
---|
14550 | lt_cv_sys_global_symbol_to_import \
|
---|
14551 | lt_cv_sys_global_symbol_to_c_name_address \
|
---|
14552 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
|
---|
14553 | lt_cv_nm_interface \
|
---|
14554 | nm_file_list_spec \
|
---|
14555 | lt_cv_truncate_bin \
|
---|
14556 | lt_prog_compiler_no_builtin_flag \
|
---|
14557 | lt_prog_compiler_pic \
|
---|
14558 | lt_prog_compiler_wl \
|
---|
14559 | lt_prog_compiler_static \
|
---|
14560 | lt_cv_prog_compiler_c_o \
|
---|
14561 | need_locks \
|
---|
14562 | MANIFEST_TOOL \
|
---|
14563 | DSYMUTIL \
|
---|
14564 | NMEDIT \
|
---|
14565 | LIPO \
|
---|
14566 | OTOOL \
|
---|
14567 | OTOOL64 \
|
---|
14568 | shrext_cmds \
|
---|
14569 | export_dynamic_flag_spec \
|
---|
14570 | whole_archive_flag_spec \
|
---|
14571 | compiler_needs_object \
|
---|
14572 | with_gnu_ld \
|
---|
14573 | allow_undefined_flag \
|
---|
14574 | no_undefined_flag \
|
---|
14575 | hardcode_libdir_flag_spec \
|
---|
14576 | hardcode_libdir_separator \
|
---|
14577 | exclude_expsyms \
|
---|
14578 | include_expsyms \
|
---|
14579 | file_list_spec \
|
---|
14580 | variables_saved_for_relink \
|
---|
14581 | libname_spec \
|
---|
14582 | library_names_spec \
|
---|
14583 | soname_spec \
|
---|
14584 | install_override_mode \
|
---|
14585 | finish_eval \
|
---|
14586 | old_striplib \
|
---|
14587 | striplib; do
|
---|
14588 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
|
---|
14589 | *[\\\\\\\`\\"\\\$]*)
|
---|
14590 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
|
---|
14591 | ;;
|
---|
14592 | *)
|
---|
14593 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
|
---|
14594 | ;;
|
---|
14595 | esac
|
---|
14596 | done
|
---|
14597 |
|
---|
14598 | # Double-quote double-evaled strings.
|
---|
14599 | for var in reload_cmds \
|
---|
14600 | old_postinstall_cmds \
|
---|
14601 | old_postuninstall_cmds \
|
---|
14602 | old_archive_cmds \
|
---|
14603 | extract_expsyms_cmds \
|
---|
14604 | old_archive_from_new_cmds \
|
---|
14605 | old_archive_from_expsyms_cmds \
|
---|
14606 | archive_cmds \
|
---|
14607 | archive_expsym_cmds \
|
---|
14608 | module_cmds \
|
---|
14609 | module_expsym_cmds \
|
---|
14610 | export_symbols_cmds \
|
---|
14611 | prelink_cmds \
|
---|
14612 | postlink_cmds \
|
---|
14613 | postinstall_cmds \
|
---|
14614 | postuninstall_cmds \
|
---|
14615 | finish_cmds \
|
---|
14616 | sys_lib_search_path_spec \
|
---|
14617 | configure_time_dlsearch_path \
|
---|
14618 | configure_time_lt_sys_library_path; do
|
---|
14619 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
|
---|
14620 | *[\\\\\\\`\\"\\\$]*)
|
---|
14621 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
|
---|
14622 | ;;
|
---|
14623 | *)
|
---|
14624 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
|
---|
14625 | ;;
|
---|
14626 | esac
|
---|
14627 | done
|
---|
14628 |
|
---|
14629 | ac_aux_dir='$ac_aux_dir'
|
---|
14630 |
|
---|
14631 | # See if we are running on zsh, and set the options that allow our
|
---|
14632 | # commands through without removal of \ escapes INIT.
|
---|
14633 | if test -n "\${ZSH_VERSION+set}"; then
|
---|
14634 | setopt NO_GLOB_SUBST
|
---|
14635 | fi
|
---|
14636 |
|
---|
14637 |
|
---|
14638 | PACKAGE='$PACKAGE'
|
---|
14639 | VERSION='$VERSION'
|
---|
14640 | RM='$RM'
|
---|
14641 | ofile='$ofile'
|
---|
14642 |
|
---|
14643 |
|
---|
14644 |
|
---|
14645 | AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
|
---|
14646 |
|
---|
14647 | _ACEOF
|
---|
14648 |
|
---|
14649 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
14650 |
|
---|
14651 | # Handling of arguments.
|
---|
14652 | for ac_config_target in $ac_config_targets
|
---|
14653 | do
|
---|
14654 | case $ac_config_target in
|
---|
14655 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
|
---|
14656 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
|
---|
14657 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
14658 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
|
---|
14659 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
|
---|
14660 | "doc/libogg/Makefile") CONFIG_FILES="$CONFIG_FILES doc/libogg/Makefile" ;;
|
---|
14661 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
|
---|
14662 | "include/ogg/Makefile") CONFIG_FILES="$CONFIG_FILES include/ogg/Makefile" ;;
|
---|
14663 | "include/ogg/config_types.h") CONFIG_FILES="$CONFIG_FILES include/ogg/config_types.h" ;;
|
---|
14664 | "libogg.spec") CONFIG_FILES="$CONFIG_FILES libogg.spec" ;;
|
---|
14665 | "ogg.pc") CONFIG_FILES="$CONFIG_FILES ogg.pc" ;;
|
---|
14666 | "ogg-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES ogg-uninstalled.pc" ;;
|
---|
14667 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
14668 |
|
---|
14669 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
|
---|
14670 | esac
|
---|
14671 | done
|
---|
14672 |
|
---|
14673 |
|
---|
14674 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
14675 | # then the envvar interface is used. Set only those that are not.
|
---|
14676 | # We use the long form for the default assignment because of an extremely
|
---|
14677 | # bizarre bug on SunOS 4.1.3.
|
---|
14678 | if $ac_need_defaults; then
|
---|
14679 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
14680 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
14681 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
|
---|
14682 | fi
|
---|
14683 |
|
---|
14684 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
14685 | # simply because there is no reason against having it here, and in addition,
|
---|
14686 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
14687 | # Hook for its removal unless debugging.
|
---|
14688 | # Note that there is a small window in which the directory will not be cleaned:
|
---|
14689 | # after its creation but before its name has been assigned to `$tmp'.
|
---|
14690 | $debug ||
|
---|
14691 | {
|
---|
14692 | tmp= ac_tmp=
|
---|
14693 | trap 'exit_status=$?
|
---|
14694 | : "${ac_tmp:=$tmp}"
|
---|
14695 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
|
---|
14696 | ' 0
|
---|
14697 | trap 'as_fn_exit 1' 1 2 13 15
|
---|
14698 | }
|
---|
14699 | # Create a (secure) tmp directory for tmp files.
|
---|
14700 |
|
---|
14701 | {
|
---|
14702 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
---|
14703 | test -d "$tmp"
|
---|
14704 | } ||
|
---|
14705 | {
|
---|
14706 | tmp=./conf$$-$RANDOM
|
---|
14707 | (umask 077 && mkdir "$tmp")
|
---|
14708 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
|
---|
14709 | ac_tmp=$tmp
|
---|
14710 |
|
---|
14711 | # Set up the scripts for CONFIG_FILES section.
|
---|
14712 | # No need to generate them if there are no CONFIG_FILES.
|
---|
14713 | # This happens for instance with `./config.status config.h'.
|
---|
14714 | if test -n "$CONFIG_FILES"; then
|
---|
14715 |
|
---|
14716 |
|
---|
14717 | ac_cr=`echo X | tr X '\015'`
|
---|
14718 | # On cygwin, bash can eat \r inside `` if the user requested igncr.
|
---|
14719 | # But we know of no other shell where ac_cr would be empty at this
|
---|
14720 | # point, so we can use a bashism as a fallback.
|
---|
14721 | if test "x$ac_cr" = x; then
|
---|
14722 | eval ac_cr=\$\'\\r\'
|
---|
14723 | fi
|
---|
14724 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
|
---|
14725 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
|
---|
14726 | ac_cs_awk_cr='\\r'
|
---|
14727 | else
|
---|
14728 | ac_cs_awk_cr=$ac_cr
|
---|
14729 | fi
|
---|
14730 |
|
---|
14731 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
|
---|
14732 | _ACEOF
|
---|
14733 |
|
---|
14734 |
|
---|
14735 | {
|
---|
14736 | echo "cat >conf$$subs.awk <<_ACEOF" &&
|
---|
14737 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
|
---|
14738 | echo "_ACEOF"
|
---|
14739 | } >conf$$subs.sh ||
|
---|
14740 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
14741 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
|
---|
14742 | ac_delim='%!_!# '
|
---|
14743 | for ac_last_try in false false false false false :; do
|
---|
14744 | . ./conf$$subs.sh ||
|
---|
14745 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
14746 |
|
---|
14747 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
|
---|
14748 | if test $ac_delim_n = $ac_delim_num; then
|
---|
14749 | break
|
---|
14750 | elif $ac_last_try; then
|
---|
14751 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
14752 | else
|
---|
14753 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
14754 | fi
|
---|
14755 | done
|
---|
14756 | rm -f conf$$subs.sh
|
---|
14757 |
|
---|
14758 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
14759 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
|
---|
14760 | _ACEOF
|
---|
14761 | sed -n '
|
---|
14762 | h
|
---|
14763 | s/^/S["/; s/!.*/"]=/
|
---|
14764 | p
|
---|
14765 | g
|
---|
14766 | s/^[^!]*!//
|
---|
14767 | :repl
|
---|
14768 | t repl
|
---|
14769 | s/'"$ac_delim"'$//
|
---|
14770 | t delim
|
---|
14771 | :nl
|
---|
14772 | h
|
---|
14773 | s/\(.\{148\}\)..*/\1/
|
---|
14774 | t more1
|
---|
14775 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
|
---|
14776 | p
|
---|
14777 | n
|
---|
14778 | b repl
|
---|
14779 | :more1
|
---|
14780 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
14781 | p
|
---|
14782 | g
|
---|
14783 | s/.\{148\}//
|
---|
14784 | t nl
|
---|
14785 | :delim
|
---|
14786 | h
|
---|
14787 | s/\(.\{148\}\)..*/\1/
|
---|
14788 | t more2
|
---|
14789 | s/["\\]/\\&/g; s/^/"/; s/$/"/
|
---|
14790 | p
|
---|
14791 | b
|
---|
14792 | :more2
|
---|
14793 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
14794 | p
|
---|
14795 | g
|
---|
14796 | s/.\{148\}//
|
---|
14797 | t delim
|
---|
14798 | ' <conf$$subs.awk | sed '
|
---|
14799 | /^[^""]/{
|
---|
14800 | N
|
---|
14801 | s/\n//
|
---|
14802 | }
|
---|
14803 | ' >>$CONFIG_STATUS || ac_write_fail=1
|
---|
14804 | rm -f conf$$subs.awk
|
---|
14805 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
14806 | _ACAWK
|
---|
14807 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
|
---|
14808 | for (key in S) S_is_set[key] = 1
|
---|
14809 | FS = ""
|
---|
14810 |
|
---|
14811 | }
|
---|
14812 | {
|
---|
14813 | line = $ 0
|
---|
14814 | nfields = split(line, field, "@")
|
---|
14815 | substed = 0
|
---|
14816 | len = length(field[1])
|
---|
14817 | for (i = 2; i < nfields; i++) {
|
---|
14818 | key = field[i]
|
---|
14819 | keylen = length(key)
|
---|
14820 | if (S_is_set[key]) {
|
---|
14821 | value = S[key]
|
---|
14822 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
|
---|
14823 | len += length(value) + length(field[++i])
|
---|
14824 | substed = 1
|
---|
14825 | } else
|
---|
14826 | len += 1 + keylen
|
---|
14827 | }
|
---|
14828 |
|
---|
14829 | print line
|
---|
14830 | }
|
---|
14831 |
|
---|
14832 | _ACAWK
|
---|
14833 | _ACEOF
|
---|
14834 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
14835 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
|
---|
14836 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
|
---|
14837 | else
|
---|
14838 | cat
|
---|
14839 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
|
---|
14840 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
|
---|
14841 | _ACEOF
|
---|
14842 |
|
---|
14843 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
|
---|
14844 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
|
---|
14845 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
14846 | # (actually we leave an empty line to preserve line numbers).
|
---|
14847 | if test "x$srcdir" = x.; then
|
---|
14848 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
|
---|
14849 | h
|
---|
14850 | s///
|
---|
14851 | s/^/:/
|
---|
14852 | s/[ ]*$/:/
|
---|
14853 | s/:\$(srcdir):/:/g
|
---|
14854 | s/:\${srcdir}:/:/g
|
---|
14855 | s/:@srcdir@:/:/g
|
---|
14856 | s/^:*//
|
---|
14857 | s/:*$//
|
---|
14858 | x
|
---|
14859 | s/\(=[ ]*\).*/\1/
|
---|
14860 | G
|
---|
14861 | s/\n//
|
---|
14862 | s/^[^=]*=[ ]*$//
|
---|
14863 | }'
|
---|
14864 | fi
|
---|
14865 |
|
---|
14866 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
14867 | fi # test -n "$CONFIG_FILES"
|
---|
14868 |
|
---|
14869 | # Set up the scripts for CONFIG_HEADERS section.
|
---|
14870 | # No need to generate them if there are no CONFIG_HEADERS.
|
---|
14871 | # This happens for instance with `./config.status Makefile'.
|
---|
14872 | if test -n "$CONFIG_HEADERS"; then
|
---|
14873 | cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
|
---|
14874 | BEGIN {
|
---|
14875 | _ACEOF
|
---|
14876 |
|
---|
14877 | # Transform confdefs.h into an awk script `defines.awk', embedded as
|
---|
14878 | # here-document in config.status, that substitutes the proper values into
|
---|
14879 | # config.h.in to produce config.h.
|
---|
14880 |
|
---|
14881 | # Create a delimiter string that does not exist in confdefs.h, to ease
|
---|
14882 | # handling of long lines.
|
---|
14883 | ac_delim='%!_!# '
|
---|
14884 | for ac_last_try in false false :; do
|
---|
14885 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
|
---|
14886 | if test -z "$ac_tt"; then
|
---|
14887 | break
|
---|
14888 | elif $ac_last_try; then
|
---|
14889 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
|
---|
14890 | else
|
---|
14891 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
14892 | fi
|
---|
14893 | done
|
---|
14894 |
|
---|
14895 | # For the awk script, D is an array of macro values keyed by name,
|
---|
14896 | # likewise P contains macro parameters if any. Preserve backslash
|
---|
14897 | # newline sequences.
|
---|
14898 |
|
---|
14899 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
|
---|
14900 | sed -n '
|
---|
14901 | s/.\{148\}/&'"$ac_delim"'/g
|
---|
14902 | t rset
|
---|
14903 | :rset
|
---|
14904 | s/^[ ]*#[ ]*define[ ][ ]*/ /
|
---|
14905 | t def
|
---|
14906 | d
|
---|
14907 | :def
|
---|
14908 | s/\\$//
|
---|
14909 | t bsnl
|
---|
14910 | s/["\\]/\\&/g
|
---|
14911 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
---|
14912 | D["\1"]=" \3"/p
|
---|
14913 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
|
---|
14914 | d
|
---|
14915 | :bsnl
|
---|
14916 | s/["\\]/\\&/g
|
---|
14917 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
---|
14918 | D["\1"]=" \3\\\\\\n"\\/p
|
---|
14919 | t cont
|
---|
14920 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
|
---|
14921 | t cont
|
---|
14922 | d
|
---|
14923 | :cont
|
---|
14924 | n
|
---|
14925 | s/.\{148\}/&'"$ac_delim"'/g
|
---|
14926 | t clear
|
---|
14927 | :clear
|
---|
14928 | s/\\$//
|
---|
14929 | t bsnlc
|
---|
14930 | s/["\\]/\\&/g; s/^/"/; s/$/"/p
|
---|
14931 | d
|
---|
14932 | :bsnlc
|
---|
14933 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
|
---|
14934 | b cont
|
---|
14935 | ' <confdefs.h | sed '
|
---|
14936 | s/'"$ac_delim"'/"\\\
|
---|
14937 | "/g' >>$CONFIG_STATUS || ac_write_fail=1
|
---|
14938 |
|
---|
14939 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
14940 | for (key in D) D_is_set[key] = 1
|
---|
14941 | FS = ""
|
---|
14942 | }
|
---|
14943 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
|
---|
14944 | line = \$ 0
|
---|
14945 | split(line, arg, " ")
|
---|
14946 | if (arg[1] == "#") {
|
---|
14947 | defundef = arg[2]
|
---|
14948 | mac1 = arg[3]
|
---|
14949 | } else {
|
---|
14950 | defundef = substr(arg[1], 2)
|
---|
14951 | mac1 = arg[2]
|
---|
14952 | }
|
---|
14953 | split(mac1, mac2, "(") #)
|
---|
14954 | macro = mac2[1]
|
---|
14955 | prefix = substr(line, 1, index(line, defundef) - 1)
|
---|
14956 | if (D_is_set[macro]) {
|
---|
14957 | # Preserve the white space surrounding the "#".
|
---|
14958 | print prefix "define", macro P[macro] D[macro]
|
---|
14959 | next
|
---|
14960 | } else {
|
---|
14961 | # Replace #undef with comments. This is necessary, for example,
|
---|
14962 | # in the case of _POSIX_SOURCE, which is predefined and required
|
---|
14963 | # on some systems where configure will not decide to define it.
|
---|
14964 | if (defundef == "undef") {
|
---|
14965 | print "/*", prefix defundef, macro, "*/"
|
---|
14966 | next
|
---|
14967 | }
|
---|
14968 | }
|
---|
14969 | }
|
---|
14970 | { print }
|
---|
14971 | _ACAWK
|
---|
14972 | _ACEOF
|
---|
14973 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
14974 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
|
---|
14975 | fi # test -n "$CONFIG_HEADERS"
|
---|
14976 |
|
---|
14977 |
|
---|
14978 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
|
---|
14979 | shift
|
---|
14980 | for ac_tag
|
---|
14981 | do
|
---|
14982 | case $ac_tag in
|
---|
14983 | :[FHLC]) ac_mode=$ac_tag; continue;;
|
---|
14984 | esac
|
---|
14985 | case $ac_mode$ac_tag in
|
---|
14986 | :[FHL]*:*);;
|
---|
14987 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
|
---|
14988 | :[FH]-) ac_tag=-:-;;
|
---|
14989 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
---|
14990 | esac
|
---|
14991 | ac_save_IFS=$IFS
|
---|
14992 | IFS=:
|
---|
14993 | set x $ac_tag
|
---|
14994 | IFS=$ac_save_IFS
|
---|
14995 | shift
|
---|
14996 | ac_file=$1
|
---|
14997 | shift
|
---|
14998 |
|
---|
14999 | case $ac_mode in
|
---|
15000 | :L) ac_source=$1;;
|
---|
15001 | :[FH])
|
---|
15002 | ac_file_inputs=
|
---|
15003 | for ac_f
|
---|
15004 | do
|
---|
15005 | case $ac_f in
|
---|
15006 | -) ac_f="$ac_tmp/stdin";;
|
---|
15007 | *) # Look for the file first in the build tree, then in the source tree
|
---|
15008 | # (if the path is not absolute). The absolute path cannot be DOS-style,
|
---|
15009 | # because $ac_f cannot contain `:'.
|
---|
15010 | test -f "$ac_f" ||
|
---|
15011 | case $ac_f in
|
---|
15012 | [\\/$]*) false;;
|
---|
15013 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
---|
15014 | esac ||
|
---|
15015 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
|
---|
15016 | esac
|
---|
15017 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
|
---|
15018 | as_fn_append ac_file_inputs " '$ac_f'"
|
---|
15019 | done
|
---|
15020 |
|
---|
15021 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
15022 | # use $as_me), people would be surprised to read:
|
---|
15023 | # /* config.h. Generated by config.status. */
|
---|
15024 | configure_input='Generated from '`
|
---|
15025 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
|
---|
15026 | `' by configure.'
|
---|
15027 | if test x"$ac_file" != x-; then
|
---|
15028 | configure_input="$ac_file. $configure_input"
|
---|
15029 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
|
---|
15030 | $as_echo "$as_me: creating $ac_file" >&6;}
|
---|
15031 | fi
|
---|
15032 | # Neutralize special characters interpreted by sed in replacement strings.
|
---|
15033 | case $configure_input in #(
|
---|
15034 | *\&* | *\|* | *\\* )
|
---|
15035 | ac_sed_conf_input=`$as_echo "$configure_input" |
|
---|
15036 | sed 's/[\\\\&|]/\\\\&/g'`;; #(
|
---|
15037 | *) ac_sed_conf_input=$configure_input;;
|
---|
15038 | esac
|
---|
15039 |
|
---|
15040 | case $ac_tag in
|
---|
15041 | *:-:* | *:-) cat >"$ac_tmp/stdin" \
|
---|
15042 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
|
---|
15043 | esac
|
---|
15044 | ;;
|
---|
15045 | esac
|
---|
15046 |
|
---|
15047 | ac_dir=`$as_dirname -- "$ac_file" ||
|
---|
15048 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
15049 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
15050 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
15051 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
15052 | $as_echo X"$ac_file" |
|
---|
15053 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
15054 | s//\1/
|
---|
15055 | q
|
---|
15056 | }
|
---|
15057 | /^X\(\/\/\)[^/].*/{
|
---|
15058 | s//\1/
|
---|
15059 | q
|
---|
15060 | }
|
---|
15061 | /^X\(\/\/\)$/{
|
---|
15062 | s//\1/
|
---|
15063 | q
|
---|
15064 | }
|
---|
15065 | /^X\(\/\).*/{
|
---|
15066 | s//\1/
|
---|
15067 | q
|
---|
15068 | }
|
---|
15069 | s/.*/./; q'`
|
---|
15070 | as_dir="$ac_dir"; as_fn_mkdir_p
|
---|
15071 | ac_builddir=.
|
---|
15072 |
|
---|
15073 | case "$ac_dir" in
|
---|
15074 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
15075 | *)
|
---|
15076 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
15077 | # A ".." for each directory in $ac_dir_suffix.
|
---|
15078 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
15079 | case $ac_top_builddir_sub in
|
---|
15080 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
15081 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
15082 | esac ;;
|
---|
15083 | esac
|
---|
15084 | ac_abs_top_builddir=$ac_pwd
|
---|
15085 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
15086 | # for backward compatibility:
|
---|
15087 | ac_top_builddir=$ac_top_build_prefix
|
---|
15088 |
|
---|
15089 | case $srcdir in
|
---|
15090 | .) # We are building in place.
|
---|
15091 | ac_srcdir=.
|
---|
15092 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
15093 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
15094 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
15095 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
15096 | ac_top_srcdir=$srcdir
|
---|
15097 | ac_abs_top_srcdir=$srcdir ;;
|
---|
15098 | *) # Relative name.
|
---|
15099 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
15100 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
15101 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
15102 | esac
|
---|
15103 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
15104 |
|
---|
15105 |
|
---|
15106 | case $ac_mode in
|
---|
15107 | :F)
|
---|
15108 | #
|
---|
15109 | # CONFIG_FILE
|
---|
15110 | #
|
---|
15111 |
|
---|
15112 | case $INSTALL in
|
---|
15113 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
15114 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
---|
15115 | esac
|
---|
15116 | ac_MKDIR_P=$MKDIR_P
|
---|
15117 | case $MKDIR_P in
|
---|
15118 | [\\/$]* | ?:[\\/]* ) ;;
|
---|
15119 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
|
---|
15120 | esac
|
---|
15121 | _ACEOF
|
---|
15122 |
|
---|
15123 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
15124 | # If the template does not know about datarootdir, expand it.
|
---|
15125 | # FIXME: This hack should be removed a few years after 2.60.
|
---|
15126 | ac_datarootdir_hack=; ac_datarootdir_seen=
|
---|
15127 | ac_sed_dataroot='
|
---|
15128 | /datarootdir/ {
|
---|
15129 | p
|
---|
15130 | q
|
---|
15131 | }
|
---|
15132 | /@datadir@/p
|
---|
15133 | /@docdir@/p
|
---|
15134 | /@infodir@/p
|
---|
15135 | /@localedir@/p
|
---|
15136 | /@mandir@/p'
|
---|
15137 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
|
---|
15138 | *datarootdir*) ac_datarootdir_seen=yes;;
|
---|
15139 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
---|
15140 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
---|
15141 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
---|
15142 | _ACEOF
|
---|
15143 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
15144 | ac_datarootdir_hack='
|
---|
15145 | s&@datadir@&$datadir&g
|
---|
15146 | s&@docdir@&$docdir&g
|
---|
15147 | s&@infodir@&$infodir&g
|
---|
15148 | s&@localedir@&$localedir&g
|
---|
15149 | s&@mandir@&$mandir&g
|
---|
15150 | s&\\\${datarootdir}&$datarootdir&g' ;;
|
---|
15151 | esac
|
---|
15152 | _ACEOF
|
---|
15153 |
|
---|
15154 | # Neutralize VPATH when `$srcdir' = `.'.
|
---|
15155 | # Shell code in configure.ac might set extrasub.
|
---|
15156 | # FIXME: do we really want to maintain this feature?
|
---|
15157 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
15158 | ac_sed_extra="$ac_vpsub
|
---|
15159 | $extrasub
|
---|
15160 | _ACEOF
|
---|
15161 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
15162 | :t
|
---|
15163 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
15164 | s|@configure_input@|$ac_sed_conf_input|;t t
|
---|
15165 | s&@top_builddir@&$ac_top_builddir_sub&;t t
|
---|
15166 | s&@top_build_prefix@&$ac_top_build_prefix&;t t
|
---|
15167 | s&@srcdir@&$ac_srcdir&;t t
|
---|
15168 | s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
---|
15169 | s&@top_srcdir@&$ac_top_srcdir&;t t
|
---|
15170 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
---|
15171 | s&@builddir@&$ac_builddir&;t t
|
---|
15172 | s&@abs_builddir@&$ac_abs_builddir&;t t
|
---|
15173 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
---|
15174 | s&@INSTALL@&$ac_INSTALL&;t t
|
---|
15175 | s&@MKDIR_P@&$ac_MKDIR_P&;t t
|
---|
15176 | $ac_datarootdir_hack
|
---|
15177 | "
|
---|
15178 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
|
---|
15179 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
15180 |
|
---|
15181 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
---|
15182 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
|
---|
15183 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
|
---|
15184 | "$ac_tmp/out"`; test -z "$ac_out"; } &&
|
---|
15185 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
15186 | which seems to be undefined. Please make sure it is defined" >&5
|
---|
15187 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
15188 | which seems to be undefined. Please make sure it is defined" >&2;}
|
---|
15189 |
|
---|
15190 | rm -f "$ac_tmp/stdin"
|
---|
15191 | case $ac_file in
|
---|
15192 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
|
---|
15193 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
|
---|
15194 | esac \
|
---|
15195 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
15196 | ;;
|
---|
15197 | :H)
|
---|
15198 | #
|
---|
15199 | # CONFIG_HEADER
|
---|
15200 | #
|
---|
15201 | if test x"$ac_file" != x-; then
|
---|
15202 | {
|
---|
15203 | $as_echo "/* $configure_input */" \
|
---|
15204 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
|
---|
15205 | } >"$ac_tmp/config.h" \
|
---|
15206 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
15207 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
|
---|
15208 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
|
---|
15209 | $as_echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
15210 | else
|
---|
15211 | rm -f "$ac_file"
|
---|
15212 | mv "$ac_tmp/config.h" "$ac_file" \
|
---|
15213 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
15214 | fi
|
---|
15215 | else
|
---|
15216 | $as_echo "/* $configure_input */" \
|
---|
15217 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
|
---|
15218 | || as_fn_error $? "could not create -" "$LINENO" 5
|
---|
15219 | fi
|
---|
15220 | # Compute "$ac_file"'s index in $config_headers.
|
---|
15221 | _am_arg="$ac_file"
|
---|
15222 | _am_stamp_count=1
|
---|
15223 | for _am_header in $config_headers :; do
|
---|
15224 | case $_am_header in
|
---|
15225 | $_am_arg | $_am_arg:* )
|
---|
15226 | break ;;
|
---|
15227 | * )
|
---|
15228 | _am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
---|
15229 | esac
|
---|
15230 | done
|
---|
15231 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
|
---|
15232 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
15233 | X"$_am_arg" : 'X\(//\)[^/]' \| \
|
---|
15234 | X"$_am_arg" : 'X\(//\)$' \| \
|
---|
15235 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
15236 | $as_echo X"$_am_arg" |
|
---|
15237 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
15238 | s//\1/
|
---|
15239 | q
|
---|
15240 | }
|
---|
15241 | /^X\(\/\/\)[^/].*/{
|
---|
15242 | s//\1/
|
---|
15243 | q
|
---|
15244 | }
|
---|
15245 | /^X\(\/\/\)$/{
|
---|
15246 | s//\1/
|
---|
15247 | q
|
---|
15248 | }
|
---|
15249 | /^X\(\/\).*/{
|
---|
15250 | s//\1/
|
---|
15251 | q
|
---|
15252 | }
|
---|
15253 | s/.*/./; q'`/stamp-h$_am_stamp_count
|
---|
15254 | ;;
|
---|
15255 |
|
---|
15256 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
|
---|
15257 | $as_echo "$as_me: executing $ac_file commands" >&6;}
|
---|
15258 | ;;
|
---|
15259 | esac
|
---|
15260 |
|
---|
15261 |
|
---|
15262 | case $ac_file$ac_mode in
|
---|
15263 | "libtool":C)
|
---|
15264 |
|
---|
15265 | # See if we are running on zsh, and set the options that allow our
|
---|
15266 | # commands through without removal of \ escapes.
|
---|
15267 | if test -n "${ZSH_VERSION+set}"; then
|
---|
15268 | setopt NO_GLOB_SUBST
|
---|
15269 | fi
|
---|
15270 |
|
---|
15271 | cfgfile=${ofile}T
|
---|
15272 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15
|
---|
15273 | $RM "$cfgfile"
|
---|
15274 |
|
---|
15275 | cat <<_LT_EOF >> "$cfgfile"
|
---|
15276 | #! $SHELL
|
---|
15277 | # Generated automatically by $as_me ($PACKAGE) $VERSION
|
---|
15278 | # NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
---|
15279 |
|
---|
15280 | # Provide generalized library-building support services.
|
---|
15281 | # Written by Gordon Matzigkeit, 1996
|
---|
15282 |
|
---|
15283 | # Copyright (C) 2014 Free Software Foundation, Inc.
|
---|
15284 | # This is free software; see the source for copying conditions. There is NO
|
---|
15285 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
---|
15286 |
|
---|
15287 | # GNU Libtool is free software; you can redistribute it and/or modify
|
---|
15288 | # it under the terms of the GNU General Public License as published by
|
---|
15289 | # the Free Software Foundation; either version 2 of of the License, or
|
---|
15290 | # (at your option) any later version.
|
---|
15291 | #
|
---|
15292 | # As a special exception to the GNU General Public License, if you
|
---|
15293 | # distribute this file as part of a program or library that is built
|
---|
15294 | # using GNU Libtool, you may include this file under the same
|
---|
15295 | # distribution terms that you use for the rest of that program.
|
---|
15296 | #
|
---|
15297 | # GNU Libtool is distributed in the hope that it will be useful, but
|
---|
15298 | # WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
15299 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
15300 | # GNU General Public License for more details.
|
---|
15301 | #
|
---|
15302 | # You should have received a copy of the GNU General Public License
|
---|
15303 | # along with this program. If not, see <http://www.gnu.org/licenses/>.
|
---|
15304 |
|
---|
15305 |
|
---|
15306 | # The names of the tagged configurations supported by this script.
|
---|
15307 | available_tags=''
|
---|
15308 |
|
---|
15309 | # Configured defaults for sys_lib_dlsearch_path munging.
|
---|
15310 | : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
|
---|
15311 |
|
---|
15312 | # ### BEGIN LIBTOOL CONFIG
|
---|
15313 |
|
---|
15314 | # Which release of libtool.m4 was used?
|
---|
15315 | macro_version=$macro_version
|
---|
15316 | macro_revision=$macro_revision
|
---|
15317 |
|
---|
15318 | # Whether or not to build shared libraries.
|
---|
15319 | build_libtool_libs=$enable_shared
|
---|
15320 |
|
---|
15321 | # Whether or not to build static libraries.
|
---|
15322 | build_old_libs=$enable_static
|
---|
15323 |
|
---|
15324 | # What type of objects to build.
|
---|
15325 | pic_mode=$pic_mode
|
---|
15326 |
|
---|
15327 | # Whether or not to optimize for fast installation.
|
---|
15328 | fast_install=$enable_fast_install
|
---|
15329 |
|
---|
15330 | # Shared archive member basename,for filename based shared library versioning on AIX.
|
---|
15331 | shared_archive_member_spec=$shared_archive_member_spec
|
---|
15332 |
|
---|
15333 | # Shell to use when invoking shell scripts.
|
---|
15334 | SHELL=$lt_SHELL
|
---|
15335 |
|
---|
15336 | # An echo program that protects backslashes.
|
---|
15337 | ECHO=$lt_ECHO
|
---|
15338 |
|
---|
15339 | # The PATH separator for the build system.
|
---|
15340 | PATH_SEPARATOR=$lt_PATH_SEPARATOR
|
---|
15341 |
|
---|
15342 | # The host system.
|
---|
15343 | host_alias=$host_alias
|
---|
15344 | host=$host
|
---|
15345 | host_os=$host_os
|
---|
15346 |
|
---|
15347 | # The build system.
|
---|
15348 | build_alias=$build_alias
|
---|
15349 | build=$build
|
---|
15350 | build_os=$build_os
|
---|
15351 |
|
---|
15352 | # A sed program that does not truncate output.
|
---|
15353 | SED=$lt_SED
|
---|
15354 |
|
---|
15355 | # Sed that helps us avoid accidentally triggering echo(1) options like -n.
|
---|
15356 | Xsed="\$SED -e 1s/^X//"
|
---|
15357 |
|
---|
15358 | # A grep program that handles long lines.
|
---|
15359 | GREP=$lt_GREP
|
---|
15360 |
|
---|
15361 | # An ERE matcher.
|
---|
15362 | EGREP=$lt_EGREP
|
---|
15363 |
|
---|
15364 | # A literal string matcher.
|
---|
15365 | FGREP=$lt_FGREP
|
---|
15366 |
|
---|
15367 | # A BSD- or MS-compatible name lister.
|
---|
15368 | NM=$lt_NM
|
---|
15369 |
|
---|
15370 | # Whether we need soft or hard links.
|
---|
15371 | LN_S=$lt_LN_S
|
---|
15372 |
|
---|
15373 | # What is the maximum length of a command?
|
---|
15374 | max_cmd_len=$max_cmd_len
|
---|
15375 |
|
---|
15376 | # Object file suffix (normally "o").
|
---|
15377 | objext=$ac_objext
|
---|
15378 |
|
---|
15379 | # Executable file suffix (normally "").
|
---|
15380 | exeext=$exeext
|
---|
15381 |
|
---|
15382 | # whether the shell understands "unset".
|
---|
15383 | lt_unset=$lt_unset
|
---|
15384 |
|
---|
15385 | # turn spaces into newlines.
|
---|
15386 | SP2NL=$lt_lt_SP2NL
|
---|
15387 |
|
---|
15388 | # turn newlines into spaces.
|
---|
15389 | NL2SP=$lt_lt_NL2SP
|
---|
15390 |
|
---|
15391 | # convert \$build file names to \$host format.
|
---|
15392 | to_host_file_cmd=$lt_cv_to_host_file_cmd
|
---|
15393 |
|
---|
15394 | # convert \$build files to toolchain format.
|
---|
15395 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
---|
15396 |
|
---|
15397 | # An object symbol dumper.
|
---|
15398 | OBJDUMP=$lt_OBJDUMP
|
---|
15399 |
|
---|
15400 | # Method to check whether dependent libraries are shared objects.
|
---|
15401 | deplibs_check_method=$lt_deplibs_check_method
|
---|
15402 |
|
---|
15403 | # Command to use when deplibs_check_method = "file_magic".
|
---|
15404 | file_magic_cmd=$lt_file_magic_cmd
|
---|
15405 |
|
---|
15406 | # How to find potential files when deplibs_check_method = "file_magic".
|
---|
15407 | file_magic_glob=$lt_file_magic_glob
|
---|
15408 |
|
---|
15409 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
|
---|
15410 | want_nocaseglob=$lt_want_nocaseglob
|
---|
15411 |
|
---|
15412 | # DLL creation program.
|
---|
15413 | DLLTOOL=$lt_DLLTOOL
|
---|
15414 |
|
---|
15415 | # Command to associate shared and link libraries.
|
---|
15416 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
|
---|
15417 |
|
---|
15418 | # The archiver.
|
---|
15419 | AR=$lt_AR
|
---|
15420 |
|
---|
15421 | # Flags to create an archive.
|
---|
15422 | AR_FLAGS=$lt_AR_FLAGS
|
---|
15423 |
|
---|
15424 | # How to feed a file listing to the archiver.
|
---|
15425 | archiver_list_spec=$lt_archiver_list_spec
|
---|
15426 |
|
---|
15427 | # A symbol stripping program.
|
---|
15428 | STRIP=$lt_STRIP
|
---|
15429 |
|
---|
15430 | # Commands used to install an old-style archive.
|
---|
15431 | RANLIB=$lt_RANLIB
|
---|
15432 | old_postinstall_cmds=$lt_old_postinstall_cmds
|
---|
15433 | old_postuninstall_cmds=$lt_old_postuninstall_cmds
|
---|
15434 |
|
---|
15435 | # Whether to use a lock for old archive extraction.
|
---|
15436 | lock_old_archive_extraction=$lock_old_archive_extraction
|
---|
15437 |
|
---|
15438 | # A C compiler.
|
---|
15439 | LTCC=$lt_CC
|
---|
15440 |
|
---|
15441 | # LTCC compiler flags.
|
---|
15442 | LTCFLAGS=$lt_CFLAGS
|
---|
15443 |
|
---|
15444 | # Take the output of nm and produce a listing of raw symbols and C names.
|
---|
15445 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
|
---|
15446 |
|
---|
15447 | # Transform the output of nm in a proper C declaration.
|
---|
15448 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
|
---|
15449 |
|
---|
15450 | # Transform the output of nm into a list of symbols to manually relocate.
|
---|
15451 | global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
|
---|
15452 |
|
---|
15453 | # Transform the output of nm in a C name address pair.
|
---|
15454 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
---|
15455 |
|
---|
15456 | # Transform the output of nm in a C name address pair when lib prefix is needed.
|
---|
15457 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
|
---|
15458 |
|
---|
15459 | # The name lister interface.
|
---|
15460 | nm_interface=$lt_lt_cv_nm_interface
|
---|
15461 |
|
---|
15462 | # Specify filename containing input files for \$NM.
|
---|
15463 | nm_file_list_spec=$lt_nm_file_list_spec
|
---|
15464 |
|
---|
15465 | # The root where to search for dependent libraries,and where our libraries should be installed.
|
---|
15466 | lt_sysroot=$lt_sysroot
|
---|
15467 |
|
---|
15468 | # Command to truncate a binary pipe.
|
---|
15469 | lt_truncate_bin=$lt_lt_cv_truncate_bin
|
---|
15470 |
|
---|
15471 | # The name of the directory that contains temporary libtool files.
|
---|
15472 | objdir=$objdir
|
---|
15473 |
|
---|
15474 | # Used to examine libraries when file_magic_cmd begins with "file".
|
---|
15475 | MAGIC_CMD=$MAGIC_CMD
|
---|
15476 |
|
---|
15477 | # Must we lock files when doing compilation?
|
---|
15478 | need_locks=$lt_need_locks
|
---|
15479 |
|
---|
15480 | # Manifest tool.
|
---|
15481 | MANIFEST_TOOL=$lt_MANIFEST_TOOL
|
---|
15482 |
|
---|
15483 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
|
---|
15484 | DSYMUTIL=$lt_DSYMUTIL
|
---|
15485 |
|
---|
15486 | # Tool to change global to local symbols on Mac OS X.
|
---|
15487 | NMEDIT=$lt_NMEDIT
|
---|
15488 |
|
---|
15489 | # Tool to manipulate fat objects and archives on Mac OS X.
|
---|
15490 | LIPO=$lt_LIPO
|
---|
15491 |
|
---|
15492 | # ldd/readelf like tool for Mach-O binaries on Mac OS X.
|
---|
15493 | OTOOL=$lt_OTOOL
|
---|
15494 |
|
---|
15495 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
|
---|
15496 | OTOOL64=$lt_OTOOL64
|
---|
15497 |
|
---|
15498 | # Old archive suffix (normally "a").
|
---|
15499 | libext=$libext
|
---|
15500 |
|
---|
15501 | # Shared library suffix (normally ".so").
|
---|
15502 | shrext_cmds=$lt_shrext_cmds
|
---|
15503 |
|
---|
15504 | # The commands to extract the exported symbol list from a shared archive.
|
---|
15505 | extract_expsyms_cmds=$lt_extract_expsyms_cmds
|
---|
15506 |
|
---|
15507 | # Variables whose values should be saved in libtool wrapper scripts and
|
---|
15508 | # restored at link time.
|
---|
15509 | variables_saved_for_relink=$lt_variables_saved_for_relink
|
---|
15510 |
|
---|
15511 | # Do we need the "lib" prefix for modules?
|
---|
15512 | need_lib_prefix=$need_lib_prefix
|
---|
15513 |
|
---|
15514 | # Do we need a version for libraries?
|
---|
15515 | need_version=$need_version
|
---|
15516 |
|
---|
15517 | # Library versioning type.
|
---|
15518 | version_type=$version_type
|
---|
15519 |
|
---|
15520 | # Shared library runtime path variable.
|
---|
15521 | runpath_var=$runpath_var
|
---|
15522 |
|
---|
15523 | # Shared library path variable.
|
---|
15524 | shlibpath_var=$shlibpath_var
|
---|
15525 |
|
---|
15526 | # Is shlibpath searched before the hard-coded library search path?
|
---|
15527 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath
|
---|
15528 |
|
---|
15529 | # Format of library name prefix.
|
---|
15530 | libname_spec=$lt_libname_spec
|
---|
15531 |
|
---|
15532 | # List of archive names. First name is the real one, the rest are links.
|
---|
15533 | # The last name is the one that the linker finds with -lNAME
|
---|
15534 | library_names_spec=$lt_library_names_spec
|
---|
15535 |
|
---|
15536 | # The coded name of the library, if different from the real name.
|
---|
15537 | soname_spec=$lt_soname_spec
|
---|
15538 |
|
---|
15539 | # Permission mode override for installation of shared libraries.
|
---|
15540 | install_override_mode=$lt_install_override_mode
|
---|
15541 |
|
---|
15542 | # Command to use after installation of a shared archive.
|
---|
15543 | postinstall_cmds=$lt_postinstall_cmds
|
---|
15544 |
|
---|
15545 | # Command to use after uninstallation of a shared archive.
|
---|
15546 | postuninstall_cmds=$lt_postuninstall_cmds
|
---|
15547 |
|
---|
15548 | # Commands used to finish a libtool library installation in a directory.
|
---|
15549 | finish_cmds=$lt_finish_cmds
|
---|
15550 |
|
---|
15551 | # As "finish_cmds", except a single script fragment to be evaled but
|
---|
15552 | # not shown.
|
---|
15553 | finish_eval=$lt_finish_eval
|
---|
15554 |
|
---|
15555 | # Whether we should hardcode library paths into libraries.
|
---|
15556 | hardcode_into_libs=$hardcode_into_libs
|
---|
15557 |
|
---|
15558 | # Compile-time system search path for libraries.
|
---|
15559 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
|
---|
15560 |
|
---|
15561 | # Detected run-time system search path for libraries.
|
---|
15562 | sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
|
---|
15563 |
|
---|
15564 | # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
|
---|
15565 | configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
|
---|
15566 |
|
---|
15567 | # Whether dlopen is supported.
|
---|
15568 | dlopen_support=$enable_dlopen
|
---|
15569 |
|
---|
15570 | # Whether dlopen of programs is supported.
|
---|
15571 | dlopen_self=$enable_dlopen_self
|
---|
15572 |
|
---|
15573 | # Whether dlopen of statically linked programs is supported.
|
---|
15574 | dlopen_self_static=$enable_dlopen_self_static
|
---|
15575 |
|
---|
15576 | # Commands to strip libraries.
|
---|
15577 | old_striplib=$lt_old_striplib
|
---|
15578 | striplib=$lt_striplib
|
---|
15579 |
|
---|
15580 |
|
---|
15581 | # The linker used to build libraries.
|
---|
15582 | LD=$lt_LD
|
---|
15583 |
|
---|
15584 | # How to create reloadable object files.
|
---|
15585 | reload_flag=$lt_reload_flag
|
---|
15586 | reload_cmds=$lt_reload_cmds
|
---|
15587 |
|
---|
15588 | # Commands used to build an old-style archive.
|
---|
15589 | old_archive_cmds=$lt_old_archive_cmds
|
---|
15590 |
|
---|
15591 | # A language specific compiler.
|
---|
15592 | CC=$lt_compiler
|
---|
15593 |
|
---|
15594 | # Is the compiler the GNU compiler?
|
---|
15595 | with_gcc=$GCC
|
---|
15596 |
|
---|
15597 | # Compiler flag to turn off builtin functions.
|
---|
15598 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
|
---|
15599 |
|
---|
15600 | # Additional compiler flags for building library objects.
|
---|
15601 | pic_flag=$lt_lt_prog_compiler_pic
|
---|
15602 |
|
---|
15603 | # How to pass a linker flag through the compiler.
|
---|
15604 | wl=$lt_lt_prog_compiler_wl
|
---|
15605 |
|
---|
15606 | # Compiler flag to prevent dynamic linking.
|
---|
15607 | link_static_flag=$lt_lt_prog_compiler_static
|
---|
15608 |
|
---|
15609 | # Does compiler simultaneously support -c and -o options?
|
---|
15610 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o
|
---|
15611 |
|
---|
15612 | # Whether or not to add -lc for building shared libraries.
|
---|
15613 | build_libtool_need_lc=$archive_cmds_need_lc
|
---|
15614 |
|
---|
15615 | # Whether or not to disallow shared libs when runtime libs are static.
|
---|
15616 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
|
---|
15617 |
|
---|
15618 | # Compiler flag to allow reflexive dlopens.
|
---|
15619 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
|
---|
15620 |
|
---|
15621 | # Compiler flag to generate shared objects directly from archives.
|
---|
15622 | whole_archive_flag_spec=$lt_whole_archive_flag_spec
|
---|
15623 |
|
---|
15624 | # Whether the compiler copes with passing no objects directly.
|
---|
15625 | compiler_needs_object=$lt_compiler_needs_object
|
---|
15626 |
|
---|
15627 | # Create an old-style archive from a shared archive.
|
---|
15628 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
|
---|
15629 |
|
---|
15630 | # Create a temporary old-style archive to link instead of a shared archive.
|
---|
15631 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
|
---|
15632 |
|
---|
15633 | # Commands used to build a shared archive.
|
---|
15634 | archive_cmds=$lt_archive_cmds
|
---|
15635 | archive_expsym_cmds=$lt_archive_expsym_cmds
|
---|
15636 |
|
---|
15637 | # Commands used to build a loadable module if different from building
|
---|
15638 | # a shared archive.
|
---|
15639 | module_cmds=$lt_module_cmds
|
---|
15640 | module_expsym_cmds=$lt_module_expsym_cmds
|
---|
15641 |
|
---|
15642 | # Whether we are building with GNU ld or not.
|
---|
15643 | with_gnu_ld=$lt_with_gnu_ld
|
---|
15644 |
|
---|
15645 | # Flag that allows shared libraries with undefined symbols to be built.
|
---|
15646 | allow_undefined_flag=$lt_allow_undefined_flag
|
---|
15647 |
|
---|
15648 | # Flag that enforces no undefined symbols.
|
---|
15649 | no_undefined_flag=$lt_no_undefined_flag
|
---|
15650 |
|
---|
15651 | # Flag to hardcode \$libdir into a binary during linking.
|
---|
15652 | # This must work even if \$libdir does not exist
|
---|
15653 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
|
---|
15654 |
|
---|
15655 | # Whether we need a single "-rpath" flag with a separated argument.
|
---|
15656 | hardcode_libdir_separator=$lt_hardcode_libdir_separator
|
---|
15657 |
|
---|
15658 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
|
---|
15659 | # DIR into the resulting binary.
|
---|
15660 | hardcode_direct=$hardcode_direct
|
---|
15661 |
|
---|
15662 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
|
---|
15663 | # DIR into the resulting binary and the resulting library dependency is
|
---|
15664 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the
|
---|
15665 | # library is relocated.
|
---|
15666 | hardcode_direct_absolute=$hardcode_direct_absolute
|
---|
15667 |
|
---|
15668 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
|
---|
15669 | # into the resulting binary.
|
---|
15670 | hardcode_minus_L=$hardcode_minus_L
|
---|
15671 |
|
---|
15672 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
|
---|
15673 | # into the resulting binary.
|
---|
15674 | hardcode_shlibpath_var=$hardcode_shlibpath_var
|
---|
15675 |
|
---|
15676 | # Set to "yes" if building a shared library automatically hardcodes DIR
|
---|
15677 | # into the library and all subsequent libraries and executables linked
|
---|
15678 | # against it.
|
---|
15679 | hardcode_automatic=$hardcode_automatic
|
---|
15680 |
|
---|
15681 | # Set to yes if linker adds runtime paths of dependent libraries
|
---|
15682 | # to runtime path list.
|
---|
15683 | inherit_rpath=$inherit_rpath
|
---|
15684 |
|
---|
15685 | # Whether libtool must link a program against all its dependency libraries.
|
---|
15686 | link_all_deplibs=$link_all_deplibs
|
---|
15687 |
|
---|
15688 | # Set to "yes" if exported symbols are required.
|
---|
15689 | always_export_symbols=$always_export_symbols
|
---|
15690 |
|
---|
15691 | # The commands to list exported symbols.
|
---|
15692 | export_symbols_cmds=$lt_export_symbols_cmds
|
---|
15693 |
|
---|
15694 | # Symbols that should not be listed in the preloaded symbols.
|
---|
15695 | exclude_expsyms=$lt_exclude_expsyms
|
---|
15696 |
|
---|
15697 | # Symbols that must always be exported.
|
---|
15698 | include_expsyms=$lt_include_expsyms
|
---|
15699 |
|
---|
15700 | # Commands necessary for linking programs (against libraries) with templates.
|
---|
15701 | prelink_cmds=$lt_prelink_cmds
|
---|
15702 |
|
---|
15703 | # Commands necessary for finishing linking programs.
|
---|
15704 | postlink_cmds=$lt_postlink_cmds
|
---|
15705 |
|
---|
15706 | # Specify filename containing input files.
|
---|
15707 | file_list_spec=$lt_file_list_spec
|
---|
15708 |
|
---|
15709 | # How to hardcode a shared library path into an executable.
|
---|
15710 | hardcode_action=$hardcode_action
|
---|
15711 |
|
---|
15712 | # ### END LIBTOOL CONFIG
|
---|
15713 |
|
---|
15714 | _LT_EOF
|
---|
15715 |
|
---|
15716 | cat <<'_LT_EOF' >> "$cfgfile"
|
---|
15717 |
|
---|
15718 | # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
|
---|
15719 |
|
---|
15720 | # func_munge_path_list VARIABLE PATH
|
---|
15721 | # -----------------------------------
|
---|
15722 | # VARIABLE is name of variable containing _space_ separated list of
|
---|
15723 | # directories to be munged by the contents of PATH, which is string
|
---|
15724 | # having a format:
|
---|
15725 | # "DIR[:DIR]:"
|
---|
15726 | # string "DIR[ DIR]" will be prepended to VARIABLE
|
---|
15727 | # ":DIR[:DIR]"
|
---|
15728 | # string "DIR[ DIR]" will be appended to VARIABLE
|
---|
15729 | # "DIRP[:DIRP]::[DIRA:]DIRA"
|
---|
15730 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
|
---|
15731 | # "DIRA[ DIRA]" will be appended to VARIABLE
|
---|
15732 | # "DIR[:DIR]"
|
---|
15733 | # VARIABLE will be replaced by "DIR[ DIR]"
|
---|
15734 | func_munge_path_list ()
|
---|
15735 | {
|
---|
15736 | case x$2 in
|
---|
15737 | x)
|
---|
15738 | ;;
|
---|
15739 | *:)
|
---|
15740 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
|
---|
15741 | ;;
|
---|
15742 | x:*)
|
---|
15743 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
|
---|
15744 | ;;
|
---|
15745 | *::*)
|
---|
15746 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
|
---|
15747 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
|
---|
15748 | ;;
|
---|
15749 | *)
|
---|
15750 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
|
---|
15751 | ;;
|
---|
15752 | esac
|
---|
15753 | }
|
---|
15754 |
|
---|
15755 |
|
---|
15756 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
|
---|
15757 | func_cc_basename ()
|
---|
15758 | {
|
---|
15759 | for cc_temp in $*""; do
|
---|
15760 | case $cc_temp in
|
---|
15761 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
---|
15762 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
---|
15763 | \-*) ;;
|
---|
15764 | *) break;;
|
---|
15765 | esac
|
---|
15766 | done
|
---|
15767 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
|
---|
15768 | }
|
---|
15769 |
|
---|
15770 |
|
---|
15771 | # ### END FUNCTIONS SHARED WITH CONFIGURE
|
---|
15772 |
|
---|
15773 | _LT_EOF
|
---|
15774 |
|
---|
15775 | case $host_os in
|
---|
15776 | aix3*)
|
---|
15777 | cat <<\_LT_EOF >> "$cfgfile"
|
---|
15778 | # AIX sometimes has problems with the GCC collect2 program. For some
|
---|
15779 | # reason, if we set the COLLECT_NAMES environment variable, the problems
|
---|
15780 | # vanish in a puff of smoke.
|
---|
15781 | if test set != "${COLLECT_NAMES+set}"; then
|
---|
15782 | COLLECT_NAMES=
|
---|
15783 | export COLLECT_NAMES
|
---|
15784 | fi
|
---|
15785 | _LT_EOF
|
---|
15786 | ;;
|
---|
15787 | esac
|
---|
15788 |
|
---|
15789 |
|
---|
15790 | ltmain=$ac_aux_dir/ltmain.sh
|
---|
15791 |
|
---|
15792 |
|
---|
15793 | # We use sed instead of cat because bash on DJGPP gets confused if
|
---|
15794 | # if finds mixed CR/LF and LF-only lines. Since sed operates in
|
---|
15795 | # text mode, it properly converts lines to CR/LF. This bash problem
|
---|
15796 | # is reportedly fixed, but why not run on old versions too?
|
---|
15797 | sed '$q' "$ltmain" >> "$cfgfile" \
|
---|
15798 | || (rm -f "$cfgfile"; exit 1)
|
---|
15799 |
|
---|
15800 | mv -f "$cfgfile" "$ofile" ||
|
---|
15801 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
|
---|
15802 | chmod +x "$ofile"
|
---|
15803 |
|
---|
15804 | ;;
|
---|
15805 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
|
---|
15806 | # Older Autoconf quotes --file arguments for eval, but not when files
|
---|
15807 | # are listed without --file. Let's play safe and only enable the eval
|
---|
15808 | # if we detect the quoting.
|
---|
15809 | # TODO: see whether this extra hack can be removed once we start
|
---|
15810 | # requiring Autoconf 2.70 or later.
|
---|
15811 | case $CONFIG_FILES in #(
|
---|
15812 | *\'*) :
|
---|
15813 | eval set x "$CONFIG_FILES" ;; #(
|
---|
15814 | *) :
|
---|
15815 | set x $CONFIG_FILES ;; #(
|
---|
15816 | *) :
|
---|
15817 | ;;
|
---|
15818 | esac
|
---|
15819 | shift
|
---|
15820 | # Used to flag and report bootstrapping failures.
|
---|
15821 | am_rc=0
|
---|
15822 | for am_mf
|
---|
15823 | do
|
---|
15824 | # Strip MF so we end up with the name of the file.
|
---|
15825 | am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
|
---|
15826 | # Check whether this is an Automake generated Makefile which includes
|
---|
15827 | # dependency-tracking related rules and includes.
|
---|
15828 | # Grep'ing the whole file directly is not great: AIX grep has a line
|
---|
15829 | # limit of 2048, but all sed's we know have understand at least 4000.
|
---|
15830 | sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
|
---|
15831 | || continue
|
---|
15832 | am_dirpart=`$as_dirname -- "$am_mf" ||
|
---|
15833 | $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
15834 | X"$am_mf" : 'X\(//\)[^/]' \| \
|
---|
15835 | X"$am_mf" : 'X\(//\)$' \| \
|
---|
15836 | X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
15837 | $as_echo X"$am_mf" |
|
---|
15838 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
15839 | s//\1/
|
---|
15840 | q
|
---|
15841 | }
|
---|
15842 | /^X\(\/\/\)[^/].*/{
|
---|
15843 | s//\1/
|
---|
15844 | q
|
---|
15845 | }
|
---|
15846 | /^X\(\/\/\)$/{
|
---|
15847 | s//\1/
|
---|
15848 | q
|
---|
15849 | }
|
---|
15850 | /^X\(\/\).*/{
|
---|
15851 | s//\1/
|
---|
15852 | q
|
---|
15853 | }
|
---|
15854 | s/.*/./; q'`
|
---|
15855 | am_filepart=`$as_basename -- "$am_mf" ||
|
---|
15856 | $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
15857 | X"$am_mf" : 'X\(//\)$' \| \
|
---|
15858 | X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
15859 | $as_echo X/"$am_mf" |
|
---|
15860 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
15861 | s//\1/
|
---|
15862 | q
|
---|
15863 | }
|
---|
15864 | /^X\/\(\/\/\)$/{
|
---|
15865 | s//\1/
|
---|
15866 | q
|
---|
15867 | }
|
---|
15868 | /^X\/\(\/\).*/{
|
---|
15869 | s//\1/
|
---|
15870 | q
|
---|
15871 | }
|
---|
15872 | s/.*/./; q'`
|
---|
15873 | { echo "$as_me:$LINENO: cd "$am_dirpart" \
|
---|
15874 | && sed -e '/# am--include-marker/d' "$am_filepart" \
|
---|
15875 | | $MAKE -f - am--depfiles" >&5
|
---|
15876 | (cd "$am_dirpart" \
|
---|
15877 | && sed -e '/# am--include-marker/d' "$am_filepart" \
|
---|
15878 | | $MAKE -f - am--depfiles) >&5 2>&5
|
---|
15879 | ac_status=$?
|
---|
15880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
15881 | (exit $ac_status); } || am_rc=$?
|
---|
15882 | done
|
---|
15883 | if test $am_rc -ne 0; then
|
---|
15884 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
---|
15885 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
---|
15886 | as_fn_error $? "Something went wrong bootstrapping makefile fragments
|
---|
15887 | for automatic dependency tracking. If GNU make was not used, consider
|
---|
15888 | re-running the configure script with MAKE=\"gmake\" (or whatever is
|
---|
15889 | necessary). You can also try re-running configure with the
|
---|
15890 | '--disable-dependency-tracking' option to at least be able to build
|
---|
15891 | the package (albeit without support for automatic dependency tracking).
|
---|
15892 | See \`config.log' for more details" "$LINENO" 5; }
|
---|
15893 | fi
|
---|
15894 | { am_dirpart=; unset am_dirpart;}
|
---|
15895 | { am_filepart=; unset am_filepart;}
|
---|
15896 | { am_mf=; unset am_mf;}
|
---|
15897 | { am_rc=; unset am_rc;}
|
---|
15898 | rm -f conftest-deps.mk
|
---|
15899 | }
|
---|
15900 | ;;
|
---|
15901 |
|
---|
15902 | esac
|
---|
15903 | done # for ac_tag
|
---|
15904 |
|
---|
15905 |
|
---|
15906 | as_fn_exit 0
|
---|
15907 | _ACEOF
|
---|
15908 | ac_clean_files=$ac_clean_files_save
|
---|
15909 |
|
---|
15910 | test $ac_write_fail = 0 ||
|
---|
15911 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
|
---|
15912 |
|
---|
15913 |
|
---|
15914 | # configure is writing to config.log, and then calls config.status.
|
---|
15915 | # config.status does its own redirection, appending to config.log.
|
---|
15916 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
15917 | # by configure, so config.status won't be able to write to it; its
|
---|
15918 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
15919 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
15920 | # appended to by config.status. When coming back to configure, we
|
---|
15921 | # need to make the FD available again.
|
---|
15922 | if test "$no_create" != yes; then
|
---|
15923 | ac_cs_success=:
|
---|
15924 | ac_config_status_args=
|
---|
15925 | test "$silent" = yes &&
|
---|
15926 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
15927 | exec 5>/dev/null
|
---|
15928 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
15929 | exec 5>>config.log
|
---|
15930 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
15931 | # would make configure fail if this is the last instruction.
|
---|
15932 | $ac_cs_success || as_fn_exit 1
|
---|
15933 | fi
|
---|
15934 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
|
---|
15935 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
---|
15936 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
---|
15937 | fi
|
---|
15938 |
|
---|