1 | #! /bin/sh
|
---|
2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
3 | # Generated by GNU Autoconf 2.72 for libpng 1.6.45.
|
---|
4 | #
|
---|
5 | # Report bugs to <[email protected]>.
|
---|
6 | #
|
---|
7 | #
|
---|
8 | # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
|
---|
9 | # Inc.
|
---|
10 | #
|
---|
11 | #
|
---|
12 | # This configure script is free software; the Free Software Foundation
|
---|
13 | # gives unlimited permission to copy, distribute and modify it.
|
---|
14 | ## -------------------- ##
|
---|
15 | ## M4sh Initialization. ##
|
---|
16 | ## -------------------- ##
|
---|
17 |
|
---|
18 | # Be more Bourne compatible
|
---|
19 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
20 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
|
---|
21 | then :
|
---|
22 | emulate sh
|
---|
23 | NULLCMD=:
|
---|
24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
25 | # is contrary to our usage. Disable this feature.
|
---|
26 | alias -g '${1+"$@"}'='"$@"'
|
---|
27 | setopt NO_GLOB_SUBST
|
---|
28 | else case e in #(
|
---|
29 | e) case `(set -o) 2>/dev/null` in #(
|
---|
30 | *posix*) :
|
---|
31 | set -o posix ;; #(
|
---|
32 | *) :
|
---|
33 | ;;
|
---|
34 | esac ;;
|
---|
35 | esac
|
---|
36 | fi
|
---|
37 |
|
---|
38 |
|
---|
39 |
|
---|
40 | # Reset variables that may have inherited troublesome values from
|
---|
41 | # the environment.
|
---|
42 |
|
---|
43 | # IFS needs to be set, to space, tab, and newline, in precisely that order.
|
---|
44 | # (If _AS_PATH_WALK were called with IFS unset, it would have the
|
---|
45 | # side effect of setting IFS to empty, thus disabling word splitting.)
|
---|
46 | # Quoting is to prevent editors from complaining about space-tab.
|
---|
47 | as_nl='
|
---|
48 | '
|
---|
49 | export as_nl
|
---|
50 | IFS=" "" $as_nl"
|
---|
51 |
|
---|
52 | PS1='$ '
|
---|
53 | PS2='> '
|
---|
54 | PS4='+ '
|
---|
55 |
|
---|
56 | # Ensure predictable behavior from utilities with locale-dependent output.
|
---|
57 | LC_ALL=C
|
---|
58 | export LC_ALL
|
---|
59 | LANGUAGE=C
|
---|
60 | export LANGUAGE
|
---|
61 |
|
---|
62 | # We cannot yet rely on "unset" to work, but we need these variables
|
---|
63 | # to be unset--not just set to an empty or harmless value--now, to
|
---|
64 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
|
---|
65 | # also avoids known problems related to "unset" and subshell syntax
|
---|
66 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
|
---|
67 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
|
---|
68 | do eval test \${$as_var+y} \
|
---|
69 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
70 | done
|
---|
71 |
|
---|
72 | # Ensure that fds 0, 1, and 2 are open.
|
---|
73 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
|
---|
74 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
|
---|
75 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
|
---|
76 |
|
---|
77 | # The user is always right.
|
---|
78 | if ${PATH_SEPARATOR+false} :; then
|
---|
79 | PATH_SEPARATOR=:
|
---|
80 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
---|
81 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
---|
82 | PATH_SEPARATOR=';'
|
---|
83 | }
|
---|
84 | fi
|
---|
85 |
|
---|
86 |
|
---|
87 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
88 | as_myself=
|
---|
89 | case $0 in #((
|
---|
90 | *[\\/]* ) as_myself=$0 ;;
|
---|
91 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
92 | for as_dir in $PATH
|
---|
93 | do
|
---|
94 | IFS=$as_save_IFS
|
---|
95 | case $as_dir in #(((
|
---|
96 | '') as_dir=./ ;;
|
---|
97 | */) ;;
|
---|
98 | *) as_dir=$as_dir/ ;;
|
---|
99 | esac
|
---|
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 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
113 | exit 1
|
---|
114 | fi
|
---|
115 |
|
---|
116 |
|
---|
117 | # Use a proper internal environment variable to ensure we don't fall
|
---|
118 | # into an infinite loop, continuously re-executing ourselves.
|
---|
119 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
|
---|
120 | _as_can_reexec=no; export _as_can_reexec;
|
---|
121 | # We cannot yet assume a decent shell, so we have to provide a
|
---|
122 | # neutralization value for shells without unset; and this also
|
---|
123 | # works around shells that cannot unset nonexistent variables.
|
---|
124 | # Preserve -v and -x to the replacement shell.
|
---|
125 | BASH_ENV=/dev/null
|
---|
126 | ENV=/dev/null
|
---|
127 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
---|
128 | case $- in # ((((
|
---|
129 | *v*x* | *x*v* ) as_opts=-vx ;;
|
---|
130 | *v* ) as_opts=-v ;;
|
---|
131 | *x* ) as_opts=-x ;;
|
---|
132 | * ) as_opts= ;;
|
---|
133 | esac
|
---|
134 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
|
---|
135 | # Admittedly, this is quite paranoid, since all the known shells bail
|
---|
136 | # out after a failed 'exec'.
|
---|
137 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
|
---|
138 | exit 255
|
---|
139 | fi
|
---|
140 | # We don't want this to propagate to other subprocesses.
|
---|
141 | { _as_can_reexec=; unset _as_can_reexec;}
|
---|
142 | if test "x$CONFIG_SHELL" = x; then
|
---|
143 | as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
|
---|
144 | then :
|
---|
145 | emulate sh
|
---|
146 | NULLCMD=:
|
---|
147 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
|
---|
148 | # is contrary to our usage. Disable this feature.
|
---|
149 | alias -g '\${1+\"\$@\"}'='\"\$@\"'
|
---|
150 | setopt NO_GLOB_SUBST
|
---|
151 | else case e in #(
|
---|
152 | e) case \`(set -o) 2>/dev/null\` in #(
|
---|
153 | *posix*) :
|
---|
154 | set -o posix ;; #(
|
---|
155 | *) :
|
---|
156 | ;;
|
---|
157 | esac ;;
|
---|
158 | esac
|
---|
159 | fi
|
---|
160 | "
|
---|
161 | as_required="as_fn_return () { (exit \$1); }
|
---|
162 | as_fn_success () { as_fn_return 0; }
|
---|
163 | as_fn_failure () { as_fn_return 1; }
|
---|
164 | as_fn_ret_success () { return 0; }
|
---|
165 | as_fn_ret_failure () { return 1; }
|
---|
166 |
|
---|
167 | exitcode=0
|
---|
168 | as_fn_success || { exitcode=1; echo as_fn_success failed.; }
|
---|
169 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
|
---|
170 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
|
---|
171 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
|
---|
172 | if ( set x; as_fn_ret_success y && test x = \"\$1\" )
|
---|
173 | then :
|
---|
174 |
|
---|
175 | else case e in #(
|
---|
176 | e) exitcode=1; echo positional parameters were not saved. ;;
|
---|
177 | esac
|
---|
178 | fi
|
---|
179 | test x\$exitcode = x0 || exit 1
|
---|
180 | blah=\$(echo \$(echo blah))
|
---|
181 | test x\"\$blah\" = xblah || exit 1
|
---|
182 | test -x / || exit 1"
|
---|
183 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
|
---|
184 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
|
---|
185 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
|
---|
186 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
|
---|
187 | test \$(( 1 + 1 )) = 2 || exit 1
|
---|
188 |
|
---|
189 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
|
---|
190 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
191 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
|
---|
192 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
|
---|
193 | PATH=/empty FPATH=/empty; export PATH FPATH
|
---|
194 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
|
---|
195 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
|
---|
196 | if (eval "$as_required") 2>/dev/null
|
---|
197 | then :
|
---|
198 | as_have_required=yes
|
---|
199 | else case e in #(
|
---|
200 | e) as_have_required=no ;;
|
---|
201 | esac
|
---|
202 | fi
|
---|
203 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
|
---|
204 | then :
|
---|
205 |
|
---|
206 | else case e in #(
|
---|
207 | e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
208 | as_found=false
|
---|
209 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
210 | do
|
---|
211 | IFS=$as_save_IFS
|
---|
212 | case $as_dir in #(((
|
---|
213 | '') as_dir=./ ;;
|
---|
214 | */) ;;
|
---|
215 | *) as_dir=$as_dir/ ;;
|
---|
216 | esac
|
---|
217 | as_found=:
|
---|
218 | case $as_dir in #(
|
---|
219 | /*)
|
---|
220 | for as_base in sh bash ksh sh5; do
|
---|
221 | # Try only shells that exist, to save several forks.
|
---|
222 | as_shell=$as_dir$as_base
|
---|
223 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
|
---|
224 | as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
|
---|
225 | then :
|
---|
226 | CONFIG_SHELL=$as_shell as_have_required=yes
|
---|
227 | if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
|
---|
228 | then :
|
---|
229 | break 2
|
---|
230 | fi
|
---|
231 | fi
|
---|
232 | done;;
|
---|
233 | esac
|
---|
234 | as_found=false
|
---|
235 | done
|
---|
236 | IFS=$as_save_IFS
|
---|
237 | if $as_found
|
---|
238 | then :
|
---|
239 |
|
---|
240 | else case e in #(
|
---|
241 | e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
|
---|
242 | as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
|
---|
243 | then :
|
---|
244 | CONFIG_SHELL=$SHELL as_have_required=yes
|
---|
245 | fi ;;
|
---|
246 | esac
|
---|
247 | fi
|
---|
248 |
|
---|
249 |
|
---|
250 | if test "x$CONFIG_SHELL" != x
|
---|
251 | then :
|
---|
252 | export CONFIG_SHELL
|
---|
253 | # We cannot yet assume a decent shell, so we have to provide a
|
---|
254 | # neutralization value for shells without unset; and this also
|
---|
255 | # works around shells that cannot unset nonexistent variables.
|
---|
256 | # Preserve -v and -x to the replacement shell.
|
---|
257 | BASH_ENV=/dev/null
|
---|
258 | ENV=/dev/null
|
---|
259 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
---|
260 | case $- in # ((((
|
---|
261 | *v*x* | *x*v* ) as_opts=-vx ;;
|
---|
262 | *v* ) as_opts=-v ;;
|
---|
263 | *x* ) as_opts=-x ;;
|
---|
264 | * ) as_opts= ;;
|
---|
265 | esac
|
---|
266 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
|
---|
267 | # Admittedly, this is quite paranoid, since all the known shells bail
|
---|
268 | # out after a failed 'exec'.
|
---|
269 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
|
---|
270 | exit 255
|
---|
271 | fi
|
---|
272 |
|
---|
273 | if test x$as_have_required = xno
|
---|
274 | then :
|
---|
275 | printf "%s\n" "$0: This script requires a shell more modern than all"
|
---|
276 | printf "%s\n" "$0: the shells that I found on your system."
|
---|
277 | if test ${ZSH_VERSION+y} ; then
|
---|
278 | printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
|
---|
279 | printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
|
---|
280 | else
|
---|
281 | printf "%s\n" "$0: Please tell [email protected] and
|
---|
282 | $0: [email protected] about your
|
---|
283 | $0: system, including any error possibly output before this
|
---|
284 | $0: message. Then install a modern shell, or manually run
|
---|
285 | $0: the script under such a shell if you do have one."
|
---|
286 | fi
|
---|
287 | exit 1
|
---|
288 | fi ;;
|
---|
289 | esac
|
---|
290 | fi
|
---|
291 | fi
|
---|
292 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
293 | export SHELL
|
---|
294 | # Unset more variables known to interfere with behavior of common tools.
|
---|
295 | CLICOLOR_FORCE= GREP_OPTIONS=
|
---|
296 | unset CLICOLOR_FORCE GREP_OPTIONS
|
---|
297 |
|
---|
298 | ## --------------------- ##
|
---|
299 | ## M4sh Shell Functions. ##
|
---|
300 | ## --------------------- ##
|
---|
301 | # as_fn_unset VAR
|
---|
302 | # ---------------
|
---|
303 | # Portably unset VAR.
|
---|
304 | as_fn_unset ()
|
---|
305 | {
|
---|
306 | { eval $1=; unset $1;}
|
---|
307 | }
|
---|
308 | as_unset=as_fn_unset
|
---|
309 |
|
---|
310 |
|
---|
311 | # as_fn_set_status STATUS
|
---|
312 | # -----------------------
|
---|
313 | # Set $? to STATUS, without forking.
|
---|
314 | as_fn_set_status ()
|
---|
315 | {
|
---|
316 | return $1
|
---|
317 | } # as_fn_set_status
|
---|
318 |
|
---|
319 | # as_fn_exit STATUS
|
---|
320 | # -----------------
|
---|
321 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
322 | as_fn_exit ()
|
---|
323 | {
|
---|
324 | set +e
|
---|
325 | as_fn_set_status $1
|
---|
326 | exit $1
|
---|
327 | } # as_fn_exit
|
---|
328 |
|
---|
329 | # as_fn_mkdir_p
|
---|
330 | # -------------
|
---|
331 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
332 | as_fn_mkdir_p ()
|
---|
333 | {
|
---|
334 |
|
---|
335 | case $as_dir in #(
|
---|
336 | -*) as_dir=./$as_dir;;
|
---|
337 | esac
|
---|
338 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
339 | as_dirs=
|
---|
340 | while :; do
|
---|
341 | case $as_dir in #(
|
---|
342 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
343 | *) as_qdir=$as_dir;;
|
---|
344 | esac
|
---|
345 | as_dirs="'$as_qdir' $as_dirs"
|
---|
346 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
347 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
348 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
349 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
350 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
351 | printf "%s\n" X"$as_dir" |
|
---|
352 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
353 | s//\1/
|
---|
354 | q
|
---|
355 | }
|
---|
356 | /^X\(\/\/\)[^/].*/{
|
---|
357 | s//\1/
|
---|
358 | q
|
---|
359 | }
|
---|
360 | /^X\(\/\/\)$/{
|
---|
361 | s//\1/
|
---|
362 | q
|
---|
363 | }
|
---|
364 | /^X\(\/\).*/{
|
---|
365 | s//\1/
|
---|
366 | q
|
---|
367 | }
|
---|
368 | s/.*/./; q'`
|
---|
369 | test -d "$as_dir" && break
|
---|
370 | done
|
---|
371 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
372 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
---|
373 |
|
---|
374 |
|
---|
375 | } # as_fn_mkdir_p
|
---|
376 |
|
---|
377 | # as_fn_executable_p FILE
|
---|
378 | # -----------------------
|
---|
379 | # Test if FILE is an executable regular file.
|
---|
380 | as_fn_executable_p ()
|
---|
381 | {
|
---|
382 | test -f "$1" && test -x "$1"
|
---|
383 | } # as_fn_executable_p
|
---|
384 | # as_fn_append VAR VALUE
|
---|
385 | # ----------------------
|
---|
386 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
387 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
388 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
389 | # implementations.
|
---|
390 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
|
---|
391 | then :
|
---|
392 | eval 'as_fn_append ()
|
---|
393 | {
|
---|
394 | eval $1+=\$2
|
---|
395 | }'
|
---|
396 | else case e in #(
|
---|
397 | e) as_fn_append ()
|
---|
398 | {
|
---|
399 | eval $1=\$$1\$2
|
---|
400 | } ;;
|
---|
401 | esac
|
---|
402 | fi # as_fn_append
|
---|
403 |
|
---|
404 | # as_fn_arith ARG...
|
---|
405 | # ------------------
|
---|
406 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
407 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
408 | # must be portable across $(()) and expr.
|
---|
409 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
|
---|
410 | then :
|
---|
411 | eval 'as_fn_arith ()
|
---|
412 | {
|
---|
413 | as_val=$(( $* ))
|
---|
414 | }'
|
---|
415 | else case e in #(
|
---|
416 | e) as_fn_arith ()
|
---|
417 | {
|
---|
418 | as_val=`expr "$@" || test $? -eq 1`
|
---|
419 | } ;;
|
---|
420 | esac
|
---|
421 | fi # as_fn_arith
|
---|
422 |
|
---|
423 |
|
---|
424 | # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
---|
425 | # ----------------------------------------
|
---|
426 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
427 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
428 | # script with STATUS, using 1 if that was 0.
|
---|
429 | as_fn_error ()
|
---|
430 | {
|
---|
431 | as_status=$1; test $as_status -eq 0 && as_status=1
|
---|
432 | if test "$4"; then
|
---|
433 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
434 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
---|
435 | fi
|
---|
436 | printf "%s\n" "$as_me: error: $2" >&2
|
---|
437 | as_fn_exit $as_status
|
---|
438 | } # as_fn_error
|
---|
439 |
|
---|
440 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
441 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
442 | as_expr=expr
|
---|
443 | else
|
---|
444 | as_expr=false
|
---|
445 | fi
|
---|
446 |
|
---|
447 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
448 | as_basename=basename
|
---|
449 | else
|
---|
450 | as_basename=false
|
---|
451 | fi
|
---|
452 |
|
---|
453 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
454 | as_dirname=dirname
|
---|
455 | else
|
---|
456 | as_dirname=false
|
---|
457 | fi
|
---|
458 |
|
---|
459 | as_me=`$as_basename -- "$0" ||
|
---|
460 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
461 | X"$0" : 'X\(//\)$' \| \
|
---|
462 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
463 | printf "%s\n" X/"$0" |
|
---|
464 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
465 | s//\1/
|
---|
466 | q
|
---|
467 | }
|
---|
468 | /^X\/\(\/\/\)$/{
|
---|
469 | s//\1/
|
---|
470 | q
|
---|
471 | }
|
---|
472 | /^X\/\(\/\).*/{
|
---|
473 | s//\1/
|
---|
474 | q
|
---|
475 | }
|
---|
476 | s/.*/./; q'`
|
---|
477 |
|
---|
478 | # Avoid depending upon Character Ranges.
|
---|
479 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
480 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
481 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
482 | as_cr_digits='0123456789'
|
---|
483 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
484 |
|
---|
485 |
|
---|
486 | as_lineno_1=$LINENO as_lineno_1a=$LINENO
|
---|
487 | as_lineno_2=$LINENO as_lineno_2a=$LINENO
|
---|
488 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
|
---|
489 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
|
---|
490 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
|
---|
491 | sed -n '
|
---|
492 | p
|
---|
493 | /[$]LINENO/=
|
---|
494 | ' <$as_myself |
|
---|
495 | sed '
|
---|
496 | t clear
|
---|
497 | :clear
|
---|
498 | s/[$]LINENO.*/&-/
|
---|
499 | t lineno
|
---|
500 | b
|
---|
501 | :lineno
|
---|
502 | N
|
---|
503 | :loop
|
---|
504 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
---|
505 | t loop
|
---|
506 | s/-\n.*//
|
---|
507 | ' >$as_me.lineno &&
|
---|
508 | chmod +x "$as_me.lineno" ||
|
---|
509 | { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
|
---|
510 |
|
---|
511 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
|
---|
512 | # already done that, so ensure we don't try to do so again and fall
|
---|
513 | # in an infinite loop. This has already happened in practice.
|
---|
514 | _as_can_reexec=no; export _as_can_reexec
|
---|
515 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
516 | # (the dirname of $[0] is not the place where we might find the
|
---|
517 | # original and so on. Autoconf is especially sensitive to this).
|
---|
518 | . "./$as_me.lineno"
|
---|
519 | # Exit status is that of the last command.
|
---|
520 | exit
|
---|
521 | }
|
---|
522 |
|
---|
523 |
|
---|
524 | # Determine whether it's possible to make 'echo' print without a newline.
|
---|
525 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
|
---|
526 | # for compatibility with existing Makefiles.
|
---|
527 | ECHO_C= ECHO_N= ECHO_T=
|
---|
528 | case `echo -n x` in #(((((
|
---|
529 | -n*)
|
---|
530 | case `echo 'xy\c'` in
|
---|
531 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
532 | xy) ECHO_C='\c';;
|
---|
533 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
534 | ECHO_T=' ';;
|
---|
535 | esac;;
|
---|
536 | *)
|
---|
537 | ECHO_N='-n';;
|
---|
538 | esac
|
---|
539 |
|
---|
540 | # For backward compatibility with old third-party macros, we provide
|
---|
541 | # the shell variables $as_echo and $as_echo_n. New code should use
|
---|
542 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
|
---|
543 | as_echo='printf %s\n'
|
---|
544 | as_echo_n='printf %s'
|
---|
545 |
|
---|
546 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
547 | if test -d conf$$.dir; then
|
---|
548 | rm -f conf$$.dir/conf$$.file
|
---|
549 | else
|
---|
550 | rm -f conf$$.dir
|
---|
551 | mkdir conf$$.dir 2>/dev/null
|
---|
552 | fi
|
---|
553 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
554 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
555 | as_ln_s='ln -s'
|
---|
556 | # ... but there are two gotchas:
|
---|
557 | # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
|
---|
558 | # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
|
---|
559 | # In both cases, we have to default to 'cp -pR'.
|
---|
560 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
561 | as_ln_s='cp -pR'
|
---|
562 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
563 | as_ln_s=ln
|
---|
564 | else
|
---|
565 | as_ln_s='cp -pR'
|
---|
566 | fi
|
---|
567 | else
|
---|
568 | as_ln_s='cp -pR'
|
---|
569 | fi
|
---|
570 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
571 | rmdir conf$$.dir 2>/dev/null
|
---|
572 |
|
---|
573 | if mkdir -p . 2>/dev/null; then
|
---|
574 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
575 | else
|
---|
576 | test -d ./-p && rmdir ./-p
|
---|
577 | as_mkdir_p=false
|
---|
578 | fi
|
---|
579 |
|
---|
580 | as_test_x='test -x'
|
---|
581 | as_executable_p=as_fn_executable_p
|
---|
582 |
|
---|
583 | # Sed expression to map a string onto a valid CPP name.
|
---|
584 | as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
|
---|
585 | as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
|
---|
586 |
|
---|
587 | # Sed expression to map a string onto a valid variable name.
|
---|
588 | as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
|
---|
589 | as_tr_sh="eval sed '$as_sed_sh'" # deprecated
|
---|
590 |
|
---|
591 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
592 |
|
---|
593 |
|
---|
594 | test -n "$DJDIR" || exec 7<&0 </dev/null
|
---|
595 | exec 6>&1
|
---|
596 |
|
---|
597 | # Name of the host.
|
---|
598 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
|
---|
599 | # so uname gets run too.
|
---|
600 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
601 |
|
---|
602 | #
|
---|
603 | # Initializations.
|
---|
604 | #
|
---|
605 | ac_default_prefix=/usr/local
|
---|
606 | ac_clean_files=
|
---|
607 | ac_config_libobj_dir=.
|
---|
608 | LIBOBJS=
|
---|
609 | cross_compiling=no
|
---|
610 | subdirs=
|
---|
611 | MFLAGS=
|
---|
612 | MAKEFLAGS=
|
---|
613 |
|
---|
614 | # Identity of this package.
|
---|
615 | PACKAGE_NAME='libpng'
|
---|
616 | PACKAGE_TARNAME='libpng'
|
---|
617 | PACKAGE_VERSION='1.6.45'
|
---|
618 | PACKAGE_STRING='libpng 1.6.45'
|
---|
619 | PACKAGE_BUGREPORT='[email protected]'
|
---|
620 | PACKAGE_URL=''
|
---|
621 |
|
---|
622 | ac_unique_file="pngget.c"
|
---|
623 | # Factoring default headers for most tests.
|
---|
624 | ac_includes_default="\
|
---|
625 | #include <stddef.h>
|
---|
626 | #ifdef HAVE_STDIO_H
|
---|
627 | # include <stdio.h>
|
---|
628 | #endif
|
---|
629 | #ifdef HAVE_STDLIB_H
|
---|
630 | # include <stdlib.h>
|
---|
631 | #endif
|
---|
632 | #ifdef HAVE_STRING_H
|
---|
633 | # include <string.h>
|
---|
634 | #endif
|
---|
635 | #ifdef HAVE_INTTYPES_H
|
---|
636 | # include <inttypes.h>
|
---|
637 | #endif
|
---|
638 | #ifdef HAVE_STDINT_H
|
---|
639 | # include <stdint.h>
|
---|
640 | #endif
|
---|
641 | #ifdef HAVE_STRINGS_H
|
---|
642 | # include <strings.h>
|
---|
643 | #endif
|
---|
644 | #ifdef HAVE_SYS_TYPES_H
|
---|
645 | # include <sys/types.h>
|
---|
646 | #endif
|
---|
647 | #ifdef HAVE_SYS_STAT_H
|
---|
648 | # include <sys/stat.h>
|
---|
649 | #endif
|
---|
650 | #ifdef HAVE_UNISTD_H
|
---|
651 | # include <unistd.h>
|
---|
652 | #endif"
|
---|
653 |
|
---|
654 | ac_header_c_list=
|
---|
655 | ac_subst_vars='am__EXEEXT_FALSE
|
---|
656 | am__EXEEXT_TRUE
|
---|
657 | LTLIBOBJS
|
---|
658 | LIBOBJS
|
---|
659 | PNG_LOONGARCH_LSX_FALSE
|
---|
660 | PNG_LOONGARCH_LSX_TRUE
|
---|
661 | PNG_POWERPC_VSX_FALSE
|
---|
662 | PNG_POWERPC_VSX_TRUE
|
---|
663 | PNG_INTEL_SSE_FALSE
|
---|
664 | PNG_INTEL_SSE_TRUE
|
---|
665 | PNG_MIPS_MMI_FALSE
|
---|
666 | PNG_MIPS_MMI_TRUE
|
---|
667 | PNG_MIPS_MSA_FALSE
|
---|
668 | PNG_MIPS_MSA_TRUE
|
---|
669 | PNG_ARM_NEON_FALSE
|
---|
670 | PNG_ARM_NEON_TRUE
|
---|
671 | DO_INSTALL_LIBPNG_CONFIG_FALSE
|
---|
672 | DO_INSTALL_LIBPNG_CONFIG_TRUE
|
---|
673 | DO_INSTALL_LIBPNG_PC_FALSE
|
---|
674 | DO_INSTALL_LIBPNG_PC_TRUE
|
---|
675 | DO_INSTALL_LINKS_FALSE
|
---|
676 | DO_INSTALL_LINKS_TRUE
|
---|
677 | DO_PNG_PREFIX_FALSE
|
---|
678 | DO_PNG_PREFIX_TRUE
|
---|
679 | PNG_PREFIX
|
---|
680 | binconfigs
|
---|
681 | pkgconfigdir
|
---|
682 | PNGLIB_RELEASE
|
---|
683 | PNGLIB_MINOR
|
---|
684 | PNGLIB_MAJOR
|
---|
685 | PNGLIB_VERSION
|
---|
686 | SYMBOL_PREFIX
|
---|
687 | HAVE_LD_VERSION_SCRIPT_FALSE
|
---|
688 | HAVE_LD_VERSION_SCRIPT_TRUE
|
---|
689 | HAVE_SOLARIS_LD_FALSE
|
---|
690 | HAVE_SOLARIS_LD_TRUE
|
---|
691 | HAVE_CLOCK_GETTIME_FALSE
|
---|
692 | HAVE_CLOCK_GETTIME_TRUE
|
---|
693 | PNG_COPTS
|
---|
694 | ENABLE_TOOLS_FALSE
|
---|
695 | ENABLE_TOOLS_TRUE
|
---|
696 | ENABLE_TESTS_FALSE
|
---|
697 | ENABLE_TESTS_TRUE
|
---|
698 | DFNCPP
|
---|
699 | LT_SYS_LIBRARY_PATH
|
---|
700 | OTOOL64
|
---|
701 | OTOOL
|
---|
702 | LIPO
|
---|
703 | NMEDIT
|
---|
704 | DSYMUTIL
|
---|
705 | MANIFEST_TOOL
|
---|
706 | RANLIB
|
---|
707 | ac_ct_AR
|
---|
708 | AR
|
---|
709 | FILECMD
|
---|
710 | NM
|
---|
711 | ac_ct_DUMPBIN
|
---|
712 | DUMPBIN
|
---|
713 | LIBTOOL
|
---|
714 | OBJDUMP
|
---|
715 | DLLTOOL
|
---|
716 | AS
|
---|
717 | LN_S
|
---|
718 | CPP
|
---|
719 | LD
|
---|
720 | FGREP
|
---|
721 | EGREP
|
---|
722 | GREP
|
---|
723 | SED
|
---|
724 | host_os
|
---|
725 | host_vendor
|
---|
726 | host_cpu
|
---|
727 | host
|
---|
728 | build_os
|
---|
729 | build_vendor
|
---|
730 | build_cpu
|
---|
731 | build
|
---|
732 | am__fastdepCCAS_FALSE
|
---|
733 | am__fastdepCCAS_TRUE
|
---|
734 | CCASDEPMODE
|
---|
735 | CCASFLAGS
|
---|
736 | CCAS
|
---|
737 | am__fastdepCC_FALSE
|
---|
738 | am__fastdepCC_TRUE
|
---|
739 | CCDEPMODE
|
---|
740 | am__nodep
|
---|
741 | AMDEPBACKSLASH
|
---|
742 | AMDEP_FALSE
|
---|
743 | AMDEP_TRUE
|
---|
744 | am__include
|
---|
745 | DEPDIR
|
---|
746 | OBJEXT
|
---|
747 | EXEEXT
|
---|
748 | ac_ct_CC
|
---|
749 | CPPFLAGS
|
---|
750 | LDFLAGS
|
---|
751 | CFLAGS
|
---|
752 | CC
|
---|
753 | MAINT
|
---|
754 | MAINTAINER_MODE_FALSE
|
---|
755 | MAINTAINER_MODE_TRUE
|
---|
756 | am__xargs_n
|
---|
757 | am__rm_f_notfound
|
---|
758 | AM_BACKSLASH
|
---|
759 | AM_DEFAULT_VERBOSITY
|
---|
760 | AM_DEFAULT_V
|
---|
761 | AM_V
|
---|
762 | CSCOPE
|
---|
763 | ETAGS
|
---|
764 | CTAGS
|
---|
765 | am__untar
|
---|
766 | am__tar
|
---|
767 | AMTAR
|
---|
768 | am__leading_dot
|
---|
769 | SET_MAKE
|
---|
770 | AWK
|
---|
771 | mkdir_p
|
---|
772 | MKDIR_P
|
---|
773 | INSTALL_STRIP_PROGRAM
|
---|
774 | STRIP
|
---|
775 | install_sh
|
---|
776 | MAKEINFO
|
---|
777 | AUTOHEADER
|
---|
778 | AUTOMAKE
|
---|
779 | AUTOCONF
|
---|
780 | ACLOCAL
|
---|
781 | VERSION
|
---|
782 | PACKAGE
|
---|
783 | CYGPATH_W
|
---|
784 | am__isrc
|
---|
785 | INSTALL_DATA
|
---|
786 | INSTALL_SCRIPT
|
---|
787 | INSTALL_PROGRAM
|
---|
788 | target_alias
|
---|
789 | host_alias
|
---|
790 | build_alias
|
---|
791 | LIBS
|
---|
792 | ECHO_T
|
---|
793 | ECHO_N
|
---|
794 | ECHO_C
|
---|
795 | DEFS
|
---|
796 | mandir
|
---|
797 | localedir
|
---|
798 | libdir
|
---|
799 | psdir
|
---|
800 | pdfdir
|
---|
801 | dvidir
|
---|
802 | htmldir
|
---|
803 | infodir
|
---|
804 | docdir
|
---|
805 | oldincludedir
|
---|
806 | includedir
|
---|
807 | runstatedir
|
---|
808 | localstatedir
|
---|
809 | sharedstatedir
|
---|
810 | sysconfdir
|
---|
811 | datadir
|
---|
812 | datarootdir
|
---|
813 | libexecdir
|
---|
814 | sbindir
|
---|
815 | bindir
|
---|
816 | program_transform_name
|
---|
817 | prefix
|
---|
818 | exec_prefix
|
---|
819 | PACKAGE_URL
|
---|
820 | PACKAGE_BUGREPORT
|
---|
821 | PACKAGE_STRING
|
---|
822 | PACKAGE_VERSION
|
---|
823 | PACKAGE_TARNAME
|
---|
824 | PACKAGE_NAME
|
---|
825 | PATH_SEPARATOR
|
---|
826 | SHELL
|
---|
827 | am__quote'
|
---|
828 | ac_subst_files=''
|
---|
829 | ac_user_opts='
|
---|
830 | enable_option_checking
|
---|
831 | enable_silent_rules
|
---|
832 | enable_maintainer_mode
|
---|
833 | enable_dependency_tracking
|
---|
834 | with_gnu_ld
|
---|
835 | enable_shared
|
---|
836 | enable_static
|
---|
837 | enable_pic
|
---|
838 | with_pic
|
---|
839 | enable_fast_install
|
---|
840 | enable_aix_soname
|
---|
841 | with_aix_soname
|
---|
842 | with_sysroot
|
---|
843 | enable_libtool_lock
|
---|
844 | enable_tests
|
---|
845 | enable_tools
|
---|
846 | enable_werror
|
---|
847 | with_zlib_prefix
|
---|
848 | with_pkgconfigdir
|
---|
849 | with_binconfigs
|
---|
850 | with_libpng_prefix
|
---|
851 | enable_unversioned_links
|
---|
852 | enable_unversioned_libpng_pc
|
---|
853 | enable_unversioned_libpng_config
|
---|
854 | enable_hardware_optimizations
|
---|
855 | enable_arm_neon
|
---|
856 | enable_mips_msa
|
---|
857 | enable_mips_mmi
|
---|
858 | enable_intel_sse
|
---|
859 | enable_powerpc_vsx
|
---|
860 | enable_loongarch_lsx
|
---|
861 | '
|
---|
862 | ac_precious_vars='build_alias
|
---|
863 | host_alias
|
---|
864 | target_alias
|
---|
865 | CC
|
---|
866 | CFLAGS
|
---|
867 | LDFLAGS
|
---|
868 | LIBS
|
---|
869 | CPPFLAGS
|
---|
870 | CCAS
|
---|
871 | CCASFLAGS
|
---|
872 | CPP
|
---|
873 | LT_SYS_LIBRARY_PATH
|
---|
874 | AWK
|
---|
875 | PNG_COPTS'
|
---|
876 |
|
---|
877 |
|
---|
878 | # Initialize some variables set by options.
|
---|
879 | ac_init_help=
|
---|
880 | ac_init_version=false
|
---|
881 | ac_unrecognized_opts=
|
---|
882 | ac_unrecognized_sep=
|
---|
883 | # The variables have the same names as the options, with
|
---|
884 | # dashes changed to underlines.
|
---|
885 | cache_file=/dev/null
|
---|
886 | exec_prefix=NONE
|
---|
887 | no_create=
|
---|
888 | no_recursion=
|
---|
889 | prefix=NONE
|
---|
890 | program_prefix=NONE
|
---|
891 | program_suffix=NONE
|
---|
892 | program_transform_name=s,x,x,
|
---|
893 | silent=
|
---|
894 | site=
|
---|
895 | srcdir=
|
---|
896 | verbose=
|
---|
897 | x_includes=NONE
|
---|
898 | x_libraries=NONE
|
---|
899 |
|
---|
900 | # Installation directory options.
|
---|
901 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
902 | # and all the variables that are supposed to be based on exec_prefix
|
---|
903 | # by default will actually change.
|
---|
904 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
905 | # (The list follows the same order as the GNU Coding Standards.)
|
---|
906 | bindir='${exec_prefix}/bin'
|
---|
907 | sbindir='${exec_prefix}/sbin'
|
---|
908 | libexecdir='${exec_prefix}/libexec'
|
---|
909 | datarootdir='${prefix}/share'
|
---|
910 | datadir='${datarootdir}'
|
---|
911 | sysconfdir='${prefix}/etc'
|
---|
912 | sharedstatedir='${prefix}/com'
|
---|
913 | localstatedir='${prefix}/var'
|
---|
914 | runstatedir='${localstatedir}/run'
|
---|
915 | includedir='${prefix}/include'
|
---|
916 | oldincludedir='/usr/include'
|
---|
917 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
|
---|
918 | infodir='${datarootdir}/info'
|
---|
919 | htmldir='${docdir}'
|
---|
920 | dvidir='${docdir}'
|
---|
921 | pdfdir='${docdir}'
|
---|
922 | psdir='${docdir}'
|
---|
923 | libdir='${exec_prefix}/lib'
|
---|
924 | localedir='${datarootdir}/locale'
|
---|
925 | mandir='${datarootdir}/man'
|
---|
926 |
|
---|
927 | ac_prev=
|
---|
928 | ac_dashdash=
|
---|
929 | for ac_option
|
---|
930 | do
|
---|
931 | # If the previous option needs an argument, assign it.
|
---|
932 | if test -n "$ac_prev"; then
|
---|
933 | eval $ac_prev=\$ac_option
|
---|
934 | ac_prev=
|
---|
935 | continue
|
---|
936 | fi
|
---|
937 |
|
---|
938 | case $ac_option in
|
---|
939 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
---|
940 | *=) ac_optarg= ;;
|
---|
941 | *) ac_optarg=yes ;;
|
---|
942 | esac
|
---|
943 |
|
---|
944 | case $ac_dashdash$ac_option in
|
---|
945 | --)
|
---|
946 | ac_dashdash=yes ;;
|
---|
947 |
|
---|
948 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
949 | ac_prev=bindir ;;
|
---|
950 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
951 | bindir=$ac_optarg ;;
|
---|
952 |
|
---|
953 | -build | --build | --buil | --bui | --bu)
|
---|
954 | ac_prev=build_alias ;;
|
---|
955 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
956 | build_alias=$ac_optarg ;;
|
---|
957 |
|
---|
958 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
959 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
960 | ac_prev=cache_file ;;
|
---|
961 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
962 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
963 | cache_file=$ac_optarg ;;
|
---|
964 |
|
---|
965 | --config-cache | -C)
|
---|
966 | cache_file=config.cache ;;
|
---|
967 |
|
---|
968 | -datadir | --datadir | --datadi | --datad)
|
---|
969 | ac_prev=datadir ;;
|
---|
970 | -datadir=* | --datadir=* | --datadi=* | --datad=*)
|
---|
971 | datadir=$ac_optarg ;;
|
---|
972 |
|
---|
973 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
---|
974 | | --dataroo | --dataro | --datar)
|
---|
975 | ac_prev=datarootdir ;;
|
---|
976 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
---|
977 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
---|
978 | datarootdir=$ac_optarg ;;
|
---|
979 |
|
---|
980 | -disable-* | --disable-*)
|
---|
981 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
982 | # Reject names that are not valid shell variable names.
|
---|
983 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
984 | as_fn_error $? "invalid feature name: '$ac_useropt'"
|
---|
985 | ac_useropt_orig=$ac_useropt
|
---|
986 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
987 | case $ac_user_opts in
|
---|
988 | *"
|
---|
989 | "enable_$ac_useropt"
|
---|
990 | "*) ;;
|
---|
991 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
|
---|
992 | ac_unrecognized_sep=', ';;
|
---|
993 | esac
|
---|
994 | eval enable_$ac_useropt=no ;;
|
---|
995 |
|
---|
996 | -docdir | --docdir | --docdi | --doc | --do)
|
---|
997 | ac_prev=docdir ;;
|
---|
998 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
---|
999 | docdir=$ac_optarg ;;
|
---|
1000 |
|
---|
1001 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
---|
1002 | ac_prev=dvidir ;;
|
---|
1003 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
---|
1004 | dvidir=$ac_optarg ;;
|
---|
1005 |
|
---|
1006 | -enable-* | --enable-*)
|
---|
1007 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
1008 | # Reject names that are not valid shell variable names.
|
---|
1009 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
1010 | as_fn_error $? "invalid feature name: '$ac_useropt'"
|
---|
1011 | ac_useropt_orig=$ac_useropt
|
---|
1012 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
1013 | case $ac_user_opts in
|
---|
1014 | *"
|
---|
1015 | "enable_$ac_useropt"
|
---|
1016 | "*) ;;
|
---|
1017 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
|
---|
1018 | ac_unrecognized_sep=', ';;
|
---|
1019 | esac
|
---|
1020 | eval enable_$ac_useropt=\$ac_optarg ;;
|
---|
1021 |
|
---|
1022 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
1023 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
1024 | | --exec | --exe | --ex)
|
---|
1025 | ac_prev=exec_prefix ;;
|
---|
1026 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
1027 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
1028 | | --exec=* | --exe=* | --ex=*)
|
---|
1029 | exec_prefix=$ac_optarg ;;
|
---|
1030 |
|
---|
1031 | -gas | --gas | --ga | --g)
|
---|
1032 | # Obsolete; use --with-gas.
|
---|
1033 | with_gas=yes ;;
|
---|
1034 |
|
---|
1035 | -help | --help | --hel | --he | -h)
|
---|
1036 | ac_init_help=long ;;
|
---|
1037 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
1038 | ac_init_help=recursive ;;
|
---|
1039 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
1040 | ac_init_help=short ;;
|
---|
1041 |
|
---|
1042 | -host | --host | --hos | --ho)
|
---|
1043 | ac_prev=host_alias ;;
|
---|
1044 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
1045 | host_alias=$ac_optarg ;;
|
---|
1046 |
|
---|
1047 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
---|
1048 | ac_prev=htmldir ;;
|
---|
1049 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
---|
1050 | | --ht=*)
|
---|
1051 | htmldir=$ac_optarg ;;
|
---|
1052 |
|
---|
1053 | -includedir | --includedir | --includedi | --included | --include \
|
---|
1054 | | --includ | --inclu | --incl | --inc)
|
---|
1055 | ac_prev=includedir ;;
|
---|
1056 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
1057 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
1058 | includedir=$ac_optarg ;;
|
---|
1059 |
|
---|
1060 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
1061 | ac_prev=infodir ;;
|
---|
1062 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
1063 | infodir=$ac_optarg ;;
|
---|
1064 |
|
---|
1065 | -libdir | --libdir | --libdi | --libd)
|
---|
1066 | ac_prev=libdir ;;
|
---|
1067 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
1068 | libdir=$ac_optarg ;;
|
---|
1069 |
|
---|
1070 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
1071 | | --libexe | --libex | --libe)
|
---|
1072 | ac_prev=libexecdir ;;
|
---|
1073 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
1074 | | --libexe=* | --libex=* | --libe=*)
|
---|
1075 | libexecdir=$ac_optarg ;;
|
---|
1076 |
|
---|
1077 | -localedir | --localedir | --localedi | --localed | --locale)
|
---|
1078 | ac_prev=localedir ;;
|
---|
1079 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
---|
1080 | localedir=$ac_optarg ;;
|
---|
1081 |
|
---|
1082 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
1083 | | --localstate | --localstat | --localsta | --localst | --locals)
|
---|
1084 | ac_prev=localstatedir ;;
|
---|
1085 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
1086 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
---|
1087 | localstatedir=$ac_optarg ;;
|
---|
1088 |
|
---|
1089 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
1090 | ac_prev=mandir ;;
|
---|
1091 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
1092 | mandir=$ac_optarg ;;
|
---|
1093 |
|
---|
1094 | -nfp | --nfp | --nf)
|
---|
1095 | # Obsolete; use --without-fp.
|
---|
1096 | with_fp=no ;;
|
---|
1097 |
|
---|
1098 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
1099 | | --no-cr | --no-c | -n)
|
---|
1100 | no_create=yes ;;
|
---|
1101 |
|
---|
1102 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
1103 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
1104 | no_recursion=yes ;;
|
---|
1105 |
|
---|
1106 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
1107 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
1108 | | --oldin | --oldi | --old | --ol | --o)
|
---|
1109 | ac_prev=oldincludedir ;;
|
---|
1110 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
1111 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
1112 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
1113 | oldincludedir=$ac_optarg ;;
|
---|
1114 |
|
---|
1115 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
1116 | ac_prev=prefix ;;
|
---|
1117 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
1118 | prefix=$ac_optarg ;;
|
---|
1119 |
|
---|
1120 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
1121 | | --program-pre | --program-pr | --program-p)
|
---|
1122 | ac_prev=program_prefix ;;
|
---|
1123 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
1124 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
1125 | program_prefix=$ac_optarg ;;
|
---|
1126 |
|
---|
1127 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
1128 | | --program-suf | --program-su | --program-s)
|
---|
1129 | ac_prev=program_suffix ;;
|
---|
1130 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
1131 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
1132 | program_suffix=$ac_optarg ;;
|
---|
1133 |
|
---|
1134 | -program-transform-name | --program-transform-name \
|
---|
1135 | | --program-transform-nam | --program-transform-na \
|
---|
1136 | | --program-transform-n | --program-transform- \
|
---|
1137 | | --program-transform | --program-transfor \
|
---|
1138 | | --program-transfo | --program-transf \
|
---|
1139 | | --program-trans | --program-tran \
|
---|
1140 | | --progr-tra | --program-tr | --program-t)
|
---|
1141 | ac_prev=program_transform_name ;;
|
---|
1142 | -program-transform-name=* | --program-transform-name=* \
|
---|
1143 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
1144 | | --program-transform-n=* | --program-transform-=* \
|
---|
1145 | | --program-transform=* | --program-transfor=* \
|
---|
1146 | | --program-transfo=* | --program-transf=* \
|
---|
1147 | | --program-trans=* | --program-tran=* \
|
---|
1148 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
1149 | program_transform_name=$ac_optarg ;;
|
---|
1150 |
|
---|
1151 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
---|
1152 | ac_prev=pdfdir ;;
|
---|
1153 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
---|
1154 | pdfdir=$ac_optarg ;;
|
---|
1155 |
|
---|
1156 | -psdir | --psdir | --psdi | --psd | --ps)
|
---|
1157 | ac_prev=psdir ;;
|
---|
1158 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
---|
1159 | psdir=$ac_optarg ;;
|
---|
1160 |
|
---|
1161 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
1162 | | -silent | --silent | --silen | --sile | --sil)
|
---|
1163 | silent=yes ;;
|
---|
1164 |
|
---|
1165 | -runstatedir | --runstatedir | --runstatedi | --runstated \
|
---|
1166 | | --runstate | --runstat | --runsta | --runst | --runs \
|
---|
1167 | | --run | --ru | --r)
|
---|
1168 | ac_prev=runstatedir ;;
|
---|
1169 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
|
---|
1170 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
|
---|
1171 | | --run=* | --ru=* | --r=*)
|
---|
1172 | runstatedir=$ac_optarg ;;
|
---|
1173 |
|
---|
1174 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
1175 | ac_prev=sbindir ;;
|
---|
1176 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
1177 | | --sbi=* | --sb=*)
|
---|
1178 | sbindir=$ac_optarg ;;
|
---|
1179 |
|
---|
1180 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
1181 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
1182 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
1183 | | --sha | --sh)
|
---|
1184 | ac_prev=sharedstatedir ;;
|
---|
1185 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
1186 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
1187 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
1188 | | --sha=* | --sh=*)
|
---|
1189 | sharedstatedir=$ac_optarg ;;
|
---|
1190 |
|
---|
1191 | -site | --site | --sit)
|
---|
1192 | ac_prev=site ;;
|
---|
1193 | -site=* | --site=* | --sit=*)
|
---|
1194 | site=$ac_optarg ;;
|
---|
1195 |
|
---|
1196 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
1197 | ac_prev=srcdir ;;
|
---|
1198 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
1199 | srcdir=$ac_optarg ;;
|
---|
1200 |
|
---|
1201 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
1202 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
1203 | ac_prev=sysconfdir ;;
|
---|
1204 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
1205 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
1206 | sysconfdir=$ac_optarg ;;
|
---|
1207 |
|
---|
1208 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
1209 | ac_prev=target_alias ;;
|
---|
1210 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
1211 | target_alias=$ac_optarg ;;
|
---|
1212 |
|
---|
1213 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
1214 | verbose=yes ;;
|
---|
1215 |
|
---|
1216 | -version | --version | --versio | --versi | --vers | -V)
|
---|
1217 | ac_init_version=: ;;
|
---|
1218 |
|
---|
1219 | -with-* | --with-*)
|
---|
1220 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
1221 | # Reject names that are not valid shell variable names.
|
---|
1222 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
1223 | as_fn_error $? "invalid package name: '$ac_useropt'"
|
---|
1224 | ac_useropt_orig=$ac_useropt
|
---|
1225 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
1226 | case $ac_user_opts in
|
---|
1227 | *"
|
---|
1228 | "with_$ac_useropt"
|
---|
1229 | "*) ;;
|
---|
1230 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
|
---|
1231 | ac_unrecognized_sep=', ';;
|
---|
1232 | esac
|
---|
1233 | eval with_$ac_useropt=\$ac_optarg ;;
|
---|
1234 |
|
---|
1235 | -without-* | --without-*)
|
---|
1236 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
1237 | # Reject names that are not valid shell variable names.
|
---|
1238 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
---|
1239 | as_fn_error $? "invalid package name: '$ac_useropt'"
|
---|
1240 | ac_useropt_orig=$ac_useropt
|
---|
1241 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
|
---|
1242 | case $ac_user_opts in
|
---|
1243 | *"
|
---|
1244 | "with_$ac_useropt"
|
---|
1245 | "*) ;;
|
---|
1246 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
|
---|
1247 | ac_unrecognized_sep=', ';;
|
---|
1248 | esac
|
---|
1249 | eval with_$ac_useropt=no ;;
|
---|
1250 |
|
---|
1251 | --x)
|
---|
1252 | # Obsolete; use --with-x.
|
---|
1253 | with_x=yes ;;
|
---|
1254 |
|
---|
1255 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
1256 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
1257 | ac_prev=x_includes ;;
|
---|
1258 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
1259 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
1260 | x_includes=$ac_optarg ;;
|
---|
1261 |
|
---|
1262 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
1263 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
1264 | ac_prev=x_libraries ;;
|
---|
1265 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
1266 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
1267 | x_libraries=$ac_optarg ;;
|
---|
1268 |
|
---|
1269 | -*) as_fn_error $? "unrecognized option: '$ac_option'
|
---|
1270 | Try '$0 --help' for more information"
|
---|
1271 | ;;
|
---|
1272 |
|
---|
1273 | *=*)
|
---|
1274 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
1275 | # Reject names that are not valid shell variable names.
|
---|
1276 | case $ac_envvar in #(
|
---|
1277 | '' | [0-9]* | *[!_$as_cr_alnum]* )
|
---|
1278 | as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
|
---|
1279 | esac
|
---|
1280 | eval $ac_envvar=\$ac_optarg
|
---|
1281 | export $ac_envvar ;;
|
---|
1282 |
|
---|
1283 | *)
|
---|
1284 | # FIXME: should be removed in autoconf 3.0.
|
---|
1285 | printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
1286 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
1287 | printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
1288 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
|
---|
1289 | ;;
|
---|
1290 |
|
---|
1291 | esac
|
---|
1292 | done
|
---|
1293 |
|
---|
1294 | if test -n "$ac_prev"; then
|
---|
1295 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
1296 | as_fn_error $? "missing argument to $ac_option"
|
---|
1297 | fi
|
---|
1298 |
|
---|
1299 | if test -n "$ac_unrecognized_opts"; then
|
---|
1300 | case $enable_option_checking in
|
---|
1301 | no) ;;
|
---|
1302 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
|
---|
1303 | *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
|
---|
1304 | esac
|
---|
1305 | fi
|
---|
1306 |
|
---|
1307 | # Check all directory arguments for consistency.
|
---|
1308 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
---|
1309 | datadir sysconfdir sharedstatedir localstatedir includedir \
|
---|
1310 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
---|
1311 | libdir localedir mandir runstatedir
|
---|
1312 | do
|
---|
1313 | eval ac_val=\$$ac_var
|
---|
1314 | # Remove trailing slashes.
|
---|
1315 | case $ac_val in
|
---|
1316 | */ )
|
---|
1317 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
|
---|
1318 | eval $ac_var=\$ac_val;;
|
---|
1319 | esac
|
---|
1320 | # Be sure to have absolute directory names.
|
---|
1321 | case $ac_val in
|
---|
1322 | [\\/$]* | ?:[\\/]* ) continue;;
|
---|
1323 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
---|
1324 | esac
|
---|
1325 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
|
---|
1326 | done
|
---|
1327 |
|
---|
1328 | # There might be people who depend on the old broken behavior: '$host'
|
---|
1329 | # used to hold the argument of --host etc.
|
---|
1330 | # FIXME: To remove some day.
|
---|
1331 | build=$build_alias
|
---|
1332 | host=$host_alias
|
---|
1333 | target=$target_alias
|
---|
1334 |
|
---|
1335 | # FIXME: To remove some day.
|
---|
1336 | if test "x$host_alias" != x; then
|
---|
1337 | if test "x$build_alias" = x; then
|
---|
1338 | cross_compiling=maybe
|
---|
1339 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
1340 | cross_compiling=yes
|
---|
1341 | fi
|
---|
1342 | fi
|
---|
1343 |
|
---|
1344 | ac_tool_prefix=
|
---|
1345 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
1346 |
|
---|
1347 | test "$silent" = yes && exec 6>/dev/null
|
---|
1348 |
|
---|
1349 |
|
---|
1350 | ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
---|
1351 | ac_ls_di=`ls -di .` &&
|
---|
1352 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
---|
1353 | as_fn_error $? "working directory cannot be determined"
|
---|
1354 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
---|
1355 | as_fn_error $? "pwd does not report name of working directory"
|
---|
1356 |
|
---|
1357 |
|
---|
1358 | # Find the source files, if location was not specified.
|
---|
1359 | if test -z "$srcdir"; then
|
---|
1360 | ac_srcdir_defaulted=yes
|
---|
1361 | # Try the directory containing this script, then the parent directory.
|
---|
1362 | ac_confdir=`$as_dirname -- "$as_myself" ||
|
---|
1363 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
1364 | X"$as_myself" : 'X\(//\)[^/]' \| \
|
---|
1365 | X"$as_myself" : 'X\(//\)$' \| \
|
---|
1366 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
1367 | printf "%s\n" X"$as_myself" |
|
---|
1368 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
1369 | s//\1/
|
---|
1370 | q
|
---|
1371 | }
|
---|
1372 | /^X\(\/\/\)[^/].*/{
|
---|
1373 | s//\1/
|
---|
1374 | q
|
---|
1375 | }
|
---|
1376 | /^X\(\/\/\)$/{
|
---|
1377 | s//\1/
|
---|
1378 | q
|
---|
1379 | }
|
---|
1380 | /^X\(\/\).*/{
|
---|
1381 | s//\1/
|
---|
1382 | q
|
---|
1383 | }
|
---|
1384 | s/.*/./; q'`
|
---|
1385 | srcdir=$ac_confdir
|
---|
1386 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1387 | srcdir=..
|
---|
1388 | fi
|
---|
1389 | else
|
---|
1390 | ac_srcdir_defaulted=no
|
---|
1391 | fi
|
---|
1392 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1393 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
---|
1394 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
|
---|
1395 | fi
|
---|
1396 | ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
|
---|
1397 | ac_abs_confdir=`(
|
---|
1398 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
|
---|
1399 | pwd)`
|
---|
1400 | # When building in place, set srcdir=.
|
---|
1401 | if test "$ac_abs_confdir" = "$ac_pwd"; then
|
---|
1402 | srcdir=.
|
---|
1403 | fi
|
---|
1404 | # Remove unnecessary trailing slashes from srcdir.
|
---|
1405 | # Double slashes in file names in object file debugging info
|
---|
1406 | # mess up M-x gdb in Emacs.
|
---|
1407 | case $srcdir in
|
---|
1408 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
---|
1409 | esac
|
---|
1410 | for ac_var in $ac_precious_vars; do
|
---|
1411 | eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1412 | eval ac_env_${ac_var}_value=\$${ac_var}
|
---|
1413 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1414 | eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
---|
1415 | done
|
---|
1416 |
|
---|
1417 | #
|
---|
1418 | # Report the --help message.
|
---|
1419 | #
|
---|
1420 | if test "$ac_init_help" = "long"; then
|
---|
1421 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
1422 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
1423 | cat <<_ACEOF
|
---|
1424 | 'configure' configures libpng 1.6.45 to adapt to many kinds of systems.
|
---|
1425 |
|
---|
1426 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
1427 |
|
---|
1428 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
1429 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
1430 |
|
---|
1431 | Defaults for the options are specified in brackets.
|
---|
1432 |
|
---|
1433 | Configuration:
|
---|
1434 | -h, --help display this help and exit
|
---|
1435 | --help=short display options specific to this package
|
---|
1436 | --help=recursive display the short help of all the included packages
|
---|
1437 | -V, --version display version information and exit
|
---|
1438 | -q, --quiet, --silent do not print 'checking ...' messages
|
---|
1439 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
1440 | -C, --config-cache alias for '--cache-file=config.cache'
|
---|
1441 | -n, --no-create do not create output files
|
---|
1442 | --srcdir=DIR find the sources in DIR [configure dir or '..']
|
---|
1443 |
|
---|
1444 | Installation directories:
|
---|
1445 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
1446 | [$ac_default_prefix]
|
---|
1447 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
1448 | [PREFIX]
|
---|
1449 |
|
---|
1450 | By default, 'make install' will install all the files in
|
---|
1451 | '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
|
---|
1452 | an installation prefix other than '$ac_default_prefix' using '--prefix',
|
---|
1453 | for instance '--prefix=\$HOME'.
|
---|
1454 |
|
---|
1455 | For better control, use the options below.
|
---|
1456 |
|
---|
1457 | Fine tuning of the installation directories:
|
---|
1458 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
1459 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
1460 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
1461 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
1462 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
1463 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
1464 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
|
---|
1465 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
1466 | --includedir=DIR C header files [PREFIX/include]
|
---|
1467 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
1468 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
---|
1469 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
---|
1470 | --infodir=DIR info documentation [DATAROOTDIR/info]
|
---|
1471 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
---|
1472 | --mandir=DIR man documentation [DATAROOTDIR/man]
|
---|
1473 | --docdir=DIR documentation root [DATAROOTDIR/doc/libpng]
|
---|
1474 | --htmldir=DIR html documentation [DOCDIR]
|
---|
1475 | --dvidir=DIR dvi documentation [DOCDIR]
|
---|
1476 | --pdfdir=DIR pdf documentation [DOCDIR]
|
---|
1477 | --psdir=DIR ps documentation [DOCDIR]
|
---|
1478 | _ACEOF
|
---|
1479 |
|
---|
1480 | cat <<\_ACEOF
|
---|
1481 |
|
---|
1482 | Program names:
|
---|
1483 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
---|
1484 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
---|
1485 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names
|
---|
1486 |
|
---|
1487 | System types:
|
---|
1488 | --build=BUILD configure for building on BUILD [guessed]
|
---|
1489 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
1490 | _ACEOF
|
---|
1491 | fi
|
---|
1492 |
|
---|
1493 | if test -n "$ac_init_help"; then
|
---|
1494 | case $ac_init_help in
|
---|
1495 | short | recursive ) echo "Configuration of libpng 1.6.45:";;
|
---|
1496 | esac
|
---|
1497 | cat <<\_ACEOF
|
---|
1498 |
|
---|
1499 | Optional Features:
|
---|
1500 | --disable-option-checking ignore unrecognized --enable/--with options
|
---|
1501 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
1502 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
1503 | --enable-silent-rules less verbose build output (undo: "make V=1")
|
---|
1504 | --disable-silent-rules verbose build output (undo: "make V=0")
|
---|
1505 | --enable-maintainer-mode
|
---|
1506 | enable make rules and dependencies not useful (and
|
---|
1507 | sometimes confusing) to the casual installer
|
---|
1508 | --enable-dependency-tracking
|
---|
1509 | do not reject slow dependency extractors
|
---|
1510 | --disable-dependency-tracking
|
---|
1511 | speeds up one-time build
|
---|
1512 | --enable-shared[=PKGS] build shared libraries [default=yes]
|
---|
1513 | --enable-static[=PKGS] build static libraries [default=yes]
|
---|
1514 | --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
|
---|
1515 | both]
|
---|
1516 | --enable-fast-install[=PKGS]
|
---|
1517 | optimize for fast installation [default=yes]
|
---|
1518 | --enable-aix-soname=aix|svr4|both
|
---|
1519 | shared library versioning (aka "SONAME") variant to
|
---|
1520 | provide on AIX, [default=aix].
|
---|
1521 | --disable-libtool-lock avoid locking (might break parallel builds)
|
---|
1522 | --disable-tests do not build the test programs (default is to build)
|
---|
1523 | --disable-tools do not build the auxiliary tools (default is to
|
---|
1524 | build)
|
---|
1525 | --enable-werror[=OPT] Pass -Werror or the given argument to the compiler
|
---|
1526 | if it is supported
|
---|
1527 | --enable-unversioned-links
|
---|
1528 | Installed libpng header files are placed in a
|
---|
1529 | versioned subdirectory and installed libpng library
|
---|
1530 | (including DLL) files are versioned. If this option
|
---|
1531 | is enabled unversioned links will be created
|
---|
1532 | pointing to the corresponding installed files. If
|
---|
1533 | you use libpng.pc or libpng-config for all builds
|
---|
1534 | you do not need these links, but if you compile
|
---|
1535 | programs directly they will typically #include
|
---|
1536 | <png.h> and link with -lpng; in that case you need
|
---|
1537 | the links. The links can be installed manually using
|
---|
1538 | 'make install-header-links' and 'make
|
---|
1539 | install-library-links' and can be removed using the
|
---|
1540 | corresponding uninstall- targets. If you do enable
|
---|
1541 | this option every libpng 'make install' will
|
---|
1542 | recreate the links to point to the just installed
|
---|
1543 | version of libpng. The default is to create the
|
---|
1544 | links; use --disable-unversioned-links to change
|
---|
1545 | this
|
---|
1546 | --enable-unversioned-libpng-pc
|
---|
1547 | Install the configuration file 'libpng.pc' as a link
|
---|
1548 | to the versioned version. This is done by default -
|
---|
1549 | use --disable-unversioned-libpng-pc to change this.
|
---|
1550 | --enable-unversioned-libpng-config
|
---|
1551 | Install the configuration file 'libpng-config' as a
|
---|
1552 | link to the versioned version. This is done by
|
---|
1553 | default - use --disable-unversioned-libpng-config to
|
---|
1554 | change this.
|
---|
1555 | --enable-hardware-optimizations
|
---|
1556 | Enable hardware optimizations: =no/off, yes/on.
|
---|
1557 | --enable-arm-neon Enable ARM NEON optimizations: =no/off, check, api,
|
---|
1558 | yes/on. no/off: disable the optimizations; check:
|
---|
1559 | use internal checking code (deprecated and poorly
|
---|
1560 | supported); api: disable by default, enable by a
|
---|
1561 | call to png_set_option; yes/on: turn on
|
---|
1562 | unconditionally. If not specified: determined by the
|
---|
1563 | compiler.
|
---|
1564 | --enable-mips-msa Enable MIPS MSA optimizations: =no/off, check, api,
|
---|
1565 | yes/on. no/off: disable the optimizations; check:
|
---|
1566 | use internal checking code (deprecated and poorly
|
---|
1567 | supported); api: disable by default, enable by a
|
---|
1568 | call to png_set_option; yes/on: turn on
|
---|
1569 | unconditionally. If not specified: determined by the
|
---|
1570 | compiler.
|
---|
1571 | --enable-mips-mmi Enable MIPS MMI optimizations: =no/off, check, api,
|
---|
1572 | yes/on. no/off: disable the optimizations; check:
|
---|
1573 | use internal checking code (deprecated and poorly
|
---|
1574 | supported); api: disable by default, enable by a
|
---|
1575 | call to png_set_option; yes/on: turn on
|
---|
1576 | unconditionally. If not specified: determined by the
|
---|
1577 | compiler.
|
---|
1578 | --enable-intel-sse Enable Intel SSE optimizations: =no/off, yes/on.
|
---|
1579 | no/off: disable the optimizations; yes/on: enable
|
---|
1580 | the optimizations. If not specified: determined by
|
---|
1581 | the compiler.
|
---|
1582 | --enable-powerpc-vsx Enable POWERPC VSX optimizations: =no/off, check,
|
---|
1583 | api, yes/on. no/off: disable the optimizations;
|
---|
1584 | check: use internal checking code; api: disable by
|
---|
1585 | default, enable by a call to png_set_option; yes/on:
|
---|
1586 | turn on unconditionally. If not specified:
|
---|
1587 | determined by the compiler.
|
---|
1588 | --enable-loongarch-lsx
|
---|
1589 | Enable LOONGARCH LSX optimizations: =no/off, yes/on:
|
---|
1590 | no/off: disable the optimizations; yes/on: turn on
|
---|
1591 | unconditionally. If not specified: determined by the
|
---|
1592 | compiler.
|
---|
1593 |
|
---|
1594 | Optional Packages:
|
---|
1595 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
1596 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
1597 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]
|
---|
1598 | --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
|
---|
1599 | compiler's sysroot if not specified).
|
---|
1600 | --with-zlib-prefix prefix that may have been used in installed zlib
|
---|
1601 | --with-pkgconfigdir Use the specified pkgconfig dir (default is
|
---|
1602 | libdir/pkgconfig)
|
---|
1603 | --with-binconfigs Generate shell libpng-config scripts as well as
|
---|
1604 | pkg-config data [default=yes]
|
---|
1605 | --with-libpng-prefix prefix libpng exported function (API) names with the
|
---|
1606 | given value
|
---|
1607 |
|
---|
1608 | Some influential environment variables:
|
---|
1609 | CC C compiler command
|
---|
1610 | CFLAGS C compiler flags
|
---|
1611 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
1612 | nonstandard directory <lib dir>
|
---|
1613 | LIBS libraries to pass to the linker, e.g. -l<library>
|
---|
1614 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
|
---|
1615 | you have headers in a nonstandard directory <include dir>
|
---|
1616 | CCAS assembler compiler command (defaults to CC)
|
---|
1617 | CCASFLAGS assembler compiler flags (defaults to CFLAGS)
|
---|
1618 | CPP C preprocessor
|
---|
1619 | LT_SYS_LIBRARY_PATH
|
---|
1620 | User-defined run-time library search path.
|
---|
1621 | AWK AWK language processor
|
---|
1622 | PNG_COPTS additional flags for the C compiler, to be used for options that
|
---|
1623 | would cause configure itself to fail
|
---|
1624 |
|
---|
1625 | Use these variables to override the choices made by 'configure' or to help
|
---|
1626 | it to find libraries and programs with nonstandard names/locations.
|
---|
1627 |
|
---|
1628 | Report bugs to <[email protected]>.
|
---|
1629 | _ACEOF
|
---|
1630 | ac_status=$?
|
---|
1631 | fi
|
---|
1632 |
|
---|
1633 | if test "$ac_init_help" = "recursive"; then
|
---|
1634 | # If there are subdirs, report their specific --help.
|
---|
1635 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
1636 | test -d "$ac_dir" ||
|
---|
1637 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
|
---|
1638 | continue
|
---|
1639 | ac_builddir=.
|
---|
1640 |
|
---|
1641 | case "$ac_dir" in
|
---|
1642 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1643 | *)
|
---|
1644 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
1645 | # A ".." for each directory in $ac_dir_suffix.
|
---|
1646 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
1647 | case $ac_top_builddir_sub in
|
---|
1648 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1649 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
1650 | esac ;;
|
---|
1651 | esac
|
---|
1652 | ac_abs_top_builddir=$ac_pwd
|
---|
1653 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
1654 | # for backward compatibility:
|
---|
1655 | ac_top_builddir=$ac_top_build_prefix
|
---|
1656 |
|
---|
1657 | case $srcdir in
|
---|
1658 | .) # We are building in place.
|
---|
1659 | ac_srcdir=.
|
---|
1660 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
1661 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
1662 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
1663 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
1664 | ac_top_srcdir=$srcdir
|
---|
1665 | ac_abs_top_srcdir=$srcdir ;;
|
---|
1666 | *) # Relative name.
|
---|
1667 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
1668 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
1669 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
1670 | esac
|
---|
1671 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
1672 |
|
---|
1673 | cd "$ac_dir" || { ac_status=$?; continue; }
|
---|
1674 | # Check for configure.gnu first; this name is used for a wrapper for
|
---|
1675 | # Metaconfig's "Configure" on case-insensitive file systems.
|
---|
1676 | if test -f "$ac_srcdir/configure.gnu"; then
|
---|
1677 | echo &&
|
---|
1678 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
---|
1679 | elif test -f "$ac_srcdir/configure"; then
|
---|
1680 | echo &&
|
---|
1681 | $SHELL "$ac_srcdir/configure" --help=recursive
|
---|
1682 | else
|
---|
1683 | printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
1684 | fi || ac_status=$?
|
---|
1685 | cd "$ac_pwd" || { ac_status=$?; break; }
|
---|
1686 | done
|
---|
1687 | fi
|
---|
1688 |
|
---|
1689 | test -n "$ac_init_help" && exit $ac_status
|
---|
1690 | if $ac_init_version; then
|
---|
1691 | cat <<\_ACEOF
|
---|
1692 | libpng configure 1.6.45
|
---|
1693 | generated by GNU Autoconf 2.72
|
---|
1694 |
|
---|
1695 | Copyright (C) 2023 Free Software Foundation, Inc.
|
---|
1696 | This configure script is free software; the Free Software Foundation
|
---|
1697 | gives unlimited permission to copy, distribute and modify it.
|
---|
1698 | _ACEOF
|
---|
1699 | exit
|
---|
1700 | fi
|
---|
1701 |
|
---|
1702 | ## ------------------------ ##
|
---|
1703 | ## Autoconf initialization. ##
|
---|
1704 | ## ------------------------ ##
|
---|
1705 |
|
---|
1706 | # ac_fn_c_try_compile LINENO
|
---|
1707 | # --------------------------
|
---|
1708 | # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
---|
1709 | ac_fn_c_try_compile ()
|
---|
1710 | {
|
---|
1711 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1712 | rm -f conftest.$ac_objext conftest.beam
|
---|
1713 | if { { ac_try="$ac_compile"
|
---|
1714 | case "(($ac_try" in
|
---|
1715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1716 | *) ac_try_echo=$ac_try;;
|
---|
1717 | esac
|
---|
1718 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1719 | printf "%s\n" "$ac_try_echo"; } >&5
|
---|
1720 | (eval "$ac_compile") 2>conftest.err
|
---|
1721 | ac_status=$?
|
---|
1722 | if test -s conftest.err; then
|
---|
1723 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1724 | cat conftest.er1 >&5
|
---|
1725 | mv -f conftest.er1 conftest.err
|
---|
1726 | fi
|
---|
1727 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1728 | test $ac_status = 0; } && {
|
---|
1729 | test -z "$ac_c_werror_flag" ||
|
---|
1730 | test ! -s conftest.err
|
---|
1731 | } && test -s conftest.$ac_objext
|
---|
1732 | then :
|
---|
1733 | ac_retval=0
|
---|
1734 | else case e in #(
|
---|
1735 | e) printf "%s\n" "$as_me: failed program was:" >&5
|
---|
1736 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1737 |
|
---|
1738 | ac_retval=1 ;;
|
---|
1739 | esac
|
---|
1740 | fi
|
---|
1741 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1742 | as_fn_set_status $ac_retval
|
---|
1743 |
|
---|
1744 | } # ac_fn_c_try_compile
|
---|
1745 |
|
---|
1746 | # ac_fn_c_try_cpp LINENO
|
---|
1747 | # ----------------------
|
---|
1748 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
|
---|
1749 | ac_fn_c_try_cpp ()
|
---|
1750 | {
|
---|
1751 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1752 | if { { ac_try="$ac_cpp conftest.$ac_ext"
|
---|
1753 | case "(($ac_try" in
|
---|
1754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1755 | *) ac_try_echo=$ac_try;;
|
---|
1756 | esac
|
---|
1757 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1758 | printf "%s\n" "$ac_try_echo"; } >&5
|
---|
1759 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
|
---|
1760 | ac_status=$?
|
---|
1761 | if test -s conftest.err; then
|
---|
1762 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1763 | cat conftest.er1 >&5
|
---|
1764 | mv -f conftest.er1 conftest.err
|
---|
1765 | fi
|
---|
1766 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1767 | test $ac_status = 0; } > conftest.i && {
|
---|
1768 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
1769 | test ! -s conftest.err
|
---|
1770 | }
|
---|
1771 | then :
|
---|
1772 | ac_retval=0
|
---|
1773 | else case e in #(
|
---|
1774 | e) printf "%s\n" "$as_me: failed program was:" >&5
|
---|
1775 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1776 |
|
---|
1777 | ac_retval=1 ;;
|
---|
1778 | esac
|
---|
1779 | fi
|
---|
1780 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1781 | as_fn_set_status $ac_retval
|
---|
1782 |
|
---|
1783 | } # ac_fn_c_try_cpp
|
---|
1784 |
|
---|
1785 | # ac_fn_c_try_link LINENO
|
---|
1786 | # -----------------------
|
---|
1787 | # Try to link conftest.$ac_ext, and return whether this succeeded.
|
---|
1788 | ac_fn_c_try_link ()
|
---|
1789 | {
|
---|
1790 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1791 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
|
---|
1792 | if { { ac_try="$ac_link"
|
---|
1793 | case "(($ac_try" in
|
---|
1794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
1795 | *) ac_try_echo=$ac_try;;
|
---|
1796 | esac
|
---|
1797 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
1798 | printf "%s\n" "$ac_try_echo"; } >&5
|
---|
1799 | (eval "$ac_link") 2>conftest.err
|
---|
1800 | ac_status=$?
|
---|
1801 | if test -s conftest.err; then
|
---|
1802 | grep -v '^ *+' conftest.err >conftest.er1
|
---|
1803 | cat conftest.er1 >&5
|
---|
1804 | mv -f conftest.er1 conftest.err
|
---|
1805 | fi
|
---|
1806 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
1807 | test $ac_status = 0; } && {
|
---|
1808 | test -z "$ac_c_werror_flag" ||
|
---|
1809 | test ! -s conftest.err
|
---|
1810 | } && test -s conftest$ac_exeext && {
|
---|
1811 | test "$cross_compiling" = yes ||
|
---|
1812 | test -x conftest$ac_exeext
|
---|
1813 | }
|
---|
1814 | then :
|
---|
1815 | ac_retval=0
|
---|
1816 | else case e in #(
|
---|
1817 | e) printf "%s\n" "$as_me: failed program was:" >&5
|
---|
1818 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1819 |
|
---|
1820 | ac_retval=1 ;;
|
---|
1821 | esac
|
---|
1822 | fi
|
---|
1823 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
|
---|
1824 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
|
---|
1825 | # interfere with the next link command; also delete a directory that is
|
---|
1826 | # left behind by Apple's compiler. We do this before executing the actions.
|
---|
1827 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
---|
1828 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1829 | as_fn_set_status $ac_retval
|
---|
1830 |
|
---|
1831 | } # ac_fn_c_try_link
|
---|
1832 |
|
---|
1833 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
|
---|
1834 | # -------------------------------------------------------
|
---|
1835 | # Tests whether HEADER exists and can be compiled using the include files in
|
---|
1836 | # INCLUDES, setting the cache variable VAR accordingly.
|
---|
1837 | ac_fn_c_check_header_compile ()
|
---|
1838 | {
|
---|
1839 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1840 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1841 | printf %s "checking for $2... " >&6; }
|
---|
1842 | if eval test \${$3+y}
|
---|
1843 | then :
|
---|
1844 | printf %s "(cached) " >&6
|
---|
1845 | else case e in #(
|
---|
1846 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1847 | /* end confdefs.h. */
|
---|
1848 | $4
|
---|
1849 | #include <$2>
|
---|
1850 | _ACEOF
|
---|
1851 | if ac_fn_c_try_compile "$LINENO"
|
---|
1852 | then :
|
---|
1853 | eval "$3=yes"
|
---|
1854 | else case e in #(
|
---|
1855 | e) eval "$3=no" ;;
|
---|
1856 | esac
|
---|
1857 | fi
|
---|
1858 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
|
---|
1859 | esac
|
---|
1860 | fi
|
---|
1861 | eval ac_res=\$$3
|
---|
1862 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1863 | printf "%s\n" "$ac_res" >&6; }
|
---|
1864 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1865 |
|
---|
1866 | } # ac_fn_c_check_header_compile
|
---|
1867 |
|
---|
1868 | # ac_fn_c_check_func LINENO FUNC VAR
|
---|
1869 | # ----------------------------------
|
---|
1870 | # Tests whether FUNC exists, setting the cache variable VAR accordingly
|
---|
1871 | ac_fn_c_check_func ()
|
---|
1872 | {
|
---|
1873 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
1874 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
---|
1875 | printf %s "checking for $2... " >&6; }
|
---|
1876 | if eval test \${$3+y}
|
---|
1877 | then :
|
---|
1878 | printf %s "(cached) " >&6
|
---|
1879 | else case e in #(
|
---|
1880 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
1881 | /* end confdefs.h. */
|
---|
1882 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
|
---|
1883 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
1884 | #define $2 innocuous_$2
|
---|
1885 |
|
---|
1886 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
1887 | which can conflict with char $2 (void); below. */
|
---|
1888 |
|
---|
1889 | #include <limits.h>
|
---|
1890 | #undef $2
|
---|
1891 |
|
---|
1892 | /* Override any GCC internal prototype to avoid an error.
|
---|
1893 | Use char because int might match the return type of a GCC
|
---|
1894 | builtin and then its argument prototype would still apply. */
|
---|
1895 | #ifdef __cplusplus
|
---|
1896 | extern "C"
|
---|
1897 | #endif
|
---|
1898 | char $2 (void);
|
---|
1899 | /* The GNU C library defines this for functions which it implements
|
---|
1900 | to always fail with ENOSYS. Some functions are actually named
|
---|
1901 | something starting with __ and the normal name is an alias. */
|
---|
1902 | #if defined __stub_$2 || defined __stub___$2
|
---|
1903 | choke me
|
---|
1904 | #endif
|
---|
1905 |
|
---|
1906 | int
|
---|
1907 | main (void)
|
---|
1908 | {
|
---|
1909 | return $2 ();
|
---|
1910 | ;
|
---|
1911 | return 0;
|
---|
1912 | }
|
---|
1913 | _ACEOF
|
---|
1914 | if ac_fn_c_try_link "$LINENO"
|
---|
1915 | then :
|
---|
1916 | eval "$3=yes"
|
---|
1917 | else case e in #(
|
---|
1918 | e) eval "$3=no" ;;
|
---|
1919 | esac
|
---|
1920 | fi
|
---|
1921 | rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
---|
1922 | conftest$ac_exeext conftest.$ac_ext ;;
|
---|
1923 | esac
|
---|
1924 | fi
|
---|
1925 | eval ac_res=\$$3
|
---|
1926 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
1927 | printf "%s\n" "$ac_res" >&6; }
|
---|
1928 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
---|
1929 |
|
---|
1930 | } # ac_fn_c_check_func
|
---|
1931 | ac_configure_args_raw=
|
---|
1932 | for ac_arg
|
---|
1933 | do
|
---|
1934 | case $ac_arg in
|
---|
1935 | *\'*)
|
---|
1936 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
1937 | esac
|
---|
1938 | as_fn_append ac_configure_args_raw " '$ac_arg'"
|
---|
1939 | done
|
---|
1940 |
|
---|
1941 | case $ac_configure_args_raw in
|
---|
1942 | *$as_nl*)
|
---|
1943 | ac_safe_unquote= ;;
|
---|
1944 | *)
|
---|
1945 | ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
|
---|
1946 | ac_unsafe_a="$ac_unsafe_z#~"
|
---|
1947 | ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
|
---|
1948 | ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
|
---|
1949 | esac
|
---|
1950 |
|
---|
1951 | cat >config.log <<_ACEOF
|
---|
1952 | This file contains any messages produced by compilers while
|
---|
1953 | running configure, to aid debugging if configure makes a mistake.
|
---|
1954 |
|
---|
1955 | It was created by libpng $as_me 1.6.45, which was
|
---|
1956 | generated by GNU Autoconf 2.72. Invocation command line was
|
---|
1957 |
|
---|
1958 | $ $0$ac_configure_args_raw
|
---|
1959 |
|
---|
1960 | _ACEOF
|
---|
1961 | exec 5>>config.log
|
---|
1962 | {
|
---|
1963 | cat <<_ASUNAME
|
---|
1964 | ## --------- ##
|
---|
1965 | ## Platform. ##
|
---|
1966 | ## --------- ##
|
---|
1967 |
|
---|
1968 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
1969 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
1970 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
1971 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
1972 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
1973 |
|
---|
1974 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
1975 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
1976 |
|
---|
1977 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
1978 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
1979 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
1980 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
---|
1981 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
1982 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
1983 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
1984 |
|
---|
1985 | _ASUNAME
|
---|
1986 |
|
---|
1987 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1988 | for as_dir in $PATH
|
---|
1989 | do
|
---|
1990 | IFS=$as_save_IFS
|
---|
1991 | case $as_dir in #(((
|
---|
1992 | '') as_dir=./ ;;
|
---|
1993 | */) ;;
|
---|
1994 | *) as_dir=$as_dir/ ;;
|
---|
1995 | esac
|
---|
1996 | printf "%s\n" "PATH: $as_dir"
|
---|
1997 | done
|
---|
1998 | IFS=$as_save_IFS
|
---|
1999 |
|
---|
2000 | } >&5
|
---|
2001 |
|
---|
2002 | cat >&5 <<_ACEOF
|
---|
2003 |
|
---|
2004 |
|
---|
2005 | ## ----------- ##
|
---|
2006 | ## Core tests. ##
|
---|
2007 | ## ----------- ##
|
---|
2008 |
|
---|
2009 | _ACEOF
|
---|
2010 |
|
---|
2011 |
|
---|
2012 | # Keep a trace of the command line.
|
---|
2013 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
2014 | # Strip out --silent because we don't want to record it for future runs.
|
---|
2015 | # Also quote any args containing shell meta-characters.
|
---|
2016 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
2017 | ac_configure_args=
|
---|
2018 | ac_configure_args0=
|
---|
2019 | ac_configure_args1=
|
---|
2020 | ac_must_keep_next=false
|
---|
2021 | for ac_pass in 1 2
|
---|
2022 | do
|
---|
2023 | for ac_arg
|
---|
2024 | do
|
---|
2025 | case $ac_arg in
|
---|
2026 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
2027 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
2028 | | -silent | --silent | --silen | --sile | --sil)
|
---|
2029 | continue ;;
|
---|
2030 | *\'*)
|
---|
2031 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
2032 | esac
|
---|
2033 | case $ac_pass in
|
---|
2034 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
|
---|
2035 | 2)
|
---|
2036 | as_fn_append ac_configure_args1 " '$ac_arg'"
|
---|
2037 | if test $ac_must_keep_next = true; then
|
---|
2038 | ac_must_keep_next=false # Got value, back to normal.
|
---|
2039 | else
|
---|
2040 | case $ac_arg in
|
---|
2041 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
2042 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
2043 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
2044 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
2045 | case "$ac_configure_args0 " in
|
---|
2046 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
2047 | esac
|
---|
2048 | ;;
|
---|
2049 | -* ) ac_must_keep_next=true ;;
|
---|
2050 | esac
|
---|
2051 | fi
|
---|
2052 | as_fn_append ac_configure_args " '$ac_arg'"
|
---|
2053 | ;;
|
---|
2054 | esac
|
---|
2055 | done
|
---|
2056 | done
|
---|
2057 | { ac_configure_args0=; unset ac_configure_args0;}
|
---|
2058 | { ac_configure_args1=; unset ac_configure_args1;}
|
---|
2059 |
|
---|
2060 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
2061 | # config.log. We remove comments because anyway the quotes in there
|
---|
2062 | # would cause problems or look ugly.
|
---|
2063 | # WARNING: Use '\'' to represent an apostrophe within the trap.
|
---|
2064 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
---|
2065 | trap 'exit_status=$?
|
---|
2066 | # Sanitize IFS.
|
---|
2067 | IFS=" "" $as_nl"
|
---|
2068 | # Save into config.log some information that might help in debugging.
|
---|
2069 | {
|
---|
2070 | echo
|
---|
2071 |
|
---|
2072 | printf "%s\n" "## ---------------- ##
|
---|
2073 | ## Cache variables. ##
|
---|
2074 | ## ---------------- ##"
|
---|
2075 | echo
|
---|
2076 | # The following way of writing the cache mishandles newlines in values,
|
---|
2077 | (
|
---|
2078 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
---|
2079 | eval ac_val=\$$ac_var
|
---|
2080 | case $ac_val in #(
|
---|
2081 | *${as_nl}*)
|
---|
2082 | case $ac_var in #(
|
---|
2083 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
2084 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
2085 | esac
|
---|
2086 | case $ac_var in #(
|
---|
2087 | _ | IFS | as_nl) ;; #(
|
---|
2088 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
2089 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
2090 | esac ;;
|
---|
2091 | esac
|
---|
2092 | done
|
---|
2093 | (set) 2>&1 |
|
---|
2094 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
---|
2095 | *${as_nl}ac_space=\ *)
|
---|
2096 | sed -n \
|
---|
2097 | "s/'\''/'\''\\\\'\'''\''/g;
|
---|
2098 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
---|
2099 | ;; #(
|
---|
2100 | *)
|
---|
2101 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
2102 | ;;
|
---|
2103 | esac |
|
---|
2104 | sort
|
---|
2105 | )
|
---|
2106 | echo
|
---|
2107 |
|
---|
2108 | printf "%s\n" "## ----------------- ##
|
---|
2109 | ## Output variables. ##
|
---|
2110 | ## ----------------- ##"
|
---|
2111 | echo
|
---|
2112 | for ac_var in $ac_subst_vars
|
---|
2113 | do
|
---|
2114 | eval ac_val=\$$ac_var
|
---|
2115 | case $ac_val in
|
---|
2116 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
2117 | esac
|
---|
2118 | printf "%s\n" "$ac_var='\''$ac_val'\''"
|
---|
2119 | done | sort
|
---|
2120 | echo
|
---|
2121 |
|
---|
2122 | if test -n "$ac_subst_files"; then
|
---|
2123 | printf "%s\n" "## ------------------- ##
|
---|
2124 | ## File substitutions. ##
|
---|
2125 | ## ------------------- ##"
|
---|
2126 | echo
|
---|
2127 | for ac_var in $ac_subst_files
|
---|
2128 | do
|
---|
2129 | eval ac_val=\$$ac_var
|
---|
2130 | case $ac_val in
|
---|
2131 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
2132 | esac
|
---|
2133 | printf "%s\n" "$ac_var='\''$ac_val'\''"
|
---|
2134 | done | sort
|
---|
2135 | echo
|
---|
2136 | fi
|
---|
2137 |
|
---|
2138 | if test -s confdefs.h; then
|
---|
2139 | printf "%s\n" "## ----------- ##
|
---|
2140 | ## confdefs.h. ##
|
---|
2141 | ## ----------- ##"
|
---|
2142 | echo
|
---|
2143 | cat confdefs.h
|
---|
2144 | echo
|
---|
2145 | fi
|
---|
2146 | test "$ac_signal" != 0 &&
|
---|
2147 | printf "%s\n" "$as_me: caught signal $ac_signal"
|
---|
2148 | printf "%s\n" "$as_me: exit $exit_status"
|
---|
2149 | } >&5
|
---|
2150 | rm -f core *.core core.conftest.* &&
|
---|
2151 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
2152 | exit $exit_status
|
---|
2153 | ' 0
|
---|
2154 | for ac_signal in 1 2 13 15; do
|
---|
2155 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
|
---|
2156 | done
|
---|
2157 | ac_signal=0
|
---|
2158 |
|
---|
2159 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
2160 | rm -f -r conftest* confdefs.h
|
---|
2161 |
|
---|
2162 | printf "%s\n" "/* confdefs.h */" > confdefs.h
|
---|
2163 |
|
---|
2164 | # Predefined preprocessor variables.
|
---|
2165 |
|
---|
2166 | printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
|
---|
2167 |
|
---|
2168 | printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
|
---|
2169 |
|
---|
2170 | printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
|
---|
2171 |
|
---|
2172 | printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
|
---|
2173 |
|
---|
2174 | printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
|
---|
2175 |
|
---|
2176 | printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
|
---|
2177 |
|
---|
2178 |
|
---|
2179 | # Let the site file select an alternate cache file if it wants to.
|
---|
2180 | # Prefer an explicitly selected file to automatically selected ones.
|
---|
2181 | if test -n "$CONFIG_SITE"; then
|
---|
2182 | ac_site_files="$CONFIG_SITE"
|
---|
2183 | elif test "x$prefix" != xNONE; then
|
---|
2184 | ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
|
---|
2185 | else
|
---|
2186 | ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
2187 | fi
|
---|
2188 |
|
---|
2189 | for ac_site_file in $ac_site_files
|
---|
2190 | do
|
---|
2191 | case $ac_site_file in #(
|
---|
2192 | */*) :
|
---|
2193 | ;; #(
|
---|
2194 | *) :
|
---|
2195 | ac_site_file=./$ac_site_file ;;
|
---|
2196 | esac
|
---|
2197 | if test -f "$ac_site_file" && test -r "$ac_site_file"; then
|
---|
2198 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
|
---|
2199 | printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
|
---|
2200 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
2201 | . "$ac_site_file" \
|
---|
2202 | || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
|
---|
2203 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
|
---|
2204 | as_fn_error $? "failed to load site script $ac_site_file
|
---|
2205 | See 'config.log' for more details" "$LINENO" 5; }
|
---|
2206 | fi
|
---|
2207 | done
|
---|
2208 |
|
---|
2209 | if test -r "$cache_file"; then
|
---|
2210 | # Some versions of bash will fail to source /dev/null (special files
|
---|
2211 | # actually), so we avoid doing that. DJGPP emulates it as a regular file.
|
---|
2212 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then
|
---|
2213 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
|
---|
2214 | printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
|
---|
2215 | case $cache_file in
|
---|
2216 | [\\/]* | ?:[\\/]* ) . "$cache_file";;
|
---|
2217 | *) . "./$cache_file";;
|
---|
2218 | esac
|
---|
2219 | fi
|
---|
2220 | else
|
---|
2221 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
|
---|
2222 | printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
|
---|
2223 | >$cache_file
|
---|
2224 | fi
|
---|
2225 |
|
---|
2226 | # Test code for whether the C compiler supports C89 (global declarations)
|
---|
2227 | ac_c_conftest_c89_globals='
|
---|
2228 | /* Does the compiler advertise C89 conformance?
|
---|
2229 | Do not test the value of __STDC__, because some compilers set it to 0
|
---|
2230 | while being otherwise adequately conformant. */
|
---|
2231 | #if !defined __STDC__
|
---|
2232 | # error "Compiler does not advertise C89 conformance"
|
---|
2233 | #endif
|
---|
2234 |
|
---|
2235 | #include <stddef.h>
|
---|
2236 | #include <stdarg.h>
|
---|
2237 | struct stat;
|
---|
2238 | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
|
---|
2239 | struct buf { int x; };
|
---|
2240 | struct buf * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
2241 | static char *e (char **p, int i)
|
---|
2242 | {
|
---|
2243 | return p[i];
|
---|
2244 | }
|
---|
2245 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
2246 | {
|
---|
2247 | char *s;
|
---|
2248 | va_list v;
|
---|
2249 | va_start (v,p);
|
---|
2250 | s = g (p, va_arg (v,int));
|
---|
2251 | va_end (v);
|
---|
2252 | return s;
|
---|
2253 | }
|
---|
2254 |
|
---|
2255 | /* C89 style stringification. */
|
---|
2256 | #define noexpand_stringify(a) #a
|
---|
2257 | const char *stringified = noexpand_stringify(arbitrary+token=sequence);
|
---|
2258 |
|
---|
2259 | /* C89 style token pasting. Exercises some of the corner cases that
|
---|
2260 | e.g. old MSVC gets wrong, but not very hard. */
|
---|
2261 | #define noexpand_concat(a,b) a##b
|
---|
2262 | #define expand_concat(a,b) noexpand_concat(a,b)
|
---|
2263 | extern int vA;
|
---|
2264 | extern int vbee;
|
---|
2265 | #define aye A
|
---|
2266 | #define bee B
|
---|
2267 | int *pvA = &expand_concat(v,aye);
|
---|
2268 | int *pvbee = &noexpand_concat(v,bee);
|
---|
2269 |
|
---|
2270 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
2271 | function prototypes and stuff, but not \xHH hex character constants.
|
---|
2272 | These do not provoke an error unfortunately, instead are silently treated
|
---|
2273 | as an "x". The following induces an error, until -std is added to get
|
---|
2274 | proper ANSI mode. Curiously \x00 != x always comes out true, for an
|
---|
2275 | array size at least. It is necessary to write \x00 == 0 to get something
|
---|
2276 | that is true only with -std. */
|
---|
2277 | int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
|
---|
2278 |
|
---|
2279 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
---|
2280 | inside strings and character constants. */
|
---|
2281 | #define FOO(x) '\''x'\''
|
---|
2282 | int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
|
---|
2283 |
|
---|
2284 | int test (int i, double x);
|
---|
2285 | struct s1 {int (*f) (int a);};
|
---|
2286 | struct s2 {int (*f) (double a);};
|
---|
2287 | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
|
---|
2288 | int, int);'
|
---|
2289 |
|
---|
2290 | # Test code for whether the C compiler supports C89 (body of main).
|
---|
2291 | ac_c_conftest_c89_main='
|
---|
2292 | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
|
---|
2293 | '
|
---|
2294 |
|
---|
2295 | # Test code for whether the C compiler supports C99 (global declarations)
|
---|
2296 | ac_c_conftest_c99_globals='
|
---|
2297 | /* Does the compiler advertise C99 conformance? */
|
---|
2298 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
|
---|
2299 | # error "Compiler does not advertise C99 conformance"
|
---|
2300 | #endif
|
---|
2301 |
|
---|
2302 | // See if C++-style comments work.
|
---|
2303 |
|
---|
2304 | #include <stdbool.h>
|
---|
2305 | extern int puts (const char *);
|
---|
2306 | extern int printf (const char *, ...);
|
---|
2307 | extern int dprintf (int, const char *, ...);
|
---|
2308 | extern void *malloc (size_t);
|
---|
2309 | extern void free (void *);
|
---|
2310 |
|
---|
2311 | // Check varargs macros. These examples are taken from C99 6.10.3.5.
|
---|
2312 | // dprintf is used instead of fprintf to avoid needing to declare
|
---|
2313 | // FILE and stderr.
|
---|
2314 | #define debug(...) dprintf (2, __VA_ARGS__)
|
---|
2315 | #define showlist(...) puts (#__VA_ARGS__)
|
---|
2316 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
|
---|
2317 | static void
|
---|
2318 | test_varargs_macros (void)
|
---|
2319 | {
|
---|
2320 | int x = 1234;
|
---|
2321 | int y = 5678;
|
---|
2322 | debug ("Flag");
|
---|
2323 | debug ("X = %d\n", x);
|
---|
2324 | showlist (The first, second, and third items.);
|
---|
2325 | report (x>y, "x is %d but y is %d", x, y);
|
---|
2326 | }
|
---|
2327 |
|
---|
2328 | // Check long long types.
|
---|
2329 | #define BIG64 18446744073709551615ull
|
---|
2330 | #define BIG32 4294967295ul
|
---|
2331 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
|
---|
2332 | #if !BIG_OK
|
---|
2333 | #error "your preprocessor is broken"
|
---|
2334 | #endif
|
---|
2335 | #if BIG_OK
|
---|
2336 | #else
|
---|
2337 | #error "your preprocessor is broken"
|
---|
2338 | #endif
|
---|
2339 | static long long int bignum = -9223372036854775807LL;
|
---|
2340 | static unsigned long long int ubignum = BIG64;
|
---|
2341 |
|
---|
2342 | struct incomplete_array
|
---|
2343 | {
|
---|
2344 | int datasize;
|
---|
2345 | double data[];
|
---|
2346 | };
|
---|
2347 |
|
---|
2348 | struct named_init {
|
---|
2349 | int number;
|
---|
2350 | const wchar_t *name;
|
---|
2351 | double average;
|
---|
2352 | };
|
---|
2353 |
|
---|
2354 | typedef const char *ccp;
|
---|
2355 |
|
---|
2356 | static inline int
|
---|
2357 | test_restrict (ccp restrict text)
|
---|
2358 | {
|
---|
2359 | // Iterate through items via the restricted pointer.
|
---|
2360 | // Also check for declarations in for loops.
|
---|
2361 | for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
|
---|
2362 | continue;
|
---|
2363 | return 0;
|
---|
2364 | }
|
---|
2365 |
|
---|
2366 | // Check varargs and va_copy.
|
---|
2367 | static bool
|
---|
2368 | test_varargs (const char *format, ...)
|
---|
2369 | {
|
---|
2370 | va_list args;
|
---|
2371 | va_start (args, format);
|
---|
2372 | va_list args_copy;
|
---|
2373 | va_copy (args_copy, args);
|
---|
2374 |
|
---|
2375 | const char *str = "";
|
---|
2376 | int number = 0;
|
---|
2377 | float fnumber = 0;
|
---|
2378 |
|
---|
2379 | while (*format)
|
---|
2380 | {
|
---|
2381 | switch (*format++)
|
---|
2382 | {
|
---|
2383 | case '\''s'\'': // string
|
---|
2384 | str = va_arg (args_copy, const char *);
|
---|
2385 | break;
|
---|
2386 | case '\''d'\'': // int
|
---|
2387 | number = va_arg (args_copy, int);
|
---|
2388 | break;
|
---|
2389 | case '\''f'\'': // float
|
---|
2390 | fnumber = va_arg (args_copy, double);
|
---|
2391 | break;
|
---|
2392 | default:
|
---|
2393 | break;
|
---|
2394 | }
|
---|
2395 | }
|
---|
2396 | va_end (args_copy);
|
---|
2397 | va_end (args);
|
---|
2398 |
|
---|
2399 | return *str && number && fnumber;
|
---|
2400 | }
|
---|
2401 | '
|
---|
2402 |
|
---|
2403 | # Test code for whether the C compiler supports C99 (body of main).
|
---|
2404 | ac_c_conftest_c99_main='
|
---|
2405 | // Check bool.
|
---|
2406 | _Bool success = false;
|
---|
2407 | success |= (argc != 0);
|
---|
2408 |
|
---|
2409 | // Check restrict.
|
---|
2410 | if (test_restrict ("String literal") == 0)
|
---|
2411 | success = true;
|
---|
2412 | char *restrict newvar = "Another string";
|
---|
2413 |
|
---|
2414 | // Check varargs.
|
---|
2415 | success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
|
---|
2416 | test_varargs_macros ();
|
---|
2417 |
|
---|
2418 | // Check flexible array members.
|
---|
2419 | struct incomplete_array *ia =
|
---|
2420 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
|
---|
2421 | ia->datasize = 10;
|
---|
2422 | for (int i = 0; i < ia->datasize; ++i)
|
---|
2423 | ia->data[i] = i * 1.234;
|
---|
2424 | // Work around memory leak warnings.
|
---|
2425 | free (ia);
|
---|
2426 |
|
---|
2427 | // Check named initializers.
|
---|
2428 | struct named_init ni = {
|
---|
2429 | .number = 34,
|
---|
2430 | .name = L"Test wide string",
|
---|
2431 | .average = 543.34343,
|
---|
2432 | };
|
---|
2433 |
|
---|
2434 | ni.number = 58;
|
---|
2435 |
|
---|
2436 | int dynamic_array[ni.number];
|
---|
2437 | dynamic_array[0] = argv[0][0];
|
---|
2438 | dynamic_array[ni.number - 1] = 543;
|
---|
2439 |
|
---|
2440 | // work around unused variable warnings
|
---|
2441 | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
|
---|
2442 | || dynamic_array[ni.number - 1] != 543);
|
---|
2443 | '
|
---|
2444 |
|
---|
2445 | # Test code for whether the C compiler supports C11 (global declarations)
|
---|
2446 | ac_c_conftest_c11_globals='
|
---|
2447 | /* Does the compiler advertise C11 conformance? */
|
---|
2448 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
|
---|
2449 | # error "Compiler does not advertise C11 conformance"
|
---|
2450 | #endif
|
---|
2451 |
|
---|
2452 | // Check _Alignas.
|
---|
2453 | char _Alignas (double) aligned_as_double;
|
---|
2454 | char _Alignas (0) no_special_alignment;
|
---|
2455 | extern char aligned_as_int;
|
---|
2456 | char _Alignas (0) _Alignas (int) aligned_as_int;
|
---|
2457 |
|
---|
2458 | // Check _Alignof.
|
---|
2459 | enum
|
---|
2460 | {
|
---|
2461 | int_alignment = _Alignof (int),
|
---|
2462 | int_array_alignment = _Alignof (int[100]),
|
---|
2463 | char_alignment = _Alignof (char)
|
---|
2464 | };
|
---|
2465 | _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
|
---|
2466 |
|
---|
2467 | // Check _Noreturn.
|
---|
2468 | int _Noreturn does_not_return (void) { for (;;) continue; }
|
---|
2469 |
|
---|
2470 | // Check _Static_assert.
|
---|
2471 | struct test_static_assert
|
---|
2472 | {
|
---|
2473 | int x;
|
---|
2474 | _Static_assert (sizeof (int) <= sizeof (long int),
|
---|
2475 | "_Static_assert does not work in struct");
|
---|
2476 | long int y;
|
---|
2477 | };
|
---|
2478 |
|
---|
2479 | // Check UTF-8 literals.
|
---|
2480 | #define u8 syntax error!
|
---|
2481 | char const utf8_literal[] = u8"happens to be ASCII" "another string";
|
---|
2482 |
|
---|
2483 | // Check duplicate typedefs.
|
---|
2484 | typedef long *long_ptr;
|
---|
2485 | typedef long int *long_ptr;
|
---|
2486 | typedef long_ptr long_ptr;
|
---|
2487 |
|
---|
2488 | // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
|
---|
2489 | struct anonymous
|
---|
2490 | {
|
---|
2491 | union {
|
---|
2492 | struct { int i; int j; };
|
---|
2493 | struct { int k; long int l; } w;
|
---|
2494 | };
|
---|
2495 | int m;
|
---|
2496 | } v1;
|
---|
2497 | '
|
---|
2498 |
|
---|
2499 | # Test code for whether the C compiler supports C11 (body of main).
|
---|
2500 | ac_c_conftest_c11_main='
|
---|
2501 | _Static_assert ((offsetof (struct anonymous, i)
|
---|
2502 | == offsetof (struct anonymous, w.k)),
|
---|
2503 | "Anonymous union alignment botch");
|
---|
2504 | v1.i = 2;
|
---|
2505 | v1.w.k = 5;
|
---|
2506 | ok |= v1.i != 5;
|
---|
2507 | '
|
---|
2508 |
|
---|
2509 | # Test code for whether the C compiler supports C11 (complete).
|
---|
2510 | ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
|
---|
2511 | ${ac_c_conftest_c99_globals}
|
---|
2512 | ${ac_c_conftest_c11_globals}
|
---|
2513 |
|
---|
2514 | int
|
---|
2515 | main (int argc, char **argv)
|
---|
2516 | {
|
---|
2517 | int ok = 0;
|
---|
2518 | ${ac_c_conftest_c89_main}
|
---|
2519 | ${ac_c_conftest_c99_main}
|
---|
2520 | ${ac_c_conftest_c11_main}
|
---|
2521 | return ok;
|
---|
2522 | }
|
---|
2523 | "
|
---|
2524 |
|
---|
2525 | # Test code for whether the C compiler supports C99 (complete).
|
---|
2526 | ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
|
---|
2527 | ${ac_c_conftest_c99_globals}
|
---|
2528 |
|
---|
2529 | int
|
---|
2530 | main (int argc, char **argv)
|
---|
2531 | {
|
---|
2532 | int ok = 0;
|
---|
2533 | ${ac_c_conftest_c89_main}
|
---|
2534 | ${ac_c_conftest_c99_main}
|
---|
2535 | return ok;
|
---|
2536 | }
|
---|
2537 | "
|
---|
2538 |
|
---|
2539 | # Test code for whether the C compiler supports C89 (complete).
|
---|
2540 | ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
|
---|
2541 |
|
---|
2542 | int
|
---|
2543 | main (int argc, char **argv)
|
---|
2544 | {
|
---|
2545 | int ok = 0;
|
---|
2546 | ${ac_c_conftest_c89_main}
|
---|
2547 | return ok;
|
---|
2548 | }
|
---|
2549 | "
|
---|
2550 |
|
---|
2551 | as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
|
---|
2552 | as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
|
---|
2553 | as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
|
---|
2554 | as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
|
---|
2555 | as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
|
---|
2556 | as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
|
---|
2557 | as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
|
---|
2558 | as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
|
---|
2559 | as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
|
---|
2560 |
|
---|
2561 | # Auxiliary files required by this configure script.
|
---|
2562 | ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
|
---|
2563 |
|
---|
2564 | # Locations in which to look for auxiliary files.
|
---|
2565 | ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
|
---|
2566 |
|
---|
2567 | # Search for a directory containing all of the required auxiliary files,
|
---|
2568 | # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
|
---|
2569 | # If we don't find one directory that contains all the files we need,
|
---|
2570 | # we report the set of missing files from the *first* directory in
|
---|
2571 | # $ac_aux_dir_candidates and give up.
|
---|
2572 | ac_missing_aux_files=""
|
---|
2573 | ac_first_candidate=:
|
---|
2574 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
|
---|
2575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2576 | as_found=false
|
---|
2577 | for as_dir in $ac_aux_dir_candidates
|
---|
2578 | do
|
---|
2579 | IFS=$as_save_IFS
|
---|
2580 | case $as_dir in #(((
|
---|
2581 | '') as_dir=./ ;;
|
---|
2582 | */) ;;
|
---|
2583 | *) as_dir=$as_dir/ ;;
|
---|
2584 | esac
|
---|
2585 | as_found=:
|
---|
2586 |
|
---|
2587 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
|
---|
2588 | ac_aux_dir_found=yes
|
---|
2589 | ac_install_sh=
|
---|
2590 | for ac_aux in $ac_aux_files
|
---|
2591 | do
|
---|
2592 | # As a special case, if "install-sh" is required, that requirement
|
---|
2593 | # can be satisfied by any of "install-sh", "install.sh", or "shtool",
|
---|
2594 | # and $ac_install_sh is set appropriately for whichever one is found.
|
---|
2595 | if test x"$ac_aux" = x"install-sh"
|
---|
2596 | then
|
---|
2597 | if test -f "${as_dir}install-sh"; then
|
---|
2598 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
|
---|
2599 | ac_install_sh="${as_dir}install-sh -c"
|
---|
2600 | elif test -f "${as_dir}install.sh"; then
|
---|
2601 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
|
---|
2602 | ac_install_sh="${as_dir}install.sh -c"
|
---|
2603 | elif test -f "${as_dir}shtool"; then
|
---|
2604 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
|
---|
2605 | ac_install_sh="${as_dir}shtool install -c"
|
---|
2606 | else
|
---|
2607 | ac_aux_dir_found=no
|
---|
2608 | if $ac_first_candidate; then
|
---|
2609 | ac_missing_aux_files="${ac_missing_aux_files} install-sh"
|
---|
2610 | else
|
---|
2611 | break
|
---|
2612 | fi
|
---|
2613 | fi
|
---|
2614 | else
|
---|
2615 | if test -f "${as_dir}${ac_aux}"; then
|
---|
2616 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
|
---|
2617 | else
|
---|
2618 | ac_aux_dir_found=no
|
---|
2619 | if $ac_first_candidate; then
|
---|
2620 | ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
|
---|
2621 | else
|
---|
2622 | break
|
---|
2623 | fi
|
---|
2624 | fi
|
---|
2625 | fi
|
---|
2626 | done
|
---|
2627 | if test "$ac_aux_dir_found" = yes; then
|
---|
2628 | ac_aux_dir="$as_dir"
|
---|
2629 | break
|
---|
2630 | fi
|
---|
2631 | ac_first_candidate=false
|
---|
2632 |
|
---|
2633 | as_found=false
|
---|
2634 | done
|
---|
2635 | IFS=$as_save_IFS
|
---|
2636 | if $as_found
|
---|
2637 | then :
|
---|
2638 |
|
---|
2639 | else case e in #(
|
---|
2640 | e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
|
---|
2641 | esac
|
---|
2642 | fi
|
---|
2643 |
|
---|
2644 |
|
---|
2645 | # These three variables are undocumented and unsupported,
|
---|
2646 | # and are intended to be withdrawn in a future Autoconf release.
|
---|
2647 | # They can cause serious problems if a builder's source tree is in a directory
|
---|
2648 | # whose full name contains unusual characters.
|
---|
2649 | if test -f "${ac_aux_dir}config.guess"; then
|
---|
2650 | ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
|
---|
2651 | fi
|
---|
2652 | if test -f "${ac_aux_dir}config.sub"; then
|
---|
2653 | ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
|
---|
2654 | fi
|
---|
2655 | if test -f "$ac_aux_dir/configure"; then
|
---|
2656 | ac_configure="$SHELL ${ac_aux_dir}configure"
|
---|
2657 | fi
|
---|
2658 |
|
---|
2659 | # Check that the precious variables saved in the cache have kept the same
|
---|
2660 | # value.
|
---|
2661 | ac_cache_corrupted=false
|
---|
2662 | for ac_var in $ac_precious_vars; do
|
---|
2663 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
2664 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
2665 | eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
---|
2666 | eval ac_new_val=\$ac_env_${ac_var}_value
|
---|
2667 | case $ac_old_set,$ac_new_set in
|
---|
2668 | set,)
|
---|
2669 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
|
---|
2670 | printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
|
---|
2671 | ac_cache_corrupted=: ;;
|
---|
2672 | ,set)
|
---|
2673 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
|
---|
2674 | printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
|
---|
2675 | ac_cache_corrupted=: ;;
|
---|
2676 | ,);;
|
---|
2677 | *)
|
---|
2678 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
2679 | # differences in whitespace do not lead to failure.
|
---|
2680 | ac_old_val_w=`echo x $ac_old_val`
|
---|
2681 | ac_new_val_w=`echo x $ac_new_val`
|
---|
2682 | if test "$ac_old_val_w" != "$ac_new_val_w"; then
|
---|
2683 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
|
---|
2684 | printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
|
---|
2685 | ac_cache_corrupted=:
|
---|
2686 | else
|
---|
2687 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
|
---|
2688 | printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
|
---|
2689 | eval $ac_var=\$ac_old_val
|
---|
2690 | fi
|
---|
2691 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
|
---|
2692 | printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
|
---|
2693 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
|
---|
2694 | printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
|
---|
2695 | fi;;
|
---|
2696 | esac
|
---|
2697 | # Pass precious variables to config.status.
|
---|
2698 | if test "$ac_new_set" = set; then
|
---|
2699 | case $ac_new_val in
|
---|
2700 | *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
2701 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
2702 | esac
|
---|
2703 | case " $ac_configure_args " in
|
---|
2704 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
2705 | *) as_fn_append ac_configure_args " '$ac_arg'" ;;
|
---|
2706 | esac
|
---|
2707 | fi
|
---|
2708 | done
|
---|
2709 | if $ac_cache_corrupted; then
|
---|
2710 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
|
---|
2711 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
|
---|
2712 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
|
---|
2713 | printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
2714 | as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
|
---|
2715 | and start over" "$LINENO" 5
|
---|
2716 | fi
|
---|
2717 | ## -------------------- ##
|
---|
2718 | ## Main body of script. ##
|
---|
2719 | ## -------------------- ##
|
---|
2720 |
|
---|
2721 | ac_ext=c
|
---|
2722 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2723 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2724 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2725 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2726 |
|
---|
2727 |
|
---|
2728 |
|
---|
2729 |
|
---|
2730 | # libpng does not follow GNU file name conventions (hence 'foreign')
|
---|
2731 | # color-tests requires automake 1.11 or later
|
---|
2732 | # silent-rules requires automake 1.11 or later
|
---|
2733 | # dist-xz requires automake 1.11 or later
|
---|
2734 | # 1.12.2 fixes a security issue in 1.11.2 and 1.12.1
|
---|
2735 | # 1.13 is required for parallel tests
|
---|
2736 | am__api_version='1.17'
|
---|
2737 |
|
---|
2738 |
|
---|
2739 |
|
---|
2740 | # Find a good install program. We prefer a C program (faster),
|
---|
2741 | # so one script is as good as another. But avoid the broken or
|
---|
2742 | # incompatible versions:
|
---|
2743 | # SysV /etc/install, /usr/sbin/install
|
---|
2744 | # SunOS /usr/etc/install
|
---|
2745 | # IRIX /sbin/install
|
---|
2746 | # AIX /bin/install
|
---|
2747 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
2748 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
2749 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
2750 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
2751 | # OS/2's system install, which has a completely different semantic
|
---|
2752 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
2753 | # Reject install programs that cannot install multiple files.
|
---|
2754 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
|
---|
2755 | printf %s "checking for a BSD-compatible install... " >&6; }
|
---|
2756 | if test -z "$INSTALL"; then
|
---|
2757 | if test ${ac_cv_path_install+y}
|
---|
2758 | then :
|
---|
2759 | printf %s "(cached) " >&6
|
---|
2760 | else case e in #(
|
---|
2761 | e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2762 | for as_dir in $PATH
|
---|
2763 | do
|
---|
2764 | IFS=$as_save_IFS
|
---|
2765 | case $as_dir in #(((
|
---|
2766 | '') as_dir=./ ;;
|
---|
2767 | */) ;;
|
---|
2768 | *) as_dir=$as_dir/ ;;
|
---|
2769 | esac
|
---|
2770 | # Account for fact that we put trailing slashes in our PATH walk.
|
---|
2771 | case $as_dir in #((
|
---|
2772 | ./ | /[cC]/* | \
|
---|
2773 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
2774 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
|
---|
2775 | /usr/ucb/* ) ;;
|
---|
2776 | *)
|
---|
2777 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
2778 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
2779 | # by default.
|
---|
2780 | for ac_prog in ginstall scoinst install; do
|
---|
2781 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2782 | if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
|
---|
2783 | if test $ac_prog = install &&
|
---|
2784 | grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
2785 | # AIX install. It has an incompatible calling convention.
|
---|
2786 | :
|
---|
2787 | elif test $ac_prog = install &&
|
---|
2788 | grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
2789 | # program-specific install script used by HP pwplus--don't use.
|
---|
2790 | :
|
---|
2791 | else
|
---|
2792 | rm -rf conftest.one conftest.two conftest.dir
|
---|
2793 | echo one > conftest.one
|
---|
2794 | echo two > conftest.two
|
---|
2795 | mkdir conftest.dir
|
---|
2796 | if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
|
---|
2797 | test -s conftest.one && test -s conftest.two &&
|
---|
2798 | test -s conftest.dir/conftest.one &&
|
---|
2799 | test -s conftest.dir/conftest.two
|
---|
2800 | then
|
---|
2801 | ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
|
---|
2802 | break 3
|
---|
2803 | fi
|
---|
2804 | fi
|
---|
2805 | fi
|
---|
2806 | done
|
---|
2807 | done
|
---|
2808 | ;;
|
---|
2809 | esac
|
---|
2810 |
|
---|
2811 | done
|
---|
2812 | IFS=$as_save_IFS
|
---|
2813 |
|
---|
2814 | rm -rf conftest.one conftest.two conftest.dir
|
---|
2815 | ;;
|
---|
2816 | esac
|
---|
2817 | fi
|
---|
2818 | if test ${ac_cv_path_install+y}; then
|
---|
2819 | INSTALL=$ac_cv_path_install
|
---|
2820 | else
|
---|
2821 | # As a last resort, use the slow shell script. Don't cache a
|
---|
2822 | # value for INSTALL within a source directory, because that will
|
---|
2823 | # break other packages using the cache if that directory is
|
---|
2824 | # removed, or if the value is a relative name.
|
---|
2825 | INSTALL=$ac_install_sh
|
---|
2826 | fi
|
---|
2827 | fi
|
---|
2828 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
|
---|
2829 | printf "%s\n" "$INSTALL" >&6; }
|
---|
2830 |
|
---|
2831 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
2832 | # It thinks the first close brace ends the variable substitution.
|
---|
2833 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
2834 |
|
---|
2835 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
2836 |
|
---|
2837 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
2838 |
|
---|
2839 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
|
---|
2840 | printf %s "checking whether sleep supports fractional seconds... " >&6; }
|
---|
2841 | if test ${am_cv_sleep_fractional_seconds+y}
|
---|
2842 | then :
|
---|
2843 | printf %s "(cached) " >&6
|
---|
2844 | else case e in #(
|
---|
2845 | e) if sleep 0.001 2>/dev/null
|
---|
2846 | then :
|
---|
2847 | am_cv_sleep_fractional_seconds=yes
|
---|
2848 | else case e in #(
|
---|
2849 | e) am_cv_sleep_fractional_seconds=no ;;
|
---|
2850 | esac
|
---|
2851 | fi
|
---|
2852 | ;;
|
---|
2853 | esac
|
---|
2854 | fi
|
---|
2855 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
|
---|
2856 | printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
|
---|
2857 |
|
---|
2858 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
|
---|
2859 | printf %s "checking filesystem timestamp resolution... " >&6; }
|
---|
2860 | if test ${am_cv_filesystem_timestamp_resolution+y}
|
---|
2861 | then :
|
---|
2862 | printf %s "(cached) " >&6
|
---|
2863 | else case e in #(
|
---|
2864 | e) # Default to the worst case.
|
---|
2865 | am_cv_filesystem_timestamp_resolution=2
|
---|
2866 |
|
---|
2867 | # Only try to go finer than 1 sec if sleep can do it.
|
---|
2868 | # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
|
---|
2869 | # - 1 sec is not much of a win compared to 2 sec, and
|
---|
2870 | # - it takes 2 seconds to perform the test whether 1 sec works.
|
---|
2871 | #
|
---|
2872 | # Instead, just use the default 2s on platforms that have 1s resolution,
|
---|
2873 | # accept the extra 1s delay when using $sleep in the Automake tests, in
|
---|
2874 | # exchange for not incurring the 2s delay for running the test for all
|
---|
2875 | # packages.
|
---|
2876 | #
|
---|
2877 | am_try_resolutions=
|
---|
2878 | if test "$am_cv_sleep_fractional_seconds" = yes; then
|
---|
2879 | # Even a millisecond often causes a bunch of false positives,
|
---|
2880 | # so just try a hundredth of a second. The time saved between .001 and
|
---|
2881 | # .01 is not terribly consequential.
|
---|
2882 | am_try_resolutions="0.01 0.1 $am_try_resolutions"
|
---|
2883 | fi
|
---|
2884 |
|
---|
2885 | # In order to catch current-generation FAT out, we must *modify* files
|
---|
2886 | # that already exist; the *creation* timestamp is finer. Use names
|
---|
2887 | # that make ls -t sort them differently when they have equal
|
---|
2888 | # timestamps than when they have distinct timestamps, keeping
|
---|
2889 | # in mind that ls -t prints the *newest* file first.
|
---|
2890 | rm -f conftest.ts?
|
---|
2891 | : > conftest.ts1
|
---|
2892 | : > conftest.ts2
|
---|
2893 | : > conftest.ts3
|
---|
2894 |
|
---|
2895 | # Make sure ls -t actually works. Do 'set' in a subshell so we don't
|
---|
2896 | # clobber the current shell's arguments. (Outer-level square brackets
|
---|
2897 | # are removed by m4; they're present so that m4 does not expand
|
---|
2898 | # <dollar><star>; be careful, easy to get confused.)
|
---|
2899 | if (
|
---|
2900 | set X `ls -t conftest.ts[12]` &&
|
---|
2901 | {
|
---|
2902 | test "$*" != "X conftest.ts1 conftest.ts2" ||
|
---|
2903 | test "$*" != "X conftest.ts2 conftest.ts1";
|
---|
2904 | }
|
---|
2905 | ); then :; else
|
---|
2906 | # If neither matched, then we have a broken ls. This can happen
|
---|
2907 | # if, for instance, CONFIG_SHELL is bash and it inherits a
|
---|
2908 | # broken ls alias from the environment. This has actually
|
---|
2909 | # happened. Such a system could not be considered "sane".
|
---|
2910 | printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
|
---|
2911 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
|
---|
2912 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
|
---|
2913 | as_fn_error $? "ls -t produces unexpected output.
|
---|
2914 | Make sure there is not a broken ls alias in your environment.
|
---|
2915 | See 'config.log' for more details" "$LINENO" 5; }
|
---|
2916 | fi
|
---|
2917 |
|
---|
2918 | for am_try_res in $am_try_resolutions; do
|
---|
2919 | # Any one fine-grained sleep might happen to cross the boundary
|
---|
2920 | # between two values of a coarser actual resolution, but if we do
|
---|
2921 | # two fine-grained sleeps in a row, at least one of them will fall
|
---|
2922 | # entirely within a coarse interval.
|
---|
2923 | echo alpha > conftest.ts1
|
---|
2924 | sleep $am_try_res
|
---|
2925 | echo beta > conftest.ts2
|
---|
2926 | sleep $am_try_res
|
---|
2927 | echo gamma > conftest.ts3
|
---|
2928 |
|
---|
2929 | # We assume that 'ls -t' will make use of high-resolution
|
---|
2930 | # timestamps if the operating system supports them at all.
|
---|
2931 | if (set X `ls -t conftest.ts?` &&
|
---|
2932 | test "$2" = conftest.ts3 &&
|
---|
2933 | test "$3" = conftest.ts2 &&
|
---|
2934 | test "$4" = conftest.ts1); then
|
---|
2935 | #
|
---|
2936 | # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
|
---|
2937 | # because we don't need to test make.
|
---|
2938 | make_ok=true
|
---|
2939 | if test $am_try_res != 1; then
|
---|
2940 | # But if we've succeeded so far with a subsecond resolution, we
|
---|
2941 | # have one more thing to check: make. It can happen that
|
---|
2942 | # everything else supports the subsecond mtimes, but make doesn't;
|
---|
2943 | # notably on macOS, which ships make 3.81 from 2006 (the last one
|
---|
2944 | # released under GPLv2). https://bugs.gnu.org/68808
|
---|
2945 | #
|
---|
2946 | # We test $MAKE if it is defined in the environment, else "make".
|
---|
2947 | # It might get overridden later, but our hope is that in practice
|
---|
2948 | # it does not matter: it is the system "make" which is (by far)
|
---|
2949 | # the most likely to be broken, whereas if the user overrides it,
|
---|
2950 | # probably they did so with a better, or at least not worse, make.
|
---|
2951 | # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
|
---|
2952 | #
|
---|
2953 | # Create a Makefile (real tab character here):
|
---|
2954 | rm -f conftest.mk
|
---|
2955 | echo 'conftest.ts1: conftest.ts2' >conftest.mk
|
---|
2956 | echo ' touch conftest.ts2' >>conftest.mk
|
---|
2957 | #
|
---|
2958 | # Now, running
|
---|
2959 | # touch conftest.ts1; touch conftest.ts2; make
|
---|
2960 | # should touch ts1 because ts2 is newer. This could happen by luck,
|
---|
2961 | # but most often, it will fail if make's support is insufficient. So
|
---|
2962 | # test for several consecutive successes.
|
---|
2963 | #
|
---|
2964 | # (We reuse conftest.ts[12] because we still want to modify existing
|
---|
2965 | # files, not create new ones, per above.)
|
---|
2966 | n=0
|
---|
2967 | make=${MAKE-make}
|
---|
2968 | until test $n -eq 3; do
|
---|
2969 | echo one > conftest.ts1
|
---|
2970 | sleep $am_try_res
|
---|
2971 | echo two > conftest.ts2 # ts2 should now be newer than ts1
|
---|
2972 | if $make -f conftest.mk | grep 'up to date' >/dev/null; then
|
---|
2973 | make_ok=false
|
---|
2974 | break # out of $n loop
|
---|
2975 | fi
|
---|
2976 | n=`expr $n + 1`
|
---|
2977 | done
|
---|
2978 | fi
|
---|
2979 | #
|
---|
2980 | if $make_ok; then
|
---|
2981 | # Everything we know to check worked out, so call this resolution good.
|
---|
2982 | am_cv_filesystem_timestamp_resolution=$am_try_res
|
---|
2983 | break # out of $am_try_res loop
|
---|
2984 | fi
|
---|
2985 | # Otherwise, we'll go on to check the next resolution.
|
---|
2986 | fi
|
---|
2987 | done
|
---|
2988 | rm -f conftest.ts?
|
---|
2989 | # (end _am_filesystem_timestamp_resolution)
|
---|
2990 | ;;
|
---|
2991 | esac
|
---|
2992 | fi
|
---|
2993 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
|
---|
2994 | printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
|
---|
2995 |
|
---|
2996 | # This check should not be cached, as it may vary across builds of
|
---|
2997 | # different projects.
|
---|
2998 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
|
---|
2999 | printf %s "checking whether build environment is sane... " >&6; }
|
---|
3000 | # Reject unsafe characters in $srcdir or the absolute working directory
|
---|
3001 | # name. Accept space and tab only in the latter.
|
---|
3002 | am_lf='
|
---|
3003 | '
|
---|
3004 | case `pwd` in
|
---|
3005 | *[\\\"\#\$\&\'\`$am_lf]*)
|
---|
3006 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
|
---|
3007 | esac
|
---|
3008 | case $srcdir in
|
---|
3009 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
|
---|
3010 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
|
---|
3011 | esac
|
---|
3012 |
|
---|
3013 | # Do 'set' in a subshell so we don't clobber the current shell's
|
---|
3014 | # arguments. Must try -L first in case configure is actually a
|
---|
3015 | # symlink; some systems play weird games with the mod time of symlinks
|
---|
3016 | # (eg FreeBSD returns the mod time of the symlink's containing
|
---|
3017 | # directory).
|
---|
3018 | am_build_env_is_sane=no
|
---|
3019 | am_has_slept=no
|
---|
3020 | rm -f conftest.file
|
---|
3021 | for am_try in 1 2; do
|
---|
3022 | echo "timestamp, slept: $am_has_slept" > conftest.file
|
---|
3023 | if (
|
---|
3024 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
|
---|
3025 | if test "$*" = "X"; then
|
---|
3026 | # -L didn't work.
|
---|
3027 | set X `ls -t "$srcdir/configure" conftest.file`
|
---|
3028 | fi
|
---|
3029 | test "$2" = conftest.file
|
---|
3030 | ); then
|
---|
3031 | am_build_env_is_sane=yes
|
---|
3032 | break
|
---|
3033 | fi
|
---|
3034 | # Just in case.
|
---|
3035 | sleep "$am_cv_filesystem_timestamp_resolution"
|
---|
3036 | am_has_slept=yes
|
---|
3037 | done
|
---|
3038 |
|
---|
3039 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
|
---|
3040 | printf "%s\n" "$am_build_env_is_sane" >&6; }
|
---|
3041 | if test "$am_build_env_is_sane" = no; then
|
---|
3042 | as_fn_error $? "newly created file is older than distributed files!
|
---|
3043 | Check your system clock" "$LINENO" 5
|
---|
3044 | fi
|
---|
3045 |
|
---|
3046 | # If we didn't sleep, we still need to ensure time stamps of config.status and
|
---|
3047 | # generated files are strictly newer.
|
---|
3048 | am_sleep_pid=
|
---|
3049 | if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
|
---|
3050 | then :
|
---|
3051 |
|
---|
3052 | else case e in #(
|
---|
3053 | e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
|
---|
3054 | am_sleep_pid=$!
|
---|
3055 | ;;
|
---|
3056 | esac
|
---|
3057 | fi
|
---|
3058 |
|
---|
3059 | rm -f conftest.file
|
---|
3060 |
|
---|
3061 | test "$program_prefix" != NONE &&
|
---|
3062 | program_transform_name="s&^&$program_prefix&;$program_transform_name"
|
---|
3063 | # Use a double $ so make ignores it.
|
---|
3064 | test "$program_suffix" != NONE &&
|
---|
3065 | program_transform_name="s&\$&$program_suffix&;$program_transform_name"
|
---|
3066 | # Double any \ or $.
|
---|
3067 | # By default was 's,x,x', remove it if useless.
|
---|
3068 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
|
---|
3069 | program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
|
---|
3070 |
|
---|
3071 |
|
---|
3072 | # Expand $ac_aux_dir to an absolute path.
|
---|
3073 | am_aux_dir=`cd "$ac_aux_dir" && pwd`
|
---|
3074 |
|
---|
3075 |
|
---|
3076 | if test x"${MISSING+set}" != xset; then
|
---|
3077 | MISSING="\${SHELL} '$am_aux_dir/missing'"
|
---|
3078 | fi
|
---|
3079 | # Use eval to expand $SHELL
|
---|
3080 | if eval "$MISSING --is-lightweight"; then
|
---|
3081 | am_missing_run="$MISSING "
|
---|
3082 | else
|
---|
3083 | am_missing_run=
|
---|
3084 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
|
---|
3085 | printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
|
---|
3086 | fi
|
---|
3087 |
|
---|
3088 | if test x"${install_sh+set}" != xset; then
|
---|
3089 | case $am_aux_dir in
|
---|
3090 | *\ * | *\ *)
|
---|
3091 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
|
---|
3092 | *)
|
---|
3093 | install_sh="\${SHELL} $am_aux_dir/install-sh"
|
---|
3094 | esac
|
---|
3095 | fi
|
---|
3096 |
|
---|
3097 | # Installed binaries are usually stripped using 'strip' when the user
|
---|
3098 | # run "make install-strip". However 'strip' might not be the right
|
---|
3099 | # tool to use in cross-compilation environments, therefore Automake
|
---|
3100 | # will honor the 'STRIP' environment variable to overrule this program.
|
---|
3101 | if test "$cross_compiling" != no; then
|
---|
3102 | if test -n "$ac_tool_prefix"; then
|
---|
3103 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
---|
3104 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
---|
3105 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3106 | printf %s "checking for $ac_word... " >&6; }
|
---|
3107 | if test ${ac_cv_prog_STRIP+y}
|
---|
3108 | then :
|
---|
3109 | printf %s "(cached) " >&6
|
---|
3110 | else case e in #(
|
---|
3111 | e) if test -n "$STRIP"; then
|
---|
3112 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
3113 | else
|
---|
3114 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3115 | for as_dir in $PATH
|
---|
3116 | do
|
---|
3117 | IFS=$as_save_IFS
|
---|
3118 | case $as_dir in #(((
|
---|
3119 | '') as_dir=./ ;;
|
---|
3120 | */) ;;
|
---|
3121 | *) as_dir=$as_dir/ ;;
|
---|
3122 | esac
|
---|
3123 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3124 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
3125 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
---|
3126 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
3127 | break 2
|
---|
3128 | fi
|
---|
3129 | done
|
---|
3130 | done
|
---|
3131 | IFS=$as_save_IFS
|
---|
3132 |
|
---|
3133 | fi ;;
|
---|
3134 | esac
|
---|
3135 | fi
|
---|
3136 | STRIP=$ac_cv_prog_STRIP
|
---|
3137 | if test -n "$STRIP"; then
|
---|
3138 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
|
---|
3139 | printf "%s\n" "$STRIP" >&6; }
|
---|
3140 | else
|
---|
3141 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3142 | printf "%s\n" "no" >&6; }
|
---|
3143 | fi
|
---|
3144 |
|
---|
3145 |
|
---|
3146 | fi
|
---|
3147 | if test -z "$ac_cv_prog_STRIP"; then
|
---|
3148 | ac_ct_STRIP=$STRIP
|
---|
3149 | # Extract the first word of "strip", so it can be a program name with args.
|
---|
3150 | set dummy strip; ac_word=$2
|
---|
3151 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3152 | printf %s "checking for $ac_word... " >&6; }
|
---|
3153 | if test ${ac_cv_prog_ac_ct_STRIP+y}
|
---|
3154 | then :
|
---|
3155 | printf %s "(cached) " >&6
|
---|
3156 | else case e in #(
|
---|
3157 | e) if test -n "$ac_ct_STRIP"; then
|
---|
3158 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
---|
3159 | else
|
---|
3160 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3161 | for as_dir in $PATH
|
---|
3162 | do
|
---|
3163 | IFS=$as_save_IFS
|
---|
3164 | case $as_dir in #(((
|
---|
3165 | '') as_dir=./ ;;
|
---|
3166 | */) ;;
|
---|
3167 | *) as_dir=$as_dir/ ;;
|
---|
3168 | esac
|
---|
3169 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3170 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
3171 | ac_cv_prog_ac_ct_STRIP="strip"
|
---|
3172 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
3173 | break 2
|
---|
3174 | fi
|
---|
3175 | done
|
---|
3176 | done
|
---|
3177 | IFS=$as_save_IFS
|
---|
3178 |
|
---|
3179 | fi ;;
|
---|
3180 | esac
|
---|
3181 | fi
|
---|
3182 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
---|
3183 | if test -n "$ac_ct_STRIP"; then
|
---|
3184 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
|
---|
3185 | printf "%s\n" "$ac_ct_STRIP" >&6; }
|
---|
3186 | else
|
---|
3187 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3188 | printf "%s\n" "no" >&6; }
|
---|
3189 | fi
|
---|
3190 |
|
---|
3191 | if test "x$ac_ct_STRIP" = x; then
|
---|
3192 | STRIP=":"
|
---|
3193 | else
|
---|
3194 | case $cross_compiling:$ac_tool_warned in
|
---|
3195 | yes:)
|
---|
3196 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
3197 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
3198 | ac_tool_warned=yes ;;
|
---|
3199 | esac
|
---|
3200 | STRIP=$ac_ct_STRIP
|
---|
3201 | fi
|
---|
3202 | else
|
---|
3203 | STRIP="$ac_cv_prog_STRIP"
|
---|
3204 | fi
|
---|
3205 |
|
---|
3206 | fi
|
---|
3207 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
|
---|
3208 |
|
---|
3209 |
|
---|
3210 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
|
---|
3211 | printf %s "checking for a race-free mkdir -p... " >&6; }
|
---|
3212 | if test -z "$MKDIR_P"; then
|
---|
3213 | if test ${ac_cv_path_mkdir+y}
|
---|
3214 | then :
|
---|
3215 | printf %s "(cached) " >&6
|
---|
3216 | else case e in #(
|
---|
3217 | e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3218 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
|
---|
3219 | do
|
---|
3220 | IFS=$as_save_IFS
|
---|
3221 | case $as_dir in #(((
|
---|
3222 | '') as_dir=./ ;;
|
---|
3223 | */) ;;
|
---|
3224 | *) as_dir=$as_dir/ ;;
|
---|
3225 | esac
|
---|
3226 | for ac_prog in mkdir gmkdir; do
|
---|
3227 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3228 | as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
|
---|
3229 | case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
|
---|
3230 | 'mkdir ('*'coreutils) '* | \
|
---|
3231 | *'BusyBox '* | \
|
---|
3232 | 'mkdir (fileutils) '4.1*)
|
---|
3233 | ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
|
---|
3234 | break 3;;
|
---|
3235 | esac
|
---|
3236 | done
|
---|
3237 | done
|
---|
3238 | done
|
---|
3239 | IFS=$as_save_IFS
|
---|
3240 | ;;
|
---|
3241 | esac
|
---|
3242 | fi
|
---|
3243 |
|
---|
3244 | test -d ./--version && rmdir ./--version
|
---|
3245 | if test ${ac_cv_path_mkdir+y}; then
|
---|
3246 | MKDIR_P="$ac_cv_path_mkdir -p"
|
---|
3247 | else
|
---|
3248 | # As a last resort, use plain mkdir -p,
|
---|
3249 | # in the hope it doesn't have the bugs of ancient mkdir.
|
---|
3250 | MKDIR_P='mkdir -p'
|
---|
3251 | fi
|
---|
3252 | fi
|
---|
3253 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
|
---|
3254 | printf "%s\n" "$MKDIR_P" >&6; }
|
---|
3255 |
|
---|
3256 | for ac_prog in gawk mawk nawk awk
|
---|
3257 | do
|
---|
3258 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3259 | set dummy $ac_prog; ac_word=$2
|
---|
3260 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3261 | printf %s "checking for $ac_word... " >&6; }
|
---|
3262 | if test ${ac_cv_prog_AWK+y}
|
---|
3263 | then :
|
---|
3264 | printf %s "(cached) " >&6
|
---|
3265 | else case e in #(
|
---|
3266 | e) if test -n "$AWK"; then
|
---|
3267 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
3268 | else
|
---|
3269 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3270 | for as_dir in $PATH
|
---|
3271 | do
|
---|
3272 | IFS=$as_save_IFS
|
---|
3273 | case $as_dir in #(((
|
---|
3274 | '') as_dir=./ ;;
|
---|
3275 | */) ;;
|
---|
3276 | *) as_dir=$as_dir/ ;;
|
---|
3277 | esac
|
---|
3278 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3279 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
3280 | ac_cv_prog_AWK="$ac_prog"
|
---|
3281 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
3282 | break 2
|
---|
3283 | fi
|
---|
3284 | done
|
---|
3285 | done
|
---|
3286 | IFS=$as_save_IFS
|
---|
3287 |
|
---|
3288 | fi ;;
|
---|
3289 | esac
|
---|
3290 | fi
|
---|
3291 | AWK=$ac_cv_prog_AWK
|
---|
3292 | if test -n "$AWK"; then
|
---|
3293 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
|
---|
3294 | printf "%s\n" "$AWK" >&6; }
|
---|
3295 | else
|
---|
3296 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3297 | printf "%s\n" "no" >&6; }
|
---|
3298 | fi
|
---|
3299 |
|
---|
3300 |
|
---|
3301 | test -n "$AWK" && break
|
---|
3302 | done
|
---|
3303 |
|
---|
3304 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
3305 | printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
|
---|
3306 | set x ${MAKE-make}
|
---|
3307 | ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
---|
3308 | if eval test \${ac_cv_prog_make_${ac_make}_set+y}
|
---|
3309 | then :
|
---|
3310 | printf %s "(cached) " >&6
|
---|
3311 | else case e in #(
|
---|
3312 | e) cat >conftest.make <<\_ACEOF
|
---|
3313 | SHELL = /bin/sh
|
---|
3314 | all:
|
---|
3315 | @echo '@@@%%%=$(MAKE)=@@@%%%'
|
---|
3316 | _ACEOF
|
---|
3317 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
|
---|
3318 | case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
---|
3319 | *@@@%%%=?*=@@@%%%*)
|
---|
3320 | eval ac_cv_prog_make_${ac_make}_set=yes;;
|
---|
3321 | *)
|
---|
3322 | eval ac_cv_prog_make_${ac_make}_set=no;;
|
---|
3323 | esac
|
---|
3324 | rm -f conftest.make ;;
|
---|
3325 | esac
|
---|
3326 | fi
|
---|
3327 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
---|
3328 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
3329 | printf "%s\n" "yes" >&6; }
|
---|
3330 | SET_MAKE=
|
---|
3331 | else
|
---|
3332 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3333 | printf "%s\n" "no" >&6; }
|
---|
3334 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
3335 | fi
|
---|
3336 |
|
---|
3337 | rm -rf .tst 2>/dev/null
|
---|
3338 | mkdir .tst 2>/dev/null
|
---|
3339 | if test -d .tst; then
|
---|
3340 | am__leading_dot=.
|
---|
3341 | else
|
---|
3342 | am__leading_dot=_
|
---|
3343 | fi
|
---|
3344 | rmdir .tst 2>/dev/null
|
---|
3345 |
|
---|
3346 | AM_DEFAULT_VERBOSITY=1
|
---|
3347 | # Check whether --enable-silent-rules was given.
|
---|
3348 | if test ${enable_silent_rules+y}
|
---|
3349 | then :
|
---|
3350 | enableval=$enable_silent_rules;
|
---|
3351 | fi
|
---|
3352 |
|
---|
3353 | am_make=${MAKE-make}
|
---|
3354 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
|
---|
3355 | printf %s "checking whether $am_make supports nested variables... " >&6; }
|
---|
3356 | if test ${am_cv_make_support_nested_variables+y}
|
---|
3357 | then :
|
---|
3358 | printf %s "(cached) " >&6
|
---|
3359 | else case e in #(
|
---|
3360 | e) if printf "%s\n" 'TRUE=$(BAR$(V))
|
---|
3361 | BAR0=false
|
---|
3362 | BAR1=true
|
---|
3363 | V=1
|
---|
3364 | am__doit:
|
---|
3365 | @$(TRUE)
|
---|
3366 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
|
---|
3367 | am_cv_make_support_nested_variables=yes
|
---|
3368 | else
|
---|
3369 | am_cv_make_support_nested_variables=no
|
---|
3370 | fi ;;
|
---|
3371 | esac
|
---|
3372 | fi
|
---|
3373 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
|
---|
3374 | printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
|
---|
3375 | AM_BACKSLASH='\'
|
---|
3376 |
|
---|
3377 | am__rm_f_notfound=
|
---|
3378 | if (rm -f && rm -fr && rm -rf) 2>/dev/null
|
---|
3379 | then :
|
---|
3380 |
|
---|
3381 | else case e in #(
|
---|
3382 | e) am__rm_f_notfound='""' ;;
|
---|
3383 | esac
|
---|
3384 | fi
|
---|
3385 |
|
---|
3386 |
|
---|
3387 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
|
---|
3388 | printf %s "checking xargs -n works... " >&6; }
|
---|
3389 | if test ${am_cv_xargs_n_works+y}
|
---|
3390 | then :
|
---|
3391 | printf %s "(cached) " >&6
|
---|
3392 | else case e in #(
|
---|
3393 | e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
|
---|
3394 | 3"
|
---|
3395 | then :
|
---|
3396 | am_cv_xargs_n_works=yes
|
---|
3397 | else case e in #(
|
---|
3398 | e) am_cv_xargs_n_works=no ;;
|
---|
3399 | esac
|
---|
3400 | fi ;;
|
---|
3401 | esac
|
---|
3402 | fi
|
---|
3403 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
|
---|
3404 | printf "%s\n" "$am_cv_xargs_n_works" >&6; }
|
---|
3405 | if test "$am_cv_xargs_n_works" = yes
|
---|
3406 | then :
|
---|
3407 | am__xargs_n='xargs -n'
|
---|
3408 | else case e in #(
|
---|
3409 | e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
|
---|
3410 | ;;
|
---|
3411 | esac
|
---|
3412 | fi
|
---|
3413 |
|
---|
3414 | if test "`cd $srcdir && pwd`" != "`pwd`"; then
|
---|
3415 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
|
---|
3416 | # is not polluted with repeated "-I."
|
---|
3417 | am__isrc=' -I$(srcdir)'
|
---|
3418 | # test to see if srcdir already configured
|
---|
3419 | if test -f $srcdir/config.status; then
|
---|
3420 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
|
---|
3421 | fi
|
---|
3422 | fi
|
---|
3423 |
|
---|
3424 | # test whether we have cygpath
|
---|
3425 | if test -z "$CYGPATH_W"; then
|
---|
3426 | if (cygpath --version) >/dev/null 2>/dev/null; then
|
---|
3427 | CYGPATH_W='cygpath -w'
|
---|
3428 | else
|
---|
3429 | CYGPATH_W=echo
|
---|
3430 | fi
|
---|
3431 | fi
|
---|
3432 |
|
---|
3433 |
|
---|
3434 | # Define the identity of the package.
|
---|
3435 | PACKAGE='libpng'
|
---|
3436 | VERSION='1.6.45'
|
---|
3437 |
|
---|
3438 |
|
---|
3439 | printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
|
---|
3440 |
|
---|
3441 |
|
---|
3442 | printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
|
---|
3443 |
|
---|
3444 | # Some tools Automake needs.
|
---|
3445 |
|
---|
3446 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
|
---|
3447 |
|
---|
3448 |
|
---|
3449 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
|
---|
3450 |
|
---|
3451 |
|
---|
3452 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
|
---|
3453 |
|
---|
3454 |
|
---|
3455 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
|
---|
3456 |
|
---|
3457 |
|
---|
3458 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
|
---|
3459 |
|
---|
3460 | # For better backward compatibility. To be removed once Automake 1.9.x
|
---|
3461 | # dies out for good. For more background, see:
|
---|
3462 | # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
|
---|
3463 | # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
|
---|
3464 | mkdir_p='$(MKDIR_P)'
|
---|
3465 |
|
---|
3466 | # We need awk for the "check" target (and possibly the TAP driver). The
|
---|
3467 | # system "awk" is bad on some platforms.
|
---|
3468 | # Always define AMTAR for backward compatibility. Yes, it's still used
|
---|
3469 | # in the wild :-( We should find a proper way to deprecate it ...
|
---|
3470 | AMTAR='$${TAR-tar}'
|
---|
3471 |
|
---|
3472 |
|
---|
3473 | # We'll loop over all known methods to create a tar archive until one works.
|
---|
3474 | _am_tools='gnutar pax cpio none'
|
---|
3475 |
|
---|
3476 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
|
---|
3477 |
|
---|
3478 |
|
---|
3479 |
|
---|
3480 |
|
---|
3481 |
|
---|
3482 | # Variables for tags utilities; see am/tags.am
|
---|
3483 | if test -z "$CTAGS"; then
|
---|
3484 | CTAGS=ctags
|
---|
3485 | fi
|
---|
3486 |
|
---|
3487 | if test -z "$ETAGS"; then
|
---|
3488 | ETAGS=etags
|
---|
3489 | fi
|
---|
3490 |
|
---|
3491 | if test -z "$CSCOPE"; then
|
---|
3492 | CSCOPE=cscope
|
---|
3493 | fi
|
---|
3494 |
|
---|
3495 |
|
---|
3496 |
|
---|
3497 |
|
---|
3498 |
|
---|
3499 |
|
---|
3500 |
|
---|
3501 | # The following line causes --disable-maintainer-mode to be the default to
|
---|
3502 | # configure. This is necessary because libpng distributions cannot rely on the
|
---|
3503 | # time stamps of the autotools generated files being correct
|
---|
3504 |
|
---|
3505 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
|
---|
3506 | printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
|
---|
3507 | # Check whether --enable-maintainer-mode was given.
|
---|
3508 | if test ${enable_maintainer_mode+y}
|
---|
3509 | then :
|
---|
3510 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
|
---|
3511 | else case e in #(
|
---|
3512 | e) USE_MAINTAINER_MODE=no ;;
|
---|
3513 | esac
|
---|
3514 | fi
|
---|
3515 |
|
---|
3516 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
|
---|
3517 | printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
|
---|
3518 | if test $USE_MAINTAINER_MODE = yes; then
|
---|
3519 | MAINTAINER_MODE_TRUE=
|
---|
3520 | MAINTAINER_MODE_FALSE='#'
|
---|
3521 | else
|
---|
3522 | MAINTAINER_MODE_TRUE='#'
|
---|
3523 | MAINTAINER_MODE_FALSE=
|
---|
3524 | fi
|
---|
3525 |
|
---|
3526 | MAINT=$MAINTAINER_MODE_TRUE
|
---|
3527 |
|
---|
3528 |
|
---|
3529 |
|
---|
3530 |
|
---|
3531 | PNGLIB_VERSION=1.6.45
|
---|
3532 | PNGLIB_MAJOR=1
|
---|
3533 | PNGLIB_MINOR=6
|
---|
3534 | PNGLIB_RELEASE=45
|
---|
3535 |
|
---|
3536 |
|
---|
3537 |
|
---|
3538 | ac_config_headers="$ac_config_headers config.h"
|
---|
3539 |
|
---|
3540 |
|
---|
3541 | # Check the basic programs.
|
---|
3542 | ac_ext=c
|
---|
3543 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3544 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3545 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3546 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3547 |
|
---|
3548 |
|
---|
3549 |
|
---|
3550 |
|
---|
3551 |
|
---|
3552 |
|
---|
3553 |
|
---|
3554 |
|
---|
3555 |
|
---|
3556 |
|
---|
3557 | ac_ext=c
|
---|
3558 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3559 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3560 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3561 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3562 | if test -n "$ac_tool_prefix"; then
|
---|
3563 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
3564 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
3565 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3566 | printf %s "checking for $ac_word... " >&6; }
|
---|
3567 | if test ${ac_cv_prog_CC+y}
|
---|
3568 | then :
|
---|
3569 | printf %s "(cached) " >&6
|
---|
3570 | else case e in #(
|
---|
3571 | e) if test -n "$CC"; then
|
---|
3572 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
3573 | else
|
---|
3574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3575 | for as_dir in $PATH
|
---|
3576 | do
|
---|
3577 | IFS=$as_save_IFS
|
---|
3578 | case $as_dir in #(((
|
---|
3579 | '') as_dir=./ ;;
|
---|
3580 | */) ;;
|
---|
3581 | *) as_dir=$as_dir/ ;;
|
---|
3582 | esac
|
---|
3583 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3584 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
3585 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
3586 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
3587 | break 2
|
---|
3588 | fi
|
---|
3589 | done
|
---|
3590 | done
|
---|
3591 | IFS=$as_save_IFS
|
---|
3592 |
|
---|
3593 | fi ;;
|
---|
3594 | esac
|
---|
3595 | fi
|
---|
3596 | CC=$ac_cv_prog_CC
|
---|
3597 | if test -n "$CC"; then
|
---|
3598 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
3599 | printf "%s\n" "$CC" >&6; }
|
---|
3600 | else
|
---|
3601 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3602 | printf "%s\n" "no" >&6; }
|
---|
3603 | fi
|
---|
3604 |
|
---|
3605 |
|
---|
3606 | fi
|
---|
3607 | if test -z "$ac_cv_prog_CC"; then
|
---|
3608 | ac_ct_CC=$CC
|
---|
3609 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
3610 | set dummy gcc; ac_word=$2
|
---|
3611 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3612 | printf %s "checking for $ac_word... " >&6; }
|
---|
3613 | if test ${ac_cv_prog_ac_ct_CC+y}
|
---|
3614 | then :
|
---|
3615 | printf %s "(cached) " >&6
|
---|
3616 | else case e in #(
|
---|
3617 | e) if test -n "$ac_ct_CC"; then
|
---|
3618 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
3619 | else
|
---|
3620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3621 | for as_dir in $PATH
|
---|
3622 | do
|
---|
3623 | IFS=$as_save_IFS
|
---|
3624 | case $as_dir in #(((
|
---|
3625 | '') as_dir=./ ;;
|
---|
3626 | */) ;;
|
---|
3627 | *) as_dir=$as_dir/ ;;
|
---|
3628 | esac
|
---|
3629 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3630 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
3631 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
3632 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
3633 | break 2
|
---|
3634 | fi
|
---|
3635 | done
|
---|
3636 | done
|
---|
3637 | IFS=$as_save_IFS
|
---|
3638 |
|
---|
3639 | fi ;;
|
---|
3640 | esac
|
---|
3641 | fi
|
---|
3642 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
3643 | if test -n "$ac_ct_CC"; then
|
---|
3644 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
3645 | printf "%s\n" "$ac_ct_CC" >&6; }
|
---|
3646 | else
|
---|
3647 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3648 | printf "%s\n" "no" >&6; }
|
---|
3649 | fi
|
---|
3650 |
|
---|
3651 | if test "x$ac_ct_CC" = x; then
|
---|
3652 | CC=""
|
---|
3653 | else
|
---|
3654 | case $cross_compiling:$ac_tool_warned in
|
---|
3655 | yes:)
|
---|
3656 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
3657 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
3658 | ac_tool_warned=yes ;;
|
---|
3659 | esac
|
---|
3660 | CC=$ac_ct_CC
|
---|
3661 | fi
|
---|
3662 | else
|
---|
3663 | CC="$ac_cv_prog_CC"
|
---|
3664 | fi
|
---|
3665 |
|
---|
3666 | if test -z "$CC"; then
|
---|
3667 | if test -n "$ac_tool_prefix"; then
|
---|
3668 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
3669 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
3670 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3671 | printf %s "checking for $ac_word... " >&6; }
|
---|
3672 | if test ${ac_cv_prog_CC+y}
|
---|
3673 | then :
|
---|
3674 | printf %s "(cached) " >&6
|
---|
3675 | else case e in #(
|
---|
3676 | e) if test -n "$CC"; then
|
---|
3677 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
3678 | else
|
---|
3679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3680 | for as_dir in $PATH
|
---|
3681 | do
|
---|
3682 | IFS=$as_save_IFS
|
---|
3683 | case $as_dir in #(((
|
---|
3684 | '') as_dir=./ ;;
|
---|
3685 | */) ;;
|
---|
3686 | *) as_dir=$as_dir/ ;;
|
---|
3687 | esac
|
---|
3688 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3689 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
3690 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
3691 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
3692 | break 2
|
---|
3693 | fi
|
---|
3694 | done
|
---|
3695 | done
|
---|
3696 | IFS=$as_save_IFS
|
---|
3697 |
|
---|
3698 | fi ;;
|
---|
3699 | esac
|
---|
3700 | fi
|
---|
3701 | CC=$ac_cv_prog_CC
|
---|
3702 | if test -n "$CC"; then
|
---|
3703 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
3704 | printf "%s\n" "$CC" >&6; }
|
---|
3705 | else
|
---|
3706 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3707 | printf "%s\n" "no" >&6; }
|
---|
3708 | fi
|
---|
3709 |
|
---|
3710 |
|
---|
3711 | fi
|
---|
3712 | fi
|
---|
3713 | if test -z "$CC"; then
|
---|
3714 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
3715 | set dummy cc; ac_word=$2
|
---|
3716 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3717 | printf %s "checking for $ac_word... " >&6; }
|
---|
3718 | if test ${ac_cv_prog_CC+y}
|
---|
3719 | then :
|
---|
3720 | printf %s "(cached) " >&6
|
---|
3721 | else case e in #(
|
---|
3722 | e) if test -n "$CC"; then
|
---|
3723 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
3724 | else
|
---|
3725 | ac_prog_rejected=no
|
---|
3726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3727 | for as_dir in $PATH
|
---|
3728 | do
|
---|
3729 | IFS=$as_save_IFS
|
---|
3730 | case $as_dir in #(((
|
---|
3731 | '') as_dir=./ ;;
|
---|
3732 | */) ;;
|
---|
3733 | *) as_dir=$as_dir/ ;;
|
---|
3734 | esac
|
---|
3735 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3736 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
3737 | if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
3738 | ac_prog_rejected=yes
|
---|
3739 | continue
|
---|
3740 | fi
|
---|
3741 | ac_cv_prog_CC="cc"
|
---|
3742 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
3743 | break 2
|
---|
3744 | fi
|
---|
3745 | done
|
---|
3746 | done
|
---|
3747 | IFS=$as_save_IFS
|
---|
3748 |
|
---|
3749 | if test $ac_prog_rejected = yes; then
|
---|
3750 | # We found a bogon in the path, so make sure we never use it.
|
---|
3751 | set dummy $ac_cv_prog_CC
|
---|
3752 | shift
|
---|
3753 | if test $# != 0; then
|
---|
3754 | # We chose a different compiler from the bogus one.
|
---|
3755 | # However, it has the same basename, so the bogon will be chosen
|
---|
3756 | # first if we set CC to just the basename; use the full file name.
|
---|
3757 | shift
|
---|
3758 | ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
|
---|
3759 | fi
|
---|
3760 | fi
|
---|
3761 | fi ;;
|
---|
3762 | esac
|
---|
3763 | fi
|
---|
3764 | CC=$ac_cv_prog_CC
|
---|
3765 | if test -n "$CC"; then
|
---|
3766 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
3767 | printf "%s\n" "$CC" >&6; }
|
---|
3768 | else
|
---|
3769 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3770 | printf "%s\n" "no" >&6; }
|
---|
3771 | fi
|
---|
3772 |
|
---|
3773 |
|
---|
3774 | fi
|
---|
3775 | if test -z "$CC"; then
|
---|
3776 | if test -n "$ac_tool_prefix"; then
|
---|
3777 | for ac_prog in cl.exe
|
---|
3778 | do
|
---|
3779 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
3780 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
3781 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3782 | printf %s "checking for $ac_word... " >&6; }
|
---|
3783 | if test ${ac_cv_prog_CC+y}
|
---|
3784 | then :
|
---|
3785 | printf %s "(cached) " >&6
|
---|
3786 | else case e in #(
|
---|
3787 | e) if test -n "$CC"; then
|
---|
3788 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
3789 | else
|
---|
3790 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3791 | for as_dir in $PATH
|
---|
3792 | do
|
---|
3793 | IFS=$as_save_IFS
|
---|
3794 | case $as_dir in #(((
|
---|
3795 | '') as_dir=./ ;;
|
---|
3796 | */) ;;
|
---|
3797 | *) as_dir=$as_dir/ ;;
|
---|
3798 | esac
|
---|
3799 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3800 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
3801 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
3802 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
3803 | break 2
|
---|
3804 | fi
|
---|
3805 | done
|
---|
3806 | done
|
---|
3807 | IFS=$as_save_IFS
|
---|
3808 |
|
---|
3809 | fi ;;
|
---|
3810 | esac
|
---|
3811 | fi
|
---|
3812 | CC=$ac_cv_prog_CC
|
---|
3813 | if test -n "$CC"; then
|
---|
3814 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
3815 | printf "%s\n" "$CC" >&6; }
|
---|
3816 | else
|
---|
3817 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3818 | printf "%s\n" "no" >&6; }
|
---|
3819 | fi
|
---|
3820 |
|
---|
3821 |
|
---|
3822 | test -n "$CC" && break
|
---|
3823 | done
|
---|
3824 | fi
|
---|
3825 | if test -z "$CC"; then
|
---|
3826 | ac_ct_CC=$CC
|
---|
3827 | for ac_prog in cl.exe
|
---|
3828 | do
|
---|
3829 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
3830 | set dummy $ac_prog; ac_word=$2
|
---|
3831 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3832 | printf %s "checking for $ac_word... " >&6; }
|
---|
3833 | if test ${ac_cv_prog_ac_ct_CC+y}
|
---|
3834 | then :
|
---|
3835 | printf %s "(cached) " >&6
|
---|
3836 | else case e in #(
|
---|
3837 | e) if test -n "$ac_ct_CC"; then
|
---|
3838 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
3839 | else
|
---|
3840 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3841 | for as_dir in $PATH
|
---|
3842 | do
|
---|
3843 | IFS=$as_save_IFS
|
---|
3844 | case $as_dir in #(((
|
---|
3845 | '') as_dir=./ ;;
|
---|
3846 | */) ;;
|
---|
3847 | *) as_dir=$as_dir/ ;;
|
---|
3848 | esac
|
---|
3849 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3850 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
3851 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
3852 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
3853 | break 2
|
---|
3854 | fi
|
---|
3855 | done
|
---|
3856 | done
|
---|
3857 | IFS=$as_save_IFS
|
---|
3858 |
|
---|
3859 | fi ;;
|
---|
3860 | esac
|
---|
3861 | fi
|
---|
3862 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
3863 | if test -n "$ac_ct_CC"; then
|
---|
3864 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
3865 | printf "%s\n" "$ac_ct_CC" >&6; }
|
---|
3866 | else
|
---|
3867 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3868 | printf "%s\n" "no" >&6; }
|
---|
3869 | fi
|
---|
3870 |
|
---|
3871 |
|
---|
3872 | test -n "$ac_ct_CC" && break
|
---|
3873 | done
|
---|
3874 |
|
---|
3875 | if test "x$ac_ct_CC" = x; then
|
---|
3876 | CC=""
|
---|
3877 | else
|
---|
3878 | case $cross_compiling:$ac_tool_warned in
|
---|
3879 | yes:)
|
---|
3880 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
3881 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
3882 | ac_tool_warned=yes ;;
|
---|
3883 | esac
|
---|
3884 | CC=$ac_ct_CC
|
---|
3885 | fi
|
---|
3886 | fi
|
---|
3887 |
|
---|
3888 | fi
|
---|
3889 | if test -z "$CC"; then
|
---|
3890 | if test -n "$ac_tool_prefix"; then
|
---|
3891 | # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
|
---|
3892 | set dummy ${ac_tool_prefix}clang; ac_word=$2
|
---|
3893 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3894 | printf %s "checking for $ac_word... " >&6; }
|
---|
3895 | if test ${ac_cv_prog_CC+y}
|
---|
3896 | then :
|
---|
3897 | printf %s "(cached) " >&6
|
---|
3898 | else case e in #(
|
---|
3899 | e) if test -n "$CC"; then
|
---|
3900 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
3901 | else
|
---|
3902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3903 | for as_dir in $PATH
|
---|
3904 | do
|
---|
3905 | IFS=$as_save_IFS
|
---|
3906 | case $as_dir in #(((
|
---|
3907 | '') as_dir=./ ;;
|
---|
3908 | */) ;;
|
---|
3909 | *) as_dir=$as_dir/ ;;
|
---|
3910 | esac
|
---|
3911 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3912 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
3913 | ac_cv_prog_CC="${ac_tool_prefix}clang"
|
---|
3914 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
3915 | break 2
|
---|
3916 | fi
|
---|
3917 | done
|
---|
3918 | done
|
---|
3919 | IFS=$as_save_IFS
|
---|
3920 |
|
---|
3921 | fi ;;
|
---|
3922 | esac
|
---|
3923 | fi
|
---|
3924 | CC=$ac_cv_prog_CC
|
---|
3925 | if test -n "$CC"; then
|
---|
3926 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
---|
3927 | printf "%s\n" "$CC" >&6; }
|
---|
3928 | else
|
---|
3929 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3930 | printf "%s\n" "no" >&6; }
|
---|
3931 | fi
|
---|
3932 |
|
---|
3933 |
|
---|
3934 | fi
|
---|
3935 | if test -z "$ac_cv_prog_CC"; then
|
---|
3936 | ac_ct_CC=$CC
|
---|
3937 | # Extract the first word of "clang", so it can be a program name with args.
|
---|
3938 | set dummy clang; ac_word=$2
|
---|
3939 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
3940 | printf %s "checking for $ac_word... " >&6; }
|
---|
3941 | if test ${ac_cv_prog_ac_ct_CC+y}
|
---|
3942 | then :
|
---|
3943 | printf %s "(cached) " >&6
|
---|
3944 | else case e in #(
|
---|
3945 | e) if test -n "$ac_ct_CC"; then
|
---|
3946 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
3947 | else
|
---|
3948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3949 | for as_dir in $PATH
|
---|
3950 | do
|
---|
3951 | IFS=$as_save_IFS
|
---|
3952 | case $as_dir in #(((
|
---|
3953 | '') as_dir=./ ;;
|
---|
3954 | */) ;;
|
---|
3955 | *) as_dir=$as_dir/ ;;
|
---|
3956 | esac
|
---|
3957 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3958 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
3959 | ac_cv_prog_ac_ct_CC="clang"
|
---|
3960 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
3961 | break 2
|
---|
3962 | fi
|
---|
3963 | done
|
---|
3964 | done
|
---|
3965 | IFS=$as_save_IFS
|
---|
3966 |
|
---|
3967 | fi ;;
|
---|
3968 | esac
|
---|
3969 | fi
|
---|
3970 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
3971 | if test -n "$ac_ct_CC"; then
|
---|
3972 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
---|
3973 | printf "%s\n" "$ac_ct_CC" >&6; }
|
---|
3974 | else
|
---|
3975 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
3976 | printf "%s\n" "no" >&6; }
|
---|
3977 | fi
|
---|
3978 |
|
---|
3979 | if test "x$ac_ct_CC" = x; then
|
---|
3980 | CC=""
|
---|
3981 | else
|
---|
3982 | case $cross_compiling:$ac_tool_warned in
|
---|
3983 | yes:)
|
---|
3984 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
3985 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
3986 | ac_tool_warned=yes ;;
|
---|
3987 | esac
|
---|
3988 | CC=$ac_ct_CC
|
---|
3989 | fi
|
---|
3990 | else
|
---|
3991 | CC="$ac_cv_prog_CC"
|
---|
3992 | fi
|
---|
3993 |
|
---|
3994 | fi
|
---|
3995 |
|
---|
3996 |
|
---|
3997 | test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
|
---|
3998 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
|
---|
3999 | as_fn_error $? "no acceptable C compiler found in \$PATH
|
---|
4000 | See 'config.log' for more details" "$LINENO" 5; }
|
---|
4001 |
|
---|
4002 | # Provide some information about the compiler.
|
---|
4003 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
---|
4004 | set X $ac_compile
|
---|
4005 | ac_compiler=$2
|
---|
4006 | for ac_option in --version -v -V -qversion -version; do
|
---|
4007 | { { ac_try="$ac_compiler $ac_option >&5"
|
---|
4008 | case "(($ac_try" in
|
---|
4009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4010 | *) ac_try_echo=$ac_try;;
|
---|
4011 | esac
|
---|
4012 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
4013 | printf "%s\n" "$ac_try_echo"; } >&5
|
---|
4014 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
---|
4015 | ac_status=$?
|
---|
4016 | if test -s conftest.err; then
|
---|
4017 | sed '10a\
|
---|
4018 | ... rest of stderr output deleted ...
|
---|
4019 | 10q' conftest.err >conftest.er1
|
---|
4020 | cat conftest.er1 >&5
|
---|
4021 | fi
|
---|
4022 | rm -f conftest.er1 conftest.err
|
---|
4023 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
4024 | test $ac_status = 0; }
|
---|
4025 | done
|
---|
4026 |
|
---|
4027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4028 | /* end confdefs.h. */
|
---|
4029 |
|
---|
4030 | int
|
---|
4031 | main (void)
|
---|
4032 | {
|
---|
4033 |
|
---|
4034 | ;
|
---|
4035 | return 0;
|
---|
4036 | }
|
---|
4037 | _ACEOF
|
---|
4038 | ac_clean_files_save=$ac_clean_files
|
---|
4039 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
|
---|
4040 | # Try to create an executable without -o first, disregard a.out.
|
---|
4041 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
4042 | # of exeext.
|
---|
4043 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
|
---|
4044 | printf %s "checking whether the C compiler works... " >&6; }
|
---|
4045 | ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
4046 |
|
---|
4047 | # The possible output files:
|
---|
4048 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
|
---|
4049 |
|
---|
4050 | ac_rmfiles=
|
---|
4051 | for ac_file in $ac_files
|
---|
4052 | do
|
---|
4053 | case $ac_file in
|
---|
4054 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
4055 | * ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
---|
4056 | esac
|
---|
4057 | done
|
---|
4058 | rm -f $ac_rmfiles
|
---|
4059 |
|
---|
4060 | if { { ac_try="$ac_link_default"
|
---|
4061 | case "(($ac_try" in
|
---|
4062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4063 | *) ac_try_echo=$ac_try;;
|
---|
4064 | esac
|
---|
4065 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
4066 | printf "%s\n" "$ac_try_echo"; } >&5
|
---|
4067 | (eval "$ac_link_default") 2>&5
|
---|
4068 | ac_status=$?
|
---|
4069 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
4070 | test $ac_status = 0; }
|
---|
4071 | then :
|
---|
4072 | # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
|
---|
4073 | # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
|
---|
4074 | # in a Makefile. We should not override ac_cv_exeext if it was cached,
|
---|
4075 | # so that the user can short-circuit this test for compilers unknown to
|
---|
4076 | # Autoconf.
|
---|
4077 | for ac_file in $ac_files ''
|
---|
4078 | do
|
---|
4079 | test -f "$ac_file" || continue
|
---|
4080 | case $ac_file in
|
---|
4081 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
|
---|
4082 | ;;
|
---|
4083 | [ab].out )
|
---|
4084 | # We found the default executable, but exeext='' is most
|
---|
4085 | # certainly right.
|
---|
4086 | break;;
|
---|
4087 | *.* )
|
---|
4088 | if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
|
---|
4089 | then :; else
|
---|
4090 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
4091 | fi
|
---|
4092 | # We set ac_cv_exeext here because the later test for it is not
|
---|
4093 | # safe: cross compilers may not add the suffix if given an '-o'
|
---|
4094 | # argument, so we may need to know it at that point already.
|
---|
4095 | # Even if this section looks crufty: it has the advantage of
|
---|
4096 | # actually working.
|
---|
4097 | break;;
|
---|
4098 | * )
|
---|
4099 | break;;
|
---|
4100 | esac
|
---|
4101 | done
|
---|
4102 | test "$ac_cv_exeext" = no && ac_cv_exeext=
|
---|
4103 |
|
---|
4104 | else case e in #(
|
---|
4105 | e) ac_file='' ;;
|
---|
4106 | esac
|
---|
4107 | fi
|
---|
4108 | if test -z "$ac_file"
|
---|
4109 | then :
|
---|
4110 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
4111 | printf "%s\n" "no" >&6; }
|
---|
4112 | printf "%s\n" "$as_me: failed program was:" >&5
|
---|
4113 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4114 |
|
---|
4115 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
|
---|
4116 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
|
---|
4117 | as_fn_error 77 "C compiler cannot create executables
|
---|
4118 | See 'config.log' for more details" "$LINENO" 5; }
|
---|
4119 | else case e in #(
|
---|
4120 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
4121 | printf "%s\n" "yes" >&6; } ;;
|
---|
4122 | esac
|
---|
4123 | fi
|
---|
4124 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
|
---|
4125 | printf %s "checking for C compiler default output file name... " >&6; }
|
---|
4126 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
---|
4127 | printf "%s\n" "$ac_file" >&6; }
|
---|
4128 | ac_exeext=$ac_cv_exeext
|
---|
4129 |
|
---|
4130 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
|
---|
4131 | ac_clean_files=$ac_clean_files_save
|
---|
4132 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
|
---|
4133 | printf %s "checking for suffix of executables... " >&6; }
|
---|
4134 | if { { ac_try="$ac_link"
|
---|
4135 | case "(($ac_try" in
|
---|
4136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4137 | *) ac_try_echo=$ac_try;;
|
---|
4138 | esac
|
---|
4139 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
4140 | printf "%s\n" "$ac_try_echo"; } >&5
|
---|
4141 | (eval "$ac_link") 2>&5
|
---|
4142 | ac_status=$?
|
---|
4143 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
4144 | test $ac_status = 0; }
|
---|
4145 | then :
|
---|
4146 | # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
|
---|
4147 | # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
|
---|
4148 | # work properly (i.e., refer to 'conftest.exe'), while it won't with
|
---|
4149 | # 'rm'.
|
---|
4150 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
4151 | test -f "$ac_file" || continue
|
---|
4152 | case $ac_file in
|
---|
4153 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
---|
4154 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
4155 | break;;
|
---|
4156 | * ) break;;
|
---|
4157 | esac
|
---|
4158 | done
|
---|
4159 | else case e in #(
|
---|
4160 | e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
|
---|
4161 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
|
---|
4162 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link
|
---|
4163 | See 'config.log' for more details" "$LINENO" 5; } ;;
|
---|
4164 | esac
|
---|
4165 | fi
|
---|
4166 | rm -f conftest conftest$ac_cv_exeext
|
---|
4167 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
|
---|
4168 | printf "%s\n" "$ac_cv_exeext" >&6; }
|
---|
4169 |
|
---|
4170 | rm -f conftest.$ac_ext
|
---|
4171 | EXEEXT=$ac_cv_exeext
|
---|
4172 | ac_exeext=$EXEEXT
|
---|
4173 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4174 | /* end confdefs.h. */
|
---|
4175 | #include <stdio.h>
|
---|
4176 | int
|
---|
4177 | main (void)
|
---|
4178 | {
|
---|
4179 | FILE *f = fopen ("conftest.out", "w");
|
---|
4180 | if (!f)
|
---|
4181 | return 1;
|
---|
4182 | return ferror (f) || fclose (f) != 0;
|
---|
4183 |
|
---|
4184 | ;
|
---|
4185 | return 0;
|
---|
4186 | }
|
---|
4187 | _ACEOF
|
---|
4188 | ac_clean_files="$ac_clean_files conftest.out"
|
---|
4189 | # Check that the compiler produces executables we can run. If not, either
|
---|
4190 | # the compiler is broken, or we cross compile.
|
---|
4191 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
|
---|
4192 | printf %s "checking whether we are cross compiling... " >&6; }
|
---|
4193 | if test "$cross_compiling" != yes; then
|
---|
4194 | { { ac_try="$ac_link"
|
---|
4195 | case "(($ac_try" in
|
---|
4196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4197 | *) ac_try_echo=$ac_try;;
|
---|
4198 | esac
|
---|
4199 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
4200 | printf "%s\n" "$ac_try_echo"; } >&5
|
---|
4201 | (eval "$ac_link") 2>&5
|
---|
4202 | ac_status=$?
|
---|
4203 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
4204 | test $ac_status = 0; }
|
---|
4205 | if { ac_try='./conftest$ac_cv_exeext'
|
---|
4206 | { { case "(($ac_try" in
|
---|
4207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4208 | *) ac_try_echo=$ac_try;;
|
---|
4209 | esac
|
---|
4210 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
4211 | printf "%s\n" "$ac_try_echo"; } >&5
|
---|
4212 | (eval "$ac_try") 2>&5
|
---|
4213 | ac_status=$?
|
---|
4214 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
4215 | test $ac_status = 0; }; }; then
|
---|
4216 | cross_compiling=no
|
---|
4217 | else
|
---|
4218 | if test "$cross_compiling" = maybe; then
|
---|
4219 | cross_compiling=yes
|
---|
4220 | else
|
---|
4221 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
|
---|
4222 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
|
---|
4223 | as_fn_error 77 "cannot run C compiled programs.
|
---|
4224 | If you meant to cross compile, use '--host'.
|
---|
4225 | See 'config.log' for more details" "$LINENO" 5; }
|
---|
4226 | fi
|
---|
4227 | fi
|
---|
4228 | fi
|
---|
4229 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
|
---|
4230 | printf "%s\n" "$cross_compiling" >&6; }
|
---|
4231 |
|
---|
4232 | rm -f conftest.$ac_ext conftest$ac_cv_exeext \
|
---|
4233 | conftest.o conftest.obj conftest.out
|
---|
4234 | ac_clean_files=$ac_clean_files_save
|
---|
4235 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
|
---|
4236 | printf %s "checking for suffix of object files... " >&6; }
|
---|
4237 | if test ${ac_cv_objext+y}
|
---|
4238 | then :
|
---|
4239 | printf %s "(cached) " >&6
|
---|
4240 | else case e in #(
|
---|
4241 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4242 | /* end confdefs.h. */
|
---|
4243 |
|
---|
4244 | int
|
---|
4245 | main (void)
|
---|
4246 | {
|
---|
4247 |
|
---|
4248 | ;
|
---|
4249 | return 0;
|
---|
4250 | }
|
---|
4251 | _ACEOF
|
---|
4252 | rm -f conftest.o conftest.obj
|
---|
4253 | if { { ac_try="$ac_compile"
|
---|
4254 | case "(($ac_try" in
|
---|
4255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4256 | *) ac_try_echo=$ac_try;;
|
---|
4257 | esac
|
---|
4258 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
---|
4259 | printf "%s\n" "$ac_try_echo"; } >&5
|
---|
4260 | (eval "$ac_compile") 2>&5
|
---|
4261 | ac_status=$?
|
---|
4262 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
4263 | test $ac_status = 0; }
|
---|
4264 | then :
|
---|
4265 | for ac_file in conftest.o conftest.obj conftest.*; do
|
---|
4266 | test -f "$ac_file" || continue;
|
---|
4267 | case $ac_file in
|
---|
4268 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
|
---|
4269 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
4270 | break;;
|
---|
4271 | esac
|
---|
4272 | done
|
---|
4273 | else case e in #(
|
---|
4274 | e) printf "%s\n" "$as_me: failed program was:" >&5
|
---|
4275 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4276 |
|
---|
4277 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
|
---|
4278 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
|
---|
4279 | as_fn_error $? "cannot compute suffix of object files: cannot compile
|
---|
4280 | See 'config.log' for more details" "$LINENO" 5; } ;;
|
---|
4281 | esac
|
---|
4282 | fi
|
---|
4283 | rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
|
---|
4284 | esac
|
---|
4285 | fi
|
---|
4286 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
|
---|
4287 | printf "%s\n" "$ac_cv_objext" >&6; }
|
---|
4288 | OBJEXT=$ac_cv_objext
|
---|
4289 | ac_objext=$OBJEXT
|
---|
4290 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
|
---|
4291 | printf %s "checking whether the compiler supports GNU C... " >&6; }
|
---|
4292 | if test ${ac_cv_c_compiler_gnu+y}
|
---|
4293 | then :
|
---|
4294 | printf %s "(cached) " >&6
|
---|
4295 | else case e in #(
|
---|
4296 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4297 | /* end confdefs.h. */
|
---|
4298 |
|
---|
4299 | int
|
---|
4300 | main (void)
|
---|
4301 | {
|
---|
4302 | #ifndef __GNUC__
|
---|
4303 | choke me
|
---|
4304 | #endif
|
---|
4305 |
|
---|
4306 | ;
|
---|
4307 | return 0;
|
---|
4308 | }
|
---|
4309 | _ACEOF
|
---|
4310 | if ac_fn_c_try_compile "$LINENO"
|
---|
4311 | then :
|
---|
4312 | ac_compiler_gnu=yes
|
---|
4313 | else case e in #(
|
---|
4314 | e) ac_compiler_gnu=no ;;
|
---|
4315 | esac
|
---|
4316 | fi
|
---|
4317 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
4318 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
4319 | ;;
|
---|
4320 | esac
|
---|
4321 | fi
|
---|
4322 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
|
---|
4323 | printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
|
---|
4324 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
4325 |
|
---|
4326 | if test $ac_compiler_gnu = yes; then
|
---|
4327 | GCC=yes
|
---|
4328 | else
|
---|
4329 | GCC=
|
---|
4330 | fi
|
---|
4331 | ac_test_CFLAGS=${CFLAGS+y}
|
---|
4332 | ac_save_CFLAGS=$CFLAGS
|
---|
4333 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
|
---|
4334 | printf %s "checking whether $CC accepts -g... " >&6; }
|
---|
4335 | if test ${ac_cv_prog_cc_g+y}
|
---|
4336 | then :
|
---|
4337 | printf %s "(cached) " >&6
|
---|
4338 | else case e in #(
|
---|
4339 | e) ac_save_c_werror_flag=$ac_c_werror_flag
|
---|
4340 | ac_c_werror_flag=yes
|
---|
4341 | ac_cv_prog_cc_g=no
|
---|
4342 | CFLAGS="-g"
|
---|
4343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4344 | /* end confdefs.h. */
|
---|
4345 |
|
---|
4346 | int
|
---|
4347 | main (void)
|
---|
4348 | {
|
---|
4349 |
|
---|
4350 | ;
|
---|
4351 | return 0;
|
---|
4352 | }
|
---|
4353 | _ACEOF
|
---|
4354 | if ac_fn_c_try_compile "$LINENO"
|
---|
4355 | then :
|
---|
4356 | ac_cv_prog_cc_g=yes
|
---|
4357 | else case e in #(
|
---|
4358 | e) CFLAGS=""
|
---|
4359 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4360 | /* end confdefs.h. */
|
---|
4361 |
|
---|
4362 | int
|
---|
4363 | main (void)
|
---|
4364 | {
|
---|
4365 |
|
---|
4366 | ;
|
---|
4367 | return 0;
|
---|
4368 | }
|
---|
4369 | _ACEOF
|
---|
4370 | if ac_fn_c_try_compile "$LINENO"
|
---|
4371 | then :
|
---|
4372 |
|
---|
4373 | else case e in #(
|
---|
4374 | e) ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
4375 | CFLAGS="-g"
|
---|
4376 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4377 | /* end confdefs.h. */
|
---|
4378 |
|
---|
4379 | int
|
---|
4380 | main (void)
|
---|
4381 | {
|
---|
4382 |
|
---|
4383 | ;
|
---|
4384 | return 0;
|
---|
4385 | }
|
---|
4386 | _ACEOF
|
---|
4387 | if ac_fn_c_try_compile "$LINENO"
|
---|
4388 | then :
|
---|
4389 | ac_cv_prog_cc_g=yes
|
---|
4390 | fi
|
---|
4391 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
|
---|
4392 | esac
|
---|
4393 | fi
|
---|
4394 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
|
---|
4395 | esac
|
---|
4396 | fi
|
---|
4397 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
4398 | ac_c_werror_flag=$ac_save_c_werror_flag ;;
|
---|
4399 | esac
|
---|
4400 | fi
|
---|
4401 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
|
---|
4402 | printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
|
---|
4403 | if test $ac_test_CFLAGS; then
|
---|
4404 | CFLAGS=$ac_save_CFLAGS
|
---|
4405 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
4406 | if test "$GCC" = yes; then
|
---|
4407 | CFLAGS="-g -O2"
|
---|
4408 | else
|
---|
4409 | CFLAGS="-g"
|
---|
4410 | fi
|
---|
4411 | else
|
---|
4412 | if test "$GCC" = yes; then
|
---|
4413 | CFLAGS="-O2"
|
---|
4414 | else
|
---|
4415 | CFLAGS=
|
---|
4416 | fi
|
---|
4417 | fi
|
---|
4418 | ac_prog_cc_stdc=no
|
---|
4419 | if test x$ac_prog_cc_stdc = xno
|
---|
4420 | then :
|
---|
4421 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
|
---|
4422 | printf %s "checking for $CC option to enable C11 features... " >&6; }
|
---|
4423 | if test ${ac_cv_prog_cc_c11+y}
|
---|
4424 | then :
|
---|
4425 | printf %s "(cached) " >&6
|
---|
4426 | else case e in #(
|
---|
4427 | e) ac_cv_prog_cc_c11=no
|
---|
4428 | ac_save_CC=$CC
|
---|
4429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4430 | /* end confdefs.h. */
|
---|
4431 | $ac_c_conftest_c11_program
|
---|
4432 | _ACEOF
|
---|
4433 | for ac_arg in '' -std=gnu11
|
---|
4434 | do
|
---|
4435 | CC="$ac_save_CC $ac_arg"
|
---|
4436 | if ac_fn_c_try_compile "$LINENO"
|
---|
4437 | then :
|
---|
4438 | ac_cv_prog_cc_c11=$ac_arg
|
---|
4439 | fi
|
---|
4440 | rm -f core conftest.err conftest.$ac_objext conftest.beam
|
---|
4441 | test "x$ac_cv_prog_cc_c11" != "xno" && break
|
---|
4442 | done
|
---|
4443 | rm -f conftest.$ac_ext
|
---|
4444 | CC=$ac_save_CC ;;
|
---|
4445 | esac
|
---|
4446 | fi
|
---|
4447 |
|
---|
4448 | if test "x$ac_cv_prog_cc_c11" = xno
|
---|
4449 | then :
|
---|
4450 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
---|
4451 | printf "%s\n" "unsupported" >&6; }
|
---|
4452 | else case e in #(
|
---|
4453 | e) if test "x$ac_cv_prog_cc_c11" = x
|
---|
4454 | then :
|
---|
4455 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
---|
4456 | printf "%s\n" "none needed" >&6; }
|
---|
4457 | else case e in #(
|
---|
4458 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
|
---|
4459 | printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
|
---|
4460 | CC="$CC $ac_cv_prog_cc_c11" ;;
|
---|
4461 | esac
|
---|
4462 | fi
|
---|
4463 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
|
---|
4464 | ac_prog_cc_stdc=c11 ;;
|
---|
4465 | esac
|
---|
4466 | fi
|
---|
4467 | fi
|
---|
4468 | if test x$ac_prog_cc_stdc = xno
|
---|
4469 | then :
|
---|
4470 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
|
---|
4471 | printf %s "checking for $CC option to enable C99 features... " >&6; }
|
---|
4472 | if test ${ac_cv_prog_cc_c99+y}
|
---|
4473 | then :
|
---|
4474 | printf %s "(cached) " >&6
|
---|
4475 | else case e in #(
|
---|
4476 | e) ac_cv_prog_cc_c99=no
|
---|
4477 | ac_save_CC=$CC
|
---|
4478 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4479 | /* end confdefs.h. */
|
---|
4480 | $ac_c_conftest_c99_program
|
---|
4481 | _ACEOF
|
---|
4482 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
|
---|
4483 | do
|
---|
4484 | CC="$ac_save_CC $ac_arg"
|
---|
4485 | if ac_fn_c_try_compile "$LINENO"
|
---|
4486 | then :
|
---|
4487 | ac_cv_prog_cc_c99=$ac_arg
|
---|
4488 | fi
|
---|
4489 | rm -f core conftest.err conftest.$ac_objext conftest.beam
|
---|
4490 | test "x$ac_cv_prog_cc_c99" != "xno" && break
|
---|
4491 | done
|
---|
4492 | rm -f conftest.$ac_ext
|
---|
4493 | CC=$ac_save_CC ;;
|
---|
4494 | esac
|
---|
4495 | fi
|
---|
4496 |
|
---|
4497 | if test "x$ac_cv_prog_cc_c99" = xno
|
---|
4498 | then :
|
---|
4499 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
---|
4500 | printf "%s\n" "unsupported" >&6; }
|
---|
4501 | else case e in #(
|
---|
4502 | e) if test "x$ac_cv_prog_cc_c99" = x
|
---|
4503 | then :
|
---|
4504 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
---|
4505 | printf "%s\n" "none needed" >&6; }
|
---|
4506 | else case e in #(
|
---|
4507 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
|
---|
4508 | printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
|
---|
4509 | CC="$CC $ac_cv_prog_cc_c99" ;;
|
---|
4510 | esac
|
---|
4511 | fi
|
---|
4512 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
|
---|
4513 | ac_prog_cc_stdc=c99 ;;
|
---|
4514 | esac
|
---|
4515 | fi
|
---|
4516 | fi
|
---|
4517 | if test x$ac_prog_cc_stdc = xno
|
---|
4518 | then :
|
---|
4519 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
|
---|
4520 | printf %s "checking for $CC option to enable C89 features... " >&6; }
|
---|
4521 | if test ${ac_cv_prog_cc_c89+y}
|
---|
4522 | then :
|
---|
4523 | printf %s "(cached) " >&6
|
---|
4524 | else case e in #(
|
---|
4525 | e) ac_cv_prog_cc_c89=no
|
---|
4526 | ac_save_CC=$CC
|
---|
4527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4528 | /* end confdefs.h. */
|
---|
4529 | $ac_c_conftest_c89_program
|
---|
4530 | _ACEOF
|
---|
4531 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
4532 | do
|
---|
4533 | CC="$ac_save_CC $ac_arg"
|
---|
4534 | if ac_fn_c_try_compile "$LINENO"
|
---|
4535 | then :
|
---|
4536 | ac_cv_prog_cc_c89=$ac_arg
|
---|
4537 | fi
|
---|
4538 | rm -f core conftest.err conftest.$ac_objext conftest.beam
|
---|
4539 | test "x$ac_cv_prog_cc_c89" != "xno" && break
|
---|
4540 | done
|
---|
4541 | rm -f conftest.$ac_ext
|
---|
4542 | CC=$ac_save_CC ;;
|
---|
4543 | esac
|
---|
4544 | fi
|
---|
4545 |
|
---|
4546 | if test "x$ac_cv_prog_cc_c89" = xno
|
---|
4547 | then :
|
---|
4548 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
---|
4549 | printf "%s\n" "unsupported" >&6; }
|
---|
4550 | else case e in #(
|
---|
4551 | e) if test "x$ac_cv_prog_cc_c89" = x
|
---|
4552 | then :
|
---|
4553 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
---|
4554 | printf "%s\n" "none needed" >&6; }
|
---|
4555 | else case e in #(
|
---|
4556 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
---|
4557 | printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
|
---|
4558 | CC="$CC $ac_cv_prog_cc_c89" ;;
|
---|
4559 | esac
|
---|
4560 | fi
|
---|
4561 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
|
---|
4562 | ac_prog_cc_stdc=c89 ;;
|
---|
4563 | esac
|
---|
4564 | fi
|
---|
4565 | fi
|
---|
4566 |
|
---|
4567 | ac_ext=c
|
---|
4568 | ac_cpp='$CPP $CPPFLAGS'
|
---|
4569 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
4570 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
4571 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
4572 |
|
---|
4573 |
|
---|
4574 | ac_ext=c
|
---|
4575 | ac_cpp='$CPP $CPPFLAGS'
|
---|
4576 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
4577 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
4578 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
4579 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
|
---|
4580 | printf %s "checking whether $CC understands -c and -o together... " >&6; }
|
---|
4581 | if test ${am_cv_prog_cc_c_o+y}
|
---|
4582 | then :
|
---|
4583 | printf %s "(cached) " >&6
|
---|
4584 | else case e in #(
|
---|
4585 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
4586 | /* end confdefs.h. */
|
---|
4587 |
|
---|
4588 | int
|
---|
4589 | main (void)
|
---|
4590 | {
|
---|
4591 |
|
---|
4592 | ;
|
---|
4593 | return 0;
|
---|
4594 | }
|
---|
4595 | _ACEOF
|
---|
4596 | # Make sure it works both with $CC and with simple cc.
|
---|
4597 | # Following AC_PROG_CC_C_O, we do the test twice because some
|
---|
4598 | # compilers refuse to overwrite an existing .o file with -o,
|
---|
4599 | # though they will create one.
|
---|
4600 | am_cv_prog_cc_c_o=yes
|
---|
4601 | for am_i in 1 2; do
|
---|
4602 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
|
---|
4603 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
|
---|
4604 | ac_status=$?
|
---|
4605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4606 | (exit $ac_status); } \
|
---|
4607 | && test -f conftest2.$ac_objext; then
|
---|
4608 | : OK
|
---|
4609 | else
|
---|
4610 | am_cv_prog_cc_c_o=no
|
---|
4611 | break
|
---|
4612 | fi
|
---|
4613 | done
|
---|
4614 | rm -f core conftest*
|
---|
4615 | unset am_i ;;
|
---|
4616 | esac
|
---|
4617 | fi
|
---|
4618 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
|
---|
4619 | printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
|
---|
4620 | if test "$am_cv_prog_cc_c_o" != yes; then
|
---|
4621 | # Losing compiler, so override with the script.
|
---|
4622 | # FIXME: It is wrong to rewrite CC.
|
---|
4623 | # But if we don't then we get into trouble of one sort or another.
|
---|
4624 | # A longer-term fix would be to have automake use am__CC in this case,
|
---|
4625 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
|
---|
4626 | CC="$am_aux_dir/compile $CC"
|
---|
4627 | fi
|
---|
4628 | ac_ext=c
|
---|
4629 | ac_cpp='$CPP $CPPFLAGS'
|
---|
4630 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
4631 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
4632 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
4633 |
|
---|
4634 | DEPDIR="${am__leading_dot}deps"
|
---|
4635 |
|
---|
4636 | ac_config_commands="$ac_config_commands depfiles"
|
---|
4637 |
|
---|
4638 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
|
---|
4639 | printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
|
---|
4640 | cat > confinc.mk << 'END'
|
---|
4641 | am__doit:
|
---|
4642 | @echo this is the am__doit target >confinc.out
|
---|
4643 | .PHONY: am__doit
|
---|
4644 | END
|
---|
4645 | am__include="#"
|
---|
4646 | am__quote=
|
---|
4647 | # BSD make does it like this.
|
---|
4648 | echo '.include "confinc.mk" # ignored' > confmf.BSD
|
---|
4649 | # Other make implementations (GNU, Solaris 10, AIX) do it like this.
|
---|
4650 | echo 'include confinc.mk # ignored' > confmf.GNU
|
---|
4651 | _am_result=no
|
---|
4652 | for s in GNU BSD; do
|
---|
4653 | { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
|
---|
4654 | (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
|
---|
4655 | ac_status=$?
|
---|
4656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4657 | (exit $ac_status); }
|
---|
4658 | case $?:`cat confinc.out 2>/dev/null` in #(
|
---|
4659 | '0:this is the am__doit target') :
|
---|
4660 | case $s in #(
|
---|
4661 | BSD) :
|
---|
4662 | am__include='.include' am__quote='"' ;; #(
|
---|
4663 | *) :
|
---|
4664 | am__include='include' am__quote='' ;;
|
---|
4665 | esac ;; #(
|
---|
4666 | *) :
|
---|
4667 | ;;
|
---|
4668 | esac
|
---|
4669 | if test "$am__include" != "#"; then
|
---|
4670 | _am_result="yes ($s style)"
|
---|
4671 | break
|
---|
4672 | fi
|
---|
4673 | done
|
---|
4674 | rm -f confinc.* confmf.*
|
---|
4675 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
|
---|
4676 | printf "%s\n" "${_am_result}" >&6; }
|
---|
4677 |
|
---|
4678 | # Check whether --enable-dependency-tracking was given.
|
---|
4679 | if test ${enable_dependency_tracking+y}
|
---|
4680 | then :
|
---|
4681 | enableval=$enable_dependency_tracking;
|
---|
4682 | fi
|
---|
4683 |
|
---|
4684 | if test "x$enable_dependency_tracking" != xno; then
|
---|
4685 | am_depcomp="$ac_aux_dir/depcomp"
|
---|
4686 | AMDEPBACKSLASH='\'
|
---|
4687 | am__nodep='_no'
|
---|
4688 | fi
|
---|
4689 | if test "x$enable_dependency_tracking" != xno; then
|
---|
4690 | AMDEP_TRUE=
|
---|
4691 | AMDEP_FALSE='#'
|
---|
4692 | else
|
---|
4693 | AMDEP_TRUE='#'
|
---|
4694 | AMDEP_FALSE=
|
---|
4695 | fi
|
---|
4696 |
|
---|
4697 |
|
---|
4698 |
|
---|
4699 | depcc="$CC" am_compiler_list=
|
---|
4700 |
|
---|
4701 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
|
---|
4702 | printf %s "checking dependency style of $depcc... " >&6; }
|
---|
4703 | if test ${am_cv_CC_dependencies_compiler_type+y}
|
---|
4704 | then :
|
---|
4705 | printf %s "(cached) " >&6
|
---|
4706 | else case e in #(
|
---|
4707 | e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
---|
4708 | # We make a subdir and do the tests there. Otherwise we can end up
|
---|
4709 | # making bogus files that we don't know about and never remove. For
|
---|
4710 | # instance it was reported that on HP-UX the gcc test will end up
|
---|
4711 | # making a dummy file named 'D' -- because '-MD' means "put the output
|
---|
4712 | # in D".
|
---|
4713 | rm -rf conftest.dir
|
---|
4714 | mkdir conftest.dir
|
---|
4715 | # Copy depcomp to subdir because otherwise we won't find it if we're
|
---|
4716 | # using a relative directory.
|
---|
4717 | cp "$am_depcomp" conftest.dir
|
---|
4718 | cd conftest.dir
|
---|
4719 | # We will build objects and dependencies in a subdirectory because
|
---|
4720 | # it helps to detect inapplicable dependency modes. For instance
|
---|
4721 | # both Tru64's cc and ICC support -MD to output dependencies as a
|
---|
4722 | # side effect of compilation, but ICC will put the dependencies in
|
---|
4723 | # the current directory while Tru64 will put them in the object
|
---|
4724 | # directory.
|
---|
4725 | mkdir sub
|
---|
4726 |
|
---|
4727 | am_cv_CC_dependencies_compiler_type=none
|
---|
4728 | if test "$am_compiler_list" = ""; then
|
---|
4729 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
|
---|
4730 | fi
|
---|
4731 | am__universal=false
|
---|
4732 | case " $depcc " in #(
|
---|
4733 | *\ -arch\ *\ -arch\ *) am__universal=true ;;
|
---|
4734 | esac
|
---|
4735 |
|
---|
4736 | for depmode in $am_compiler_list; do
|
---|
4737 | # Setup a source with many dependencies, because some compilers
|
---|
4738 | # like to wrap large dependency lists on column 80 (with \), and
|
---|
4739 | # we should not choose a depcomp mode which is confused by this.
|
---|
4740 | #
|
---|
4741 | # We need to recreate these files for each test, as the compiler may
|
---|
4742 | # overwrite some of them when testing with obscure command lines.
|
---|
4743 | # This happens at least with the AIX C compiler.
|
---|
4744 | : > sub/conftest.c
|
---|
4745 | for i in 1 2 3 4 5 6; do
|
---|
4746 | echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
---|
4747 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
|
---|
4748 | # Solaris 10 /bin/sh.
|
---|
4749 | echo '/* dummy */' > sub/conftst$i.h
|
---|
4750 | done
|
---|
4751 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
---|
4752 |
|
---|
4753 | # We check with '-c' and '-o' for the sake of the "dashmstdout"
|
---|
4754 | # mode. It turns out that the SunPro C++ compiler does not properly
|
---|
4755 | # handle '-M -o', and we need to detect this. Also, some Intel
|
---|
4756 | # versions had trouble with output in subdirs.
|
---|
4757 | am__obj=sub/conftest.${OBJEXT-o}
|
---|
4758 | am__minus_obj="-o $am__obj"
|
---|
4759 | case $depmode in
|
---|
4760 | gcc)
|
---|
4761 | # This depmode causes a compiler race in universal mode.
|
---|
4762 | test "$am__universal" = false || continue
|
---|
4763 | ;;
|
---|
4764 | nosideeffect)
|
---|
4765 | # After this tag, mechanisms are not by side-effect, so they'll
|
---|
4766 | # only be used when explicitly requested.
|
---|
4767 | if test "x$enable_dependency_tracking" = xyes; then
|
---|
4768 | continue
|
---|
4769 | else
|
---|
4770 | break
|
---|
4771 | fi
|
---|
4772 | ;;
|
---|
4773 | msvc7 | msvc7msys | msvisualcpp | msvcmsys)
|
---|
4774 | # This compiler won't grok '-c -o', but also, the minuso test has
|
---|
4775 | # not run yet. These depmodes are late enough in the game, and
|
---|
4776 | # so weak that their functioning should not be impacted.
|
---|
4777 | am__obj=conftest.${OBJEXT-o}
|
---|
4778 | am__minus_obj=
|
---|
4779 | ;;
|
---|
4780 | none) break ;;
|
---|
4781 | esac
|
---|
4782 | if depmode=$depmode \
|
---|
4783 | source=sub/conftest.c object=$am__obj \
|
---|
4784 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
---|
4785 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
|
---|
4786 | >/dev/null 2>conftest.err &&
|
---|
4787 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
|
---|
4788 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
---|
4789 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
|
---|
4790 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
---|
4791 | # icc doesn't choke on unknown options, it will just issue warnings
|
---|
4792 | # or remarks (even with -Werror). So we grep stderr for any message
|
---|
4793 | # that says an option was ignored or not supported.
|
---|
4794 | # When given -MP, icc 7.0 and 7.1 complain thus:
|
---|
4795 | # icc: Command line warning: ignoring option '-M'; no argument required
|
---|
4796 | # The diagnosis changed in icc 8.0:
|
---|
4797 | # icc: Command line remark: option '-MP' not supported
|
---|
4798 | if (grep 'ignoring option' conftest.err ||
|
---|
4799 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
---|
4800 | am_cv_CC_dependencies_compiler_type=$depmode
|
---|
4801 | break
|
---|
4802 | fi
|
---|
4803 | fi
|
---|
4804 | done
|
---|
4805 |
|
---|
4806 | cd ..
|
---|
4807 | rm -rf conftest.dir
|
---|
4808 | else
|
---|
4809 | am_cv_CC_dependencies_compiler_type=none
|
---|
4810 | fi
|
---|
4811 | ;;
|
---|
4812 | esac
|
---|
4813 | fi
|
---|
4814 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
|
---|
4815 | printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
|
---|
4816 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
|
---|
4817 |
|
---|
4818 | if
|
---|
4819 | test "x$enable_dependency_tracking" != xno \
|
---|
4820 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
|
---|
4821 | am__fastdepCC_TRUE=
|
---|
4822 | am__fastdepCC_FALSE='#'
|
---|
4823 | else
|
---|
4824 | am__fastdepCC_TRUE='#'
|
---|
4825 | am__fastdepCC_FALSE=
|
---|
4826 | fi
|
---|
4827 |
|
---|
4828 |
|
---|
4829 | # By default we simply use the C compiler to build assembly code.
|
---|
4830 |
|
---|
4831 | test "${CCAS+set}" = set || CCAS=$CC
|
---|
4832 | test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
|
---|
4833 |
|
---|
4834 |
|
---|
4835 |
|
---|
4836 | depcc="$CCAS" am_compiler_list=
|
---|
4837 |
|
---|
4838 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
|
---|
4839 | printf %s "checking dependency style of $depcc... " >&6; }
|
---|
4840 | if test ${am_cv_CCAS_dependencies_compiler_type+y}
|
---|
4841 | then :
|
---|
4842 | printf %s "(cached) " >&6
|
---|
4843 | else case e in #(
|
---|
4844 | e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
---|
4845 | # We make a subdir and do the tests there. Otherwise we can end up
|
---|
4846 | # making bogus files that we don't know about and never remove. For
|
---|
4847 | # instance it was reported that on HP-UX the gcc test will end up
|
---|
4848 | # making a dummy file named 'D' -- because '-MD' means "put the output
|
---|
4849 | # in D".
|
---|
4850 | rm -rf conftest.dir
|
---|
4851 | mkdir conftest.dir
|
---|
4852 | # Copy depcomp to subdir because otherwise we won't find it if we're
|
---|
4853 | # using a relative directory.
|
---|
4854 | cp "$am_depcomp" conftest.dir
|
---|
4855 | cd conftest.dir
|
---|
4856 | # We will build objects and dependencies in a subdirectory because
|
---|
4857 | # it helps to detect inapplicable dependency modes. For instance
|
---|
4858 | # both Tru64's cc and ICC support -MD to output dependencies as a
|
---|
4859 | # side effect of compilation, but ICC will put the dependencies in
|
---|
4860 | # the current directory while Tru64 will put them in the object
|
---|
4861 | # directory.
|
---|
4862 | mkdir sub
|
---|
4863 |
|
---|
4864 | am_cv_CCAS_dependencies_compiler_type=none
|
---|
4865 | if test "$am_compiler_list" = ""; then
|
---|
4866 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
|
---|
4867 | fi
|
---|
4868 | am__universal=false
|
---|
4869 |
|
---|
4870 |
|
---|
4871 | for depmode in $am_compiler_list; do
|
---|
4872 | # Setup a source with many dependencies, because some compilers
|
---|
4873 | # like to wrap large dependency lists on column 80 (with \), and
|
---|
4874 | # we should not choose a depcomp mode which is confused by this.
|
---|
4875 | #
|
---|
4876 | # We need to recreate these files for each test, as the compiler may
|
---|
4877 | # overwrite some of them when testing with obscure command lines.
|
---|
4878 | # This happens at least with the AIX C compiler.
|
---|
4879 | : > sub/conftest.c
|
---|
4880 | for i in 1 2 3 4 5 6; do
|
---|
4881 | echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
---|
4882 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
|
---|
4883 | # Solaris 10 /bin/sh.
|
---|
4884 | echo '/* dummy */' > sub/conftst$i.h
|
---|
4885 | done
|
---|
4886 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
---|
4887 |
|
---|
4888 | # We check with '-c' and '-o' for the sake of the "dashmstdout"
|
---|
4889 | # mode. It turns out that the SunPro C++ compiler does not properly
|
---|
4890 | # handle '-M -o', and we need to detect this. Also, some Intel
|
---|
4891 | # versions had trouble with output in subdirs.
|
---|
4892 | am__obj=sub/conftest.${OBJEXT-o}
|
---|
4893 | am__minus_obj="-o $am__obj"
|
---|
4894 | case $depmode in
|
---|
4895 | gcc)
|
---|
4896 | # This depmode causes a compiler race in universal mode.
|
---|
4897 | test "$am__universal" = false || continue
|
---|
4898 | ;;
|
---|
4899 | nosideeffect)
|
---|
4900 | # After this tag, mechanisms are not by side-effect, so they'll
|
---|
4901 | # only be used when explicitly requested.
|
---|
4902 | if test "x$enable_dependency_tracking" = xyes; then
|
---|
4903 | continue
|
---|
4904 | else
|
---|
4905 | break
|
---|
4906 | fi
|
---|
4907 | ;;
|
---|
4908 | msvc7 | msvc7msys | msvisualcpp | msvcmsys)
|
---|
4909 | # This compiler won't grok '-c -o', but also, the minuso test has
|
---|
4910 | # not run yet. These depmodes are late enough in the game, and
|
---|
4911 | # so weak that their functioning should not be impacted.
|
---|
4912 | am__obj=conftest.${OBJEXT-o}
|
---|
4913 | am__minus_obj=
|
---|
4914 | ;;
|
---|
4915 | none) break ;;
|
---|
4916 | esac
|
---|
4917 | if depmode=$depmode \
|
---|
4918 | source=sub/conftest.c object=$am__obj \
|
---|
4919 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
---|
4920 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
|
---|
4921 | >/dev/null 2>conftest.err &&
|
---|
4922 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
|
---|
4923 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
---|
4924 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
|
---|
4925 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
---|
4926 | # icc doesn't choke on unknown options, it will just issue warnings
|
---|
4927 | # or remarks (even with -Werror). So we grep stderr for any message
|
---|
4928 | # that says an option was ignored or not supported.
|
---|
4929 | # When given -MP, icc 7.0 and 7.1 complain thus:
|
---|
4930 | # icc: Command line warning: ignoring option '-M'; no argument required
|
---|
4931 | # The diagnosis changed in icc 8.0:
|
---|
4932 | # icc: Command line remark: option '-MP' not supported
|
---|
4933 | if (grep 'ignoring option' conftest.err ||
|
---|
4934 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
---|
4935 | am_cv_CCAS_dependencies_compiler_type=$depmode
|
---|
4936 | break
|
---|
4937 | fi
|
---|
4938 | fi
|
---|
4939 | done
|
---|
4940 |
|
---|
4941 | cd ..
|
---|
4942 | rm -rf conftest.dir
|
---|
4943 | else
|
---|
4944 | am_cv_CCAS_dependencies_compiler_type=none
|
---|
4945 | fi
|
---|
4946 | ;;
|
---|
4947 | esac
|
---|
4948 | fi
|
---|
4949 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
|
---|
4950 | printf "%s\n" "$am_cv_CCAS_dependencies_compiler_type" >&6; }
|
---|
4951 | CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
|
---|
4952 |
|
---|
4953 | if
|
---|
4954 | test "x$enable_dependency_tracking" != xno \
|
---|
4955 | && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
|
---|
4956 | am__fastdepCCAS_TRUE=
|
---|
4957 | am__fastdepCCAS_FALSE='#'
|
---|
4958 | else
|
---|
4959 | am__fastdepCCAS_TRUE='#'
|
---|
4960 | am__fastdepCCAS_FALSE=
|
---|
4961 | fi
|
---|
4962 |
|
---|
4963 |
|
---|
4964 |
|
---|
4965 |
|
---|
4966 | # Make sure we can run config.sub.
|
---|
4967 | $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
|
---|
4968 | as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
|
---|
4969 |
|
---|
4970 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
|
---|
4971 | printf %s "checking build system type... " >&6; }
|
---|
4972 | if test ${ac_cv_build+y}
|
---|
4973 | then :
|
---|
4974 | printf %s "(cached) " >&6
|
---|
4975 | else case e in #(
|
---|
4976 | e) ac_build_alias=$build_alias
|
---|
4977 | test "x$ac_build_alias" = x &&
|
---|
4978 | ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
|
---|
4979 | test "x$ac_build_alias" = x &&
|
---|
4980 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
|
---|
4981 | ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
|
---|
4982 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
|
---|
4983 | ;;
|
---|
4984 | esac
|
---|
4985 | fi
|
---|
4986 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
|
---|
4987 | printf "%s\n" "$ac_cv_build" >&6; }
|
---|
4988 | case $ac_cv_build in
|
---|
4989 | *-*-*) ;;
|
---|
4990 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
|
---|
4991 | esac
|
---|
4992 | build=$ac_cv_build
|
---|
4993 | ac_save_IFS=$IFS; IFS='-'
|
---|
4994 | set x $ac_cv_build
|
---|
4995 | shift
|
---|
4996 | build_cpu=$1
|
---|
4997 | build_vendor=$2
|
---|
4998 | shift; shift
|
---|
4999 | # Remember, the first character of IFS is used to create $*,
|
---|
5000 | # except with old shells:
|
---|
5001 | build_os=$*
|
---|
5002 | IFS=$ac_save_IFS
|
---|
5003 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
---|
5004 |
|
---|
5005 |
|
---|
5006 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
|
---|
5007 | printf %s "checking host system type... " >&6; }
|
---|
5008 | if test ${ac_cv_host+y}
|
---|
5009 | then :
|
---|
5010 | printf %s "(cached) " >&6
|
---|
5011 | else case e in #(
|
---|
5012 | e) if test "x$host_alias" = x; then
|
---|
5013 | ac_cv_host=$ac_cv_build
|
---|
5014 | else
|
---|
5015 | ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
|
---|
5016 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
|
---|
5017 | fi
|
---|
5018 | ;;
|
---|
5019 | esac
|
---|
5020 | fi
|
---|
5021 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
|
---|
5022 | printf "%s\n" "$ac_cv_host" >&6; }
|
---|
5023 | case $ac_cv_host in
|
---|
5024 | *-*-*) ;;
|
---|
5025 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
|
---|
5026 | esac
|
---|
5027 | host=$ac_cv_host
|
---|
5028 | ac_save_IFS=$IFS; IFS='-'
|
---|
5029 | set x $ac_cv_host
|
---|
5030 | shift
|
---|
5031 | host_cpu=$1
|
---|
5032 | host_vendor=$2
|
---|
5033 | shift; shift
|
---|
5034 | # Remember, the first character of IFS is used to create $*,
|
---|
5035 | # except with old shells:
|
---|
5036 | host_os=$*
|
---|
5037 | IFS=$ac_save_IFS
|
---|
5038 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
---|
5039 |
|
---|
5040 |
|
---|
5041 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
|
---|
5042 | printf %s "checking for a sed that does not truncate output... " >&6; }
|
---|
5043 | if test ${ac_cv_path_SED+y}
|
---|
5044 | then :
|
---|
5045 | printf %s "(cached) " >&6
|
---|
5046 | else case e in #(
|
---|
5047 | e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
|
---|
5048 | for ac_i in 1 2 3 4 5 6 7; do
|
---|
5049 | ac_script="$ac_script$as_nl$ac_script"
|
---|
5050 | done
|
---|
5051 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
|
---|
5052 | { ac_script=; unset ac_script;}
|
---|
5053 | if test -z "$SED"; then
|
---|
5054 | ac_path_SED_found=false
|
---|
5055 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
5056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5057 | for as_dir in $PATH
|
---|
5058 | do
|
---|
5059 | IFS=$as_save_IFS
|
---|
5060 | case $as_dir in #(((
|
---|
5061 | '') as_dir=./ ;;
|
---|
5062 | */) ;;
|
---|
5063 | *) as_dir=$as_dir/ ;;
|
---|
5064 | esac
|
---|
5065 | for ac_prog in sed gsed
|
---|
5066 | do
|
---|
5067 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5068 | ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
|
---|
5069 | as_fn_executable_p "$ac_path_SED" || continue
|
---|
5070 | # Check for GNU ac_path_SED and select it if it is found.
|
---|
5071 | # Check for GNU $ac_path_SED
|
---|
5072 | case `"$ac_path_SED" --version 2>&1` in #(
|
---|
5073 | *GNU*)
|
---|
5074 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
|
---|
5075 | #(
|
---|
5076 | *)
|
---|
5077 | ac_count=0
|
---|
5078 | printf %s 0123456789 >"conftest.in"
|
---|
5079 | while :
|
---|
5080 | do
|
---|
5081 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
5082 | mv "conftest.tmp" "conftest.in"
|
---|
5083 | cp "conftest.in" "conftest.nl"
|
---|
5084 | printf "%s\n" '' >> "conftest.nl"
|
---|
5085 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
5086 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
5087 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
5088 | if test $ac_count -gt ${ac_path_SED_max-0}; then
|
---|
5089 | # Best one so far, save it but keep looking for a better one
|
---|
5090 | ac_cv_path_SED="$ac_path_SED"
|
---|
5091 | ac_path_SED_max=$ac_count
|
---|
5092 | fi
|
---|
5093 | # 10*(2^10) chars as input seems more than enough
|
---|
5094 | test $ac_count -gt 10 && break
|
---|
5095 | done
|
---|
5096 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
5097 | esac
|
---|
5098 |
|
---|
5099 | $ac_path_SED_found && break 3
|
---|
5100 | done
|
---|
5101 | done
|
---|
5102 | done
|
---|
5103 | IFS=$as_save_IFS
|
---|
5104 | if test -z "$ac_cv_path_SED"; then
|
---|
5105 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
|
---|
5106 | fi
|
---|
5107 | else
|
---|
5108 | ac_cv_path_SED=$SED
|
---|
5109 | fi
|
---|
5110 | ;;
|
---|
5111 | esac
|
---|
5112 | fi
|
---|
5113 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
|
---|
5114 | printf "%s\n" "$ac_cv_path_SED" >&6; }
|
---|
5115 | SED="$ac_cv_path_SED"
|
---|
5116 | rm -f conftest.sed
|
---|
5117 |
|
---|
5118 | test -z "$SED" && SED=sed
|
---|
5119 | Xsed="$SED -e 1s/^X//"
|
---|
5120 |
|
---|
5121 |
|
---|
5122 |
|
---|
5123 |
|
---|
5124 |
|
---|
5125 |
|
---|
5126 |
|
---|
5127 |
|
---|
5128 |
|
---|
5129 |
|
---|
5130 |
|
---|
5131 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
|
---|
5132 | printf %s "checking for grep that handles long lines and -e... " >&6; }
|
---|
5133 | if test ${ac_cv_path_GREP+y}
|
---|
5134 | then :
|
---|
5135 | printf %s "(cached) " >&6
|
---|
5136 | else case e in #(
|
---|
5137 | e) if test -z "$GREP"; then
|
---|
5138 | ac_path_GREP_found=false
|
---|
5139 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
5140 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5141 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
5142 | do
|
---|
5143 | IFS=$as_save_IFS
|
---|
5144 | case $as_dir in #(((
|
---|
5145 | '') as_dir=./ ;;
|
---|
5146 | */) ;;
|
---|
5147 | *) as_dir=$as_dir/ ;;
|
---|
5148 | esac
|
---|
5149 | for ac_prog in grep ggrep
|
---|
5150 | do
|
---|
5151 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5152 | ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
|
---|
5153 | as_fn_executable_p "$ac_path_GREP" || continue
|
---|
5154 | # Check for GNU ac_path_GREP and select it if it is found.
|
---|
5155 | # Check for GNU $ac_path_GREP
|
---|
5156 | case `"$ac_path_GREP" --version 2>&1` in #(
|
---|
5157 | *GNU*)
|
---|
5158 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
---|
5159 | #(
|
---|
5160 | *)
|
---|
5161 | ac_count=0
|
---|
5162 | printf %s 0123456789 >"conftest.in"
|
---|
5163 | while :
|
---|
5164 | do
|
---|
5165 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
5166 | mv "conftest.tmp" "conftest.in"
|
---|
5167 | cp "conftest.in" "conftest.nl"
|
---|
5168 | printf "%s\n" 'GREP' >> "conftest.nl"
|
---|
5169 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
5170 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
5171 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
5172 | if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
---|
5173 | # Best one so far, save it but keep looking for a better one
|
---|
5174 | ac_cv_path_GREP="$ac_path_GREP"
|
---|
5175 | ac_path_GREP_max=$ac_count
|
---|
5176 | fi
|
---|
5177 | # 10*(2^10) chars as input seems more than enough
|
---|
5178 | test $ac_count -gt 10 && break
|
---|
5179 | done
|
---|
5180 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
5181 | esac
|
---|
5182 |
|
---|
5183 | $ac_path_GREP_found && break 3
|
---|
5184 | done
|
---|
5185 | done
|
---|
5186 | done
|
---|
5187 | IFS=$as_save_IFS
|
---|
5188 | if test -z "$ac_cv_path_GREP"; then
|
---|
5189 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
5190 | fi
|
---|
5191 | else
|
---|
5192 | ac_cv_path_GREP=$GREP
|
---|
5193 | fi
|
---|
5194 | ;;
|
---|
5195 | esac
|
---|
5196 | fi
|
---|
5197 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
|
---|
5198 | printf "%s\n" "$ac_cv_path_GREP" >&6; }
|
---|
5199 | GREP="$ac_cv_path_GREP"
|
---|
5200 |
|
---|
5201 |
|
---|
5202 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
|
---|
5203 | printf %s "checking for egrep... " >&6; }
|
---|
5204 | if test ${ac_cv_path_EGREP+y}
|
---|
5205 | then :
|
---|
5206 | printf %s "(cached) " >&6
|
---|
5207 | else case e in #(
|
---|
5208 | e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
---|
5209 | then ac_cv_path_EGREP="$GREP -E"
|
---|
5210 | else
|
---|
5211 | if test -z "$EGREP"; then
|
---|
5212 | ac_path_EGREP_found=false
|
---|
5213 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
5214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5215 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
5216 | do
|
---|
5217 | IFS=$as_save_IFS
|
---|
5218 | case $as_dir in #(((
|
---|
5219 | '') as_dir=./ ;;
|
---|
5220 | */) ;;
|
---|
5221 | *) as_dir=$as_dir/ ;;
|
---|
5222 | esac
|
---|
5223 | for ac_prog in egrep
|
---|
5224 | do
|
---|
5225 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5226 | ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
|
---|
5227 | as_fn_executable_p "$ac_path_EGREP" || continue
|
---|
5228 | # Check for GNU ac_path_EGREP and select it if it is found.
|
---|
5229 | # Check for GNU $ac_path_EGREP
|
---|
5230 | case `"$ac_path_EGREP" --version 2>&1` in #(
|
---|
5231 | *GNU*)
|
---|
5232 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
---|
5233 | #(
|
---|
5234 | *)
|
---|
5235 | ac_count=0
|
---|
5236 | printf %s 0123456789 >"conftest.in"
|
---|
5237 | while :
|
---|
5238 | do
|
---|
5239 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
5240 | mv "conftest.tmp" "conftest.in"
|
---|
5241 | cp "conftest.in" "conftest.nl"
|
---|
5242 | printf "%s\n" 'EGREP' >> "conftest.nl"
|
---|
5243 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
5244 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
5245 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
5246 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
---|
5247 | # Best one so far, save it but keep looking for a better one
|
---|
5248 | ac_cv_path_EGREP="$ac_path_EGREP"
|
---|
5249 | ac_path_EGREP_max=$ac_count
|
---|
5250 | fi
|
---|
5251 | # 10*(2^10) chars as input seems more than enough
|
---|
5252 | test $ac_count -gt 10 && break
|
---|
5253 | done
|
---|
5254 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
5255 | esac
|
---|
5256 |
|
---|
5257 | $ac_path_EGREP_found && break 3
|
---|
5258 | done
|
---|
5259 | done
|
---|
5260 | done
|
---|
5261 | IFS=$as_save_IFS
|
---|
5262 | if test -z "$ac_cv_path_EGREP"; then
|
---|
5263 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
5264 | fi
|
---|
5265 | else
|
---|
5266 | ac_cv_path_EGREP=$EGREP
|
---|
5267 | fi
|
---|
5268 |
|
---|
5269 | fi ;;
|
---|
5270 | esac
|
---|
5271 | fi
|
---|
5272 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
|
---|
5273 | printf "%s\n" "$ac_cv_path_EGREP" >&6; }
|
---|
5274 | EGREP="$ac_cv_path_EGREP"
|
---|
5275 |
|
---|
5276 | EGREP_TRADITIONAL=$EGREP
|
---|
5277 | ac_cv_path_EGREP_TRADITIONAL=$EGREP
|
---|
5278 |
|
---|
5279 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
|
---|
5280 | printf %s "checking for fgrep... " >&6; }
|
---|
5281 | if test ${ac_cv_path_FGREP+y}
|
---|
5282 | then :
|
---|
5283 | printf %s "(cached) " >&6
|
---|
5284 | else case e in #(
|
---|
5285 | e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
|
---|
5286 | then ac_cv_path_FGREP="$GREP -F"
|
---|
5287 | else
|
---|
5288 | if test -z "$FGREP"; then
|
---|
5289 | ac_path_FGREP_found=false
|
---|
5290 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
5291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5292 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
5293 | do
|
---|
5294 | IFS=$as_save_IFS
|
---|
5295 | case $as_dir in #(((
|
---|
5296 | '') as_dir=./ ;;
|
---|
5297 | */) ;;
|
---|
5298 | *) as_dir=$as_dir/ ;;
|
---|
5299 | esac
|
---|
5300 | for ac_prog in fgrep
|
---|
5301 | do
|
---|
5302 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5303 | ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
|
---|
5304 | as_fn_executable_p "$ac_path_FGREP" || continue
|
---|
5305 | # Check for GNU ac_path_FGREP and select it if it is found.
|
---|
5306 | # Check for GNU $ac_path_FGREP
|
---|
5307 | case `"$ac_path_FGREP" --version 2>&1` in #(
|
---|
5308 | *GNU*)
|
---|
5309 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
|
---|
5310 | #(
|
---|
5311 | *)
|
---|
5312 | ac_count=0
|
---|
5313 | printf %s 0123456789 >"conftest.in"
|
---|
5314 | while :
|
---|
5315 | do
|
---|
5316 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
5317 | mv "conftest.tmp" "conftest.in"
|
---|
5318 | cp "conftest.in" "conftest.nl"
|
---|
5319 | printf "%s\n" 'FGREP' >> "conftest.nl"
|
---|
5320 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
5321 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
5322 | as_fn_arith $ac_count + 1 && ac_count=$as_val
|
---|
5323 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then
|
---|
5324 | # Best one so far, save it but keep looking for a better one
|
---|
5325 | ac_cv_path_FGREP="$ac_path_FGREP"
|
---|
5326 | ac_path_FGREP_max=$ac_count
|
---|
5327 | fi
|
---|
5328 | # 10*(2^10) chars as input seems more than enough
|
---|
5329 | test $ac_count -gt 10 && break
|
---|
5330 | done
|
---|
5331 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
5332 | esac
|
---|
5333 |
|
---|
5334 | $ac_path_FGREP_found && break 3
|
---|
5335 | done
|
---|
5336 | done
|
---|
5337 | done
|
---|
5338 | IFS=$as_save_IFS
|
---|
5339 | if test -z "$ac_cv_path_FGREP"; then
|
---|
5340 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
---|
5341 | fi
|
---|
5342 | else
|
---|
5343 | ac_cv_path_FGREP=$FGREP
|
---|
5344 | fi
|
---|
5345 |
|
---|
5346 | fi ;;
|
---|
5347 | esac
|
---|
5348 | fi
|
---|
5349 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
|
---|
5350 | printf "%s\n" "$ac_cv_path_FGREP" >&6; }
|
---|
5351 | FGREP="$ac_cv_path_FGREP"
|
---|
5352 |
|
---|
5353 |
|
---|
5354 | test -z "$GREP" && GREP=grep
|
---|
5355 |
|
---|
5356 |
|
---|
5357 |
|
---|
5358 |
|
---|
5359 |
|
---|
5360 |
|
---|
5361 |
|
---|
5362 |
|
---|
5363 |
|
---|
5364 |
|
---|
5365 |
|
---|
5366 |
|
---|
5367 |
|
---|
5368 |
|
---|
5369 |
|
---|
5370 |
|
---|
5371 |
|
---|
5372 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
---|
5373 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
|
---|
5374 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
|
---|
5375 |
|
---|
5376 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
|
---|
5377 | printf %s "checking how to print strings... " >&6; }
|
---|
5378 | # Test print first, because it will be a builtin if present.
|
---|
5379 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
|
---|
5380 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
|
---|
5381 | ECHO='print -r --'
|
---|
5382 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
|
---|
5383 | ECHO='printf %s\n'
|
---|
5384 | else
|
---|
5385 | # Use this function as a fallback that always works.
|
---|
5386 | func_fallback_echo ()
|
---|
5387 | {
|
---|
5388 | eval 'cat <<_LTECHO_EOF
|
---|
5389 | $1
|
---|
5390 | _LTECHO_EOF'
|
---|
5391 | }
|
---|
5392 | ECHO='func_fallback_echo'
|
---|
5393 | fi
|
---|
5394 |
|
---|
5395 | # func_echo_all arg...
|
---|
5396 | # Invoke $ECHO with all args, space-separated.
|
---|
5397 | func_echo_all ()
|
---|
5398 | {
|
---|
5399 | $ECHO ""
|
---|
5400 | }
|
---|
5401 |
|
---|
5402 | case $ECHO in
|
---|
5403 | printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
|
---|
5404 | printf "%s\n" "printf" >&6; } ;;
|
---|
5405 | print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
|
---|
5406 | printf "%s\n" "print -r" >&6; } ;;
|
---|
5407 | *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
|
---|
5408 | printf "%s\n" "cat" >&6; } ;;
|
---|
5409 | esac
|
---|
5410 |
|
---|
5411 |
|
---|
5412 |
|
---|
5413 |
|
---|
5414 |
|
---|
5415 |
|
---|
5416 |
|
---|
5417 |
|
---|
5418 |
|
---|
5419 |
|
---|
5420 |
|
---|
5421 |
|
---|
5422 |
|
---|
5423 |
|
---|
5424 |
|
---|
5425 |
|
---|
5426 | # Check whether --with-gnu-ld was given.
|
---|
5427 | if test ${with_gnu_ld+y}
|
---|
5428 | then :
|
---|
5429 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
|
---|
5430 | else case e in #(
|
---|
5431 | e) with_gnu_ld=no ;;
|
---|
5432 | esac
|
---|
5433 | fi
|
---|
5434 |
|
---|
5435 | ac_prog=ld
|
---|
5436 | if test yes = "$GCC"; then
|
---|
5437 | # Check if gcc -print-prog-name=ld gives a path.
|
---|
5438 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
|
---|
5439 | printf %s "checking for ld used by $CC... " >&6; }
|
---|
5440 | case $host in
|
---|
5441 | *-*-mingw* | *-*-windows*)
|
---|
5442 | # gcc leaves a trailing carriage return, which upsets mingw
|
---|
5443 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
---|
5444 | *)
|
---|
5445 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
---|
5446 | esac
|
---|
5447 | case $ac_prog in
|
---|
5448 | # Accept absolute paths.
|
---|
5449 | [\\/]* | ?:[\\/]*)
|
---|
5450 | re_direlt='/[^/][^/]*/\.\./'
|
---|
5451 | # Canonicalize the pathname of ld
|
---|
5452 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
|
---|
5453 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
|
---|
5454 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
|
---|
5455 | done
|
---|
5456 | test -z "$LD" && LD=$ac_prog
|
---|
5457 | ;;
|
---|
5458 | "")
|
---|
5459 | # If it fails, then pretend we aren't using GCC.
|
---|
5460 | ac_prog=ld
|
---|
5461 | ;;
|
---|
5462 | *)
|
---|
5463 | # If it is relative, then search for the first ld in PATH.
|
---|
5464 | with_gnu_ld=unknown
|
---|
5465 | ;;
|
---|
5466 | esac
|
---|
5467 | elif test yes = "$with_gnu_ld"; then
|
---|
5468 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
|
---|
5469 | printf %s "checking for GNU ld... " >&6; }
|
---|
5470 | else
|
---|
5471 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
|
---|
5472 | printf %s "checking for non-GNU ld... " >&6; }
|
---|
5473 | fi
|
---|
5474 | if test ${lt_cv_path_LD+y}
|
---|
5475 | then :
|
---|
5476 | printf %s "(cached) " >&6
|
---|
5477 | else case e in #(
|
---|
5478 | e) if test -z "$LD"; then
|
---|
5479 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
|
---|
5480 | for ac_dir in $PATH; do
|
---|
5481 | IFS=$lt_save_ifs
|
---|
5482 | test -z "$ac_dir" && ac_dir=.
|
---|
5483 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
---|
5484 | lt_cv_path_LD=$ac_dir/$ac_prog
|
---|
5485 | # Check to see if the program is GNU ld. I'd rather use --version,
|
---|
5486 | # but apparently some variants of GNU ld only accept -v.
|
---|
5487 | # Break only if it was the GNU/non-GNU ld that we prefer.
|
---|
5488 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
|
---|
5489 | *GNU* | *'with BFD'*)
|
---|
5490 | test no != "$with_gnu_ld" && break
|
---|
5491 | ;;
|
---|
5492 | *)
|
---|
5493 | test yes != "$with_gnu_ld" && break
|
---|
5494 | ;;
|
---|
5495 | esac
|
---|
5496 | fi
|
---|
5497 | done
|
---|
5498 | IFS=$lt_save_ifs
|
---|
5499 | else
|
---|
5500 | lt_cv_path_LD=$LD # Let the user override the test with a path.
|
---|
5501 | fi ;;
|
---|
5502 | esac
|
---|
5503 | fi
|
---|
5504 |
|
---|
5505 | LD=$lt_cv_path_LD
|
---|
5506 | if test -n "$LD"; then
|
---|
5507 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
|
---|
5508 | printf "%s\n" "$LD" >&6; }
|
---|
5509 | else
|
---|
5510 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5511 | printf "%s\n" "no" >&6; }
|
---|
5512 | fi
|
---|
5513 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
|
---|
5514 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
|
---|
5515 | printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
|
---|
5516 | if test ${lt_cv_prog_gnu_ld+y}
|
---|
5517 | then :
|
---|
5518 | printf %s "(cached) " >&6
|
---|
5519 | else case e in #(
|
---|
5520 | e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
|
---|
5521 | case `$LD -v 2>&1 </dev/null` in
|
---|
5522 | *GNU* | *'with BFD'*)
|
---|
5523 | lt_cv_prog_gnu_ld=yes
|
---|
5524 | ;;
|
---|
5525 | *)
|
---|
5526 | lt_cv_prog_gnu_ld=no
|
---|
5527 | ;;
|
---|
5528 | esac ;;
|
---|
5529 | esac
|
---|
5530 | fi
|
---|
5531 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
|
---|
5532 | printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
|
---|
5533 | with_gnu_ld=$lt_cv_prog_gnu_ld
|
---|
5534 |
|
---|
5535 |
|
---|
5536 |
|
---|
5537 |
|
---|
5538 |
|
---|
5539 |
|
---|
5540 |
|
---|
5541 |
|
---|
5542 |
|
---|
5543 | ac_ext=c
|
---|
5544 | ac_cpp='$CPP $CPPFLAGS'
|
---|
5545 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
5546 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
5547 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
5548 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
|
---|
5549 | printf %s "checking how to run the C preprocessor... " >&6; }
|
---|
5550 | # On Suns, sometimes $CPP names a directory.
|
---|
5551 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
5552 | CPP=
|
---|
5553 | fi
|
---|
5554 | if test -z "$CPP"; then
|
---|
5555 | if test ${ac_cv_prog_CPP+y}
|
---|
5556 | then :
|
---|
5557 | printf %s "(cached) " >&6
|
---|
5558 | else case e in #(
|
---|
5559 | e) # Double quotes because $CC needs to be expanded
|
---|
5560 | for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
|
---|
5561 | do
|
---|
5562 | ac_preproc_ok=false
|
---|
5563 | for ac_c_preproc_warn_flag in '' yes
|
---|
5564 | do
|
---|
5565 | # Use a header file that comes with gcc, so configuring glibc
|
---|
5566 | # with a fresh cross-compiler works.
|
---|
5567 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
5568 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
5569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5570 | /* end confdefs.h. */
|
---|
5571 | #include <limits.h>
|
---|
5572 | Syntax error
|
---|
5573 | _ACEOF
|
---|
5574 | if ac_fn_c_try_cpp "$LINENO"
|
---|
5575 | then :
|
---|
5576 |
|
---|
5577 | else case e in #(
|
---|
5578 | e) # Broken: fails on valid input.
|
---|
5579 | continue ;;
|
---|
5580 | esac
|
---|
5581 | fi
|
---|
5582 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
5583 |
|
---|
5584 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
5585 | # can be detected and how.
|
---|
5586 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5587 | /* end confdefs.h. */
|
---|
5588 | #include <ac_nonexistent.h>
|
---|
5589 | _ACEOF
|
---|
5590 | if ac_fn_c_try_cpp "$LINENO"
|
---|
5591 | then :
|
---|
5592 | # Broken: success on invalid input.
|
---|
5593 | continue
|
---|
5594 | else case e in #(
|
---|
5595 | e) # Passes both tests.
|
---|
5596 | ac_preproc_ok=:
|
---|
5597 | break ;;
|
---|
5598 | esac
|
---|
5599 | fi
|
---|
5600 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
5601 |
|
---|
5602 | done
|
---|
5603 | # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
5604 | rm -f conftest.i conftest.err conftest.$ac_ext
|
---|
5605 | if $ac_preproc_ok
|
---|
5606 | then :
|
---|
5607 | break
|
---|
5608 | fi
|
---|
5609 |
|
---|
5610 | done
|
---|
5611 | ac_cv_prog_CPP=$CPP
|
---|
5612 | ;;
|
---|
5613 | esac
|
---|
5614 | fi
|
---|
5615 | CPP=$ac_cv_prog_CPP
|
---|
5616 | else
|
---|
5617 | ac_cv_prog_CPP=$CPP
|
---|
5618 | fi
|
---|
5619 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
|
---|
5620 | printf "%s\n" "$CPP" >&6; }
|
---|
5621 | ac_preproc_ok=false
|
---|
5622 | for ac_c_preproc_warn_flag in '' yes
|
---|
5623 | do
|
---|
5624 | # Use a header file that comes with gcc, so configuring glibc
|
---|
5625 | # with a fresh cross-compiler works.
|
---|
5626 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
5627 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
5628 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5629 | /* end confdefs.h. */
|
---|
5630 | #include <limits.h>
|
---|
5631 | Syntax error
|
---|
5632 | _ACEOF
|
---|
5633 | if ac_fn_c_try_cpp "$LINENO"
|
---|
5634 | then :
|
---|
5635 |
|
---|
5636 | else case e in #(
|
---|
5637 | e) # Broken: fails on valid input.
|
---|
5638 | continue ;;
|
---|
5639 | esac
|
---|
5640 | fi
|
---|
5641 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
5642 |
|
---|
5643 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
5644 | # can be detected and how.
|
---|
5645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
5646 | /* end confdefs.h. */
|
---|
5647 | #include <ac_nonexistent.h>
|
---|
5648 | _ACEOF
|
---|
5649 | if ac_fn_c_try_cpp "$LINENO"
|
---|
5650 | then :
|
---|
5651 | # Broken: success on invalid input.
|
---|
5652 | continue
|
---|
5653 | else case e in #(
|
---|
5654 | e) # Passes both tests.
|
---|
5655 | ac_preproc_ok=:
|
---|
5656 | break ;;
|
---|
5657 | esac
|
---|
5658 | fi
|
---|
5659 | rm -f conftest.err conftest.i conftest.$ac_ext
|
---|
5660 |
|
---|
5661 | done
|
---|
5662 | # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
5663 | rm -f conftest.i conftest.err conftest.$ac_ext
|
---|
5664 | if $ac_preproc_ok
|
---|
5665 | then :
|
---|
5666 |
|
---|
5667 | else case e in #(
|
---|
5668 | e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
|
---|
5669 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
|
---|
5670 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
|
---|
5671 | See 'config.log' for more details" "$LINENO" 5; } ;;
|
---|
5672 | esac
|
---|
5673 | fi
|
---|
5674 |
|
---|
5675 | ac_ext=c
|
---|
5676 | ac_cpp='$CPP $CPPFLAGS'
|
---|
5677 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
5678 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
5679 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
5680 |
|
---|
5681 | for ac_prog in gawk mawk nawk awk
|
---|
5682 | do
|
---|
5683 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
5684 | set dummy $ac_prog; ac_word=$2
|
---|
5685 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
5686 | printf %s "checking for $ac_word... " >&6; }
|
---|
5687 | if test ${ac_cv_prog_AWK+y}
|
---|
5688 | then :
|
---|
5689 | printf %s "(cached) " >&6
|
---|
5690 | else case e in #(
|
---|
5691 | e) if test -n "$AWK"; then
|
---|
5692 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
5693 | else
|
---|
5694 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5695 | for as_dir in $PATH
|
---|
5696 | do
|
---|
5697 | IFS=$as_save_IFS
|
---|
5698 | case $as_dir in #(((
|
---|
5699 | '') as_dir=./ ;;
|
---|
5700 | */) ;;
|
---|
5701 | *) as_dir=$as_dir/ ;;
|
---|
5702 | esac
|
---|
5703 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5704 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
5705 | ac_cv_prog_AWK="$ac_prog"
|
---|
5706 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
5707 | break 2
|
---|
5708 | fi
|
---|
5709 | done
|
---|
5710 | done
|
---|
5711 | IFS=$as_save_IFS
|
---|
5712 |
|
---|
5713 | fi ;;
|
---|
5714 | esac
|
---|
5715 | fi
|
---|
5716 | AWK=$ac_cv_prog_AWK
|
---|
5717 | if test -n "$AWK"; then
|
---|
5718 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
|
---|
5719 | printf "%s\n" "$AWK" >&6; }
|
---|
5720 | else
|
---|
5721 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5722 | printf "%s\n" "no" >&6; }
|
---|
5723 | fi
|
---|
5724 |
|
---|
5725 |
|
---|
5726 | test -n "$AWK" && break
|
---|
5727 | done
|
---|
5728 |
|
---|
5729 |
|
---|
5730 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
|
---|
5731 | printf %s "checking whether ln -s works... " >&6; }
|
---|
5732 | LN_S=$as_ln_s
|
---|
5733 | if test "$LN_S" = "ln -s"; then
|
---|
5734 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
5735 | printf "%s\n" "yes" >&6; }
|
---|
5736 | else
|
---|
5737 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
|
---|
5738 | printf "%s\n" "no, using $LN_S" >&6; }
|
---|
5739 | fi
|
---|
5740 |
|
---|
5741 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
5742 | printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
|
---|
5743 | set x ${MAKE-make}
|
---|
5744 | ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
---|
5745 | if eval test \${ac_cv_prog_make_${ac_make}_set+y}
|
---|
5746 | then :
|
---|
5747 | printf %s "(cached) " >&6
|
---|
5748 | else case e in #(
|
---|
5749 | e) cat >conftest.make <<\_ACEOF
|
---|
5750 | SHELL = /bin/sh
|
---|
5751 | all:
|
---|
5752 | @echo '@@@%%%=$(MAKE)=@@@%%%'
|
---|
5753 | _ACEOF
|
---|
5754 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
|
---|
5755 | case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
---|
5756 | *@@@%%%=?*=@@@%%%*)
|
---|
5757 | eval ac_cv_prog_make_${ac_make}_set=yes;;
|
---|
5758 | *)
|
---|
5759 | eval ac_cv_prog_make_${ac_make}_set=no;;
|
---|
5760 | esac
|
---|
5761 | rm -f conftest.make ;;
|
---|
5762 | esac
|
---|
5763 | fi
|
---|
5764 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
---|
5765 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
5766 | printf "%s\n" "yes" >&6; }
|
---|
5767 | SET_MAKE=
|
---|
5768 | else
|
---|
5769 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5770 | printf "%s\n" "no" >&6; }
|
---|
5771 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
5772 | fi
|
---|
5773 |
|
---|
5774 |
|
---|
5775 | case `pwd` in
|
---|
5776 | *\ * | *\ *)
|
---|
5777 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
|
---|
5778 | printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
|
---|
5779 | esac
|
---|
5780 |
|
---|
5781 |
|
---|
5782 |
|
---|
5783 | macro_version='2.5.4'
|
---|
5784 | macro_revision='2.5.4'
|
---|
5785 |
|
---|
5786 |
|
---|
5787 |
|
---|
5788 |
|
---|
5789 |
|
---|
5790 |
|
---|
5791 |
|
---|
5792 |
|
---|
5793 |
|
---|
5794 |
|
---|
5795 |
|
---|
5796 |
|
---|
5797 |
|
---|
5798 |
|
---|
5799 | ltmain=$ac_aux_dir/ltmain.sh
|
---|
5800 |
|
---|
5801 | # Backslashify metacharacters that are still active within
|
---|
5802 | # double-quoted strings.
|
---|
5803 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
|
---|
5804 |
|
---|
5805 | # Same as above, but do not quote variable references.
|
---|
5806 | double_quote_subst='s/\(["`\\]\)/\\\1/g'
|
---|
5807 |
|
---|
5808 | # Sed substitution to delay expansion of an escaped shell variable in a
|
---|
5809 | # double_quote_subst'ed string.
|
---|
5810 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
|
---|
5811 |
|
---|
5812 | # Sed substitution to delay expansion of an escaped single quote.
|
---|
5813 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
|
---|
5814 |
|
---|
5815 | # Sed substitution to avoid accidental globbing in evaled expressions
|
---|
5816 | no_glob_subst='s/\*/\\\*/g'
|
---|
5817 |
|
---|
5818 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
|
---|
5819 | printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
|
---|
5820 | if test ${lt_cv_path_NM+y}
|
---|
5821 | then :
|
---|
5822 | printf %s "(cached) " >&6
|
---|
5823 | else case e in #(
|
---|
5824 | e) if test -n "$NM"; then
|
---|
5825 | # Let the user override the test.
|
---|
5826 | lt_cv_path_NM=$NM
|
---|
5827 | else
|
---|
5828 | lt_nm_to_check=${ac_tool_prefix}nm
|
---|
5829 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
|
---|
5830 | lt_nm_to_check="$lt_nm_to_check nm"
|
---|
5831 | fi
|
---|
5832 | for lt_tmp_nm in $lt_nm_to_check; do
|
---|
5833 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
|
---|
5834 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
|
---|
5835 | IFS=$lt_save_ifs
|
---|
5836 | test -z "$ac_dir" && ac_dir=.
|
---|
5837 | tmp_nm=$ac_dir/$lt_tmp_nm
|
---|
5838 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
|
---|
5839 | # Check to see if the nm accepts a BSD-compat flag.
|
---|
5840 | # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
|
---|
5841 | # nm: unknown option "B" ignored
|
---|
5842 | # Tru64's nm complains that /dev/null is an invalid object file
|
---|
5843 | # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
|
---|
5844 | case $build_os in
|
---|
5845 | mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
|
---|
5846 | *) lt_bad_file=/dev/null ;;
|
---|
5847 | esac
|
---|
5848 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
|
---|
5849 | *$lt_bad_file* | *'Invalid file or object type'*)
|
---|
5850 | lt_cv_path_NM="$tmp_nm -B"
|
---|
5851 | break 2
|
---|
5852 | ;;
|
---|
5853 | *)
|
---|
5854 | case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
|
---|
5855 | */dev/null*)
|
---|
5856 | lt_cv_path_NM="$tmp_nm -p"
|
---|
5857 | break 2
|
---|
5858 | ;;
|
---|
5859 | *)
|
---|
5860 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
---|
5861 | continue # so that we can try to find one that supports BSD flags
|
---|
5862 | ;;
|
---|
5863 | esac
|
---|
5864 | ;;
|
---|
5865 | esac
|
---|
5866 | fi
|
---|
5867 | done
|
---|
5868 | IFS=$lt_save_ifs
|
---|
5869 | done
|
---|
5870 | : ${lt_cv_path_NM=no}
|
---|
5871 | fi ;;
|
---|
5872 | esac
|
---|
5873 | fi
|
---|
5874 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
|
---|
5875 | printf "%s\n" "$lt_cv_path_NM" >&6; }
|
---|
5876 | if test no != "$lt_cv_path_NM"; then
|
---|
5877 | NM=$lt_cv_path_NM
|
---|
5878 | else
|
---|
5879 | # Didn't find any BSD compatible name lister, look for dumpbin.
|
---|
5880 | if test -n "$DUMPBIN"; then :
|
---|
5881 | # Let the user override the test.
|
---|
5882 | else
|
---|
5883 | if test -n "$ac_tool_prefix"; then
|
---|
5884 | for ac_prog in dumpbin "link -dump"
|
---|
5885 | do
|
---|
5886 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
5887 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
5888 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
5889 | printf %s "checking for $ac_word... " >&6; }
|
---|
5890 | if test ${ac_cv_prog_DUMPBIN+y}
|
---|
5891 | then :
|
---|
5892 | printf %s "(cached) " >&6
|
---|
5893 | else case e in #(
|
---|
5894 | e) if test -n "$DUMPBIN"; then
|
---|
5895 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
|
---|
5896 | else
|
---|
5897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5898 | for as_dir in $PATH
|
---|
5899 | do
|
---|
5900 | IFS=$as_save_IFS
|
---|
5901 | case $as_dir in #(((
|
---|
5902 | '') as_dir=./ ;;
|
---|
5903 | */) ;;
|
---|
5904 | *) as_dir=$as_dir/ ;;
|
---|
5905 | esac
|
---|
5906 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5907 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
5908 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
|
---|
5909 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
5910 | break 2
|
---|
5911 | fi
|
---|
5912 | done
|
---|
5913 | done
|
---|
5914 | IFS=$as_save_IFS
|
---|
5915 |
|
---|
5916 | fi ;;
|
---|
5917 | esac
|
---|
5918 | fi
|
---|
5919 | DUMPBIN=$ac_cv_prog_DUMPBIN
|
---|
5920 | if test -n "$DUMPBIN"; then
|
---|
5921 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
|
---|
5922 | printf "%s\n" "$DUMPBIN" >&6; }
|
---|
5923 | else
|
---|
5924 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5925 | printf "%s\n" "no" >&6; }
|
---|
5926 | fi
|
---|
5927 |
|
---|
5928 |
|
---|
5929 | test -n "$DUMPBIN" && break
|
---|
5930 | done
|
---|
5931 | fi
|
---|
5932 | if test -z "$DUMPBIN"; then
|
---|
5933 | ac_ct_DUMPBIN=$DUMPBIN
|
---|
5934 | for ac_prog in dumpbin "link -dump"
|
---|
5935 | do
|
---|
5936 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
5937 | set dummy $ac_prog; ac_word=$2
|
---|
5938 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
5939 | printf %s "checking for $ac_word... " >&6; }
|
---|
5940 | if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
|
---|
5941 | then :
|
---|
5942 | printf %s "(cached) " >&6
|
---|
5943 | else case e in #(
|
---|
5944 | e) if test -n "$ac_ct_DUMPBIN"; then
|
---|
5945 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
|
---|
5946 | else
|
---|
5947 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5948 | for as_dir in $PATH
|
---|
5949 | do
|
---|
5950 | IFS=$as_save_IFS
|
---|
5951 | case $as_dir in #(((
|
---|
5952 | '') as_dir=./ ;;
|
---|
5953 | */) ;;
|
---|
5954 | *) as_dir=$as_dir/ ;;
|
---|
5955 | esac
|
---|
5956 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5957 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
5958 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
|
---|
5959 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
5960 | break 2
|
---|
5961 | fi
|
---|
5962 | done
|
---|
5963 | done
|
---|
5964 | IFS=$as_save_IFS
|
---|
5965 |
|
---|
5966 | fi ;;
|
---|
5967 | esac
|
---|
5968 | fi
|
---|
5969 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
|
---|
5970 | if test -n "$ac_ct_DUMPBIN"; then
|
---|
5971 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
|
---|
5972 | printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
|
---|
5973 | else
|
---|
5974 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
5975 | printf "%s\n" "no" >&6; }
|
---|
5976 | fi
|
---|
5977 |
|
---|
5978 |
|
---|
5979 | test -n "$ac_ct_DUMPBIN" && break
|
---|
5980 | done
|
---|
5981 |
|
---|
5982 | if test "x$ac_ct_DUMPBIN" = x; then
|
---|
5983 | DUMPBIN=":"
|
---|
5984 | else
|
---|
5985 | case $cross_compiling:$ac_tool_warned in
|
---|
5986 | yes:)
|
---|
5987 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
5988 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
5989 | ac_tool_warned=yes ;;
|
---|
5990 | esac
|
---|
5991 | DUMPBIN=$ac_ct_DUMPBIN
|
---|
5992 | fi
|
---|
5993 | fi
|
---|
5994 |
|
---|
5995 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
|
---|
5996 | *COFF*)
|
---|
5997 | DUMPBIN="$DUMPBIN -symbols -headers"
|
---|
5998 | ;;
|
---|
5999 | *)
|
---|
6000 | DUMPBIN=:
|
---|
6001 | ;;
|
---|
6002 | esac
|
---|
6003 | fi
|
---|
6004 |
|
---|
6005 | if test : != "$DUMPBIN"; then
|
---|
6006 | NM=$DUMPBIN
|
---|
6007 | fi
|
---|
6008 | fi
|
---|
6009 | test -z "$NM" && NM=nm
|
---|
6010 |
|
---|
6011 |
|
---|
6012 |
|
---|
6013 |
|
---|
6014 |
|
---|
6015 |
|
---|
6016 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
|
---|
6017 | printf %s "checking the name lister ($NM) interface... " >&6; }
|
---|
6018 | if test ${lt_cv_nm_interface+y}
|
---|
6019 | then :
|
---|
6020 | printf %s "(cached) " >&6
|
---|
6021 | else case e in #(
|
---|
6022 | e) lt_cv_nm_interface="BSD nm"
|
---|
6023 | echo "int some_variable = 0;" > conftest.$ac_ext
|
---|
6024 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
|
---|
6025 | (eval "$ac_compile" 2>conftest.err)
|
---|
6026 | cat conftest.err >&5
|
---|
6027 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
|
---|
6028 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
|
---|
6029 | cat conftest.err >&5
|
---|
6030 | (eval echo "\"\$as_me:$LINENO: output\"" >&5)
|
---|
6031 | cat conftest.out >&5
|
---|
6032 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then
|
---|
6033 | lt_cv_nm_interface="MS dumpbin"
|
---|
6034 | fi
|
---|
6035 | rm -f conftest* ;;
|
---|
6036 | esac
|
---|
6037 | fi
|
---|
6038 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
|
---|
6039 | printf "%s\n" "$lt_cv_nm_interface" >&6; }
|
---|
6040 |
|
---|
6041 | # find the maximum length of command line arguments
|
---|
6042 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
|
---|
6043 | printf %s "checking the maximum length of command line arguments... " >&6; }
|
---|
6044 | if test ${lt_cv_sys_max_cmd_len+y}
|
---|
6045 | then :
|
---|
6046 | printf %s "(cached) " >&6
|
---|
6047 | else case e in #(
|
---|
6048 | e) i=0
|
---|
6049 | teststring=ABCD
|
---|
6050 |
|
---|
6051 | case $build_os in
|
---|
6052 | msdosdjgpp*)
|
---|
6053 | # On DJGPP, this test can blow up pretty badly due to problems in libc
|
---|
6054 | # (any single argument exceeding 2000 bytes causes a buffer overrun
|
---|
6055 | # during glob expansion). Even if it were fixed, the result of this
|
---|
6056 | # check would be larger than it should be.
|
---|
6057 | lt_cv_sys_max_cmd_len=12288; # 12K is about right
|
---|
6058 | ;;
|
---|
6059 |
|
---|
6060 | gnu* | ironclad*)
|
---|
6061 | # Under GNU Hurd and Ironclad, this test is not required because there
|
---|
6062 | # is no limit to the length of command line arguments.
|
---|
6063 | # Libtool will interpret -1 as no limit whatsoever
|
---|
6064 | lt_cv_sys_max_cmd_len=-1;
|
---|
6065 | ;;
|
---|
6066 |
|
---|
6067 | cygwin* | mingw* | windows* | cegcc*)
|
---|
6068 | # On Win9x/ME, this test blows up -- it succeeds, but takes
|
---|
6069 | # about 5 minutes as the teststring grows exponentially.
|
---|
6070 | # Worse, since 9x/ME are not pre-emptively multitasking,
|
---|
6071 | # you end up with a "frozen" computer, even though with patience
|
---|
6072 | # the test eventually succeeds (with a max line length of 256k).
|
---|
6073 | # Instead, let's just punt: use the minimum linelength reported by
|
---|
6074 | # all of the supported platforms: 8192 (on NT/2K/XP).
|
---|
6075 | lt_cv_sys_max_cmd_len=8192;
|
---|
6076 | ;;
|
---|
6077 |
|
---|
6078 | mint*)
|
---|
6079 | # On MiNT this can take a long time and run out of memory.
|
---|
6080 | lt_cv_sys_max_cmd_len=8192;
|
---|
6081 | ;;
|
---|
6082 |
|
---|
6083 | amigaos*)
|
---|
6084 | # On AmigaOS with pdksh, this test takes hours, literally.
|
---|
6085 | # So we just punt and use a minimum line length of 8192.
|
---|
6086 | lt_cv_sys_max_cmd_len=8192;
|
---|
6087 | ;;
|
---|
6088 |
|
---|
6089 | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
|
---|
6090 | # This has been around since 386BSD, at least. Likely further.
|
---|
6091 | if test -x /sbin/sysctl; then
|
---|
6092 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
|
---|
6093 | elif test -x /usr/sbin/sysctl; then
|
---|
6094 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
|
---|
6095 | else
|
---|
6096 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
|
---|
6097 | fi
|
---|
6098 | # And add a safety zone
|
---|
6099 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
---|
6100 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
---|
6101 | ;;
|
---|
6102 |
|
---|
6103 | interix*)
|
---|
6104 | # We know the value 262144 and hardcode it with a safety zone (like BSD)
|
---|
6105 | lt_cv_sys_max_cmd_len=196608
|
---|
6106 | ;;
|
---|
6107 |
|
---|
6108 | os2*)
|
---|
6109 | # The test takes a long time on OS/2.
|
---|
6110 | lt_cv_sys_max_cmd_len=8192
|
---|
6111 | ;;
|
---|
6112 |
|
---|
6113 | osf*)
|
---|
6114 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
|
---|
6115 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
|
---|
6116 | # nice to cause kernel panics so lets avoid the loop below.
|
---|
6117 | # First set a reasonable default.
|
---|
6118 | lt_cv_sys_max_cmd_len=16384
|
---|
6119 | #
|
---|
6120 | if test -x /sbin/sysconfig; then
|
---|
6121 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
|
---|
6122 | *1*) lt_cv_sys_max_cmd_len=-1 ;;
|
---|
6123 | esac
|
---|
6124 | fi
|
---|
6125 | ;;
|
---|
6126 | sco3.2v5*)
|
---|
6127 | lt_cv_sys_max_cmd_len=102400
|
---|
6128 | ;;
|
---|
6129 | sysv5* | sco5v6* | sysv4.2uw2*)
|
---|
6130 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
|
---|
6131 | if test -n "$kargmax"; then
|
---|
6132 | lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
|
---|
6133 | else
|
---|
6134 | lt_cv_sys_max_cmd_len=32768
|
---|
6135 | fi
|
---|
6136 | ;;
|
---|
6137 | *)
|
---|
6138 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
|
---|
6139 | if test -n "$lt_cv_sys_max_cmd_len" && \
|
---|
6140 | test undefined != "$lt_cv_sys_max_cmd_len"; then
|
---|
6141 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
---|
6142 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
---|
6143 | else
|
---|
6144 | # Make teststring a little bigger before we do anything with it.
|
---|
6145 | # a 1K string should be a reasonable start.
|
---|
6146 | for i in 1 2 3 4 5 6 7 8; do
|
---|
6147 | teststring=$teststring$teststring
|
---|
6148 | done
|
---|
6149 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
|
---|
6150 | # If test is not a shell built-in, we'll probably end up computing a
|
---|
6151 | # maximum length that is only half of the actual maximum length, but
|
---|
6152 | # we can't tell.
|
---|
6153 | while { test X`env echo "$teststring$teststring" 2>/dev/null` \
|
---|
6154 | = "X$teststring$teststring"; } >/dev/null 2>&1 &&
|
---|
6155 | test 17 != "$i" # 1/2 MB should be enough
|
---|
6156 | do
|
---|
6157 | i=`expr $i + 1`
|
---|
6158 | teststring=$teststring$teststring
|
---|
6159 | done
|
---|
6160 | # Only check the string length outside the loop.
|
---|
6161 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
|
---|
6162 | teststring=
|
---|
6163 | # Add a significant safety factor because C++ compilers can tack on
|
---|
6164 | # massive amounts of additional arguments before passing them to the
|
---|
6165 | # linker. It appears as though 1/2 is a usable value.
|
---|
6166 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
|
---|
6167 | fi
|
---|
6168 | ;;
|
---|
6169 | esac
|
---|
6170 | ;;
|
---|
6171 | esac
|
---|
6172 | fi
|
---|
6173 |
|
---|
6174 | if test -n "$lt_cv_sys_max_cmd_len"; then
|
---|
6175 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
|
---|
6176 | printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
|
---|
6177 | else
|
---|
6178 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
|
---|
6179 | printf "%s\n" "none" >&6; }
|
---|
6180 | fi
|
---|
6181 | max_cmd_len=$lt_cv_sys_max_cmd_len
|
---|
6182 |
|
---|
6183 |
|
---|
6184 |
|
---|
6185 |
|
---|
6186 |
|
---|
6187 |
|
---|
6188 | : ${CP="cp -f"}
|
---|
6189 | : ${MV="mv -f"}
|
---|
6190 | : ${RM="rm -f"}
|
---|
6191 |
|
---|
6192 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
6193 | lt_unset=unset
|
---|
6194 | else
|
---|
6195 | lt_unset=false
|
---|
6196 | fi
|
---|
6197 |
|
---|
6198 |
|
---|
6199 |
|
---|
6200 |
|
---|
6201 |
|
---|
6202 | # test EBCDIC or ASCII
|
---|
6203 | case `echo X|tr X '\101'` in
|
---|
6204 | A) # ASCII based system
|
---|
6205 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
|
---|
6206 | lt_SP2NL='tr \040 \012'
|
---|
6207 | lt_NL2SP='tr \015\012 \040\040'
|
---|
6208 | ;;
|
---|
6209 | *) # EBCDIC based system
|
---|
6210 | lt_SP2NL='tr \100 \n'
|
---|
6211 | lt_NL2SP='tr \r\n \100\100'
|
---|
6212 | ;;
|
---|
6213 | esac
|
---|
6214 |
|
---|
6215 |
|
---|
6216 |
|
---|
6217 |
|
---|
6218 |
|
---|
6219 |
|
---|
6220 |
|
---|
6221 |
|
---|
6222 |
|
---|
6223 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
|
---|
6224 | printf %s "checking how to convert $build file names to $host format... " >&6; }
|
---|
6225 | if test ${lt_cv_to_host_file_cmd+y}
|
---|
6226 | then :
|
---|
6227 | printf %s "(cached) " >&6
|
---|
6228 | else case e in #(
|
---|
6229 | e) case $host in
|
---|
6230 | *-*-mingw* )
|
---|
6231 | case $build in
|
---|
6232 | *-*-mingw* | *-*-windows* ) # actually msys
|
---|
6233 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
|
---|
6234 | ;;
|
---|
6235 | *-*-cygwin* )
|
---|
6236 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
|
---|
6237 | ;;
|
---|
6238 | * ) # otherwise, assume *nix
|
---|
6239 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
|
---|
6240 | ;;
|
---|
6241 | esac
|
---|
6242 | ;;
|
---|
6243 | *-*-cygwin* )
|
---|
6244 | case $build in
|
---|
6245 | *-*-mingw* | *-*-windows* ) # actually msys
|
---|
6246 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
|
---|
6247 | ;;
|
---|
6248 | *-*-cygwin* )
|
---|
6249 | lt_cv_to_host_file_cmd=func_convert_file_noop
|
---|
6250 | ;;
|
---|
6251 | * ) # otherwise, assume *nix
|
---|
6252 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
|
---|
6253 | ;;
|
---|
6254 | esac
|
---|
6255 | ;;
|
---|
6256 | * ) # unhandled hosts (and "normal" native builds)
|
---|
6257 | lt_cv_to_host_file_cmd=func_convert_file_noop
|
---|
6258 | ;;
|
---|
6259 | esac
|
---|
6260 | ;;
|
---|
6261 | esac
|
---|
6262 | fi
|
---|
6263 |
|
---|
6264 | to_host_file_cmd=$lt_cv_to_host_file_cmd
|
---|
6265 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
|
---|
6266 | printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
|
---|
6267 |
|
---|
6268 |
|
---|
6269 |
|
---|
6270 |
|
---|
6271 |
|
---|
6272 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
|
---|
6273 | printf %s "checking how to convert $build file names to toolchain format... " >&6; }
|
---|
6274 | if test ${lt_cv_to_tool_file_cmd+y}
|
---|
6275 | then :
|
---|
6276 | printf %s "(cached) " >&6
|
---|
6277 | else case e in #(
|
---|
6278 | e) #assume ordinary cross tools, or native build.
|
---|
6279 | lt_cv_to_tool_file_cmd=func_convert_file_noop
|
---|
6280 | case $host in
|
---|
6281 | *-*-mingw* | *-*-windows* )
|
---|
6282 | case $build in
|
---|
6283 | *-*-mingw* | *-*-windows* ) # actually msys
|
---|
6284 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
|
---|
6285 | ;;
|
---|
6286 | esac
|
---|
6287 | ;;
|
---|
6288 | esac
|
---|
6289 | ;;
|
---|
6290 | esac
|
---|
6291 | fi
|
---|
6292 |
|
---|
6293 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
---|
6294 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
|
---|
6295 | printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
|
---|
6296 |
|
---|
6297 |
|
---|
6298 |
|
---|
6299 |
|
---|
6300 |
|
---|
6301 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
|
---|
6302 | printf %s "checking for $LD option to reload object files... " >&6; }
|
---|
6303 | if test ${lt_cv_ld_reload_flag+y}
|
---|
6304 | then :
|
---|
6305 | printf %s "(cached) " >&6
|
---|
6306 | else case e in #(
|
---|
6307 | e) lt_cv_ld_reload_flag='-r' ;;
|
---|
6308 | esac
|
---|
6309 | fi
|
---|
6310 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
|
---|
6311 | printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
|
---|
6312 | reload_flag=$lt_cv_ld_reload_flag
|
---|
6313 | case $reload_flag in
|
---|
6314 | "" | " "*) ;;
|
---|
6315 | *) reload_flag=" $reload_flag" ;;
|
---|
6316 | esac
|
---|
6317 | reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
---|
6318 | case $host_os in
|
---|
6319 | cygwin* | mingw* | windows* | pw32* | cegcc*)
|
---|
6320 | if test yes != "$GCC"; then
|
---|
6321 | reload_cmds=false
|
---|
6322 | fi
|
---|
6323 | ;;
|
---|
6324 | darwin*)
|
---|
6325 | if test yes = "$GCC"; then
|
---|
6326 | reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
|
---|
6327 | else
|
---|
6328 | reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
---|
6329 | fi
|
---|
6330 | ;;
|
---|
6331 | esac
|
---|
6332 |
|
---|
6333 |
|
---|
6334 |
|
---|
6335 |
|
---|
6336 |
|
---|
6337 |
|
---|
6338 |
|
---|
6339 |
|
---|
6340 |
|
---|
6341 | # Extract the first word of "file", so it can be a program name with args.
|
---|
6342 | set dummy file; ac_word=$2
|
---|
6343 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
6344 | printf %s "checking for $ac_word... " >&6; }
|
---|
6345 | if test ${ac_cv_prog_FILECMD+y}
|
---|
6346 | then :
|
---|
6347 | printf %s "(cached) " >&6
|
---|
6348 | else case e in #(
|
---|
6349 | e) if test -n "$FILECMD"; then
|
---|
6350 | ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
|
---|
6351 | else
|
---|
6352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6353 | for as_dir in $PATH
|
---|
6354 | do
|
---|
6355 | IFS=$as_save_IFS
|
---|
6356 | case $as_dir in #(((
|
---|
6357 | '') as_dir=./ ;;
|
---|
6358 | */) ;;
|
---|
6359 | *) as_dir=$as_dir/ ;;
|
---|
6360 | esac
|
---|
6361 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6362 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
6363 | ac_cv_prog_FILECMD="file"
|
---|
6364 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
6365 | break 2
|
---|
6366 | fi
|
---|
6367 | done
|
---|
6368 | done
|
---|
6369 | IFS=$as_save_IFS
|
---|
6370 |
|
---|
6371 | test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
|
---|
6372 | fi ;;
|
---|
6373 | esac
|
---|
6374 | fi
|
---|
6375 | FILECMD=$ac_cv_prog_FILECMD
|
---|
6376 | if test -n "$FILECMD"; then
|
---|
6377 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
|
---|
6378 | printf "%s\n" "$FILECMD" >&6; }
|
---|
6379 | else
|
---|
6380 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6381 | printf "%s\n" "no" >&6; }
|
---|
6382 | fi
|
---|
6383 |
|
---|
6384 |
|
---|
6385 |
|
---|
6386 |
|
---|
6387 |
|
---|
6388 |
|
---|
6389 |
|
---|
6390 |
|
---|
6391 | if test -n "$ac_tool_prefix"; then
|
---|
6392 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
|
---|
6393 | set dummy ${ac_tool_prefix}objdump; ac_word=$2
|
---|
6394 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
6395 | printf %s "checking for $ac_word... " >&6; }
|
---|
6396 | if test ${ac_cv_prog_OBJDUMP+y}
|
---|
6397 | then :
|
---|
6398 | printf %s "(cached) " >&6
|
---|
6399 | else case e in #(
|
---|
6400 | e) if test -n "$OBJDUMP"; then
|
---|
6401 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
|
---|
6402 | else
|
---|
6403 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6404 | for as_dir in $PATH
|
---|
6405 | do
|
---|
6406 | IFS=$as_save_IFS
|
---|
6407 | case $as_dir in #(((
|
---|
6408 | '') as_dir=./ ;;
|
---|
6409 | */) ;;
|
---|
6410 | *) as_dir=$as_dir/ ;;
|
---|
6411 | esac
|
---|
6412 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6413 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
6414 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
|
---|
6415 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
6416 | break 2
|
---|
6417 | fi
|
---|
6418 | done
|
---|
6419 | done
|
---|
6420 | IFS=$as_save_IFS
|
---|
6421 |
|
---|
6422 | fi ;;
|
---|
6423 | esac
|
---|
6424 | fi
|
---|
6425 | OBJDUMP=$ac_cv_prog_OBJDUMP
|
---|
6426 | if test -n "$OBJDUMP"; then
|
---|
6427 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
|
---|
6428 | printf "%s\n" "$OBJDUMP" >&6; }
|
---|
6429 | else
|
---|
6430 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6431 | printf "%s\n" "no" >&6; }
|
---|
6432 | fi
|
---|
6433 |
|
---|
6434 |
|
---|
6435 | fi
|
---|
6436 | if test -z "$ac_cv_prog_OBJDUMP"; then
|
---|
6437 | ac_ct_OBJDUMP=$OBJDUMP
|
---|
6438 | # Extract the first word of "objdump", so it can be a program name with args.
|
---|
6439 | set dummy objdump; ac_word=$2
|
---|
6440 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
6441 | printf %s "checking for $ac_word... " >&6; }
|
---|
6442 | if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
|
---|
6443 | then :
|
---|
6444 | printf %s "(cached) " >&6
|
---|
6445 | else case e in #(
|
---|
6446 | e) if test -n "$ac_ct_OBJDUMP"; then
|
---|
6447 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
|
---|
6448 | else
|
---|
6449 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6450 | for as_dir in $PATH
|
---|
6451 | do
|
---|
6452 | IFS=$as_save_IFS
|
---|
6453 | case $as_dir in #(((
|
---|
6454 | '') as_dir=./ ;;
|
---|
6455 | */) ;;
|
---|
6456 | *) as_dir=$as_dir/ ;;
|
---|
6457 | esac
|
---|
6458 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6459 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
6460 | ac_cv_prog_ac_ct_OBJDUMP="objdump"
|
---|
6461 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
6462 | break 2
|
---|
6463 | fi
|
---|
6464 | done
|
---|
6465 | done
|
---|
6466 | IFS=$as_save_IFS
|
---|
6467 |
|
---|
6468 | fi ;;
|
---|
6469 | esac
|
---|
6470 | fi
|
---|
6471 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
|
---|
6472 | if test -n "$ac_ct_OBJDUMP"; then
|
---|
6473 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
|
---|
6474 | printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
|
---|
6475 | else
|
---|
6476 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6477 | printf "%s\n" "no" >&6; }
|
---|
6478 | fi
|
---|
6479 |
|
---|
6480 | if test "x$ac_ct_OBJDUMP" = x; then
|
---|
6481 | OBJDUMP="false"
|
---|
6482 | else
|
---|
6483 | case $cross_compiling:$ac_tool_warned in
|
---|
6484 | yes:)
|
---|
6485 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
6486 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
6487 | ac_tool_warned=yes ;;
|
---|
6488 | esac
|
---|
6489 | OBJDUMP=$ac_ct_OBJDUMP
|
---|
6490 | fi
|
---|
6491 | else
|
---|
6492 | OBJDUMP="$ac_cv_prog_OBJDUMP"
|
---|
6493 | fi
|
---|
6494 |
|
---|
6495 | test -z "$OBJDUMP" && OBJDUMP=objdump
|
---|
6496 |
|
---|
6497 |
|
---|
6498 |
|
---|
6499 |
|
---|
6500 |
|
---|
6501 |
|
---|
6502 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
|
---|
6503 | printf %s "checking how to recognize dependent libraries... " >&6; }
|
---|
6504 | if test ${lt_cv_deplibs_check_method+y}
|
---|
6505 | then :
|
---|
6506 | printf %s "(cached) " >&6
|
---|
6507 | else case e in #(
|
---|
6508 | e) lt_cv_file_magic_cmd='$MAGIC_CMD'
|
---|
6509 | lt_cv_file_magic_test_file=
|
---|
6510 | lt_cv_deplibs_check_method='unknown'
|
---|
6511 | # Need to set the preceding variable on all platforms that support
|
---|
6512 | # interlibrary dependencies.
|
---|
6513 | # 'none' -- dependencies not supported.
|
---|
6514 | # 'unknown' -- same as none, but documents that we really don't know.
|
---|
6515 | # 'pass_all' -- all dependencies passed with no checks.
|
---|
6516 | # 'file_magic [[regex]]' -- check by looking for files in library path
|
---|
6517 | # that responds to the $file_magic_cmd with a given extended regex.
|
---|
6518 | # If you have 'file' or equivalent on your system and you're not sure
|
---|
6519 | # whether 'pass_all' will *always* work, you probably want this one.
|
---|
6520 |
|
---|
6521 | case $host_os in
|
---|
6522 | aix[4-9]*)
|
---|
6523 | lt_cv_deplibs_check_method=pass_all
|
---|
6524 | ;;
|
---|
6525 |
|
---|
6526 | beos*)
|
---|
6527 | lt_cv_deplibs_check_method=pass_all
|
---|
6528 | ;;
|
---|
6529 |
|
---|
6530 | bsdi[45]*)
|
---|
6531 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
---|
6532 | lt_cv_file_magic_cmd='$FILECMD -L'
|
---|
6533 | lt_cv_file_magic_test_file=/shlib/libc.so
|
---|
6534 | ;;
|
---|
6535 |
|
---|
6536 | cygwin*)
|
---|
6537 | # func_win32_libid is a shell function defined in ltmain.sh
|
---|
6538 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
---|
6539 | lt_cv_file_magic_cmd='func_win32_libid'
|
---|
6540 | ;;
|
---|
6541 |
|
---|
6542 | mingw* | windows* | pw32*)
|
---|
6543 | # Base MSYS/MinGW do not provide the 'file' command needed by
|
---|
6544 | # func_win32_libid shell function, so use a weaker test based on 'objdump',
|
---|
6545 | # unless we find 'file', for example because we are cross-compiling.
|
---|
6546 | if ( file / ) >/dev/null 2>&1; then
|
---|
6547 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
---|
6548 | lt_cv_file_magic_cmd='func_win32_libid'
|
---|
6549 | else
|
---|
6550 | # Keep this pattern in sync with the one in func_win32_libid.
|
---|
6551 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
|
---|
6552 | lt_cv_file_magic_cmd='$OBJDUMP -f'
|
---|
6553 | fi
|
---|
6554 | ;;
|
---|
6555 |
|
---|
6556 | cegcc*)
|
---|
6557 | # use the weaker test based on 'objdump'. See mingw*.
|
---|
6558 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
|
---|
6559 | lt_cv_file_magic_cmd='$OBJDUMP -f'
|
---|
6560 | ;;
|
---|
6561 |
|
---|
6562 | darwin* | rhapsody*)
|
---|
6563 | lt_cv_deplibs_check_method=pass_all
|
---|
6564 | ;;
|
---|
6565 |
|
---|
6566 | freebsd* | dragonfly* | midnightbsd*)
|
---|
6567 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
|
---|
6568 | case $host_cpu in
|
---|
6569 | i*86 )
|
---|
6570 | # Not sure whether the presence of OpenBSD here was a mistake.
|
---|
6571 | # Let's accept both of them until this is cleared up.
|
---|
6572 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
|
---|
6573 | lt_cv_file_magic_cmd=$FILECMD
|
---|
6574 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
---|
6575 | ;;
|
---|
6576 | esac
|
---|
6577 | else
|
---|
6578 | lt_cv_deplibs_check_method=pass_all
|
---|
6579 | fi
|
---|
6580 | ;;
|
---|
6581 |
|
---|
6582 | haiku*)
|
---|
6583 | lt_cv_deplibs_check_method=pass_all
|
---|
6584 | ;;
|
---|
6585 |
|
---|
6586 | hpux10.20* | hpux11*)
|
---|
6587 | lt_cv_file_magic_cmd=$FILECMD
|
---|
6588 | case $host_cpu in
|
---|
6589 | ia64*)
|
---|
6590 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
|
---|
6591 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
---|
6592 | ;;
|
---|
6593 | hppa*64*)
|
---|
6594 | 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]'
|
---|
6595 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
|
---|
6596 | ;;
|
---|
6597 | *)
|
---|
6598 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
|
---|
6599 | lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
---|
6600 | ;;
|
---|
6601 | esac
|
---|
6602 | ;;
|
---|
6603 |
|
---|
6604 | interix[3-9]*)
|
---|
6605 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
|
---|
6606 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
|
---|
6607 | ;;
|
---|
6608 |
|
---|
6609 | irix5* | irix6* | nonstopux*)
|
---|
6610 | case $LD in
|
---|
6611 | *-32|*"-32 ") libmagic=32-bit;;
|
---|
6612 | *-n32|*"-n32 ") libmagic=N32;;
|
---|
6613 | *-64|*"-64 ") libmagic=64-bit;;
|
---|
6614 | *) libmagic=never-match;;
|
---|
6615 | esac
|
---|
6616 | lt_cv_deplibs_check_method=pass_all
|
---|
6617 | ;;
|
---|
6618 |
|
---|
6619 | # This must be glibc/ELF.
|
---|
6620 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
|
---|
6621 | lt_cv_deplibs_check_method=pass_all
|
---|
6622 | ;;
|
---|
6623 |
|
---|
6624 | *-mlibc)
|
---|
6625 | lt_cv_deplibs_check_method=pass_all
|
---|
6626 | ;;
|
---|
6627 |
|
---|
6628 | netbsd* | netbsdelf*-gnu)
|
---|
6629 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
|
---|
6630 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
|
---|
6631 | else
|
---|
6632 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
|
---|
6633 | fi
|
---|
6634 | ;;
|
---|
6635 |
|
---|
6636 | newos6*)
|
---|
6637 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
|
---|
6638 | lt_cv_file_magic_cmd=$FILECMD
|
---|
6639 | lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
---|
6640 | ;;
|
---|
6641 |
|
---|
6642 | *nto* | *qnx*)
|
---|
6643 | lt_cv_deplibs_check_method=pass_all
|
---|
6644 | ;;
|
---|
6645 |
|
---|
6646 | openbsd*)
|
---|
6647 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
|
---|
6648 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
|
---|
6649 | else
|
---|
6650 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
|
---|
6651 | fi
|
---|
6652 | ;;
|
---|
6653 |
|
---|
6654 | osf3* | osf4* | osf5*)
|
---|
6655 | lt_cv_deplibs_check_method=pass_all
|
---|
6656 | ;;
|
---|
6657 |
|
---|
6658 | rdos*)
|
---|
6659 | lt_cv_deplibs_check_method=pass_all
|
---|
6660 | ;;
|
---|
6661 |
|
---|
6662 | serenity*)
|
---|
6663 | lt_cv_deplibs_check_method=pass_all
|
---|
6664 | ;;
|
---|
6665 |
|
---|
6666 | solaris*)
|
---|
6667 | lt_cv_deplibs_check_method=pass_all
|
---|
6668 | ;;
|
---|
6669 |
|
---|
6670 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
---|
6671 | lt_cv_deplibs_check_method=pass_all
|
---|
6672 | ;;
|
---|
6673 |
|
---|
6674 | sysv4 | sysv4.3*)
|
---|
6675 | case $host_vendor in
|
---|
6676 | motorola)
|
---|
6677 | 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]'
|
---|
6678 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
---|
6679 | ;;
|
---|
6680 | ncr)
|
---|
6681 | lt_cv_deplibs_check_method=pass_all
|
---|
6682 | ;;
|
---|
6683 | sequent)
|
---|
6684 | lt_cv_file_magic_cmd='/bin/file'
|
---|
6685 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
|
---|
6686 | ;;
|
---|
6687 | sni)
|
---|
6688 | lt_cv_file_magic_cmd='/bin/file'
|
---|
6689 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
|
---|
6690 | lt_cv_file_magic_test_file=/lib/libc.so
|
---|
6691 | ;;
|
---|
6692 | siemens)
|
---|
6693 | lt_cv_deplibs_check_method=pass_all
|
---|
6694 | ;;
|
---|
6695 | pc)
|
---|
6696 | lt_cv_deplibs_check_method=pass_all
|
---|
6697 | ;;
|
---|
6698 | esac
|
---|
6699 | ;;
|
---|
6700 |
|
---|
6701 | tpf*)
|
---|
6702 | lt_cv_deplibs_check_method=pass_all
|
---|
6703 | ;;
|
---|
6704 | os2*)
|
---|
6705 | lt_cv_deplibs_check_method=pass_all
|
---|
6706 | ;;
|
---|
6707 | esac
|
---|
6708 | ;;
|
---|
6709 | esac
|
---|
6710 | fi
|
---|
6711 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
|
---|
6712 | printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
|
---|
6713 |
|
---|
6714 | file_magic_glob=
|
---|
6715 | want_nocaseglob=no
|
---|
6716 | if test "$build" = "$host"; then
|
---|
6717 | case $host_os in
|
---|
6718 | mingw* | windows* | pw32*)
|
---|
6719 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
|
---|
6720 | want_nocaseglob=yes
|
---|
6721 | else
|
---|
6722 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
|
---|
6723 | fi
|
---|
6724 | ;;
|
---|
6725 | esac
|
---|
6726 | fi
|
---|
6727 |
|
---|
6728 | file_magic_cmd=$lt_cv_file_magic_cmd
|
---|
6729 | deplibs_check_method=$lt_cv_deplibs_check_method
|
---|
6730 | test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
---|
6731 |
|
---|
6732 |
|
---|
6733 |
|
---|
6734 |
|
---|
6735 |
|
---|
6736 |
|
---|
6737 |
|
---|
6738 |
|
---|
6739 |
|
---|
6740 |
|
---|
6741 |
|
---|
6742 |
|
---|
6743 |
|
---|
6744 |
|
---|
6745 |
|
---|
6746 |
|
---|
6747 |
|
---|
6748 |
|
---|
6749 |
|
---|
6750 |
|
---|
6751 |
|
---|
6752 |
|
---|
6753 | if test -n "$ac_tool_prefix"; then
|
---|
6754 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
|
---|
6755 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2
|
---|
6756 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
6757 | printf %s "checking for $ac_word... " >&6; }
|
---|
6758 | if test ${ac_cv_prog_DLLTOOL+y}
|
---|
6759 | then :
|
---|
6760 | printf %s "(cached) " >&6
|
---|
6761 | else case e in #(
|
---|
6762 | e) if test -n "$DLLTOOL"; then
|
---|
6763 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
|
---|
6764 | else
|
---|
6765 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6766 | for as_dir in $PATH
|
---|
6767 | do
|
---|
6768 | IFS=$as_save_IFS
|
---|
6769 | case $as_dir in #(((
|
---|
6770 | '') as_dir=./ ;;
|
---|
6771 | */) ;;
|
---|
6772 | *) as_dir=$as_dir/ ;;
|
---|
6773 | esac
|
---|
6774 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6775 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
6776 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
|
---|
6777 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
6778 | break 2
|
---|
6779 | fi
|
---|
6780 | done
|
---|
6781 | done
|
---|
6782 | IFS=$as_save_IFS
|
---|
6783 |
|
---|
6784 | fi ;;
|
---|
6785 | esac
|
---|
6786 | fi
|
---|
6787 | DLLTOOL=$ac_cv_prog_DLLTOOL
|
---|
6788 | if test -n "$DLLTOOL"; then
|
---|
6789 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
|
---|
6790 | printf "%s\n" "$DLLTOOL" >&6; }
|
---|
6791 | else
|
---|
6792 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6793 | printf "%s\n" "no" >&6; }
|
---|
6794 | fi
|
---|
6795 |
|
---|
6796 |
|
---|
6797 | fi
|
---|
6798 | if test -z "$ac_cv_prog_DLLTOOL"; then
|
---|
6799 | ac_ct_DLLTOOL=$DLLTOOL
|
---|
6800 | # Extract the first word of "dlltool", so it can be a program name with args.
|
---|
6801 | set dummy dlltool; ac_word=$2
|
---|
6802 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
6803 | printf %s "checking for $ac_word... " >&6; }
|
---|
6804 | if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
|
---|
6805 | then :
|
---|
6806 | printf %s "(cached) " >&6
|
---|
6807 | else case e in #(
|
---|
6808 | e) if test -n "$ac_ct_DLLTOOL"; then
|
---|
6809 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
|
---|
6810 | else
|
---|
6811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6812 | for as_dir in $PATH
|
---|
6813 | do
|
---|
6814 | IFS=$as_save_IFS
|
---|
6815 | case $as_dir in #(((
|
---|
6816 | '') as_dir=./ ;;
|
---|
6817 | */) ;;
|
---|
6818 | *) as_dir=$as_dir/ ;;
|
---|
6819 | esac
|
---|
6820 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6821 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
6822 | ac_cv_prog_ac_ct_DLLTOOL="dlltool"
|
---|
6823 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
6824 | break 2
|
---|
6825 | fi
|
---|
6826 | done
|
---|
6827 | done
|
---|
6828 | IFS=$as_save_IFS
|
---|
6829 |
|
---|
6830 | fi ;;
|
---|
6831 | esac
|
---|
6832 | fi
|
---|
6833 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
|
---|
6834 | if test -n "$ac_ct_DLLTOOL"; then
|
---|
6835 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
|
---|
6836 | printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
|
---|
6837 | else
|
---|
6838 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6839 | printf "%s\n" "no" >&6; }
|
---|
6840 | fi
|
---|
6841 |
|
---|
6842 | if test "x$ac_ct_DLLTOOL" = x; then
|
---|
6843 | DLLTOOL="false"
|
---|
6844 | else
|
---|
6845 | case $cross_compiling:$ac_tool_warned in
|
---|
6846 | yes:)
|
---|
6847 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
6848 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
6849 | ac_tool_warned=yes ;;
|
---|
6850 | esac
|
---|
6851 | DLLTOOL=$ac_ct_DLLTOOL
|
---|
6852 | fi
|
---|
6853 | else
|
---|
6854 | DLLTOOL="$ac_cv_prog_DLLTOOL"
|
---|
6855 | fi
|
---|
6856 |
|
---|
6857 | test -z "$DLLTOOL" && DLLTOOL=dlltool
|
---|
6858 |
|
---|
6859 |
|
---|
6860 |
|
---|
6861 |
|
---|
6862 |
|
---|
6863 |
|
---|
6864 |
|
---|
6865 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
|
---|
6866 | printf %s "checking how to associate runtime and link libraries... " >&6; }
|
---|
6867 | if test ${lt_cv_sharedlib_from_linklib_cmd+y}
|
---|
6868 | then :
|
---|
6869 | printf %s "(cached) " >&6
|
---|
6870 | else case e in #(
|
---|
6871 | e) lt_cv_sharedlib_from_linklib_cmd='unknown'
|
---|
6872 |
|
---|
6873 | case $host_os in
|
---|
6874 | cygwin* | mingw* | windows* | pw32* | cegcc*)
|
---|
6875 | # two different shell functions defined in ltmain.sh;
|
---|
6876 | # decide which one to use based on capabilities of $DLLTOOL
|
---|
6877 | case `$DLLTOOL --help 2>&1` in
|
---|
6878 | *--identify-strict*)
|
---|
6879 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
|
---|
6880 | ;;
|
---|
6881 | *)
|
---|
6882 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
|
---|
6883 | ;;
|
---|
6884 | esac
|
---|
6885 | ;;
|
---|
6886 | *)
|
---|
6887 | # fallback: assume linklib IS sharedlib
|
---|
6888 | lt_cv_sharedlib_from_linklib_cmd=$ECHO
|
---|
6889 | ;;
|
---|
6890 | esac
|
---|
6891 | ;;
|
---|
6892 | esac
|
---|
6893 | fi
|
---|
6894 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
|
---|
6895 | printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
|
---|
6896 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
|
---|
6897 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
|
---|
6898 |
|
---|
6899 |
|
---|
6900 |
|
---|
6901 |
|
---|
6902 |
|
---|
6903 |
|
---|
6904 |
|
---|
6905 |
|
---|
6906 | if test -n "$ac_tool_prefix"; then
|
---|
6907 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
6908 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
6909 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
6910 | printf %s "checking for $ac_word... " >&6; }
|
---|
6911 | if test ${ac_cv_prog_RANLIB+y}
|
---|
6912 | then :
|
---|
6913 | printf %s "(cached) " >&6
|
---|
6914 | else case e in #(
|
---|
6915 | e) if test -n "$RANLIB"; then
|
---|
6916 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
6917 | else
|
---|
6918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6919 | for as_dir in $PATH
|
---|
6920 | do
|
---|
6921 | IFS=$as_save_IFS
|
---|
6922 | case $as_dir in #(((
|
---|
6923 | '') as_dir=./ ;;
|
---|
6924 | */) ;;
|
---|
6925 | *) as_dir=$as_dir/ ;;
|
---|
6926 | esac
|
---|
6927 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6928 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
6929 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
6930 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
6931 | break 2
|
---|
6932 | fi
|
---|
6933 | done
|
---|
6934 | done
|
---|
6935 | IFS=$as_save_IFS
|
---|
6936 |
|
---|
6937 | fi ;;
|
---|
6938 | esac
|
---|
6939 | fi
|
---|
6940 | RANLIB=$ac_cv_prog_RANLIB
|
---|
6941 | if test -n "$RANLIB"; then
|
---|
6942 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
|
---|
6943 | printf "%s\n" "$RANLIB" >&6; }
|
---|
6944 | else
|
---|
6945 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6946 | printf "%s\n" "no" >&6; }
|
---|
6947 | fi
|
---|
6948 |
|
---|
6949 |
|
---|
6950 | fi
|
---|
6951 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
6952 | ac_ct_RANLIB=$RANLIB
|
---|
6953 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
6954 | set dummy ranlib; ac_word=$2
|
---|
6955 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
6956 | printf %s "checking for $ac_word... " >&6; }
|
---|
6957 | if test ${ac_cv_prog_ac_ct_RANLIB+y}
|
---|
6958 | then :
|
---|
6959 | printf %s "(cached) " >&6
|
---|
6960 | else case e in #(
|
---|
6961 | e) if test -n "$ac_ct_RANLIB"; then
|
---|
6962 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
6963 | else
|
---|
6964 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6965 | for as_dir in $PATH
|
---|
6966 | do
|
---|
6967 | IFS=$as_save_IFS
|
---|
6968 | case $as_dir in #(((
|
---|
6969 | '') as_dir=./ ;;
|
---|
6970 | */) ;;
|
---|
6971 | *) as_dir=$as_dir/ ;;
|
---|
6972 | esac
|
---|
6973 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6974 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
6975 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
6976 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
6977 | break 2
|
---|
6978 | fi
|
---|
6979 | done
|
---|
6980 | done
|
---|
6981 | IFS=$as_save_IFS
|
---|
6982 |
|
---|
6983 | fi ;;
|
---|
6984 | esac
|
---|
6985 | fi
|
---|
6986 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
6987 | if test -n "$ac_ct_RANLIB"; then
|
---|
6988 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
|
---|
6989 | printf "%s\n" "$ac_ct_RANLIB" >&6; }
|
---|
6990 | else
|
---|
6991 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
6992 | printf "%s\n" "no" >&6; }
|
---|
6993 | fi
|
---|
6994 |
|
---|
6995 | if test "x$ac_ct_RANLIB" = x; then
|
---|
6996 | RANLIB=":"
|
---|
6997 | else
|
---|
6998 | case $cross_compiling:$ac_tool_warned in
|
---|
6999 | yes:)
|
---|
7000 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
7001 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
7002 | ac_tool_warned=yes ;;
|
---|
7003 | esac
|
---|
7004 | RANLIB=$ac_ct_RANLIB
|
---|
7005 | fi
|
---|
7006 | else
|
---|
7007 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
7008 | fi
|
---|
7009 |
|
---|
7010 | if test -n "$ac_tool_prefix"; then
|
---|
7011 | for ac_prog in ar
|
---|
7012 | do
|
---|
7013 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
7014 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
7015 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
7016 | printf %s "checking for $ac_word... " >&6; }
|
---|
7017 | if test ${ac_cv_prog_AR+y}
|
---|
7018 | then :
|
---|
7019 | printf %s "(cached) " >&6
|
---|
7020 | else case e in #(
|
---|
7021 | e) if test -n "$AR"; then
|
---|
7022 | ac_cv_prog_AR="$AR" # Let the user override the test.
|
---|
7023 | else
|
---|
7024 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7025 | for as_dir in $PATH
|
---|
7026 | do
|
---|
7027 | IFS=$as_save_IFS
|
---|
7028 | case $as_dir in #(((
|
---|
7029 | '') as_dir=./ ;;
|
---|
7030 | */) ;;
|
---|
7031 | *) as_dir=$as_dir/ ;;
|
---|
7032 | esac
|
---|
7033 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
7034 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
7035 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
|
---|
7036 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
7037 | break 2
|
---|
7038 | fi
|
---|
7039 | done
|
---|
7040 | done
|
---|
7041 | IFS=$as_save_IFS
|
---|
7042 |
|
---|
7043 | fi ;;
|
---|
7044 | esac
|
---|
7045 | fi
|
---|
7046 | AR=$ac_cv_prog_AR
|
---|
7047 | if test -n "$AR"; then
|
---|
7048 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
|
---|
7049 | printf "%s\n" "$AR" >&6; }
|
---|
7050 | else
|
---|
7051 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
7052 | printf "%s\n" "no" >&6; }
|
---|
7053 | fi
|
---|
7054 |
|
---|
7055 |
|
---|
7056 | test -n "$AR" && break
|
---|
7057 | done
|
---|
7058 | fi
|
---|
7059 | if test -z "$AR"; then
|
---|
7060 | ac_ct_AR=$AR
|
---|
7061 | for ac_prog in ar
|
---|
7062 | do
|
---|
7063 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
7064 | set dummy $ac_prog; ac_word=$2
|
---|
7065 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
7066 | printf %s "checking for $ac_word... " >&6; }
|
---|
7067 | if test ${ac_cv_prog_ac_ct_AR+y}
|
---|
7068 | then :
|
---|
7069 | printf %s "(cached) " >&6
|
---|
7070 | else case e in #(
|
---|
7071 | e) if test -n "$ac_ct_AR"; then
|
---|
7072 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
|
---|
7073 | else
|
---|
7074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7075 | for as_dir in $PATH
|
---|
7076 | do
|
---|
7077 | IFS=$as_save_IFS
|
---|
7078 | case $as_dir in #(((
|
---|
7079 | '') as_dir=./ ;;
|
---|
7080 | */) ;;
|
---|
7081 | *) as_dir=$as_dir/ ;;
|
---|
7082 | esac
|
---|
7083 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
7084 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
7085 | ac_cv_prog_ac_ct_AR="$ac_prog"
|
---|
7086 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
7087 | break 2
|
---|
7088 | fi
|
---|
7089 | done
|
---|
7090 | done
|
---|
7091 | IFS=$as_save_IFS
|
---|
7092 |
|
---|
7093 | fi ;;
|
---|
7094 | esac
|
---|
7095 | fi
|
---|
7096 | ac_ct_AR=$ac_cv_prog_ac_ct_AR
|
---|
7097 | if test -n "$ac_ct_AR"; then
|
---|
7098 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
|
---|
7099 | printf "%s\n" "$ac_ct_AR" >&6; }
|
---|
7100 | else
|
---|
7101 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
7102 | printf "%s\n" "no" >&6; }
|
---|
7103 | fi
|
---|
7104 |
|
---|
7105 |
|
---|
7106 | test -n "$ac_ct_AR" && break
|
---|
7107 | done
|
---|
7108 |
|
---|
7109 | if test "x$ac_ct_AR" = x; then
|
---|
7110 | AR="false"
|
---|
7111 | else
|
---|
7112 | case $cross_compiling:$ac_tool_warned in
|
---|
7113 | yes:)
|
---|
7114 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
7115 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
7116 | ac_tool_warned=yes ;;
|
---|
7117 | esac
|
---|
7118 | AR=$ac_ct_AR
|
---|
7119 | fi
|
---|
7120 | fi
|
---|
7121 |
|
---|
7122 | : ${AR=ar}
|
---|
7123 |
|
---|
7124 |
|
---|
7125 |
|
---|
7126 |
|
---|
7127 |
|
---|
7128 |
|
---|
7129 | # Use ARFLAGS variable as AR's operation code to sync the variable naming with
|
---|
7130 | # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
|
---|
7131 | # higher priority because that's what people were doing historically (setting
|
---|
7132 | # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
|
---|
7133 | # variable obsoleted/removed.
|
---|
7134 |
|
---|
7135 | test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
|
---|
7136 | lt_ar_flags=$AR_FLAGS
|
---|
7137 |
|
---|
7138 |
|
---|
7139 |
|
---|
7140 |
|
---|
7141 |
|
---|
7142 |
|
---|
7143 | # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
|
---|
7144 | # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
|
---|
7145 |
|
---|
7146 |
|
---|
7147 |
|
---|
7148 |
|
---|
7149 |
|
---|
7150 |
|
---|
7151 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
|
---|
7152 | printf %s "checking for archiver @FILE support... " >&6; }
|
---|
7153 | if test ${lt_cv_ar_at_file+y}
|
---|
7154 | then :
|
---|
7155 | printf %s "(cached) " >&6
|
---|
7156 | else case e in #(
|
---|
7157 | e) lt_cv_ar_at_file=no
|
---|
7158 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
7159 | /* end confdefs.h. */
|
---|
7160 |
|
---|
7161 | int
|
---|
7162 | main (void)
|
---|
7163 | {
|
---|
7164 |
|
---|
7165 | ;
|
---|
7166 | return 0;
|
---|
7167 | }
|
---|
7168 | _ACEOF
|
---|
7169 | if ac_fn_c_try_compile "$LINENO"
|
---|
7170 | then :
|
---|
7171 | echo conftest.$ac_objext > conftest.lst
|
---|
7172 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
|
---|
7173 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
---|
7174 | (eval $lt_ar_try) 2>&5
|
---|
7175 | ac_status=$?
|
---|
7176 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
7177 | test $ac_status = 0; }
|
---|
7178 | if test 0 -eq "$ac_status"; then
|
---|
7179 | # Ensure the archiver fails upon bogus file names.
|
---|
7180 | rm -f conftest.$ac_objext libconftest.a
|
---|
7181 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
---|
7182 | (eval $lt_ar_try) 2>&5
|
---|
7183 | ac_status=$?
|
---|
7184 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
7185 | test $ac_status = 0; }
|
---|
7186 | if test 0 -ne "$ac_status"; then
|
---|
7187 | lt_cv_ar_at_file=@
|
---|
7188 | fi
|
---|
7189 | fi
|
---|
7190 | rm -f conftest.* libconftest.a
|
---|
7191 |
|
---|
7192 | fi
|
---|
7193 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
7194 | ;;
|
---|
7195 | esac
|
---|
7196 | fi
|
---|
7197 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
|
---|
7198 | printf "%s\n" "$lt_cv_ar_at_file" >&6; }
|
---|
7199 |
|
---|
7200 | if test no = "$lt_cv_ar_at_file"; then
|
---|
7201 | archiver_list_spec=
|
---|
7202 | else
|
---|
7203 | archiver_list_spec=$lt_cv_ar_at_file
|
---|
7204 | fi
|
---|
7205 |
|
---|
7206 |
|
---|
7207 |
|
---|
7208 |
|
---|
7209 |
|
---|
7210 |
|
---|
7211 |
|
---|
7212 | if test -n "$ac_tool_prefix"; then
|
---|
7213 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
---|
7214 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
---|
7215 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
7216 | printf %s "checking for $ac_word... " >&6; }
|
---|
7217 | if test ${ac_cv_prog_STRIP+y}
|
---|
7218 | then :
|
---|
7219 | printf %s "(cached) " >&6
|
---|
7220 | else case e in #(
|
---|
7221 | e) if test -n "$STRIP"; then
|
---|
7222 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
7223 | else
|
---|
7224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7225 | for as_dir in $PATH
|
---|
7226 | do
|
---|
7227 | IFS=$as_save_IFS
|
---|
7228 | case $as_dir in #(((
|
---|
7229 | '') as_dir=./ ;;
|
---|
7230 | */) ;;
|
---|
7231 | *) as_dir=$as_dir/ ;;
|
---|
7232 | esac
|
---|
7233 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
7234 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
7235 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
---|
7236 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
7237 | break 2
|
---|
7238 | fi
|
---|
7239 | done
|
---|
7240 | done
|
---|
7241 | IFS=$as_save_IFS
|
---|
7242 |
|
---|
7243 | fi ;;
|
---|
7244 | esac
|
---|
7245 | fi
|
---|
7246 | STRIP=$ac_cv_prog_STRIP
|
---|
7247 | if test -n "$STRIP"; then
|
---|
7248 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
|
---|
7249 | printf "%s\n" "$STRIP" >&6; }
|
---|
7250 | else
|
---|
7251 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
7252 | printf "%s\n" "no" >&6; }
|
---|
7253 | fi
|
---|
7254 |
|
---|
7255 |
|
---|
7256 | fi
|
---|
7257 | if test -z "$ac_cv_prog_STRIP"; then
|
---|
7258 | ac_ct_STRIP=$STRIP
|
---|
7259 | # Extract the first word of "strip", so it can be a program name with args.
|
---|
7260 | set dummy strip; ac_word=$2
|
---|
7261 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
7262 | printf %s "checking for $ac_word... " >&6; }
|
---|
7263 | if test ${ac_cv_prog_ac_ct_STRIP+y}
|
---|
7264 | then :
|
---|
7265 | printf %s "(cached) " >&6
|
---|
7266 | else case e in #(
|
---|
7267 | e) if test -n "$ac_ct_STRIP"; then
|
---|
7268 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
---|
7269 | else
|
---|
7270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7271 | for as_dir in $PATH
|
---|
7272 | do
|
---|
7273 | IFS=$as_save_IFS
|
---|
7274 | case $as_dir in #(((
|
---|
7275 | '') as_dir=./ ;;
|
---|
7276 | */) ;;
|
---|
7277 | *) as_dir=$as_dir/ ;;
|
---|
7278 | esac
|
---|
7279 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
7280 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
7281 | ac_cv_prog_ac_ct_STRIP="strip"
|
---|
7282 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
7283 | break 2
|
---|
7284 | fi
|
---|
7285 | done
|
---|
7286 | done
|
---|
7287 | IFS=$as_save_IFS
|
---|
7288 |
|
---|
7289 | fi ;;
|
---|
7290 | esac
|
---|
7291 | fi
|
---|
7292 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
---|
7293 | if test -n "$ac_ct_STRIP"; then
|
---|
7294 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
|
---|
7295 | printf "%s\n" "$ac_ct_STRIP" >&6; }
|
---|
7296 | else
|
---|
7297 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
7298 | printf "%s\n" "no" >&6; }
|
---|
7299 | fi
|
---|
7300 |
|
---|
7301 | if test "x$ac_ct_STRIP" = x; then
|
---|
7302 | STRIP=":"
|
---|
7303 | else
|
---|
7304 | case $cross_compiling:$ac_tool_warned in
|
---|
7305 | yes:)
|
---|
7306 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
7307 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
7308 | ac_tool_warned=yes ;;
|
---|
7309 | esac
|
---|
7310 | STRIP=$ac_ct_STRIP
|
---|
7311 | fi
|
---|
7312 | else
|
---|
7313 | STRIP="$ac_cv_prog_STRIP"
|
---|
7314 | fi
|
---|
7315 |
|
---|
7316 | test -z "$STRIP" && STRIP=:
|
---|
7317 |
|
---|
7318 |
|
---|
7319 |
|
---|
7320 |
|
---|
7321 |
|
---|
7322 |
|
---|
7323 |
|
---|
7324 | test -z "$RANLIB" && RANLIB=:
|
---|
7325 |
|
---|
7326 |
|
---|
7327 |
|
---|
7328 |
|
---|
7329 |
|
---|
7330 |
|
---|
7331 | # Determine commands to create old-style static archives.
|
---|
7332 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
|
---|
7333 | old_postinstall_cmds='chmod 644 $oldlib'
|
---|
7334 | old_postuninstall_cmds=
|
---|
7335 |
|
---|
7336 | if test -n "$RANLIB"; then
|
---|
7337 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
|
---|
7338 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
|
---|
7339 | fi
|
---|
7340 |
|
---|
7341 | case $host_os in
|
---|
7342 | darwin*)
|
---|
7343 | lock_old_archive_extraction=yes ;;
|
---|
7344 | *)
|
---|
7345 | lock_old_archive_extraction=no ;;
|
---|
7346 | esac
|
---|
7347 |
|
---|
7348 |
|
---|
7349 |
|
---|
7350 |
|
---|
7351 |
|
---|
7352 |
|
---|
7353 |
|
---|
7354 |
|
---|
7355 |
|
---|
7356 |
|
---|
7357 |
|
---|
7358 |
|
---|
7359 |
|
---|
7360 |
|
---|
7361 |
|
---|
7362 |
|
---|
7363 |
|
---|
7364 |
|
---|
7365 |
|
---|
7366 |
|
---|
7367 |
|
---|
7368 |
|
---|
7369 |
|
---|
7370 |
|
---|
7371 |
|
---|
7372 |
|
---|
7373 |
|
---|
7374 |
|
---|
7375 |
|
---|
7376 |
|
---|
7377 |
|
---|
7378 |
|
---|
7379 |
|
---|
7380 |
|
---|
7381 |
|
---|
7382 |
|
---|
7383 |
|
---|
7384 |
|
---|
7385 |
|
---|
7386 | # If no C compiler was specified, use CC.
|
---|
7387 | LTCC=${LTCC-"$CC"}
|
---|
7388 |
|
---|
7389 | # If no C compiler flags were specified, use CFLAGS.
|
---|
7390 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
---|
7391 |
|
---|
7392 | # Allow CC to be a program name with arguments.
|
---|
7393 | compiler=$CC
|
---|
7394 |
|
---|
7395 |
|
---|
7396 | # Check for command to grab the raw symbol name followed by C symbol from nm.
|
---|
7397 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
|
---|
7398 | printf %s "checking command to parse $NM output from $compiler object... " >&6; }
|
---|
7399 | if test ${lt_cv_sys_global_symbol_pipe+y}
|
---|
7400 | then :
|
---|
7401 | printf %s "(cached) " >&6
|
---|
7402 | else case e in #(
|
---|
7403 | e)
|
---|
7404 | # These are sane defaults that work on at least a few old systems.
|
---|
7405 | # [They come from Ultrix. What could be older than Ultrix?!! ;)]
|
---|
7406 |
|
---|
7407 | # Character class describing NM global symbol codes.
|
---|
7408 | symcode='[BCDEGRST]'
|
---|
7409 |
|
---|
7410 | # Regexp to match symbols that can be accessed directly from C.
|
---|
7411 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
|
---|
7412 |
|
---|
7413 | # Define system-specific variables.
|
---|
7414 | case $host_os in
|
---|
7415 | aix*)
|
---|
7416 | symcode='[BCDT]'
|
---|
7417 | ;;
|
---|
7418 | cygwin* | mingw* | windows* | pw32* | cegcc*)
|
---|
7419 | symcode='[ABCDGISTW]'
|
---|
7420 | ;;
|
---|
7421 | hpux*)
|
---|
7422 | if test ia64 = "$host_cpu"; then
|
---|
7423 | symcode='[ABCDEGRST]'
|
---|
7424 | fi
|
---|
7425 | ;;
|
---|
7426 | irix* | nonstopux*)
|
---|
7427 | symcode='[BCDEGRST]'
|
---|
7428 | ;;
|
---|
7429 | osf*)
|
---|
7430 | symcode='[BCDEGQRST]'
|
---|
7431 | ;;
|
---|
7432 | solaris*)
|
---|
7433 | symcode='[BCDRT]'
|
---|
7434 | ;;
|
---|
7435 | sco3.2v5*)
|
---|
7436 | symcode='[DT]'
|
---|
7437 | ;;
|
---|
7438 | sysv4.2uw2*)
|
---|
7439 | symcode='[DT]'
|
---|
7440 | ;;
|
---|
7441 | sysv5* | sco5v6* | unixware* | OpenUNIX*)
|
---|
7442 | symcode='[ABDT]'
|
---|
7443 | ;;
|
---|
7444 | sysv4)
|
---|
7445 | symcode='[DFNSTU]'
|
---|
7446 | ;;
|
---|
7447 | esac
|
---|
7448 |
|
---|
7449 | # If we're using GNU nm, then use its standard symbol codes.
|
---|
7450 | case `$NM -V 2>&1` in
|
---|
7451 | *GNU* | *'with BFD'*)
|
---|
7452 | symcode='[ABCDGIRSTW]' ;;
|
---|
7453 | esac
|
---|
7454 |
|
---|
7455 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
---|
7456 | # Gets list of data symbols to import.
|
---|
7457 | lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
|
---|
7458 | # Adjust the below global symbol transforms to fixup imported variables.
|
---|
7459 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
|
---|
7460 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
|
---|
7461 | lt_c_name_lib_hook="\
|
---|
7462 | -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
|
---|
7463 | -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
|
---|
7464 | else
|
---|
7465 | # Disable hooks by default.
|
---|
7466 | lt_cv_sys_global_symbol_to_import=
|
---|
7467 | lt_cdecl_hook=
|
---|
7468 | lt_c_name_hook=
|
---|
7469 | lt_c_name_lib_hook=
|
---|
7470 | fi
|
---|
7471 |
|
---|
7472 | # Transform an extracted symbol line into a proper C declaration.
|
---|
7473 | # Some systems (esp. on ia64) link data and code symbols differently,
|
---|
7474 | # so use this general approach.
|
---|
7475 | lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
|
---|
7476 | $lt_cdecl_hook\
|
---|
7477 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
|
---|
7478 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
|
---|
7479 |
|
---|
7480 | # Transform an extracted symbol line into symbol name and symbol address
|
---|
7481 | lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
|
---|
7482 | $lt_c_name_hook\
|
---|
7483 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
|
---|
7484 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
|
---|
7485 |
|
---|
7486 | # Transform an extracted symbol line into symbol name with lib prefix and
|
---|
7487 | # symbol address.
|
---|
7488 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
|
---|
7489 | $lt_c_name_lib_hook\
|
---|
7490 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
|
---|
7491 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
|
---|
7492 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
|
---|
7493 |
|
---|
7494 | # Handle CRLF in mingw tool chain
|
---|
7495 | opt_cr=
|
---|
7496 | case $build_os in
|
---|
7497 | mingw* | windows*)
|
---|
7498 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
|
---|
7499 | ;;
|
---|
7500 | esac
|
---|
7501 |
|
---|
7502 | # Try without a prefix underscore, then with it.
|
---|
7503 | for ac_symprfx in "" "_"; do
|
---|
7504 |
|
---|
7505 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
|
---|
7506 | symxfrm="\\1 $ac_symprfx\\2 \\2"
|
---|
7507 |
|
---|
7508 | # Write the raw and C identifiers.
|
---|
7509 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
---|
7510 | # Fake it for dumpbin and say T for any non-static function,
|
---|
7511 | # D for any global variable and I for any imported variable.
|
---|
7512 | # Also find C++ and __fastcall symbols from MSVC++ or ICC,
|
---|
7513 | # which start with @ or ?.
|
---|
7514 | lt_cv_sys_global_symbol_pipe="$AWK '"\
|
---|
7515 | " {last_section=section; section=\$ 3};"\
|
---|
7516 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
|
---|
7517 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
|
---|
7518 | " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
|
---|
7519 | " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
|
---|
7520 | " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
|
---|
7521 | " \$ 0!~/External *\|/{next};"\
|
---|
7522 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
|
---|
7523 | " {if(hide[section]) next};"\
|
---|
7524 | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
|
---|
7525 | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
|
---|
7526 | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
|
---|
7527 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
|
---|
7528 | " ' prfx=^$ac_symprfx"
|
---|
7529 | else
|
---|
7530 | lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
---|
7531 | fi
|
---|
7532 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
|
---|
7533 |
|
---|
7534 | # Check to see that the pipe works correctly.
|
---|
7535 | pipe_works=no
|
---|
7536 |
|
---|
7537 | rm -f conftest*
|
---|
7538 | cat > conftest.$ac_ext <<_LT_EOF
|
---|
7539 | #ifdef __cplusplus
|
---|
7540 | extern "C" {
|
---|
7541 | #endif
|
---|
7542 | char nm_test_var;
|
---|
7543 | void nm_test_func(void);
|
---|
7544 | void nm_test_func(void){}
|
---|
7545 | #ifdef __cplusplus
|
---|
7546 | }
|
---|
7547 | #endif
|
---|
7548 | int main(void){nm_test_var='a';nm_test_func();return(0);}
|
---|
7549 | _LT_EOF
|
---|
7550 |
|
---|
7551 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
---|
7552 | (eval $ac_compile) 2>&5
|
---|
7553 | ac_status=$?
|
---|
7554 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
7555 | test $ac_status = 0; }; then
|
---|
7556 | # Now try to grab the symbols.
|
---|
7557 | nlist=conftest.nm
|
---|
7558 | $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
|
---|
7559 | if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
|
---|
7560 | # Try sorting and uniquifying the output.
|
---|
7561 | if sort "$nlist" | uniq > "$nlist"T; then
|
---|
7562 | mv -f "$nlist"T "$nlist"
|
---|
7563 | else
|
---|
7564 | rm -f "$nlist"T
|
---|
7565 | fi
|
---|
7566 |
|
---|
7567 | # Make sure that we snagged all the symbols we need.
|
---|
7568 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
|
---|
7569 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
|
---|
7570 | cat <<_LT_EOF > conftest.$ac_ext
|
---|
7571 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
|
---|
7572 | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
|
---|
7573 | /* DATA imports from DLLs on WIN32 can't be const, because runtime
|
---|
7574 | relocations are performed -- see ld's documentation on pseudo-relocs. */
|
---|
7575 | # define LT_DLSYM_CONST
|
---|
7576 | #elif defined __osf__
|
---|
7577 | /* This system does not cope well with relocations in const data. */
|
---|
7578 | # define LT_DLSYM_CONST
|
---|
7579 | #else
|
---|
7580 | # define LT_DLSYM_CONST const
|
---|
7581 | #endif
|
---|
7582 |
|
---|
7583 | #ifdef __cplusplus
|
---|
7584 | extern "C" {
|
---|
7585 | #endif
|
---|
7586 |
|
---|
7587 | _LT_EOF
|
---|
7588 | # Now generate the symbol file.
|
---|
7589 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
|
---|
7590 |
|
---|
7591 | cat <<_LT_EOF >> conftest.$ac_ext
|
---|
7592 |
|
---|
7593 | /* The mapping between symbol names and symbols. */
|
---|
7594 | LT_DLSYM_CONST struct {
|
---|
7595 | const char *name;
|
---|
7596 | void *address;
|
---|
7597 | }
|
---|
7598 | lt__PROGRAM__LTX_preloaded_symbols[] =
|
---|
7599 | {
|
---|
7600 | { "@PROGRAM@", (void *) 0 },
|
---|
7601 | _LT_EOF
|
---|
7602 | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
|
---|
7603 | cat <<\_LT_EOF >> conftest.$ac_ext
|
---|
7604 | {0, (void *) 0}
|
---|
7605 | };
|
---|
7606 |
|
---|
7607 | /* This works around a problem in FreeBSD linker */
|
---|
7608 | #ifdef FREEBSD_WORKAROUND
|
---|
7609 | static const void *lt_preloaded_setup() {
|
---|
7610 | return lt__PROGRAM__LTX_preloaded_symbols;
|
---|
7611 | }
|
---|
7612 | #endif
|
---|
7613 |
|
---|
7614 | #ifdef __cplusplus
|
---|
7615 | }
|
---|
7616 | #endif
|
---|
7617 | _LT_EOF
|
---|
7618 | # Now try linking the two files.
|
---|
7619 | mv conftest.$ac_objext conftstm.$ac_objext
|
---|
7620 | lt_globsym_save_LIBS=$LIBS
|
---|
7621 | lt_globsym_save_CFLAGS=$CFLAGS
|
---|
7622 | LIBS=conftstm.$ac_objext
|
---|
7623 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
|
---|
7624 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
|
---|
7625 | (eval $ac_link) 2>&5
|
---|
7626 | ac_status=$?
|
---|
7627 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
7628 | test $ac_status = 0; } && test -s conftest$ac_exeext; then
|
---|
7629 | pipe_works=yes
|
---|
7630 | fi
|
---|
7631 | LIBS=$lt_globsym_save_LIBS
|
---|
7632 | CFLAGS=$lt_globsym_save_CFLAGS
|
---|
7633 | else
|
---|
7634 | echo "cannot find nm_test_func in $nlist" >&5
|
---|
7635 | fi
|
---|
7636 | else
|
---|
7637 | echo "cannot find nm_test_var in $nlist" >&5
|
---|
7638 | fi
|
---|
7639 | else
|
---|
7640 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
|
---|
7641 | fi
|
---|
7642 | else
|
---|
7643 | echo "$progname: failed program was:" >&5
|
---|
7644 | cat conftest.$ac_ext >&5
|
---|
7645 | fi
|
---|
7646 | rm -rf conftest* conftst*
|
---|
7647 |
|
---|
7648 | # Do not use the global_symbol_pipe unless it works.
|
---|
7649 | if test yes = "$pipe_works"; then
|
---|
7650 | break
|
---|
7651 | else
|
---|
7652 | lt_cv_sys_global_symbol_pipe=
|
---|
7653 | fi
|
---|
7654 | done
|
---|
7655 | ;;
|
---|
7656 | esac
|
---|
7657 | fi
|
---|
7658 |
|
---|
7659 | if test -z "$lt_cv_sys_global_symbol_pipe"; then
|
---|
7660 | lt_cv_sys_global_symbol_to_cdecl=
|
---|
7661 | fi
|
---|
7662 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
|
---|
7663 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
|
---|
7664 | printf "%s\n" "failed" >&6; }
|
---|
7665 | else
|
---|
7666 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
|
---|
7667 | printf "%s\n" "ok" >&6; }
|
---|
7668 | fi
|
---|
7669 |
|
---|
7670 | # Response file support.
|
---|
7671 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
---|
7672 | nm_file_list_spec='@'
|
---|
7673 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
|
---|
7674 | nm_file_list_spec='@'
|
---|
7675 | fi
|
---|
7676 |
|
---|
7677 |
|
---|
7678 |
|
---|
7679 |
|
---|
7680 |
|
---|
7681 |
|
---|
7682 |
|
---|
7683 |
|
---|
7684 |
|
---|
7685 |
|
---|
7686 |
|
---|
7687 |
|
---|
7688 |
|
---|
7689 |
|
---|
7690 |
|
---|
7691 |
|
---|
7692 |
|
---|
7693 |
|
---|
7694 |
|
---|
7695 |
|
---|
7696 |
|
---|
7697 |
|
---|
7698 |
|
---|
7699 |
|
---|
7700 |
|
---|
7701 |
|
---|
7702 |
|
---|
7703 |
|
---|
7704 |
|
---|
7705 |
|
---|
7706 |
|
---|
7707 |
|
---|
7708 |
|
---|
7709 |
|
---|
7710 |
|
---|
7711 |
|
---|
7712 |
|
---|
7713 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
|
---|
7714 | printf %s "checking for sysroot... " >&6; }
|
---|
7715 |
|
---|
7716 | # Check whether --with-sysroot was given.
|
---|
7717 | if test ${with_sysroot+y}
|
---|
7718 | then :
|
---|
7719 | withval=$with_sysroot;
|
---|
7720 | else case e in #(
|
---|
7721 | e) with_sysroot=no ;;
|
---|
7722 | esac
|
---|
7723 | fi
|
---|
7724 |
|
---|
7725 |
|
---|
7726 | lt_sysroot=
|
---|
7727 | case $with_sysroot in #(
|
---|
7728 | yes)
|
---|
7729 | if test yes = "$GCC"; then
|
---|
7730 | # Trim trailing / since we'll always append absolute paths and we want
|
---|
7731 | # to avoid //, if only for less confusing output for the user.
|
---|
7732 | lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
|
---|
7733 | fi
|
---|
7734 | ;; #(
|
---|
7735 | /*)
|
---|
7736 | lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
|
---|
7737 | ;; #(
|
---|
7738 | no|'')
|
---|
7739 | ;; #(
|
---|
7740 | *)
|
---|
7741 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
|
---|
7742 | printf "%s\n" "$with_sysroot" >&6; }
|
---|
7743 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
|
---|
7744 | ;;
|
---|
7745 | esac
|
---|
7746 |
|
---|
7747 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
|
---|
7748 | printf "%s\n" "${lt_sysroot:-no}" >&6; }
|
---|
7749 |
|
---|
7750 |
|
---|
7751 |
|
---|
7752 |
|
---|
7753 |
|
---|
7754 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
|
---|
7755 | printf %s "checking for a working dd... " >&6; }
|
---|
7756 | if test ${ac_cv_path_lt_DD+y}
|
---|
7757 | then :
|
---|
7758 | printf %s "(cached) " >&6
|
---|
7759 | else case e in #(
|
---|
7760 | e) printf 0123456789abcdef0123456789abcdef >conftest.i
|
---|
7761 | cat conftest.i conftest.i >conftest2.i
|
---|
7762 | : ${lt_DD:=$DD}
|
---|
7763 | if test -z "$lt_DD"; then
|
---|
7764 | ac_path_lt_DD_found=false
|
---|
7765 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
7766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
7767 | for as_dir in $PATH
|
---|
7768 | do
|
---|
7769 | IFS=$as_save_IFS
|
---|
7770 | case $as_dir in #(((
|
---|
7771 | '') as_dir=./ ;;
|
---|
7772 | */) ;;
|
---|
7773 | *) as_dir=$as_dir/ ;;
|
---|
7774 | esac
|
---|
7775 | for ac_prog in dd
|
---|
7776 | do
|
---|
7777 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
7778 | ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
|
---|
7779 | as_fn_executable_p "$ac_path_lt_DD" || continue
|
---|
7780 | if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
|
---|
7781 | cmp -s conftest.i conftest.out \
|
---|
7782 | && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
|
---|
7783 | fi
|
---|
7784 | $ac_path_lt_DD_found && break 3
|
---|
7785 | done
|
---|
7786 | done
|
---|
7787 | done
|
---|
7788 | IFS=$as_save_IFS
|
---|
7789 | if test -z "$ac_cv_path_lt_DD"; then
|
---|
7790 | :
|
---|
7791 | fi
|
---|
7792 | else
|
---|
7793 | ac_cv_path_lt_DD=$lt_DD
|
---|
7794 | fi
|
---|
7795 |
|
---|
7796 | rm -f conftest.i conftest2.i conftest.out ;;
|
---|
7797 | esac
|
---|
7798 | fi
|
---|
7799 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
|
---|
7800 | printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
|
---|
7801 |
|
---|
7802 |
|
---|
7803 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
|
---|
7804 | printf %s "checking how to truncate binary pipes... " >&6; }
|
---|
7805 | if test ${lt_cv_truncate_bin+y}
|
---|
7806 | then :
|
---|
7807 | printf %s "(cached) " >&6
|
---|
7808 | else case e in #(
|
---|
7809 | e) printf 0123456789abcdef0123456789abcdef >conftest.i
|
---|
7810 | cat conftest.i conftest.i >conftest2.i
|
---|
7811 | lt_cv_truncate_bin=
|
---|
7812 | if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
|
---|
7813 | cmp -s conftest.i conftest.out \
|
---|
7814 | && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
|
---|
7815 | fi
|
---|
7816 | rm -f conftest.i conftest2.i conftest.out
|
---|
7817 | test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
|
---|
7818 | esac
|
---|
7819 | fi
|
---|
7820 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
|
---|
7821 | printf "%s\n" "$lt_cv_truncate_bin" >&6; }
|
---|
7822 |
|
---|
7823 |
|
---|
7824 |
|
---|
7825 |
|
---|
7826 |
|
---|
7827 |
|
---|
7828 |
|
---|
7829 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
|
---|
7830 | func_cc_basename ()
|
---|
7831 | {
|
---|
7832 | for cc_temp in $*""; do
|
---|
7833 | case $cc_temp in
|
---|
7834 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
---|
7835 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
---|
7836 | \-*) ;;
|
---|
7837 | *) break;;
|
---|
7838 | esac
|
---|
7839 | done
|
---|
7840 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
|
---|
7841 | }
|
---|
7842 |
|
---|
7843 | # Check whether --enable-libtool-lock was given.
|
---|
7844 | if test ${enable_libtool_lock+y}
|
---|
7845 | then :
|
---|
7846 | enableval=$enable_libtool_lock;
|
---|
7847 | fi
|
---|
7848 |
|
---|
7849 | test no = "$enable_libtool_lock" || enable_libtool_lock=yes
|
---|
7850 |
|
---|
7851 | # Some flags need to be propagated to the compiler or linker for good
|
---|
7852 | # libtool support.
|
---|
7853 | case $host in
|
---|
7854 | ia64-*-hpux*)
|
---|
7855 | # Find out what ABI is being produced by ac_compile, and set mode
|
---|
7856 | # options accordingly.
|
---|
7857 | echo 'int i;' > conftest.$ac_ext
|
---|
7858 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
---|
7859 | (eval $ac_compile) 2>&5
|
---|
7860 | ac_status=$?
|
---|
7861 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
7862 | test $ac_status = 0; }; then
|
---|
7863 | case `$FILECMD conftest.$ac_objext` in
|
---|
7864 | *ELF-32*)
|
---|
7865 | HPUX_IA64_MODE=32
|
---|
7866 | ;;
|
---|
7867 | *ELF-64*)
|
---|
7868 | HPUX_IA64_MODE=64
|
---|
7869 | ;;
|
---|
7870 | esac
|
---|
7871 | fi
|
---|
7872 | rm -rf conftest*
|
---|
7873 | ;;
|
---|
7874 | *-*-irix6*)
|
---|
7875 | # Find out what ABI is being produced by ac_compile, and set linker
|
---|
7876 | # options accordingly.
|
---|
7877 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext
|
---|
7878 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
---|
7879 | (eval $ac_compile) 2>&5
|
---|
7880 | ac_status=$?
|
---|
7881 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
7882 | test $ac_status = 0; }; then
|
---|
7883 | if test yes = "$lt_cv_prog_gnu_ld"; then
|
---|
7884 | case `$FILECMD conftest.$ac_objext` in
|
---|
7885 | *32-bit*)
|
---|
7886 | LD="${LD-ld} -melf32bsmip"
|
---|
7887 | ;;
|
---|
7888 | *N32*)
|
---|
7889 | LD="${LD-ld} -melf32bmipn32"
|
---|
7890 | ;;
|
---|
7891 | *64-bit*)
|
---|
7892 | LD="${LD-ld} -melf64bmip"
|
---|
7893 | ;;
|
---|
7894 | esac
|
---|
7895 | else
|
---|
7896 | case `$FILECMD conftest.$ac_objext` in
|
---|
7897 | *32-bit*)
|
---|
7898 | LD="${LD-ld} -32"
|
---|
7899 | ;;
|
---|
7900 | *N32*)
|
---|
7901 | LD="${LD-ld} -n32"
|
---|
7902 | ;;
|
---|
7903 | *64-bit*)
|
---|
7904 | LD="${LD-ld} -64"
|
---|
7905 | ;;
|
---|
7906 | esac
|
---|
7907 | fi
|
---|
7908 | fi
|
---|
7909 | rm -rf conftest*
|
---|
7910 | ;;
|
---|
7911 |
|
---|
7912 | mips64*-*linux*)
|
---|
7913 | # Find out what ABI is being produced by ac_compile, and set linker
|
---|
7914 | # options accordingly.
|
---|
7915 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext
|
---|
7916 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
---|
7917 | (eval $ac_compile) 2>&5
|
---|
7918 | ac_status=$?
|
---|
7919 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
7920 | test $ac_status = 0; }; then
|
---|
7921 | emul=elf
|
---|
7922 | case `$FILECMD conftest.$ac_objext` in
|
---|
7923 | *32-bit*)
|
---|
7924 | emul="${emul}32"
|
---|
7925 | ;;
|
---|
7926 | *64-bit*)
|
---|
7927 | emul="${emul}64"
|
---|
7928 | ;;
|
---|
7929 | esac
|
---|
7930 | case `$FILECMD conftest.$ac_objext` in
|
---|
7931 | *MSB*)
|
---|
7932 | emul="${emul}btsmip"
|
---|
7933 | ;;
|
---|
7934 | *LSB*)
|
---|
7935 | emul="${emul}ltsmip"
|
---|
7936 | ;;
|
---|
7937 | esac
|
---|
7938 | case `$FILECMD conftest.$ac_objext` in
|
---|
7939 | *N32*)
|
---|
7940 | emul="${emul}n32"
|
---|
7941 | ;;
|
---|
7942 | esac
|
---|
7943 | LD="${LD-ld} -m $emul"
|
---|
7944 | fi
|
---|
7945 | rm -rf conftest*
|
---|
7946 | ;;
|
---|
7947 |
|
---|
7948 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
|
---|
7949 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
|
---|
7950 | # Find out what ABI is being produced by ac_compile, and set linker
|
---|
7951 | # options accordingly. Note that the listed cases only cover the
|
---|
7952 | # situations where additional linker options are needed (such as when
|
---|
7953 | # doing 32-bit compilation for a host where ld defaults to 64-bit, or
|
---|
7954 | # vice versa); the common cases where no linker options are needed do
|
---|
7955 | # not appear in the list.
|
---|
7956 | echo 'int i;' > conftest.$ac_ext
|
---|
7957 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
---|
7958 | (eval $ac_compile) 2>&5
|
---|
7959 | ac_status=$?
|
---|
7960 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
7961 | test $ac_status = 0; }; then
|
---|
7962 | case `$FILECMD conftest.o` in
|
---|
7963 | *32-bit*)
|
---|
7964 | case $host in
|
---|
7965 | x86_64-*kfreebsd*-gnu)
|
---|
7966 | LD="${LD-ld} -m elf_i386_fbsd"
|
---|
7967 | ;;
|
---|
7968 | x86_64-*linux*|x86_64-gnu*)
|
---|
7969 | case `$FILECMD conftest.o` in
|
---|
7970 | *x86-64*)
|
---|
7971 | LD="${LD-ld} -m elf32_x86_64"
|
---|
7972 | ;;
|
---|
7973 | *)
|
---|
7974 | LD="${LD-ld} -m elf_i386"
|
---|
7975 | ;;
|
---|
7976 | esac
|
---|
7977 | ;;
|
---|
7978 | powerpc64le-*linux*)
|
---|
7979 | LD="${LD-ld} -m elf32lppclinux"
|
---|
7980 | ;;
|
---|
7981 | powerpc64-*linux*)
|
---|
7982 | LD="${LD-ld} -m elf32ppclinux"
|
---|
7983 | ;;
|
---|
7984 | s390x-*linux*)
|
---|
7985 | LD="${LD-ld} -m elf_s390"
|
---|
7986 | ;;
|
---|
7987 | sparc64-*linux*)
|
---|
7988 | LD="${LD-ld} -m elf32_sparc"
|
---|
7989 | ;;
|
---|
7990 | esac
|
---|
7991 | ;;
|
---|
7992 | *64-bit*)
|
---|
7993 | case $host in
|
---|
7994 | x86_64-*kfreebsd*-gnu)
|
---|
7995 | LD="${LD-ld} -m elf_x86_64_fbsd"
|
---|
7996 | ;;
|
---|
7997 | x86_64-*linux*|x86_64-gnu*)
|
---|
7998 | LD="${LD-ld} -m elf_x86_64"
|
---|
7999 | ;;
|
---|
8000 | powerpcle-*linux*)
|
---|
8001 | LD="${LD-ld} -m elf64lppc"
|
---|
8002 | ;;
|
---|
8003 | powerpc-*linux*)
|
---|
8004 | LD="${LD-ld} -m elf64ppc"
|
---|
8005 | ;;
|
---|
8006 | s390*-*linux*|s390*-*tpf*)
|
---|
8007 | LD="${LD-ld} -m elf64_s390"
|
---|
8008 | ;;
|
---|
8009 | sparc*-*linux*)
|
---|
8010 | LD="${LD-ld} -m elf64_sparc"
|
---|
8011 | ;;
|
---|
8012 | esac
|
---|
8013 | ;;
|
---|
8014 | esac
|
---|
8015 | fi
|
---|
8016 | rm -rf conftest*
|
---|
8017 | ;;
|
---|
8018 |
|
---|
8019 | *-*-sco3.2v5*)
|
---|
8020 | # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
---|
8021 | SAVE_CFLAGS=$CFLAGS
|
---|
8022 | CFLAGS="$CFLAGS -belf"
|
---|
8023 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
|
---|
8024 | printf %s "checking whether the C compiler needs -belf... " >&6; }
|
---|
8025 | if test ${lt_cv_cc_needs_belf+y}
|
---|
8026 | then :
|
---|
8027 | printf %s "(cached) " >&6
|
---|
8028 | else case e in #(
|
---|
8029 | e) ac_ext=c
|
---|
8030 | ac_cpp='$CPP $CPPFLAGS'
|
---|
8031 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
8032 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
8033 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
8034 |
|
---|
8035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
8036 | /* end confdefs.h. */
|
---|
8037 |
|
---|
8038 | int
|
---|
8039 | main (void)
|
---|
8040 | {
|
---|
8041 |
|
---|
8042 | ;
|
---|
8043 | return 0;
|
---|
8044 | }
|
---|
8045 | _ACEOF
|
---|
8046 | if ac_fn_c_try_link "$LINENO"
|
---|
8047 | then :
|
---|
8048 | lt_cv_cc_needs_belf=yes
|
---|
8049 | else case e in #(
|
---|
8050 | e) lt_cv_cc_needs_belf=no ;;
|
---|
8051 | esac
|
---|
8052 | fi
|
---|
8053 | rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
---|
8054 | conftest$ac_exeext conftest.$ac_ext
|
---|
8055 | ac_ext=c
|
---|
8056 | ac_cpp='$CPP $CPPFLAGS'
|
---|
8057 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
8058 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
8059 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
8060 | ;;
|
---|
8061 | esac
|
---|
8062 | fi
|
---|
8063 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
|
---|
8064 | printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
|
---|
8065 | if test yes != "$lt_cv_cc_needs_belf"; then
|
---|
8066 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
---|
8067 | CFLAGS=$SAVE_CFLAGS
|
---|
8068 | fi
|
---|
8069 | ;;
|
---|
8070 | *-*solaris*)
|
---|
8071 | # Find out what ABI is being produced by ac_compile, and set linker
|
---|
8072 | # options accordingly.
|
---|
8073 | echo 'int i;' > conftest.$ac_ext
|
---|
8074 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
---|
8075 | (eval $ac_compile) 2>&5
|
---|
8076 | ac_status=$?
|
---|
8077 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
8078 | test $ac_status = 0; }; then
|
---|
8079 | case `$FILECMD conftest.o` in
|
---|
8080 | *64-bit*)
|
---|
8081 | case $lt_cv_prog_gnu_ld in
|
---|
8082 | yes*)
|
---|
8083 | case $host in
|
---|
8084 | i?86-*-solaris*|x86_64-*-solaris*)
|
---|
8085 | LD="${LD-ld} -m elf_x86_64"
|
---|
8086 | ;;
|
---|
8087 | sparc*-*-solaris*)
|
---|
8088 | LD="${LD-ld} -m elf64_sparc"
|
---|
8089 | ;;
|
---|
8090 | esac
|
---|
8091 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
|
---|
8092 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
|
---|
8093 | LD=${LD-ld}_sol2
|
---|
8094 | fi
|
---|
8095 | ;;
|
---|
8096 | *)
|
---|
8097 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
|
---|
8098 | LD="${LD-ld} -64"
|
---|
8099 | fi
|
---|
8100 | ;;
|
---|
8101 | esac
|
---|
8102 | ;;
|
---|
8103 | esac
|
---|
8104 | fi
|
---|
8105 | rm -rf conftest*
|
---|
8106 | ;;
|
---|
8107 | esac
|
---|
8108 |
|
---|
8109 | need_locks=$enable_libtool_lock
|
---|
8110 |
|
---|
8111 | if test -n "$ac_tool_prefix"; then
|
---|
8112 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
|
---|
8113 | set dummy ${ac_tool_prefix}mt; ac_word=$2
|
---|
8114 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
8115 | printf %s "checking for $ac_word... " >&6; }
|
---|
8116 | if test ${ac_cv_prog_MANIFEST_TOOL+y}
|
---|
8117 | then :
|
---|
8118 | printf %s "(cached) " >&6
|
---|
8119 | else case e in #(
|
---|
8120 | e) if test -n "$MANIFEST_TOOL"; then
|
---|
8121 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
|
---|
8122 | else
|
---|
8123 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
8124 | for as_dir in $PATH
|
---|
8125 | do
|
---|
8126 | IFS=$as_save_IFS
|
---|
8127 | case $as_dir in #(((
|
---|
8128 | '') as_dir=./ ;;
|
---|
8129 | */) ;;
|
---|
8130 | *) as_dir=$as_dir/ ;;
|
---|
8131 | esac
|
---|
8132 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
8133 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
8134 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
|
---|
8135 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
8136 | break 2
|
---|
8137 | fi
|
---|
8138 | done
|
---|
8139 | done
|
---|
8140 | IFS=$as_save_IFS
|
---|
8141 |
|
---|
8142 | fi ;;
|
---|
8143 | esac
|
---|
8144 | fi
|
---|
8145 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
|
---|
8146 | if test -n "$MANIFEST_TOOL"; then
|
---|
8147 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
|
---|
8148 | printf "%s\n" "$MANIFEST_TOOL" >&6; }
|
---|
8149 | else
|
---|
8150 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
8151 | printf "%s\n" "no" >&6; }
|
---|
8152 | fi
|
---|
8153 |
|
---|
8154 |
|
---|
8155 | fi
|
---|
8156 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
|
---|
8157 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
|
---|
8158 | # Extract the first word of "mt", so it can be a program name with args.
|
---|
8159 | set dummy mt; ac_word=$2
|
---|
8160 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
8161 | printf %s "checking for $ac_word... " >&6; }
|
---|
8162 | if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
|
---|
8163 | then :
|
---|
8164 | printf %s "(cached) " >&6
|
---|
8165 | else case e in #(
|
---|
8166 | e) if test -n "$ac_ct_MANIFEST_TOOL"; then
|
---|
8167 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
|
---|
8168 | else
|
---|
8169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
8170 | for as_dir in $PATH
|
---|
8171 | do
|
---|
8172 | IFS=$as_save_IFS
|
---|
8173 | case $as_dir in #(((
|
---|
8174 | '') as_dir=./ ;;
|
---|
8175 | */) ;;
|
---|
8176 | *) as_dir=$as_dir/ ;;
|
---|
8177 | esac
|
---|
8178 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
8179 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
8180 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
|
---|
8181 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
8182 | break 2
|
---|
8183 | fi
|
---|
8184 | done
|
---|
8185 | done
|
---|
8186 | IFS=$as_save_IFS
|
---|
8187 |
|
---|
8188 | fi ;;
|
---|
8189 | esac
|
---|
8190 | fi
|
---|
8191 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
|
---|
8192 | if test -n "$ac_ct_MANIFEST_TOOL"; then
|
---|
8193 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
|
---|
8194 | printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
|
---|
8195 | else
|
---|
8196 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
8197 | printf "%s\n" "no" >&6; }
|
---|
8198 | fi
|
---|
8199 |
|
---|
8200 | if test "x$ac_ct_MANIFEST_TOOL" = x; then
|
---|
8201 | MANIFEST_TOOL=":"
|
---|
8202 | else
|
---|
8203 | case $cross_compiling:$ac_tool_warned in
|
---|
8204 | yes:)
|
---|
8205 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
8206 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
8207 | ac_tool_warned=yes ;;
|
---|
8208 | esac
|
---|
8209 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
|
---|
8210 | fi
|
---|
8211 | else
|
---|
8212 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
|
---|
8213 | fi
|
---|
8214 |
|
---|
8215 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
|
---|
8216 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
|
---|
8217 | printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
|
---|
8218 | if test ${lt_cv_path_manifest_tool+y}
|
---|
8219 | then :
|
---|
8220 | printf %s "(cached) " >&6
|
---|
8221 | else case e in #(
|
---|
8222 | e) lt_cv_path_manifest_tool=no
|
---|
8223 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
|
---|
8224 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
|
---|
8225 | cat conftest.err >&5
|
---|
8226 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then
|
---|
8227 | lt_cv_path_manifest_tool=yes
|
---|
8228 | fi
|
---|
8229 | rm -f conftest* ;;
|
---|
8230 | esac
|
---|
8231 | fi
|
---|
8232 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
|
---|
8233 | printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
|
---|
8234 | if test yes != "$lt_cv_path_manifest_tool"; then
|
---|
8235 | MANIFEST_TOOL=:
|
---|
8236 | fi
|
---|
8237 |
|
---|
8238 |
|
---|
8239 |
|
---|
8240 |
|
---|
8241 |
|
---|
8242 |
|
---|
8243 | case $host_os in
|
---|
8244 | rhapsody* | darwin*)
|
---|
8245 | if test -n "$ac_tool_prefix"; then
|
---|
8246 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
|
---|
8247 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
|
---|
8248 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
8249 | printf %s "checking for $ac_word... " >&6; }
|
---|
8250 | if test ${ac_cv_prog_DSYMUTIL+y}
|
---|
8251 | then :
|
---|
8252 | printf %s "(cached) " >&6
|
---|
8253 | else case e in #(
|
---|
8254 | e) if test -n "$DSYMUTIL"; then
|
---|
8255 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
|
---|
8256 | else
|
---|
8257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
8258 | for as_dir in $PATH
|
---|
8259 | do
|
---|
8260 | IFS=$as_save_IFS
|
---|
8261 | case $as_dir in #(((
|
---|
8262 | '') as_dir=./ ;;
|
---|
8263 | */) ;;
|
---|
8264 | *) as_dir=$as_dir/ ;;
|
---|
8265 | esac
|
---|
8266 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
8267 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
8268 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
|
---|
8269 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
8270 | break 2
|
---|
8271 | fi
|
---|
8272 | done
|
---|
8273 | done
|
---|
8274 | IFS=$as_save_IFS
|
---|
8275 |
|
---|
8276 | fi ;;
|
---|
8277 | esac
|
---|
8278 | fi
|
---|
8279 | DSYMUTIL=$ac_cv_prog_DSYMUTIL
|
---|
8280 | if test -n "$DSYMUTIL"; then
|
---|
8281 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
|
---|
8282 | printf "%s\n" "$DSYMUTIL" >&6; }
|
---|
8283 | else
|
---|
8284 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
8285 | printf "%s\n" "no" >&6; }
|
---|
8286 | fi
|
---|
8287 |
|
---|
8288 |
|
---|
8289 | fi
|
---|
8290 | if test -z "$ac_cv_prog_DSYMUTIL"; then
|
---|
8291 | ac_ct_DSYMUTIL=$DSYMUTIL
|
---|
8292 | # Extract the first word of "dsymutil", so it can be a program name with args.
|
---|
8293 | set dummy dsymutil; ac_word=$2
|
---|
8294 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
8295 | printf %s "checking for $ac_word... " >&6; }
|
---|
8296 | if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
|
---|
8297 | then :
|
---|
8298 | printf %s "(cached) " >&6
|
---|
8299 | else case e in #(
|
---|
8300 | e) if test -n "$ac_ct_DSYMUTIL"; then
|
---|
8301 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
|
---|
8302 | else
|
---|
8303 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
8304 | for as_dir in $PATH
|
---|
8305 | do
|
---|
8306 | IFS=$as_save_IFS
|
---|
8307 | case $as_dir in #(((
|
---|
8308 | '') as_dir=./ ;;
|
---|
8309 | */) ;;
|
---|
8310 | *) as_dir=$as_dir/ ;;
|
---|
8311 | esac
|
---|
8312 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
8313 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
8314 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
|
---|
8315 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
8316 | break 2
|
---|
8317 | fi
|
---|
8318 | done
|
---|
8319 | done
|
---|
8320 | IFS=$as_save_IFS
|
---|
8321 |
|
---|
8322 | fi ;;
|
---|
8323 | esac
|
---|
8324 | fi
|
---|
8325 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
|
---|
8326 | if test -n "$ac_ct_DSYMUTIL"; then
|
---|
8327 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
|
---|
8328 | printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
|
---|
8329 | else
|
---|
8330 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
8331 | printf "%s\n" "no" >&6; }
|
---|
8332 | fi
|
---|
8333 |
|
---|
8334 | if test "x$ac_ct_DSYMUTIL" = x; then
|
---|
8335 | DSYMUTIL=":"
|
---|
8336 | else
|
---|
8337 | case $cross_compiling:$ac_tool_warned in
|
---|
8338 | yes:)
|
---|
8339 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
8340 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
8341 | ac_tool_warned=yes ;;
|
---|
8342 | esac
|
---|
8343 | DSYMUTIL=$ac_ct_DSYMUTIL
|
---|
8344 | fi
|
---|
8345 | else
|
---|
8346 | DSYMUTIL="$ac_cv_prog_DSYMUTIL"
|
---|
8347 | fi
|
---|
8348 |
|
---|
8349 | if test -n "$ac_tool_prefix"; then
|
---|
8350 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
|
---|
8351 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2
|
---|
8352 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
8353 | printf %s "checking for $ac_word... " >&6; }
|
---|
8354 | if test ${ac_cv_prog_NMEDIT+y}
|
---|
8355 | then :
|
---|
8356 | printf %s "(cached) " >&6
|
---|
8357 | else case e in #(
|
---|
8358 | e) if test -n "$NMEDIT"; then
|
---|
8359 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
|
---|
8360 | else
|
---|
8361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
8362 | for as_dir in $PATH
|
---|
8363 | do
|
---|
8364 | IFS=$as_save_IFS
|
---|
8365 | case $as_dir in #(((
|
---|
8366 | '') as_dir=./ ;;
|
---|
8367 | */) ;;
|
---|
8368 | *) as_dir=$as_dir/ ;;
|
---|
8369 | esac
|
---|
8370 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
8371 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
8372 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
|
---|
8373 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
8374 | break 2
|
---|
8375 | fi
|
---|
8376 | done
|
---|
8377 | done
|
---|
8378 | IFS=$as_save_IFS
|
---|
8379 |
|
---|
8380 | fi ;;
|
---|
8381 | esac
|
---|
8382 | fi
|
---|
8383 | NMEDIT=$ac_cv_prog_NMEDIT
|
---|
8384 | if test -n "$NMEDIT"; then
|
---|
8385 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
|
---|
8386 | printf "%s\n" "$NMEDIT" >&6; }
|
---|
8387 | else
|
---|
8388 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
8389 | printf "%s\n" "no" >&6; }
|
---|
8390 | fi
|
---|
8391 |
|
---|
8392 |
|
---|
8393 | fi
|
---|
8394 | if test -z "$ac_cv_prog_NMEDIT"; then
|
---|
8395 | ac_ct_NMEDIT=$NMEDIT
|
---|
8396 | # Extract the first word of "nmedit", so it can be a program name with args.
|
---|
8397 | set dummy nmedit; ac_word=$2
|
---|
8398 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
8399 | printf %s "checking for $ac_word... " >&6; }
|
---|
8400 | if test ${ac_cv_prog_ac_ct_NMEDIT+y}
|
---|
8401 | then :
|
---|
8402 | printf %s "(cached) " >&6
|
---|
8403 | else case e in #(
|
---|
8404 | e) if test -n "$ac_ct_NMEDIT"; then
|
---|
8405 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
|
---|
8406 | else
|
---|
8407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
8408 | for as_dir in $PATH
|
---|
8409 | do
|
---|
8410 | IFS=$as_save_IFS
|
---|
8411 | case $as_dir in #(((
|
---|
8412 | '') as_dir=./ ;;
|
---|
8413 | */) ;;
|
---|
8414 | *) as_dir=$as_dir/ ;;
|
---|
8415 | esac
|
---|
8416 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
8417 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
8418 | ac_cv_prog_ac_ct_NMEDIT="nmedit"
|
---|
8419 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
8420 | break 2
|
---|
8421 | fi
|
---|
8422 | done
|
---|
8423 | done
|
---|
8424 | IFS=$as_save_IFS
|
---|
8425 |
|
---|
8426 | fi ;;
|
---|
8427 | esac
|
---|
8428 | fi
|
---|
8429 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
|
---|
8430 | if test -n "$ac_ct_NMEDIT"; then
|
---|
8431 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
|
---|
8432 | printf "%s\n" "$ac_ct_NMEDIT" >&6; }
|
---|
8433 | else
|
---|
8434 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
8435 | printf "%s\n" "no" >&6; }
|
---|
8436 | fi
|
---|
8437 |
|
---|
8438 | if test "x$ac_ct_NMEDIT" = x; then
|
---|
8439 | NMEDIT=":"
|
---|
8440 | else
|
---|
8441 | case $cross_compiling:$ac_tool_warned in
|
---|
8442 | yes:)
|
---|
8443 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
8444 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
8445 | ac_tool_warned=yes ;;
|
---|
8446 | esac
|
---|
8447 | NMEDIT=$ac_ct_NMEDIT
|
---|
8448 | fi
|
---|
8449 | else
|
---|
8450 | NMEDIT="$ac_cv_prog_NMEDIT"
|
---|
8451 | fi
|
---|
8452 |
|
---|
8453 | if test -n "$ac_tool_prefix"; then
|
---|
8454 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
|
---|
8455 | set dummy ${ac_tool_prefix}lipo; ac_word=$2
|
---|
8456 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
8457 | printf %s "checking for $ac_word... " >&6; }
|
---|
8458 | if test ${ac_cv_prog_LIPO+y}
|
---|
8459 | then :
|
---|
8460 | printf %s "(cached) " >&6
|
---|
8461 | else case e in #(
|
---|
8462 | e) if test -n "$LIPO"; then
|
---|
8463 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
|
---|
8464 | else
|
---|
8465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
8466 | for as_dir in $PATH
|
---|
8467 | do
|
---|
8468 | IFS=$as_save_IFS
|
---|
8469 | case $as_dir in #(((
|
---|
8470 | '') as_dir=./ ;;
|
---|
8471 | */) ;;
|
---|
8472 | *) as_dir=$as_dir/ ;;
|
---|
8473 | esac
|
---|
8474 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
8475 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
8476 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
|
---|
8477 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
8478 | break 2
|
---|
8479 | fi
|
---|
8480 | done
|
---|
8481 | done
|
---|
8482 | IFS=$as_save_IFS
|
---|
8483 |
|
---|
8484 | fi ;;
|
---|
8485 | esac
|
---|
8486 | fi
|
---|
8487 | LIPO=$ac_cv_prog_LIPO
|
---|
8488 | if test -n "$LIPO"; then
|
---|
8489 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
|
---|
8490 | printf "%s\n" "$LIPO" >&6; }
|
---|
8491 | else
|
---|
8492 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
8493 | printf "%s\n" "no" >&6; }
|
---|
8494 | fi
|
---|
8495 |
|
---|
8496 |
|
---|
8497 | fi
|
---|
8498 | if test -z "$ac_cv_prog_LIPO"; then
|
---|
8499 | ac_ct_LIPO=$LIPO
|
---|
8500 | # Extract the first word of "lipo", so it can be a program name with args.
|
---|
8501 | set dummy lipo; ac_word=$2
|
---|
8502 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
8503 | printf %s "checking for $ac_word... " >&6; }
|
---|
8504 | if test ${ac_cv_prog_ac_ct_LIPO+y}
|
---|
8505 | then :
|
---|
8506 | printf %s "(cached) " >&6
|
---|
8507 | else case e in #(
|
---|
8508 | e) if test -n "$ac_ct_LIPO"; then
|
---|
8509 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
|
---|
8510 | else
|
---|
8511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
8512 | for as_dir in $PATH
|
---|
8513 | do
|
---|
8514 | IFS=$as_save_IFS
|
---|
8515 | case $as_dir in #(((
|
---|
8516 | '') as_dir=./ ;;
|
---|
8517 | */) ;;
|
---|
8518 | *) as_dir=$as_dir/ ;;
|
---|
8519 | esac
|
---|
8520 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
8521 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
8522 | ac_cv_prog_ac_ct_LIPO="lipo"
|
---|
8523 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
8524 | break 2
|
---|
8525 | fi
|
---|
8526 | done
|
---|
8527 | done
|
---|
8528 | IFS=$as_save_IFS
|
---|
8529 |
|
---|
8530 | fi ;;
|
---|
8531 | esac
|
---|
8532 | fi
|
---|
8533 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
|
---|
8534 | if test -n "$ac_ct_LIPO"; then
|
---|
8535 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
|
---|
8536 | printf "%s\n" "$ac_ct_LIPO" >&6; }
|
---|
8537 | else
|
---|
8538 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
8539 | printf "%s\n" "no" >&6; }
|
---|
8540 | fi
|
---|
8541 |
|
---|
8542 | if test "x$ac_ct_LIPO" = x; then
|
---|
8543 | LIPO=":"
|
---|
8544 | else
|
---|
8545 | case $cross_compiling:$ac_tool_warned in
|
---|
8546 | yes:)
|
---|
8547 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
8548 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
8549 | ac_tool_warned=yes ;;
|
---|
8550 | esac
|
---|
8551 | LIPO=$ac_ct_LIPO
|
---|
8552 | fi
|
---|
8553 | else
|
---|
8554 | LIPO="$ac_cv_prog_LIPO"
|
---|
8555 | fi
|
---|
8556 |
|
---|
8557 | if test -n "$ac_tool_prefix"; then
|
---|
8558 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
|
---|
8559 | set dummy ${ac_tool_prefix}otool; ac_word=$2
|
---|
8560 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
8561 | printf %s "checking for $ac_word... " >&6; }
|
---|
8562 | if test ${ac_cv_prog_OTOOL+y}
|
---|
8563 | then :
|
---|
8564 | printf %s "(cached) " >&6
|
---|
8565 | else case e in #(
|
---|
8566 | e) if test -n "$OTOOL"; then
|
---|
8567 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
|
---|
8568 | else
|
---|
8569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
8570 | for as_dir in $PATH
|
---|
8571 | do
|
---|
8572 | IFS=$as_save_IFS
|
---|
8573 | case $as_dir in #(((
|
---|
8574 | '') as_dir=./ ;;
|
---|
8575 | */) ;;
|
---|
8576 | *) as_dir=$as_dir/ ;;
|
---|
8577 | esac
|
---|
8578 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
8579 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
8580 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
|
---|
8581 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
8582 | break 2
|
---|
8583 | fi
|
---|
8584 | done
|
---|
8585 | done
|
---|
8586 | IFS=$as_save_IFS
|
---|
8587 |
|
---|
8588 | fi ;;
|
---|
8589 | esac
|
---|
8590 | fi
|
---|
8591 | OTOOL=$ac_cv_prog_OTOOL
|
---|
8592 | if test -n "$OTOOL"; then
|
---|
8593 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
|
---|
8594 | printf "%s\n" "$OTOOL" >&6; }
|
---|
8595 | else
|
---|
8596 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
8597 | printf "%s\n" "no" >&6; }
|
---|
8598 | fi
|
---|
8599 |
|
---|
8600 |
|
---|
8601 | fi
|
---|
8602 | if test -z "$ac_cv_prog_OTOOL"; then
|
---|
8603 | ac_ct_OTOOL=$OTOOL
|
---|
8604 | # Extract the first word of "otool", so it can be a program name with args.
|
---|
8605 | set dummy otool; ac_word=$2
|
---|
8606 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
8607 | printf %s "checking for $ac_word... " >&6; }
|
---|
8608 | if test ${ac_cv_prog_ac_ct_OTOOL+y}
|
---|
8609 | then :
|
---|
8610 | printf %s "(cached) " >&6
|
---|
8611 | else case e in #(
|
---|
8612 | e) if test -n "$ac_ct_OTOOL"; then
|
---|
8613 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
|
---|
8614 | else
|
---|
8615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
8616 | for as_dir in $PATH
|
---|
8617 | do
|
---|
8618 | IFS=$as_save_IFS
|
---|
8619 | case $as_dir in #(((
|
---|
8620 | '') as_dir=./ ;;
|
---|
8621 | */) ;;
|
---|
8622 | *) as_dir=$as_dir/ ;;
|
---|
8623 | esac
|
---|
8624 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
8625 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
8626 | ac_cv_prog_ac_ct_OTOOL="otool"
|
---|
8627 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
8628 | break 2
|
---|
8629 | fi
|
---|
8630 | done
|
---|
8631 | done
|
---|
8632 | IFS=$as_save_IFS
|
---|
8633 |
|
---|
8634 | fi ;;
|
---|
8635 | esac
|
---|
8636 | fi
|
---|
8637 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
|
---|
8638 | if test -n "$ac_ct_OTOOL"; then
|
---|
8639 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
|
---|
8640 | printf "%s\n" "$ac_ct_OTOOL" >&6; }
|
---|
8641 | else
|
---|
8642 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
8643 | printf "%s\n" "no" >&6; }
|
---|
8644 | fi
|
---|
8645 |
|
---|
8646 | if test "x$ac_ct_OTOOL" = x; then
|
---|
8647 | OTOOL=":"
|
---|
8648 | else
|
---|
8649 | case $cross_compiling:$ac_tool_warned in
|
---|
8650 | yes:)
|
---|
8651 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
8652 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
8653 | ac_tool_warned=yes ;;
|
---|
8654 | esac
|
---|
8655 | OTOOL=$ac_ct_OTOOL
|
---|
8656 | fi
|
---|
8657 | else
|
---|
8658 | OTOOL="$ac_cv_prog_OTOOL"
|
---|
8659 | fi
|
---|
8660 |
|
---|
8661 | if test -n "$ac_tool_prefix"; then
|
---|
8662 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
|
---|
8663 | set dummy ${ac_tool_prefix}otool64; ac_word=$2
|
---|
8664 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
8665 | printf %s "checking for $ac_word... " >&6; }
|
---|
8666 | if test ${ac_cv_prog_OTOOL64+y}
|
---|
8667 | then :
|
---|
8668 | printf %s "(cached) " >&6
|
---|
8669 | else case e in #(
|
---|
8670 | e) if test -n "$OTOOL64"; then
|
---|
8671 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
|
---|
8672 | else
|
---|
8673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
8674 | for as_dir in $PATH
|
---|
8675 | do
|
---|
8676 | IFS=$as_save_IFS
|
---|
8677 | case $as_dir in #(((
|
---|
8678 | '') as_dir=./ ;;
|
---|
8679 | */) ;;
|
---|
8680 | *) as_dir=$as_dir/ ;;
|
---|
8681 | esac
|
---|
8682 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
8683 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
8684 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
|
---|
8685 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
8686 | break 2
|
---|
8687 | fi
|
---|
8688 | done
|
---|
8689 | done
|
---|
8690 | IFS=$as_save_IFS
|
---|
8691 |
|
---|
8692 | fi ;;
|
---|
8693 | esac
|
---|
8694 | fi
|
---|
8695 | OTOOL64=$ac_cv_prog_OTOOL64
|
---|
8696 | if test -n "$OTOOL64"; then
|
---|
8697 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
|
---|
8698 | printf "%s\n" "$OTOOL64" >&6; }
|
---|
8699 | else
|
---|
8700 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
8701 | printf "%s\n" "no" >&6; }
|
---|
8702 | fi
|
---|
8703 |
|
---|
8704 |
|
---|
8705 | fi
|
---|
8706 | if test -z "$ac_cv_prog_OTOOL64"; then
|
---|
8707 | ac_ct_OTOOL64=$OTOOL64
|
---|
8708 | # Extract the first word of "otool64", so it can be a program name with args.
|
---|
8709 | set dummy otool64; ac_word=$2
|
---|
8710 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
8711 | printf %s "checking for $ac_word... " >&6; }
|
---|
8712 | if test ${ac_cv_prog_ac_ct_OTOOL64+y}
|
---|
8713 | then :
|
---|
8714 | printf %s "(cached) " >&6
|
---|
8715 | else case e in #(
|
---|
8716 | e) if test -n "$ac_ct_OTOOL64"; then
|
---|
8717 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
|
---|
8718 | else
|
---|
8719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
8720 | for as_dir in $PATH
|
---|
8721 | do
|
---|
8722 | IFS=$as_save_IFS
|
---|
8723 | case $as_dir in #(((
|
---|
8724 | '') as_dir=./ ;;
|
---|
8725 | */) ;;
|
---|
8726 | *) as_dir=$as_dir/ ;;
|
---|
8727 | esac
|
---|
8728 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
8729 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
8730 | ac_cv_prog_ac_ct_OTOOL64="otool64"
|
---|
8731 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
8732 | break 2
|
---|
8733 | fi
|
---|
8734 | done
|
---|
8735 | done
|
---|
8736 | IFS=$as_save_IFS
|
---|
8737 |
|
---|
8738 | fi ;;
|
---|
8739 | esac
|
---|
8740 | fi
|
---|
8741 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
|
---|
8742 | if test -n "$ac_ct_OTOOL64"; then
|
---|
8743 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
|
---|
8744 | printf "%s\n" "$ac_ct_OTOOL64" >&6; }
|
---|
8745 | else
|
---|
8746 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
8747 | printf "%s\n" "no" >&6; }
|
---|
8748 | fi
|
---|
8749 |
|
---|
8750 | if test "x$ac_ct_OTOOL64" = x; then
|
---|
8751 | OTOOL64=":"
|
---|
8752 | else
|
---|
8753 | case $cross_compiling:$ac_tool_warned in
|
---|
8754 | yes:)
|
---|
8755 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
8756 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
8757 | ac_tool_warned=yes ;;
|
---|
8758 | esac
|
---|
8759 | OTOOL64=$ac_ct_OTOOL64
|
---|
8760 | fi
|
---|
8761 | else
|
---|
8762 | OTOOL64="$ac_cv_prog_OTOOL64"
|
---|
8763 | fi
|
---|
8764 |
|
---|
8765 |
|
---|
8766 |
|
---|
8767 |
|
---|
8768 |
|
---|
8769 |
|
---|
8770 |
|
---|
8771 |
|
---|
8772 |
|
---|
8773 |
|
---|
8774 |
|
---|
8775 |
|
---|
8776 |
|
---|
8777 |
|
---|
8778 |
|
---|
8779 |
|
---|
8780 |
|
---|
8781 |
|
---|
8782 |
|
---|
8783 |
|
---|
8784 |
|
---|
8785 |
|
---|
8786 |
|
---|
8787 |
|
---|
8788 |
|
---|
8789 |
|
---|
8790 |
|
---|
8791 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
|
---|
8792 | printf %s "checking for -single_module linker flag... " >&6; }
|
---|
8793 | if test ${lt_cv_apple_cc_single_mod+y}
|
---|
8794 | then :
|
---|
8795 | printf %s "(cached) " >&6
|
---|
8796 | else case e in #(
|
---|
8797 | e) lt_cv_apple_cc_single_mod=no
|
---|
8798 | if test -z "$LT_MULTI_MODULE"; then
|
---|
8799 | # By default we will add the -single_module flag. You can override
|
---|
8800 | # by either setting the environment variable LT_MULTI_MODULE
|
---|
8801 | # non-empty at configure time, or by adding -multi_module to the
|
---|
8802 | # link flags.
|
---|
8803 | rm -rf libconftest.dylib*
|
---|
8804 | echo "int foo(void){return 1;}" > conftest.c
|
---|
8805 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
---|
8806 | -dynamiclib -Wl,-single_module conftest.c" >&5
|
---|
8807 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
---|
8808 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
|
---|
8809 | _lt_result=$?
|
---|
8810 | # If there is a non-empty error log, and "single_module"
|
---|
8811 | # appears in it, assume the flag caused a linker warning
|
---|
8812 | if test -s conftest.err && $GREP single_module conftest.err; then
|
---|
8813 | cat conftest.err >&5
|
---|
8814 | # Otherwise, if the output was created with a 0 exit code from
|
---|
8815 | # the compiler, it worked.
|
---|
8816 | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
|
---|
8817 | lt_cv_apple_cc_single_mod=yes
|
---|
8818 | else
|
---|
8819 | cat conftest.err >&5
|
---|
8820 | fi
|
---|
8821 | rm -rf libconftest.dylib*
|
---|
8822 | rm -f conftest.*
|
---|
8823 | fi ;;
|
---|
8824 | esac
|
---|
8825 | fi
|
---|
8826 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
|
---|
8827 | printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
|
---|
8828 |
|
---|
8829 | # Feature test to disable chained fixups since it is not
|
---|
8830 | # compatible with '-undefined dynamic_lookup'
|
---|
8831 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
|
---|
8832 | printf %s "checking for -no_fixup_chains linker flag... " >&6; }
|
---|
8833 | if test ${lt_cv_support_no_fixup_chains+y}
|
---|
8834 | then :
|
---|
8835 | printf %s "(cached) " >&6
|
---|
8836 | else case e in #(
|
---|
8837 | e) save_LDFLAGS=$LDFLAGS
|
---|
8838 | LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
|
---|
8839 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
8840 | /* end confdefs.h. */
|
---|
8841 |
|
---|
8842 | int
|
---|
8843 | main (void)
|
---|
8844 | {
|
---|
8845 |
|
---|
8846 | ;
|
---|
8847 | return 0;
|
---|
8848 | }
|
---|
8849 | _ACEOF
|
---|
8850 | if ac_fn_c_try_link "$LINENO"
|
---|
8851 | then :
|
---|
8852 | lt_cv_support_no_fixup_chains=yes
|
---|
8853 | else case e in #(
|
---|
8854 | e) lt_cv_support_no_fixup_chains=no
|
---|
8855 | ;;
|
---|
8856 | esac
|
---|
8857 | fi
|
---|
8858 | rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
---|
8859 | conftest$ac_exeext conftest.$ac_ext
|
---|
8860 | LDFLAGS=$save_LDFLAGS
|
---|
8861 |
|
---|
8862 | ;;
|
---|
8863 | esac
|
---|
8864 | fi
|
---|
8865 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
|
---|
8866 | printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
|
---|
8867 |
|
---|
8868 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
|
---|
8869 | printf %s "checking for -exported_symbols_list linker flag... " >&6; }
|
---|
8870 | if test ${lt_cv_ld_exported_symbols_list+y}
|
---|
8871 | then :
|
---|
8872 | printf %s "(cached) " >&6
|
---|
8873 | else case e in #(
|
---|
8874 | e) lt_cv_ld_exported_symbols_list=no
|
---|
8875 | save_LDFLAGS=$LDFLAGS
|
---|
8876 | echo "_main" > conftest.sym
|
---|
8877 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
|
---|
8878 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
8879 | /* end confdefs.h. */
|
---|
8880 |
|
---|
8881 | int
|
---|
8882 | main (void)
|
---|
8883 | {
|
---|
8884 |
|
---|
8885 | ;
|
---|
8886 | return 0;
|
---|
8887 | }
|
---|
8888 | _ACEOF
|
---|
8889 | if ac_fn_c_try_link "$LINENO"
|
---|
8890 | then :
|
---|
8891 | lt_cv_ld_exported_symbols_list=yes
|
---|
8892 | else case e in #(
|
---|
8893 | e) lt_cv_ld_exported_symbols_list=no ;;
|
---|
8894 | esac
|
---|
8895 | fi
|
---|
8896 | rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
---|
8897 | conftest$ac_exeext conftest.$ac_ext
|
---|
8898 | LDFLAGS=$save_LDFLAGS
|
---|
8899 | ;;
|
---|
8900 | esac
|
---|
8901 | fi
|
---|
8902 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
|
---|
8903 | printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
|
---|
8904 |
|
---|
8905 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
|
---|
8906 | printf %s "checking for -force_load linker flag... " >&6; }
|
---|
8907 | if test ${lt_cv_ld_force_load+y}
|
---|
8908 | then :
|
---|
8909 | printf %s "(cached) " >&6
|
---|
8910 | else case e in #(
|
---|
8911 | e) lt_cv_ld_force_load=no
|
---|
8912 | cat > conftest.c << _LT_EOF
|
---|
8913 | int forced_loaded() { return 2;}
|
---|
8914 | _LT_EOF
|
---|
8915 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
|
---|
8916 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
|
---|
8917 | echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
|
---|
8918 | $AR $AR_FLAGS libconftest.a conftest.o 2>&5
|
---|
8919 | echo "$RANLIB libconftest.a" >&5
|
---|
8920 | $RANLIB libconftest.a 2>&5
|
---|
8921 | cat > conftest.c << _LT_EOF
|
---|
8922 | int main(void) { return 0;}
|
---|
8923 | _LT_EOF
|
---|
8924 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
|
---|
8925 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
|
---|
8926 | _lt_result=$?
|
---|
8927 | if test -s conftest.err && $GREP force_load conftest.err; then
|
---|
8928 | cat conftest.err >&5
|
---|
8929 | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
|
---|
8930 | lt_cv_ld_force_load=yes
|
---|
8931 | else
|
---|
8932 | cat conftest.err >&5
|
---|
8933 | fi
|
---|
8934 | rm -f conftest.err libconftest.a conftest conftest.c
|
---|
8935 | rm -rf conftest.dSYM
|
---|
8936 | ;;
|
---|
8937 | esac
|
---|
8938 | fi
|
---|
8939 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
|
---|
8940 | printf "%s\n" "$lt_cv_ld_force_load" >&6; }
|
---|
8941 | case $host_os in
|
---|
8942 | rhapsody* | darwin1.[012])
|
---|
8943 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
|
---|
8944 | darwin1.*)
|
---|
8945 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
|
---|
8946 | darwin*)
|
---|
8947 | case $MACOSX_DEPLOYMENT_TARGET,$host in
|
---|
8948 | 10.[012],*|,*powerpc*-darwin[5-8]*)
|
---|
8949 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
|
---|
8950 | *)
|
---|
8951 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
|
---|
8952 | if test yes = "$lt_cv_support_no_fixup_chains"; then
|
---|
8953 | as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
|
---|
8954 | fi
|
---|
8955 | ;;
|
---|
8956 | esac
|
---|
8957 | ;;
|
---|
8958 | esac
|
---|
8959 | if test yes = "$lt_cv_apple_cc_single_mod"; then
|
---|
8960 | _lt_dar_single_mod='$single_module'
|
---|
8961 | fi
|
---|
8962 | _lt_dar_needs_single_mod=no
|
---|
8963 | case $host_os in
|
---|
8964 | rhapsody* | darwin1.*)
|
---|
8965 | _lt_dar_needs_single_mod=yes ;;
|
---|
8966 | darwin*)
|
---|
8967 | # When targeting Mac OS X 10.4 (darwin 8) or later,
|
---|
8968 | # -single_module is the default and -multi_module is unsupported.
|
---|
8969 | # The toolchain on macOS 10.14 (darwin 18) and later cannot
|
---|
8970 | # target any OS version that needs -single_module.
|
---|
8971 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
|
---|
8972 | 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
|
---|
8973 | _lt_dar_needs_single_mod=yes ;;
|
---|
8974 | esac
|
---|
8975 | ;;
|
---|
8976 | esac
|
---|
8977 | if test yes = "$lt_cv_ld_exported_symbols_list"; then
|
---|
8978 | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
|
---|
8979 | else
|
---|
8980 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
|
---|
8981 | fi
|
---|
8982 | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
|
---|
8983 | _lt_dsymutil='~$DSYMUTIL $lib || :'
|
---|
8984 | else
|
---|
8985 | _lt_dsymutil=
|
---|
8986 | fi
|
---|
8987 | ;;
|
---|
8988 | esac
|
---|
8989 |
|
---|
8990 | # func_munge_path_list VARIABLE PATH
|
---|
8991 | # -----------------------------------
|
---|
8992 | # VARIABLE is name of variable containing _space_ separated list of
|
---|
8993 | # directories to be munged by the contents of PATH, which is string
|
---|
8994 | # having a format:
|
---|
8995 | # "DIR[:DIR]:"
|
---|
8996 | # string "DIR[ DIR]" will be prepended to VARIABLE
|
---|
8997 | # ":DIR[:DIR]"
|
---|
8998 | # string "DIR[ DIR]" will be appended to VARIABLE
|
---|
8999 | # "DIRP[:DIRP]::[DIRA:]DIRA"
|
---|
9000 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
|
---|
9001 | # "DIRA[ DIRA]" will be appended to VARIABLE
|
---|
9002 | # "DIR[:DIR]"
|
---|
9003 | # VARIABLE will be replaced by "DIR[ DIR]"
|
---|
9004 | func_munge_path_list ()
|
---|
9005 | {
|
---|
9006 | case x$2 in
|
---|
9007 | x)
|
---|
9008 | ;;
|
---|
9009 | *:)
|
---|
9010 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
|
---|
9011 | ;;
|
---|
9012 | x:*)
|
---|
9013 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
|
---|
9014 | ;;
|
---|
9015 | *::*)
|
---|
9016 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
|
---|
9017 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
|
---|
9018 | ;;
|
---|
9019 | *)
|
---|
9020 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
|
---|
9021 | ;;
|
---|
9022 | esac
|
---|
9023 | }
|
---|
9024 |
|
---|
9025 | ac_header= ac_cache=
|
---|
9026 | for ac_item in $ac_header_c_list
|
---|
9027 | do
|
---|
9028 | if test $ac_cache; then
|
---|
9029 | ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
|
---|
9030 | if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
|
---|
9031 | printf "%s\n" "#define $ac_item 1" >> confdefs.h
|
---|
9032 | fi
|
---|
9033 | ac_header= ac_cache=
|
---|
9034 | elif test $ac_header; then
|
---|
9035 | ac_cache=$ac_item
|
---|
9036 | else
|
---|
9037 | ac_header=$ac_item
|
---|
9038 | fi
|
---|
9039 | done
|
---|
9040 |
|
---|
9041 |
|
---|
9042 |
|
---|
9043 |
|
---|
9044 |
|
---|
9045 |
|
---|
9046 |
|
---|
9047 |
|
---|
9048 | if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
|
---|
9049 | then :
|
---|
9050 |
|
---|
9051 | printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
|
---|
9052 |
|
---|
9053 | fi
|
---|
9054 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
|
---|
9055 | "
|
---|
9056 | if test "x$ac_cv_header_dlfcn_h" = xyes
|
---|
9057 | then :
|
---|
9058 | printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
|
---|
9059 |
|
---|
9060 | fi
|
---|
9061 |
|
---|
9062 |
|
---|
9063 |
|
---|
9064 |
|
---|
9065 |
|
---|
9066 | # Set options
|
---|
9067 | enable_win32_dll=yes
|
---|
9068 |
|
---|
9069 | case $host in
|
---|
9070 | *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
|
---|
9071 | if test -n "$ac_tool_prefix"; then
|
---|
9072 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
|
---|
9073 | set dummy ${ac_tool_prefix}as; ac_word=$2
|
---|
9074 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
9075 | printf %s "checking for $ac_word... " >&6; }
|
---|
9076 | if test ${ac_cv_prog_AS+y}
|
---|
9077 | then :
|
---|
9078 | printf %s "(cached) " >&6
|
---|
9079 | else case e in #(
|
---|
9080 | e) if test -n "$AS"; then
|
---|
9081 | ac_cv_prog_AS="$AS" # Let the user override the test.
|
---|
9082 | else
|
---|
9083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
9084 | for as_dir in $PATH
|
---|
9085 | do
|
---|
9086 | IFS=$as_save_IFS
|
---|
9087 | case $as_dir in #(((
|
---|
9088 | '') as_dir=./ ;;
|
---|
9089 | */) ;;
|
---|
9090 | *) as_dir=$as_dir/ ;;
|
---|
9091 | esac
|
---|
9092 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
9093 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
9094 | ac_cv_prog_AS="${ac_tool_prefix}as"
|
---|
9095 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
9096 | break 2
|
---|
9097 | fi
|
---|
9098 | done
|
---|
9099 | done
|
---|
9100 | IFS=$as_save_IFS
|
---|
9101 |
|
---|
9102 | fi ;;
|
---|
9103 | esac
|
---|
9104 | fi
|
---|
9105 | AS=$ac_cv_prog_AS
|
---|
9106 | if test -n "$AS"; then
|
---|
9107 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
|
---|
9108 | printf "%s\n" "$AS" >&6; }
|
---|
9109 | else
|
---|
9110 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
9111 | printf "%s\n" "no" >&6; }
|
---|
9112 | fi
|
---|
9113 |
|
---|
9114 |
|
---|
9115 | fi
|
---|
9116 | if test -z "$ac_cv_prog_AS"; then
|
---|
9117 | ac_ct_AS=$AS
|
---|
9118 | # Extract the first word of "as", so it can be a program name with args.
|
---|
9119 | set dummy as; ac_word=$2
|
---|
9120 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
9121 | printf %s "checking for $ac_word... " >&6; }
|
---|
9122 | if test ${ac_cv_prog_ac_ct_AS+y}
|
---|
9123 | then :
|
---|
9124 | printf %s "(cached) " >&6
|
---|
9125 | else case e in #(
|
---|
9126 | e) if test -n "$ac_ct_AS"; then
|
---|
9127 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
|
---|
9128 | else
|
---|
9129 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
9130 | for as_dir in $PATH
|
---|
9131 | do
|
---|
9132 | IFS=$as_save_IFS
|
---|
9133 | case $as_dir in #(((
|
---|
9134 | '') as_dir=./ ;;
|
---|
9135 | */) ;;
|
---|
9136 | *) as_dir=$as_dir/ ;;
|
---|
9137 | esac
|
---|
9138 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
9139 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
9140 | ac_cv_prog_ac_ct_AS="as"
|
---|
9141 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
9142 | break 2
|
---|
9143 | fi
|
---|
9144 | done
|
---|
9145 | done
|
---|
9146 | IFS=$as_save_IFS
|
---|
9147 |
|
---|
9148 | fi ;;
|
---|
9149 | esac
|
---|
9150 | fi
|
---|
9151 | ac_ct_AS=$ac_cv_prog_ac_ct_AS
|
---|
9152 | if test -n "$ac_ct_AS"; then
|
---|
9153 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
|
---|
9154 | printf "%s\n" "$ac_ct_AS" >&6; }
|
---|
9155 | else
|
---|
9156 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
9157 | printf "%s\n" "no" >&6; }
|
---|
9158 | fi
|
---|
9159 |
|
---|
9160 | if test "x$ac_ct_AS" = x; then
|
---|
9161 | AS="false"
|
---|
9162 | else
|
---|
9163 | case $cross_compiling:$ac_tool_warned in
|
---|
9164 | yes:)
|
---|
9165 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
9166 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
9167 | ac_tool_warned=yes ;;
|
---|
9168 | esac
|
---|
9169 | AS=$ac_ct_AS
|
---|
9170 | fi
|
---|
9171 | else
|
---|
9172 | AS="$ac_cv_prog_AS"
|
---|
9173 | fi
|
---|
9174 |
|
---|
9175 | if test -n "$ac_tool_prefix"; then
|
---|
9176 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
|
---|
9177 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2
|
---|
9178 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
9179 | printf %s "checking for $ac_word... " >&6; }
|
---|
9180 | if test ${ac_cv_prog_DLLTOOL+y}
|
---|
9181 | then :
|
---|
9182 | printf %s "(cached) " >&6
|
---|
9183 | else case e in #(
|
---|
9184 | e) if test -n "$DLLTOOL"; then
|
---|
9185 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
|
---|
9186 | else
|
---|
9187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
9188 | for as_dir in $PATH
|
---|
9189 | do
|
---|
9190 | IFS=$as_save_IFS
|
---|
9191 | case $as_dir in #(((
|
---|
9192 | '') as_dir=./ ;;
|
---|
9193 | */) ;;
|
---|
9194 | *) as_dir=$as_dir/ ;;
|
---|
9195 | esac
|
---|
9196 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
9197 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
9198 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
|
---|
9199 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
9200 | break 2
|
---|
9201 | fi
|
---|
9202 | done
|
---|
9203 | done
|
---|
9204 | IFS=$as_save_IFS
|
---|
9205 |
|
---|
9206 | fi ;;
|
---|
9207 | esac
|
---|
9208 | fi
|
---|
9209 | DLLTOOL=$ac_cv_prog_DLLTOOL
|
---|
9210 | if test -n "$DLLTOOL"; then
|
---|
9211 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
|
---|
9212 | printf "%s\n" "$DLLTOOL" >&6; }
|
---|
9213 | else
|
---|
9214 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
9215 | printf "%s\n" "no" >&6; }
|
---|
9216 | fi
|
---|
9217 |
|
---|
9218 |
|
---|
9219 | fi
|
---|
9220 | if test -z "$ac_cv_prog_DLLTOOL"; then
|
---|
9221 | ac_ct_DLLTOOL=$DLLTOOL
|
---|
9222 | # Extract the first word of "dlltool", so it can be a program name with args.
|
---|
9223 | set dummy dlltool; ac_word=$2
|
---|
9224 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
9225 | printf %s "checking for $ac_word... " >&6; }
|
---|
9226 | if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
|
---|
9227 | then :
|
---|
9228 | printf %s "(cached) " >&6
|
---|
9229 | else case e in #(
|
---|
9230 | e) if test -n "$ac_ct_DLLTOOL"; then
|
---|
9231 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
|
---|
9232 | else
|
---|
9233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
9234 | for as_dir in $PATH
|
---|
9235 | do
|
---|
9236 | IFS=$as_save_IFS
|
---|
9237 | case $as_dir in #(((
|
---|
9238 | '') as_dir=./ ;;
|
---|
9239 | */) ;;
|
---|
9240 | *) as_dir=$as_dir/ ;;
|
---|
9241 | esac
|
---|
9242 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
9243 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
9244 | ac_cv_prog_ac_ct_DLLTOOL="dlltool"
|
---|
9245 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
9246 | break 2
|
---|
9247 | fi
|
---|
9248 | done
|
---|
9249 | done
|
---|
9250 | IFS=$as_save_IFS
|
---|
9251 |
|
---|
9252 | fi ;;
|
---|
9253 | esac
|
---|
9254 | fi
|
---|
9255 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
|
---|
9256 | if test -n "$ac_ct_DLLTOOL"; then
|
---|
9257 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
|
---|
9258 | printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
|
---|
9259 | else
|
---|
9260 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
9261 | printf "%s\n" "no" >&6; }
|
---|
9262 | fi
|
---|
9263 |
|
---|
9264 | if test "x$ac_ct_DLLTOOL" = x; then
|
---|
9265 | DLLTOOL="false"
|
---|
9266 | else
|
---|
9267 | case $cross_compiling:$ac_tool_warned in
|
---|
9268 | yes:)
|
---|
9269 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
9270 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
9271 | ac_tool_warned=yes ;;
|
---|
9272 | esac
|
---|
9273 | DLLTOOL=$ac_ct_DLLTOOL
|
---|
9274 | fi
|
---|
9275 | else
|
---|
9276 | DLLTOOL="$ac_cv_prog_DLLTOOL"
|
---|
9277 | fi
|
---|
9278 |
|
---|
9279 | if test -n "$ac_tool_prefix"; then
|
---|
9280 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
|
---|
9281 | set dummy ${ac_tool_prefix}objdump; ac_word=$2
|
---|
9282 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
9283 | printf %s "checking for $ac_word... " >&6; }
|
---|
9284 | if test ${ac_cv_prog_OBJDUMP+y}
|
---|
9285 | then :
|
---|
9286 | printf %s "(cached) " >&6
|
---|
9287 | else case e in #(
|
---|
9288 | e) if test -n "$OBJDUMP"; then
|
---|
9289 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
|
---|
9290 | else
|
---|
9291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
9292 | for as_dir in $PATH
|
---|
9293 | do
|
---|
9294 | IFS=$as_save_IFS
|
---|
9295 | case $as_dir in #(((
|
---|
9296 | '') as_dir=./ ;;
|
---|
9297 | */) ;;
|
---|
9298 | *) as_dir=$as_dir/ ;;
|
---|
9299 | esac
|
---|
9300 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
9301 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
9302 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
|
---|
9303 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
9304 | break 2
|
---|
9305 | fi
|
---|
9306 | done
|
---|
9307 | done
|
---|
9308 | IFS=$as_save_IFS
|
---|
9309 |
|
---|
9310 | fi ;;
|
---|
9311 | esac
|
---|
9312 | fi
|
---|
9313 | OBJDUMP=$ac_cv_prog_OBJDUMP
|
---|
9314 | if test -n "$OBJDUMP"; then
|
---|
9315 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
|
---|
9316 | printf "%s\n" "$OBJDUMP" >&6; }
|
---|
9317 | else
|
---|
9318 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
9319 | printf "%s\n" "no" >&6; }
|
---|
9320 | fi
|
---|
9321 |
|
---|
9322 |
|
---|
9323 | fi
|
---|
9324 | if test -z "$ac_cv_prog_OBJDUMP"; then
|
---|
9325 | ac_ct_OBJDUMP=$OBJDUMP
|
---|
9326 | # Extract the first word of "objdump", so it can be a program name with args.
|
---|
9327 | set dummy objdump; ac_word=$2
|
---|
9328 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
---|
9329 | printf %s "checking for $ac_word... " >&6; }
|
---|
9330 | if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
|
---|
9331 | then :
|
---|
9332 | printf %s "(cached) " >&6
|
---|
9333 | else case e in #(
|
---|
9334 | e) if test -n "$ac_ct_OBJDUMP"; then
|
---|
9335 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
|
---|
9336 | else
|
---|
9337 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
9338 | for as_dir in $PATH
|
---|
9339 | do
|
---|
9340 | IFS=$as_save_IFS
|
---|
9341 | case $as_dir in #(((
|
---|
9342 | '') as_dir=./ ;;
|
---|
9343 | */) ;;
|
---|
9344 | *) as_dir=$as_dir/ ;;
|
---|
9345 | esac
|
---|
9346 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
9347 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
|
---|
9348 | ac_cv_prog_ac_ct_OBJDUMP="objdump"
|
---|
9349 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
|
---|
9350 | break 2
|
---|
9351 | fi
|
---|
9352 | done
|
---|
9353 | done
|
---|
9354 | IFS=$as_save_IFS
|
---|
9355 |
|
---|
9356 | fi ;;
|
---|
9357 | esac
|
---|
9358 | fi
|
---|
9359 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
|
---|
9360 | if test -n "$ac_ct_OBJDUMP"; then
|
---|
9361 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
|
---|
9362 | printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
|
---|
9363 | else
|
---|
9364 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
9365 | printf "%s\n" "no" >&6; }
|
---|
9366 | fi
|
---|
9367 |
|
---|
9368 | if test "x$ac_ct_OBJDUMP" = x; then
|
---|
9369 | OBJDUMP="false"
|
---|
9370 | else
|
---|
9371 | case $cross_compiling:$ac_tool_warned in
|
---|
9372 | yes:)
|
---|
9373 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
---|
9374 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
---|
9375 | ac_tool_warned=yes ;;
|
---|
9376 | esac
|
---|
9377 | OBJDUMP=$ac_ct_OBJDUMP
|
---|
9378 | fi
|
---|
9379 | else
|
---|
9380 | OBJDUMP="$ac_cv_prog_OBJDUMP"
|
---|
9381 | fi
|
---|
9382 |
|
---|
9383 | ;;
|
---|
9384 | esac
|
---|
9385 |
|
---|
9386 | test -z "$AS" && AS=as
|
---|
9387 |
|
---|
9388 |
|
---|
9389 |
|
---|
9390 |
|
---|
9391 |
|
---|
9392 | test -z "$DLLTOOL" && DLLTOOL=dlltool
|
---|
9393 |
|
---|
9394 |
|
---|
9395 |
|
---|
9396 |
|
---|
9397 |
|
---|
9398 | test -z "$OBJDUMP" && OBJDUMP=objdump
|
---|
9399 |
|
---|
9400 |
|
---|
9401 |
|
---|
9402 |
|
---|
9403 |
|
---|
9404 |
|
---|
9405 |
|
---|
9406 | enable_dlopen=no
|
---|
9407 |
|
---|
9408 |
|
---|
9409 |
|
---|
9410 | # Check whether --enable-shared was given.
|
---|
9411 | if test ${enable_shared+y}
|
---|
9412 | then :
|
---|
9413 | enableval=$enable_shared; p=${PACKAGE-default}
|
---|
9414 | case $enableval in
|
---|
9415 | yes) enable_shared=yes ;;
|
---|
9416 | no) enable_shared=no ;;
|
---|
9417 | *)
|
---|
9418 | enable_shared=no
|
---|
9419 | # Look at the argument we got. We use all the common list separators.
|
---|
9420 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
|
---|
9421 | for pkg in $enableval; do
|
---|
9422 | IFS=$lt_save_ifs
|
---|
9423 | if test "X$pkg" = "X$p"; then
|
---|
9424 | enable_shared=yes
|
---|
9425 | fi
|
---|
9426 | done
|
---|
9427 | IFS=$lt_save_ifs
|
---|
9428 | ;;
|
---|
9429 | esac
|
---|
9430 | else case e in #(
|
---|
9431 | e) enable_shared=yes ;;
|
---|
9432 | esac
|
---|
9433 | fi
|
---|
9434 |
|
---|
9435 |
|
---|
9436 |
|
---|
9437 |
|
---|
9438 |
|
---|
9439 |
|
---|
9440 |
|
---|
9441 |
|
---|
9442 |
|
---|
9443 | # Check whether --enable-static was given.
|
---|
9444 | if test ${enable_static+y}
|
---|
9445 | then :
|
---|
9446 | enableval=$enable_static; p=${PACKAGE-default}
|
---|
9447 | case $enableval in
|
---|
9448 | yes) enable_static=yes ;;
|
---|
9449 | no) enable_static=no ;;
|
---|
9450 | *)
|
---|
9451 | enable_static=no
|
---|
9452 | # Look at the argument we got. We use all the common list separators.
|
---|
9453 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
|
---|
9454 | for pkg in $enableval; do
|
---|
9455 | IFS=$lt_save_ifs
|
---|
9456 | if test "X$pkg" = "X$p"; then
|
---|
9457 | enable_static=yes
|
---|
9458 | fi
|
---|
9459 | done
|
---|
9460 | IFS=$lt_save_ifs
|
---|
9461 | ;;
|
---|
9462 | esac
|
---|
9463 | else case e in #(
|
---|
9464 | e) enable_static=yes ;;
|
---|
9465 | esac
|
---|
9466 | fi
|
---|
9467 |
|
---|
9468 |
|
---|
9469 |
|
---|
9470 |
|
---|
9471 |
|
---|
9472 |
|
---|
9473 |
|
---|
9474 |
|
---|
9475 |
|
---|
9476 | # Check whether --enable-pic was given.
|
---|
9477 | if test ${enable_pic+y}
|
---|
9478 | then :
|
---|
9479 | enableval=$enable_pic; lt_p=${PACKAGE-default}
|
---|
9480 | case $enableval in
|
---|
9481 | yes|no) pic_mode=$enableval ;;
|
---|
9482 | *)
|
---|
9483 | pic_mode=default
|
---|
9484 | # Look at the argument we got. We use all the common list separators.
|
---|
9485 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
|
---|
9486 | for lt_pkg in $enableval; do
|
---|
9487 | IFS=$lt_save_ifs
|
---|
9488 | if test "X$lt_pkg" = "X$lt_p"; then
|
---|
9489 | pic_mode=yes
|
---|
9490 | fi
|
---|
9491 | done
|
---|
9492 | IFS=$lt_save_ifs
|
---|
9493 | ;;
|
---|
9494 | esac
|
---|
9495 | else case e in #(
|
---|
9496 | e) # Check whether --with-pic was given.
|
---|
9497 | if test ${with_pic+y}
|
---|
9498 | then :
|
---|
9499 | withval=$with_pic; lt_p=${PACKAGE-default}
|
---|
9500 | case $withval in
|
---|
9501 | yes|no) pic_mode=$withval ;;
|
---|
9502 | *)
|
---|
9503 | pic_mode=default
|
---|
9504 | # Look at the argument we got. We use all the common list separators.
|
---|
9505 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
|
---|
9506 | for lt_pkg in $withval; do
|
---|
9507 | IFS=$lt_save_ifs
|
---|
9508 | if test "X$lt_pkg" = "X$lt_p"; then
|
---|
9509 | pic_mode=yes
|
---|
9510 | fi
|
---|
9511 | done
|
---|
9512 | IFS=$lt_save_ifs
|
---|
9513 | ;;
|
---|
9514 | esac
|
---|
9515 | else case e in #(
|
---|
9516 | e) pic_mode=default ;;
|
---|
9517 | esac
|
---|
9518 | fi
|
---|
9519 |
|
---|
9520 | ;;
|
---|
9521 | esac
|
---|
9522 | fi
|
---|
9523 |
|
---|
9524 |
|
---|
9525 |
|
---|
9526 |
|
---|
9527 |
|
---|
9528 |
|
---|
9529 |
|
---|
9530 |
|
---|
9531 | # Check whether --enable-fast-install was given.
|
---|
9532 | if test ${enable_fast_install+y}
|
---|
9533 | then :
|
---|
9534 | enableval=$enable_fast_install; p=${PACKAGE-default}
|
---|
9535 | case $enableval in
|
---|
9536 | yes) enable_fast_install=yes ;;
|
---|
9537 | no) enable_fast_install=no ;;
|
---|
9538 | *)
|
---|
9539 | enable_fast_install=no
|
---|
9540 | # Look at the argument we got. We use all the common list separators.
|
---|
9541 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
|
---|
9542 | for pkg in $enableval; do
|
---|
9543 | IFS=$lt_save_ifs
|
---|
9544 | if test "X$pkg" = "X$p"; then
|
---|
9545 | enable_fast_install=yes
|
---|
9546 | fi
|
---|
9547 | done
|
---|
9548 | IFS=$lt_save_ifs
|
---|
9549 | ;;
|
---|
9550 | esac
|
---|
9551 | else case e in #(
|
---|
9552 | e) enable_fast_install=yes ;;
|
---|
9553 | esac
|
---|
9554 | fi
|
---|
9555 |
|
---|
9556 |
|
---|
9557 |
|
---|
9558 |
|
---|
9559 |
|
---|
9560 |
|
---|
9561 |
|
---|
9562 |
|
---|
9563 | shared_archive_member_spec=
|
---|
9564 | case $host,$enable_shared in
|
---|
9565 | power*-*-aix[5-9]*,yes)
|
---|
9566 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
|
---|
9567 | printf %s "checking which variant of shared library versioning to provide... " >&6; }
|
---|
9568 | # Check whether --enable-aix-soname was given.
|
---|
9569 | if test ${enable_aix_soname+y}
|
---|
9570 | then :
|
---|
9571 | enableval=$enable_aix_soname; case $enableval in
|
---|
9572 | aix|svr4|both)
|
---|
9573 | ;;
|
---|
9574 | *)
|
---|
9575 | as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
|
---|
9576 | ;;
|
---|
9577 | esac
|
---|
9578 | lt_cv_with_aix_soname=$enable_aix_soname
|
---|
9579 | else case e in #(
|
---|
9580 | e) # Check whether --with-aix-soname was given.
|
---|
9581 | if test ${with_aix_soname+y}
|
---|
9582 | then :
|
---|
9583 | withval=$with_aix_soname; case $withval in
|
---|
9584 | aix|svr4|both)
|
---|
9585 | ;;
|
---|
9586 | *)
|
---|
9587 | as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
|
---|
9588 | ;;
|
---|
9589 | esac
|
---|
9590 | lt_cv_with_aix_soname=$with_aix_soname
|
---|
9591 | else case e in #(
|
---|
9592 | e) if test ${lt_cv_with_aix_soname+y}
|
---|
9593 | then :
|
---|
9594 | printf %s "(cached) " >&6
|
---|
9595 | else case e in #(
|
---|
9596 | e) lt_cv_with_aix_soname=aix ;;
|
---|
9597 | esac
|
---|
9598 | fi
|
---|
9599 | ;;
|
---|
9600 | esac
|
---|
9601 | fi
|
---|
9602 |
|
---|
9603 | enable_aix_soname=$lt_cv_with_aix_soname ;;
|
---|
9604 | esac
|
---|
9605 | fi
|
---|
9606 |
|
---|
9607 | with_aix_soname=$enable_aix_soname
|
---|
9608 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
|
---|
9609 | printf "%s\n" "$with_aix_soname" >&6; }
|
---|
9610 | if test aix != "$with_aix_soname"; then
|
---|
9611 | # For the AIX way of multilib, we name the shared archive member
|
---|
9612 | # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
|
---|
9613 | # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
|
---|
9614 | # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
|
---|
9615 | # the AIX toolchain works better with OBJECT_MODE set (default 32).
|
---|
9616 | if test 64 = "${OBJECT_MODE-32}"; then
|
---|
9617 | shared_archive_member_spec=shr_64
|
---|
9618 | else
|
---|
9619 | shared_archive_member_spec=shr
|
---|
9620 | fi
|
---|
9621 | fi
|
---|
9622 | ;;
|
---|
9623 | *)
|
---|
9624 | with_aix_soname=aix
|
---|
9625 | ;;
|
---|
9626 | esac
|
---|
9627 |
|
---|
9628 |
|
---|
9629 |
|
---|
9630 |
|
---|
9631 |
|
---|
9632 |
|
---|
9633 |
|
---|
9634 |
|
---|
9635 |
|
---|
9636 |
|
---|
9637 | # This can be used to rebuild libtool when needed
|
---|
9638 | LIBTOOL_DEPS=$ltmain
|
---|
9639 |
|
---|
9640 | # Always use our own libtool.
|
---|
9641 | LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
---|
9642 |
|
---|
9643 |
|
---|
9644 |
|
---|
9645 |
|
---|
9646 |
|
---|
9647 |
|
---|
9648 |
|
---|
9649 |
|
---|
9650 |
|
---|
9651 |
|
---|
9652 |
|
---|
9653 |
|
---|
9654 |
|
---|
9655 |
|
---|
9656 |
|
---|
9657 |
|
---|
9658 |
|
---|
9659 |
|
---|
9660 |
|
---|
9661 |
|
---|
9662 |
|
---|
9663 |
|
---|
9664 |
|
---|
9665 |
|
---|
9666 |
|
---|
9667 |
|
---|
9668 |
|
---|
9669 |
|
---|
9670 |
|
---|
9671 |
|
---|
9672 | test -z "$LN_S" && LN_S="ln -s"
|
---|
9673 |
|
---|
9674 |
|
---|
9675 |
|
---|
9676 |
|
---|
9677 |
|
---|
9678 |
|
---|
9679 |
|
---|
9680 |
|
---|
9681 |
|
---|
9682 |
|
---|
9683 |
|
---|
9684 |
|
---|
9685 |
|
---|
9686 |
|
---|
9687 | if test -n "${ZSH_VERSION+set}"; then
|
---|
9688 | setopt NO_GLOB_SUBST
|
---|
9689 | fi
|
---|
9690 |
|
---|
9691 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
|
---|
9692 | printf %s "checking for objdir... " >&6; }
|
---|
9693 | if test ${lt_cv_objdir+y}
|
---|
9694 | then :
|
---|
9695 | printf %s "(cached) " >&6
|
---|
9696 | else case e in #(
|
---|
9697 | e) rm -f .libs 2>/dev/null
|
---|
9698 | mkdir .libs 2>/dev/null
|
---|
9699 | if test -d .libs; then
|
---|
9700 | lt_cv_objdir=.libs
|
---|
9701 | else
|
---|
9702 | # MS-DOS does not allow filenames that begin with a dot.
|
---|
9703 | lt_cv_objdir=_libs
|
---|
9704 | fi
|
---|
9705 | rmdir .libs 2>/dev/null ;;
|
---|
9706 | esac
|
---|
9707 | fi
|
---|
9708 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
|
---|
9709 | printf "%s\n" "$lt_cv_objdir" >&6; }
|
---|
9710 | objdir=$lt_cv_objdir
|
---|
9711 |
|
---|
9712 |
|
---|
9713 |
|
---|
9714 |
|
---|
9715 |
|
---|
9716 | printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
|
---|
9717 |
|
---|
9718 |
|
---|
9719 |
|
---|
9720 |
|
---|
9721 | case $host_os in
|
---|
9722 | aix3*)
|
---|
9723 | # AIX sometimes has problems with the GCC collect2 program. For some
|
---|
9724 | # reason, if we set the COLLECT_NAMES environment variable, the problems
|
---|
9725 | # vanish in a puff of smoke.
|
---|
9726 | if test set != "${COLLECT_NAMES+set}"; then
|
---|
9727 | COLLECT_NAMES=
|
---|
9728 | export COLLECT_NAMES
|
---|
9729 | fi
|
---|
9730 | ;;
|
---|
9731 | esac
|
---|
9732 |
|
---|
9733 | # Global variables:
|
---|
9734 | ofile=libtool
|
---|
9735 | can_build_shared=yes
|
---|
9736 |
|
---|
9737 | # All known linkers require a '.a' archive for static linking (except MSVC and
|
---|
9738 | # ICC, which need '.lib').
|
---|
9739 | libext=a
|
---|
9740 |
|
---|
9741 | with_gnu_ld=$lt_cv_prog_gnu_ld
|
---|
9742 |
|
---|
9743 | old_CC=$CC
|
---|
9744 | old_CFLAGS=$CFLAGS
|
---|
9745 |
|
---|
9746 | # Set sane defaults for various variables
|
---|
9747 | test -z "$CC" && CC=cc
|
---|
9748 | test -z "$LTCC" && LTCC=$CC
|
---|
9749 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
|
---|
9750 | test -z "$LD" && LD=ld
|
---|
9751 | test -z "$ac_objext" && ac_objext=o
|
---|
9752 |
|
---|
9753 | func_cc_basename $compiler
|
---|
9754 | cc_basename=$func_cc_basename_result
|
---|
9755 |
|
---|
9756 |
|
---|
9757 | # Only perform the check for file, if the check method requires it
|
---|
9758 | test -z "$MAGIC_CMD" && MAGIC_CMD=file
|
---|
9759 | case $deplibs_check_method in
|
---|
9760 | file_magic*)
|
---|
9761 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
---|
9762 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
|
---|
9763 | printf %s "checking for ${ac_tool_prefix}file... " >&6; }
|
---|
9764 | if test ${lt_cv_path_MAGIC_CMD+y}
|
---|
9765 | then :
|
---|
9766 | printf %s "(cached) " >&6
|
---|
9767 | else case e in #(
|
---|
9768 | e) case $MAGIC_CMD in
|
---|
9769 | [\\/*] | ?:[\\/]*)
|
---|
9770 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
|
---|
9771 | ;;
|
---|
9772 | *)
|
---|
9773 | lt_save_MAGIC_CMD=$MAGIC_CMD
|
---|
9774 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
|
---|
9775 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
|
---|
9776 | for ac_dir in $ac_dummy; do
|
---|
9777 | IFS=$lt_save_ifs
|
---|
9778 | test -z "$ac_dir" && ac_dir=.
|
---|
9779 | if test -f "$ac_dir/${ac_tool_prefix}file"; then
|
---|
9780 | lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
|
---|
9781 | if test -n "$file_magic_test_file"; then
|
---|
9782 | case $deplibs_check_method in
|
---|
9783 | "file_magic "*)
|
---|
9784 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
|
---|
9785 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD
|
---|
9786 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
---|
9787 | $EGREP "$file_magic_regex" > /dev/null; then
|
---|
9788 | :
|
---|
9789 | else
|
---|
9790 | cat <<_LT_EOF 1>&2
|
---|
9791 |
|
---|
9792 | *** Warning: the command libtool uses to detect shared libraries,
|
---|
9793 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
---|
9794 | *** The result is that libtool may fail to recognize shared libraries
|
---|
9795 | *** as such. This will affect the creation of libtool libraries that
|
---|
9796 | *** depend on shared libraries, but programs linked with such libtool
|
---|
9797 | *** libraries will work regardless of this problem. Nevertheless, you
|
---|
9798 | *** may want to report the problem to your system manager and/or to
|
---|
9799 | *** [email protected]
|
---|
9800 |
|
---|
9801 | _LT_EOF
|
---|
9802 | fi ;;
|
---|
9803 | esac
|
---|
9804 | fi
|
---|
9805 | break
|
---|
9806 | fi
|
---|
9807 | done
|
---|
9808 | IFS=$lt_save_ifs
|
---|
9809 | MAGIC_CMD=$lt_save_MAGIC_CMD
|
---|
9810 | ;;
|
---|
9811 | esac ;;
|
---|
9812 | esac
|
---|
9813 | fi
|
---|
9814 |
|
---|
9815 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD
|
---|
9816 | if test -n "$MAGIC_CMD"; then
|
---|
9817 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
|
---|
9818 | printf "%s\n" "$MAGIC_CMD" >&6; }
|
---|
9819 | else
|
---|
9820 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
9821 | printf "%s\n" "no" >&6; }
|
---|
9822 | fi
|
---|
9823 |
|
---|
9824 |
|
---|
9825 |
|
---|
9826 |
|
---|
9827 |
|
---|
9828 | if test -z "$lt_cv_path_MAGIC_CMD"; then
|
---|
9829 | if test -n "$ac_tool_prefix"; then
|
---|
9830 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
|
---|
9831 | printf %s "checking for file... " >&6; }
|
---|
9832 | if test ${lt_cv_path_MAGIC_CMD+y}
|
---|
9833 | then :
|
---|
9834 | printf %s "(cached) " >&6
|
---|
9835 | else case e in #(
|
---|
9836 | e) case $MAGIC_CMD in
|
---|
9837 | [\\/*] | ?:[\\/]*)
|
---|
9838 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
|
---|
9839 | ;;
|
---|
9840 | *)
|
---|
9841 | lt_save_MAGIC_CMD=$MAGIC_CMD
|
---|
9842 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
|
---|
9843 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
|
---|
9844 | for ac_dir in $ac_dummy; do
|
---|
9845 | IFS=$lt_save_ifs
|
---|
9846 | test -z "$ac_dir" && ac_dir=.
|
---|
9847 | if test -f "$ac_dir/file"; then
|
---|
9848 | lt_cv_path_MAGIC_CMD=$ac_dir/"file"
|
---|
9849 | if test -n "$file_magic_test_file"; then
|
---|
9850 | case $deplibs_check_method in
|
---|
9851 | "file_magic "*)
|
---|
9852 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
|
---|
9853 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD
|
---|
9854 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
---|
9855 | $EGREP "$file_magic_regex" > /dev/null; then
|
---|
9856 | :
|
---|
9857 | else
|
---|
9858 | cat <<_LT_EOF 1>&2
|
---|
9859 |
|
---|
9860 | *** Warning: the command libtool uses to detect shared libraries,
|
---|
9861 | *** $file_magic_cmd, produces output that libtool cannot recognize.
|
---|
9862 | *** The result is that libtool may fail to recognize shared libraries
|
---|
9863 | *** as such. This will affect the creation of libtool libraries that
|
---|
9864 | *** depend on shared libraries, but programs linked with such libtool
|
---|
9865 | *** libraries will work regardless of this problem. Nevertheless, you
|
---|
9866 | *** may want to report the problem to your system manager and/or to
|
---|
9867 | *** [email protected]
|
---|
9868 |
|
---|
9869 | _LT_EOF
|
---|
9870 | fi ;;
|
---|
9871 | esac
|
---|
9872 | fi
|
---|
9873 | break
|
---|
9874 | fi
|
---|
9875 | done
|
---|
9876 | IFS=$lt_save_ifs
|
---|
9877 | MAGIC_CMD=$lt_save_MAGIC_CMD
|
---|
9878 | ;;
|
---|
9879 | esac ;;
|
---|
9880 | esac
|
---|
9881 | fi
|
---|
9882 |
|
---|
9883 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD
|
---|
9884 | if test -n "$MAGIC_CMD"; then
|
---|
9885 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
|
---|
9886 | printf "%s\n" "$MAGIC_CMD" >&6; }
|
---|
9887 | else
|
---|
9888 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
9889 | printf "%s\n" "no" >&6; }
|
---|
9890 | fi
|
---|
9891 |
|
---|
9892 |
|
---|
9893 | else
|
---|
9894 | MAGIC_CMD=:
|
---|
9895 | fi
|
---|
9896 | fi
|
---|
9897 |
|
---|
9898 | fi
|
---|
9899 | ;;
|
---|
9900 | esac
|
---|
9901 |
|
---|
9902 | # Use C for the default configuration in the libtool script
|
---|
9903 |
|
---|
9904 | lt_save_CC=$CC
|
---|
9905 | ac_ext=c
|
---|
9906 | ac_cpp='$CPP $CPPFLAGS'
|
---|
9907 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
9908 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
9909 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
9910 |
|
---|
9911 |
|
---|
9912 | # Source file extension for C test sources.
|
---|
9913 | ac_ext=c
|
---|
9914 |
|
---|
9915 | # Object file extension for compiled C test sources.
|
---|
9916 | objext=o
|
---|
9917 | objext=$objext
|
---|
9918 |
|
---|
9919 | # Code to be used in simple compile tests
|
---|
9920 | lt_simple_compile_test_code="int some_variable = 0;"
|
---|
9921 |
|
---|
9922 | # Code to be used in simple link tests
|
---|
9923 | lt_simple_link_test_code='int main(void){return(0);}'
|
---|
9924 |
|
---|
9925 |
|
---|
9926 |
|
---|
9927 |
|
---|
9928 |
|
---|
9929 |
|
---|
9930 |
|
---|
9931 | # If no C compiler was specified, use CC.
|
---|
9932 | LTCC=${LTCC-"$CC"}
|
---|
9933 |
|
---|
9934 | # If no C compiler flags were specified, use CFLAGS.
|
---|
9935 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
---|
9936 |
|
---|
9937 | # Allow CC to be a program name with arguments.
|
---|
9938 | compiler=$CC
|
---|
9939 |
|
---|
9940 | # Save the default compiler, since it gets overwritten when the other
|
---|
9941 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
|
---|
9942 | compiler_DEFAULT=$CC
|
---|
9943 |
|
---|
9944 | # save warnings/boilerplate of simple test code
|
---|
9945 | ac_outfile=conftest.$ac_objext
|
---|
9946 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext
|
---|
9947 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
---|
9948 | _lt_compiler_boilerplate=`cat conftest.err`
|
---|
9949 | $RM conftest*
|
---|
9950 |
|
---|
9951 | ac_outfile=conftest.$ac_objext
|
---|
9952 | echo "$lt_simple_link_test_code" >conftest.$ac_ext
|
---|
9953 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
---|
9954 | _lt_linker_boilerplate=`cat conftest.err`
|
---|
9955 | $RM -r conftest*
|
---|
9956 |
|
---|
9957 |
|
---|
9958 | ## CAVEAT EMPTOR:
|
---|
9959 | ## There is no encapsulation within the following macros, do not change
|
---|
9960 | ## the running order or otherwise move them around unless you know exactly
|
---|
9961 | ## what you are doing...
|
---|
9962 | if test -n "$compiler"; then
|
---|
9963 |
|
---|
9964 | lt_prog_compiler_no_builtin_flag=
|
---|
9965 |
|
---|
9966 | if test yes = "$GCC"; then
|
---|
9967 | case $cc_basename in
|
---|
9968 | nvcc*)
|
---|
9969 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
|
---|
9970 | *)
|
---|
9971 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
|
---|
9972 | esac
|
---|
9973 |
|
---|
9974 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
|
---|
9975 | printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
|
---|
9976 | if test ${lt_cv_prog_compiler_rtti_exceptions+y}
|
---|
9977 | then :
|
---|
9978 | printf %s "(cached) " >&6
|
---|
9979 | else case e in #(
|
---|
9980 | e) lt_cv_prog_compiler_rtti_exceptions=no
|
---|
9981 | ac_outfile=conftest.$ac_objext
|
---|
9982 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
---|
9983 | lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
|
---|
9984 | # Insert the option either (1) after the last *FLAGS variable, or
|
---|
9985 | # (2) before a word containing "conftest.", or (3) at the end.
|
---|
9986 | # Note that $ac_compile itself does not contain backslashes and begins
|
---|
9987 | # with a dollar sign (not a hyphen), so the echo should work correctly.
|
---|
9988 | # The option is referenced via a variable to avoid confusing sed.
|
---|
9989 | lt_compile=`echo "$ac_compile" | $SED \
|
---|
9990 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
---|
9991 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
---|
9992 | -e 's:$: $lt_compiler_flag:'`
|
---|
9993 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
|
---|
9994 | (eval "$lt_compile" 2>conftest.err)
|
---|
9995 | ac_status=$?
|
---|
9996 | cat conftest.err >&5
|
---|
9997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9998 | if (exit $ac_status) && test -s "$ac_outfile"; then
|
---|
9999 | # The compiler can only warn and ignore the option if not recognized
|
---|
10000 | # So say no if there are warnings other than the usual output.
|
---|
10001 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
|
---|
10002 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
---|
10003 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
---|
10004 | lt_cv_prog_compiler_rtti_exceptions=yes
|
---|
10005 | fi
|
---|
10006 | fi
|
---|
10007 | $RM conftest*
|
---|
10008 | ;;
|
---|
10009 | esac
|
---|
10010 | fi
|
---|
10011 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
|
---|
10012 | printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
|
---|
10013 |
|
---|
10014 | if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
|
---|
10015 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
|
---|
10016 | else
|
---|
10017 | :
|
---|
10018 | fi
|
---|
10019 |
|
---|
10020 | fi
|
---|
10021 |
|
---|
10022 |
|
---|
10023 |
|
---|
10024 |
|
---|
10025 |
|
---|
10026 |
|
---|
10027 | lt_prog_compiler_wl=
|
---|
10028 | lt_prog_compiler_pic=
|
---|
10029 | lt_prog_compiler_static=
|
---|
10030 |
|
---|
10031 |
|
---|
10032 | if test yes = "$GCC"; then
|
---|
10033 | lt_prog_compiler_wl='-Wl,'
|
---|
10034 | lt_prog_compiler_static='-static'
|
---|
10035 |
|
---|
10036 | case $host_os in
|
---|
10037 | aix*)
|
---|
10038 | # All AIX code is PIC.
|
---|
10039 | if test ia64 = "$host_cpu"; then
|
---|
10040 | # AIX 5 now supports IA64 processor
|
---|
10041 | lt_prog_compiler_static='-Bstatic'
|
---|
10042 | fi
|
---|
10043 | lt_prog_compiler_pic='-fPIC'
|
---|
10044 | ;;
|
---|
10045 |
|
---|
10046 | amigaos*)
|
---|
10047 | case $host_cpu in
|
---|
10048 | powerpc)
|
---|
10049 | # see comment about AmigaOS4 .so support
|
---|
10050 | lt_prog_compiler_pic='-fPIC'
|
---|
10051 | ;;
|
---|
10052 | m68k)
|
---|
10053 | # FIXME: we need at least 68020 code to build shared libraries, but
|
---|
10054 | # adding the '-m68020' flag to GCC prevents building anything better,
|
---|
10055 | # like '-m68040'.
|
---|
10056 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
|
---|
10057 | ;;
|
---|
10058 | esac
|
---|
10059 | ;;
|
---|
10060 |
|
---|
10061 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
---|
10062 | # PIC is the default for these OSes.
|
---|
10063 | ;;
|
---|
10064 |
|
---|
10065 | mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
|
---|
10066 | # This hack is so that the source file can tell whether it is being
|
---|
10067 | # built for inclusion in a dll (and should export symbols for example).
|
---|
10068 | # Although the cygwin gcc ignores -fPIC, still need this for old-style
|
---|
10069 | # (--disable-auto-import) libraries
|
---|
10070 | lt_prog_compiler_pic='-DDLL_EXPORT'
|
---|
10071 | case $host_os in
|
---|
10072 | os2*)
|
---|
10073 | lt_prog_compiler_static='$wl-static'
|
---|
10074 | ;;
|
---|
10075 | esac
|
---|
10076 | ;;
|
---|
10077 |
|
---|
10078 | darwin* | rhapsody*)
|
---|
10079 | # PIC is the default on this platform
|
---|
10080 | # Common symbols not allowed in MH_DYLIB files
|
---|
10081 | lt_prog_compiler_pic='-fno-common'
|
---|
10082 | ;;
|
---|
10083 |
|
---|
10084 | haiku*)
|
---|
10085 | # PIC is the default for Haiku.
|
---|
10086 | # The "-static" flag exists, but is broken.
|
---|
10087 | lt_prog_compiler_static=
|
---|
10088 | ;;
|
---|
10089 |
|
---|
10090 | hpux*)
|
---|
10091 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
|
---|
10092 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
|
---|
10093 | # sets the default TLS model and affects inlining.
|
---|
10094 | case $host_cpu in
|
---|
10095 | hppa*64*)
|
---|
10096 | # +Z the default
|
---|
10097 | ;;
|
---|
10098 | *)
|
---|
10099 | lt_prog_compiler_pic='-fPIC'
|
---|
10100 | ;;
|
---|
10101 | esac
|
---|
10102 | ;;
|
---|
10103 |
|
---|
10104 | interix[3-9]*)
|
---|
10105 | # Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
---|
10106 | # Instead, we relocate shared libraries at runtime.
|
---|
10107 | ;;
|
---|
10108 |
|
---|
10109 | msdosdjgpp*)
|
---|
10110 | # Just because we use GCC doesn't mean we suddenly get shared libraries
|
---|
10111 | # on systems that don't support them.
|
---|
10112 | lt_prog_compiler_can_build_shared=no
|
---|
10113 | enable_shared=no
|
---|
10114 | ;;
|
---|
10115 |
|
---|
10116 | *nto* | *qnx*)
|
---|
10117 | # QNX uses GNU C++, but need to define -shared option too, otherwise
|
---|
10118 | # it will coredump.
|
---|
10119 | lt_prog_compiler_pic='-fPIC -shared'
|
---|
10120 | ;;
|
---|
10121 |
|
---|
10122 | sysv4*MP*)
|
---|
10123 | if test -d /usr/nec; then
|
---|
10124 | lt_prog_compiler_pic=-Kconform_pic
|
---|
10125 | fi
|
---|
10126 | ;;
|
---|
10127 |
|
---|
10128 | *)
|
---|
10129 | lt_prog_compiler_pic='-fPIC'
|
---|
10130 | ;;
|
---|
10131 | esac
|
---|
10132 |
|
---|
10133 | case $cc_basename in
|
---|
10134 | nvcc*) # Cuda Compiler Driver 2.2
|
---|
10135 | lt_prog_compiler_wl='-Xlinker '
|
---|
10136 | if test -n "$lt_prog_compiler_pic"; then
|
---|
10137 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
|
---|
10138 | fi
|
---|
10139 | ;;
|
---|
10140 | esac
|
---|
10141 | else
|
---|
10142 | # PORTME Check for flag to pass linker flags through the system compiler.
|
---|
10143 | case $host_os in
|
---|
10144 | aix*)
|
---|
10145 | lt_prog_compiler_wl='-Wl,'
|
---|
10146 | if test ia64 = "$host_cpu"; then
|
---|
10147 | # AIX 5 now supports IA64 processor
|
---|
10148 | lt_prog_compiler_static='-Bstatic'
|
---|
10149 | else
|
---|
10150 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
|
---|
10151 | fi
|
---|
10152 | ;;
|
---|
10153 |
|
---|
10154 | darwin* | rhapsody*)
|
---|
10155 | # PIC is the default on this platform
|
---|
10156 | # Common symbols not allowed in MH_DYLIB files
|
---|
10157 | lt_prog_compiler_pic='-fno-common'
|
---|
10158 | case $cc_basename in
|
---|
10159 | nagfor*)
|
---|
10160 | # NAG Fortran compiler
|
---|
10161 | lt_prog_compiler_wl='-Wl,-Wl,,'
|
---|
10162 | lt_prog_compiler_pic='-PIC'
|
---|
10163 | lt_prog_compiler_static='-Bstatic'
|
---|
10164 | ;;
|
---|
10165 | esac
|
---|
10166 | ;;
|
---|
10167 |
|
---|
10168 | mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
|
---|
10169 | # This hack is so that the source file can tell whether it is being
|
---|
10170 | # built for inclusion in a dll (and should export symbols for example).
|
---|
10171 | lt_prog_compiler_pic='-DDLL_EXPORT'
|
---|
10172 | case $host_os in
|
---|
10173 | os2*)
|
---|
10174 | lt_prog_compiler_static='$wl-static'
|
---|
10175 | ;;
|
---|
10176 | esac
|
---|
10177 | ;;
|
---|
10178 |
|
---|
10179 | hpux9* | hpux10* | hpux11*)
|
---|
10180 | lt_prog_compiler_wl='-Wl,'
|
---|
10181 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
---|
10182 | # not for PA HP-UX.
|
---|
10183 | case $host_cpu in
|
---|
10184 | hppa*64*|ia64*)
|
---|
10185 | # +Z the default
|
---|
10186 | ;;
|
---|
10187 | *)
|
---|
10188 | lt_prog_compiler_pic='+Z'
|
---|
10189 | ;;
|
---|
10190 | esac
|
---|
10191 | # Is there a better lt_prog_compiler_static that works with the bundled CC?
|
---|
10192 | lt_prog_compiler_static='$wl-a ${wl}archive'
|
---|
10193 | ;;
|
---|
10194 |
|
---|
10195 | irix5* | irix6* | nonstopux*)
|
---|
10196 | lt_prog_compiler_wl='-Wl,'
|
---|
10197 | # PIC (with -KPIC) is the default.
|
---|
10198 | lt_prog_compiler_static='-non_shared'
|
---|
10199 | ;;
|
---|
10200 |
|
---|
10201 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
|
---|
10202 | case $cc_basename in
|
---|
10203 | # old Intel for x86_64, which still supported -KPIC.
|
---|
10204 | ecc*)
|
---|
10205 | lt_prog_compiler_wl='-Wl,'
|
---|
10206 | lt_prog_compiler_pic='-KPIC'
|
---|
10207 | lt_prog_compiler_static='-static'
|
---|
10208 | ;;
|
---|
10209 | *flang* | ftn | f18* | f95*)
|
---|
10210 | # Flang compiler.
|
---|
10211 | lt_prog_compiler_wl='-Wl,'
|
---|
10212 | lt_prog_compiler_pic='-fPIC'
|
---|
10213 | lt_prog_compiler_static='-static'
|
---|
10214 | ;;
|
---|
10215 | # icc used to be incompatible with GCC.
|
---|
10216 | # ICC 10 doesn't accept -KPIC any more.
|
---|
10217 | icc* | ifort*)
|
---|
10218 | lt_prog_compiler_wl='-Wl,'
|
---|
10219 | lt_prog_compiler_pic='-fPIC'
|
---|
10220 | lt_prog_compiler_static='-static'
|
---|
10221 | ;;
|
---|
10222 | # Lahey Fortran 8.1.
|
---|
10223 | lf95*)
|
---|
10224 | lt_prog_compiler_wl='-Wl,'
|
---|
10225 | lt_prog_compiler_pic='--shared'
|
---|
10226 | lt_prog_compiler_static='--static'
|
---|
10227 | ;;
|
---|
10228 | nagfor*)
|
---|
10229 | # NAG Fortran compiler
|
---|
10230 | lt_prog_compiler_wl='-Wl,-Wl,,'
|
---|
10231 | lt_prog_compiler_pic='-PIC'
|
---|
10232 | lt_prog_compiler_static='-Bstatic'
|
---|
10233 | ;;
|
---|
10234 | tcc*)
|
---|
10235 | # Fabrice Bellard et al's Tiny C Compiler
|
---|
10236 | lt_prog_compiler_wl='-Wl,'
|
---|
10237 | lt_prog_compiler_pic='-fPIC'
|
---|
10238 | lt_prog_compiler_static='-static'
|
---|
10239 | ;;
|
---|
10240 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
|
---|
10241 | # Portland Group compilers (*not* the Pentium gcc compiler,
|
---|
10242 | # which looks to be a dead project)
|
---|
10243 | lt_prog_compiler_wl='-Wl,'
|
---|
10244 | lt_prog_compiler_pic='-fpic'
|
---|
10245 | lt_prog_compiler_static='-Bstatic'
|
---|
10246 | ;;
|
---|
10247 | ccc*)
|
---|
10248 | lt_prog_compiler_wl='-Wl,'
|
---|
10249 | # All Alpha code is PIC.
|
---|
10250 | lt_prog_compiler_static='-non_shared'
|
---|
10251 | ;;
|
---|
10252 | xl* | bgxl* | bgf* | mpixl*)
|
---|
10253 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
|
---|
10254 | lt_prog_compiler_wl='-Wl,'
|
---|
10255 | lt_prog_compiler_pic='-qpic'
|
---|
10256 | lt_prog_compiler_static='-qstaticlink'
|
---|
10257 | ;;
|
---|
10258 | *)
|
---|
10259 | case `$CC -V 2>&1 | $SED 5q` in
|
---|
10260 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
|
---|
10261 | # Sun Fortran 8.3 passes all unrecognized flags to the linker
|
---|
10262 | lt_prog_compiler_pic='-KPIC'
|
---|
10263 | lt_prog_compiler_static='-Bstatic'
|
---|
10264 | lt_prog_compiler_wl=''
|
---|
10265 | ;;
|
---|
10266 | *Sun\ F* | *Sun*Fortran*)
|
---|
10267 | lt_prog_compiler_pic='-KPIC'
|
---|
10268 | lt_prog_compiler_static='-Bstatic'
|
---|
10269 | lt_prog_compiler_wl='-Qoption ld '
|
---|
10270 | ;;
|
---|
10271 | *Sun\ C*)
|
---|
10272 | # Sun C 5.9
|
---|
10273 | lt_prog_compiler_pic='-KPIC'
|
---|
10274 | lt_prog_compiler_static='-Bstatic'
|
---|
10275 | lt_prog_compiler_wl='-Wl,'
|
---|
10276 | ;;
|
---|
10277 | *Intel*\ [CF]*Compiler*)
|
---|
10278 | lt_prog_compiler_wl='-Wl,'
|
---|
10279 | lt_prog_compiler_pic='-fPIC'
|
---|
10280 | lt_prog_compiler_static='-static'
|
---|
10281 | ;;
|
---|
10282 | *Portland\ Group*)
|
---|
10283 | lt_prog_compiler_wl='-Wl,'
|
---|
10284 | lt_prog_compiler_pic='-fpic'
|
---|
10285 | lt_prog_compiler_static='-Bstatic'
|
---|
10286 | ;;
|
---|
10287 | esac
|
---|
10288 | ;;
|
---|
10289 | esac
|
---|
10290 | ;;
|
---|
10291 |
|
---|
10292 | newsos6)
|
---|
10293 | lt_prog_compiler_pic='-KPIC'
|
---|
10294 | lt_prog_compiler_static='-Bstatic'
|
---|
10295 | ;;
|
---|
10296 |
|
---|
10297 | *-mlibc)
|
---|
10298 | lt_prog_compiler_wl='-Wl,'
|
---|
10299 | lt_prog_compiler_pic='-fPIC'
|
---|
10300 | lt_prog_compiler_static='-static'
|
---|
10301 | ;;
|
---|
10302 |
|
---|
10303 | *nto* | *qnx*)
|
---|
10304 | # QNX uses GNU C++, but need to define -shared option too, otherwise
|
---|
10305 | # it will coredump.
|
---|
10306 | lt_prog_compiler_pic='-fPIC -shared'
|
---|
10307 | ;;
|
---|
10308 |
|
---|
10309 | osf3* | osf4* | osf5*)
|
---|
10310 | lt_prog_compiler_wl='-Wl,'
|
---|
10311 | # All OSF/1 code is PIC.
|
---|
10312 | lt_prog_compiler_static='-non_shared'
|
---|
10313 | ;;
|
---|
10314 |
|
---|
10315 | rdos*)
|
---|
10316 | lt_prog_compiler_static='-non_shared'
|
---|
10317 | ;;
|
---|
10318 |
|
---|
10319 | serenity*)
|
---|
10320 | ;;
|
---|
10321 |
|
---|
10322 | solaris*)
|
---|
10323 | lt_prog_compiler_pic='-KPIC'
|
---|
10324 | lt_prog_compiler_static='-Bstatic'
|
---|
10325 | case $cc_basename in
|
---|
10326 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
|
---|
10327 | lt_prog_compiler_wl='-Qoption ld ';;
|
---|
10328 | *)
|
---|
10329 | lt_prog_compiler_wl='-Wl,';;
|
---|
10330 | esac
|
---|
10331 | ;;
|
---|
10332 |
|
---|
10333 | sunos4*)
|
---|
10334 | lt_prog_compiler_wl='-Qoption ld '
|
---|
10335 | lt_prog_compiler_pic='-PIC'
|
---|
10336 | lt_prog_compiler_static='-Bstatic'
|
---|
10337 | ;;
|
---|
10338 |
|
---|
10339 | sysv4 | sysv4.2uw2* | sysv4.3*)
|
---|
10340 | lt_prog_compiler_wl='-Wl,'
|
---|
10341 | lt_prog_compiler_pic='-KPIC'
|
---|
10342 | lt_prog_compiler_static='-Bstatic'
|
---|
10343 | ;;
|
---|
10344 |
|
---|
10345 | sysv4*MP*)
|
---|
10346 | if test -d /usr/nec; then
|
---|
10347 | lt_prog_compiler_pic='-Kconform_pic'
|
---|
10348 | lt_prog_compiler_static='-Bstatic'
|
---|
10349 | fi
|
---|
10350 | ;;
|
---|
10351 |
|
---|
10352 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
---|
10353 | lt_prog_compiler_wl='-Wl,'
|
---|
10354 | lt_prog_compiler_pic='-KPIC'
|
---|
10355 | lt_prog_compiler_static='-Bstatic'
|
---|
10356 | ;;
|
---|
10357 |
|
---|
10358 | unicos*)
|
---|
10359 | lt_prog_compiler_wl='-Wl,'
|
---|
10360 | lt_prog_compiler_can_build_shared=no
|
---|
10361 | ;;
|
---|
10362 |
|
---|
10363 | uts4*)
|
---|
10364 | lt_prog_compiler_pic='-pic'
|
---|
10365 | lt_prog_compiler_static='-Bstatic'
|
---|
10366 | ;;
|
---|
10367 |
|
---|
10368 | *)
|
---|
10369 | lt_prog_compiler_can_build_shared=no
|
---|
10370 | ;;
|
---|
10371 | esac
|
---|
10372 | fi
|
---|
10373 |
|
---|
10374 | case $host_os in
|
---|
10375 | # For platforms that do not support PIC, -DPIC is meaningless:
|
---|
10376 | *djgpp*)
|
---|
10377 | lt_prog_compiler_pic=
|
---|
10378 | ;;
|
---|
10379 | *)
|
---|
10380 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
|
---|
10381 | ;;
|
---|
10382 | esac
|
---|
10383 |
|
---|
10384 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
|
---|
10385 | printf %s "checking for $compiler option to produce PIC... " >&6; }
|
---|
10386 | if test ${lt_cv_prog_compiler_pic+y}
|
---|
10387 | then :
|
---|
10388 | printf %s "(cached) " >&6
|
---|
10389 | else case e in #(
|
---|
10390 | e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
|
---|
10391 | esac
|
---|
10392 | fi
|
---|
10393 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
|
---|
10394 | printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
|
---|
10395 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
|
---|
10396 |
|
---|
10397 | #
|
---|
10398 | # Check to make sure the PIC flag actually works.
|
---|
10399 | #
|
---|
10400 | if test -n "$lt_prog_compiler_pic"; then
|
---|
10401 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
|
---|
10402 | printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
|
---|
10403 | if test ${lt_cv_prog_compiler_pic_works+y}
|
---|
10404 | then :
|
---|
10405 | printf %s "(cached) " >&6
|
---|
10406 | else case e in #(
|
---|
10407 | e) lt_cv_prog_compiler_pic_works=no
|
---|
10408 | ac_outfile=conftest.$ac_objext
|
---|
10409 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
---|
10410 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
|
---|
10411 | # Insert the option either (1) after the last *FLAGS variable, or
|
---|
10412 | # (2) before a word containing "conftest.", or (3) at the end.
|
---|
10413 | # Note that $ac_compile itself does not contain backslashes and begins
|
---|
10414 | # with a dollar sign (not a hyphen), so the echo should work correctly.
|
---|
10415 | # The option is referenced via a variable to avoid confusing sed.
|
---|
10416 | lt_compile=`echo "$ac_compile" | $SED \
|
---|
10417 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
---|
10418 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
---|
10419 | -e 's:$: $lt_compiler_flag:'`
|
---|
10420 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
|
---|
10421 | (eval "$lt_compile" 2>conftest.err)
|
---|
10422 | ac_status=$?
|
---|
10423 | cat conftest.err >&5
|
---|
10424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10425 | if (exit $ac_status) && test -s "$ac_outfile"; then
|
---|
10426 | # The compiler can only warn and ignore the option if not recognized
|
---|
10427 | # So say no if there are warnings other than the usual output.
|
---|
10428 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
|
---|
10429 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
---|
10430 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
---|
10431 | lt_cv_prog_compiler_pic_works=yes
|
---|
10432 | fi
|
---|
10433 | fi
|
---|
10434 | $RM conftest*
|
---|
10435 | ;;
|
---|
10436 | esac
|
---|
10437 | fi
|
---|
10438 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
|
---|
10439 | printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
|
---|
10440 |
|
---|
10441 | if test yes = "$lt_cv_prog_compiler_pic_works"; then
|
---|
10442 | case $lt_prog_compiler_pic in
|
---|
10443 | "" | " "*) ;;
|
---|
10444 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
|
---|
10445 | esac
|
---|
10446 | else
|
---|
10447 | lt_prog_compiler_pic=
|
---|
10448 | lt_prog_compiler_can_build_shared=no
|
---|
10449 | fi
|
---|
10450 |
|
---|
10451 | fi
|
---|
10452 |
|
---|
10453 |
|
---|
10454 |
|
---|
10455 |
|
---|
10456 |
|
---|
10457 |
|
---|
10458 |
|
---|
10459 |
|
---|
10460 |
|
---|
10461 |
|
---|
10462 |
|
---|
10463 | #
|
---|
10464 | # Check to make sure the static flag actually works.
|
---|
10465 | #
|
---|
10466 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
|
---|
10467 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
|
---|
10468 | printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
|
---|
10469 | if test ${lt_cv_prog_compiler_static_works+y}
|
---|
10470 | then :
|
---|
10471 | printf %s "(cached) " >&6
|
---|
10472 | else case e in #(
|
---|
10473 | e) lt_cv_prog_compiler_static_works=no
|
---|
10474 | save_LDFLAGS=$LDFLAGS
|
---|
10475 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
|
---|
10476 | echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
---|
10477 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
---|
10478 | # The linker can only warn and ignore the option if not recognized
|
---|
10479 | # So say no if there are warnings
|
---|
10480 | if test -s conftest.err; then
|
---|
10481 | # Append any errors to the config.log.
|
---|
10482 | cat conftest.err 1>&5
|
---|
10483 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
|
---|
10484 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
---|
10485 | if diff conftest.exp conftest.er2 >/dev/null; then
|
---|
10486 | lt_cv_prog_compiler_static_works=yes
|
---|
10487 | fi
|
---|
10488 | else
|
---|
10489 | lt_cv_prog_compiler_static_works=yes
|
---|
10490 | fi
|
---|
10491 | fi
|
---|
10492 | $RM -r conftest*
|
---|
10493 | LDFLAGS=$save_LDFLAGS
|
---|
10494 | ;;
|
---|
10495 | esac
|
---|
10496 | fi
|
---|
10497 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
|
---|
10498 | printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
|
---|
10499 |
|
---|
10500 | if test yes = "$lt_cv_prog_compiler_static_works"; then
|
---|
10501 | :
|
---|
10502 | else
|
---|
10503 | lt_prog_compiler_static=
|
---|
10504 | fi
|
---|
10505 |
|
---|
10506 |
|
---|
10507 |
|
---|
10508 |
|
---|
10509 |
|
---|
10510 |
|
---|
10511 |
|
---|
10512 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
|
---|
10513 | printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
|
---|
10514 | if test ${lt_cv_prog_compiler_c_o+y}
|
---|
10515 | then :
|
---|
10516 | printf %s "(cached) " >&6
|
---|
10517 | else case e in #(
|
---|
10518 | e) lt_cv_prog_compiler_c_o=no
|
---|
10519 | $RM -r conftest 2>/dev/null
|
---|
10520 | mkdir conftest
|
---|
10521 | cd conftest
|
---|
10522 | mkdir out
|
---|
10523 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
---|
10524 |
|
---|
10525 | lt_compiler_flag="-o out/conftest2.$ac_objext"
|
---|
10526 | # Insert the option either (1) after the last *FLAGS variable, or
|
---|
10527 | # (2) before a word containing "conftest.", or (3) at the end.
|
---|
10528 | # Note that $ac_compile itself does not contain backslashes and begins
|
---|
10529 | # with a dollar sign (not a hyphen), so the echo should work correctly.
|
---|
10530 | lt_compile=`echo "$ac_compile" | $SED \
|
---|
10531 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
---|
10532 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
---|
10533 | -e 's:$: $lt_compiler_flag:'`
|
---|
10534 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
|
---|
10535 | (eval "$lt_compile" 2>out/conftest.err)
|
---|
10536 | ac_status=$?
|
---|
10537 | cat out/conftest.err >&5
|
---|
10538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10539 | if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
---|
10540 | then
|
---|
10541 | # The compiler can only warn and ignore the option if not recognized
|
---|
10542 | # So say no if there are warnings
|
---|
10543 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
|
---|
10544 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
---|
10545 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
---|
10546 | lt_cv_prog_compiler_c_o=yes
|
---|
10547 | fi
|
---|
10548 | fi
|
---|
10549 | chmod u+w . 2>&5
|
---|
10550 | $RM conftest*
|
---|
10551 | # SGI C++ compiler will create directory out/ii_files/ for
|
---|
10552 | # template instantiation
|
---|
10553 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
|
---|
10554 | $RM out/* && rmdir out
|
---|
10555 | cd ..
|
---|
10556 | $RM -r conftest
|
---|
10557 | $RM conftest*
|
---|
10558 | ;;
|
---|
10559 | esac
|
---|
10560 | fi
|
---|
10561 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
|
---|
10562 | printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
|
---|
10563 |
|
---|
10564 |
|
---|
10565 |
|
---|
10566 |
|
---|
10567 |
|
---|
10568 |
|
---|
10569 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
|
---|
10570 | printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
|
---|
10571 | if test ${lt_cv_prog_compiler_c_o+y}
|
---|
10572 | then :
|
---|
10573 | printf %s "(cached) " >&6
|
---|
10574 | else case e in #(
|
---|
10575 | e) lt_cv_prog_compiler_c_o=no
|
---|
10576 | $RM -r conftest 2>/dev/null
|
---|
10577 | mkdir conftest
|
---|
10578 | cd conftest
|
---|
10579 | mkdir out
|
---|
10580 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
---|
10581 |
|
---|
10582 | lt_compiler_flag="-o out/conftest2.$ac_objext"
|
---|
10583 | # Insert the option either (1) after the last *FLAGS variable, or
|
---|
10584 | # (2) before a word containing "conftest.", or (3) at the end.
|
---|
10585 | # Note that $ac_compile itself does not contain backslashes and begins
|
---|
10586 | # with a dollar sign (not a hyphen), so the echo should work correctly.
|
---|
10587 | lt_compile=`echo "$ac_compile" | $SED \
|
---|
10588 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
---|
10589 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
---|
10590 | -e 's:$: $lt_compiler_flag:'`
|
---|
10591 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
|
---|
10592 | (eval "$lt_compile" 2>out/conftest.err)
|
---|
10593 | ac_status=$?
|
---|
10594 | cat out/conftest.err >&5
|
---|
10595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10596 | if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
---|
10597 | then
|
---|
10598 | # The compiler can only warn and ignore the option if not recognized
|
---|
10599 | # So say no if there are warnings
|
---|
10600 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
|
---|
10601 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
---|
10602 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
---|
10603 | lt_cv_prog_compiler_c_o=yes
|
---|
10604 | fi
|
---|
10605 | fi
|
---|
10606 | chmod u+w . 2>&5
|
---|
10607 | $RM conftest*
|
---|
10608 | # SGI C++ compiler will create directory out/ii_files/ for
|
---|
10609 | # template instantiation
|
---|
10610 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
|
---|
10611 | $RM out/* && rmdir out
|
---|
10612 | cd ..
|
---|
10613 | $RM -r conftest
|
---|
10614 | $RM conftest*
|
---|
10615 | ;;
|
---|
10616 | esac
|
---|
10617 | fi
|
---|
10618 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
|
---|
10619 | printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
|
---|
10620 |
|
---|
10621 |
|
---|
10622 |
|
---|
10623 |
|
---|
10624 | hard_links=nottested
|
---|
10625 | if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
|
---|
10626 | # do not overwrite the value of need_locks provided by the user
|
---|
10627 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
|
---|
10628 | printf %s "checking if we can lock with hard links... " >&6; }
|
---|
10629 | hard_links=yes
|
---|
10630 | $RM conftest*
|
---|
10631 | ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
---|
10632 | touch conftest.a
|
---|
10633 | ln conftest.a conftest.b 2>&5 || hard_links=no
|
---|
10634 | ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
---|
10635 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
|
---|
10636 | printf "%s\n" "$hard_links" >&6; }
|
---|
10637 | if test no = "$hard_links"; then
|
---|
10638 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
|
---|
10639 | printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
|
---|
10640 | need_locks=warn
|
---|
10641 | fi
|
---|
10642 | else
|
---|
10643 | need_locks=no
|
---|
10644 | fi
|
---|
10645 |
|
---|
10646 |
|
---|
10647 |
|
---|
10648 |
|
---|
10649 |
|
---|
10650 |
|
---|
10651 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
|
---|
10652 | printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
|
---|
10653 |
|
---|
10654 | runpath_var=
|
---|
10655 | allow_undefined_flag=
|
---|
10656 | always_export_symbols=no
|
---|
10657 | archive_cmds=
|
---|
10658 | archive_expsym_cmds=
|
---|
10659 | compiler_needs_object=no
|
---|
10660 | enable_shared_with_static_runtimes=no
|
---|
10661 | export_dynamic_flag_spec=
|
---|
10662 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
---|
10663 | hardcode_automatic=no
|
---|
10664 | hardcode_direct=no
|
---|
10665 | hardcode_direct_absolute=no
|
---|
10666 | hardcode_libdir_flag_spec=
|
---|
10667 | hardcode_libdir_separator=
|
---|
10668 | hardcode_minus_L=no
|
---|
10669 | hardcode_shlibpath_var=unsupported
|
---|
10670 | inherit_rpath=no
|
---|
10671 | link_all_deplibs=unknown
|
---|
10672 | module_cmds=
|
---|
10673 | module_expsym_cmds=
|
---|
10674 | old_archive_from_new_cmds=
|
---|
10675 | old_archive_from_expsyms_cmds=
|
---|
10676 | thread_safe_flag_spec=
|
---|
10677 | whole_archive_flag_spec=
|
---|
10678 | # include_expsyms should be a list of space-separated symbols to be *always*
|
---|
10679 | # included in the symbol list
|
---|
10680 | include_expsyms=
|
---|
10681 | # exclude_expsyms can be an extended regexp of symbols to exclude
|
---|
10682 | # it will be wrapped by ' (' and ')$', so one must not match beginning or
|
---|
10683 | # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
|
---|
10684 | # as well as any symbol that contains 'd'.
|
---|
10685 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
|
---|
10686 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
|
---|
10687 | # platforms (ab)use it in PIC code, but their linkers get confused if
|
---|
10688 | # the symbol is explicitly referenced. Since portable code cannot
|
---|
10689 | # rely on this symbol name, it's probably fine to never include it in
|
---|
10690 | # preloaded symbol tables.
|
---|
10691 | # Exclude shared library initialization/finalization symbols.
|
---|
10692 | extract_expsyms_cmds=
|
---|
10693 |
|
---|
10694 | case $host_os in
|
---|
10695 | cygwin* | mingw* | windows* | pw32* | cegcc*)
|
---|
10696 | # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
|
---|
10697 | # When not using gcc, we currently assume that we are using
|
---|
10698 | # Microsoft Visual C++ or Intel C++ Compiler.
|
---|
10699 | if test yes != "$GCC"; then
|
---|
10700 | with_gnu_ld=no
|
---|
10701 | fi
|
---|
10702 | ;;
|
---|
10703 | interix*)
|
---|
10704 | # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
|
---|
10705 | with_gnu_ld=yes
|
---|
10706 | ;;
|
---|
10707 | esac
|
---|
10708 |
|
---|
10709 | ld_shlibs=yes
|
---|
10710 |
|
---|
10711 | # On some targets, GNU ld is compatible enough with the native linker
|
---|
10712 | # that we're better off using the native interface for both.
|
---|
10713 | lt_use_gnu_ld_interface=no
|
---|
10714 | if test yes = "$with_gnu_ld"; then
|
---|
10715 | case $host_os in
|
---|
10716 | aix*)
|
---|
10717 | # The AIX port of GNU ld has always aspired to compatibility
|
---|
10718 | # with the native linker. However, as the warning in the GNU ld
|
---|
10719 | # block says, versions before 2.19.5* couldn't really create working
|
---|
10720 | # shared libraries, regardless of the interface used.
|
---|
10721 | case `$LD -v 2>&1` in
|
---|
10722 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
|
---|
10723 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
|
---|
10724 | *\ \(GNU\ Binutils\)\ [3-9]*) ;;
|
---|
10725 | *)
|
---|
10726 | lt_use_gnu_ld_interface=yes
|
---|
10727 | ;;
|
---|
10728 | esac
|
---|
10729 | ;;
|
---|
10730 | *)
|
---|
10731 | lt_use_gnu_ld_interface=yes
|
---|
10732 | ;;
|
---|
10733 | esac
|
---|
10734 | fi
|
---|
10735 |
|
---|
10736 | if test yes = "$lt_use_gnu_ld_interface"; then
|
---|
10737 | # If archive_cmds runs LD, not CC, wlarc should be empty
|
---|
10738 | wlarc='$wl'
|
---|
10739 |
|
---|
10740 | # Set some defaults for GNU ld with shared library support. These
|
---|
10741 | # are reset later if shared libraries are not supported. Putting them
|
---|
10742 | # here allows them to be overridden if necessary.
|
---|
10743 | runpath_var=LD_RUN_PATH
|
---|
10744 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
---|
10745 | export_dynamic_flag_spec='$wl--export-dynamic'
|
---|
10746 | # ancient GNU ld didn't support --whole-archive et. al.
|
---|
10747 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
|
---|
10748 | whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
|
---|
10749 | else
|
---|
10750 | whole_archive_flag_spec=
|
---|
10751 | fi
|
---|
10752 | supports_anon_versioning=no
|
---|
10753 | case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
|
---|
10754 | *GNU\ gold*) supports_anon_versioning=yes ;;
|
---|
10755 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
|
---|
10756 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
|
---|
10757 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
|
---|
10758 | *\ 2.11.*) ;; # other 2.11 versions
|
---|
10759 | *) supports_anon_versioning=yes ;;
|
---|
10760 | esac
|
---|
10761 |
|
---|
10762 | # See if GNU ld supports shared libraries.
|
---|
10763 | case $host_os in
|
---|
10764 | aix[3-9]*)
|
---|
10765 | # On AIX/PPC, the GNU linker is very broken
|
---|
10766 | if test ia64 != "$host_cpu"; then
|
---|
10767 | ld_shlibs=no
|
---|
10768 | cat <<_LT_EOF 1>&2
|
---|
10769 |
|
---|
10770 | *** Warning: the GNU linker, at least up to release 2.19, is reported
|
---|
10771 | *** to be unable to reliably create shared libraries on AIX.
|
---|
10772 | *** Therefore, libtool is disabling shared libraries support. If you
|
---|
10773 | *** really care for shared libraries, you may want to install binutils
|
---|
10774 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
|
---|
10775 | *** You will then need to restart the configuration process.
|
---|
10776 |
|
---|
10777 | _LT_EOF
|
---|
10778 | fi
|
---|
10779 | ;;
|
---|
10780 |
|
---|
10781 | amigaos*)
|
---|
10782 | case $host_cpu in
|
---|
10783 | powerpc)
|
---|
10784 | # see comment about AmigaOS4 .so support
|
---|
10785 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
10786 | archive_expsym_cmds=''
|
---|
10787 | ;;
|
---|
10788 | m68k)
|
---|
10789 | 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)'
|
---|
10790 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
10791 | hardcode_minus_L=yes
|
---|
10792 | ;;
|
---|
10793 | esac
|
---|
10794 | ;;
|
---|
10795 |
|
---|
10796 | beos*)
|
---|
10797 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
---|
10798 | allow_undefined_flag=unsupported
|
---|
10799 | # Joseph Beckenbach <[email protected]> says some releases of gcc
|
---|
10800 | # support --undefined. This deserves some investigation. FIXME
|
---|
10801 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
10802 | else
|
---|
10803 | ld_shlibs=no
|
---|
10804 | fi
|
---|
10805 | ;;
|
---|
10806 |
|
---|
10807 | cygwin* | mingw* | windows* | pw32* | cegcc*)
|
---|
10808 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
|
---|
10809 | # as there is no search path for DLLs.
|
---|
10810 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
10811 | export_dynamic_flag_spec='$wl--export-all-symbols'
|
---|
10812 | allow_undefined_flag=unsupported
|
---|
10813 | always_export_symbols=no
|
---|
10814 | enable_shared_with_static_runtimes=yes
|
---|
10815 | 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'
|
---|
10816 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
|
---|
10817 | file_list_spec='@'
|
---|
10818 |
|
---|
10819 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
---|
10820 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
---|
10821 | # If the export-symbols file already is a .def file, use it as
|
---|
10822 | # is; otherwise, prepend EXPORTS...
|
---|
10823 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
|
---|
10824 | cp $export_symbols $output_objdir/$soname.def;
|
---|
10825 | else
|
---|
10826 | echo EXPORTS > $output_objdir/$soname.def;
|
---|
10827 | cat $export_symbols >> $output_objdir/$soname.def;
|
---|
10828 | fi~
|
---|
10829 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
---|
10830 | else
|
---|
10831 | ld_shlibs=no
|
---|
10832 | fi
|
---|
10833 | ;;
|
---|
10834 |
|
---|
10835 | haiku*)
|
---|
10836 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
10837 | link_all_deplibs=no
|
---|
10838 | ;;
|
---|
10839 |
|
---|
10840 | os2*)
|
---|
10841 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
10842 | hardcode_minus_L=yes
|
---|
10843 | allow_undefined_flag=unsupported
|
---|
10844 | shrext_cmds=.dll
|
---|
10845 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
|
---|
10846 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
|
---|
10847 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
|
---|
10848 | $ECHO EXPORTS >> $output_objdir/$libname.def~
|
---|
10849 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
|
---|
10850 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
|
---|
10851 | emximp -o $lib $output_objdir/$libname.def'
|
---|
10852 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
|
---|
10853 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
|
---|
10854 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
|
---|
10855 | $ECHO EXPORTS >> $output_objdir/$libname.def~
|
---|
10856 | prefix_cmds="$SED"~
|
---|
10857 | if test EXPORTS = "`$SED 1q $export_symbols`"; then
|
---|
10858 | prefix_cmds="$prefix_cmds -e 1d";
|
---|
10859 | fi~
|
---|
10860 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
|
---|
10861 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
|
---|
10862 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
|
---|
10863 | emximp -o $lib $output_objdir/$libname.def'
|
---|
10864 | old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
|
---|
10865 | enable_shared_with_static_runtimes=yes
|
---|
10866 | file_list_spec='@'
|
---|
10867 | ;;
|
---|
10868 |
|
---|
10869 | interix[3-9]*)
|
---|
10870 | hardcode_direct=no
|
---|
10871 | hardcode_shlibpath_var=no
|
---|
10872 | hardcode_libdir_flag_spec='$wl-rpath,$libdir'
|
---|
10873 | export_dynamic_flag_spec='$wl-E'
|
---|
10874 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
---|
10875 | # Instead, shared libraries are loaded at an image base (0x10000000 by
|
---|
10876 | # default) and relocated if they conflict, which is a slow very memory
|
---|
10877 | # consuming and fragmenting process. To avoid this, we pick a random,
|
---|
10878 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
---|
10879 | # time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
---|
10880 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
---|
10881 | 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'
|
---|
10882 | ;;
|
---|
10883 |
|
---|
10884 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
|
---|
10885 | tmp_diet=no
|
---|
10886 | if test linux-dietlibc = "$host_os"; then
|
---|
10887 | case $cc_basename in
|
---|
10888 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
|
---|
10889 | esac
|
---|
10890 | fi
|
---|
10891 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
|
---|
10892 | && test no = "$tmp_diet"
|
---|
10893 | then
|
---|
10894 | tmp_addflag=' $pic_flag'
|
---|
10895 | tmp_sharedflag='-shared'
|
---|
10896 | case $cc_basename,$host_cpu in
|
---|
10897 | pgcc*) # Portland Group C compiler
|
---|
10898 | 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'
|
---|
10899 | tmp_addflag=' $pic_flag'
|
---|
10900 | ;;
|
---|
10901 | pgf77* | pgf90* | pgf95* | pgfortran*)
|
---|
10902 | # Portland Group f77 and f90 compilers
|
---|
10903 | 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'
|
---|
10904 | tmp_addflag=' $pic_flag -Mnomain' ;;
|
---|
10905 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
|
---|
10906 | tmp_addflag=' -i_dynamic' ;;
|
---|
10907 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
|
---|
10908 | tmp_addflag=' -i_dynamic -nofor_main' ;;
|
---|
10909 | ifc* | ifort*) # Intel Fortran compiler
|
---|
10910 | tmp_addflag=' -nofor_main' ;;
|
---|
10911 | lf95*) # Lahey Fortran 8.1
|
---|
10912 | whole_archive_flag_spec=
|
---|
10913 | tmp_sharedflag='--shared' ;;
|
---|
10914 | nagfor*) # NAGFOR 5.3
|
---|
10915 | tmp_sharedflag='-Wl,-shared' ;;
|
---|
10916 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
|
---|
10917 | tmp_sharedflag='-qmkshrobj'
|
---|
10918 | tmp_addflag= ;;
|
---|
10919 | nvcc*) # Cuda Compiler Driver 2.2
|
---|
10920 | 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'
|
---|
10921 | compiler_needs_object=yes
|
---|
10922 | ;;
|
---|
10923 | esac
|
---|
10924 | case `$CC -V 2>&1 | $SED 5q` in
|
---|
10925 | *Sun\ C*) # Sun C 5.9
|
---|
10926 | 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'
|
---|
10927 | compiler_needs_object=yes
|
---|
10928 | tmp_sharedflag='-G' ;;
|
---|
10929 | *Sun\ F*) # Sun Fortran 8.3
|
---|
10930 | tmp_sharedflag='-G' ;;
|
---|
10931 | esac
|
---|
10932 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
10933 |
|
---|
10934 | if test yes = "$supports_anon_versioning"; then
|
---|
10935 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
|
---|
10936 | cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
---|
10937 | echo "local: *; };" >> $output_objdir/$libname.ver~
|
---|
10938 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
|
---|
10939 | fi
|
---|
10940 |
|
---|
10941 | case $cc_basename in
|
---|
10942 | tcc*)
|
---|
10943 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
---|
10944 | export_dynamic_flag_spec='-rdynamic'
|
---|
10945 | ;;
|
---|
10946 | xlf* | bgf* | bgxlf* | mpixlf*)
|
---|
10947 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
|
---|
10948 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
|
---|
10949 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
---|
10950 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
|
---|
10951 | if test yes = "$supports_anon_versioning"; then
|
---|
10952 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
|
---|
10953 | cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
---|
10954 | echo "local: *; };" >> $output_objdir/$libname.ver~
|
---|
10955 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
---|
10956 | fi
|
---|
10957 | ;;
|
---|
10958 | esac
|
---|
10959 | else
|
---|
10960 | ld_shlibs=no
|
---|
10961 | fi
|
---|
10962 | ;;
|
---|
10963 |
|
---|
10964 | *-mlibc)
|
---|
10965 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
10966 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
|
---|
10967 | ;;
|
---|
10968 |
|
---|
10969 | netbsd* | netbsdelf*-gnu)
|
---|
10970 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
---|
10971 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
---|
10972 | wlarc=
|
---|
10973 | else
|
---|
10974 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
10975 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
|
---|
10976 | fi
|
---|
10977 | ;;
|
---|
10978 |
|
---|
10979 | solaris*)
|
---|
10980 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
|
---|
10981 | ld_shlibs=no
|
---|
10982 | cat <<_LT_EOF 1>&2
|
---|
10983 |
|
---|
10984 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably
|
---|
10985 | *** create shared libraries on Solaris systems. Therefore, libtool
|
---|
10986 | *** is disabling shared libraries support. We urge you to upgrade GNU
|
---|
10987 | *** binutils to release 2.9.1 or newer. Another option is to modify
|
---|
10988 | *** your PATH or compiler configuration so that the native linker is
|
---|
10989 | *** used, and then restart.
|
---|
10990 |
|
---|
10991 | _LT_EOF
|
---|
10992 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
---|
10993 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
10994 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
|
---|
10995 | else
|
---|
10996 | ld_shlibs=no
|
---|
10997 | fi
|
---|
10998 | ;;
|
---|
10999 |
|
---|
11000 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
|
---|
11001 | case `$LD -v 2>&1` in
|
---|
11002 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
|
---|
11003 | ld_shlibs=no
|
---|
11004 | cat <<_LT_EOF 1>&2
|
---|
11005 |
|
---|
11006 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
|
---|
11007 | *** reliably create shared libraries on SCO systems. Therefore, libtool
|
---|
11008 | *** is disabling shared libraries support. We urge you to upgrade GNU
|
---|
11009 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
|
---|
11010 | *** your PATH or compiler configuration so that the native linker is
|
---|
11011 | *** used, and then restart.
|
---|
11012 |
|
---|
11013 | _LT_EOF
|
---|
11014 | ;;
|
---|
11015 | *)
|
---|
11016 | # For security reasons, it is highly recommended that you always
|
---|
11017 | # use absolute paths for naming shared libraries, and exclude the
|
---|
11018 | # DT_RUNPATH tag from executables and libraries. But doing so
|
---|
11019 | # requires that you compile everything twice, which is a pain.
|
---|
11020 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
---|
11021 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
---|
11022 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
11023 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
|
---|
11024 | else
|
---|
11025 | ld_shlibs=no
|
---|
11026 | fi
|
---|
11027 | ;;
|
---|
11028 | esac
|
---|
11029 | ;;
|
---|
11030 |
|
---|
11031 | sunos4*)
|
---|
11032 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
---|
11033 | wlarc=
|
---|
11034 | hardcode_direct=yes
|
---|
11035 | hardcode_shlibpath_var=no
|
---|
11036 | ;;
|
---|
11037 |
|
---|
11038 | *)
|
---|
11039 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
---|
11040 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
11041 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
|
---|
11042 | else
|
---|
11043 | ld_shlibs=no
|
---|
11044 | fi
|
---|
11045 | ;;
|
---|
11046 | esac
|
---|
11047 |
|
---|
11048 | if test no = "$ld_shlibs"; then
|
---|
11049 | runpath_var=
|
---|
11050 | hardcode_libdir_flag_spec=
|
---|
11051 | export_dynamic_flag_spec=
|
---|
11052 | whole_archive_flag_spec=
|
---|
11053 | fi
|
---|
11054 | else
|
---|
11055 | # PORTME fill in a description of your system's linker (not GNU ld)
|
---|
11056 | case $host_os in
|
---|
11057 | aix3*)
|
---|
11058 | allow_undefined_flag=unsupported
|
---|
11059 | always_export_symbols=yes
|
---|
11060 | 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'
|
---|
11061 | # Note: this linker hardcodes the directories in LIBPATH if there
|
---|
11062 | # are no directories specified by -L.
|
---|
11063 | hardcode_minus_L=yes
|
---|
11064 | if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
|
---|
11065 | # Neither direct hardcoding nor static linking is supported with a
|
---|
11066 | # broken collect2.
|
---|
11067 | hardcode_direct=unsupported
|
---|
11068 | fi
|
---|
11069 | ;;
|
---|
11070 |
|
---|
11071 | aix[4-9]*)
|
---|
11072 | if test ia64 = "$host_cpu"; then
|
---|
11073 | # On IA64, the linker does run time linking by default, so we don't
|
---|
11074 | # have to do anything special.
|
---|
11075 | aix_use_runtimelinking=no
|
---|
11076 | exp_sym_flag='-Bexport'
|
---|
11077 | no_entry_flag=
|
---|
11078 | else
|
---|
11079 | # If we're using GNU nm, then we don't want the "-C" option.
|
---|
11080 | # -C means demangle to GNU nm, but means don't demangle to AIX nm.
|
---|
11081 | # Without the "-l" option, or with the "-B" option, AIX nm treats
|
---|
11082 | # weak defined symbols like other global defined symbols, whereas
|
---|
11083 | # GNU nm marks them as "W".
|
---|
11084 | # While the 'weak' keyword is ignored in the Export File, we need
|
---|
11085 | # it in the Import File for the 'aix-soname' feature, so we have
|
---|
11086 | # to replace the "-B" option with "-P" for AIX nm.
|
---|
11087 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
|
---|
11088 | 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'
|
---|
11089 | else
|
---|
11090 | 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 == "L") || (\$ 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'
|
---|
11091 | fi
|
---|
11092 | aix_use_runtimelinking=no
|
---|
11093 |
|
---|
11094 | # Test if we are trying to use run time linking or normal
|
---|
11095 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
---|
11096 | # have runtime linking enabled, and use it for executables.
|
---|
11097 | # For shared libraries, we enable/disable runtime linking
|
---|
11098 | # depending on the kind of the shared library created -
|
---|
11099 | # when "with_aix_soname,aix_use_runtimelinking" is:
|
---|
11100 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
|
---|
11101 | # "aix,yes" lib.so shared, rtl:yes, for executables
|
---|
11102 | # lib.a static archive
|
---|
11103 | # "both,no" lib.so.V(shr.o) shared, rtl:yes
|
---|
11104 | # lib.a(lib.so.V) shared, rtl:no, for executables
|
---|
11105 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
|
---|
11106 | # lib.a(lib.so.V) shared, rtl:no
|
---|
11107 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
|
---|
11108 | # lib.a static archive
|
---|
11109 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
|
---|
11110 | for ld_flag in $LDFLAGS; do
|
---|
11111 | if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
|
---|
11112 | aix_use_runtimelinking=yes
|
---|
11113 | break
|
---|
11114 | fi
|
---|
11115 | done
|
---|
11116 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
|
---|
11117 | # With aix-soname=svr4, we create the lib.so.V shared archives only,
|
---|
11118 | # so we don't have lib.a shared libs to link our executables.
|
---|
11119 | # We have to force runtime linking in this case.
|
---|
11120 | aix_use_runtimelinking=yes
|
---|
11121 | LDFLAGS="$LDFLAGS -Wl,-brtl"
|
---|
11122 | fi
|
---|
11123 | ;;
|
---|
11124 | esac
|
---|
11125 |
|
---|
11126 | exp_sym_flag='-bexport'
|
---|
11127 | no_entry_flag='-bnoentry'
|
---|
11128 | fi
|
---|
11129 |
|
---|
11130 | # When large executables or shared objects are built, AIX ld can
|
---|
11131 | # have problems creating the table of contents. If linking a library
|
---|
11132 | # or program results in "error TOC overflow" add -mminimal-toc to
|
---|
11133 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
---|
11134 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
---|
11135 |
|
---|
11136 | archive_cmds=''
|
---|
11137 | hardcode_direct=yes
|
---|
11138 | hardcode_direct_absolute=yes
|
---|
11139 | hardcode_libdir_separator=':'
|
---|
11140 | link_all_deplibs=yes
|
---|
11141 | file_list_spec='$wl-f,'
|
---|
11142 | case $with_aix_soname,$aix_use_runtimelinking in
|
---|
11143 | aix,*) ;; # traditional, no import file
|
---|
11144 | svr4,* | *,yes) # use import file
|
---|
11145 | # The Import File defines what to hardcode.
|
---|
11146 | hardcode_direct=no
|
---|
11147 | hardcode_direct_absolute=no
|
---|
11148 | ;;
|
---|
11149 | esac
|
---|
11150 |
|
---|
11151 | if test yes = "$GCC"; then
|
---|
11152 | case $host_os in aix4.[012]|aix4.[012].*)
|
---|
11153 | # We only want to do this on AIX 4.2 and lower, the check
|
---|
11154 | # below for broken collect2 doesn't work under 4.3+
|
---|
11155 | collect2name=`$CC -print-prog-name=collect2`
|
---|
11156 | if test -f "$collect2name" &&
|
---|
11157 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null
|
---|
11158 | then
|
---|
11159 | # We have reworked collect2
|
---|
11160 | :
|
---|
11161 | else
|
---|
11162 | # We have old collect2
|
---|
11163 | hardcode_direct=unsupported
|
---|
11164 | # It fails to find uninstalled libraries when the uninstalled
|
---|
11165 | # path is not listed in the libpath. Setting hardcode_minus_L
|
---|
11166 | # to unsupported forces relinking
|
---|
11167 | hardcode_minus_L=yes
|
---|
11168 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
11169 | hardcode_libdir_separator=
|
---|
11170 | fi
|
---|
11171 | ;;
|
---|
11172 | esac
|
---|
11173 | shared_flag='-shared'
|
---|
11174 | if test yes = "$aix_use_runtimelinking"; then
|
---|
11175 | shared_flag="$shared_flag "'$wl-G'
|
---|
11176 | fi
|
---|
11177 | # Need to ensure runtime linking is disabled for the traditional
|
---|
11178 | # shared library, or the linker may eventually find shared libraries
|
---|
11179 | # /with/ Import File - we do not want to mix them.
|
---|
11180 | shared_flag_aix='-shared'
|
---|
11181 | shared_flag_svr4='-shared $wl-G'
|
---|
11182 | else
|
---|
11183 | # not using gcc
|
---|
11184 | if test ia64 = "$host_cpu"; then
|
---|
11185 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
---|
11186 | # chokes on -Wl,-G. The following line is correct:
|
---|
11187 | shared_flag='-G'
|
---|
11188 | else
|
---|
11189 | if test yes = "$aix_use_runtimelinking"; then
|
---|
11190 | shared_flag='$wl-G'
|
---|
11191 | else
|
---|
11192 | shared_flag='$wl-bM:SRE'
|
---|
11193 | fi
|
---|
11194 | shared_flag_aix='$wl-bM:SRE'
|
---|
11195 | shared_flag_svr4='$wl-G'
|
---|
11196 | fi
|
---|
11197 | fi
|
---|
11198 |
|
---|
11199 | export_dynamic_flag_spec='$wl-bexpall'
|
---|
11200 | # It seems that -bexpall does not export symbols beginning with
|
---|
11201 | # underscore (_), so it is better to generate a list of symbols to export.
|
---|
11202 | always_export_symbols=yes
|
---|
11203 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
|
---|
11204 | # Warning - without using the other runtime loading flags (-brtl),
|
---|
11205 | # -berok will link without error, but may produce a broken library.
|
---|
11206 | allow_undefined_flag='-berok'
|
---|
11207 | # Determine the default libpath from the value encoded in an
|
---|
11208 | # empty executable.
|
---|
11209 | if test set = "${lt_cv_aix_libpath+set}"; then
|
---|
11210 | aix_libpath=$lt_cv_aix_libpath
|
---|
11211 | else
|
---|
11212 | if test ${lt_cv_aix_libpath_+y}
|
---|
11213 | then :
|
---|
11214 | printf %s "(cached) " >&6
|
---|
11215 | else case e in #(
|
---|
11216 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
11217 | /* end confdefs.h. */
|
---|
11218 |
|
---|
11219 | int
|
---|
11220 | main (void)
|
---|
11221 | {
|
---|
11222 |
|
---|
11223 | ;
|
---|
11224 | return 0;
|
---|
11225 | }
|
---|
11226 | _ACEOF
|
---|
11227 | if ac_fn_c_try_link "$LINENO"
|
---|
11228 | then :
|
---|
11229 |
|
---|
11230 | lt_aix_libpath_sed='
|
---|
11231 | /Import File Strings/,/^$/ {
|
---|
11232 | /^0/ {
|
---|
11233 | s/^0 *\([^ ]*\) *$/\1/
|
---|
11234 | p
|
---|
11235 | }
|
---|
11236 | }'
|
---|
11237 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
---|
11238 | # Check for a 64-bit object if we didn't find anything.
|
---|
11239 | if test -z "$lt_cv_aix_libpath_"; then
|
---|
11240 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
---|
11241 | fi
|
---|
11242 | fi
|
---|
11243 | rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
---|
11244 | conftest$ac_exeext conftest.$ac_ext
|
---|
11245 | if test -z "$lt_cv_aix_libpath_"; then
|
---|
11246 | lt_cv_aix_libpath_=/usr/lib:/lib
|
---|
11247 | fi
|
---|
11248 | ;;
|
---|
11249 | esac
|
---|
11250 | fi
|
---|
11251 |
|
---|
11252 | aix_libpath=$lt_cv_aix_libpath_
|
---|
11253 | fi
|
---|
11254 |
|
---|
11255 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
|
---|
11256 | 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
|
---|
11257 | else
|
---|
11258 | if test ia64 = "$host_cpu"; then
|
---|
11259 | hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
|
---|
11260 | allow_undefined_flag="-z nodefs"
|
---|
11261 | 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"
|
---|
11262 | else
|
---|
11263 | # Determine the default libpath from the value encoded in an
|
---|
11264 | # empty executable.
|
---|
11265 | if test set = "${lt_cv_aix_libpath+set}"; then
|
---|
11266 | aix_libpath=$lt_cv_aix_libpath
|
---|
11267 | else
|
---|
11268 | if test ${lt_cv_aix_libpath_+y}
|
---|
11269 | then :
|
---|
11270 | printf %s "(cached) " >&6
|
---|
11271 | else case e in #(
|
---|
11272 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
11273 | /* end confdefs.h. */
|
---|
11274 |
|
---|
11275 | int
|
---|
11276 | main (void)
|
---|
11277 | {
|
---|
11278 |
|
---|
11279 | ;
|
---|
11280 | return 0;
|
---|
11281 | }
|
---|
11282 | _ACEOF
|
---|
11283 | if ac_fn_c_try_link "$LINENO"
|
---|
11284 | then :
|
---|
11285 |
|
---|
11286 | lt_aix_libpath_sed='
|
---|
11287 | /Import File Strings/,/^$/ {
|
---|
11288 | /^0/ {
|
---|
11289 | s/^0 *\([^ ]*\) *$/\1/
|
---|
11290 | p
|
---|
11291 | }
|
---|
11292 | }'
|
---|
11293 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
---|
11294 | # Check for a 64-bit object if we didn't find anything.
|
---|
11295 | if test -z "$lt_cv_aix_libpath_"; then
|
---|
11296 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
---|
11297 | fi
|
---|
11298 | fi
|
---|
11299 | rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
---|
11300 | conftest$ac_exeext conftest.$ac_ext
|
---|
11301 | if test -z "$lt_cv_aix_libpath_"; then
|
---|
11302 | lt_cv_aix_libpath_=/usr/lib:/lib
|
---|
11303 | fi
|
---|
11304 | ;;
|
---|
11305 | esac
|
---|
11306 | fi
|
---|
11307 |
|
---|
11308 | aix_libpath=$lt_cv_aix_libpath_
|
---|
11309 | fi
|
---|
11310 |
|
---|
11311 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
|
---|
11312 | # Warning - without using the other run time loading flags,
|
---|
11313 | # -berok will link without error, but may produce a broken library.
|
---|
11314 | no_undefined_flag=' $wl-bernotok'
|
---|
11315 | allow_undefined_flag=' $wl-berok'
|
---|
11316 | if test yes = "$with_gnu_ld"; then
|
---|
11317 | # We only use this code for GNU lds that support --whole-archive.
|
---|
11318 | whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
|
---|
11319 | else
|
---|
11320 | # Exported symbols can be pulled into shared objects from archives
|
---|
11321 | whole_archive_flag_spec='$convenience'
|
---|
11322 | fi
|
---|
11323 | archive_cmds_need_lc=yes
|
---|
11324 | archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
|
---|
11325 | # -brtl affects multiple linker settings, -berok does not and is overridden later
|
---|
11326 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
|
---|
11327 | if test svr4 != "$with_aix_soname"; then
|
---|
11328 | # This is similar to how AIX traditionally builds its shared libraries.
|
---|
11329 | 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'
|
---|
11330 | fi
|
---|
11331 | if test aix != "$with_aix_soname"; then
|
---|
11332 | 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'
|
---|
11333 | else
|
---|
11334 | # used by -dlpreopen to get the symbols
|
---|
11335 | archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
|
---|
11336 | fi
|
---|
11337 | archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
|
---|
11338 | fi
|
---|
11339 | fi
|
---|
11340 | ;;
|
---|
11341 |
|
---|
11342 | amigaos*)
|
---|
11343 | case $host_cpu in
|
---|
11344 | powerpc)
|
---|
11345 | # see comment about AmigaOS4 .so support
|
---|
11346 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
---|
11347 | archive_expsym_cmds=''
|
---|
11348 | ;;
|
---|
11349 | m68k)
|
---|
11350 | 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)'
|
---|
11351 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
11352 | hardcode_minus_L=yes
|
---|
11353 | ;;
|
---|
11354 | esac
|
---|
11355 | ;;
|
---|
11356 |
|
---|
11357 | bsdi[45]*)
|
---|
11358 | export_dynamic_flag_spec=-rdynamic
|
---|
11359 | ;;
|
---|
11360 |
|
---|
11361 | cygwin* | mingw* | windows* | pw32* | cegcc*)
|
---|
11362 | # When not using gcc, we currently assume that we are using
|
---|
11363 | # Microsoft Visual C++ or Intel C++ Compiler.
|
---|
11364 | # hardcode_libdir_flag_spec is actually meaningless, as there is
|
---|
11365 | # no search path for DLLs.
|
---|
11366 | case $cc_basename in
|
---|
11367 | cl* | icl*)
|
---|
11368 | # Native MSVC or ICC
|
---|
11369 | hardcode_libdir_flag_spec=' '
|
---|
11370 | allow_undefined_flag=unsupported
|
---|
11371 | always_export_symbols=yes
|
---|
11372 | file_list_spec='@'
|
---|
11373 | # Tell ltmain to make .lib files, not .a files.
|
---|
11374 | libext=lib
|
---|
11375 | # Tell ltmain to make .dll files, not .so files.
|
---|
11376 | shrext_cmds=.dll
|
---|
11377 | # FIXME: Setting linknames here is a bad hack.
|
---|
11378 | archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
|
---|
11379 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
|
---|
11380 | cp "$export_symbols" "$output_objdir/$soname.def";
|
---|
11381 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
|
---|
11382 | else
|
---|
11383 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
|
---|
11384 | fi~
|
---|
11385 | $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
|
---|
11386 | linknames='
|
---|
11387 | # The linker will not automatically build a static lib if we build a DLL.
|
---|
11388 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
|
---|
11389 | enable_shared_with_static_runtimes=yes
|
---|
11390 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
|
---|
11391 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
---|
11392 | # Don't use ranlib
|
---|
11393 | old_postinstall_cmds='chmod 644 $oldlib'
|
---|
11394 | postlink_cmds='lt_outputfile="@OUTPUT@"~
|
---|
11395 | lt_tool_outputfile="@TOOL_OUTPUT@"~
|
---|
11396 | case $lt_outputfile in
|
---|
11397 | *.exe|*.EXE) ;;
|
---|
11398 | *)
|
---|
11399 | lt_outputfile=$lt_outputfile.exe
|
---|
11400 | lt_tool_outputfile=$lt_tool_outputfile.exe
|
---|
11401 | ;;
|
---|
11402 | esac~
|
---|
11403 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
|
---|
11404 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
|
---|
11405 | $RM "$lt_outputfile.manifest";
|
---|
11406 | fi'
|
---|
11407 | ;;
|
---|
11408 | *)
|
---|
11409 | # Assume MSVC and ICC wrapper
|
---|
11410 | hardcode_libdir_flag_spec=' '
|
---|
11411 | allow_undefined_flag=unsupported
|
---|
11412 | # Tell ltmain to make .lib files, not .a files.
|
---|
11413 | libext=lib
|
---|
11414 | # Tell ltmain to make .dll files, not .so files.
|
---|
11415 | shrext_cmds=.dll
|
---|
11416 | # FIXME: Setting linknames here is a bad hack.
|
---|
11417 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
|
---|
11418 | # The linker will automatically build a .lib file if we build a DLL.
|
---|
11419 | old_archive_from_new_cmds='true'
|
---|
11420 | # FIXME: Should let the user specify the lib program.
|
---|
11421 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
---|
11422 | enable_shared_with_static_runtimes=yes
|
---|
11423 | ;;
|
---|
11424 | esac
|
---|
11425 | ;;
|
---|
11426 |
|
---|
11427 | darwin* | rhapsody*)
|
---|
11428 |
|
---|
11429 |
|
---|
11430 | archive_cmds_need_lc=no
|
---|
11431 | hardcode_direct=no
|
---|
11432 | hardcode_automatic=yes
|
---|
11433 | hardcode_shlibpath_var=unsupported
|
---|
11434 | if test yes = "$lt_cv_ld_force_load"; then
|
---|
11435 | 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\"`'
|
---|
11436 |
|
---|
11437 | else
|
---|
11438 | whole_archive_flag_spec=''
|
---|
11439 | fi
|
---|
11440 | link_all_deplibs=yes
|
---|
11441 | allow_undefined_flag=$_lt_dar_allow_undefined
|
---|
11442 | case $cc_basename in
|
---|
11443 | ifort*|nagfor*) _lt_dar_can_shared=yes ;;
|
---|
11444 | *) _lt_dar_can_shared=$GCC ;;
|
---|
11445 | esac
|
---|
11446 | if test yes = "$_lt_dar_can_shared"; then
|
---|
11447 | output_verbose_link_cmd=func_echo_all
|
---|
11448 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
|
---|
11449 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
|
---|
11450 | 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"
|
---|
11451 | 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"
|
---|
11452 |
|
---|
11453 | else
|
---|
11454 | ld_shlibs=no
|
---|
11455 | fi
|
---|
11456 |
|
---|
11457 | ;;
|
---|
11458 |
|
---|
11459 | dgux*)
|
---|
11460 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
11461 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
11462 | hardcode_shlibpath_var=no
|
---|
11463 | ;;
|
---|
11464 |
|
---|
11465 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
---|
11466 | # support. Future versions do this automatically, but an explicit c++rt0.o
|
---|
11467 | # does not break anything, and helps significantly (at the cost of a little
|
---|
11468 | # extra space).
|
---|
11469 | freebsd2.2*)
|
---|
11470 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
|
---|
11471 | hardcode_libdir_flag_spec='-R$libdir'
|
---|
11472 | hardcode_direct=yes
|
---|
11473 | hardcode_shlibpath_var=no
|
---|
11474 | ;;
|
---|
11475 |
|
---|
11476 | # Unfortunately, older versions of FreeBSD 2 do not have this feature.
|
---|
11477 | freebsd2.*)
|
---|
11478 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
---|
11479 | hardcode_direct=yes
|
---|
11480 | hardcode_minus_L=yes
|
---|
11481 | hardcode_shlibpath_var=no
|
---|
11482 | ;;
|
---|
11483 |
|
---|
11484 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
---|
11485 | freebsd* | dragonfly* | midnightbsd*)
|
---|
11486 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11487 | hardcode_libdir_flag_spec='-R$libdir'
|
---|
11488 | hardcode_direct=yes
|
---|
11489 | hardcode_shlibpath_var=no
|
---|
11490 | ;;
|
---|
11491 |
|
---|
11492 | hpux9*)
|
---|
11493 | if test yes = "$GCC"; then
|
---|
11494 | 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'
|
---|
11495 | else
|
---|
11496 | 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'
|
---|
11497 | fi
|
---|
11498 | hardcode_libdir_flag_spec='$wl+b $wl$libdir'
|
---|
11499 | hardcode_libdir_separator=:
|
---|
11500 | hardcode_direct=yes
|
---|
11501 |
|
---|
11502 | # hardcode_minus_L: Not really in the search PATH,
|
---|
11503 | # but as the default location of the library.
|
---|
11504 | hardcode_minus_L=yes
|
---|
11505 | export_dynamic_flag_spec='$wl-E'
|
---|
11506 | ;;
|
---|
11507 |
|
---|
11508 | hpux10*)
|
---|
11509 | if test yes,no = "$GCC,$with_gnu_ld"; then
|
---|
11510 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11511 | else
|
---|
11512 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
---|
11513 | fi
|
---|
11514 | if test no = "$with_gnu_ld"; then
|
---|
11515 | hardcode_libdir_flag_spec='$wl+b $wl$libdir'
|
---|
11516 | hardcode_libdir_separator=:
|
---|
11517 | hardcode_direct=yes
|
---|
11518 | hardcode_direct_absolute=yes
|
---|
11519 | export_dynamic_flag_spec='$wl-E'
|
---|
11520 | # hardcode_minus_L: Not really in the search PATH,
|
---|
11521 | # but as the default location of the library.
|
---|
11522 | hardcode_minus_L=yes
|
---|
11523 | fi
|
---|
11524 | ;;
|
---|
11525 |
|
---|
11526 | hpux11*)
|
---|
11527 | if test yes,no = "$GCC,$with_gnu_ld"; then
|
---|
11528 | case $host_cpu in
|
---|
11529 | hppa*64*)
|
---|
11530 | archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11531 | ;;
|
---|
11532 | ia64*)
|
---|
11533 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11534 | ;;
|
---|
11535 | *)
|
---|
11536 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11537 | ;;
|
---|
11538 | esac
|
---|
11539 | else
|
---|
11540 | case $host_cpu in
|
---|
11541 | hppa*64*)
|
---|
11542 | archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11543 | ;;
|
---|
11544 | ia64*)
|
---|
11545 | archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11546 | ;;
|
---|
11547 | *)
|
---|
11548 |
|
---|
11549 | # Older versions of the 11.00 compiler do not understand -b yet
|
---|
11550 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
|
---|
11551 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
|
---|
11552 | printf %s "checking if $CC understands -b... " >&6; }
|
---|
11553 | if test ${lt_cv_prog_compiler__b+y}
|
---|
11554 | then :
|
---|
11555 | printf %s "(cached) " >&6
|
---|
11556 | else case e in #(
|
---|
11557 | e) lt_cv_prog_compiler__b=no
|
---|
11558 | save_LDFLAGS=$LDFLAGS
|
---|
11559 | LDFLAGS="$LDFLAGS -b"
|
---|
11560 | echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
---|
11561 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
---|
11562 | # The linker can only warn and ignore the option if not recognized
|
---|
11563 | # So say no if there are warnings
|
---|
11564 | if test -s conftest.err; then
|
---|
11565 | # Append any errors to the config.log.
|
---|
11566 | cat conftest.err 1>&5
|
---|
11567 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
|
---|
11568 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
---|
11569 | if diff conftest.exp conftest.er2 >/dev/null; then
|
---|
11570 | lt_cv_prog_compiler__b=yes
|
---|
11571 | fi
|
---|
11572 | else
|
---|
11573 | lt_cv_prog_compiler__b=yes
|
---|
11574 | fi
|
---|
11575 | fi
|
---|
11576 | $RM -r conftest*
|
---|
11577 | LDFLAGS=$save_LDFLAGS
|
---|
11578 | ;;
|
---|
11579 | esac
|
---|
11580 | fi
|
---|
11581 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
|
---|
11582 | printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
|
---|
11583 |
|
---|
11584 | if test yes = "$lt_cv_prog_compiler__b"; then
|
---|
11585 | archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11586 | else
|
---|
11587 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
---|
11588 | fi
|
---|
11589 |
|
---|
11590 | ;;
|
---|
11591 | esac
|
---|
11592 | fi
|
---|
11593 | if test no = "$with_gnu_ld"; then
|
---|
11594 | hardcode_libdir_flag_spec='$wl+b $wl$libdir'
|
---|
11595 | hardcode_libdir_separator=:
|
---|
11596 |
|
---|
11597 | case $host_cpu in
|
---|
11598 | hppa*64*|ia64*)
|
---|
11599 | hardcode_direct=no
|
---|
11600 | hardcode_shlibpath_var=no
|
---|
11601 | ;;
|
---|
11602 | *)
|
---|
11603 | hardcode_direct=yes
|
---|
11604 | hardcode_direct_absolute=yes
|
---|
11605 | export_dynamic_flag_spec='$wl-E'
|
---|
11606 |
|
---|
11607 | # hardcode_minus_L: Not really in the search PATH,
|
---|
11608 | # but as the default location of the library.
|
---|
11609 | hardcode_minus_L=yes
|
---|
11610 | ;;
|
---|
11611 | esac
|
---|
11612 | fi
|
---|
11613 | ;;
|
---|
11614 |
|
---|
11615 | irix5* | irix6* | nonstopux*)
|
---|
11616 | if test yes = "$GCC"; then
|
---|
11617 | 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'
|
---|
11618 | # Try to use the -exported_symbol ld option, if it does not
|
---|
11619 | # work, assume that -exports_file does not work either and
|
---|
11620 | # implicitly export all symbols.
|
---|
11621 | # This should be the same for all languages, so no per-tag cache variable.
|
---|
11622 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
|
---|
11623 | printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
|
---|
11624 | if test ${lt_cv_irix_exported_symbol+y}
|
---|
11625 | then :
|
---|
11626 | printf %s "(cached) " >&6
|
---|
11627 | else case e in #(
|
---|
11628 | e) save_LDFLAGS=$LDFLAGS
|
---|
11629 | LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
|
---|
11630 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
11631 | /* end confdefs.h. */
|
---|
11632 | int foo (void) { return 0; }
|
---|
11633 | _ACEOF
|
---|
11634 | if ac_fn_c_try_link "$LINENO"
|
---|
11635 | then :
|
---|
11636 | lt_cv_irix_exported_symbol=yes
|
---|
11637 | else case e in #(
|
---|
11638 | e) lt_cv_irix_exported_symbol=no ;;
|
---|
11639 | esac
|
---|
11640 | fi
|
---|
11641 | rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
---|
11642 | conftest$ac_exeext conftest.$ac_ext
|
---|
11643 | LDFLAGS=$save_LDFLAGS ;;
|
---|
11644 | esac
|
---|
11645 | fi
|
---|
11646 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
|
---|
11647 | printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
|
---|
11648 | if test yes = "$lt_cv_irix_exported_symbol"; then
|
---|
11649 | 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'
|
---|
11650 | fi
|
---|
11651 | else
|
---|
11652 | 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'
|
---|
11653 | 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'
|
---|
11654 | fi
|
---|
11655 | archive_cmds_need_lc='no'
|
---|
11656 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
---|
11657 | hardcode_libdir_separator=:
|
---|
11658 | inherit_rpath=yes
|
---|
11659 | link_all_deplibs=yes
|
---|
11660 | ;;
|
---|
11661 |
|
---|
11662 | linux*)
|
---|
11663 | case $cc_basename in
|
---|
11664 | tcc*)
|
---|
11665 | # Fabrice Bellard et al's Tiny C Compiler
|
---|
11666 | ld_shlibs=yes
|
---|
11667 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11668 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
---|
11669 | ;;
|
---|
11670 | esac
|
---|
11671 | ;;
|
---|
11672 |
|
---|
11673 | *-mlibc)
|
---|
11674 | ;;
|
---|
11675 |
|
---|
11676 | netbsd* | netbsdelf*-gnu)
|
---|
11677 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
---|
11678 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
---|
11679 | else
|
---|
11680 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
|
---|
11681 | fi
|
---|
11682 | hardcode_libdir_flag_spec='-R$libdir'
|
---|
11683 | hardcode_direct=yes
|
---|
11684 | hardcode_shlibpath_var=no
|
---|
11685 | ;;
|
---|
11686 |
|
---|
11687 | newsos6)
|
---|
11688 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
11689 | hardcode_direct=yes
|
---|
11690 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
---|
11691 | hardcode_libdir_separator=:
|
---|
11692 | hardcode_shlibpath_var=no
|
---|
11693 | ;;
|
---|
11694 |
|
---|
11695 | *nto* | *qnx*)
|
---|
11696 | ;;
|
---|
11697 |
|
---|
11698 | openbsd*)
|
---|
11699 | if test -f /usr/libexec/ld.so; then
|
---|
11700 | hardcode_direct=yes
|
---|
11701 | hardcode_shlibpath_var=no
|
---|
11702 | hardcode_direct_absolute=yes
|
---|
11703 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
|
---|
11704 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11705 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
|
---|
11706 | hardcode_libdir_flag_spec='$wl-rpath,$libdir'
|
---|
11707 | export_dynamic_flag_spec='$wl-E'
|
---|
11708 | else
|
---|
11709 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11710 | hardcode_libdir_flag_spec='$wl-rpath,$libdir'
|
---|
11711 | fi
|
---|
11712 | else
|
---|
11713 | ld_shlibs=no
|
---|
11714 | fi
|
---|
11715 | ;;
|
---|
11716 |
|
---|
11717 | os2*)
|
---|
11718 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
11719 | hardcode_minus_L=yes
|
---|
11720 | allow_undefined_flag=unsupported
|
---|
11721 | shrext_cmds=.dll
|
---|
11722 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
|
---|
11723 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
|
---|
11724 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
|
---|
11725 | $ECHO EXPORTS >> $output_objdir/$libname.def~
|
---|
11726 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
|
---|
11727 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
|
---|
11728 | emximp -o $lib $output_objdir/$libname.def'
|
---|
11729 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
|
---|
11730 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
|
---|
11731 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
|
---|
11732 | $ECHO EXPORTS >> $output_objdir/$libname.def~
|
---|
11733 | prefix_cmds="$SED"~
|
---|
11734 | if test EXPORTS = "`$SED 1q $export_symbols`"; then
|
---|
11735 | prefix_cmds="$prefix_cmds -e 1d";
|
---|
11736 | fi~
|
---|
11737 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
|
---|
11738 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
|
---|
11739 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
|
---|
11740 | emximp -o $lib $output_objdir/$libname.def'
|
---|
11741 | old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
|
---|
11742 | enable_shared_with_static_runtimes=yes
|
---|
11743 | file_list_spec='@'
|
---|
11744 | ;;
|
---|
11745 |
|
---|
11746 | osf3*)
|
---|
11747 | if test yes = "$GCC"; then
|
---|
11748 | allow_undefined_flag=' $wl-expect_unresolved $wl\*'
|
---|
11749 | 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'
|
---|
11750 | else
|
---|
11751 | allow_undefined_flag=' -expect_unresolved \*'
|
---|
11752 | 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'
|
---|
11753 | fi
|
---|
11754 | archive_cmds_need_lc='no'
|
---|
11755 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
---|
11756 | hardcode_libdir_separator=:
|
---|
11757 | ;;
|
---|
11758 |
|
---|
11759 | osf4* | osf5*) # as osf3* with the addition of -msym flag
|
---|
11760 | if test yes = "$GCC"; then
|
---|
11761 | allow_undefined_flag=' $wl-expect_unresolved $wl\*'
|
---|
11762 | 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'
|
---|
11763 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
---|
11764 | else
|
---|
11765 | allow_undefined_flag=' -expect_unresolved \*'
|
---|
11766 | 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'
|
---|
11767 | 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~
|
---|
11768 | $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'
|
---|
11769 |
|
---|
11770 | # Both c and cxx compiler support -rpath directly
|
---|
11771 | hardcode_libdir_flag_spec='-rpath $libdir'
|
---|
11772 | fi
|
---|
11773 | archive_cmds_need_lc='no'
|
---|
11774 | hardcode_libdir_separator=:
|
---|
11775 | ;;
|
---|
11776 |
|
---|
11777 | serenity*)
|
---|
11778 | ;;
|
---|
11779 |
|
---|
11780 | solaris*)
|
---|
11781 | no_undefined_flag=' -z defs'
|
---|
11782 | if test yes = "$GCC"; then
|
---|
11783 | wlarc='$wl'
|
---|
11784 | archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11785 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
---|
11786 | $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'
|
---|
11787 | else
|
---|
11788 | case `$CC -V 2>&1` in
|
---|
11789 | *"Compilers 5.0"*)
|
---|
11790 | wlarc=''
|
---|
11791 | archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
11792 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
---|
11793 | $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
|
---|
11794 | ;;
|
---|
11795 | *)
|
---|
11796 | wlarc='$wl'
|
---|
11797 | archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11798 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
---|
11799 | $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
---|
11800 | ;;
|
---|
11801 | esac
|
---|
11802 | fi
|
---|
11803 | hardcode_libdir_flag_spec='-R$libdir'
|
---|
11804 | hardcode_shlibpath_var=no
|
---|
11805 | case $host_os in
|
---|
11806 | solaris2.[0-5] | solaris2.[0-5].*) ;;
|
---|
11807 | *)
|
---|
11808 | # The compiler driver will combine and reorder linker options,
|
---|
11809 | # but understands '-z linker_flag'. GCC discards it without '$wl',
|
---|
11810 | # but is careful enough not to reorder.
|
---|
11811 | # Supported since Solaris 2.6 (maybe 2.5.1?)
|
---|
11812 | if test yes = "$GCC"; then
|
---|
11813 | whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
|
---|
11814 | else
|
---|
11815 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
|
---|
11816 | fi
|
---|
11817 | ;;
|
---|
11818 | esac
|
---|
11819 | link_all_deplibs=yes
|
---|
11820 | ;;
|
---|
11821 |
|
---|
11822 | sunos4*)
|
---|
11823 | if test sequent = "$host_vendor"; then
|
---|
11824 | # Use $CC to link under sequent, because it throws in some extra .o
|
---|
11825 | # files that make .init and .fini sections work.
|
---|
11826 | archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11827 | else
|
---|
11828 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
|
---|
11829 | fi
|
---|
11830 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
11831 | hardcode_direct=yes
|
---|
11832 | hardcode_minus_L=yes
|
---|
11833 | hardcode_shlibpath_var=no
|
---|
11834 | ;;
|
---|
11835 |
|
---|
11836 | sysv4)
|
---|
11837 | case $host_vendor in
|
---|
11838 | sni)
|
---|
11839 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
11840 | hardcode_direct=yes # is this really true???
|
---|
11841 | ;;
|
---|
11842 | siemens)
|
---|
11843 | ## LD is ld it makes a PLAMLIB
|
---|
11844 | ## CC just makes a GrossModule.
|
---|
11845 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
---|
11846 | reload_cmds='$CC -r -o $output$reload_objs'
|
---|
11847 | hardcode_direct=no
|
---|
11848 | ;;
|
---|
11849 | motorola)
|
---|
11850 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
11851 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie
|
---|
11852 | ;;
|
---|
11853 | esac
|
---|
11854 | runpath_var='LD_RUN_PATH'
|
---|
11855 | hardcode_shlibpath_var=no
|
---|
11856 | ;;
|
---|
11857 |
|
---|
11858 | sysv4.3*)
|
---|
11859 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
11860 | hardcode_shlibpath_var=no
|
---|
11861 | export_dynamic_flag_spec='-Bexport'
|
---|
11862 | ;;
|
---|
11863 |
|
---|
11864 | sysv4*MP*)
|
---|
11865 | if test -d /usr/nec; then
|
---|
11866 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
11867 | hardcode_shlibpath_var=no
|
---|
11868 | runpath_var=LD_RUN_PATH
|
---|
11869 | hardcode_runpath_var=yes
|
---|
11870 | ld_shlibs=yes
|
---|
11871 | fi
|
---|
11872 | ;;
|
---|
11873 |
|
---|
11874 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
|
---|
11875 | no_undefined_flag='$wl-z,text'
|
---|
11876 | archive_cmds_need_lc=no
|
---|
11877 | hardcode_shlibpath_var=no
|
---|
11878 | runpath_var='LD_RUN_PATH'
|
---|
11879 |
|
---|
11880 | if test yes = "$GCC"; then
|
---|
11881 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11882 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11883 | else
|
---|
11884 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11885 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11886 | fi
|
---|
11887 | ;;
|
---|
11888 |
|
---|
11889 | sysv5* | sco3.2v5* | sco5v6*)
|
---|
11890 | # Note: We CANNOT use -z defs as we might desire, because we do not
|
---|
11891 | # link with -lc, and that would cause any symbols used from libc to
|
---|
11892 | # always be unresolved, which means just about no library would
|
---|
11893 | # ever link correctly. If we're not using GNU ld we use -z text
|
---|
11894 | # though, which does catch some bad symbols but isn't as heavy-handed
|
---|
11895 | # as -z defs.
|
---|
11896 | no_undefined_flag='$wl-z,text'
|
---|
11897 | allow_undefined_flag='$wl-z,nodefs'
|
---|
11898 | archive_cmds_need_lc=no
|
---|
11899 | hardcode_shlibpath_var=no
|
---|
11900 | hardcode_libdir_flag_spec='$wl-R,$libdir'
|
---|
11901 | hardcode_libdir_separator=':'
|
---|
11902 | link_all_deplibs=yes
|
---|
11903 | export_dynamic_flag_spec='$wl-Bexport'
|
---|
11904 | runpath_var='LD_RUN_PATH'
|
---|
11905 |
|
---|
11906 | if test yes = "$GCC"; then
|
---|
11907 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11908 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11909 | else
|
---|
11910 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11911 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
---|
11912 | fi
|
---|
11913 | ;;
|
---|
11914 |
|
---|
11915 | uts4*)
|
---|
11916 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
---|
11917 | hardcode_libdir_flag_spec='-L$libdir'
|
---|
11918 | hardcode_shlibpath_var=no
|
---|
11919 | ;;
|
---|
11920 |
|
---|
11921 | *)
|
---|
11922 | ld_shlibs=no
|
---|
11923 | ;;
|
---|
11924 | esac
|
---|
11925 |
|
---|
11926 | if test sni = "$host_vendor"; then
|
---|
11927 | case $host in
|
---|
11928 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
---|
11929 | export_dynamic_flag_spec='$wl-Blargedynsym'
|
---|
11930 | ;;
|
---|
11931 | esac
|
---|
11932 | fi
|
---|
11933 | fi
|
---|
11934 |
|
---|
11935 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
|
---|
11936 | printf "%s\n" "$ld_shlibs" >&6; }
|
---|
11937 | test no = "$ld_shlibs" && can_build_shared=no
|
---|
11938 |
|
---|
11939 | with_gnu_ld=$with_gnu_ld
|
---|
11940 |
|
---|
11941 |
|
---|
11942 |
|
---|
11943 |
|
---|
11944 |
|
---|
11945 |
|
---|
11946 |
|
---|
11947 |
|
---|
11948 |
|
---|
11949 |
|
---|
11950 |
|
---|
11951 |
|
---|
11952 |
|
---|
11953 |
|
---|
11954 |
|
---|
11955 | #
|
---|
11956 | # Do we need to explicitly link libc?
|
---|
11957 | #
|
---|
11958 | case "x$archive_cmds_need_lc" in
|
---|
11959 | x|xyes)
|
---|
11960 | # Assume -lc should be added
|
---|
11961 | archive_cmds_need_lc=yes
|
---|
11962 |
|
---|
11963 | if test yes,yes = "$GCC,$enable_shared"; then
|
---|
11964 | case $archive_cmds in
|
---|
11965 | *'~'*)
|
---|
11966 | # FIXME: we may have to deal with multi-command sequences.
|
---|
11967 | ;;
|
---|
11968 | '$CC '*)
|
---|
11969 | # Test whether the compiler implicitly links with -lc since on some
|
---|
11970 | # systems, -lgcc has to come before -lc. If gcc already passes -lc
|
---|
11971 | # to ld, don't add -lc before -lgcc.
|
---|
11972 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
|
---|
11973 | printf %s "checking whether -lc should be explicitly linked in... " >&6; }
|
---|
11974 | if test ${lt_cv_archive_cmds_need_lc+y}
|
---|
11975 | then :
|
---|
11976 | printf %s "(cached) " >&6
|
---|
11977 | else case e in #(
|
---|
11978 | e) $RM conftest*
|
---|
11979 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
---|
11980 |
|
---|
11981 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
---|
11982 | (eval $ac_compile) 2>&5
|
---|
11983 | ac_status=$?
|
---|
11984 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
11985 | test $ac_status = 0; } 2>conftest.err; then
|
---|
11986 | soname=conftest
|
---|
11987 | lib=conftest
|
---|
11988 | libobjs=conftest.$ac_objext
|
---|
11989 | deplibs=
|
---|
11990 | wl=$lt_prog_compiler_wl
|
---|
11991 | pic_flag=$lt_prog_compiler_pic
|
---|
11992 | compiler_flags=-v
|
---|
11993 | linker_flags=-v
|
---|
11994 | verstring=
|
---|
11995 | output_objdir=.
|
---|
11996 | libname=conftest
|
---|
11997 | lt_save_allow_undefined_flag=$allow_undefined_flag
|
---|
11998 | allow_undefined_flag=
|
---|
11999 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
|
---|
12000 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
|
---|
12001 | ac_status=$?
|
---|
12002 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
12003 | test $ac_status = 0; }
|
---|
12004 | then
|
---|
12005 | lt_cv_archive_cmds_need_lc=no
|
---|
12006 | else
|
---|
12007 | lt_cv_archive_cmds_need_lc=yes
|
---|
12008 | fi
|
---|
12009 | allow_undefined_flag=$lt_save_allow_undefined_flag
|
---|
12010 | else
|
---|
12011 | cat conftest.err 1>&5
|
---|
12012 | fi
|
---|
12013 | $RM conftest*
|
---|
12014 | ;;
|
---|
12015 | esac
|
---|
12016 | fi
|
---|
12017 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
|
---|
12018 | printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
|
---|
12019 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
|
---|
12020 | ;;
|
---|
12021 | esac
|
---|
12022 | fi
|
---|
12023 | ;;
|
---|
12024 | esac
|
---|
12025 |
|
---|
12026 |
|
---|
12027 |
|
---|
12028 |
|
---|
12029 |
|
---|
12030 |
|
---|
12031 |
|
---|
12032 |
|
---|
12033 |
|
---|
12034 |
|
---|
12035 |
|
---|
12036 |
|
---|
12037 |
|
---|
12038 |
|
---|
12039 |
|
---|
12040 |
|
---|
12041 |
|
---|
12042 |
|
---|
12043 |
|
---|
12044 |
|
---|
12045 |
|
---|
12046 |
|
---|
12047 |
|
---|
12048 |
|
---|
12049 |
|
---|
12050 |
|
---|
12051 |
|
---|
12052 |
|
---|
12053 |
|
---|
12054 |
|
---|
12055 |
|
---|
12056 |
|
---|
12057 |
|
---|
12058 |
|
---|
12059 |
|
---|
12060 |
|
---|
12061 |
|
---|
12062 |
|
---|
12063 |
|
---|
12064 |
|
---|
12065 |
|
---|
12066 |
|
---|
12067 |
|
---|
12068 |
|
---|
12069 |
|
---|
12070 |
|
---|
12071 |
|
---|
12072 |
|
---|
12073 |
|
---|
12074 |
|
---|
12075 |
|
---|
12076 |
|
---|
12077 |
|
---|
12078 |
|
---|
12079 |
|
---|
12080 |
|
---|
12081 |
|
---|
12082 |
|
---|
12083 |
|
---|
12084 |
|
---|
12085 |
|
---|
12086 |
|
---|
12087 |
|
---|
12088 |
|
---|
12089 |
|
---|
12090 |
|
---|
12091 |
|
---|
12092 |
|
---|
12093 |
|
---|
12094 |
|
---|
12095 |
|
---|
12096 |
|
---|
12097 |
|
---|
12098 |
|
---|
12099 |
|
---|
12100 |
|
---|
12101 |
|
---|
12102 |
|
---|
12103 |
|
---|
12104 |
|
---|
12105 |
|
---|
12106 |
|
---|
12107 |
|
---|
12108 |
|
---|
12109 |
|
---|
12110 |
|
---|
12111 |
|
---|
12112 |
|
---|
12113 |
|
---|
12114 |
|
---|
12115 |
|
---|
12116 |
|
---|
12117 |
|
---|
12118 |
|
---|
12119 |
|
---|
12120 |
|
---|
12121 |
|
---|
12122 |
|
---|
12123 |
|
---|
12124 |
|
---|
12125 |
|
---|
12126 |
|
---|
12127 |
|
---|
12128 |
|
---|
12129 |
|
---|
12130 |
|
---|
12131 |
|
---|
12132 |
|
---|
12133 |
|
---|
12134 |
|
---|
12135 |
|
---|
12136 |
|
---|
12137 |
|
---|
12138 |
|
---|
12139 |
|
---|
12140 |
|
---|
12141 |
|
---|
12142 |
|
---|
12143 |
|
---|
12144 |
|
---|
12145 |
|
---|
12146 |
|
---|
12147 |
|
---|
12148 |
|
---|
12149 |
|
---|
12150 |
|
---|
12151 |
|
---|
12152 |
|
---|
12153 |
|
---|
12154 |
|
---|
12155 |
|
---|
12156 |
|
---|
12157 |
|
---|
12158 |
|
---|
12159 |
|
---|
12160 |
|
---|
12161 |
|
---|
12162 |
|
---|
12163 |
|
---|
12164 |
|
---|
12165 |
|
---|
12166 |
|
---|
12167 |
|
---|
12168 |
|
---|
12169 |
|
---|
12170 |
|
---|
12171 |
|
---|
12172 |
|
---|
12173 |
|
---|
12174 |
|
---|
12175 |
|
---|
12176 |
|
---|
12177 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
|
---|
12178 | printf %s "checking dynamic linker characteristics... " >&6; }
|
---|
12179 |
|
---|
12180 | if test yes = "$GCC"; then
|
---|
12181 | case $host_os in
|
---|
12182 | darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
|
---|
12183 | *) lt_awk_arg='/^libraries:/' ;;
|
---|
12184 | esac
|
---|
12185 | case $host_os in
|
---|
12186 | mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
|
---|
12187 | *) lt_sed_strip_eq='s|=/|/|g' ;;
|
---|
12188 | esac
|
---|
12189 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
|
---|
12190 | case $lt_search_path_spec in
|
---|
12191 | *\;*)
|
---|
12192 | # if the path contains ";" then we assume it to be the separator
|
---|
12193 | # otherwise default to the standard path separator (i.e. ":") - it is
|
---|
12194 | # assumed that no part of a normal pathname contains ";" but that should
|
---|
12195 | # okay in the real world where ";" in dirpaths is itself problematic.
|
---|
12196 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
|
---|
12197 | ;;
|
---|
12198 | *)
|
---|
12199 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
|
---|
12200 | ;;
|
---|
12201 | esac
|
---|
12202 | # Ok, now we have the path, separated by spaces, we can step through it
|
---|
12203 | # and add multilib dir if necessary...
|
---|
12204 | lt_tmp_lt_search_path_spec=
|
---|
12205 | lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
|
---|
12206 | # ...but if some path component already ends with the multilib dir we assume
|
---|
12207 | # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
|
---|
12208 | case "$lt_multi_os_dir; $lt_search_path_spec " in
|
---|
12209 | "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
|
---|
12210 | lt_multi_os_dir=
|
---|
12211 | ;;
|
---|
12212 | esac
|
---|
12213 | for lt_sys_path in $lt_search_path_spec; do
|
---|
12214 | if test -d "$lt_sys_path$lt_multi_os_dir"; then
|
---|
12215 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
|
---|
12216 | elif test -n "$lt_multi_os_dir"; then
|
---|
12217 | test -d "$lt_sys_path" && \
|
---|
12218 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
|
---|
12219 | fi
|
---|
12220 | done
|
---|
12221 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
|
---|
12222 | BEGIN {RS = " "; FS = "/|\n";} {
|
---|
12223 | lt_foo = "";
|
---|
12224 | lt_count = 0;
|
---|
12225 | for (lt_i = NF; lt_i > 0; lt_i--) {
|
---|
12226 | if ($lt_i != "" && $lt_i != ".") {
|
---|
12227 | if ($lt_i == "..") {
|
---|
12228 | lt_count++;
|
---|
12229 | } else {
|
---|
12230 | if (lt_count == 0) {
|
---|
12231 | lt_foo = "/" $lt_i lt_foo;
|
---|
12232 | } else {
|
---|
12233 | lt_count--;
|
---|
12234 | }
|
---|
12235 | }
|
---|
12236 | }
|
---|
12237 | }
|
---|
12238 | if (lt_foo != "") { lt_freq[lt_foo]++; }
|
---|
12239 | if (lt_freq[lt_foo] == 1) { print lt_foo; }
|
---|
12240 | }'`
|
---|
12241 | # AWK program above erroneously prepends '/' to C:/dos/paths
|
---|
12242 | # for these hosts.
|
---|
12243 | case $host_os in
|
---|
12244 | mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
|
---|
12245 | $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
|
---|
12246 | esac
|
---|
12247 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
|
---|
12248 | else
|
---|
12249 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
---|
12250 | fi
|
---|
12251 | library_names_spec=
|
---|
12252 | libname_spec='lib$name'
|
---|
12253 | soname_spec=
|
---|
12254 | shrext_cmds=.so
|
---|
12255 | postinstall_cmds=
|
---|
12256 | postuninstall_cmds=
|
---|
12257 | finish_cmds=
|
---|
12258 | finish_eval=
|
---|
12259 | shlibpath_var=
|
---|
12260 | shlibpath_overrides_runpath=unknown
|
---|
12261 | version_type=none
|
---|
12262 | dynamic_linker="$host_os ld.so"
|
---|
12263 | sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
---|
12264 | need_lib_prefix=unknown
|
---|
12265 | hardcode_into_libs=no
|
---|
12266 |
|
---|
12267 | # when you set need_version to no, make sure it does not cause -set_version
|
---|
12268 | # flags to be left without arguments
|
---|
12269 | need_version=unknown
|
---|
12270 |
|
---|
12271 |
|
---|
12272 |
|
---|
12273 | case $host_os in
|
---|
12274 | aix3*)
|
---|
12275 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
12276 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
|
---|
12277 | shlibpath_var=LIBPATH
|
---|
12278 |
|
---|
12279 | # AIX 3 has no versioning support, so we append a major version to the name.
|
---|
12280 | soname_spec='$libname$release$shared_ext$major'
|
---|
12281 | ;;
|
---|
12282 |
|
---|
12283 | aix[4-9]*)
|
---|
12284 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
12285 | need_lib_prefix=no
|
---|
12286 | need_version=no
|
---|
12287 | hardcode_into_libs=yes
|
---|
12288 | if test ia64 = "$host_cpu"; then
|
---|
12289 | # AIX 5 supports IA64
|
---|
12290 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
|
---|
12291 | shlibpath_var=LD_LIBRARY_PATH
|
---|
12292 | else
|
---|
12293 | # With GCC up to 2.95.x, collect2 would create an import file
|
---|
12294 | # for dependence libraries. The import file would start with
|
---|
12295 | # the line '#! .'. This would cause the generated library to
|
---|
12296 | # depend on '.', always an invalid library. This was fixed in
|
---|
12297 | # development snapshots of GCC prior to 3.0.
|
---|
12298 | case $host_os in
|
---|
12299 | aix4 | aix4.[01] | aix4.[01].*)
|
---|
12300 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
---|
12301 | echo ' yes '
|
---|
12302 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
|
---|
12303 | :
|
---|
12304 | else
|
---|
12305 | can_build_shared=no
|
---|
12306 | fi
|
---|
12307 | ;;
|
---|
12308 | esac
|
---|
12309 | # Using Import Files as archive members, it is possible to support
|
---|
12310 | # filename-based versioning of shared library archives on AIX. While
|
---|
12311 | # this would work for both with and without runtime linking, it will
|
---|
12312 | # prevent static linking of such archives. So we do filename-based
|
---|
12313 | # shared library versioning with .so extension only, which is used
|
---|
12314 | # when both runtime linking and shared linking is enabled.
|
---|
12315 | # Unfortunately, runtime linking may impact performance, so we do
|
---|
12316 | # not want this to be the default eventually. Also, we use the
|
---|
12317 | # versioned .so libs for executables only if there is the -brtl
|
---|
12318 | # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
|
---|
12319 | # To allow for filename-based versioning support, we need to create
|
---|
12320 | # libNAME.so.V as an archive file, containing:
|
---|
12321 | # *) an Import File, referring to the versioned filename of the
|
---|
12322 | # archive as well as the shared archive member, telling the
|
---|
12323 | # bitwidth (32 or 64) of that shared object, and providing the
|
---|
12324 | # list of exported symbols of that shared object, eventually
|
---|
12325 | # decorated with the 'weak' keyword
|
---|
12326 | # *) the shared object with the F_LOADONLY flag set, to really avoid
|
---|
12327 | # it being seen by the linker.
|
---|
12328 | # At run time we better use the real file rather than another symlink,
|
---|
12329 | # but for link time we create the symlink libNAME.so -> libNAME.so.V
|
---|
12330 |
|
---|
12331 | case $with_aix_soname,$aix_use_runtimelinking in
|
---|
12332 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
|
---|
12333 | # soname into executable. Probably we can add versioning support to
|
---|
12334 | # collect2, so additional links can be useful in future.
|
---|
12335 | aix,yes) # traditional libtool
|
---|
12336 | dynamic_linker='AIX unversionable lib.so'
|
---|
12337 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so
|
---|
12338 | # instead of lib<name>.a to let people know that these are not
|
---|
12339 | # typical AIX shared libraries.
|
---|
12340 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
12341 | ;;
|
---|
12342 | aix,no) # traditional AIX only
|
---|
12343 | dynamic_linker='AIX lib.a(lib.so.V)'
|
---|
12344 | # We preserve .a as extension for shared libraries through AIX4.2
|
---|
12345 | # and later when we are not doing run time linking.
|
---|
12346 | library_names_spec='$libname$release.a $libname.a'
|
---|
12347 | soname_spec='$libname$release$shared_ext$major'
|
---|
12348 | ;;
|
---|
12349 | svr4,*) # full svr4 only
|
---|
12350 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
|
---|
12351 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
|
---|
12352 | # We do not specify a path in Import Files, so LIBPATH fires.
|
---|
12353 | shlibpath_overrides_runpath=yes
|
---|
12354 | ;;
|
---|
12355 | *,yes) # both, prefer svr4
|
---|
12356 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
|
---|
12357 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
|
---|
12358 | # unpreferred sharedlib libNAME.a needs extra handling
|
---|
12359 | 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"'
|
---|
12360 | 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"'
|
---|
12361 | # We do not specify a path in Import Files, so LIBPATH fires.
|
---|
12362 | shlibpath_overrides_runpath=yes
|
---|
12363 | ;;
|
---|
12364 | *,no) # both, prefer aix
|
---|
12365 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
|
---|
12366 | library_names_spec='$libname$release.a $libname.a'
|
---|
12367 | soname_spec='$libname$release$shared_ext$major'
|
---|
12368 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
|
---|
12369 | 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)'
|
---|
12370 | 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"'
|
---|
12371 | ;;
|
---|
12372 | esac
|
---|
12373 | shlibpath_var=LIBPATH
|
---|
12374 | fi
|
---|
12375 | ;;
|
---|
12376 |
|
---|
12377 | amigaos*)
|
---|
12378 | case $host_cpu in
|
---|
12379 | powerpc)
|
---|
12380 | # Since July 2007 AmigaOS4 officially supports .so libraries.
|
---|
12381 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
|
---|
12382 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
12383 | ;;
|
---|
12384 | m68k)
|
---|
12385 | library_names_spec='$libname.ixlibrary $libname.a'
|
---|
12386 | # Create ${libname}_ixlibrary.a entries in /sys/libs.
|
---|
12387 | 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'
|
---|
12388 | ;;
|
---|
12389 | esac
|
---|
12390 | ;;
|
---|
12391 |
|
---|
12392 | beos*)
|
---|
12393 | library_names_spec='$libname$shared_ext'
|
---|
12394 | dynamic_linker="$host_os ld.so"
|
---|
12395 | shlibpath_var=LIBRARY_PATH
|
---|
12396 | ;;
|
---|
12397 |
|
---|
12398 | bsdi[45]*)
|
---|
12399 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
12400 | need_version=no
|
---|
12401 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
12402 | soname_spec='$libname$release$shared_ext$major'
|
---|
12403 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
---|
12404 | shlibpath_var=LD_LIBRARY_PATH
|
---|
12405 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
---|
12406 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
---|
12407 | # the default ld.so.conf also contains /usr/contrib/lib and
|
---|
12408 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
---|
12409 | # libtool to hard-code these into programs
|
---|
12410 | ;;
|
---|
12411 |
|
---|
12412 | cygwin* | mingw* | windows* | pw32* | cegcc*)
|
---|
12413 | version_type=windows
|
---|
12414 | shrext_cmds=.dll
|
---|
12415 | need_version=no
|
---|
12416 | need_lib_prefix=no
|
---|
12417 |
|
---|
12418 | case $GCC,$cc_basename in
|
---|
12419 | yes,*)
|
---|
12420 | # gcc
|
---|
12421 | library_names_spec='$libname.dll.a'
|
---|
12422 | # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
---|
12423 | # If user builds GCC with multilib enabled,
|
---|
12424 | # it should just install on $(libdir)
|
---|
12425 | # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
|
---|
12426 | if test xyes = x"$multilib"; then
|
---|
12427 | postinstall_cmds='base_file=`basename \$file`~
|
---|
12428 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
|
---|
12429 | dldir=$destdir/`dirname \$dlpath`~
|
---|
12430 | $install_prog $dir/$dlname $destdir/$dlname~
|
---|
12431 | chmod a+x $destdir/$dlname~
|
---|
12432 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
|
---|
12433 | eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
|
---|
12434 | fi'
|
---|
12435 | else
|
---|
12436 | postinstall_cmds='base_file=`basename \$file`~
|
---|
12437 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
|
---|
12438 | dldir=$destdir/`dirname \$dlpath`~
|
---|
12439 | test -d \$dldir || mkdir -p \$dldir~
|
---|
12440 | $install_prog $dir/$dlname \$dldir/$dlname~
|
---|
12441 | chmod a+x \$dldir/$dlname~
|
---|
12442 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
|
---|
12443 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
|
---|
12444 | fi'
|
---|
12445 | fi
|
---|
12446 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
---|
12447 | dlpath=$dir/\$dldll~
|
---|
12448 | $RM \$dlpath'
|
---|
12449 | shlibpath_overrides_runpath=yes
|
---|
12450 |
|
---|
12451 | case $host_os in
|
---|
12452 | cygwin*)
|
---|
12453 | # Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
---|
12454 | soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
|
---|
12455 |
|
---|
12456 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
|
---|
12457 | ;;
|
---|
12458 | mingw* | windows* | cegcc*)
|
---|
12459 | # MinGW DLLs use traditional 'lib' prefix
|
---|
12460 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
|
---|
12461 | ;;
|
---|
12462 | pw32*)
|
---|
12463 | # pw32 DLLs use 'pw' prefix rather than 'lib'
|
---|
12464 | library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
|
---|
12465 | ;;
|
---|
12466 | esac
|
---|
12467 | dynamic_linker='Win32 ld.exe'
|
---|
12468 | ;;
|
---|
12469 |
|
---|
12470 | *,cl* | *,icl*)
|
---|
12471 | # Native MSVC or ICC
|
---|
12472 | libname_spec='$name'
|
---|
12473 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
|
---|
12474 | library_names_spec='$libname.dll.lib'
|
---|
12475 |
|
---|
12476 | case $build_os in
|
---|
12477 | mingw* | windows*)
|
---|
12478 | sys_lib_search_path_spec=
|
---|
12479 | lt_save_ifs=$IFS
|
---|
12480 | IFS=';'
|
---|
12481 | for lt_path in $LIB
|
---|
12482 | do
|
---|
12483 | IFS=$lt_save_ifs
|
---|
12484 | # Let DOS variable expansion print the short 8.3 style file name.
|
---|
12485 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
|
---|
12486 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
|
---|
12487 | done
|
---|
12488 | IFS=$lt_save_ifs
|
---|
12489 | # Convert to MSYS style.
|
---|
12490 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
|
---|
12491 | ;;
|
---|
12492 | cygwin*)
|
---|
12493 | # Convert to unix form, then to dos form, then back to unix form
|
---|
12494 | # but this time dos style (no spaces!) so that the unix form looks
|
---|
12495 | # like /cygdrive/c/PROGRA~1:/cygdr...
|
---|
12496 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
|
---|
12497 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
|
---|
12498 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
---|
12499 | ;;
|
---|
12500 | *)
|
---|
12501 | sys_lib_search_path_spec=$LIB
|
---|
12502 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
|
---|
12503 | # It is most probably a Windows format PATH.
|
---|
12504 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
---|
12505 | else
|
---|
12506 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
---|
12507 | fi
|
---|
12508 | # FIXME: find the short name or the path components, as spaces are
|
---|
12509 | # common. (e.g. "Program Files" -> "PROGRA~1")
|
---|
12510 | ;;
|
---|
12511 | esac
|
---|
12512 |
|
---|
12513 | # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
---|
12514 | postinstall_cmds='base_file=`basename \$file`~
|
---|
12515 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
|
---|
12516 | dldir=$destdir/`dirname \$dlpath`~
|
---|
12517 | test -d \$dldir || mkdir -p \$dldir~
|
---|
12518 | $install_prog $dir/$dlname \$dldir/$dlname'
|
---|
12519 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
---|
12520 | dlpath=$dir/\$dldll~
|
---|
12521 | $RM \$dlpath'
|
---|
12522 | shlibpath_overrides_runpath=yes
|
---|
12523 | dynamic_linker='Win32 link.exe'
|
---|
12524 | ;;
|
---|
12525 |
|
---|
12526 | *)
|
---|
12527 | # Assume MSVC and ICC wrapper
|
---|
12528 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
|
---|
12529 | dynamic_linker='Win32 ld.exe'
|
---|
12530 | ;;
|
---|
12531 | esac
|
---|
12532 | # FIXME: first we should search . and the directory the executable is in
|
---|
12533 | shlibpath_var=PATH
|
---|
12534 | ;;
|
---|
12535 |
|
---|
12536 | darwin* | rhapsody*)
|
---|
12537 | dynamic_linker="$host_os dyld"
|
---|
12538 | version_type=darwin
|
---|
12539 | need_lib_prefix=no
|
---|
12540 | need_version=no
|
---|
12541 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
|
---|
12542 | soname_spec='$libname$release$major$shared_ext'
|
---|
12543 | shlibpath_overrides_runpath=yes
|
---|
12544 | shlibpath_var=DYLD_LIBRARY_PATH
|
---|
12545 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
---|
12546 |
|
---|
12547 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
|
---|
12548 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
---|
12549 | ;;
|
---|
12550 |
|
---|
12551 | dgux*)
|
---|
12552 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
12553 | need_lib_prefix=no
|
---|
12554 | need_version=no
|
---|
12555 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
12556 | soname_spec='$libname$release$shared_ext$major'
|
---|
12557 | shlibpath_var=LD_LIBRARY_PATH
|
---|
12558 | ;;
|
---|
12559 |
|
---|
12560 | freebsd* | dragonfly* | midnightbsd*)
|
---|
12561 | # DragonFly does not have aout. When/if they implement a new
|
---|
12562 | # versioning mechanism, adjust this.
|
---|
12563 | if test -x /usr/bin/objformat; then
|
---|
12564 | objformat=`/usr/bin/objformat`
|
---|
12565 | else
|
---|
12566 | case $host_os in
|
---|
12567 | freebsd[23].*) objformat=aout ;;
|
---|
12568 | *) objformat=elf ;;
|
---|
12569 | esac
|
---|
12570 | fi
|
---|
12571 | version_type=freebsd-$objformat
|
---|
12572 | case $version_type in
|
---|
12573 | freebsd-elf*)
|
---|
12574 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
12575 | soname_spec='$libname$release$shared_ext$major'
|
---|
12576 | need_version=no
|
---|
12577 | need_lib_prefix=no
|
---|
12578 | ;;
|
---|
12579 | freebsd-*)
|
---|
12580 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
|
---|
12581 | need_version=yes
|
---|
12582 | ;;
|
---|
12583 | esac
|
---|
12584 | case $host_cpu in
|
---|
12585 | powerpc64)
|
---|
12586 | # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
|
---|
12587 | # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
|
---|
12588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
12589 | /* end confdefs.h. */
|
---|
12590 | int test_pointer_size[sizeof (void *) - 5];
|
---|
12591 |
|
---|
12592 | _ACEOF
|
---|
12593 | if ac_fn_c_try_compile "$LINENO"
|
---|
12594 | then :
|
---|
12595 | shlibpath_var=LD_LIBRARY_PATH
|
---|
12596 | else case e in #(
|
---|
12597 | e) shlibpath_var=LD_32_LIBRARY_PATH ;;
|
---|
12598 | esac
|
---|
12599 | fi
|
---|
12600 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
12601 | ;;
|
---|
12602 | *)
|
---|
12603 | shlibpath_var=LD_LIBRARY_PATH
|
---|
12604 | ;;
|
---|
12605 | esac
|
---|
12606 | case $host_os in
|
---|
12607 | freebsd2.*)
|
---|
12608 | shlibpath_overrides_runpath=yes
|
---|
12609 | ;;
|
---|
12610 | freebsd3.[01]* | freebsdelf3.[01]*)
|
---|
12611 | shlibpath_overrides_runpath=yes
|
---|
12612 | hardcode_into_libs=yes
|
---|
12613 | ;;
|
---|
12614 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
|
---|
12615 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
|
---|
12616 | shlibpath_overrides_runpath=no
|
---|
12617 | hardcode_into_libs=yes
|
---|
12618 | ;;
|
---|
12619 | *) # from 4.6 on, and DragonFly
|
---|
12620 | shlibpath_overrides_runpath=yes
|
---|
12621 | hardcode_into_libs=yes
|
---|
12622 | ;;
|
---|
12623 | esac
|
---|
12624 | ;;
|
---|
12625 |
|
---|
12626 | haiku*)
|
---|
12627 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
12628 | need_lib_prefix=no
|
---|
12629 | need_version=no
|
---|
12630 | dynamic_linker="$host_os runtime_loader"
|
---|
12631 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
12632 | soname_spec='$libname$release$shared_ext$major'
|
---|
12633 | shlibpath_var=LIBRARY_PATH
|
---|
12634 | shlibpath_overrides_runpath=no
|
---|
12635 | sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
|
---|
12636 | sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
|
---|
12637 | hardcode_into_libs=no
|
---|
12638 | ;;
|
---|
12639 |
|
---|
12640 | hpux9* | hpux10* | hpux11*)
|
---|
12641 | # Give a soname corresponding to the major version so that dld.sl refuses to
|
---|
12642 | # link against other versions.
|
---|
12643 | version_type=sunos
|
---|
12644 | need_lib_prefix=no
|
---|
12645 | need_version=no
|
---|
12646 | case $host_cpu in
|
---|
12647 | ia64*)
|
---|
12648 | shrext_cmds='.so'
|
---|
12649 | hardcode_into_libs=yes
|
---|
12650 | dynamic_linker="$host_os dld.so"
|
---|
12651 | shlibpath_var=LD_LIBRARY_PATH
|
---|
12652 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
---|
12653 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
12654 | soname_spec='$libname$release$shared_ext$major'
|
---|
12655 | if test 32 = "$HPUX_IA64_MODE"; then
|
---|
12656 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
|
---|
12657 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32
|
---|
12658 | else
|
---|
12659 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
|
---|
12660 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64
|
---|
12661 | fi
|
---|
12662 | ;;
|
---|
12663 | hppa*64*)
|
---|
12664 | shrext_cmds='.sl'
|
---|
12665 | hardcode_into_libs=yes
|
---|
12666 | dynamic_linker="$host_os dld.sl"
|
---|
12667 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
---|
12668 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
---|
12669 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
12670 | soname_spec='$libname$release$shared_ext$major'
|
---|
12671 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
---|
12672 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
---|
12673 | ;;
|
---|
12674 | *)
|
---|
12675 | shrext_cmds='.sl'
|
---|
12676 | dynamic_linker="$host_os dld.sl"
|
---|
12677 | shlibpath_var=SHLIB_PATH
|
---|
12678 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
---|
12679 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
12680 | soname_spec='$libname$release$shared_ext$major'
|
---|
12681 | ;;
|
---|
12682 | esac
|
---|
12683 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
|
---|
12684 | postinstall_cmds='chmod 555 $lib'
|
---|
12685 | # or fails outright, so override atomically:
|
---|
12686 | install_override_mode=555
|
---|
12687 | ;;
|
---|
12688 |
|
---|
12689 | interix[3-9]*)
|
---|
12690 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
12691 | need_lib_prefix=no
|
---|
12692 | need_version=no
|
---|
12693 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
12694 | soname_spec='$libname$release$shared_ext$major'
|
---|
12695 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
|
---|
12696 | shlibpath_var=LD_LIBRARY_PATH
|
---|
12697 | shlibpath_overrides_runpath=no
|
---|
12698 | hardcode_into_libs=yes
|
---|
12699 | ;;
|
---|
12700 |
|
---|
12701 | irix5* | irix6* | nonstopux*)
|
---|
12702 | case $host_os in
|
---|
12703 | nonstopux*) version_type=nonstopux ;;
|
---|
12704 | *)
|
---|
12705 | if test yes = "$lt_cv_prog_gnu_ld"; then
|
---|
12706 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
12707 | else
|
---|
12708 | version_type=irix
|
---|
12709 | fi ;;
|
---|
12710 | esac
|
---|
12711 | need_lib_prefix=no
|
---|
12712 | need_version=no
|
---|
12713 | soname_spec='$libname$release$shared_ext$major'
|
---|
12714 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
|
---|
12715 | case $host_os in
|
---|
12716 | irix5* | nonstopux*)
|
---|
12717 | libsuff= shlibsuff=
|
---|
12718 | ;;
|
---|
12719 | *)
|
---|
12720 | case $LD in # libtool.m4 will add one of these switches to LD
|
---|
12721 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
|
---|
12722 | libsuff= shlibsuff= libmagic=32-bit;;
|
---|
12723 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
|
---|
12724 | libsuff=32 shlibsuff=N32 libmagic=N32;;
|
---|
12725 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
|
---|
12726 | libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
---|
12727 | *) libsuff= shlibsuff= libmagic=never-match;;
|
---|
12728 | esac
|
---|
12729 | ;;
|
---|
12730 | esac
|
---|
12731 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
---|
12732 | shlibpath_overrides_runpath=no
|
---|
12733 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
|
---|
12734 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
|
---|
12735 | hardcode_into_libs=yes
|
---|
12736 | ;;
|
---|
12737 |
|
---|
12738 | # No shared lib support for Linux oldld, aout, or coff.
|
---|
12739 | linux*oldld* | linux*aout* | linux*coff*)
|
---|
12740 | dynamic_linker=no
|
---|
12741 | ;;
|
---|
12742 |
|
---|
12743 | linux*android*)
|
---|
12744 | version_type=none # Android doesn't support versioned libraries.
|
---|
12745 | need_lib_prefix=no
|
---|
12746 | need_version=no
|
---|
12747 | library_names_spec='$libname$release$shared_ext $libname$shared_ext'
|
---|
12748 | soname_spec='$libname$release$shared_ext'
|
---|
12749 | finish_cmds=
|
---|
12750 | shlibpath_var=LD_LIBRARY_PATH
|
---|
12751 | shlibpath_overrides_runpath=yes
|
---|
12752 |
|
---|
12753 | # This implies no fast_install, which is unacceptable.
|
---|
12754 | # Some rework will be needed to allow for fast_install
|
---|
12755 | # before this can be enabled.
|
---|
12756 | hardcode_into_libs=yes
|
---|
12757 |
|
---|
12758 | dynamic_linker='Android linker'
|
---|
12759 | # -rpath works at least for libraries that are not overridden by
|
---|
12760 | # libraries installed in system locations.
|
---|
12761 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
---|
12762 | ;;
|
---|
12763 |
|
---|
12764 | # This must be glibc/ELF.
|
---|
12765 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
|
---|
12766 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
12767 | need_lib_prefix=no
|
---|
12768 | need_version=no
|
---|
12769 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
12770 | soname_spec='$libname$release$shared_ext$major'
|
---|
12771 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
---|
12772 | shlibpath_var=LD_LIBRARY_PATH
|
---|
12773 | shlibpath_overrides_runpath=no
|
---|
12774 |
|
---|
12775 | # Some binutils ld are patched to set DT_RUNPATH
|
---|
12776 | if test ${lt_cv_shlibpath_overrides_runpath+y}
|
---|
12777 | then :
|
---|
12778 | printf %s "(cached) " >&6
|
---|
12779 | else case e in #(
|
---|
12780 | e) lt_cv_shlibpath_overrides_runpath=no
|
---|
12781 | save_LDFLAGS=$LDFLAGS
|
---|
12782 | save_libdir=$libdir
|
---|
12783 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
|
---|
12784 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
|
---|
12785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
12786 | /* end confdefs.h. */
|
---|
12787 |
|
---|
12788 | int
|
---|
12789 | main (void)
|
---|
12790 | {
|
---|
12791 |
|
---|
12792 | ;
|
---|
12793 | return 0;
|
---|
12794 | }
|
---|
12795 | _ACEOF
|
---|
12796 | if ac_fn_c_try_link "$LINENO"
|
---|
12797 | then :
|
---|
12798 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
|
---|
12799 | then :
|
---|
12800 | lt_cv_shlibpath_overrides_runpath=yes
|
---|
12801 | fi
|
---|
12802 | fi
|
---|
12803 | rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
---|
12804 | conftest$ac_exeext conftest.$ac_ext
|
---|
12805 | LDFLAGS=$save_LDFLAGS
|
---|
12806 | libdir=$save_libdir
|
---|
12807 | ;;
|
---|
12808 | esac
|
---|
12809 | fi
|
---|
12810 |
|
---|
12811 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
|
---|
12812 |
|
---|
12813 | # This implies no fast_install, which is unacceptable.
|
---|
12814 | # Some rework will be needed to allow for fast_install
|
---|
12815 | # before this can be enabled.
|
---|
12816 | hardcode_into_libs=yes
|
---|
12817 |
|
---|
12818 | # Ideally, we could use ldconfig to report *all* directories which are
|
---|
12819 | # searched for libraries, however this is still not possible. Aside from not
|
---|
12820 | # being certain /sbin/ldconfig is available, command
|
---|
12821 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
|
---|
12822 | # even though it is searched at run-time. Try to do the best guess by
|
---|
12823 | # appending ld.so.conf contents (and includes) to the search path.
|
---|
12824 | if test -f /etc/ld.so.conf; then
|
---|
12825 | 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' ' '`
|
---|
12826 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
|
---|
12827 | fi
|
---|
12828 |
|
---|
12829 | # We used to test for /lib/ld.so.1 and disable shared libraries on
|
---|
12830 | # powerpc, because MkLinux only supported shared libraries with the
|
---|
12831 | # GNU dynamic linker. Since this was broken with cross compilers,
|
---|
12832 | # most powerpc-linux boxes support dynamic linking these days and
|
---|
12833 | # people can always --disable-shared, the test was removed, and we
|
---|
12834 | # assume the GNU/Linux dynamic linker is in use.
|
---|
12835 | dynamic_linker='GNU/Linux ld.so'
|
---|
12836 | ;;
|
---|
12837 |
|
---|
12838 | netbsdelf*-gnu)
|
---|
12839 | version_type=linux
|
---|
12840 | need_lib_prefix=no
|
---|
12841 | need_version=no
|
---|
12842 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
12843 | soname_spec='$libname$release$shared_ext$major'
|
---|
12844 | shlibpath_var=LD_LIBRARY_PATH
|
---|
12845 | shlibpath_overrides_runpath=no
|
---|
12846 | hardcode_into_libs=yes
|
---|
12847 | dynamic_linker='NetBSD ld.elf_so'
|
---|
12848 | ;;
|
---|
12849 |
|
---|
12850 | netbsd*)
|
---|
12851 | version_type=sunos
|
---|
12852 | need_lib_prefix=no
|
---|
12853 | need_version=no
|
---|
12854 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
---|
12855 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
|
---|
12856 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
---|
12857 | dynamic_linker='NetBSD (a.out) ld.so'
|
---|
12858 | else
|
---|
12859 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
12860 | soname_spec='$libname$release$shared_ext$major'
|
---|
12861 | dynamic_linker='NetBSD ld.elf_so'
|
---|
12862 | fi
|
---|
12863 | shlibpath_var=LD_LIBRARY_PATH
|
---|
12864 | shlibpath_overrides_runpath=yes
|
---|
12865 | hardcode_into_libs=yes
|
---|
12866 | ;;
|
---|
12867 |
|
---|
12868 | *-mlibc)
|
---|
12869 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
12870 | need_lib_prefix=no
|
---|
12871 | need_version=no
|
---|
12872 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
12873 | soname_spec='$libname$release$shared_ext$major'
|
---|
12874 | dynamic_linker='mlibc ld.so'
|
---|
12875 | shlibpath_var=LD_LIBRARY_PATH
|
---|
12876 | shlibpath_overrides_runpath=no
|
---|
12877 | hardcode_into_libs=yes
|
---|
12878 | ;;
|
---|
12879 |
|
---|
12880 | newsos6)
|
---|
12881 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
12882 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
12883 | shlibpath_var=LD_LIBRARY_PATH
|
---|
12884 | shlibpath_overrides_runpath=yes
|
---|
12885 | ;;
|
---|
12886 |
|
---|
12887 | *nto* | *qnx*)
|
---|
12888 | version_type=qnx
|
---|
12889 | need_lib_prefix=no
|
---|
12890 | need_version=no
|
---|
12891 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
12892 | soname_spec='$libname$release$shared_ext$major'
|
---|
12893 | shlibpath_var=LD_LIBRARY_PATH
|
---|
12894 | shlibpath_overrides_runpath=no
|
---|
12895 | hardcode_into_libs=yes
|
---|
12896 | dynamic_linker='ldqnx.so'
|
---|
12897 | ;;
|
---|
12898 |
|
---|
12899 | openbsd*)
|
---|
12900 | version_type=sunos
|
---|
12901 | sys_lib_dlsearch_path_spec=/usr/lib
|
---|
12902 | need_lib_prefix=no
|
---|
12903 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
|
---|
12904 | need_version=no
|
---|
12905 | else
|
---|
12906 | need_version=yes
|
---|
12907 | fi
|
---|
12908 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
|
---|
12909 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
---|
12910 | shlibpath_var=LD_LIBRARY_PATH
|
---|
12911 | shlibpath_overrides_runpath=yes
|
---|
12912 | ;;
|
---|
12913 |
|
---|
12914 | os2*)
|
---|
12915 | libname_spec='$name'
|
---|
12916 | version_type=windows
|
---|
12917 | shrext_cmds=.dll
|
---|
12918 | need_version=no
|
---|
12919 | need_lib_prefix=no
|
---|
12920 | # OS/2 can only load a DLL with a base name of 8 characters or less.
|
---|
12921 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
|
---|
12922 | v=$($ECHO $release$versuffix | tr -d .-);
|
---|
12923 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
|
---|
12924 | $ECHO $n$v`$shared_ext'
|
---|
12925 | library_names_spec='${libname}_dll.$libext'
|
---|
12926 | dynamic_linker='OS/2 ld.exe'
|
---|
12927 | shlibpath_var=BEGINLIBPATH
|
---|
12928 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
---|
12929 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
---|
12930 | postinstall_cmds='base_file=`basename \$file`~
|
---|
12931 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
|
---|
12932 | dldir=$destdir/`dirname \$dlpath`~
|
---|
12933 | test -d \$dldir || mkdir -p \$dldir~
|
---|
12934 | $install_prog $dir/$dlname \$dldir/$dlname~
|
---|
12935 | chmod a+x \$dldir/$dlname~
|
---|
12936 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
|
---|
12937 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
|
---|
12938 | fi'
|
---|
12939 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
|
---|
12940 | dlpath=$dir/\$dldll~
|
---|
12941 | $RM \$dlpath'
|
---|
12942 | ;;
|
---|
12943 |
|
---|
12944 | osf3* | osf4* | osf5*)
|
---|
12945 | version_type=osf
|
---|
12946 | need_lib_prefix=no
|
---|
12947 | need_version=no
|
---|
12948 | soname_spec='$libname$release$shared_ext$major'
|
---|
12949 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
12950 | shlibpath_var=LD_LIBRARY_PATH
|
---|
12951 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
|
---|
12952 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
---|
12953 | ;;
|
---|
12954 |
|
---|
12955 | rdos*)
|
---|
12956 | dynamic_linker=no
|
---|
12957 | ;;
|
---|
12958 |
|
---|
12959 | serenity*)
|
---|
12960 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
12961 | need_lib_prefix=no
|
---|
12962 | need_version=no
|
---|
12963 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
12964 | soname_spec='$libname$release$shared_ext$major'
|
---|
12965 | shlibpath_var=LD_LIBRARY_PATH
|
---|
12966 | shlibpath_overrides_runpath=no
|
---|
12967 | dynamic_linker='SerenityOS LibELF'
|
---|
12968 | ;;
|
---|
12969 |
|
---|
12970 | solaris*)
|
---|
12971 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
12972 | need_lib_prefix=no
|
---|
12973 | need_version=no
|
---|
12974 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
12975 | soname_spec='$libname$release$shared_ext$major'
|
---|
12976 | shlibpath_var=LD_LIBRARY_PATH
|
---|
12977 | shlibpath_overrides_runpath=yes
|
---|
12978 | hardcode_into_libs=yes
|
---|
12979 | # ldd complains unless libraries are executable
|
---|
12980 | postinstall_cmds='chmod +x $lib'
|
---|
12981 | ;;
|
---|
12982 |
|
---|
12983 | sunos4*)
|
---|
12984 | version_type=sunos
|
---|
12985 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
|
---|
12986 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
|
---|
12987 | shlibpath_var=LD_LIBRARY_PATH
|
---|
12988 | shlibpath_overrides_runpath=yes
|
---|
12989 | if test yes = "$with_gnu_ld"; then
|
---|
12990 | need_lib_prefix=no
|
---|
12991 | fi
|
---|
12992 | need_version=yes
|
---|
12993 | ;;
|
---|
12994 |
|
---|
12995 | sysv4 | sysv4.3*)
|
---|
12996 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
12997 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
12998 | soname_spec='$libname$release$shared_ext$major'
|
---|
12999 | shlibpath_var=LD_LIBRARY_PATH
|
---|
13000 | case $host_vendor in
|
---|
13001 | sni)
|
---|
13002 | shlibpath_overrides_runpath=no
|
---|
13003 | need_lib_prefix=no
|
---|
13004 | runpath_var=LD_RUN_PATH
|
---|
13005 | ;;
|
---|
13006 | siemens)
|
---|
13007 | need_lib_prefix=no
|
---|
13008 | ;;
|
---|
13009 | motorola)
|
---|
13010 | need_lib_prefix=no
|
---|
13011 | need_version=no
|
---|
13012 | shlibpath_overrides_runpath=no
|
---|
13013 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
|
---|
13014 | ;;
|
---|
13015 | esac
|
---|
13016 | ;;
|
---|
13017 |
|
---|
13018 | sysv4*MP*)
|
---|
13019 | if test -d /usr/nec; then
|
---|
13020 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
13021 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
|
---|
13022 | soname_spec='$libname$shared_ext.$major'
|
---|
13023 | shlibpath_var=LD_LIBRARY_PATH
|
---|
13024 | fi
|
---|
13025 | ;;
|
---|
13026 |
|
---|
13027 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
---|
13028 | version_type=sco
|
---|
13029 | need_lib_prefix=no
|
---|
13030 | need_version=no
|
---|
13031 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
|
---|
13032 | soname_spec='$libname$release$shared_ext$major'
|
---|
13033 | shlibpath_var=LD_LIBRARY_PATH
|
---|
13034 | shlibpath_overrides_runpath=yes
|
---|
13035 | hardcode_into_libs=yes
|
---|
13036 | if test yes = "$with_gnu_ld"; then
|
---|
13037 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
|
---|
13038 | else
|
---|
13039 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
|
---|
13040 | case $host_os in
|
---|
13041 | sco3.2v5*)
|
---|
13042 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
|
---|
13043 | ;;
|
---|
13044 | esac
|
---|
13045 | fi
|
---|
13046 | sys_lib_dlsearch_path_spec='/usr/lib'
|
---|
13047 | ;;
|
---|
13048 |
|
---|
13049 | tpf*)
|
---|
13050 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
|
---|
13051 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
13052 | need_lib_prefix=no
|
---|
13053 | need_version=no
|
---|
13054 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
13055 | shlibpath_var=LD_LIBRARY_PATH
|
---|
13056 | shlibpath_overrides_runpath=no
|
---|
13057 | hardcode_into_libs=yes
|
---|
13058 | ;;
|
---|
13059 |
|
---|
13060 | uts4*)
|
---|
13061 | version_type=linux # correct to gnu/linux during the next big refactor
|
---|
13062 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
---|
13063 | soname_spec='$libname$release$shared_ext$major'
|
---|
13064 | shlibpath_var=LD_LIBRARY_PATH
|
---|
13065 | ;;
|
---|
13066 |
|
---|
13067 | emscripten*)
|
---|
13068 | version_type=none
|
---|
13069 | need_lib_prefix=no
|
---|
13070 | need_version=no
|
---|
13071 | library_names_spec='$libname$release$shared_ext'
|
---|
13072 | soname_spec='$libname$release$shared_ext'
|
---|
13073 | finish_cmds=
|
---|
13074 | dynamic_linker="Emscripten linker"
|
---|
13075 | lt_prog_compiler_wl=
|
---|
13076 | lt_prog_compiler_pic=
|
---|
13077 | lt_prog_compiler_static=
|
---|
13078 |
|
---|
13079 |
|
---|
13080 | if test yes = "$GCC"; then
|
---|
13081 | lt_prog_compiler_wl='-Wl,'
|
---|
13082 | lt_prog_compiler_static='-static'
|
---|
13083 |
|
---|
13084 | case $host_os in
|
---|
13085 | aix*)
|
---|
13086 | # All AIX code is PIC.
|
---|
13087 | if test ia64 = "$host_cpu"; then
|
---|
13088 | # AIX 5 now supports IA64 processor
|
---|
13089 | lt_prog_compiler_static='-Bstatic'
|
---|
13090 | fi
|
---|
13091 | lt_prog_compiler_pic='-fPIC'
|
---|
13092 | ;;
|
---|
13093 |
|
---|
13094 | amigaos*)
|
---|
13095 | case $host_cpu in
|
---|
13096 | powerpc)
|
---|
13097 | # see comment about AmigaOS4 .so support
|
---|
13098 | lt_prog_compiler_pic='-fPIC'
|
---|
13099 | ;;
|
---|
13100 | m68k)
|
---|
13101 | # FIXME: we need at least 68020 code to build shared libraries, but
|
---|
13102 | # adding the '-m68020' flag to GCC prevents building anything better,
|
---|
13103 | # like '-m68040'.
|
---|
13104 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
|
---|
13105 | ;;
|
---|
13106 | esac
|
---|
13107 | ;;
|
---|
13108 |
|
---|
13109 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
---|
13110 | # PIC is the default for these OSes.
|
---|
13111 | ;;
|
---|
13112 |
|
---|
13113 | mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
|
---|
13114 | # This hack is so that the source file can tell whether it is being
|
---|
13115 | # built for inclusion in a dll (and should export symbols for example).
|
---|
13116 | # Although the cygwin gcc ignores -fPIC, still need this for old-style
|
---|
13117 | # (--disable-auto-import) libraries
|
---|
13118 | lt_prog_compiler_pic='-DDLL_EXPORT'
|
---|
13119 | case $host_os in
|
---|
13120 | os2*)
|
---|
13121 | lt_prog_compiler_static='$wl-static'
|
---|
13122 | ;;
|
---|
13123 | esac
|
---|
13124 | ;;
|
---|
13125 |
|
---|
13126 | darwin* | rhapsody*)
|
---|
13127 | # PIC is the default on this platform
|
---|
13128 | # Common symbols not allowed in MH_DYLIB files
|
---|
13129 | lt_prog_compiler_pic='-fno-common'
|
---|
13130 | ;;
|
---|
13131 |
|
---|
13132 | haiku*)
|
---|
13133 | # PIC is the default for Haiku.
|
---|
13134 | # The "-static" flag exists, but is broken.
|
---|
13135 | lt_prog_compiler_static=
|
---|
13136 | ;;
|
---|
13137 |
|
---|
13138 | hpux*)
|
---|
13139 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
|
---|
13140 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
|
---|
13141 | # sets the default TLS model and affects inlining.
|
---|
13142 | case $host_cpu in
|
---|
13143 | hppa*64*)
|
---|
13144 | # +Z the default
|
---|
13145 | ;;
|
---|
13146 | *)
|
---|
13147 | lt_prog_compiler_pic='-fPIC'
|
---|
13148 | ;;
|
---|
13149 | esac
|
---|
13150 | ;;
|
---|
13151 |
|
---|
13152 | interix[3-9]*)
|
---|
13153 | # Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
---|
13154 | # Instead, we relocate shared libraries at runtime.
|
---|
13155 | ;;
|
---|
13156 |
|
---|
13157 | msdosdjgpp*)
|
---|
13158 | # Just because we use GCC doesn't mean we suddenly get shared libraries
|
---|
13159 | # on systems that don't support them.
|
---|
13160 | lt_prog_compiler_can_build_shared=no
|
---|
13161 | enable_shared=no
|
---|
13162 | ;;
|
---|
13163 |
|
---|
13164 | *nto* | *qnx*)
|
---|
13165 | # QNX uses GNU C++, but need to define -shared option too, otherwise
|
---|
13166 | # it will coredump.
|
---|
13167 | lt_prog_compiler_pic='-fPIC -shared'
|
---|
13168 | ;;
|
---|
13169 |
|
---|
13170 | sysv4*MP*)
|
---|
13171 | if test -d /usr/nec; then
|
---|
13172 | lt_prog_compiler_pic=-Kconform_pic
|
---|
13173 | fi
|
---|
13174 | ;;
|
---|
13175 |
|
---|
13176 | *)
|
---|
13177 | lt_prog_compiler_pic='-fPIC'
|
---|
13178 | ;;
|
---|
13179 | esac
|
---|
13180 |
|
---|
13181 | case $cc_basename in
|
---|
13182 | nvcc*) # Cuda Compiler Driver 2.2
|
---|
13183 | lt_prog_compiler_wl='-Xlinker '
|
---|
13184 | if test -n "$lt_prog_compiler_pic"; then
|
---|
13185 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
|
---|
13186 | fi
|
---|
13187 | ;;
|
---|
13188 | esac
|
---|
13189 | else
|
---|
13190 | # PORTME Check for flag to pass linker flags through the system compiler.
|
---|
13191 | case $host_os in
|
---|
13192 | aix*)
|
---|
13193 | lt_prog_compiler_wl='-Wl,'
|
---|
13194 | if test ia64 = "$host_cpu"; then
|
---|
13195 | # AIX 5 now supports IA64 processor
|
---|
13196 | lt_prog_compiler_static='-Bstatic'
|
---|
13197 | else
|
---|
13198 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
|
---|
13199 | fi
|
---|
13200 | ;;
|
---|
13201 |
|
---|
13202 | darwin* | rhapsody*)
|
---|
13203 | # PIC is the default on this platform
|
---|
13204 | # Common symbols not allowed in MH_DYLIB files
|
---|
13205 | lt_prog_compiler_pic='-fno-common'
|
---|
13206 | case $cc_basename in
|
---|
13207 | nagfor*)
|
---|
13208 | # NAG Fortran compiler
|
---|
13209 | lt_prog_compiler_wl='-Wl,-Wl,,'
|
---|
13210 | lt_prog_compiler_pic='-PIC'
|
---|
13211 | lt_prog_compiler_static='-Bstatic'
|
---|
13212 | ;;
|
---|
13213 | esac
|
---|
13214 | ;;
|
---|
13215 |
|
---|
13216 | mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
|
---|
13217 | # This hack is so that the source file can tell whether it is being
|
---|
13218 | # built for inclusion in a dll (and should export symbols for example).
|
---|
13219 | lt_prog_compiler_pic='-DDLL_EXPORT'
|
---|
13220 | case $host_os in
|
---|
13221 | os2*)
|
---|
13222 | lt_prog_compiler_static='$wl-static'
|
---|
13223 | ;;
|
---|
13224 | esac
|
---|
13225 | ;;
|
---|
13226 |
|
---|
13227 | hpux9* | hpux10* | hpux11*)
|
---|
13228 | lt_prog_compiler_wl='-Wl,'
|
---|
13229 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
---|
13230 | # not for PA HP-UX.
|
---|
13231 | case $host_cpu in
|
---|
13232 | hppa*64*|ia64*)
|
---|
13233 | # +Z the default
|
---|
13234 | ;;
|
---|
13235 | *)
|
---|
13236 | lt_prog_compiler_pic='+Z'
|
---|
13237 | ;;
|
---|
13238 | esac
|
---|
13239 | # Is there a better lt_prog_compiler_static that works with the bundled CC?
|
---|
13240 | lt_prog_compiler_static='$wl-a ${wl}archive'
|
---|
13241 | ;;
|
---|
13242 |
|
---|
13243 | irix5* | irix6* | nonstopux*)
|
---|
13244 | lt_prog_compiler_wl='-Wl,'
|
---|
13245 | # PIC (with -KPIC) is the default.
|
---|
13246 | lt_prog_compiler_static='-non_shared'
|
---|
13247 | ;;
|
---|
13248 |
|
---|
13249 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
|
---|
13250 | case $cc_basename in
|
---|
13251 | # old Intel for x86_64, which still supported -KPIC.
|
---|
13252 | ecc*)
|
---|
13253 | lt_prog_compiler_wl='-Wl,'
|
---|
13254 | lt_prog_compiler_pic='-KPIC'
|
---|
13255 | lt_prog_compiler_static='-static'
|
---|
13256 | ;;
|
---|
13257 | *flang* | ftn | f18* | f95*)
|
---|
13258 | # Flang compiler.
|
---|
13259 | lt_prog_compiler_wl='-Wl,'
|
---|
13260 | lt_prog_compiler_pic='-fPIC'
|
---|
13261 | lt_prog_compiler_static='-static'
|
---|
13262 | ;;
|
---|
13263 | # icc used to be incompatible with GCC.
|
---|
13264 | # ICC 10 doesn't accept -KPIC any more.
|
---|
13265 | icc* | ifort*)
|
---|
13266 | lt_prog_compiler_wl='-Wl,'
|
---|
13267 | lt_prog_compiler_pic='-fPIC'
|
---|
13268 | lt_prog_compiler_static='-static'
|
---|
13269 | ;;
|
---|
13270 | # Lahey Fortran 8.1.
|
---|
13271 | lf95*)
|
---|
13272 | lt_prog_compiler_wl='-Wl,'
|
---|
13273 | lt_prog_compiler_pic='--shared'
|
---|
13274 | lt_prog_compiler_static='--static'
|
---|
13275 | ;;
|
---|
13276 | nagfor*)
|
---|
13277 | # NAG Fortran compiler
|
---|
13278 | lt_prog_compiler_wl='-Wl,-Wl,,'
|
---|
13279 | lt_prog_compiler_pic='-PIC'
|
---|
13280 | lt_prog_compiler_static='-Bstatic'
|
---|
13281 | ;;
|
---|
13282 | tcc*)
|
---|
13283 | # Fabrice Bellard et al's Tiny C Compiler
|
---|
13284 | lt_prog_compiler_wl='-Wl,'
|
---|
13285 | lt_prog_compiler_pic='-fPIC'
|
---|
13286 | lt_prog_compiler_static='-static'
|
---|
13287 | ;;
|
---|
13288 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
|
---|
13289 | # Portland Group compilers (*not* the Pentium gcc compiler,
|
---|
13290 | # which looks to be a dead project)
|
---|
13291 | lt_prog_compiler_wl='-Wl,'
|
---|
13292 | lt_prog_compiler_pic='-fpic'
|
---|
13293 | lt_prog_compiler_static='-Bstatic'
|
---|
13294 | ;;
|
---|
13295 | ccc*)
|
---|
13296 | lt_prog_compiler_wl='-Wl,'
|
---|
13297 | # All Alpha code is PIC.
|
---|
13298 | lt_prog_compiler_static='-non_shared'
|
---|
13299 | ;;
|
---|
13300 | xl* | bgxl* | bgf* | mpixl*)
|
---|
13301 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
|
---|
13302 | lt_prog_compiler_wl='-Wl,'
|
---|
13303 | lt_prog_compiler_pic='-qpic'
|
---|
13304 | lt_prog_compiler_static='-qstaticlink'
|
---|
13305 | ;;
|
---|
13306 | *)
|
---|
13307 | case `$CC -V 2>&1 | $SED 5q` in
|
---|
13308 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
|
---|
13309 | # Sun Fortran 8.3 passes all unrecognized flags to the linker
|
---|
13310 | lt_prog_compiler_pic='-KPIC'
|
---|
13311 | lt_prog_compiler_static='-Bstatic'
|
---|
13312 | lt_prog_compiler_wl=''
|
---|
13313 | ;;
|
---|
13314 | *Sun\ F* | *Sun*Fortran*)
|
---|
13315 | lt_prog_compiler_pic='-KPIC'
|
---|
13316 | lt_prog_compiler_static='-Bstatic'
|
---|
13317 | lt_prog_compiler_wl='-Qoption ld '
|
---|
13318 | ;;
|
---|
13319 | *Sun\ C*)
|
---|
13320 | # Sun C 5.9
|
---|
13321 | lt_prog_compiler_pic='-KPIC'
|
---|
13322 | lt_prog_compiler_static='-Bstatic'
|
---|
13323 | lt_prog_compiler_wl='-Wl,'
|
---|
13324 | ;;
|
---|
13325 | *Intel*\ [CF]*Compiler*)
|
---|
13326 | lt_prog_compiler_wl='-Wl,'
|
---|
13327 | lt_prog_compiler_pic='-fPIC'
|
---|
13328 | lt_prog_compiler_static='-static'
|
---|
13329 | ;;
|
---|
13330 | *Portland\ Group*)
|
---|
13331 | lt_prog_compiler_wl='-Wl,'
|
---|
13332 | lt_prog_compiler_pic='-fpic'
|
---|
13333 | lt_prog_compiler_static='-Bstatic'
|
---|
13334 | ;;
|
---|
13335 | esac
|
---|
13336 | ;;
|
---|
13337 | esac
|
---|
13338 | ;;
|
---|
13339 |
|
---|
13340 | newsos6)
|
---|
13341 | lt_prog_compiler_pic='-KPIC'
|
---|
13342 | lt_prog_compiler_static='-Bstatic'
|
---|
13343 | ;;
|
---|
13344 |
|
---|
13345 | *-mlibc)
|
---|
13346 | lt_prog_compiler_wl='-Wl,'
|
---|
13347 | lt_prog_compiler_pic='-fPIC'
|
---|
13348 | lt_prog_compiler_static='-static'
|
---|
13349 | ;;
|
---|
13350 |
|
---|
13351 | *nto* | *qnx*)
|
---|
13352 | # QNX uses GNU C++, but need to define -shared option too, otherwise
|
---|
13353 | # it will coredump.
|
---|
13354 | lt_prog_compiler_pic='-fPIC -shared'
|
---|
13355 | ;;
|
---|
13356 |
|
---|
13357 | osf3* | osf4* | osf5*)
|
---|
13358 | lt_prog_compiler_wl='-Wl,'
|
---|
13359 | # All OSF/1 code is PIC.
|
---|
13360 | lt_prog_compiler_static='-non_shared'
|
---|
13361 | ;;
|
---|
13362 |
|
---|
13363 | rdos*)
|
---|
13364 | lt_prog_compiler_static='-non_shared'
|
---|
13365 | ;;
|
---|
13366 |
|
---|
13367 | serenity*)
|
---|
13368 | ;;
|
---|
13369 |
|
---|
13370 | solaris*)
|
---|
13371 | lt_prog_compiler_pic='-KPIC'
|
---|
13372 | lt_prog_compiler_static='-Bstatic'
|
---|
13373 | case $cc_basename in
|
---|
13374 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
|
---|
13375 | lt_prog_compiler_wl='-Qoption ld ';;
|
---|
13376 | *)
|
---|
13377 | lt_prog_compiler_wl='-Wl,';;
|
---|
13378 | esac
|
---|
13379 | ;;
|
---|
13380 |
|
---|
13381 | sunos4*)
|
---|
13382 | lt_prog_compiler_wl='-Qoption ld '
|
---|
13383 | lt_prog_compiler_pic='-PIC'
|
---|
13384 | lt_prog_compiler_static='-Bstatic'
|
---|
13385 | ;;
|
---|
13386 |
|
---|
13387 | sysv4 | sysv4.2uw2* | sysv4.3*)
|
---|
13388 | lt_prog_compiler_wl='-Wl,'
|
---|
13389 | lt_prog_compiler_pic='-KPIC'
|
---|
13390 | lt_prog_compiler_static='-Bstatic'
|
---|
13391 | ;;
|
---|
13392 |
|
---|
13393 | sysv4*MP*)
|
---|
13394 | if test -d /usr/nec; then
|
---|
13395 | lt_prog_compiler_pic='-Kconform_pic'
|
---|
13396 | lt_prog_compiler_static='-Bstatic'
|
---|
13397 | fi
|
---|
13398 | ;;
|
---|
13399 |
|
---|
13400 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
---|
13401 | lt_prog_compiler_wl='-Wl,'
|
---|
13402 | lt_prog_compiler_pic='-KPIC'
|
---|
13403 | lt_prog_compiler_static='-Bstatic'
|
---|
13404 | ;;
|
---|
13405 |
|
---|
13406 | unicos*)
|
---|
13407 | lt_prog_compiler_wl='-Wl,'
|
---|
13408 | lt_prog_compiler_can_build_shared=no
|
---|
13409 | ;;
|
---|
13410 |
|
---|
13411 | uts4*)
|
---|
13412 | lt_prog_compiler_pic='-pic'
|
---|
13413 | lt_prog_compiler_static='-Bstatic'
|
---|
13414 | ;;
|
---|
13415 |
|
---|
13416 | *)
|
---|
13417 | lt_prog_compiler_can_build_shared=no
|
---|
13418 | ;;
|
---|
13419 | esac
|
---|
13420 | fi
|
---|
13421 |
|
---|
13422 | case $host_os in
|
---|
13423 | # For platforms that do not support PIC, -DPIC is meaningless:
|
---|
13424 | *djgpp*)
|
---|
13425 | lt_prog_compiler_pic=
|
---|
13426 | ;;
|
---|
13427 | *)
|
---|
13428 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
|
---|
13429 | ;;
|
---|
13430 | esac
|
---|
13431 |
|
---|
13432 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
|
---|
13433 | printf %s "checking for $compiler option to produce PIC... " >&6; }
|
---|
13434 | if test ${lt_cv_prog_compiler_pic+y}
|
---|
13435 | then :
|
---|
13436 | printf %s "(cached) " >&6
|
---|
13437 | else case e in #(
|
---|
13438 | e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
|
---|
13439 | esac
|
---|
13440 | fi
|
---|
13441 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
|
---|
13442 | printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
|
---|
13443 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
|
---|
13444 |
|
---|
13445 | #
|
---|
13446 | # Check to make sure the PIC flag actually works.
|
---|
13447 | #
|
---|
13448 | if test -n "$lt_prog_compiler_pic"; then
|
---|
13449 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
|
---|
13450 | printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
|
---|
13451 | if test ${lt_cv_prog_compiler_pic_works+y}
|
---|
13452 | then :
|
---|
13453 | printf %s "(cached) " >&6
|
---|
13454 | else case e in #(
|
---|
13455 | e) lt_cv_prog_compiler_pic_works=no
|
---|
13456 | ac_outfile=conftest.$ac_objext
|
---|
13457 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
---|
13458 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
|
---|
13459 | # Insert the option either (1) after the last *FLAGS variable, or
|
---|
13460 | # (2) before a word containing "conftest.", or (3) at the end.
|
---|
13461 | # Note that $ac_compile itself does not contain backslashes and begins
|
---|
13462 | # with a dollar sign (not a hyphen), so the echo should work correctly.
|
---|
13463 | # The option is referenced via a variable to avoid confusing sed.
|
---|
13464 | lt_compile=`echo "$ac_compile" | $SED \
|
---|
13465 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
---|
13466 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
---|
13467 | -e 's:$: $lt_compiler_flag:'`
|
---|
13468 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
|
---|
13469 | (eval "$lt_compile" 2>conftest.err)
|
---|
13470 | ac_status=$?
|
---|
13471 | cat conftest.err >&5
|
---|
13472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
13473 | if (exit $ac_status) && test -s "$ac_outfile"; then
|
---|
13474 | # The compiler can only warn and ignore the option if not recognized
|
---|
13475 | # So say no if there are warnings other than the usual output.
|
---|
13476 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
|
---|
13477 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
---|
13478 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
---|
13479 | lt_cv_prog_compiler_pic_works=yes
|
---|
13480 | fi
|
---|
13481 | fi
|
---|
13482 | $RM conftest*
|
---|
13483 | ;;
|
---|
13484 | esac
|
---|
13485 | fi
|
---|
13486 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
|
---|
13487 | printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
|
---|
13488 |
|
---|
13489 | if test yes = "$lt_cv_prog_compiler_pic_works"; then
|
---|
13490 | case $lt_prog_compiler_pic in
|
---|
13491 | "" | " "*) ;;
|
---|
13492 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
|
---|
13493 | esac
|
---|
13494 | else
|
---|
13495 | lt_prog_compiler_pic=
|
---|
13496 | lt_prog_compiler_can_build_shared=no
|
---|
13497 | fi
|
---|
13498 |
|
---|
13499 | fi
|
---|
13500 |
|
---|
13501 |
|
---|
13502 |
|
---|
13503 |
|
---|
13504 |
|
---|
13505 | #
|
---|
13506 | # Check to make sure the static flag actually works.
|
---|
13507 | #
|
---|
13508 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
|
---|
13509 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
|
---|
13510 | printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
|
---|
13511 | if test ${lt_cv_prog_compiler_static_works+y}
|
---|
13512 | then :
|
---|
13513 | printf %s "(cached) " >&6
|
---|
13514 | else case e in #(
|
---|
13515 | e) lt_cv_prog_compiler_static_works=no
|
---|
13516 | save_LDFLAGS=$LDFLAGS
|
---|
13517 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
|
---|
13518 | echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
---|
13519 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
---|
13520 | # The linker can only warn and ignore the option if not recognized
|
---|
13521 | # So say no if there are warnings
|
---|
13522 | if test -s conftest.err; then
|
---|
13523 | # Append any errors to the config.log.
|
---|
13524 | cat conftest.err 1>&5
|
---|
13525 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
|
---|
13526 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
---|
13527 | if diff conftest.exp conftest.er2 >/dev/null; then
|
---|
13528 | lt_cv_prog_compiler_static_works=yes
|
---|
13529 | fi
|
---|
13530 | else
|
---|
13531 | lt_cv_prog_compiler_static_works=yes
|
---|
13532 | fi
|
---|
13533 | fi
|
---|
13534 | $RM -r conftest*
|
---|
13535 | LDFLAGS=$save_LDFLAGS
|
---|
13536 | ;;
|
---|
13537 | esac
|
---|
13538 | fi
|
---|
13539 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
|
---|
13540 | printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
|
---|
13541 |
|
---|
13542 | if test yes = "$lt_cv_prog_compiler_static_works"; then
|
---|
13543 | :
|
---|
13544 | else
|
---|
13545 | lt_prog_compiler_static=
|
---|
13546 | fi
|
---|
13547 |
|
---|
13548 |
|
---|
13549 |
|
---|
13550 | ='-fPIC'
|
---|
13551 | archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
|
---|
13552 | archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
|
---|
13553 | archive_cmds_need_lc=no
|
---|
13554 | no_undefined_flag=
|
---|
13555 | ;;
|
---|
13556 |
|
---|
13557 | *)
|
---|
13558 | dynamic_linker=no
|
---|
13559 | ;;
|
---|
13560 | esac
|
---|
13561 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
|
---|
13562 | printf "%s\n" "$dynamic_linker" >&6; }
|
---|
13563 | test no = "$dynamic_linker" && can_build_shared=no
|
---|
13564 |
|
---|
13565 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
---|
13566 | if test yes = "$GCC"; then
|
---|
13567 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
---|
13568 | fi
|
---|
13569 |
|
---|
13570 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
|
---|
13571 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
|
---|
13572 | fi
|
---|
13573 |
|
---|
13574 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
|
---|
13575 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
|
---|
13576 | fi
|
---|
13577 |
|
---|
13578 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
|
---|
13579 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
|
---|
13580 |
|
---|
13581 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
|
---|
13582 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
|
---|
13583 |
|
---|
13584 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
|
---|
13585 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
|
---|
13586 |
|
---|
13587 |
|
---|
13588 |
|
---|
13589 |
|
---|
13590 |
|
---|
13591 |
|
---|
13592 |
|
---|
13593 |
|
---|
13594 |
|
---|
13595 |
|
---|
13596 |
|
---|
13597 |
|
---|
13598 |
|
---|
13599 |
|
---|
13600 |
|
---|
13601 |
|
---|
13602 |
|
---|
13603 |
|
---|
13604 |
|
---|
13605 |
|
---|
13606 |
|
---|
13607 |
|
---|
13608 |
|
---|
13609 |
|
---|
13610 |
|
---|
13611 |
|
---|
13612 |
|
---|
13613 |
|
---|
13614 |
|
---|
13615 |
|
---|
13616 |
|
---|
13617 |
|
---|
13618 |
|
---|
13619 |
|
---|
13620 |
|
---|
13621 |
|
---|
13622 |
|
---|
13623 |
|
---|
13624 |
|
---|
13625 |
|
---|
13626 |
|
---|
13627 |
|
---|
13628 |
|
---|
13629 |
|
---|
13630 |
|
---|
13631 |
|
---|
13632 |
|
---|
13633 |
|
---|
13634 |
|
---|
13635 |
|
---|
13636 |
|
---|
13637 |
|
---|
13638 |
|
---|
13639 |
|
---|
13640 |
|
---|
13641 |
|
---|
13642 |
|
---|
13643 |
|
---|
13644 |
|
---|
13645 |
|
---|
13646 |
|
---|
13647 |
|
---|
13648 |
|
---|
13649 |
|
---|
13650 |
|
---|
13651 |
|
---|
13652 |
|
---|
13653 |
|
---|
13654 |
|
---|
13655 |
|
---|
13656 |
|
---|
13657 |
|
---|
13658 |
|
---|
13659 |
|
---|
13660 |
|
---|
13661 |
|
---|
13662 |
|
---|
13663 |
|
---|
13664 |
|
---|
13665 |
|
---|
13666 |
|
---|
13667 |
|
---|
13668 |
|
---|
13669 |
|
---|
13670 |
|
---|
13671 |
|
---|
13672 |
|
---|
13673 |
|
---|
13674 |
|
---|
13675 |
|
---|
13676 |
|
---|
13677 |
|
---|
13678 |
|
---|
13679 |
|
---|
13680 |
|
---|
13681 |
|
---|
13682 |
|
---|
13683 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
|
---|
13684 | printf %s "checking how to hardcode library paths into programs... " >&6; }
|
---|
13685 | hardcode_action=
|
---|
13686 | if test -n "$hardcode_libdir_flag_spec" ||
|
---|
13687 | test -n "$runpath_var" ||
|
---|
13688 | test yes = "$hardcode_automatic"; then
|
---|
13689 |
|
---|
13690 | # We can hardcode non-existent directories.
|
---|
13691 | if test no != "$hardcode_direct" &&
|
---|
13692 | # If the only mechanism to avoid hardcoding is shlibpath_var, we
|
---|
13693 | # have to relink, otherwise we might link with an installed library
|
---|
13694 | # when we should be linking with a yet-to-be-installed one
|
---|
13695 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
|
---|
13696 | test no != "$hardcode_minus_L"; then
|
---|
13697 | # Linking always hardcodes the temporary library directory.
|
---|
13698 | hardcode_action=relink
|
---|
13699 | else
|
---|
13700 | # We can link without hardcoding, and we can hardcode nonexisting dirs.
|
---|
13701 | hardcode_action=immediate
|
---|
13702 | fi
|
---|
13703 | else
|
---|
13704 | # We cannot hardcode anything, or else we can only hardcode existing
|
---|
13705 | # directories.
|
---|
13706 | hardcode_action=unsupported
|
---|
13707 | fi
|
---|
13708 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
|
---|
13709 | printf "%s\n" "$hardcode_action" >&6; }
|
---|
13710 |
|
---|
13711 | if test relink = "$hardcode_action" ||
|
---|
13712 | test yes = "$inherit_rpath"; then
|
---|
13713 | # Fast installation is not supported
|
---|
13714 | enable_fast_install=no
|
---|
13715 | elif test yes = "$shlibpath_overrides_runpath" ||
|
---|
13716 | test no = "$enable_shared"; then
|
---|
13717 | # Fast installation is not necessary
|
---|
13718 | enable_fast_install=needless
|
---|
13719 | fi
|
---|
13720 |
|
---|
13721 |
|
---|
13722 |
|
---|
13723 |
|
---|
13724 |
|
---|
13725 |
|
---|
13726 | if test yes != "$enable_dlopen"; then
|
---|
13727 | enable_dlopen=unknown
|
---|
13728 | enable_dlopen_self=unknown
|
---|
13729 | enable_dlopen_self_static=unknown
|
---|
13730 | else
|
---|
13731 | lt_cv_dlopen=no
|
---|
13732 | lt_cv_dlopen_libs=
|
---|
13733 |
|
---|
13734 | case $host_os in
|
---|
13735 | beos*)
|
---|
13736 | lt_cv_dlopen=load_add_on
|
---|
13737 | lt_cv_dlopen_libs=
|
---|
13738 | lt_cv_dlopen_self=yes
|
---|
13739 | ;;
|
---|
13740 |
|
---|
13741 | mingw* | windows* | pw32* | cegcc*)
|
---|
13742 | lt_cv_dlopen=LoadLibrary
|
---|
13743 | lt_cv_dlopen_libs=
|
---|
13744 | ;;
|
---|
13745 |
|
---|
13746 | cygwin*)
|
---|
13747 | lt_cv_dlopen=dlopen
|
---|
13748 | lt_cv_dlopen_libs=
|
---|
13749 | ;;
|
---|
13750 |
|
---|
13751 | darwin*)
|
---|
13752 | # if libdl is installed we need to link against it
|
---|
13753 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
|
---|
13754 | printf %s "checking for dlopen in -ldl... " >&6; }
|
---|
13755 | if test ${ac_cv_lib_dl_dlopen+y}
|
---|
13756 | then :
|
---|
13757 | printf %s "(cached) " >&6
|
---|
13758 | else case e in #(
|
---|
13759 | e) ac_check_lib_save_LIBS=$LIBS
|
---|
13760 | LIBS="-ldl $LIBS"
|
---|
13761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
13762 | /* end confdefs.h. */
|
---|
13763 |
|
---|
13764 | /* Override any GCC internal prototype to avoid an error.
|
---|
13765 | Use char because int might match the return type of a GCC
|
---|
13766 | builtin and then its argument prototype would still apply.
|
---|
13767 | The 'extern "C"' is for builds by C++ compilers;
|
---|
13768 | although this is not generally supported in C code supporting it here
|
---|
13769 | has little cost and some practical benefit (sr 110532). */
|
---|
13770 | #ifdef __cplusplus
|
---|
13771 | extern "C"
|
---|
13772 | #endif
|
---|
13773 | char dlopen (void);
|
---|
13774 | int
|
---|
13775 | main (void)
|
---|
13776 | {
|
---|
13777 | return dlopen ();
|
---|
13778 | ;
|
---|
13779 | return 0;
|
---|
13780 | }
|
---|
13781 | _ACEOF
|
---|
13782 | if ac_fn_c_try_link "$LINENO"
|
---|
13783 | then :
|
---|
13784 | ac_cv_lib_dl_dlopen=yes
|
---|
13785 | else case e in #(
|
---|
13786 | e) ac_cv_lib_dl_dlopen=no ;;
|
---|
13787 | esac
|
---|
13788 | fi
|
---|
13789 | rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
---|
13790 | conftest$ac_exeext conftest.$ac_ext
|
---|
13791 | LIBS=$ac_check_lib_save_LIBS ;;
|
---|
13792 | esac
|
---|
13793 | fi
|
---|
13794 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
|
---|
13795 | printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
|
---|
13796 | if test "x$ac_cv_lib_dl_dlopen" = xyes
|
---|
13797 | then :
|
---|
13798 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
|
---|
13799 | else case e in #(
|
---|
13800 | e)
|
---|
13801 | lt_cv_dlopen=dyld
|
---|
13802 | lt_cv_dlopen_libs=
|
---|
13803 | lt_cv_dlopen_self=yes
|
---|
13804 | ;;
|
---|
13805 | esac
|
---|
13806 | fi
|
---|
13807 |
|
---|
13808 | ;;
|
---|
13809 |
|
---|
13810 | tpf*)
|
---|
13811 | # Don't try to run any link tests for TPF. We know it's impossible
|
---|
13812 | # because TPF is a cross-compiler, and we know how we open DSOs.
|
---|
13813 | lt_cv_dlopen=dlopen
|
---|
13814 | lt_cv_dlopen_libs=
|
---|
13815 | lt_cv_dlopen_self=no
|
---|
13816 | ;;
|
---|
13817 |
|
---|
13818 | *)
|
---|
13819 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
|
---|
13820 | if test "x$ac_cv_func_shl_load" = xyes
|
---|
13821 | then :
|
---|
13822 | lt_cv_dlopen=shl_load
|
---|
13823 | else case e in #(
|
---|
13824 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
|
---|
13825 | printf %s "checking for shl_load in -ldld... " >&6; }
|
---|
13826 | if test ${ac_cv_lib_dld_shl_load+y}
|
---|
13827 | then :
|
---|
13828 | printf %s "(cached) " >&6
|
---|
13829 | else case e in #(
|
---|
13830 | e) ac_check_lib_save_LIBS=$LIBS
|
---|
13831 | LIBS="-ldld $LIBS"
|
---|
13832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
13833 | /* end confdefs.h. */
|
---|
13834 |
|
---|
13835 | /* Override any GCC internal prototype to avoid an error.
|
---|
13836 | Use char because int might match the return type of a GCC
|
---|
13837 | builtin and then its argument prototype would still apply.
|
---|
13838 | The 'extern "C"' is for builds by C++ compilers;
|
---|
13839 | although this is not generally supported in C code supporting it here
|
---|
13840 | has little cost and some practical benefit (sr 110532). */
|
---|
13841 | #ifdef __cplusplus
|
---|
13842 | extern "C"
|
---|
13843 | #endif
|
---|
13844 | char shl_load (void);
|
---|
13845 | int
|
---|
13846 | main (void)
|
---|
13847 | {
|
---|
13848 | return shl_load ();
|
---|
13849 | ;
|
---|
13850 | return 0;
|
---|
13851 | }
|
---|
13852 | _ACEOF
|
---|
13853 | if ac_fn_c_try_link "$LINENO"
|
---|
13854 | then :
|
---|
13855 | ac_cv_lib_dld_shl_load=yes
|
---|
13856 | else case e in #(
|
---|
13857 | e) ac_cv_lib_dld_shl_load=no ;;
|
---|
13858 | esac
|
---|
13859 | fi
|
---|
13860 | rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
---|
13861 | conftest$ac_exeext conftest.$ac_ext
|
---|
13862 | LIBS=$ac_check_lib_save_LIBS ;;
|
---|
13863 | esac
|
---|
13864 | fi
|
---|
13865 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
|
---|
13866 | printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
|
---|
13867 | if test "x$ac_cv_lib_dld_shl_load" = xyes
|
---|
13868 | then :
|
---|
13869 | lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
|
---|
13870 | else case e in #(
|
---|
13871 | e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
|
---|
13872 | if test "x$ac_cv_func_dlopen" = xyes
|
---|
13873 | then :
|
---|
13874 | lt_cv_dlopen=dlopen
|
---|
13875 | else case e in #(
|
---|
13876 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
|
---|
13877 | printf %s "checking for dlopen in -ldl... " >&6; }
|
---|
13878 | if test ${ac_cv_lib_dl_dlopen+y}
|
---|
13879 | then :
|
---|
13880 | printf %s "(cached) " >&6
|
---|
13881 | else case e in #(
|
---|
13882 | e) ac_check_lib_save_LIBS=$LIBS
|
---|
13883 | LIBS="-ldl $LIBS"
|
---|
13884 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
13885 | /* end confdefs.h. */
|
---|
13886 |
|
---|
13887 | /* Override any GCC internal prototype to avoid an error.
|
---|
13888 | Use char because int might match the return type of a GCC
|
---|
13889 | builtin and then its argument prototype would still apply.
|
---|
13890 | The 'extern "C"' is for builds by C++ compilers;
|
---|
13891 | although this is not generally supported in C code supporting it here
|
---|
13892 | has little cost and some practical benefit (sr 110532). */
|
---|
13893 | #ifdef __cplusplus
|
---|
13894 | extern "C"
|
---|
13895 | #endif
|
---|
13896 | char dlopen (void);
|
---|
13897 | int
|
---|
13898 | main (void)
|
---|
13899 | {
|
---|
13900 | return dlopen ();
|
---|
13901 | ;
|
---|
13902 | return 0;
|
---|
13903 | }
|
---|
13904 | _ACEOF
|
---|
13905 | if ac_fn_c_try_link "$LINENO"
|
---|
13906 | then :
|
---|
13907 | ac_cv_lib_dl_dlopen=yes
|
---|
13908 | else case e in #(
|
---|
13909 | e) ac_cv_lib_dl_dlopen=no ;;
|
---|
13910 | esac
|
---|
13911 | fi
|
---|
13912 | rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
---|
13913 | conftest$ac_exeext conftest.$ac_ext
|
---|
13914 | LIBS=$ac_check_lib_save_LIBS ;;
|
---|
13915 | esac
|
---|
13916 | fi
|
---|
13917 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
|
---|
13918 | printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
|
---|
13919 | if test "x$ac_cv_lib_dl_dlopen" = xyes
|
---|
13920 | then :
|
---|
13921 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
|
---|
13922 | else case e in #(
|
---|
13923 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
|
---|
13924 | printf %s "checking for dlopen in -lsvld... " >&6; }
|
---|
13925 | if test ${ac_cv_lib_svld_dlopen+y}
|
---|
13926 | then :
|
---|
13927 | printf %s "(cached) " >&6
|
---|
13928 | else case e in #(
|
---|
13929 | e) ac_check_lib_save_LIBS=$LIBS
|
---|
13930 | LIBS="-lsvld $LIBS"
|
---|
13931 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
13932 | /* end confdefs.h. */
|
---|
13933 |
|
---|
13934 | /* Override any GCC internal prototype to avoid an error.
|
---|
13935 | Use char because int might match the return type of a GCC
|
---|
13936 | builtin and then its argument prototype would still apply.
|
---|
13937 | The 'extern "C"' is for builds by C++ compilers;
|
---|
13938 | although this is not generally supported in C code supporting it here
|
---|
13939 | has little cost and some practical benefit (sr 110532). */
|
---|
13940 | #ifdef __cplusplus
|
---|
13941 | extern "C"
|
---|
13942 | #endif
|
---|
13943 | char dlopen (void);
|
---|
13944 | int
|
---|
13945 | main (void)
|
---|
13946 | {
|
---|
13947 | return dlopen ();
|
---|
13948 | ;
|
---|
13949 | return 0;
|
---|
13950 | }
|
---|
13951 | _ACEOF
|
---|
13952 | if ac_fn_c_try_link "$LINENO"
|
---|
13953 | then :
|
---|
13954 | ac_cv_lib_svld_dlopen=yes
|
---|
13955 | else case e in #(
|
---|
13956 | e) ac_cv_lib_svld_dlopen=no ;;
|
---|
13957 | esac
|
---|
13958 | fi
|
---|
13959 | rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
---|
13960 | conftest$ac_exeext conftest.$ac_ext
|
---|
13961 | LIBS=$ac_check_lib_save_LIBS ;;
|
---|
13962 | esac
|
---|
13963 | fi
|
---|
13964 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
|
---|
13965 | printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
|
---|
13966 | if test "x$ac_cv_lib_svld_dlopen" = xyes
|
---|
13967 | then :
|
---|
13968 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
|
---|
13969 | else case e in #(
|
---|
13970 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
|
---|
13971 | printf %s "checking for dld_link in -ldld... " >&6; }
|
---|
13972 | if test ${ac_cv_lib_dld_dld_link+y}
|
---|
13973 | then :
|
---|
13974 | printf %s "(cached) " >&6
|
---|
13975 | else case e in #(
|
---|
13976 | e) ac_check_lib_save_LIBS=$LIBS
|
---|
13977 | LIBS="-ldld $LIBS"
|
---|
13978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
13979 | /* end confdefs.h. */
|
---|
13980 |
|
---|
13981 | /* Override any GCC internal prototype to avoid an error.
|
---|
13982 | Use char because int might match the return type of a GCC
|
---|
13983 | builtin and then its argument prototype would still apply.
|
---|
13984 | The 'extern "C"' is for builds by C++ compilers;
|
---|
13985 | although this is not generally supported in C code supporting it here
|
---|
13986 | has little cost and some practical benefit (sr 110532). */
|
---|
13987 | #ifdef __cplusplus
|
---|
13988 | extern "C"
|
---|
13989 | #endif
|
---|
13990 | char dld_link (void);
|
---|
13991 | int
|
---|
13992 | main (void)
|
---|
13993 | {
|
---|
13994 | return dld_link ();
|
---|
13995 | ;
|
---|
13996 | return 0;
|
---|
13997 | }
|
---|
13998 | _ACEOF
|
---|
13999 | if ac_fn_c_try_link "$LINENO"
|
---|
14000 | then :
|
---|
14001 | ac_cv_lib_dld_dld_link=yes
|
---|
14002 | else case e in #(
|
---|
14003 | e) ac_cv_lib_dld_dld_link=no ;;
|
---|
14004 | esac
|
---|
14005 | fi
|
---|
14006 | rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
---|
14007 | conftest$ac_exeext conftest.$ac_ext
|
---|
14008 | LIBS=$ac_check_lib_save_LIBS ;;
|
---|
14009 | esac
|
---|
14010 | fi
|
---|
14011 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
|
---|
14012 | printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
|
---|
14013 | if test "x$ac_cv_lib_dld_dld_link" = xyes
|
---|
14014 | then :
|
---|
14015 | lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
|
---|
14016 | fi
|
---|
14017 |
|
---|
14018 | ;;
|
---|
14019 | esac
|
---|
14020 | fi
|
---|
14021 |
|
---|
14022 | ;;
|
---|
14023 | esac
|
---|
14024 | fi
|
---|
14025 |
|
---|
14026 | ;;
|
---|
14027 | esac
|
---|
14028 | fi
|
---|
14029 |
|
---|
14030 | ;;
|
---|
14031 | esac
|
---|
14032 | fi
|
---|
14033 |
|
---|
14034 | ;;
|
---|
14035 | esac
|
---|
14036 | fi
|
---|
14037 |
|
---|
14038 | ;;
|
---|
14039 | esac
|
---|
14040 |
|
---|
14041 | if test no = "$lt_cv_dlopen"; then
|
---|
14042 | enable_dlopen=no
|
---|
14043 | else
|
---|
14044 | enable_dlopen=yes
|
---|
14045 | fi
|
---|
14046 |
|
---|
14047 | case $lt_cv_dlopen in
|
---|
14048 | dlopen)
|
---|
14049 | save_CPPFLAGS=$CPPFLAGS
|
---|
14050 | test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
|
---|
14051 |
|
---|
14052 | save_LDFLAGS=$LDFLAGS
|
---|
14053 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
|
---|
14054 |
|
---|
14055 | save_LIBS=$LIBS
|
---|
14056 | LIBS="$lt_cv_dlopen_libs $LIBS"
|
---|
14057 |
|
---|
14058 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
|
---|
14059 | printf %s "checking whether a program can dlopen itself... " >&6; }
|
---|
14060 | if test ${lt_cv_dlopen_self+y}
|
---|
14061 | then :
|
---|
14062 | printf %s "(cached) " >&6
|
---|
14063 | else case e in #(
|
---|
14064 | e) if test yes = "$cross_compiling"; then :
|
---|
14065 | lt_cv_dlopen_self=cross
|
---|
14066 | else
|
---|
14067 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
---|
14068 | lt_status=$lt_dlunknown
|
---|
14069 | cat > conftest.$ac_ext <<_LT_EOF
|
---|
14070 | #line $LINENO "configure"
|
---|
14071 | #include "confdefs.h"
|
---|
14072 |
|
---|
14073 | #if HAVE_DLFCN_H
|
---|
14074 | #include <dlfcn.h>
|
---|
14075 | #endif
|
---|
14076 |
|
---|
14077 | #include <stdio.h>
|
---|
14078 |
|
---|
14079 | #ifdef RTLD_GLOBAL
|
---|
14080 | # define LT_DLGLOBAL RTLD_GLOBAL
|
---|
14081 | #else
|
---|
14082 | # ifdef DL_GLOBAL
|
---|
14083 | # define LT_DLGLOBAL DL_GLOBAL
|
---|
14084 | # else
|
---|
14085 | # define LT_DLGLOBAL 0
|
---|
14086 | # endif
|
---|
14087 | #endif
|
---|
14088 |
|
---|
14089 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
---|
14090 | find out it does not work in some platform. */
|
---|
14091 | #ifndef LT_DLLAZY_OR_NOW
|
---|
14092 | # ifdef RTLD_LAZY
|
---|
14093 | # define LT_DLLAZY_OR_NOW RTLD_LAZY
|
---|
14094 | # else
|
---|
14095 | # ifdef DL_LAZY
|
---|
14096 | # define LT_DLLAZY_OR_NOW DL_LAZY
|
---|
14097 | # else
|
---|
14098 | # ifdef RTLD_NOW
|
---|
14099 | # define LT_DLLAZY_OR_NOW RTLD_NOW
|
---|
14100 | # else
|
---|
14101 | # ifdef DL_NOW
|
---|
14102 | # define LT_DLLAZY_OR_NOW DL_NOW
|
---|
14103 | # else
|
---|
14104 | # define LT_DLLAZY_OR_NOW 0
|
---|
14105 | # endif
|
---|
14106 | # endif
|
---|
14107 | # endif
|
---|
14108 | # endif
|
---|
14109 | #endif
|
---|
14110 |
|
---|
14111 | /* When -fvisibility=hidden is used, assume the code has been annotated
|
---|
14112 | correspondingly for the symbols needed. */
|
---|
14113 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
---|
14114 | int fnord (void) __attribute__((visibility("default")));
|
---|
14115 | #endif
|
---|
14116 |
|
---|
14117 | int fnord (void) { return 42; }
|
---|
14118 | int main (void)
|
---|
14119 | {
|
---|
14120 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
---|
14121 | int status = $lt_dlunknown;
|
---|
14122 |
|
---|
14123 | if (self)
|
---|
14124 | {
|
---|
14125 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
---|
14126 | else
|
---|
14127 | {
|
---|
14128 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
---|
14129 | else puts (dlerror ());
|
---|
14130 | }
|
---|
14131 | /* dlclose (self); */
|
---|
14132 | }
|
---|
14133 | else
|
---|
14134 | puts (dlerror ());
|
---|
14135 |
|
---|
14136 | return status;
|
---|
14137 | }
|
---|
14138 | _LT_EOF
|
---|
14139 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
|
---|
14140 | (eval $ac_link) 2>&5
|
---|
14141 | ac_status=$?
|
---|
14142 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
14143 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
|
---|
14144 | (./conftest; exit; ) >&5 2>/dev/null
|
---|
14145 | lt_status=$?
|
---|
14146 | case x$lt_status in
|
---|
14147 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
|
---|
14148 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
|
---|
14149 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
|
---|
14150 | esac
|
---|
14151 | else :
|
---|
14152 | # compilation failed
|
---|
14153 | lt_cv_dlopen_self=no
|
---|
14154 | fi
|
---|
14155 | fi
|
---|
14156 | rm -fr conftest*
|
---|
14157 |
|
---|
14158 | ;;
|
---|
14159 | esac
|
---|
14160 | fi
|
---|
14161 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
|
---|
14162 | printf "%s\n" "$lt_cv_dlopen_self" >&6; }
|
---|
14163 |
|
---|
14164 | if test yes = "$lt_cv_dlopen_self"; then
|
---|
14165 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
|
---|
14166 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
|
---|
14167 | printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
|
---|
14168 | if test ${lt_cv_dlopen_self_static+y}
|
---|
14169 | then :
|
---|
14170 | printf %s "(cached) " >&6
|
---|
14171 | else case e in #(
|
---|
14172 | e) if test yes = "$cross_compiling"; then :
|
---|
14173 | lt_cv_dlopen_self_static=cross
|
---|
14174 | else
|
---|
14175 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
---|
14176 | lt_status=$lt_dlunknown
|
---|
14177 | cat > conftest.$ac_ext <<_LT_EOF
|
---|
14178 | #line $LINENO "configure"
|
---|
14179 | #include "confdefs.h"
|
---|
14180 |
|
---|
14181 | #if HAVE_DLFCN_H
|
---|
14182 | #include <dlfcn.h>
|
---|
14183 | #endif
|
---|
14184 |
|
---|
14185 | #include <stdio.h>
|
---|
14186 |
|
---|
14187 | #ifdef RTLD_GLOBAL
|
---|
14188 | # define LT_DLGLOBAL RTLD_GLOBAL
|
---|
14189 | #else
|
---|
14190 | # ifdef DL_GLOBAL
|
---|
14191 | # define LT_DLGLOBAL DL_GLOBAL
|
---|
14192 | # else
|
---|
14193 | # define LT_DLGLOBAL 0
|
---|
14194 | # endif
|
---|
14195 | #endif
|
---|
14196 |
|
---|
14197 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
---|
14198 | find out it does not work in some platform. */
|
---|
14199 | #ifndef LT_DLLAZY_OR_NOW
|
---|
14200 | # ifdef RTLD_LAZY
|
---|
14201 | # define LT_DLLAZY_OR_NOW RTLD_LAZY
|
---|
14202 | # else
|
---|
14203 | # ifdef DL_LAZY
|
---|
14204 | # define LT_DLLAZY_OR_NOW DL_LAZY
|
---|
14205 | # else
|
---|
14206 | # ifdef RTLD_NOW
|
---|
14207 | # define LT_DLLAZY_OR_NOW RTLD_NOW
|
---|
14208 | # else
|
---|
14209 | # ifdef DL_NOW
|
---|
14210 | # define LT_DLLAZY_OR_NOW DL_NOW
|
---|
14211 | # else
|
---|
14212 | # define LT_DLLAZY_OR_NOW 0
|
---|
14213 | # endif
|
---|
14214 | # endif
|
---|
14215 | # endif
|
---|
14216 | # endif
|
---|
14217 | #endif
|
---|
14218 |
|
---|
14219 | /* When -fvisibility=hidden is used, assume the code has been annotated
|
---|
14220 | correspondingly for the symbols needed. */
|
---|
14221 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
---|
14222 | int fnord (void) __attribute__((visibility("default")));
|
---|
14223 | #endif
|
---|
14224 |
|
---|
14225 | int fnord (void) { return 42; }
|
---|
14226 | int main (void)
|
---|
14227 | {
|
---|
14228 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
---|
14229 | int status = $lt_dlunknown;
|
---|
14230 |
|
---|
14231 | if (self)
|
---|
14232 | {
|
---|
14233 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
---|
14234 | else
|
---|
14235 | {
|
---|
14236 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
---|
14237 | else puts (dlerror ());
|
---|
14238 | }
|
---|
14239 | /* dlclose (self); */
|
---|
14240 | }
|
---|
14241 | else
|
---|
14242 | puts (dlerror ());
|
---|
14243 |
|
---|
14244 | return status;
|
---|
14245 | }
|
---|
14246 | _LT_EOF
|
---|
14247 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
|
---|
14248 | (eval $ac_link) 2>&5
|
---|
14249 | ac_status=$?
|
---|
14250 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
---|
14251 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
|
---|
14252 | (./conftest; exit; ) >&5 2>/dev/null
|
---|
14253 | lt_status=$?
|
---|
14254 | case x$lt_status in
|
---|
14255 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
|
---|
14256 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
|
---|
14257 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
|
---|
14258 | esac
|
---|
14259 | else :
|
---|
14260 | # compilation failed
|
---|
14261 | lt_cv_dlopen_self_static=no
|
---|
14262 | fi
|
---|
14263 | fi
|
---|
14264 | rm -fr conftest*
|
---|
14265 |
|
---|
14266 | ;;
|
---|
14267 | esac
|
---|
14268 | fi
|
---|
14269 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
|
---|
14270 | printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
|
---|
14271 | fi
|
---|
14272 |
|
---|
14273 | CPPFLAGS=$save_CPPFLAGS
|
---|
14274 | LDFLAGS=$save_LDFLAGS
|
---|
14275 | LIBS=$save_LIBS
|
---|
14276 | ;;
|
---|
14277 | esac
|
---|
14278 |
|
---|
14279 | case $lt_cv_dlopen_self in
|
---|
14280 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
|
---|
14281 | *) enable_dlopen_self=unknown ;;
|
---|
14282 | esac
|
---|
14283 |
|
---|
14284 | case $lt_cv_dlopen_self_static in
|
---|
14285 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
|
---|
14286 | *) enable_dlopen_self_static=unknown ;;
|
---|
14287 | esac
|
---|
14288 | fi
|
---|
14289 |
|
---|
14290 |
|
---|
14291 |
|
---|
14292 |
|
---|
14293 |
|
---|
14294 |
|
---|
14295 |
|
---|
14296 |
|
---|
14297 |
|
---|
14298 |
|
---|
14299 |
|
---|
14300 |
|
---|
14301 |
|
---|
14302 |
|
---|
14303 |
|
---|
14304 |
|
---|
14305 |
|
---|
14306 | striplib=
|
---|
14307 | old_striplib=
|
---|
14308 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
|
---|
14309 | printf %s "checking whether stripping libraries is possible... " >&6; }
|
---|
14310 | if test -z "$STRIP"; then
|
---|
14311 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
14312 | printf "%s\n" "no" >&6; }
|
---|
14313 | else
|
---|
14314 | if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
|
---|
14315 | old_striplib="$STRIP --strip-debug"
|
---|
14316 | striplib="$STRIP --strip-unneeded"
|
---|
14317 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
14318 | printf "%s\n" "yes" >&6; }
|
---|
14319 | else
|
---|
14320 | case $host_os in
|
---|
14321 | darwin*)
|
---|
14322 | # FIXME - insert some real tests, host_os isn't really good enough
|
---|
14323 | striplib="$STRIP -x"
|
---|
14324 | old_striplib="$STRIP -S"
|
---|
14325 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
14326 | printf "%s\n" "yes" >&6; }
|
---|
14327 | ;;
|
---|
14328 | freebsd*)
|
---|
14329 | if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
|
---|
14330 | old_striplib="$STRIP --strip-debug"
|
---|
14331 | striplib="$STRIP --strip-unneeded"
|
---|
14332 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
14333 | printf "%s\n" "yes" >&6; }
|
---|
14334 | else
|
---|
14335 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
14336 | printf "%s\n" "no" >&6; }
|
---|
14337 | fi
|
---|
14338 | ;;
|
---|
14339 | *)
|
---|
14340 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
14341 | printf "%s\n" "no" >&6; }
|
---|
14342 | ;;
|
---|
14343 | esac
|
---|
14344 | fi
|
---|
14345 | fi
|
---|
14346 |
|
---|
14347 |
|
---|
14348 |
|
---|
14349 |
|
---|
14350 |
|
---|
14351 |
|
---|
14352 |
|
---|
14353 |
|
---|
14354 |
|
---|
14355 |
|
---|
14356 |
|
---|
14357 |
|
---|
14358 | # Report what library types will actually be built
|
---|
14359 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
|
---|
14360 | printf %s "checking if libtool supports shared libraries... " >&6; }
|
---|
14361 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
|
---|
14362 | printf "%s\n" "$can_build_shared" >&6; }
|
---|
14363 |
|
---|
14364 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
|
---|
14365 | printf %s "checking whether to build shared libraries... " >&6; }
|
---|
14366 | test no = "$can_build_shared" && enable_shared=no
|
---|
14367 |
|
---|
14368 | # On AIX, shared libraries and static libraries use the same namespace, and
|
---|
14369 | # are all built from PIC.
|
---|
14370 | case $host_os in
|
---|
14371 | aix3*)
|
---|
14372 | test yes = "$enable_shared" && enable_static=no
|
---|
14373 | if test -n "$RANLIB"; then
|
---|
14374 | archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
---|
14375 | postinstall_cmds='$RANLIB $lib'
|
---|
14376 | fi
|
---|
14377 | ;;
|
---|
14378 |
|
---|
14379 | aix[4-9]*)
|
---|
14380 | if test ia64 != "$host_cpu"; then
|
---|
14381 | case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
|
---|
14382 | yes,aix,yes) ;; # shared object as lib.so file only
|
---|
14383 | yes,svr4,*) ;; # shared object as lib.so archive member only
|
---|
14384 | yes,*) enable_static=no ;; # shared object in lib.a archive as well
|
---|
14385 | esac
|
---|
14386 | fi
|
---|
14387 | ;;
|
---|
14388 | esac
|
---|
14389 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
|
---|
14390 | printf "%s\n" "$enable_shared" >&6; }
|
---|
14391 |
|
---|
14392 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
|
---|
14393 | printf %s "checking whether to build static libraries... " >&6; }
|
---|
14394 | # Make sure either enable_shared or enable_static is yes.
|
---|
14395 | test yes = "$enable_shared" || enable_static=yes
|
---|
14396 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
|
---|
14397 | printf "%s\n" "$enable_static" >&6; }
|
---|
14398 |
|
---|
14399 |
|
---|
14400 |
|
---|
14401 |
|
---|
14402 | fi
|
---|
14403 | ac_ext=c
|
---|
14404 | ac_cpp='$CPP $CPPFLAGS'
|
---|
14405 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
14406 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
14407 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
14408 |
|
---|
14409 | CC=$lt_save_CC
|
---|
14410 |
|
---|
14411 |
|
---|
14412 |
|
---|
14413 |
|
---|
14414 |
|
---|
14415 |
|
---|
14416 |
|
---|
14417 |
|
---|
14418 |
|
---|
14419 |
|
---|
14420 |
|
---|
14421 |
|
---|
14422 |
|
---|
14423 |
|
---|
14424 |
|
---|
14425 | ac_config_commands="$ac_config_commands libtool"
|
---|
14426 |
|
---|
14427 |
|
---|
14428 |
|
---|
14429 |
|
---|
14430 | # Only expand once:
|
---|
14431 |
|
---|
14432 |
|
---|
14433 |
|
---|
14434 |
|
---|
14435 |
|
---|
14436 |
|
---|
14437 | # Some awk implementations crash when confronted with pnglibconf.dfa.
|
---|
14438 | # Run a test now, to make sure this doesn't happen.
|
---|
14439 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if awk ($AWK) works" >&5
|
---|
14440 | printf %s "checking if awk ($AWK) works... " >&6; }
|
---|
14441 | if ${AWK} -f ${srcdir}/scripts/options.awk out="/dev/null" version=search\
|
---|
14442 | ${srcdir}/pngconf.h ${srcdir}/scripts/pnglibconf.dfa\
|
---|
14443 | ${srcdir}/pngusr.dfa 1>&2
|
---|
14444 | then
|
---|
14445 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
14446 | printf "%s\n" "yes" >&6; }
|
---|
14447 | else
|
---|
14448 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
|
---|
14449 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
|
---|
14450 | as_fn_error 1 "no
|
---|
14451 | See 'config.log' for more details" "$LINENO" 5; }
|
---|
14452 | fi
|
---|
14453 |
|
---|
14454 | # This is a remnant of the old cc -E validation, where it may have been
|
---|
14455 | # necessary to use a different preprocessor for .dfn files
|
---|
14456 | DFNCPP="$CPP"
|
---|
14457 |
|
---|
14458 |
|
---|
14459 | # Check whether --enable-tests was given.
|
---|
14460 | if test ${enable_tests+y}
|
---|
14461 | then :
|
---|
14462 | enableval=$enable_tests; enable_tests="$enableval"
|
---|
14463 | else case e in #(
|
---|
14464 | e) enable_tests=yes ;;
|
---|
14465 | esac
|
---|
14466 | fi
|
---|
14467 |
|
---|
14468 |
|
---|
14469 | if test "$enable_tests" != "no"; then
|
---|
14470 | ENABLE_TESTS_TRUE=
|
---|
14471 | ENABLE_TESTS_FALSE='#'
|
---|
14472 | else
|
---|
14473 | ENABLE_TESTS_TRUE='#'
|
---|
14474 | ENABLE_TESTS_FALSE=
|
---|
14475 | fi
|
---|
14476 |
|
---|
14477 |
|
---|
14478 | # Check whether --enable-tools was given.
|
---|
14479 | if test ${enable_tools+y}
|
---|
14480 | then :
|
---|
14481 | enableval=$enable_tools; enable_tools="$enableval"
|
---|
14482 | else case e in #(
|
---|
14483 | e) enable_tools=yes ;;
|
---|
14484 | esac
|
---|
14485 | fi
|
---|
14486 |
|
---|
14487 |
|
---|
14488 | if test "$enable_tools" != "no"; then
|
---|
14489 | ENABLE_TOOLS_TRUE=
|
---|
14490 | ENABLE_TOOLS_FALSE='#'
|
---|
14491 | else
|
---|
14492 | ENABLE_TOOLS_TRUE='#'
|
---|
14493 | ENABLE_TOOLS_FALSE=
|
---|
14494 | fi
|
---|
14495 |
|
---|
14496 |
|
---|
14497 | # -Werror cannot be passed to GCC in CFLAGS because configure will fail
|
---|
14498 | # (it checks the compiler with a program that generates a warning).
|
---|
14499 | # Add the following option to deal with this:
|
---|
14500 |
|
---|
14501 | # Check whether --enable-werror was given.
|
---|
14502 | if test ${enable_werror+y}
|
---|
14503 | then :
|
---|
14504 | enableval=$enable_werror; test "$enable_werror" = "yes" && enable_werror="-Werror"
|
---|
14505 | if test "$enable_werror" != "no"; then
|
---|
14506 | sav_CFLAGS="$CFLAGS"
|
---|
14507 | CFLAGS="$enable_werror $CFLAGS"
|
---|
14508 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the compiler allows $enable_werror" >&5
|
---|
14509 | printf %s "checking if the compiler allows $enable_werror... " >&6; }
|
---|
14510 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
14511 | /* end confdefs.h. */
|
---|
14512 |
|
---|
14513 | int main(int argc, char **argv){
|
---|
14514 | return argv[argc-1][0];
|
---|
14515 | }
|
---|
14516 | _ACEOF
|
---|
14517 | if ac_fn_c_try_compile "$LINENO"
|
---|
14518 | then :
|
---|
14519 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
14520 | printf "%s\n" "yes" >&6; }
|
---|
14521 | PNG_COPTS="$PNG_COPTS $enable_werror"
|
---|
14522 | else case e in #(
|
---|
14523 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
14524 | printf "%s\n" "no" >&6; } ;;
|
---|
14525 | esac
|
---|
14526 | fi
|
---|
14527 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
14528 | CFLAGS="$sav_CFLAGS"
|
---|
14529 | fi
|
---|
14530 | fi
|
---|
14531 |
|
---|
14532 |
|
---|
14533 | # For GCC 5 the default mode for C is -std=gnu11 instead of -std=gnu89.
|
---|
14534 | # In pngpriv.h we request just the POSIX 1003.1 and C89 APIs by defining
|
---|
14535 | # _POSIX_SOURCE to 1. This is incompatible with the new default mode, so
|
---|
14536 | # we test for that and force the "-std=c89" compiler option:
|
---|
14537 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we need to force back C standard to C89" >&5
|
---|
14538 | printf %s "checking if we need to force back C standard to C89... " >&6; }
|
---|
14539 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
14540 | /* end confdefs.h. */
|
---|
14541 |
|
---|
14542 | #define _POSIX_SOURCE 1
|
---|
14543 | #include <stdio.h>
|
---|
14544 |
|
---|
14545 | int
|
---|
14546 | main (void)
|
---|
14547 | {
|
---|
14548 |
|
---|
14549 | ;
|
---|
14550 | return 0;
|
---|
14551 | }
|
---|
14552 | _ACEOF
|
---|
14553 | if ac_fn_c_try_compile "$LINENO"
|
---|
14554 | then :
|
---|
14555 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
14556 | printf "%s\n" "no" >&6; }
|
---|
14557 | else case e in #(
|
---|
14558 | e)
|
---|
14559 | if test "x$GCC" != "xyes"; then
|
---|
14560 | as_fn_error $? "Forcing back to C89 is required but the flags are only known for GCC" "$LINENO" 5
|
---|
14561 | fi
|
---|
14562 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
14563 | printf "%s\n" "yes" >&6; }
|
---|
14564 | CFLAGS="$CFLAGS -std=c89"
|
---|
14565 | ;;
|
---|
14566 | esac
|
---|
14567 | fi
|
---|
14568 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
14569 |
|
---|
14570 | # Checks for structures and compiler characteristics.
|
---|
14571 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
14572 | printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
|
---|
14573 | if test ${ac_cv_struct_tm+y}
|
---|
14574 | then :
|
---|
14575 | printf %s "(cached) " >&6
|
---|
14576 | else case e in #(
|
---|
14577 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
14578 | /* end confdefs.h. */
|
---|
14579 | #include <sys/types.h>
|
---|
14580 | #include <time.h>
|
---|
14581 |
|
---|
14582 | int
|
---|
14583 | main (void)
|
---|
14584 | {
|
---|
14585 | struct tm tm;
|
---|
14586 | int *p = &tm.tm_sec;
|
---|
14587 | return !p;
|
---|
14588 | ;
|
---|
14589 | return 0;
|
---|
14590 | }
|
---|
14591 | _ACEOF
|
---|
14592 | if ac_fn_c_try_compile "$LINENO"
|
---|
14593 | then :
|
---|
14594 | ac_cv_struct_tm=time.h
|
---|
14595 | else case e in #(
|
---|
14596 | e) ac_cv_struct_tm=sys/time.h ;;
|
---|
14597 | esac
|
---|
14598 | fi
|
---|
14599 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
|
---|
14600 | esac
|
---|
14601 | fi
|
---|
14602 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
|
---|
14603 | printf "%s\n" "$ac_cv_struct_tm" >&6; }
|
---|
14604 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
14605 |
|
---|
14606 | printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
|
---|
14607 |
|
---|
14608 | fi
|
---|
14609 |
|
---|
14610 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
|
---|
14611 | printf %s "checking for C/C++ restrict keyword... " >&6; }
|
---|
14612 | if test ${ac_cv_c_restrict+y}
|
---|
14613 | then :
|
---|
14614 | printf %s "(cached) " >&6
|
---|
14615 | else case e in #(
|
---|
14616 | e) ac_cv_c_restrict=no
|
---|
14617 | # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see:
|
---|
14618 | # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html
|
---|
14619 | # Put 'restrict' last, because C++ lacks it.
|
---|
14620 | for ac_kw in __restrict__ __restrict _Restrict restrict; do
|
---|
14621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
14622 | /* end confdefs.h. */
|
---|
14623 | typedef int *int_ptr;
|
---|
14624 | int foo (int_ptr $ac_kw ip) { return ip[0]; }
|
---|
14625 | int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
|
---|
14626 | int bar (int ip[$ac_kw]) { return ip[0]; }
|
---|
14627 |
|
---|
14628 | int
|
---|
14629 | main (void)
|
---|
14630 | {
|
---|
14631 | int s[1];
|
---|
14632 | int *$ac_kw t = s;
|
---|
14633 | t[0] = 0;
|
---|
14634 | return foo (t) + bar (t);
|
---|
14635 |
|
---|
14636 | ;
|
---|
14637 | return 0;
|
---|
14638 | }
|
---|
14639 | _ACEOF
|
---|
14640 | if ac_fn_c_try_compile "$LINENO"
|
---|
14641 | then :
|
---|
14642 | ac_cv_c_restrict=$ac_kw
|
---|
14643 | fi
|
---|
14644 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
14645 | test "$ac_cv_c_restrict" != no && break
|
---|
14646 | done
|
---|
14647 | ;;
|
---|
14648 | esac
|
---|
14649 | fi
|
---|
14650 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
|
---|
14651 | printf "%s\n" "$ac_cv_c_restrict" >&6; }
|
---|
14652 |
|
---|
14653 | case $ac_cv_c_restrict in
|
---|
14654 | restrict) ;;
|
---|
14655 | no) printf "%s\n" "#define restrict /**/" >>confdefs.h
|
---|
14656 | ;;
|
---|
14657 | *) printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h
|
---|
14658 | ;;
|
---|
14659 | esac
|
---|
14660 |
|
---|
14661 |
|
---|
14662 | # Checks for library functions.
|
---|
14663 |
|
---|
14664 | for ac_func in pow
|
---|
14665 | do :
|
---|
14666 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
|
---|
14667 | if test "x$ac_cv_func_pow" = xyes
|
---|
14668 | then :
|
---|
14669 | printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
|
---|
14670 |
|
---|
14671 | else case e in #(
|
---|
14672 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
|
---|
14673 | printf %s "checking for pow in -lm... " >&6; }
|
---|
14674 | if test ${ac_cv_lib_m_pow+y}
|
---|
14675 | then :
|
---|
14676 | printf %s "(cached) " >&6
|
---|
14677 | else case e in #(
|
---|
14678 | e) ac_check_lib_save_LIBS=$LIBS
|
---|
14679 | LIBS="-lm $LIBS"
|
---|
14680 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
14681 | /* end confdefs.h. */
|
---|
14682 |
|
---|
14683 | /* Override any GCC internal prototype to avoid an error.
|
---|
14684 | Use char because int might match the return type of a GCC
|
---|
14685 | builtin and then its argument prototype would still apply.
|
---|
14686 | The 'extern "C"' is for builds by C++ compilers;
|
---|
14687 | although this is not generally supported in C code supporting it here
|
---|
14688 | has little cost and some practical benefit (sr 110532). */
|
---|
14689 | #ifdef __cplusplus
|
---|
14690 | extern "C"
|
---|
14691 | #endif
|
---|
14692 | char pow (void);
|
---|
14693 | int
|
---|
14694 | main (void)
|
---|
14695 | {
|
---|
14696 | return pow ();
|
---|
14697 | ;
|
---|
14698 | return 0;
|
---|
14699 | }
|
---|
14700 | _ACEOF
|
---|
14701 | if ac_fn_c_try_link "$LINENO"
|
---|
14702 | then :
|
---|
14703 | ac_cv_lib_m_pow=yes
|
---|
14704 | else case e in #(
|
---|
14705 | e) ac_cv_lib_m_pow=no ;;
|
---|
14706 | esac
|
---|
14707 | fi
|
---|
14708 | rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
---|
14709 | conftest$ac_exeext conftest.$ac_ext
|
---|
14710 | LIBS=$ac_check_lib_save_LIBS ;;
|
---|
14711 | esac
|
---|
14712 | fi
|
---|
14713 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
|
---|
14714 | printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
|
---|
14715 | if test "x$ac_cv_lib_m_pow" = xyes
|
---|
14716 | then :
|
---|
14717 | printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
|
---|
14718 |
|
---|
14719 | LIBS="-lm $LIBS"
|
---|
14720 |
|
---|
14721 | else case e in #(
|
---|
14722 | e) as_fn_error $? "cannot find pow" "$LINENO" 5 ;;
|
---|
14723 | esac
|
---|
14724 | fi
|
---|
14725 | ;;
|
---|
14726 | esac
|
---|
14727 | fi
|
---|
14728 |
|
---|
14729 | done
|
---|
14730 |
|
---|
14731 | # Some later POSIX 1003.1 functions are required for test programs, failure
|
---|
14732 | # here is soft (the corresponding test program is not built).
|
---|
14733 | ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
|
---|
14734 | if test "x$ac_cv_func_clock_gettime" = xyes
|
---|
14735 | then :
|
---|
14736 |
|
---|
14737 | else case e in #(
|
---|
14738 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: not building timepng" >&5
|
---|
14739 | printf "%s\n" "$as_me: WARNING: not building timepng" >&2;} ;;
|
---|
14740 | esac
|
---|
14741 | fi
|
---|
14742 |
|
---|
14743 | if test "$ac_cv_func_clock_gettime" = "yes"; then
|
---|
14744 | HAVE_CLOCK_GETTIME_TRUE=
|
---|
14745 | HAVE_CLOCK_GETTIME_FALSE='#'
|
---|
14746 | else
|
---|
14747 | HAVE_CLOCK_GETTIME_TRUE='#'
|
---|
14748 | HAVE_CLOCK_GETTIME_FALSE=
|
---|
14749 | fi
|
---|
14750 |
|
---|
14751 |
|
---|
14752 |
|
---|
14753 | # Check whether --with-zlib-prefix was given.
|
---|
14754 | if test ${with_zlib_prefix+y}
|
---|
14755 | then :
|
---|
14756 | withval=$with_zlib_prefix; ZPREFIX=${withval}
|
---|
14757 | else case e in #(
|
---|
14758 | e) ZPREFIX='z_' ;;
|
---|
14759 | esac
|
---|
14760 | fi
|
---|
14761 |
|
---|
14762 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
|
---|
14763 | printf %s "checking for zlibVersion in -lz... " >&6; }
|
---|
14764 | if test ${ac_cv_lib_z_zlibVersion+y}
|
---|
14765 | then :
|
---|
14766 | printf %s "(cached) " >&6
|
---|
14767 | else case e in #(
|
---|
14768 | e) ac_check_lib_save_LIBS=$LIBS
|
---|
14769 | LIBS="-lz $LIBS"
|
---|
14770 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
14771 | /* end confdefs.h. */
|
---|
14772 |
|
---|
14773 | /* Override any GCC internal prototype to avoid an error.
|
---|
14774 | Use char because int might match the return type of a GCC
|
---|
14775 | builtin and then its argument prototype would still apply.
|
---|
14776 | The 'extern "C"' is for builds by C++ compilers;
|
---|
14777 | although this is not generally supported in C code supporting it here
|
---|
14778 | has little cost and some practical benefit (sr 110532). */
|
---|
14779 | #ifdef __cplusplus
|
---|
14780 | extern "C"
|
---|
14781 | #endif
|
---|
14782 | char zlibVersion (void);
|
---|
14783 | int
|
---|
14784 | main (void)
|
---|
14785 | {
|
---|
14786 | return zlibVersion ();
|
---|
14787 | ;
|
---|
14788 | return 0;
|
---|
14789 | }
|
---|
14790 | _ACEOF
|
---|
14791 | if ac_fn_c_try_link "$LINENO"
|
---|
14792 | then :
|
---|
14793 | ac_cv_lib_z_zlibVersion=yes
|
---|
14794 | else case e in #(
|
---|
14795 | e) ac_cv_lib_z_zlibVersion=no ;;
|
---|
14796 | esac
|
---|
14797 | fi
|
---|
14798 | rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
---|
14799 | conftest$ac_exeext conftest.$ac_ext
|
---|
14800 | LIBS=$ac_check_lib_save_LIBS ;;
|
---|
14801 | esac
|
---|
14802 | fi
|
---|
14803 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
|
---|
14804 | printf "%s\n" "$ac_cv_lib_z_zlibVersion" >&6; }
|
---|
14805 | if test "x$ac_cv_lib_z_zlibVersion" = xyes
|
---|
14806 | then :
|
---|
14807 | printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
|
---|
14808 |
|
---|
14809 | LIBS="-lz $LIBS"
|
---|
14810 |
|
---|
14811 | else case e in #(
|
---|
14812 | e) as_ac_Lib=`printf "%s\n" "ac_cv_lib_z_${ZPREFIX}zlibVersion" | sed "$as_sed_sh"`
|
---|
14813 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ZPREFIX}zlibVersion in -lz" >&5
|
---|
14814 | printf %s "checking for ${ZPREFIX}zlibVersion in -lz... " >&6; }
|
---|
14815 | if eval test \${$as_ac_Lib+y}
|
---|
14816 | then :
|
---|
14817 | printf %s "(cached) " >&6
|
---|
14818 | else case e in #(
|
---|
14819 | e) ac_check_lib_save_LIBS=$LIBS
|
---|
14820 | LIBS="-lz $LIBS"
|
---|
14821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
14822 | /* end confdefs.h. */
|
---|
14823 |
|
---|
14824 | /* Override any GCC internal prototype to avoid an error.
|
---|
14825 | Use char because int might match the return type of a GCC
|
---|
14826 | builtin and then its argument prototype would still apply.
|
---|
14827 | The 'extern "C"' is for builds by C++ compilers;
|
---|
14828 | although this is not generally supported in C code supporting it here
|
---|
14829 | has little cost and some practical benefit (sr 110532). */
|
---|
14830 | #ifdef __cplusplus
|
---|
14831 | extern "C"
|
---|
14832 | #endif
|
---|
14833 | char ${ZPREFIX}zlibVersion (void);
|
---|
14834 | int
|
---|
14835 | main (void)
|
---|
14836 | {
|
---|
14837 | return ${ZPREFIX}zlibVersion ();
|
---|
14838 | ;
|
---|
14839 | return 0;
|
---|
14840 | }
|
---|
14841 | _ACEOF
|
---|
14842 | if ac_fn_c_try_link "$LINENO"
|
---|
14843 | then :
|
---|
14844 | eval "$as_ac_Lib=yes"
|
---|
14845 | else case e in #(
|
---|
14846 | e) eval "$as_ac_Lib=no" ;;
|
---|
14847 | esac
|
---|
14848 | fi
|
---|
14849 | rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
---|
14850 | conftest$ac_exeext conftest.$ac_ext
|
---|
14851 | LIBS=$ac_check_lib_save_LIBS ;;
|
---|
14852 | esac
|
---|
14853 | fi
|
---|
14854 | eval ac_res=\$$as_ac_Lib
|
---|
14855 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
---|
14856 | printf "%s\n" "$ac_res" >&6; }
|
---|
14857 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"
|
---|
14858 | then :
|
---|
14859 | printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
|
---|
14860 |
|
---|
14861 | LIBS="-lz $LIBS"
|
---|
14862 |
|
---|
14863 | else case e in #(
|
---|
14864 | e) as_fn_error $? "zlib not installed" "$LINENO" 5 ;;
|
---|
14865 | esac
|
---|
14866 | fi
|
---|
14867 | ;;
|
---|
14868 | esac
|
---|
14869 | fi
|
---|
14870 |
|
---|
14871 |
|
---|
14872 | # The following is for pngvalid, to ensure it catches FP errors even on
|
---|
14873 | # platforms that don't enable FP exceptions, the function appears in the math
|
---|
14874 | # library (typically), it's not an error if it is not found.
|
---|
14875 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
|
---|
14876 | printf %s "checking for feenableexcept in -lm... " >&6; }
|
---|
14877 | if test ${ac_cv_lib_m_feenableexcept+y}
|
---|
14878 | then :
|
---|
14879 | printf %s "(cached) " >&6
|
---|
14880 | else case e in #(
|
---|
14881 | e) ac_check_lib_save_LIBS=$LIBS
|
---|
14882 | LIBS="-lm $LIBS"
|
---|
14883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
14884 | /* end confdefs.h. */
|
---|
14885 |
|
---|
14886 | /* Override any GCC internal prototype to avoid an error.
|
---|
14887 | Use char because int might match the return type of a GCC
|
---|
14888 | builtin and then its argument prototype would still apply.
|
---|
14889 | The 'extern "C"' is for builds by C++ compilers;
|
---|
14890 | although this is not generally supported in C code supporting it here
|
---|
14891 | has little cost and some practical benefit (sr 110532). */
|
---|
14892 | #ifdef __cplusplus
|
---|
14893 | extern "C"
|
---|
14894 | #endif
|
---|
14895 | char feenableexcept (void);
|
---|
14896 | int
|
---|
14897 | main (void)
|
---|
14898 | {
|
---|
14899 | return feenableexcept ();
|
---|
14900 | ;
|
---|
14901 | return 0;
|
---|
14902 | }
|
---|
14903 | _ACEOF
|
---|
14904 | if ac_fn_c_try_link "$LINENO"
|
---|
14905 | then :
|
---|
14906 | ac_cv_lib_m_feenableexcept=yes
|
---|
14907 | else case e in #(
|
---|
14908 | e) ac_cv_lib_m_feenableexcept=no ;;
|
---|
14909 | esac
|
---|
14910 | fi
|
---|
14911 | rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
---|
14912 | conftest$ac_exeext conftest.$ac_ext
|
---|
14913 | LIBS=$ac_check_lib_save_LIBS ;;
|
---|
14914 | esac
|
---|
14915 | fi
|
---|
14916 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
|
---|
14917 | printf "%s\n" "$ac_cv_lib_m_feenableexcept" >&6; }
|
---|
14918 | if test "x$ac_cv_lib_m_feenableexcept" = xyes
|
---|
14919 | then :
|
---|
14920 | printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
|
---|
14921 |
|
---|
14922 | LIBS="-lm $LIBS"
|
---|
14923 |
|
---|
14924 | fi
|
---|
14925 |
|
---|
14926 | ac_fn_c_check_func "$LINENO" "feenableexcept" "ac_cv_func_feenableexcept"
|
---|
14927 | if test "x$ac_cv_func_feenableexcept" = xyes
|
---|
14928 | then :
|
---|
14929 | printf "%s\n" "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
|
---|
14930 |
|
---|
14931 | fi
|
---|
14932 |
|
---|
14933 |
|
---|
14934 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if using Solaris linker" >&5
|
---|
14935 | printf %s "checking if using Solaris linker... " >&6; }
|
---|
14936 | SLD=`$LD --version 2>&1 | grep Solaris`
|
---|
14937 | if test "$SLD"; then
|
---|
14938 | have_solaris_ld=yes
|
---|
14939 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
14940 | printf "%s\n" "yes" >&6; }
|
---|
14941 | else
|
---|
14942 | have_solaris_ld=no
|
---|
14943 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
14944 | printf "%s\n" "no" >&6; }
|
---|
14945 | fi
|
---|
14946 | if test "$have_solaris_ld" = "yes"; then
|
---|
14947 | HAVE_SOLARIS_LD_TRUE=
|
---|
14948 | HAVE_SOLARIS_LD_FALSE='#'
|
---|
14949 | else
|
---|
14950 | HAVE_SOLARIS_LD_TRUE='#'
|
---|
14951 | HAVE_SOLARIS_LD_FALSE=
|
---|
14952 | fi
|
---|
14953 |
|
---|
14954 |
|
---|
14955 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
|
---|
14956 | printf %s "checking if libraries can be versioned... " >&6; }
|
---|
14957 | # Special case for PE/COFF platforms: ld reports
|
---|
14958 | # support for version-script, but doesn't actually
|
---|
14959 | # DO anything with it.
|
---|
14960 | case $host in
|
---|
14961 | *cygwin* | *mingw32* | *interix* )
|
---|
14962 | have_ld_version_script=no
|
---|
14963 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
14964 | printf "%s\n" "no" >&6; }
|
---|
14965 | ;;
|
---|
14966 | * )
|
---|
14967 |
|
---|
14968 | if test "$have_solaris_ld" = "yes"; then
|
---|
14969 | GLD=`$LD --help < /dev/null 2>&1 | grep 'M mapfile'`
|
---|
14970 | else
|
---|
14971 | GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
|
---|
14972 | fi
|
---|
14973 |
|
---|
14974 | if test "$GLD"; then
|
---|
14975 | have_ld_version_script=yes
|
---|
14976 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
---|
14977 | printf "%s\n" "yes" >&6; }
|
---|
14978 | else
|
---|
14979 | have_ld_version_script=no
|
---|
14980 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
---|
14981 | printf "%s\n" "no" >&6; }
|
---|
14982 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** You have not enabled versioned symbols." >&5
|
---|
14983 | printf "%s\n" "$as_me: WARNING: *** You have not enabled versioned symbols." >&2;}
|
---|
14984 | fi
|
---|
14985 | ;;
|
---|
14986 | esac
|
---|
14987 |
|
---|
14988 | if test "$have_ld_version_script" = "yes"; then
|
---|
14989 | HAVE_LD_VERSION_SCRIPT_TRUE=
|
---|
14990 | HAVE_LD_VERSION_SCRIPT_FALSE='#'
|
---|
14991 | else
|
---|
14992 | HAVE_LD_VERSION_SCRIPT_TRUE='#'
|
---|
14993 | HAVE_LD_VERSION_SCRIPT_FALSE=
|
---|
14994 | fi
|
---|
14995 |
|
---|
14996 |
|
---|
14997 | if test "$have_ld_version_script" = "yes"; then
|
---|
14998 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for symbol prefix" >&5
|
---|
14999 | printf %s "checking for symbol prefix... " >&6; }
|
---|
15000 | SYMBOL_PREFIX=`echo "PREFIX=__USER_LABEL_PREFIX__" \
|
---|
15001 | | ${CPP:-${CC:-gcc} -E} - 2>&1 \
|
---|
15002 | | ${EGREP:-grep} "^PREFIX=" \
|
---|
15003 | | ${SED:-sed} -e "s:^PREFIX=::" -e "s:__USER_LABEL_PREFIX__::"`
|
---|
15004 |
|
---|
15005 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYMBOL_PREFIX" >&5
|
---|
15006 | printf "%s\n" "$SYMBOL_PREFIX" >&6; }
|
---|
15007 | fi
|
---|
15008 |
|
---|
15009 | # Substitutions for .in files
|
---|
15010 |
|
---|
15011 |
|
---|
15012 |
|
---|
15013 |
|
---|
15014 |
|
---|
15015 | # Additional arguments (and substitutions)
|
---|
15016 | # Allow the pkg-config directory to be set
|
---|
15017 |
|
---|
15018 | # Check whether --with-pkgconfigdir was given.
|
---|
15019 | if test ${with_pkgconfigdir+y}
|
---|
15020 | then :
|
---|
15021 | withval=$with_pkgconfigdir; pkgconfigdir=${withval}
|
---|
15022 | else case e in #(
|
---|
15023 | e) pkgconfigdir='${libdir}/pkgconfig' ;;
|
---|
15024 | esac
|
---|
15025 | fi
|
---|
15026 |
|
---|
15027 |
|
---|
15028 |
|
---|
15029 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkgconfig directory is ${pkgconfigdir}" >&5
|
---|
15030 | printf "%s\n" "$as_me: pkgconfig directory is ${pkgconfigdir}" >&6;}
|
---|
15031 |
|
---|
15032 | # Make the *-config binary config scripts optional
|
---|
15033 |
|
---|
15034 | # Check whether --with-binconfigs was given.
|
---|
15035 | if test ${with_binconfigs+y}
|
---|
15036 | then :
|
---|
15037 | withval=$with_binconfigs; if test "${withval}" = no; then
|
---|
15038 | binconfigs=
|
---|
15039 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: libpng-config scripts will not be built" >&5
|
---|
15040 | printf "%s\n" "$as_me: libpng-config scripts will not be built" >&6;}
|
---|
15041 | else
|
---|
15042 | binconfigs='${binconfigs}'
|
---|
15043 | fi
|
---|
15044 | else case e in #(
|
---|
15045 | e) binconfigs='${binconfigs}' ;;
|
---|
15046 | esac
|
---|
15047 | fi
|
---|
15048 |
|
---|
15049 |
|
---|
15050 |
|
---|
15051 | # Support for prefixes to the API function names; this will generate defines
|
---|
15052 | # at the start of the build to rename exported library functions
|
---|
15053 |
|
---|
15054 | # Check whether --with-libpng-prefix was given.
|
---|
15055 | if test ${with_libpng_prefix+y}
|
---|
15056 | then :
|
---|
15057 | withval=$with_libpng_prefix; if test "${withval:-no}" != "no"; then
|
---|
15058 | PNG_PREFIX=${withval}
|
---|
15059 |
|
---|
15060 | fi
|
---|
15061 | fi
|
---|
15062 |
|
---|
15063 | if test "${with_libpng_prefix:-no}" != "no"; then
|
---|
15064 | DO_PNG_PREFIX_TRUE=
|
---|
15065 | DO_PNG_PREFIX_FALSE='#'
|
---|
15066 | else
|
---|
15067 | DO_PNG_PREFIX_TRUE='#'
|
---|
15068 | DO_PNG_PREFIX_FALSE=
|
---|
15069 | fi
|
---|
15070 |
|
---|
15071 |
|
---|
15072 | # Control over what links are made for installed files. Versioned files are
|
---|
15073 | # always installed, when the following options are turned on corresponding
|
---|
15074 | # unversioned links are also created (normally as symbolic links):
|
---|
15075 | # Check whether --enable-unversioned-links was given.
|
---|
15076 | if test ${enable_unversioned_links+y}
|
---|
15077 | then :
|
---|
15078 | enableval=$enable_unversioned_links;
|
---|
15079 | fi
|
---|
15080 |
|
---|
15081 |
|
---|
15082 | # The AM_CONDITIONAL test is written so that the default is enabled;
|
---|
15083 | # --disable-unversioned-links must be given to turn the option off.
|
---|
15084 | if test "$enable_unversioned_links" != "no"; then
|
---|
15085 | DO_INSTALL_LINKS_TRUE=
|
---|
15086 | DO_INSTALL_LINKS_FALSE='#'
|
---|
15087 | else
|
---|
15088 | DO_INSTALL_LINKS_TRUE='#'
|
---|
15089 | DO_INSTALL_LINKS_FALSE=
|
---|
15090 | fi
|
---|
15091 |
|
---|
15092 |
|
---|
15093 | # Check whether --enable-unversioned-libpng-pc was given.
|
---|
15094 | if test ${enable_unversioned_libpng_pc+y}
|
---|
15095 | then :
|
---|
15096 | enableval=$enable_unversioned_libpng_pc;
|
---|
15097 | fi
|
---|
15098 |
|
---|
15099 | if test "$enable_unversioned_libpng_pc" != "no"; then
|
---|
15100 | DO_INSTALL_LIBPNG_PC_TRUE=
|
---|
15101 | DO_INSTALL_LIBPNG_PC_FALSE='#'
|
---|
15102 | else
|
---|
15103 | DO_INSTALL_LIBPNG_PC_TRUE='#'
|
---|
15104 | DO_INSTALL_LIBPNG_PC_FALSE=
|
---|
15105 | fi
|
---|
15106 |
|
---|
15107 |
|
---|
15108 | # Check whether --enable-unversioned-libpng-config was given.
|
---|
15109 | if test ${enable_unversioned_libpng_config+y}
|
---|
15110 | then :
|
---|
15111 | enableval=$enable_unversioned_libpng_config;
|
---|
15112 | fi
|
---|
15113 |
|
---|
15114 | if test "$enable_unversioned_libpng_config" != "no"; then
|
---|
15115 | DO_INSTALL_LIBPNG_CONFIG_TRUE=
|
---|
15116 | DO_INSTALL_LIBPNG_CONFIG_FALSE='#'
|
---|
15117 | else
|
---|
15118 | DO_INSTALL_LIBPNG_CONFIG_TRUE='#'
|
---|
15119 | DO_INSTALL_LIBPNG_CONFIG_FALSE=
|
---|
15120 | fi
|
---|
15121 |
|
---|
15122 |
|
---|
15123 | # HOST-SPECIFIC OPTIONS
|
---|
15124 | # =====================
|
---|
15125 | #
|
---|
15126 | # DEFAULT
|
---|
15127 | # =======
|
---|
15128 | #
|
---|
15129 | # Check whether --enable-hardware-optimizations was given.
|
---|
15130 | if test ${enable_hardware_optimizations+y}
|
---|
15131 | then :
|
---|
15132 | enableval=$enable_hardware_optimizations; case "$enableval" in
|
---|
15133 | no|off)
|
---|
15134 | # disable hardware optimization on all systems:
|
---|
15135 | enable_arm_neon=no
|
---|
15136 |
|
---|
15137 | printf "%s\n" "#define PNG_ARM_NEON_OPT 0" >>confdefs.h
|
---|
15138 |
|
---|
15139 | enable_mips_msa=no
|
---|
15140 |
|
---|
15141 | printf "%s\n" "#define PNG_MIPS_MSA_OPT 0" >>confdefs.h
|
---|
15142 |
|
---|
15143 | enable_mips_mmi=no
|
---|
15144 |
|
---|
15145 | printf "%s\n" "#define PNG_MIPS_MMI_OPT 0" >>confdefs.h
|
---|
15146 |
|
---|
15147 | enable_powerpc_vsx=no
|
---|
15148 |
|
---|
15149 | printf "%s\n" "#define PNG_POWERPC_VSX_OPT 0" >>confdefs.h
|
---|
15150 |
|
---|
15151 | enable_intel_sse=no
|
---|
15152 |
|
---|
15153 | printf "%s\n" "#define PNG_INTEL_SSE_OPT 0" >>confdefs.h
|
---|
15154 |
|
---|
15155 | enable_loongarch_lsx=no
|
---|
15156 |
|
---|
15157 | printf "%s\n" "#define PNG_LOONGARCH_LSX_OPT 0" >>confdefs.h
|
---|
15158 |
|
---|
15159 | ;;
|
---|
15160 | *)
|
---|
15161 | # allow enabling hardware optimization on any system:
|
---|
15162 | case "$host_cpu" in
|
---|
15163 | arm*|aarch64*)
|
---|
15164 | enable_arm_neon=yes
|
---|
15165 |
|
---|
15166 | printf "%s\n" "#define PNG_ARM_NEON_OPT 2" >>confdefs.h
|
---|
15167 |
|
---|
15168 | ;;
|
---|
15169 | mipsel*|mips64el*)
|
---|
15170 | enable_mips_mmi=yes
|
---|
15171 | enable_mips_msa=yes
|
---|
15172 |
|
---|
15173 | printf "%s\n" "#define PNG_MIPS_MMI_OPT 1" >>confdefs.h
|
---|
15174 |
|
---|
15175 |
|
---|
15176 | printf "%s\n" "#define PNG_MIPS_MSA_OPT 2" >>confdefs.h
|
---|
15177 |
|
---|
15178 | ;;
|
---|
15179 | i?86|x86_64)
|
---|
15180 | enable_intel_sse=yes
|
---|
15181 |
|
---|
15182 | printf "%s\n" "#define PNG_INTEL_SSE_OPT 1" >>confdefs.h
|
---|
15183 |
|
---|
15184 | ;;
|
---|
15185 | powerpc*|ppc64*)
|
---|
15186 | enable_powerpc_vsx=yes
|
---|
15187 |
|
---|
15188 | printf "%s\n" "#define PNG_POWERPC_VSX_OPT 2" >>confdefs.h
|
---|
15189 |
|
---|
15190 | ;;
|
---|
15191 | loongarch*)
|
---|
15192 | enable_loongarch_lsx=yes
|
---|
15193 |
|
---|
15194 | printf "%s\n" "#define PNG_LOONGARCH_LSX_OPT 1" >>confdefs.h
|
---|
15195 |
|
---|
15196 | ;;
|
---|
15197 | esac
|
---|
15198 | ;;
|
---|
15199 | esac
|
---|
15200 | fi
|
---|
15201 |
|
---|
15202 |
|
---|
15203 | # ARM NEON
|
---|
15204 | # ========
|
---|
15205 |
|
---|
15206 | # Check whether --enable-arm-neon was given.
|
---|
15207 | if test ${enable_arm_neon+y}
|
---|
15208 | then :
|
---|
15209 | enableval=$enable_arm_neon; case "$enableval" in
|
---|
15210 | no|off)
|
---|
15211 | # disable the default enabling on __ARM_NEON__ systems:
|
---|
15212 |
|
---|
15213 | printf "%s\n" "#define PNG_ARM_NEON_OPT 0" >>confdefs.h
|
---|
15214 |
|
---|
15215 | # Prevent inclusion of the assembler files below:
|
---|
15216 | enable_arm_neon=no ;;
|
---|
15217 | check)
|
---|
15218 |
|
---|
15219 | printf "%s\n" "#define PNG_ARM_NEON_CHECK_SUPPORTED /**/" >>confdefs.h
|
---|
15220 | ;;
|
---|
15221 | api)
|
---|
15222 |
|
---|
15223 | printf "%s\n" "#define PNG_ARM_NEON_API_SUPPORTED /**/" >>confdefs.h
|
---|
15224 | ;;
|
---|
15225 | yes|on)
|
---|
15226 |
|
---|
15227 | printf "%s\n" "#define PNG_ARM_NEON_OPT 2" >>confdefs.h
|
---|
15228 |
|
---|
15229 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-arm-neon: please specify 'check' or 'api';
|
---|
15230 | if you want the optimizations unconditionally,
|
---|
15231 | pass '-mfpu=neon' to the compiler." >&5
|
---|
15232 | printf "%s\n" "$as_me: WARNING: --enable-arm-neon: please specify 'check' or 'api';
|
---|
15233 | if you want the optimizations unconditionally,
|
---|
15234 | pass '-mfpu=neon' to the compiler." >&2;};;
|
---|
15235 | *)
|
---|
15236 | as_fn_error $? "--enable-arm-neon=${enable_arm_neon}:
|
---|
15237 | invalid argument" "$LINENO" 5
|
---|
15238 | esac
|
---|
15239 | fi
|
---|
15240 |
|
---|
15241 |
|
---|
15242 | # Add ARM-specific files to all builds where $host_cpu is arm ('arm*') or
|
---|
15243 | # where ARM optimizations were explicitly requested. (This allows a fallback
|
---|
15244 | # if a future host CPU does not match 'arm*'.)
|
---|
15245 |
|
---|
15246 | if test "$enable_arm_neon" != 'no' &&
|
---|
15247 | case "$host_cpu" in
|
---|
15248 | arm*|aarch64*) : ;;
|
---|
15249 | *) test "$enable_arm_neon" != '' ;;
|
---|
15250 | esac; then
|
---|
15251 | PNG_ARM_NEON_TRUE=
|
---|
15252 | PNG_ARM_NEON_FALSE='#'
|
---|
15253 | else
|
---|
15254 | PNG_ARM_NEON_TRUE='#'
|
---|
15255 | PNG_ARM_NEON_FALSE=
|
---|
15256 | fi
|
---|
15257 |
|
---|
15258 |
|
---|
15259 | # MIPS MSA
|
---|
15260 | # ========
|
---|
15261 |
|
---|
15262 | # Check whether --enable-mips-msa was given.
|
---|
15263 | if test ${enable_mips_msa+y}
|
---|
15264 | then :
|
---|
15265 | enableval=$enable_mips_msa; case "$enableval" in
|
---|
15266 | no|off)
|
---|
15267 | # disable the default enabling on __mips_msa systems:
|
---|
15268 |
|
---|
15269 | printf "%s\n" "#define PNG_MIPS_MSA_OPT 0" >>confdefs.h
|
---|
15270 |
|
---|
15271 | # Prevent inclusion of the assembler files below:
|
---|
15272 | enable_mips_msa=no ;;
|
---|
15273 | check)
|
---|
15274 |
|
---|
15275 | printf "%s\n" "#define PNG_MIPS_MSA_CHECK_SUPPORTED /**/" >>confdefs.h
|
---|
15276 | ;;
|
---|
15277 | api)
|
---|
15278 |
|
---|
15279 | printf "%s\n" "#define PNG_MIPS_MSA_API_SUPPORTED /**/" >>confdefs.h
|
---|
15280 | ;;
|
---|
15281 | yes|on)
|
---|
15282 |
|
---|
15283 | printf "%s\n" "#define PNG_MIPS_MSA_OPT 2" >>confdefs.h
|
---|
15284 |
|
---|
15285 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-mips-msa: please specify 'check' or 'api';
|
---|
15286 | if you want the optimizations unconditionally,
|
---|
15287 | pass '-mmsa -mfp64' to the compiler." >&5
|
---|
15288 | printf "%s\n" "$as_me: WARNING: --enable-mips-msa: please specify 'check' or 'api';
|
---|
15289 | if you want the optimizations unconditionally,
|
---|
15290 | pass '-mmsa -mfp64' to the compiler." >&2;};;
|
---|
15291 | *)
|
---|
15292 | as_fn_error $? "--enable-mips-msa=${enable_mips_msa}:
|
---|
15293 | invalid argument" "$LINENO" 5
|
---|
15294 | esac
|
---|
15295 | fi
|
---|
15296 |
|
---|
15297 |
|
---|
15298 | # Add MIPS-specific files to all builds where $host_cpu is mips ('mips*') or
|
---|
15299 | # where MIPS optimizations were explicitly requested. (This allows a fallback
|
---|
15300 | # if a future host CPU does not match 'mips*'.)
|
---|
15301 |
|
---|
15302 | if test "$enable_mips_msa" != 'no' &&
|
---|
15303 | case "$host_cpu" in
|
---|
15304 | mipsel*|mips64el*) : ;;
|
---|
15305 | esac; then
|
---|
15306 | PNG_MIPS_MSA_TRUE=
|
---|
15307 | PNG_MIPS_MSA_FALSE='#'
|
---|
15308 | else
|
---|
15309 | PNG_MIPS_MSA_TRUE='#'
|
---|
15310 | PNG_MIPS_MSA_FALSE=
|
---|
15311 | fi
|
---|
15312 |
|
---|
15313 |
|
---|
15314 | # MIPS MMI
|
---|
15315 | # ========
|
---|
15316 |
|
---|
15317 | # Check whether --enable-mips-mmi was given.
|
---|
15318 | if test ${enable_mips_mmi+y}
|
---|
15319 | then :
|
---|
15320 | enableval=$enable_mips_mmi; case "$enableval" in
|
---|
15321 | no|off)
|
---|
15322 | # disable the default enabling on __mips_mmi systems:
|
---|
15323 |
|
---|
15324 | printf "%s\n" "#define PNG_MIPS_MMI_OPT 0" >>confdefs.h
|
---|
15325 |
|
---|
15326 | # Prevent inclusion of the assembler files below:
|
---|
15327 | enable_mips_mmi=no;;
|
---|
15328 | check)
|
---|
15329 |
|
---|
15330 | printf "%s\n" "#define PNG_MIPS_MMI_CHECK_SUPPORTED /**/" >>confdefs.h
|
---|
15331 | ;;
|
---|
15332 | api)
|
---|
15333 |
|
---|
15334 | printf "%s\n" "#define PNG_MIPS_MMI_API_SUPPORTED /**/" >>confdefs.h
|
---|
15335 | ;;
|
---|
15336 | yes|on)
|
---|
15337 |
|
---|
15338 | printf "%s\n" "#define PNG_MIPS_MMI_OPT 1" >>confdefs.h
|
---|
15339 |
|
---|
15340 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-mips-mmi: please specify 'check' or 'api';
|
---|
15341 | if you want the optimizations unconditionally
|
---|
15342 | pass '-mloongson-mmi -march=loongson3a' to the compiler." >&5
|
---|
15343 | printf "%s\n" "$as_me: WARNING: --enable-mips-mmi: please specify 'check' or 'api';
|
---|
15344 | if you want the optimizations unconditionally
|
---|
15345 | pass '-mloongson-mmi -march=loongson3a' to the compiler." >&2;};;
|
---|
15346 | *)
|
---|
15347 | as_fn_error $? "--enable-mips-mmi=${enable_mips_mmi}:
|
---|
15348 | invalid argument" "$LINENO" 5
|
---|
15349 | esac
|
---|
15350 | fi
|
---|
15351 |
|
---|
15352 |
|
---|
15353 | # Add MIPS specific files to all builds where the host_cpu is mips ('mips*') or
|
---|
15354 | # where MIPS optimizations were explicitly requested. (This allows a fallback
|
---|
15355 | # if a future host CPU does not match 'mips*'.)
|
---|
15356 |
|
---|
15357 | if test "$enable_mips_mmi" != 'no' &&
|
---|
15358 | case "$host_cpu" in
|
---|
15359 | mipsel*|mips64el*) : ;;
|
---|
15360 | esac; then
|
---|
15361 | PNG_MIPS_MMI_TRUE=
|
---|
15362 | PNG_MIPS_MMI_FALSE='#'
|
---|
15363 | else
|
---|
15364 | PNG_MIPS_MMI_TRUE='#'
|
---|
15365 | PNG_MIPS_MMI_FALSE=
|
---|
15366 | fi
|
---|
15367 |
|
---|
15368 |
|
---|
15369 | # INTEL SSE
|
---|
15370 | # =========
|
---|
15371 |
|
---|
15372 | # Check whether --enable-intel-sse was given.
|
---|
15373 | if test ${enable_intel_sse+y}
|
---|
15374 | then :
|
---|
15375 | enableval=$enable_intel_sse; case "$enableval" in
|
---|
15376 | no|off)
|
---|
15377 | # disable the default enabling:
|
---|
15378 |
|
---|
15379 | printf "%s\n" "#define PNG_INTEL_SSE_OPT 0" >>confdefs.h
|
---|
15380 |
|
---|
15381 | # Prevent inclusion of the assembler files below:
|
---|
15382 | enable_intel_sse=no ;;
|
---|
15383 | yes|on)
|
---|
15384 |
|
---|
15385 | printf "%s\n" "#define PNG_INTEL_SSE_OPT 1" >>confdefs.h
|
---|
15386 | ;;
|
---|
15387 | *)
|
---|
15388 | as_fn_error $? "--enable-intel-sse=${enable_intel_sse}:
|
---|
15389 | invalid argument" "$LINENO" 5
|
---|
15390 | esac
|
---|
15391 | fi
|
---|
15392 |
|
---|
15393 |
|
---|
15394 | # Add Intel-specific files to all builds where $host_cpu is Intel ('x86*') or
|
---|
15395 | # where Intel optimizations were explicitly requested. (This allows a fallback
|
---|
15396 | # if a future host CPU does not match 'x86*'.)
|
---|
15397 | if test "$enable_intel_sse" != 'no' &&
|
---|
15398 | case "$host_cpu" in
|
---|
15399 | i?86|x86_64) : ;;
|
---|
15400 | *) test "$enable_intel_sse" != '' ;;
|
---|
15401 | esac; then
|
---|
15402 | PNG_INTEL_SSE_TRUE=
|
---|
15403 | PNG_INTEL_SSE_FALSE='#'
|
---|
15404 | else
|
---|
15405 | PNG_INTEL_SSE_TRUE='#'
|
---|
15406 | PNG_INTEL_SSE_FALSE=
|
---|
15407 | fi
|
---|
15408 |
|
---|
15409 |
|
---|
15410 | # POWERPC VSX
|
---|
15411 | # ===========
|
---|
15412 |
|
---|
15413 | # Check whether --enable-powerpc-vsx was given.
|
---|
15414 | if test ${enable_powerpc_vsx+y}
|
---|
15415 | then :
|
---|
15416 | enableval=$enable_powerpc_vsx; case "$enableval" in
|
---|
15417 | no|off)
|
---|
15418 | # disable the default enabling on __ppc64__ systems:
|
---|
15419 |
|
---|
15420 | printf "%s\n" "#define PNG_POWERPC_VSX_OPT 0" >>confdefs.h
|
---|
15421 |
|
---|
15422 | # Prevent inclusion of the platform-specific files below:
|
---|
15423 | enable_powerpc_vsx=no ;;
|
---|
15424 | check)
|
---|
15425 |
|
---|
15426 | printf "%s\n" "#define PNG_POWERPC_VSX_CHECK_SUPPORTED /**/" >>confdefs.h
|
---|
15427 |
|
---|
15428 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-powerpc-vsx: please see contrib/powerpc/README
|
---|
15429 | for the list of supported systems." >&5
|
---|
15430 | printf "%s\n" "$as_me: WARNING: --enable-powerpc-vsx: please see contrib/powerpc/README
|
---|
15431 | for the list of supported systems." >&2;};;
|
---|
15432 | api)
|
---|
15433 |
|
---|
15434 | printf "%s\n" "#define PNG_POWERPC_VSX_API_SUPPORTED /**/" >>confdefs.h
|
---|
15435 | ;;
|
---|
15436 | yes|on)
|
---|
15437 |
|
---|
15438 | printf "%s\n" "#define PNG_POWERPC_VSX_OPT 2" >>confdefs.h
|
---|
15439 |
|
---|
15440 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-powerpc-vsx: please specify 'check' or 'api';
|
---|
15441 | if you want the optimizations unconditionally,
|
---|
15442 | pass '-maltivec -mvsx' or '-mcpu=power8' to the compiler." >&5
|
---|
15443 | printf "%s\n" "$as_me: WARNING: --enable-powerpc-vsx: please specify 'check' or 'api';
|
---|
15444 | if you want the optimizations unconditionally,
|
---|
15445 | pass '-maltivec -mvsx' or '-mcpu=power8' to the compiler." >&2;};;
|
---|
15446 | *)
|
---|
15447 | as_fn_error $? "--enable-powerpc-vsx=${enable_powerpc_vsx}:
|
---|
15448 | invalid argument" "$LINENO" 5
|
---|
15449 | esac
|
---|
15450 | fi
|
---|
15451 |
|
---|
15452 |
|
---|
15453 | # Add PowerPC-specific files to all builds where $host_cpu is powerpc
|
---|
15454 | # ('powerpc*') or where PowerPC optimizations were explicitly requested.
|
---|
15455 | # (This allows a fallback if a future host CPU does not match 'powerpc*'.)
|
---|
15456 |
|
---|
15457 | if test "$enable_powerpc_vsx" != 'no' &&
|
---|
15458 | case "$host_cpu" in
|
---|
15459 | powerpc*|ppc64*) : ;;
|
---|
15460 | esac; then
|
---|
15461 | PNG_POWERPC_VSX_TRUE=
|
---|
15462 | PNG_POWERPC_VSX_FALSE='#'
|
---|
15463 | else
|
---|
15464 | PNG_POWERPC_VSX_TRUE='#'
|
---|
15465 | PNG_POWERPC_VSX_FALSE=
|
---|
15466 | fi
|
---|
15467 |
|
---|
15468 |
|
---|
15469 | # LOONGARCH LSX
|
---|
15470 | # =============
|
---|
15471 |
|
---|
15472 | # Check whether --enable-loongarch-lsx was given.
|
---|
15473 | if test ${enable_loongarch_lsx+y}
|
---|
15474 | then :
|
---|
15475 | enableval=$enable_loongarch_lsx; case "$enableval" in
|
---|
15476 | no|off)
|
---|
15477 | # disable the default enabling on __loongarch_simd systems:
|
---|
15478 |
|
---|
15479 | printf "%s\n" "#define PNG_LOONGARCH_LSX_OPT 0" >>confdefs.h
|
---|
15480 |
|
---|
15481 | # Prevent inclusion of the assembler files below:
|
---|
15482 | enable_loongarch_lsx=no;;
|
---|
15483 | yes|on)
|
---|
15484 |
|
---|
15485 | printf "%s\n" "#define PNG_LOONGARCH_LSX_OPT 1" >>confdefs.h
|
---|
15486 |
|
---|
15487 | ;;
|
---|
15488 | *)
|
---|
15489 | as_fn_error $? "--enable-loongarch-lsx=${enable_loongarch_lsx}:
|
---|
15490 | invalid argument" "$LINENO" 5
|
---|
15491 | esac
|
---|
15492 | fi
|
---|
15493 |
|
---|
15494 |
|
---|
15495 | if test "$enable_loongarch_lsx" != "no" &&
|
---|
15496 | case "$host_cpu" in
|
---|
15497 | loongarch*) : ;;
|
---|
15498 | *) test "$enable_loongarch_lsx" != '' ;;
|
---|
15499 | esac
|
---|
15500 | then
|
---|
15501 | compiler_support_loongarch_lsx=no
|
---|
15502 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use LoongArch LSX intrinsics" >&5
|
---|
15503 | printf %s "checking whether to use LoongArch LSX intrinsics... " >&6; }
|
---|
15504 | save_CFLAGS="$CFLAGS"
|
---|
15505 | LSX_CFLAGS="${LSX_CFLAGS:-"-mlsx"}"
|
---|
15506 | CFLAGS="$CFLAGS $LSX_CFLAGS"
|
---|
15507 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
---|
15508 | /* end confdefs.h. */
|
---|
15509 |
|
---|
15510 | #include <lsxintrin.h>
|
---|
15511 | int main(){
|
---|
15512 | __m128i a, b, c;
|
---|
15513 | a = __lsx_vadd_w(b, c);
|
---|
15514 | return 0;
|
---|
15515 | }
|
---|
15516 | _ACEOF
|
---|
15517 | if ac_fn_c_try_compile "$LINENO"
|
---|
15518 | then :
|
---|
15519 | compiler_support_loongarch_lsx=yes
|
---|
15520 | fi
|
---|
15521 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
---|
15522 | CFLAGS="$save_CFLAGS"
|
---|
15523 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $compiler_support_loongarch_lsx" >&5
|
---|
15524 | printf "%s\n" "$compiler_support_loongarch_lsx" >&6; }
|
---|
15525 | if test "$compiler_support_loongarch_lsx" = "yes"; then
|
---|
15526 |
|
---|
15527 | printf "%s\n" "#define PNG_LOONGARCH_LSX_OPT 1" >>confdefs.h
|
---|
15528 |
|
---|
15529 | else
|
---|
15530 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support loongarch LSX." >&5
|
---|
15531 | printf "%s\n" "$as_me: WARNING: Compiler does not support loongarch LSX." >&2;}
|
---|
15532 | fi
|
---|
15533 | fi
|
---|
15534 |
|
---|
15535 | # Add LoongArch specific files to all builds where the host_cpu is loongarch
|
---|
15536 | # ('loongarch*') or where LoongArch optimizations were explicitly requested.
|
---|
15537 | # (This allows a fallback if a future host CPU does not match 'loongarch*'.)
|
---|
15538 |
|
---|
15539 | if test "$enable_loongarch_lsx" != "no" &&
|
---|
15540 | test "$compiler_support_loongarch_lsx" = "yes" &&
|
---|
15541 | case "$host_cpu" in
|
---|
15542 | loongarch*) : ;;
|
---|
15543 | *) test "$enable_loongarch_lsx" != '' ;;
|
---|
15544 | esac; then
|
---|
15545 | PNG_LOONGARCH_LSX_TRUE=
|
---|
15546 | PNG_LOONGARCH_LSX_FALSE='#'
|
---|
15547 | else
|
---|
15548 | PNG_LOONGARCH_LSX_TRUE='#'
|
---|
15549 | PNG_LOONGARCH_LSX_FALSE=
|
---|
15550 | fi
|
---|
15551 |
|
---|
15552 |
|
---|
15553 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Extra options for compiler: $PNG_COPTS" >&5
|
---|
15554 | printf "%s\n" "$as_me: Extra options for compiler: $PNG_COPTS" >&6;}
|
---|
15555 |
|
---|
15556 | # Config files, substituting as above
|
---|
15557 | ac_config_files="$ac_config_files Makefile libpng.pc:libpng.pc.in"
|
---|
15558 |
|
---|
15559 | ac_config_files="$ac_config_files libpng-config:libpng-config.in"
|
---|
15560 |
|
---|
15561 |
|
---|
15562 | cat >confcache <<\_ACEOF
|
---|
15563 | # This file is a shell script that caches the results of configure
|
---|
15564 | # tests run on this system so they can be shared between configure
|
---|
15565 | # scripts and configure runs, see configure's option --config-cache.
|
---|
15566 | # It is not useful on other systems. If it contains results you don't
|
---|
15567 | # want to keep, you may remove or edit it.
|
---|
15568 | #
|
---|
15569 | # config.status only pays attention to the cache file if you give it
|
---|
15570 | # the --recheck option to rerun configure.
|
---|
15571 | #
|
---|
15572 | # 'ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
15573 | # loading this file, other *unset* 'ac_cv_foo' will be assigned the
|
---|
15574 | # following values.
|
---|
15575 |
|
---|
15576 | _ACEOF
|
---|
15577 |
|
---|
15578 | # The following way of writing the cache mishandles newlines in values,
|
---|
15579 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
15580 | # So, we kill variables containing newlines.
|
---|
15581 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
15582 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
15583 | (
|
---|
15584 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
---|
15585 | eval ac_val=\$$ac_var
|
---|
15586 | case $ac_val in #(
|
---|
15587 | *${as_nl}*)
|
---|
15588 | case $ac_var in #(
|
---|
15589 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
---|
15590 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
---|
15591 | esac
|
---|
15592 | case $ac_var in #(
|
---|
15593 | _ | IFS | as_nl) ;; #(
|
---|
15594 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
---|
15595 | *) { eval $ac_var=; unset $ac_var;} ;;
|
---|
15596 | esac ;;
|
---|
15597 | esac
|
---|
15598 | done
|
---|
15599 |
|
---|
15600 | (set) 2>&1 |
|
---|
15601 | case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
---|
15602 | *${as_nl}ac_space=\ *)
|
---|
15603 | # 'set' does not quote correctly, so add quotes: double-quote
|
---|
15604 | # substitution turns \\\\ into \\, and sed turns \\ into \.
|
---|
15605 | sed -n \
|
---|
15606 | "s/'/'\\\\''/g;
|
---|
15607 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
15608 | ;; #(
|
---|
15609 | *)
|
---|
15610 | # 'set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
15611 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
15612 | ;;
|
---|
15613 | esac |
|
---|
15614 | sort
|
---|
15615 | ) |
|
---|
15616 | sed '
|
---|
15617 | /^ac_cv_env_/b end
|
---|
15618 | t clear
|
---|
15619 | :clear
|
---|
15620 | s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
|
---|
15621 | t end
|
---|
15622 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
15623 | :end' >>confcache
|
---|
15624 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
---|
15625 | if test -w "$cache_file"; then
|
---|
15626 | if test "x$cache_file" != "x/dev/null"; then
|
---|
15627 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
|
---|
15628 | printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
|
---|
15629 | if test ! -f "$cache_file" || test -h "$cache_file"; then
|
---|
15630 | cat confcache >"$cache_file"
|
---|
15631 | else
|
---|
15632 | case $cache_file in #(
|
---|
15633 | */* | ?:*)
|
---|
15634 | mv -f confcache "$cache_file"$$ &&
|
---|
15635 | mv -f "$cache_file"$$ "$cache_file" ;; #(
|
---|
15636 | *)
|
---|
15637 | mv -f confcache "$cache_file" ;;
|
---|
15638 | esac
|
---|
15639 | fi
|
---|
15640 | fi
|
---|
15641 | else
|
---|
15642 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
|
---|
15643 | printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
|
---|
15644 | fi
|
---|
15645 | fi
|
---|
15646 | rm -f confcache
|
---|
15647 |
|
---|
15648 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
15649 | # Let make expand exec_prefix.
|
---|
15650 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
15651 |
|
---|
15652 | DEFS=-DHAVE_CONFIG_H
|
---|
15653 |
|
---|
15654 | ac_libobjs=
|
---|
15655 | ac_ltlibobjs=
|
---|
15656 | U=
|
---|
15657 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
15658 | # 1. Remove the extension, and $U if already installed.
|
---|
15659 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
---|
15660 | ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
|
---|
15661 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
---|
15662 | # will be set to the directory where LIBOBJS objects are built.
|
---|
15663 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
---|
15664 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
|
---|
15665 | done
|
---|
15666 | LIBOBJS=$ac_libobjs
|
---|
15667 |
|
---|
15668 | LTLIBOBJS=$ac_ltlibobjs
|
---|
15669 |
|
---|
15670 |
|
---|
15671 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
|
---|
15672 | printf %s "checking that generated files are newer than configure... " >&6; }
|
---|
15673 | if test -n "$am_sleep_pid"; then
|
---|
15674 | # Hide warnings about reused PIDs.
|
---|
15675 | wait $am_sleep_pid 2>/dev/null
|
---|
15676 | fi
|
---|
15677 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
|
---|
15678 | printf "%s\n" "done" >&6; }
|
---|
15679 | case $enable_silent_rules in # (((
|
---|
15680 | yes) AM_DEFAULT_VERBOSITY=0;;
|
---|
15681 | no) AM_DEFAULT_VERBOSITY=1;;
|
---|
15682 | esac
|
---|
15683 | if test $am_cv_make_support_nested_variables = yes; then
|
---|
15684 | AM_V='$(V)'
|
---|
15685 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
|
---|
15686 | else
|
---|
15687 | AM_V=$AM_DEFAULT_VERBOSITY
|
---|
15688 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
|
---|
15689 | fi
|
---|
15690 |
|
---|
15691 | if test -n "$EXEEXT"; then
|
---|
15692 | am__EXEEXT_TRUE=
|
---|
15693 | am__EXEEXT_FALSE='#'
|
---|
15694 | else
|
---|
15695 | am__EXEEXT_TRUE='#'
|
---|
15696 | am__EXEEXT_FALSE=
|
---|
15697 | fi
|
---|
15698 |
|
---|
15699 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
|
---|
15700 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
|
---|
15701 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
15702 | fi
|
---|
15703 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
|
---|
15704 | as_fn_error $? "conditional \"AMDEP\" was never defined.
|
---|
15705 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
15706 | fi
|
---|
15707 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
|
---|
15708 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
|
---|
15709 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
15710 | fi
|
---|
15711 | if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
|
---|
15712 | as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
|
---|
15713 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
15714 | fi
|
---|
15715 | if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then
|
---|
15716 | as_fn_error $? "conditional \"ENABLE_TESTS\" was never defined.
|
---|
15717 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
15718 | fi
|
---|
15719 | if test -z "${ENABLE_TOOLS_TRUE}" && test -z "${ENABLE_TOOLS_FALSE}"; then
|
---|
15720 | as_fn_error $? "conditional \"ENABLE_TOOLS\" was never defined.
|
---|
15721 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
15722 | fi
|
---|
15723 | if test -z "${HAVE_CLOCK_GETTIME_TRUE}" && test -z "${HAVE_CLOCK_GETTIME_FALSE}"; then
|
---|
15724 | as_fn_error $? "conditional \"HAVE_CLOCK_GETTIME\" was never defined.
|
---|
15725 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
15726 | fi
|
---|
15727 | if test -z "${HAVE_SOLARIS_LD_TRUE}" && test -z "${HAVE_SOLARIS_LD_FALSE}"; then
|
---|
15728 | as_fn_error $? "conditional \"HAVE_SOLARIS_LD\" was never defined.
|
---|
15729 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
15730 | fi
|
---|
15731 | if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
|
---|
15732 | as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
|
---|
15733 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
15734 | fi
|
---|
15735 | if test -z "${DO_PNG_PREFIX_TRUE}" && test -z "${DO_PNG_PREFIX_FALSE}"; then
|
---|
15736 | as_fn_error $? "conditional \"DO_PNG_PREFIX\" was never defined.
|
---|
15737 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
15738 | fi
|
---|
15739 | if test -z "${DO_INSTALL_LINKS_TRUE}" && test -z "${DO_INSTALL_LINKS_FALSE}"; then
|
---|
15740 | as_fn_error $? "conditional \"DO_INSTALL_LINKS\" was never defined.
|
---|
15741 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
15742 | fi
|
---|
15743 | if test -z "${DO_INSTALL_LIBPNG_PC_TRUE}" && test -z "${DO_INSTALL_LIBPNG_PC_FALSE}"; then
|
---|
15744 | as_fn_error $? "conditional \"DO_INSTALL_LIBPNG_PC\" was never defined.
|
---|
15745 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
15746 | fi
|
---|
15747 | if test -z "${DO_INSTALL_LIBPNG_CONFIG_TRUE}" && test -z "${DO_INSTALL_LIBPNG_CONFIG_FALSE}"; then
|
---|
15748 | as_fn_error $? "conditional \"DO_INSTALL_LIBPNG_CONFIG\" was never defined.
|
---|
15749 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
15750 | fi
|
---|
15751 | if test -z "${PNG_ARM_NEON_TRUE}" && test -z "${PNG_ARM_NEON_FALSE}"; then
|
---|
15752 | as_fn_error $? "conditional \"PNG_ARM_NEON\" was never defined.
|
---|
15753 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
15754 | fi
|
---|
15755 | if test -z "${PNG_MIPS_MSA_TRUE}" && test -z "${PNG_MIPS_MSA_FALSE}"; then
|
---|
15756 | as_fn_error $? "conditional \"PNG_MIPS_MSA\" was never defined.
|
---|
15757 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
15758 | fi
|
---|
15759 | if test -z "${PNG_MIPS_MMI_TRUE}" && test -z "${PNG_MIPS_MMI_FALSE}"; then
|
---|
15760 | as_fn_error $? "conditional \"PNG_MIPS_MMI\" was never defined.
|
---|
15761 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
15762 | fi
|
---|
15763 | if test -z "${PNG_INTEL_SSE_TRUE}" && test -z "${PNG_INTEL_SSE_FALSE}"; then
|
---|
15764 | as_fn_error $? "conditional \"PNG_INTEL_SSE\" was never defined.
|
---|
15765 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
15766 | fi
|
---|
15767 | if test -z "${PNG_POWERPC_VSX_TRUE}" && test -z "${PNG_POWERPC_VSX_FALSE}"; then
|
---|
15768 | as_fn_error $? "conditional \"PNG_POWERPC_VSX\" was never defined.
|
---|
15769 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
15770 | fi
|
---|
15771 | if test -z "${PNG_LOONGARCH_LSX_TRUE}" && test -z "${PNG_LOONGARCH_LSX_FALSE}"; then
|
---|
15772 | as_fn_error $? "conditional \"PNG_LOONGARCH_LSX\" was never defined.
|
---|
15773 | Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
---|
15774 | fi
|
---|
15775 |
|
---|
15776 | : "${CONFIG_STATUS=./config.status}"
|
---|
15777 | ac_write_fail=0
|
---|
15778 | ac_clean_files_save=$ac_clean_files
|
---|
15779 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
15780 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
|
---|
15781 | printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
15782 | as_write_fail=0
|
---|
15783 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
|
---|
15784 | #! $SHELL
|
---|
15785 | # Generated by $as_me.
|
---|
15786 | # Run this file to recreate the current configuration.
|
---|
15787 | # Compiler output produced by configure, useful for debugging
|
---|
15788 | # configure, is in config.log if it exists.
|
---|
15789 |
|
---|
15790 | debug=false
|
---|
15791 | ac_cs_recheck=false
|
---|
15792 | ac_cs_silent=false
|
---|
15793 |
|
---|
15794 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
15795 | export SHELL
|
---|
15796 | _ASEOF
|
---|
15797 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
|
---|
15798 | ## -------------------- ##
|
---|
15799 | ## M4sh Initialization. ##
|
---|
15800 | ## -------------------- ##
|
---|
15801 |
|
---|
15802 | # Be more Bourne compatible
|
---|
15803 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
15804 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
|
---|
15805 | then :
|
---|
15806 | emulate sh
|
---|
15807 | NULLCMD=:
|
---|
15808 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
---|
15809 | # is contrary to our usage. Disable this feature.
|
---|
15810 | alias -g '${1+"$@"}'='"$@"'
|
---|
15811 | setopt NO_GLOB_SUBST
|
---|
15812 | else case e in #(
|
---|
15813 | e) case `(set -o) 2>/dev/null` in #(
|
---|
15814 | *posix*) :
|
---|
15815 | set -o posix ;; #(
|
---|
15816 | *) :
|
---|
15817 | ;;
|
---|
15818 | esac ;;
|
---|
15819 | esac
|
---|
15820 | fi
|
---|
15821 |
|
---|
15822 |
|
---|
15823 |
|
---|
15824 | # Reset variables that may have inherited troublesome values from
|
---|
15825 | # the environment.
|
---|
15826 |
|
---|
15827 | # IFS needs to be set, to space, tab, and newline, in precisely that order.
|
---|
15828 | # (If _AS_PATH_WALK were called with IFS unset, it would have the
|
---|
15829 | # side effect of setting IFS to empty, thus disabling word splitting.)
|
---|
15830 | # Quoting is to prevent editors from complaining about space-tab.
|
---|
15831 | as_nl='
|
---|
15832 | '
|
---|
15833 | export as_nl
|
---|
15834 | IFS=" "" $as_nl"
|
---|
15835 |
|
---|
15836 | PS1='$ '
|
---|
15837 | PS2='> '
|
---|
15838 | PS4='+ '
|
---|
15839 |
|
---|
15840 | # Ensure predictable behavior from utilities with locale-dependent output.
|
---|
15841 | LC_ALL=C
|
---|
15842 | export LC_ALL
|
---|
15843 | LANGUAGE=C
|
---|
15844 | export LANGUAGE
|
---|
15845 |
|
---|
15846 | # We cannot yet rely on "unset" to work, but we need these variables
|
---|
15847 | # to be unset--not just set to an empty or harmless value--now, to
|
---|
15848 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
|
---|
15849 | # also avoids known problems related to "unset" and subshell syntax
|
---|
15850 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
|
---|
15851 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
|
---|
15852 | do eval test \${$as_var+y} \
|
---|
15853 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
---|
15854 | done
|
---|
15855 |
|
---|
15856 | # Ensure that fds 0, 1, and 2 are open.
|
---|
15857 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
|
---|
15858 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
|
---|
15859 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
|
---|
15860 |
|
---|
15861 | # The user is always right.
|
---|
15862 | if ${PATH_SEPARATOR+false} :; then
|
---|
15863 | PATH_SEPARATOR=:
|
---|
15864 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
---|
15865 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
---|
15866 | PATH_SEPARATOR=';'
|
---|
15867 | }
|
---|
15868 | fi
|
---|
15869 |
|
---|
15870 |
|
---|
15871 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
15872 | as_myself=
|
---|
15873 | case $0 in #((
|
---|
15874 | *[\\/]* ) as_myself=$0 ;;
|
---|
15875 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
15876 | for as_dir in $PATH
|
---|
15877 | do
|
---|
15878 | IFS=$as_save_IFS
|
---|
15879 | case $as_dir in #(((
|
---|
15880 | '') as_dir=./ ;;
|
---|
15881 | */) ;;
|
---|
15882 | *) as_dir=$as_dir/ ;;
|
---|
15883 | esac
|
---|
15884 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break
|
---|
15885 | done
|
---|
15886 | IFS=$as_save_IFS
|
---|
15887 |
|
---|
15888 | ;;
|
---|
15889 | esac
|
---|
15890 | # We did not find ourselves, most probably we were run as 'sh COMMAND'
|
---|
15891 | # in which case we are not to be found in the path.
|
---|
15892 | if test "x$as_myself" = x; then
|
---|
15893 | as_myself=$0
|
---|
15894 | fi
|
---|
15895 | if test ! -f "$as_myself"; then
|
---|
15896 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
15897 | exit 1
|
---|
15898 | fi
|
---|
15899 |
|
---|
15900 |
|
---|
15901 |
|
---|
15902 | # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
---|
15903 | # ----------------------------------------
|
---|
15904 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
---|
15905 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
---|
15906 | # script with STATUS, using 1 if that was 0.
|
---|
15907 | as_fn_error ()
|
---|
15908 | {
|
---|
15909 | as_status=$1; test $as_status -eq 0 && as_status=1
|
---|
15910 | if test "$4"; then
|
---|
15911 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
---|
15912 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
---|
15913 | fi
|
---|
15914 | printf "%s\n" "$as_me: error: $2" >&2
|
---|
15915 | as_fn_exit $as_status
|
---|
15916 | } # as_fn_error
|
---|
15917 |
|
---|
15918 |
|
---|
15919 | # as_fn_set_status STATUS
|
---|
15920 | # -----------------------
|
---|
15921 | # Set $? to STATUS, without forking.
|
---|
15922 | as_fn_set_status ()
|
---|
15923 | {
|
---|
15924 | return $1
|
---|
15925 | } # as_fn_set_status
|
---|
15926 |
|
---|
15927 | # as_fn_exit STATUS
|
---|
15928 | # -----------------
|
---|
15929 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
---|
15930 | as_fn_exit ()
|
---|
15931 | {
|
---|
15932 | set +e
|
---|
15933 | as_fn_set_status $1
|
---|
15934 | exit $1
|
---|
15935 | } # as_fn_exit
|
---|
15936 |
|
---|
15937 | # as_fn_unset VAR
|
---|
15938 | # ---------------
|
---|
15939 | # Portably unset VAR.
|
---|
15940 | as_fn_unset ()
|
---|
15941 | {
|
---|
15942 | { eval $1=; unset $1;}
|
---|
15943 | }
|
---|
15944 | as_unset=as_fn_unset
|
---|
15945 |
|
---|
15946 | # as_fn_append VAR VALUE
|
---|
15947 | # ----------------------
|
---|
15948 | # Append the text in VALUE to the end of the definition contained in VAR. Take
|
---|
15949 | # advantage of any shell optimizations that allow amortized linear growth over
|
---|
15950 | # repeated appends, instead of the typical quadratic growth present in naive
|
---|
15951 | # implementations.
|
---|
15952 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
|
---|
15953 | then :
|
---|
15954 | eval 'as_fn_append ()
|
---|
15955 | {
|
---|
15956 | eval $1+=\$2
|
---|
15957 | }'
|
---|
15958 | else case e in #(
|
---|
15959 | e) as_fn_append ()
|
---|
15960 | {
|
---|
15961 | eval $1=\$$1\$2
|
---|
15962 | } ;;
|
---|
15963 | esac
|
---|
15964 | fi # as_fn_append
|
---|
15965 |
|
---|
15966 | # as_fn_arith ARG...
|
---|
15967 | # ------------------
|
---|
15968 | # Perform arithmetic evaluation on the ARGs, and store the result in the
|
---|
15969 | # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
---|
15970 | # must be portable across $(()) and expr.
|
---|
15971 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
|
---|
15972 | then :
|
---|
15973 | eval 'as_fn_arith ()
|
---|
15974 | {
|
---|
15975 | as_val=$(( $* ))
|
---|
15976 | }'
|
---|
15977 | else case e in #(
|
---|
15978 | e) as_fn_arith ()
|
---|
15979 | {
|
---|
15980 | as_val=`expr "$@" || test $? -eq 1`
|
---|
15981 | } ;;
|
---|
15982 | esac
|
---|
15983 | fi # as_fn_arith
|
---|
15984 |
|
---|
15985 |
|
---|
15986 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
15987 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
15988 | as_expr=expr
|
---|
15989 | else
|
---|
15990 | as_expr=false
|
---|
15991 | fi
|
---|
15992 |
|
---|
15993 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
15994 | as_basename=basename
|
---|
15995 | else
|
---|
15996 | as_basename=false
|
---|
15997 | fi
|
---|
15998 |
|
---|
15999 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
16000 | as_dirname=dirname
|
---|
16001 | else
|
---|
16002 | as_dirname=false
|
---|
16003 | fi
|
---|
16004 |
|
---|
16005 | as_me=`$as_basename -- "$0" ||
|
---|
16006 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
16007 | X"$0" : 'X\(//\)$' \| \
|
---|
16008 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
16009 | printf "%s\n" X/"$0" |
|
---|
16010 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
16011 | s//\1/
|
---|
16012 | q
|
---|
16013 | }
|
---|
16014 | /^X\/\(\/\/\)$/{
|
---|
16015 | s//\1/
|
---|
16016 | q
|
---|
16017 | }
|
---|
16018 | /^X\/\(\/\).*/{
|
---|
16019 | s//\1/
|
---|
16020 | q
|
---|
16021 | }
|
---|
16022 | s/.*/./; q'`
|
---|
16023 |
|
---|
16024 | # Avoid depending upon Character Ranges.
|
---|
16025 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
16026 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
16027 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
16028 | as_cr_digits='0123456789'
|
---|
16029 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
16030 |
|
---|
16031 |
|
---|
16032 | # Determine whether it's possible to make 'echo' print without a newline.
|
---|
16033 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
|
---|
16034 | # for compatibility with existing Makefiles.
|
---|
16035 | ECHO_C= ECHO_N= ECHO_T=
|
---|
16036 | case `echo -n x` in #(((((
|
---|
16037 | -n*)
|
---|
16038 | case `echo 'xy\c'` in
|
---|
16039 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
16040 | xy) ECHO_C='\c';;
|
---|
16041 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
---|
16042 | ECHO_T=' ';;
|
---|
16043 | esac;;
|
---|
16044 | *)
|
---|
16045 | ECHO_N='-n';;
|
---|
16046 | esac
|
---|
16047 |
|
---|
16048 | # For backward compatibility with old third-party macros, we provide
|
---|
16049 | # the shell variables $as_echo and $as_echo_n. New code should use
|
---|
16050 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
|
---|
16051 | as_echo='printf %s\n'
|
---|
16052 | as_echo_n='printf %s'
|
---|
16053 |
|
---|
16054 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
16055 | if test -d conf$$.dir; then
|
---|
16056 | rm -f conf$$.dir/conf$$.file
|
---|
16057 | else
|
---|
16058 | rm -f conf$$.dir
|
---|
16059 | mkdir conf$$.dir 2>/dev/null
|
---|
16060 | fi
|
---|
16061 | if (echo >conf$$.file) 2>/dev/null; then
|
---|
16062 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
16063 | as_ln_s='ln -s'
|
---|
16064 | # ... but there are two gotchas:
|
---|
16065 | # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
|
---|
16066 | # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
|
---|
16067 | # In both cases, we have to default to 'cp -pR'.
|
---|
16068 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
16069 | as_ln_s='cp -pR'
|
---|
16070 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
16071 | as_ln_s=ln
|
---|
16072 | else
|
---|
16073 | as_ln_s='cp -pR'
|
---|
16074 | fi
|
---|
16075 | else
|
---|
16076 | as_ln_s='cp -pR'
|
---|
16077 | fi
|
---|
16078 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
16079 | rmdir conf$$.dir 2>/dev/null
|
---|
16080 |
|
---|
16081 |
|
---|
16082 | # as_fn_mkdir_p
|
---|
16083 | # -------------
|
---|
16084 | # Create "$as_dir" as a directory, including parents if necessary.
|
---|
16085 | as_fn_mkdir_p ()
|
---|
16086 | {
|
---|
16087 |
|
---|
16088 | case $as_dir in #(
|
---|
16089 | -*) as_dir=./$as_dir;;
|
---|
16090 | esac
|
---|
16091 | test -d "$as_dir" || eval $as_mkdir_p || {
|
---|
16092 | as_dirs=
|
---|
16093 | while :; do
|
---|
16094 | case $as_dir in #(
|
---|
16095 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
---|
16096 | *) as_qdir=$as_dir;;
|
---|
16097 | esac
|
---|
16098 | as_dirs="'$as_qdir' $as_dirs"
|
---|
16099 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
16100 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
16101 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
16102 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
16103 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
16104 | printf "%s\n" X"$as_dir" |
|
---|
16105 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
16106 | s//\1/
|
---|
16107 | q
|
---|
16108 | }
|
---|
16109 | /^X\(\/\/\)[^/].*/{
|
---|
16110 | s//\1/
|
---|
16111 | q
|
---|
16112 | }
|
---|
16113 | /^X\(\/\/\)$/{
|
---|
16114 | s//\1/
|
---|
16115 | q
|
---|
16116 | }
|
---|
16117 | /^X\(\/\).*/{
|
---|
16118 | s//\1/
|
---|
16119 | q
|
---|
16120 | }
|
---|
16121 | s/.*/./; q'`
|
---|
16122 | test -d "$as_dir" && break
|
---|
16123 | done
|
---|
16124 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
16125 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
---|
16126 |
|
---|
16127 |
|
---|
16128 | } # as_fn_mkdir_p
|
---|
16129 | if mkdir -p . 2>/dev/null; then
|
---|
16130 | as_mkdir_p='mkdir -p "$as_dir"'
|
---|
16131 | else
|
---|
16132 | test -d ./-p && rmdir ./-p
|
---|
16133 | as_mkdir_p=false
|
---|
16134 | fi
|
---|
16135 |
|
---|
16136 |
|
---|
16137 | # as_fn_executable_p FILE
|
---|
16138 | # -----------------------
|
---|
16139 | # Test if FILE is an executable regular file.
|
---|
16140 | as_fn_executable_p ()
|
---|
16141 | {
|
---|
16142 | test -f "$1" && test -x "$1"
|
---|
16143 | } # as_fn_executable_p
|
---|
16144 | as_test_x='test -x'
|
---|
16145 | as_executable_p=as_fn_executable_p
|
---|
16146 |
|
---|
16147 | # Sed expression to map a string onto a valid CPP name.
|
---|
16148 | as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
|
---|
16149 | as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
|
---|
16150 |
|
---|
16151 | # Sed expression to map a string onto a valid variable name.
|
---|
16152 | as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
|
---|
16153 | as_tr_sh="eval sed '$as_sed_sh'" # deprecated
|
---|
16154 |
|
---|
16155 |
|
---|
16156 | exec 6>&1
|
---|
16157 | ## ----------------------------------- ##
|
---|
16158 | ## Main body of $CONFIG_STATUS script. ##
|
---|
16159 | ## ----------------------------------- ##
|
---|
16160 | _ASEOF
|
---|
16161 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
|
---|
16162 |
|
---|
16163 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
16164 | # Save the log message, to keep $0 and so on meaningful, and to
|
---|
16165 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
16166 | # values after options handling.
|
---|
16167 | ac_log="
|
---|
16168 | This file was extended by libpng $as_me 1.6.45, which was
|
---|
16169 | generated by GNU Autoconf 2.72. Invocation command line was
|
---|
16170 |
|
---|
16171 | CONFIG_FILES = $CONFIG_FILES
|
---|
16172 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
16173 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
16174 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
16175 | $ $0 $@
|
---|
16176 |
|
---|
16177 | on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
16178 | "
|
---|
16179 |
|
---|
16180 | _ACEOF
|
---|
16181 |
|
---|
16182 | case $ac_config_files in *"
|
---|
16183 | "*) set x $ac_config_files; shift; ac_config_files=$*;;
|
---|
16184 | esac
|
---|
16185 |
|
---|
16186 | case $ac_config_headers in *"
|
---|
16187 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
|
---|
16188 | esac
|
---|
16189 |
|
---|
16190 |
|
---|
16191 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
16192 | # Files that config.status was made for.
|
---|
16193 | config_files="$ac_config_files"
|
---|
16194 | config_headers="$ac_config_headers"
|
---|
16195 | config_commands="$ac_config_commands"
|
---|
16196 |
|
---|
16197 | _ACEOF
|
---|
16198 |
|
---|
16199 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
16200 | ac_cs_usage="\
|
---|
16201 | '$as_me' instantiates files and other configuration actions
|
---|
16202 | from templates according to the current configuration. Unless the files
|
---|
16203 | and actions are specified as TAGs, all are instantiated by default.
|
---|
16204 |
|
---|
16205 | Usage: $0 [OPTION]... [TAG]...
|
---|
16206 |
|
---|
16207 | -h, --help print this help, then exit
|
---|
16208 | -V, --version print version number and configuration settings, then exit
|
---|
16209 | --config print configuration, then exit
|
---|
16210 | -q, --quiet, --silent
|
---|
16211 | do not print progress messages
|
---|
16212 | -d, --debug don't remove temporary files
|
---|
16213 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
16214 | --file=FILE[:TEMPLATE]
|
---|
16215 | instantiate the configuration file FILE
|
---|
16216 | --header=FILE[:TEMPLATE]
|
---|
16217 | instantiate the configuration header FILE
|
---|
16218 |
|
---|
16219 | Configuration files:
|
---|
16220 | $config_files
|
---|
16221 |
|
---|
16222 | Configuration headers:
|
---|
16223 | $config_headers
|
---|
16224 |
|
---|
16225 | Configuration commands:
|
---|
16226 | $config_commands
|
---|
16227 |
|
---|
16228 | Report bugs to <[email protected]>."
|
---|
16229 |
|
---|
16230 | _ACEOF
|
---|
16231 | ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
|
---|
16232 | ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
|
---|
16233 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
16234 | ac_cs_config='$ac_cs_config_escaped'
|
---|
16235 | ac_cs_version="\\
|
---|
16236 | libpng config.status 1.6.45
|
---|
16237 | configured by $0, generated by GNU Autoconf 2.72,
|
---|
16238 | with options \\"\$ac_cs_config\\"
|
---|
16239 |
|
---|
16240 | Copyright (C) 2023 Free Software Foundation, Inc.
|
---|
16241 | This config.status script is free software; the Free Software Foundation
|
---|
16242 | gives unlimited permission to copy, distribute and modify it."
|
---|
16243 |
|
---|
16244 | ac_pwd='$ac_pwd'
|
---|
16245 | srcdir='$srcdir'
|
---|
16246 | INSTALL='$INSTALL'
|
---|
16247 | MKDIR_P='$MKDIR_P'
|
---|
16248 | AWK='$AWK'
|
---|
16249 | test -n "\$AWK" || AWK=awk
|
---|
16250 | _ACEOF
|
---|
16251 |
|
---|
16252 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
16253 | # The default lists apply if the user does not specify any file.
|
---|
16254 | ac_need_defaults=:
|
---|
16255 | while test $# != 0
|
---|
16256 | do
|
---|
16257 | case $1 in
|
---|
16258 | --*=?*)
|
---|
16259 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
16260 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
---|
16261 | ac_shift=:
|
---|
16262 | ;;
|
---|
16263 | --*=)
|
---|
16264 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
16265 | ac_optarg=
|
---|
16266 | ac_shift=:
|
---|
16267 | ;;
|
---|
16268 | *)
|
---|
16269 | ac_option=$1
|
---|
16270 | ac_optarg=$2
|
---|
16271 | ac_shift=shift
|
---|
16272 | ;;
|
---|
16273 | esac
|
---|
16274 |
|
---|
16275 | case $ac_option in
|
---|
16276 | # Handling of the options.
|
---|
16277 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
16278 | ac_cs_recheck=: ;;
|
---|
16279 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
---|
16280 | printf "%s\n" "$ac_cs_version"; exit ;;
|
---|
16281 | --config | --confi | --conf | --con | --co | --c )
|
---|
16282 | printf "%s\n" "$ac_cs_config"; exit ;;
|
---|
16283 | --debug | --debu | --deb | --de | --d | -d )
|
---|
16284 | debug=: ;;
|
---|
16285 | --file | --fil | --fi | --f )
|
---|
16286 | $ac_shift
|
---|
16287 | case $ac_optarg in
|
---|
16288 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
16289 | '') as_fn_error $? "missing file argument" ;;
|
---|
16290 | esac
|
---|
16291 | as_fn_append CONFIG_FILES " '$ac_optarg'"
|
---|
16292 | ac_need_defaults=false;;
|
---|
16293 | --header | --heade | --head | --hea )
|
---|
16294 | $ac_shift
|
---|
16295 | case $ac_optarg in
|
---|
16296 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
16297 | esac
|
---|
16298 | as_fn_append CONFIG_HEADERS " '$ac_optarg'"
|
---|
16299 | ac_need_defaults=false;;
|
---|
16300 | --he | --h)
|
---|
16301 | # Conflict between --help and --header
|
---|
16302 | as_fn_error $? "ambiguous option: '$1'
|
---|
16303 | Try '$0 --help' for more information.";;
|
---|
16304 | --help | --hel | -h )
|
---|
16305 | printf "%s\n" "$ac_cs_usage"; exit ;;
|
---|
16306 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
16307 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
16308 | ac_cs_silent=: ;;
|
---|
16309 |
|
---|
16310 | # This is an error.
|
---|
16311 | -*) as_fn_error $? "unrecognized option: '$1'
|
---|
16312 | Try '$0 --help' for more information." ;;
|
---|
16313 |
|
---|
16314 | *) as_fn_append ac_config_targets " $1"
|
---|
16315 | ac_need_defaults=false ;;
|
---|
16316 |
|
---|
16317 | esac
|
---|
16318 | shift
|
---|
16319 | done
|
---|
16320 |
|
---|
16321 | ac_configure_extra_args=
|
---|
16322 |
|
---|
16323 | if $ac_cs_silent; then
|
---|
16324 | exec 6>/dev/null
|
---|
16325 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
16326 | fi
|
---|
16327 |
|
---|
16328 | _ACEOF
|
---|
16329 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
16330 | if \$ac_cs_recheck; then
|
---|
16331 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
16332 | shift
|
---|
16333 | \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
|
---|
16334 | CONFIG_SHELL='$SHELL'
|
---|
16335 | export CONFIG_SHELL
|
---|
16336 | exec "\$@"
|
---|
16337 | fi
|
---|
16338 |
|
---|
16339 | _ACEOF
|
---|
16340 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
16341 | exec 5>>config.log
|
---|
16342 | {
|
---|
16343 | echo
|
---|
16344 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
16345 | ## Running $as_me. ##
|
---|
16346 | _ASBOX
|
---|
16347 | printf "%s\n" "$ac_log"
|
---|
16348 | } >&5
|
---|
16349 |
|
---|
16350 | _ACEOF
|
---|
16351 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
16352 | #
|
---|
16353 | # INIT-COMMANDS
|
---|
16354 | #
|
---|
16355 | AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
|
---|
16356 |
|
---|
16357 |
|
---|
16358 | # The HP-UX ksh and POSIX shell print the target directory to stdout
|
---|
16359 | # if CDPATH is set.
|
---|
16360 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
---|
16361 |
|
---|
16362 | sed_quote_subst='$sed_quote_subst'
|
---|
16363 | double_quote_subst='$double_quote_subst'
|
---|
16364 | delay_variable_subst='$delay_variable_subst'
|
---|
16365 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
|
---|
16366 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
|
---|
16367 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
|
---|
16368 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
|
---|
16369 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
|
---|
16370 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
|
---|
16371 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
|
---|
16372 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
|
---|
16373 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
|
---|
16374 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
|
---|
16375 | AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
|
---|
16376 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
|
---|
16377 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
|
---|
16378 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
|
---|
16379 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
|
---|
16380 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
|
---|
16381 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
|
---|
16382 | shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
|
---|
16383 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
|
---|
16384 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
|
---|
16385 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
|
---|
16386 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
|
---|
16387 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
|
---|
16388 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
|
---|
16389 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
|
---|
16390 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
|
---|
16391 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
|
---|
16392 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
|
---|
16393 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
|
---|
16394 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
|
---|
16395 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
|
---|
16396 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
|
---|
16397 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
|
---|
16398 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
|
---|
16399 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
|
---|
16400 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
|
---|
16401 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
16402 | FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
|
---|
16403 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
|
---|
16404 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
|
---|
16405 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
|
---|
16406 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
|
---|
16407 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
|
---|
16408 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
|
---|
16409 | lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
|
---|
16410 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
|
---|
16411 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
|
---|
16412 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
|
---|
16413 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
|
---|
16414 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
16415 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
16416 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
16417 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
|
---|
16418 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
|
---|
16419 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
|
---|
16420 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
|
---|
16421 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
|
---|
16422 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
|
---|
16423 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
|
---|
16424 | lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
|
---|
16425 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
|
---|
16426 | 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"`'
|
---|
16427 | lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
|
---|
16428 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
|
---|
16429 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
|
---|
16430 | lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
|
---|
16431 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
|
---|
16432 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
|
---|
16433 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
|
---|
16434 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
|
---|
16435 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
|
---|
16436 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
|
---|
16437 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
|
---|
16438 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
|
---|
16439 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
|
---|
16440 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
|
---|
16441 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
|
---|
16442 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
|
---|
16443 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
|
---|
16444 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
|
---|
16445 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
|
---|
16446 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
16447 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
16448 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
|
---|
16449 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
|
---|
16450 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
|
---|
16451 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
|
---|
16452 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
|
---|
16453 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
16454 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
16455 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
16456 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
16457 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
16458 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
16459 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
|
---|
16460 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
|
---|
16461 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
|
---|
16462 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
|
---|
16463 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
|
---|
16464 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
|
---|
16465 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
|
---|
16466 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
|
---|
16467 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
|
---|
16468 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
|
---|
16469 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
|
---|
16470 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
|
---|
16471 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
|
---|
16472 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
16473 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
|
---|
16474 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
|
---|
16475 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
16476 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
16477 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
|
---|
16478 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
|
---|
16479 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
|
---|
16480 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
|
---|
16481 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
|
---|
16482 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
|
---|
16483 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
|
---|
16484 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
|
---|
16485 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
|
---|
16486 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
|
---|
16487 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
|
---|
16488 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
|
---|
16489 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
16490 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
16491 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
|
---|
16492 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
|
---|
16493 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
|
---|
16494 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
|
---|
16495 | configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
|
---|
16496 | configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
|
---|
16497 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
|
---|
16498 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
|
---|
16499 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
|
---|
16500 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
|
---|
16501 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
|
---|
16502 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
|
---|
16503 |
|
---|
16504 | LTCC='$LTCC'
|
---|
16505 | LTCFLAGS='$LTCFLAGS'
|
---|
16506 | compiler='$compiler_DEFAULT'
|
---|
16507 |
|
---|
16508 | # A function that is used when there is no print builtin or printf.
|
---|
16509 | func_fallback_echo ()
|
---|
16510 | {
|
---|
16511 | eval 'cat <<_LTECHO_EOF
|
---|
16512 | \$1
|
---|
16513 | _LTECHO_EOF'
|
---|
16514 | }
|
---|
16515 |
|
---|
16516 | # Quote evaled strings.
|
---|
16517 | for var in SED \
|
---|
16518 | GREP \
|
---|
16519 | EGREP \
|
---|
16520 | FGREP \
|
---|
16521 | SHELL \
|
---|
16522 | ECHO \
|
---|
16523 | LD \
|
---|
16524 | AS \
|
---|
16525 | DLLTOOL \
|
---|
16526 | OBJDUMP \
|
---|
16527 | PATH_SEPARATOR \
|
---|
16528 | NM \
|
---|
16529 | LN_S \
|
---|
16530 | lt_SP2NL \
|
---|
16531 | lt_NL2SP \
|
---|
16532 | reload_flag \
|
---|
16533 | FILECMD \
|
---|
16534 | deplibs_check_method \
|
---|
16535 | file_magic_cmd \
|
---|
16536 | file_magic_glob \
|
---|
16537 | want_nocaseglob \
|
---|
16538 | sharedlib_from_linklib_cmd \
|
---|
16539 | AR \
|
---|
16540 | archiver_list_spec \
|
---|
16541 | STRIP \
|
---|
16542 | RANLIB \
|
---|
16543 | CC \
|
---|
16544 | CFLAGS \
|
---|
16545 | compiler \
|
---|
16546 | lt_cv_sys_global_symbol_pipe \
|
---|
16547 | lt_cv_sys_global_symbol_to_cdecl \
|
---|
16548 | lt_cv_sys_global_symbol_to_import \
|
---|
16549 | lt_cv_sys_global_symbol_to_c_name_address \
|
---|
16550 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
|
---|
16551 | lt_cv_nm_interface \
|
---|
16552 | nm_file_list_spec \
|
---|
16553 | lt_cv_truncate_bin \
|
---|
16554 | lt_prog_compiler_no_builtin_flag \
|
---|
16555 | lt_prog_compiler_pic \
|
---|
16556 | lt_prog_compiler_wl \
|
---|
16557 | lt_prog_compiler_static \
|
---|
16558 | lt_cv_prog_compiler_c_o \
|
---|
16559 | need_locks \
|
---|
16560 | MANIFEST_TOOL \
|
---|
16561 | DSYMUTIL \
|
---|
16562 | NMEDIT \
|
---|
16563 | LIPO \
|
---|
16564 | OTOOL \
|
---|
16565 | OTOOL64 \
|
---|
16566 | shrext_cmds \
|
---|
16567 | export_dynamic_flag_spec \
|
---|
16568 | whole_archive_flag_spec \
|
---|
16569 | compiler_needs_object \
|
---|
16570 | with_gnu_ld \
|
---|
16571 | allow_undefined_flag \
|
---|
16572 | no_undefined_flag \
|
---|
16573 | hardcode_libdir_flag_spec \
|
---|
16574 | hardcode_libdir_separator \
|
---|
16575 | exclude_expsyms \
|
---|
16576 | include_expsyms \
|
---|
16577 | file_list_spec \
|
---|
16578 | variables_saved_for_relink \
|
---|
16579 | libname_spec \
|
---|
16580 | library_names_spec \
|
---|
16581 | soname_spec \
|
---|
16582 | install_override_mode \
|
---|
16583 | finish_eval \
|
---|
16584 | old_striplib \
|
---|
16585 | striplib; do
|
---|
16586 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
|
---|
16587 | *[\\\\\\\`\\"\\\$]*)
|
---|
16588 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
|
---|
16589 | ;;
|
---|
16590 | *)
|
---|
16591 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
|
---|
16592 | ;;
|
---|
16593 | esac
|
---|
16594 | done
|
---|
16595 |
|
---|
16596 | # Double-quote double-evaled strings.
|
---|
16597 | for var in reload_cmds \
|
---|
16598 | old_postinstall_cmds \
|
---|
16599 | old_postuninstall_cmds \
|
---|
16600 | old_archive_cmds \
|
---|
16601 | extract_expsyms_cmds \
|
---|
16602 | old_archive_from_new_cmds \
|
---|
16603 | old_archive_from_expsyms_cmds \
|
---|
16604 | archive_cmds \
|
---|
16605 | archive_expsym_cmds \
|
---|
16606 | module_cmds \
|
---|
16607 | module_expsym_cmds \
|
---|
16608 | export_symbols_cmds \
|
---|
16609 | prelink_cmds \
|
---|
16610 | postlink_cmds \
|
---|
16611 | postinstall_cmds \
|
---|
16612 | postuninstall_cmds \
|
---|
16613 | finish_cmds \
|
---|
16614 | sys_lib_search_path_spec \
|
---|
16615 | configure_time_dlsearch_path \
|
---|
16616 | configure_time_lt_sys_library_path; do
|
---|
16617 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
|
---|
16618 | *[\\\\\\\`\\"\\\$]*)
|
---|
16619 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
|
---|
16620 | ;;
|
---|
16621 | *)
|
---|
16622 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
|
---|
16623 | ;;
|
---|
16624 | esac
|
---|
16625 | done
|
---|
16626 |
|
---|
16627 | ac_aux_dir='$ac_aux_dir'
|
---|
16628 |
|
---|
16629 | # See if we are running on zsh, and set the options that allow our
|
---|
16630 | # commands through without removal of \ escapes INIT.
|
---|
16631 | if test -n "\${ZSH_VERSION+set}"; then
|
---|
16632 | setopt NO_GLOB_SUBST
|
---|
16633 | fi
|
---|
16634 |
|
---|
16635 |
|
---|
16636 | PACKAGE='$PACKAGE'
|
---|
16637 | VERSION='$VERSION'
|
---|
16638 | RM='$RM'
|
---|
16639 | ofile='$ofile'
|
---|
16640 |
|
---|
16641 |
|
---|
16642 |
|
---|
16643 |
|
---|
16644 | _ACEOF
|
---|
16645 |
|
---|
16646 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
16647 |
|
---|
16648 | # Handling of arguments.
|
---|
16649 | for ac_config_target in $ac_config_targets
|
---|
16650 | do
|
---|
16651 | case $ac_config_target in
|
---|
16652 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
16653 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
|
---|
16654 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
|
---|
16655 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
16656 | "libpng.pc") CONFIG_FILES="$CONFIG_FILES libpng.pc:libpng.pc.in" ;;
|
---|
16657 | "libpng-config") CONFIG_FILES="$CONFIG_FILES libpng-config:libpng-config.in" ;;
|
---|
16658 |
|
---|
16659 | *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
|
---|
16660 | esac
|
---|
16661 | done
|
---|
16662 |
|
---|
16663 |
|
---|
16664 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
16665 | # then the envvar interface is used. Set only those that are not.
|
---|
16666 | # We use the long form for the default assignment because of an extremely
|
---|
16667 | # bizarre bug on SunOS 4.1.3.
|
---|
16668 | if $ac_need_defaults; then
|
---|
16669 | test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
|
---|
16670 | test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
|
---|
16671 | test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
|
---|
16672 | fi
|
---|
16673 |
|
---|
16674 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
16675 | # simply because there is no reason against having it here, and in addition,
|
---|
16676 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
16677 | # Hook for its removal unless debugging.
|
---|
16678 | # Note that there is a small window in which the directory will not be cleaned:
|
---|
16679 | # after its creation but before its name has been assigned to '$tmp'.
|
---|
16680 | $debug ||
|
---|
16681 | {
|
---|
16682 | tmp= ac_tmp=
|
---|
16683 | trap 'exit_status=$?
|
---|
16684 | : "${ac_tmp:=$tmp}"
|
---|
16685 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
|
---|
16686 | ' 0
|
---|
16687 | trap 'as_fn_exit 1' 1 2 13 15
|
---|
16688 | }
|
---|
16689 | # Create a (secure) tmp directory for tmp files.
|
---|
16690 |
|
---|
16691 | {
|
---|
16692 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
---|
16693 | test -d "$tmp"
|
---|
16694 | } ||
|
---|
16695 | {
|
---|
16696 | tmp=./conf$$-$RANDOM
|
---|
16697 | (umask 077 && mkdir "$tmp")
|
---|
16698 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
|
---|
16699 | ac_tmp=$tmp
|
---|
16700 |
|
---|
16701 | # Set up the scripts for CONFIG_FILES section.
|
---|
16702 | # No need to generate them if there are no CONFIG_FILES.
|
---|
16703 | # This happens for instance with './config.status config.h'.
|
---|
16704 | if test -n "$CONFIG_FILES"; then
|
---|
16705 |
|
---|
16706 |
|
---|
16707 | ac_cr=`echo X | tr X '\015'`
|
---|
16708 | # On cygwin, bash can eat \r inside `` if the user requested igncr.
|
---|
16709 | # But we know of no other shell where ac_cr would be empty at this
|
---|
16710 | # point, so we can use a bashism as a fallback.
|
---|
16711 | if test "x$ac_cr" = x; then
|
---|
16712 | eval ac_cr=\$\'\\r\'
|
---|
16713 | fi
|
---|
16714 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
|
---|
16715 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
|
---|
16716 | ac_cs_awk_cr='\\r'
|
---|
16717 | else
|
---|
16718 | ac_cs_awk_cr=$ac_cr
|
---|
16719 | fi
|
---|
16720 |
|
---|
16721 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
|
---|
16722 | _ACEOF
|
---|
16723 |
|
---|
16724 |
|
---|
16725 | {
|
---|
16726 | echo "cat >conf$$subs.awk <<_ACEOF" &&
|
---|
16727 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
|
---|
16728 | echo "_ACEOF"
|
---|
16729 | } >conf$$subs.sh ||
|
---|
16730 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
16731 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
|
---|
16732 | ac_delim='%!_!# '
|
---|
16733 | for ac_last_try in false false false false false :; do
|
---|
16734 | . ./conf$$subs.sh ||
|
---|
16735 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
16736 |
|
---|
16737 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
|
---|
16738 | if test $ac_delim_n = $ac_delim_num; then
|
---|
16739 | break
|
---|
16740 | elif $ac_last_try; then
|
---|
16741 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
---|
16742 | else
|
---|
16743 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
16744 | fi
|
---|
16745 | done
|
---|
16746 | rm -f conf$$subs.sh
|
---|
16747 |
|
---|
16748 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
16749 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
|
---|
16750 | _ACEOF
|
---|
16751 | sed -n '
|
---|
16752 | h
|
---|
16753 | s/^/S["/; s/!.*/"]=/
|
---|
16754 | p
|
---|
16755 | g
|
---|
16756 | s/^[^!]*!//
|
---|
16757 | :repl
|
---|
16758 | t repl
|
---|
16759 | s/'"$ac_delim"'$//
|
---|
16760 | t delim
|
---|
16761 | :nl
|
---|
16762 | h
|
---|
16763 | s/\(.\{148\}\)..*/\1/
|
---|
16764 | t more1
|
---|
16765 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
|
---|
16766 | p
|
---|
16767 | n
|
---|
16768 | b repl
|
---|
16769 | :more1
|
---|
16770 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
16771 | p
|
---|
16772 | g
|
---|
16773 | s/.\{148\}//
|
---|
16774 | t nl
|
---|
16775 | :delim
|
---|
16776 | h
|
---|
16777 | s/\(.\{148\}\)..*/\1/
|
---|
16778 | t more2
|
---|
16779 | s/["\\]/\\&/g; s/^/"/; s/$/"/
|
---|
16780 | p
|
---|
16781 | b
|
---|
16782 | :more2
|
---|
16783 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
---|
16784 | p
|
---|
16785 | g
|
---|
16786 | s/.\{148\}//
|
---|
16787 | t delim
|
---|
16788 | ' <conf$$subs.awk | sed '
|
---|
16789 | /^[^""]/{
|
---|
16790 | N
|
---|
16791 | s/\n//
|
---|
16792 | }
|
---|
16793 | ' >>$CONFIG_STATUS || ac_write_fail=1
|
---|
16794 | rm -f conf$$subs.awk
|
---|
16795 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
16796 | _ACAWK
|
---|
16797 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
|
---|
16798 | for (key in S) S_is_set[key] = 1
|
---|
16799 | FS = ""
|
---|
16800 |
|
---|
16801 | }
|
---|
16802 | {
|
---|
16803 | line = $ 0
|
---|
16804 | nfields = split(line, field, "@")
|
---|
16805 | substed = 0
|
---|
16806 | len = length(field[1])
|
---|
16807 | for (i = 2; i < nfields; i++) {
|
---|
16808 | key = field[i]
|
---|
16809 | keylen = length(key)
|
---|
16810 | if (S_is_set[key]) {
|
---|
16811 | value = S[key]
|
---|
16812 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
|
---|
16813 | len += length(value) + length(field[++i])
|
---|
16814 | substed = 1
|
---|
16815 | } else
|
---|
16816 | len += 1 + keylen
|
---|
16817 | }
|
---|
16818 |
|
---|
16819 | print line
|
---|
16820 | }
|
---|
16821 |
|
---|
16822 | _ACAWK
|
---|
16823 | _ACEOF
|
---|
16824 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
16825 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
|
---|
16826 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
|
---|
16827 | else
|
---|
16828 | cat
|
---|
16829 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
|
---|
16830 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
|
---|
16831 | _ACEOF
|
---|
16832 |
|
---|
16833 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
|
---|
16834 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
|
---|
16835 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
16836 | # (actually we leave an empty line to preserve line numbers).
|
---|
16837 | if test "x$srcdir" = x.; then
|
---|
16838 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
|
---|
16839 | h
|
---|
16840 | s///
|
---|
16841 | s/^/:/
|
---|
16842 | s/[ ]*$/:/
|
---|
16843 | s/:\$(srcdir):/:/g
|
---|
16844 | s/:\${srcdir}:/:/g
|
---|
16845 | s/:@srcdir@:/:/g
|
---|
16846 | s/^:*//
|
---|
16847 | s/:*$//
|
---|
16848 | x
|
---|
16849 | s/\(=[ ]*\).*/\1/
|
---|
16850 | G
|
---|
16851 | s/\n//
|
---|
16852 | s/^[^=]*=[ ]*$//
|
---|
16853 | }'
|
---|
16854 | fi
|
---|
16855 |
|
---|
16856 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
16857 | fi # test -n "$CONFIG_FILES"
|
---|
16858 |
|
---|
16859 | # Set up the scripts for CONFIG_HEADERS section.
|
---|
16860 | # No need to generate them if there are no CONFIG_HEADERS.
|
---|
16861 | # This happens for instance with './config.status Makefile'.
|
---|
16862 | if test -n "$CONFIG_HEADERS"; then
|
---|
16863 | cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
|
---|
16864 | BEGIN {
|
---|
16865 | _ACEOF
|
---|
16866 |
|
---|
16867 | # Transform confdefs.h into an awk script 'defines.awk', embedded as
|
---|
16868 | # here-document in config.status, that substitutes the proper values into
|
---|
16869 | # config.h.in to produce config.h.
|
---|
16870 |
|
---|
16871 | # Create a delimiter string that does not exist in confdefs.h, to ease
|
---|
16872 | # handling of long lines.
|
---|
16873 | ac_delim='%!_!# '
|
---|
16874 | for ac_last_try in false false :; do
|
---|
16875 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
|
---|
16876 | if test -z "$ac_tt"; then
|
---|
16877 | break
|
---|
16878 | elif $ac_last_try; then
|
---|
16879 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
|
---|
16880 | else
|
---|
16881 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
16882 | fi
|
---|
16883 | done
|
---|
16884 |
|
---|
16885 | # For the awk script, D is an array of macro values keyed by name,
|
---|
16886 | # likewise P contains macro parameters if any. Preserve backslash
|
---|
16887 | # newline sequences.
|
---|
16888 |
|
---|
16889 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
|
---|
16890 | sed -n '
|
---|
16891 | s/.\{148\}/&'"$ac_delim"'/g
|
---|
16892 | t rset
|
---|
16893 | :rset
|
---|
16894 | s/^[ ]*#[ ]*define[ ][ ]*/ /
|
---|
16895 | t def
|
---|
16896 | d
|
---|
16897 | :def
|
---|
16898 | s/\\$//
|
---|
16899 | t bsnl
|
---|
16900 | s/["\\]/\\&/g
|
---|
16901 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
---|
16902 | D["\1"]=" \3"/p
|
---|
16903 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
|
---|
16904 | d
|
---|
16905 | :bsnl
|
---|
16906 | s/["\\]/\\&/g
|
---|
16907 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
---|
16908 | D["\1"]=" \3\\\\\\n"\\/p
|
---|
16909 | t cont
|
---|
16910 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
|
---|
16911 | t cont
|
---|
16912 | d
|
---|
16913 | :cont
|
---|
16914 | n
|
---|
16915 | s/.\{148\}/&'"$ac_delim"'/g
|
---|
16916 | t clear
|
---|
16917 | :clear
|
---|
16918 | s/\\$//
|
---|
16919 | t bsnlc
|
---|
16920 | s/["\\]/\\&/g; s/^/"/; s/$/"/p
|
---|
16921 | d
|
---|
16922 | :bsnlc
|
---|
16923 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
|
---|
16924 | b cont
|
---|
16925 | ' <confdefs.h | sed '
|
---|
16926 | s/'"$ac_delim"'/"\\\
|
---|
16927 | "/g' >>$CONFIG_STATUS || ac_write_fail=1
|
---|
16928 |
|
---|
16929 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
16930 | for (key in D) D_is_set[key] = 1
|
---|
16931 | FS = ""
|
---|
16932 | }
|
---|
16933 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
|
---|
16934 | line = \$ 0
|
---|
16935 | split(line, arg, " ")
|
---|
16936 | if (arg[1] == "#") {
|
---|
16937 | defundef = arg[2]
|
---|
16938 | mac1 = arg[3]
|
---|
16939 | } else {
|
---|
16940 | defundef = substr(arg[1], 2)
|
---|
16941 | mac1 = arg[2]
|
---|
16942 | }
|
---|
16943 | split(mac1, mac2, "(") #)
|
---|
16944 | macro = mac2[1]
|
---|
16945 | prefix = substr(line, 1, index(line, defundef) - 1)
|
---|
16946 | if (D_is_set[macro]) {
|
---|
16947 | # Preserve the white space surrounding the "#".
|
---|
16948 | print prefix "define", macro P[macro] D[macro]
|
---|
16949 | next
|
---|
16950 | } else {
|
---|
16951 | # Replace #undef with comments. This is necessary, for example,
|
---|
16952 | # in the case of _POSIX_SOURCE, which is predefined and required
|
---|
16953 | # on some systems where configure will not decide to define it.
|
---|
16954 | if (defundef == "undef") {
|
---|
16955 | print "/*", prefix defundef, macro, "*/"
|
---|
16956 | next
|
---|
16957 | }
|
---|
16958 | }
|
---|
16959 | }
|
---|
16960 | { print }
|
---|
16961 | _ACAWK
|
---|
16962 | _ACEOF
|
---|
16963 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
16964 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
|
---|
16965 | fi # test -n "$CONFIG_HEADERS"
|
---|
16966 |
|
---|
16967 |
|
---|
16968 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
|
---|
16969 | shift
|
---|
16970 | for ac_tag
|
---|
16971 | do
|
---|
16972 | case $ac_tag in
|
---|
16973 | :[FHLC]) ac_mode=$ac_tag; continue;;
|
---|
16974 | esac
|
---|
16975 | case $ac_mode$ac_tag in
|
---|
16976 | :[FHL]*:*);;
|
---|
16977 | :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
|
---|
16978 | :[FH]-) ac_tag=-:-;;
|
---|
16979 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
---|
16980 | esac
|
---|
16981 | ac_save_IFS=$IFS
|
---|
16982 | IFS=:
|
---|
16983 | set x $ac_tag
|
---|
16984 | IFS=$ac_save_IFS
|
---|
16985 | shift
|
---|
16986 | ac_file=$1
|
---|
16987 | shift
|
---|
16988 |
|
---|
16989 | case $ac_mode in
|
---|
16990 | :L) ac_source=$1;;
|
---|
16991 | :[FH])
|
---|
16992 | ac_file_inputs=
|
---|
16993 | for ac_f
|
---|
16994 | do
|
---|
16995 | case $ac_f in
|
---|
16996 | -) ac_f="$ac_tmp/stdin";;
|
---|
16997 | *) # Look for the file first in the build tree, then in the source tree
|
---|
16998 | # (if the path is not absolute). The absolute path cannot be DOS-style,
|
---|
16999 | # because $ac_f cannot contain ':'.
|
---|
17000 | test -f "$ac_f" ||
|
---|
17001 | case $ac_f in
|
---|
17002 | [\\/$]*) false;;
|
---|
17003 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
---|
17004 | esac ||
|
---|
17005 | as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
|
---|
17006 | esac
|
---|
17007 | case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
|
---|
17008 | as_fn_append ac_file_inputs " '$ac_f'"
|
---|
17009 | done
|
---|
17010 |
|
---|
17011 | # Let's still pretend it is 'configure' which instantiates (i.e., don't
|
---|
17012 | # use $as_me), people would be surprised to read:
|
---|
17013 | # /* config.h. Generated by config.status. */
|
---|
17014 | configure_input='Generated from '`
|
---|
17015 | printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
|
---|
17016 | `' by configure.'
|
---|
17017 | if test x"$ac_file" != x-; then
|
---|
17018 | configure_input="$ac_file. $configure_input"
|
---|
17019 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
|
---|
17020 | printf "%s\n" "$as_me: creating $ac_file" >&6;}
|
---|
17021 | fi
|
---|
17022 | # Neutralize special characters interpreted by sed in replacement strings.
|
---|
17023 | case $configure_input in #(
|
---|
17024 | *\&* | *\|* | *\\* )
|
---|
17025 | ac_sed_conf_input=`printf "%s\n" "$configure_input" |
|
---|
17026 | sed 's/[\\\\&|]/\\\\&/g'`;; #(
|
---|
17027 | *) ac_sed_conf_input=$configure_input;;
|
---|
17028 | esac
|
---|
17029 |
|
---|
17030 | case $ac_tag in
|
---|
17031 | *:-:* | *:-) cat >"$ac_tmp/stdin" \
|
---|
17032 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
|
---|
17033 | esac
|
---|
17034 | ;;
|
---|
17035 | esac
|
---|
17036 |
|
---|
17037 | ac_dir=`$as_dirname -- "$ac_file" ||
|
---|
17038 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
17039 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
17040 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
17041 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
17042 | printf "%s\n" X"$ac_file" |
|
---|
17043 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
17044 | s//\1/
|
---|
17045 | q
|
---|
17046 | }
|
---|
17047 | /^X\(\/\/\)[^/].*/{
|
---|
17048 | s//\1/
|
---|
17049 | q
|
---|
17050 | }
|
---|
17051 | /^X\(\/\/\)$/{
|
---|
17052 | s//\1/
|
---|
17053 | q
|
---|
17054 | }
|
---|
17055 | /^X\(\/\).*/{
|
---|
17056 | s//\1/
|
---|
17057 | q
|
---|
17058 | }
|
---|
17059 | s/.*/./; q'`
|
---|
17060 | as_dir="$ac_dir"; as_fn_mkdir_p
|
---|
17061 | ac_builddir=.
|
---|
17062 |
|
---|
17063 | case "$ac_dir" in
|
---|
17064 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
17065 | *)
|
---|
17066 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
|
---|
17067 | # A ".." for each directory in $ac_dir_suffix.
|
---|
17068 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
---|
17069 | case $ac_top_builddir_sub in
|
---|
17070 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
17071 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
17072 | esac ;;
|
---|
17073 | esac
|
---|
17074 | ac_abs_top_builddir=$ac_pwd
|
---|
17075 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
17076 | # for backward compatibility:
|
---|
17077 | ac_top_builddir=$ac_top_build_prefix
|
---|
17078 |
|
---|
17079 | case $srcdir in
|
---|
17080 | .) # We are building in place.
|
---|
17081 | ac_srcdir=.
|
---|
17082 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
17083 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
17084 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
17085 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
17086 | ac_top_srcdir=$srcdir
|
---|
17087 | ac_abs_top_srcdir=$srcdir ;;
|
---|
17088 | *) # Relative name.
|
---|
17089 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
17090 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
17091 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
17092 | esac
|
---|
17093 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
17094 |
|
---|
17095 |
|
---|
17096 | case $ac_mode in
|
---|
17097 | :F)
|
---|
17098 | #
|
---|
17099 | # CONFIG_FILE
|
---|
17100 | #
|
---|
17101 |
|
---|
17102 | case $INSTALL in
|
---|
17103 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
17104 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
---|
17105 | esac
|
---|
17106 | ac_MKDIR_P=$MKDIR_P
|
---|
17107 | case $MKDIR_P in
|
---|
17108 | [\\/$]* | ?:[\\/]* ) ;;
|
---|
17109 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
|
---|
17110 | esac
|
---|
17111 | _ACEOF
|
---|
17112 |
|
---|
17113 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
17114 | # If the template does not know about datarootdir, expand it.
|
---|
17115 | # FIXME: This hack should be removed a few years after 2.60.
|
---|
17116 | ac_datarootdir_hack=; ac_datarootdir_seen=
|
---|
17117 | ac_sed_dataroot='
|
---|
17118 | /datarootdir/ {
|
---|
17119 | p
|
---|
17120 | q
|
---|
17121 | }
|
---|
17122 | /@datadir@/p
|
---|
17123 | /@docdir@/p
|
---|
17124 | /@infodir@/p
|
---|
17125 | /@localedir@/p
|
---|
17126 | /@mandir@/p'
|
---|
17127 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
|
---|
17128 | *datarootdir*) ac_datarootdir_seen=yes;;
|
---|
17129 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
---|
17130 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
---|
17131 | printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
---|
17132 | _ACEOF
|
---|
17133 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
17134 | ac_datarootdir_hack='
|
---|
17135 | s&@datadir@&$datadir&g
|
---|
17136 | s&@docdir@&$docdir&g
|
---|
17137 | s&@infodir@&$infodir&g
|
---|
17138 | s&@localedir@&$localedir&g
|
---|
17139 | s&@mandir@&$mandir&g
|
---|
17140 | s&\\\${datarootdir}&$datarootdir&g' ;;
|
---|
17141 | esac
|
---|
17142 | _ACEOF
|
---|
17143 |
|
---|
17144 | # Neutralize VPATH when '$srcdir' = '.'.
|
---|
17145 | # Shell code in configure.ac might set extrasub.
|
---|
17146 | # FIXME: do we really want to maintain this feature?
|
---|
17147 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
---|
17148 | ac_sed_extra="$ac_vpsub
|
---|
17149 | $extrasub
|
---|
17150 | _ACEOF
|
---|
17151 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
---|
17152 | :t
|
---|
17153 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
17154 | s|@configure_input@|$ac_sed_conf_input|;t t
|
---|
17155 | s&@top_builddir@&$ac_top_builddir_sub&;t t
|
---|
17156 | s&@top_build_prefix@&$ac_top_build_prefix&;t t
|
---|
17157 | s&@srcdir@&$ac_srcdir&;t t
|
---|
17158 | s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
---|
17159 | s&@top_srcdir@&$ac_top_srcdir&;t t
|
---|
17160 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
---|
17161 | s&@builddir@&$ac_builddir&;t t
|
---|
17162 | s&@abs_builddir@&$ac_abs_builddir&;t t
|
---|
17163 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
---|
17164 | s&@INSTALL@&$ac_INSTALL&;t t
|
---|
17165 | s&@MKDIR_P@&$ac_MKDIR_P&;t t
|
---|
17166 | $ac_datarootdir_hack
|
---|
17167 | "
|
---|
17168 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
|
---|
17169 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
17170 |
|
---|
17171 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
---|
17172 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
|
---|
17173 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
|
---|
17174 | "$ac_tmp/out"`; test -z "$ac_out"; } &&
|
---|
17175 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
|
---|
17176 | which seems to be undefined. Please make sure it is defined" >&5
|
---|
17177 | printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
|
---|
17178 | which seems to be undefined. Please make sure it is defined" >&2;}
|
---|
17179 |
|
---|
17180 | rm -f "$ac_tmp/stdin"
|
---|
17181 | case $ac_file in
|
---|
17182 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
|
---|
17183 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
|
---|
17184 | esac \
|
---|
17185 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
17186 | ;;
|
---|
17187 | :H)
|
---|
17188 | #
|
---|
17189 | # CONFIG_HEADER
|
---|
17190 | #
|
---|
17191 | if test x"$ac_file" != x-; then
|
---|
17192 | {
|
---|
17193 | printf "%s\n" "/* $configure_input */" >&1 \
|
---|
17194 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
|
---|
17195 | } >"$ac_tmp/config.h" \
|
---|
17196 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
17197 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
|
---|
17198 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
|
---|
17199 | printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
|
---|
17200 | else
|
---|
17201 | rm -f "$ac_file"
|
---|
17202 | mv "$ac_tmp/config.h" "$ac_file" \
|
---|
17203 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
---|
17204 | fi
|
---|
17205 | else
|
---|
17206 | printf "%s\n" "/* $configure_input */" >&1 \
|
---|
17207 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
|
---|
17208 | || as_fn_error $? "could not create -" "$LINENO" 5
|
---|
17209 | fi
|
---|
17210 | # Compute "$ac_file"'s index in $config_headers.
|
---|
17211 | _am_arg="$ac_file"
|
---|
17212 | _am_stamp_count=1
|
---|
17213 | for _am_header in $config_headers :; do
|
---|
17214 | case $_am_header in
|
---|
17215 | $_am_arg | $_am_arg:* )
|
---|
17216 | break ;;
|
---|
17217 | * )
|
---|
17218 | _am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
---|
17219 | esac
|
---|
17220 | done
|
---|
17221 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
|
---|
17222 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
17223 | X"$_am_arg" : 'X\(//\)[^/]' \| \
|
---|
17224 | X"$_am_arg" : 'X\(//\)$' \| \
|
---|
17225 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
17226 | printf "%s\n" X"$_am_arg" |
|
---|
17227 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
17228 | s//\1/
|
---|
17229 | q
|
---|
17230 | }
|
---|
17231 | /^X\(\/\/\)[^/].*/{
|
---|
17232 | s//\1/
|
---|
17233 | q
|
---|
17234 | }
|
---|
17235 | /^X\(\/\/\)$/{
|
---|
17236 | s//\1/
|
---|
17237 | q
|
---|
17238 | }
|
---|
17239 | /^X\(\/\).*/{
|
---|
17240 | s//\1/
|
---|
17241 | q
|
---|
17242 | }
|
---|
17243 | s/.*/./; q'`/stamp-h$_am_stamp_count
|
---|
17244 | ;;
|
---|
17245 |
|
---|
17246 | :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
|
---|
17247 | printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
|
---|
17248 | ;;
|
---|
17249 | esac
|
---|
17250 |
|
---|
17251 |
|
---|
17252 | case $ac_file$ac_mode in
|
---|
17253 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
|
---|
17254 | # Older Autoconf quotes --file arguments for eval, but not when files
|
---|
17255 | # are listed without --file. Let's play safe and only enable the eval
|
---|
17256 | # if we detect the quoting.
|
---|
17257 | # TODO: see whether this extra hack can be removed once we start
|
---|
17258 | # requiring Autoconf 2.70 or later.
|
---|
17259 | case $CONFIG_FILES in #(
|
---|
17260 | *\'*) :
|
---|
17261 | eval set x "$CONFIG_FILES" ;; #(
|
---|
17262 | *) :
|
---|
17263 | set x $CONFIG_FILES ;; #(
|
---|
17264 | *) :
|
---|
17265 | ;;
|
---|
17266 | esac
|
---|
17267 | shift
|
---|
17268 | # Used to flag and report bootstrapping failures.
|
---|
17269 | am_rc=0
|
---|
17270 | for am_mf
|
---|
17271 | do
|
---|
17272 | # Strip MF so we end up with the name of the file.
|
---|
17273 | am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
|
---|
17274 | # Check whether this is an Automake generated Makefile which includes
|
---|
17275 | # dependency-tracking related rules and includes.
|
---|
17276 | # Grep'ing the whole file directly is not great: AIX grep has a line
|
---|
17277 | # limit of 2048, but all sed's we know have understand at least 4000.
|
---|
17278 | sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
|
---|
17279 | || continue
|
---|
17280 | am_dirpart=`$as_dirname -- "$am_mf" ||
|
---|
17281 | $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
17282 | X"$am_mf" : 'X\(//\)[^/]' \| \
|
---|
17283 | X"$am_mf" : 'X\(//\)$' \| \
|
---|
17284 | X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
17285 | printf "%s\n" X"$am_mf" |
|
---|
17286 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
17287 | s//\1/
|
---|
17288 | q
|
---|
17289 | }
|
---|
17290 | /^X\(\/\/\)[^/].*/{
|
---|
17291 | s//\1/
|
---|
17292 | q
|
---|
17293 | }
|
---|
17294 | /^X\(\/\/\)$/{
|
---|
17295 | s//\1/
|
---|
17296 | q
|
---|
17297 | }
|
---|
17298 | /^X\(\/\).*/{
|
---|
17299 | s//\1/
|
---|
17300 | q
|
---|
17301 | }
|
---|
17302 | s/.*/./; q'`
|
---|
17303 | am_filepart=`$as_basename -- "$am_mf" ||
|
---|
17304 | $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
17305 | X"$am_mf" : 'X\(//\)$' \| \
|
---|
17306 | X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
17307 | printf "%s\n" X/"$am_mf" |
|
---|
17308 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
17309 | s//\1/
|
---|
17310 | q
|
---|
17311 | }
|
---|
17312 | /^X\/\(\/\/\)$/{
|
---|
17313 | s//\1/
|
---|
17314 | q
|
---|
17315 | }
|
---|
17316 | /^X\/\(\/\).*/{
|
---|
17317 | s//\1/
|
---|
17318 | q
|
---|
17319 | }
|
---|
17320 | s/.*/./; q'`
|
---|
17321 | { echo "$as_me:$LINENO: cd "$am_dirpart" \
|
---|
17322 | && sed -e '/# am--include-marker/d' "$am_filepart" \
|
---|
17323 | | $MAKE -f - am--depfiles" >&5
|
---|
17324 | (cd "$am_dirpart" \
|
---|
17325 | && sed -e '/# am--include-marker/d' "$am_filepart" \
|
---|
17326 | | $MAKE -f - am--depfiles) >&5 2>&5
|
---|
17327 | ac_status=$?
|
---|
17328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
17329 | (exit $ac_status); } || am_rc=$?
|
---|
17330 | done
|
---|
17331 | if test $am_rc -ne 0; then
|
---|
17332 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
|
---|
17333 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
|
---|
17334 | as_fn_error $? "Something went wrong bootstrapping makefile fragments
|
---|
17335 | for automatic dependency tracking. If GNU make was not used, consider
|
---|
17336 | re-running the configure script with MAKE=\"gmake\" (or whatever is
|
---|
17337 | necessary). You can also try re-running configure with the
|
---|
17338 | '--disable-dependency-tracking' option to at least be able to build
|
---|
17339 | the package (albeit without support for automatic dependency tracking).
|
---|
17340 | See 'config.log' for more details" "$LINENO" 5; }
|
---|
17341 | fi
|
---|
17342 | { am_dirpart=; unset am_dirpart;}
|
---|
17343 | { am_filepart=; unset am_filepart;}
|
---|
17344 | { am_mf=; unset am_mf;}
|
---|
17345 | { am_rc=; unset am_rc;}
|
---|
17346 | rm -f conftest-deps.mk
|
---|
17347 | }
|
---|
17348 | ;;
|
---|
17349 | "libtool":C)
|
---|
17350 |
|
---|
17351 | # See if we are running on zsh, and set the options that allow our
|
---|
17352 | # commands through without removal of \ escapes.
|
---|
17353 | if test -n "${ZSH_VERSION+set}"; then
|
---|
17354 | setopt NO_GLOB_SUBST
|
---|
17355 | fi
|
---|
17356 |
|
---|
17357 | cfgfile=${ofile}T
|
---|
17358 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15
|
---|
17359 | $RM "$cfgfile"
|
---|
17360 |
|
---|
17361 | cat <<_LT_EOF >> "$cfgfile"
|
---|
17362 | #! $SHELL
|
---|
17363 | # Generated automatically by $as_me ($PACKAGE) $VERSION
|
---|
17364 | # NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
---|
17365 |
|
---|
17366 | # Provide generalized library-building support services.
|
---|
17367 | # Written by Gordon Matzigkeit, 1996
|
---|
17368 |
|
---|
17369 | # Copyright (C) 2024 Free Software Foundation, Inc.
|
---|
17370 | # This is free software; see the source for copying conditions. There is NO
|
---|
17371 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
---|
17372 |
|
---|
17373 | # GNU Libtool is free software; you can redistribute it and/or modify
|
---|
17374 | # it under the terms of the GNU General Public License as published by
|
---|
17375 | # the Free Software Foundation; either version 2 of the License, or
|
---|
17376 | # (at your option) any later version.
|
---|
17377 | #
|
---|
17378 | # As a special exception to the GNU General Public License, if you
|
---|
17379 | # distribute this file as part of a program or library that is built
|
---|
17380 | # using GNU Libtool, you may include this file under the same
|
---|
17381 | # distribution terms that you use for the rest of that program.
|
---|
17382 | #
|
---|
17383 | # GNU Libtool is distributed in the hope that it will be useful, but
|
---|
17384 | # WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
17385 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
17386 | # GNU General Public License for more details.
|
---|
17387 | #
|
---|
17388 | # You should have received a copy of the GNU General Public License
|
---|
17389 | # along with this program. If not, see <http://www.gnu.org/licenses/>.
|
---|
17390 |
|
---|
17391 |
|
---|
17392 | # The names of the tagged configurations supported by this script.
|
---|
17393 | available_tags=''
|
---|
17394 |
|
---|
17395 | # Configured defaults for sys_lib_dlsearch_path munging.
|
---|
17396 | : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
|
---|
17397 |
|
---|
17398 | # ### BEGIN LIBTOOL CONFIG
|
---|
17399 |
|
---|
17400 | # A sed program that does not truncate output.
|
---|
17401 | SED=$lt_SED
|
---|
17402 |
|
---|
17403 | # Sed that helps us avoid accidentally triggering echo(1) options like -n.
|
---|
17404 | Xsed="\$SED -e 1s/^X//"
|
---|
17405 |
|
---|
17406 | # A grep program that handles long lines.
|
---|
17407 | GREP=$lt_GREP
|
---|
17408 |
|
---|
17409 | # An ERE matcher.
|
---|
17410 | EGREP=$lt_EGREP
|
---|
17411 |
|
---|
17412 | # A literal string matcher.
|
---|
17413 | FGREP=$lt_FGREP
|
---|
17414 |
|
---|
17415 | # Shell to use when invoking shell scripts.
|
---|
17416 | SHELL=$lt_SHELL
|
---|
17417 |
|
---|
17418 | # An echo program that protects backslashes.
|
---|
17419 | ECHO=$lt_ECHO
|
---|
17420 |
|
---|
17421 | # Which release of libtool.m4 was used?
|
---|
17422 | macro_version=$macro_version
|
---|
17423 | macro_revision=$macro_revision
|
---|
17424 |
|
---|
17425 | # Assembler program.
|
---|
17426 | AS=$lt_AS
|
---|
17427 |
|
---|
17428 | # DLL creation program.
|
---|
17429 | DLLTOOL=$lt_DLLTOOL
|
---|
17430 |
|
---|
17431 | # Object dumper program.
|
---|
17432 | OBJDUMP=$lt_OBJDUMP
|
---|
17433 |
|
---|
17434 | # Whether or not to build shared libraries.
|
---|
17435 | build_libtool_libs=$enable_shared
|
---|
17436 |
|
---|
17437 | # Whether or not to build static libraries.
|
---|
17438 | build_old_libs=$enable_static
|
---|
17439 |
|
---|
17440 | # What type of objects to build.
|
---|
17441 | pic_mode=$pic_mode
|
---|
17442 |
|
---|
17443 | # Whether or not to optimize for fast installation.
|
---|
17444 | fast_install=$enable_fast_install
|
---|
17445 |
|
---|
17446 | # Shared archive member basename,for filename based shared library versioning on AIX.
|
---|
17447 | shared_archive_member_spec=$shared_archive_member_spec
|
---|
17448 |
|
---|
17449 | # The PATH separator for the build system.
|
---|
17450 | PATH_SEPARATOR=$lt_PATH_SEPARATOR
|
---|
17451 |
|
---|
17452 | # The host system.
|
---|
17453 | host_alias=$host_alias
|
---|
17454 | host=$host
|
---|
17455 | host_os=$host_os
|
---|
17456 |
|
---|
17457 | # The build system.
|
---|
17458 | build_alias=$build_alias
|
---|
17459 | build=$build
|
---|
17460 | build_os=$build_os
|
---|
17461 |
|
---|
17462 | # A BSD- or MS-compatible name lister.
|
---|
17463 | NM=$lt_NM
|
---|
17464 |
|
---|
17465 | # Whether we need soft or hard links.
|
---|
17466 | LN_S=$lt_LN_S
|
---|
17467 |
|
---|
17468 | # What is the maximum length of a command?
|
---|
17469 | max_cmd_len=$max_cmd_len
|
---|
17470 |
|
---|
17471 | # Object file suffix (normally "o").
|
---|
17472 | objext=$ac_objext
|
---|
17473 |
|
---|
17474 | # Executable file suffix (normally "").
|
---|
17475 | exeext=$exeext
|
---|
17476 |
|
---|
17477 | # whether the shell understands "unset".
|
---|
17478 | lt_unset=$lt_unset
|
---|
17479 |
|
---|
17480 | # turn spaces into newlines.
|
---|
17481 | SP2NL=$lt_lt_SP2NL
|
---|
17482 |
|
---|
17483 | # turn newlines into spaces.
|
---|
17484 | NL2SP=$lt_lt_NL2SP
|
---|
17485 |
|
---|
17486 | # convert \$build file names to \$host format.
|
---|
17487 | to_host_file_cmd=$lt_cv_to_host_file_cmd
|
---|
17488 |
|
---|
17489 | # convert \$build files to toolchain format.
|
---|
17490 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
---|
17491 |
|
---|
17492 | # A file(cmd) program that detects file types.
|
---|
17493 | FILECMD=$lt_FILECMD
|
---|
17494 |
|
---|
17495 | # Method to check whether dependent libraries are shared objects.
|
---|
17496 | deplibs_check_method=$lt_deplibs_check_method
|
---|
17497 |
|
---|
17498 | # Command to use when deplibs_check_method = "file_magic".
|
---|
17499 | file_magic_cmd=$lt_file_magic_cmd
|
---|
17500 |
|
---|
17501 | # How to find potential files when deplibs_check_method = "file_magic".
|
---|
17502 | file_magic_glob=$lt_file_magic_glob
|
---|
17503 |
|
---|
17504 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
|
---|
17505 | want_nocaseglob=$lt_want_nocaseglob
|
---|
17506 |
|
---|
17507 | # Command to associate shared and link libraries.
|
---|
17508 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
|
---|
17509 |
|
---|
17510 | # The archiver.
|
---|
17511 | AR=$lt_AR
|
---|
17512 |
|
---|
17513 | # Flags to create an archive (by configure).
|
---|
17514 | lt_ar_flags=$lt_ar_flags
|
---|
17515 |
|
---|
17516 | # Flags to create an archive.
|
---|
17517 | AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
|
---|
17518 |
|
---|
17519 | # How to feed a file listing to the archiver.
|
---|
17520 | archiver_list_spec=$lt_archiver_list_spec
|
---|
17521 |
|
---|
17522 | # A symbol stripping program.
|
---|
17523 | STRIP=$lt_STRIP
|
---|
17524 |
|
---|
17525 | # Commands used to install an old-style archive.
|
---|
17526 | RANLIB=$lt_RANLIB
|
---|
17527 | old_postinstall_cmds=$lt_old_postinstall_cmds
|
---|
17528 | old_postuninstall_cmds=$lt_old_postuninstall_cmds
|
---|
17529 |
|
---|
17530 | # Whether to use a lock for old archive extraction.
|
---|
17531 | lock_old_archive_extraction=$lock_old_archive_extraction
|
---|
17532 |
|
---|
17533 | # A C compiler.
|
---|
17534 | LTCC=$lt_CC
|
---|
17535 |
|
---|
17536 | # LTCC compiler flags.
|
---|
17537 | LTCFLAGS=$lt_CFLAGS
|
---|
17538 |
|
---|
17539 | # Take the output of nm and produce a listing of raw symbols and C names.
|
---|
17540 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
|
---|
17541 |
|
---|
17542 | # Transform the output of nm in a proper C declaration.
|
---|
17543 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
|
---|
17544 |
|
---|
17545 | # Transform the output of nm into a list of symbols to manually relocate.
|
---|
17546 | global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
|
---|
17547 |
|
---|
17548 | # Transform the output of nm in a C name address pair.
|
---|
17549 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
---|
17550 |
|
---|
17551 | # Transform the output of nm in a C name address pair when lib prefix is needed.
|
---|
17552 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
|
---|
17553 |
|
---|
17554 | # The name lister interface.
|
---|
17555 | nm_interface=$lt_lt_cv_nm_interface
|
---|
17556 |
|
---|
17557 | # Specify filename containing input files for \$NM.
|
---|
17558 | nm_file_list_spec=$lt_nm_file_list_spec
|
---|
17559 |
|
---|
17560 | # The root where to search for dependent libraries,and where our libraries should be installed.
|
---|
17561 | lt_sysroot=$lt_sysroot
|
---|
17562 |
|
---|
17563 | # Command to truncate a binary pipe.
|
---|
17564 | lt_truncate_bin=$lt_lt_cv_truncate_bin
|
---|
17565 |
|
---|
17566 | # The name of the directory that contains temporary libtool files.
|
---|
17567 | objdir=$objdir
|
---|
17568 |
|
---|
17569 | # Used to examine libraries when file_magic_cmd begins with "file".
|
---|
17570 | MAGIC_CMD=$MAGIC_CMD
|
---|
17571 |
|
---|
17572 | # Must we lock files when doing compilation?
|
---|
17573 | need_locks=$lt_need_locks
|
---|
17574 |
|
---|
17575 | # Manifest tool.
|
---|
17576 | MANIFEST_TOOL=$lt_MANIFEST_TOOL
|
---|
17577 |
|
---|
17578 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
|
---|
17579 | DSYMUTIL=$lt_DSYMUTIL
|
---|
17580 |
|
---|
17581 | # Tool to change global to local symbols on Mac OS X.
|
---|
17582 | NMEDIT=$lt_NMEDIT
|
---|
17583 |
|
---|
17584 | # Tool to manipulate fat objects and archives on Mac OS X.
|
---|
17585 | LIPO=$lt_LIPO
|
---|
17586 |
|
---|
17587 | # ldd/readelf like tool for Mach-O binaries on Mac OS X.
|
---|
17588 | OTOOL=$lt_OTOOL
|
---|
17589 |
|
---|
17590 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
|
---|
17591 | OTOOL64=$lt_OTOOL64
|
---|
17592 |
|
---|
17593 | # Old archive suffix (normally "a").
|
---|
17594 | libext=$libext
|
---|
17595 |
|
---|
17596 | # Shared library suffix (normally ".so").
|
---|
17597 | shrext_cmds=$lt_shrext_cmds
|
---|
17598 |
|
---|
17599 | # The commands to extract the exported symbol list from a shared archive.
|
---|
17600 | extract_expsyms_cmds=$lt_extract_expsyms_cmds
|
---|
17601 |
|
---|
17602 | # Variables whose values should be saved in libtool wrapper scripts and
|
---|
17603 | # restored at link time.
|
---|
17604 | variables_saved_for_relink=$lt_variables_saved_for_relink
|
---|
17605 |
|
---|
17606 | # Do we need the "lib" prefix for modules?
|
---|
17607 | need_lib_prefix=$need_lib_prefix
|
---|
17608 |
|
---|
17609 | # Do we need a version for libraries?
|
---|
17610 | need_version=$need_version
|
---|
17611 |
|
---|
17612 | # Library versioning type.
|
---|
17613 | version_type=$version_type
|
---|
17614 |
|
---|
17615 | # Shared library runtime path variable.
|
---|
17616 | runpath_var=$runpath_var
|
---|
17617 |
|
---|
17618 | # Shared library path variable.
|
---|
17619 | shlibpath_var=$shlibpath_var
|
---|
17620 |
|
---|
17621 | # Is shlibpath searched before the hard-coded library search path?
|
---|
17622 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath
|
---|
17623 |
|
---|
17624 | # Format of library name prefix.
|
---|
17625 | libname_spec=$lt_libname_spec
|
---|
17626 |
|
---|
17627 | # List of archive names. First name is the real one, the rest are links.
|
---|
17628 | # The last name is the one that the linker finds with -lNAME
|
---|
17629 | library_names_spec=$lt_library_names_spec
|
---|
17630 |
|
---|
17631 | # The coded name of the library, if different from the real name.
|
---|
17632 | soname_spec=$lt_soname_spec
|
---|
17633 |
|
---|
17634 | # Permission mode override for installation of shared libraries.
|
---|
17635 | install_override_mode=$lt_install_override_mode
|
---|
17636 |
|
---|
17637 | # Command to use after installation of a shared archive.
|
---|
17638 | postinstall_cmds=$lt_postinstall_cmds
|
---|
17639 |
|
---|
17640 | # Command to use after uninstallation of a shared archive.
|
---|
17641 | postuninstall_cmds=$lt_postuninstall_cmds
|
---|
17642 |
|
---|
17643 | # Commands used to finish a libtool library installation in a directory.
|
---|
17644 | finish_cmds=$lt_finish_cmds
|
---|
17645 |
|
---|
17646 | # As "finish_cmds", except a single script fragment to be evaled but
|
---|
17647 | # not shown.
|
---|
17648 | finish_eval=$lt_finish_eval
|
---|
17649 |
|
---|
17650 | # Whether we should hardcode library paths into libraries.
|
---|
17651 | hardcode_into_libs=$hardcode_into_libs
|
---|
17652 |
|
---|
17653 | # Compile-time system search path for libraries.
|
---|
17654 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
|
---|
17655 |
|
---|
17656 | # Detected run-time system search path for libraries.
|
---|
17657 | sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
|
---|
17658 |
|
---|
17659 | # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
|
---|
17660 | configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
|
---|
17661 |
|
---|
17662 | # Whether dlopen is supported.
|
---|
17663 | dlopen_support=$enable_dlopen
|
---|
17664 |
|
---|
17665 | # Whether dlopen of programs is supported.
|
---|
17666 | dlopen_self=$enable_dlopen_self
|
---|
17667 |
|
---|
17668 | # Whether dlopen of statically linked programs is supported.
|
---|
17669 | dlopen_self_static=$enable_dlopen_self_static
|
---|
17670 |
|
---|
17671 | # Commands to strip libraries.
|
---|
17672 | old_striplib=$lt_old_striplib
|
---|
17673 | striplib=$lt_striplib
|
---|
17674 |
|
---|
17675 |
|
---|
17676 | # The linker used to build libraries.
|
---|
17677 | LD=$lt_LD
|
---|
17678 |
|
---|
17679 | # How to create reloadable object files.
|
---|
17680 | reload_flag=$lt_reload_flag
|
---|
17681 | reload_cmds=$lt_reload_cmds
|
---|
17682 |
|
---|
17683 | # Commands used to build an old-style archive.
|
---|
17684 | old_archive_cmds=$lt_old_archive_cmds
|
---|
17685 |
|
---|
17686 | # A language specific compiler.
|
---|
17687 | CC=$lt_compiler
|
---|
17688 |
|
---|
17689 | # Is the compiler the GNU compiler?
|
---|
17690 | with_gcc=$GCC
|
---|
17691 |
|
---|
17692 | # Compiler flag to turn off builtin functions.
|
---|
17693 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
|
---|
17694 |
|
---|
17695 | # Additional compiler flags for building library objects.
|
---|
17696 | pic_flag=$lt_lt_prog_compiler_pic
|
---|
17697 |
|
---|
17698 | # How to pass a linker flag through the compiler.
|
---|
17699 | wl=$lt_lt_prog_compiler_wl
|
---|
17700 |
|
---|
17701 | # Compiler flag to prevent dynamic linking.
|
---|
17702 | link_static_flag=$lt_lt_prog_compiler_static
|
---|
17703 |
|
---|
17704 | # Does compiler simultaneously support -c and -o options?
|
---|
17705 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o
|
---|
17706 |
|
---|
17707 | # Whether or not to add -lc for building shared libraries.
|
---|
17708 | build_libtool_need_lc=$archive_cmds_need_lc
|
---|
17709 |
|
---|
17710 | # Whether or not to disallow shared libs when runtime libs are static.
|
---|
17711 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
|
---|
17712 |
|
---|
17713 | # Compiler flag to allow reflexive dlopens.
|
---|
17714 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
|
---|
17715 |
|
---|
17716 | # Compiler flag to generate shared objects directly from archives.
|
---|
17717 | whole_archive_flag_spec=$lt_whole_archive_flag_spec
|
---|
17718 |
|
---|
17719 | # Whether the compiler copes with passing no objects directly.
|
---|
17720 | compiler_needs_object=$lt_compiler_needs_object
|
---|
17721 |
|
---|
17722 | # Create an old-style archive from a shared archive.
|
---|
17723 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
|
---|
17724 |
|
---|
17725 | # Create a temporary old-style archive to link instead of a shared archive.
|
---|
17726 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
|
---|
17727 |
|
---|
17728 | # Commands used to build a shared archive.
|
---|
17729 | archive_cmds=$lt_archive_cmds
|
---|
17730 | archive_expsym_cmds=$lt_archive_expsym_cmds
|
---|
17731 |
|
---|
17732 | # Commands used to build a loadable module if different from building
|
---|
17733 | # a shared archive.
|
---|
17734 | module_cmds=$lt_module_cmds
|
---|
17735 | module_expsym_cmds=$lt_module_expsym_cmds
|
---|
17736 |
|
---|
17737 | # Whether we are building with GNU ld or not.
|
---|
17738 | with_gnu_ld=$lt_with_gnu_ld
|
---|
17739 |
|
---|
17740 | # Flag that allows shared libraries with undefined symbols to be built.
|
---|
17741 | allow_undefined_flag=$lt_allow_undefined_flag
|
---|
17742 |
|
---|
17743 | # Flag that enforces no undefined symbols.
|
---|
17744 | no_undefined_flag=$lt_no_undefined_flag
|
---|
17745 |
|
---|
17746 | # Flag to hardcode \$libdir into a binary during linking.
|
---|
17747 | # This must work even if \$libdir does not exist
|
---|
17748 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
|
---|
17749 |
|
---|
17750 | # Whether we need a single "-rpath" flag with a separated argument.
|
---|
17751 | hardcode_libdir_separator=$lt_hardcode_libdir_separator
|
---|
17752 |
|
---|
17753 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
|
---|
17754 | # DIR into the resulting binary.
|
---|
17755 | hardcode_direct=$hardcode_direct
|
---|
17756 |
|
---|
17757 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
|
---|
17758 | # DIR into the resulting binary and the resulting library dependency is
|
---|
17759 | # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
|
---|
17760 | # library is relocated.
|
---|
17761 | hardcode_direct_absolute=$hardcode_direct_absolute
|
---|
17762 |
|
---|
17763 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
|
---|
17764 | # into the resulting binary.
|
---|
17765 | hardcode_minus_L=$hardcode_minus_L
|
---|
17766 |
|
---|
17767 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
|
---|
17768 | # into the resulting binary.
|
---|
17769 | hardcode_shlibpath_var=$hardcode_shlibpath_var
|
---|
17770 |
|
---|
17771 | # Set to "yes" if building a shared library automatically hardcodes DIR
|
---|
17772 | # into the library and all subsequent libraries and executables linked
|
---|
17773 | # against it.
|
---|
17774 | hardcode_automatic=$hardcode_automatic
|
---|
17775 |
|
---|
17776 | # Set to yes if linker adds runtime paths of dependent libraries
|
---|
17777 | # to runtime path list.
|
---|
17778 | inherit_rpath=$inherit_rpath
|
---|
17779 |
|
---|
17780 | # Whether libtool must link a program against all its dependency libraries.
|
---|
17781 | link_all_deplibs=$link_all_deplibs
|
---|
17782 |
|
---|
17783 | # Set to "yes" if exported symbols are required.
|
---|
17784 | always_export_symbols=$always_export_symbols
|
---|
17785 |
|
---|
17786 | # The commands to list exported symbols.
|
---|
17787 | export_symbols_cmds=$lt_export_symbols_cmds
|
---|
17788 |
|
---|
17789 | # Symbols that should not be listed in the preloaded symbols.
|
---|
17790 | exclude_expsyms=$lt_exclude_expsyms
|
---|
17791 |
|
---|
17792 | # Symbols that must always be exported.
|
---|
17793 | include_expsyms=$lt_include_expsyms
|
---|
17794 |
|
---|
17795 | # Commands necessary for linking programs (against libraries) with templates.
|
---|
17796 | prelink_cmds=$lt_prelink_cmds
|
---|
17797 |
|
---|
17798 | # Commands necessary for finishing linking programs.
|
---|
17799 | postlink_cmds=$lt_postlink_cmds
|
---|
17800 |
|
---|
17801 | # Specify filename containing input files.
|
---|
17802 | file_list_spec=$lt_file_list_spec
|
---|
17803 |
|
---|
17804 | # How to hardcode a shared library path into an executable.
|
---|
17805 | hardcode_action=$hardcode_action
|
---|
17806 |
|
---|
17807 | # ### END LIBTOOL CONFIG
|
---|
17808 |
|
---|
17809 | _LT_EOF
|
---|
17810 |
|
---|
17811 | cat <<'_LT_EOF' >> "$cfgfile"
|
---|
17812 |
|
---|
17813 | # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
|
---|
17814 |
|
---|
17815 | # func_munge_path_list VARIABLE PATH
|
---|
17816 | # -----------------------------------
|
---|
17817 | # VARIABLE is name of variable containing _space_ separated list of
|
---|
17818 | # directories to be munged by the contents of PATH, which is string
|
---|
17819 | # having a format:
|
---|
17820 | # "DIR[:DIR]:"
|
---|
17821 | # string "DIR[ DIR]" will be prepended to VARIABLE
|
---|
17822 | # ":DIR[:DIR]"
|
---|
17823 | # string "DIR[ DIR]" will be appended to VARIABLE
|
---|
17824 | # "DIRP[:DIRP]::[DIRA:]DIRA"
|
---|
17825 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
|
---|
17826 | # "DIRA[ DIRA]" will be appended to VARIABLE
|
---|
17827 | # "DIR[:DIR]"
|
---|
17828 | # VARIABLE will be replaced by "DIR[ DIR]"
|
---|
17829 | func_munge_path_list ()
|
---|
17830 | {
|
---|
17831 | case x$2 in
|
---|
17832 | x)
|
---|
17833 | ;;
|
---|
17834 | *:)
|
---|
17835 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
|
---|
17836 | ;;
|
---|
17837 | x:*)
|
---|
17838 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
|
---|
17839 | ;;
|
---|
17840 | *::*)
|
---|
17841 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
|
---|
17842 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
|
---|
17843 | ;;
|
---|
17844 | *)
|
---|
17845 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
|
---|
17846 | ;;
|
---|
17847 | esac
|
---|
17848 | }
|
---|
17849 |
|
---|
17850 |
|
---|
17851 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
|
---|
17852 | func_cc_basename ()
|
---|
17853 | {
|
---|
17854 | for cc_temp in $*""; do
|
---|
17855 | case $cc_temp in
|
---|
17856 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
---|
17857 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
---|
17858 | \-*) ;;
|
---|
17859 | *) break;;
|
---|
17860 | esac
|
---|
17861 | done
|
---|
17862 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
|
---|
17863 | }
|
---|
17864 |
|
---|
17865 |
|
---|
17866 | # ### END FUNCTIONS SHARED WITH CONFIGURE
|
---|
17867 |
|
---|
17868 | _LT_EOF
|
---|
17869 |
|
---|
17870 | case $host_os in
|
---|
17871 | aix3*)
|
---|
17872 | cat <<\_LT_EOF >> "$cfgfile"
|
---|
17873 | # AIX sometimes has problems with the GCC collect2 program. For some
|
---|
17874 | # reason, if we set the COLLECT_NAMES environment variable, the problems
|
---|
17875 | # vanish in a puff of smoke.
|
---|
17876 | if test set != "${COLLECT_NAMES+set}"; then
|
---|
17877 | COLLECT_NAMES=
|
---|
17878 | export COLLECT_NAMES
|
---|
17879 | fi
|
---|
17880 | _LT_EOF
|
---|
17881 | ;;
|
---|
17882 | esac
|
---|
17883 |
|
---|
17884 |
|
---|
17885 |
|
---|
17886 | ltmain=$ac_aux_dir/ltmain.sh
|
---|
17887 |
|
---|
17888 |
|
---|
17889 | # We use sed instead of cat because bash on DJGPP gets confused if
|
---|
17890 | # if finds mixed CR/LF and LF-only lines. Since sed operates in
|
---|
17891 | # text mode, it properly converts lines to CR/LF. This bash problem
|
---|
17892 | # is reportedly fixed, but why not run on old versions too?
|
---|
17893 | $SED '$q' "$ltmain" >> "$cfgfile" \
|
---|
17894 | || (rm -f "$cfgfile"; exit 1)
|
---|
17895 |
|
---|
17896 | mv -f "$cfgfile" "$ofile" ||
|
---|
17897 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
|
---|
17898 | chmod +x "$ofile"
|
---|
17899 |
|
---|
17900 | ;;
|
---|
17901 | "libpng-config":F) chmod +x libpng-config ;;
|
---|
17902 |
|
---|
17903 | esac
|
---|
17904 | done # for ac_tag
|
---|
17905 |
|
---|
17906 |
|
---|
17907 | as_fn_exit 0
|
---|
17908 | _ACEOF
|
---|
17909 | ac_clean_files=$ac_clean_files_save
|
---|
17910 |
|
---|
17911 | test $ac_write_fail = 0 ||
|
---|
17912 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
|
---|
17913 |
|
---|
17914 |
|
---|
17915 | # configure is writing to config.log, and then calls config.status.
|
---|
17916 | # config.status does its own redirection, appending to config.log.
|
---|
17917 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
17918 | # by configure, so config.status won't be able to write to it; its
|
---|
17919 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
17920 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
17921 | # appended to by config.status. When coming back to configure, we
|
---|
17922 | # need to make the FD available again.
|
---|
17923 | if test "$no_create" != yes; then
|
---|
17924 | ac_cs_success=:
|
---|
17925 | ac_config_status_args=
|
---|
17926 | test "$silent" = yes &&
|
---|
17927 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
17928 | exec 5>/dev/null
|
---|
17929 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
17930 | exec 5>>config.log
|
---|
17931 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
17932 | # would make configure fail if this is the last instruction.
|
---|
17933 | $ac_cs_success || as_fn_exit 1
|
---|
17934 | fi
|
---|
17935 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
|
---|
17936 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
---|
17937 | printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
---|
17938 | fi
|
---|
17939 |
|
---|
17940 |
|
---|