]>
Commit | Line | Data |
---|---|---|
63a4b106 AB |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.69 for package-unused version-unused. | |
4 | # | |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
7 | # | |
8 | # | |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ## -------------------- ## | |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
14 | ||
15 | # Be more Bourne compatible | |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
18 | emulate sh | |
19 | NULLCMD=: | |
20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
21 | # is contrary to our usage. Disable this feature. | |
22 | alias -g '${1+"$@"}'='"$@"' | |
23 | setopt NO_GLOB_SUBST | |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
31 | fi | |
32 | ||
33 | ||
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
79 | fi | |
80 | ||
81 | ||
82 | # IFS | |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
90 | as_myself= | |
91 | case $0 in #(( | |
92 | *[\\/]* ) as_myself=$0 ;; | |
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
94 | for as_dir in $PATH | |
95 | do | |
96 | IFS=$as_save_IFS | |
97 | test -z "$as_dir" && as_dir=. | |
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
99 | done | |
100 | IFS=$as_save_IFS | |
101 | ||
102 | ;; | |
103 | esac | |
104 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
105 | # in which case we are not to be found in the path. | |
106 | if test "x$as_myself" = x; then | |
107 | as_myself=$0 | |
108 | fi | |
109 | if test ! -f "$as_myself"; then | |
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
111 | exit 1 | |
112 | fi | |
113 | ||
114 | # Unset variables that we do not need and which cause bugs (e.g. in | |
115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
116 | # suppresses any "Segmentation fault" message there. '((' could | |
117 | # trigger a bug in pdksh 5.2.14. | |
118 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
119 | do eval test x\${$as_var+set} = xset \ | |
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
121 | done | |
122 | PS1='$ ' | |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
127 | LC_ALL=C | |
128 | export LC_ALL | |
129 | LANGUAGE=C | |
130 | export LANGUAGE | |
131 | ||
132 | # CDPATH. | |
133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
134 | ||
135 | # Use a proper internal environment variable to ensure we don't fall | |
136 | # into an infinite loop, continuously re-executing ourselves. | |
137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
138 | _as_can_reexec=no; export _as_can_reexec; | |
139 | # We cannot yet assume a decent shell, so we have to provide a | |
140 | # neutralization value for shells without unset; and this also | |
141 | # works around shells that cannot unset nonexistent variables. | |
142 | # Preserve -v and -x to the replacement shell. | |
143 | BASH_ENV=/dev/null | |
144 | ENV=/dev/null | |
145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
146 | case $- in # (((( | |
147 | *v*x* | *x*v* ) as_opts=-vx ;; | |
148 | *v* ) as_opts=-v ;; | |
149 | *x* ) as_opts=-x ;; | |
150 | * ) as_opts= ;; | |
151 | esac | |
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
153 | # Admittedly, this is quite paranoid, since all the known shells bail | |
154 | # out after a failed `exec'. | |
155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
156 | as_fn_exit 255 | |
157 | fi | |
158 | # We don't want this to propagate to other subprocesses. | |
159 | { _as_can_reexec=; unset _as_can_reexec;} | |
160 | if test "x$CONFIG_SHELL" = x; then | |
161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
162 | emulate sh | |
163 | NULLCMD=: | |
164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
165 | # is contrary to our usage. Disable this feature. | |
166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
167 | setopt NO_GLOB_SUBST | |
168 | else | |
169 | case \`(set -o) 2>/dev/null\` in #( | |
170 | *posix*) : | |
171 | set -o posix ;; #( | |
172 | *) : | |
173 | ;; | |
174 | esac | |
175 | fi | |
176 | " | |
177 | as_required="as_fn_return () { (exit \$1); } | |
178 | as_fn_success () { as_fn_return 0; } | |
179 | as_fn_failure () { as_fn_return 1; } | |
180 | as_fn_ret_success () { return 0; } | |
181 | as_fn_ret_failure () { return 1; } | |
182 | ||
183 | exitcode=0 | |
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
189 | ||
190 | else | |
191 | exitcode=1; echo positional parameters were not saved. | |
192 | fi | |
193 | test x\$exitcode = x0 || exit 1 | |
194 | test -x / || exit 1" | |
195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
199 | test \$(( 1 + 1 )) = 2 || exit 1 | |
200 | ||
201 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
202 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
203 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
204 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
205 | PATH=/empty FPATH=/empty; export PATH FPATH | |
206 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
207 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" | |
208 | if (eval "$as_required") 2>/dev/null; then : | |
209 | as_have_required=yes | |
210 | else | |
211 | as_have_required=no | |
212 | fi | |
213 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
214 | ||
215 | else | |
216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
217 | as_found=false | |
218 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
219 | do | |
220 | IFS=$as_save_IFS | |
221 | test -z "$as_dir" && as_dir=. | |
222 | as_found=: | |
223 | case $as_dir in #( | |
224 | /*) | |
225 | for as_base in sh bash ksh sh5; do | |
226 | # Try only shells that exist, to save several forks. | |
227 | as_shell=$as_dir/$as_base | |
228 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
229 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
230 | CONFIG_SHELL=$as_shell as_have_required=yes | |
231 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
232 | break 2 | |
233 | fi | |
234 | fi | |
235 | done;; | |
236 | esac | |
237 | as_found=false | |
238 | done | |
239 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
240 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
241 | CONFIG_SHELL=$SHELL as_have_required=yes | |
242 | fi; } | |
243 | IFS=$as_save_IFS | |
244 | ||
245 | ||
246 | if test "x$CONFIG_SHELL" != x; then : | |
247 | export CONFIG_SHELL | |
248 | # We cannot yet assume a decent shell, so we have to provide a | |
249 | # neutralization value for shells without unset; and this also | |
250 | # works around shells that cannot unset nonexistent variables. | |
251 | # Preserve -v and -x to the replacement shell. | |
252 | BASH_ENV=/dev/null | |
253 | ENV=/dev/null | |
254 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
255 | case $- in # (((( | |
256 | *v*x* | *x*v* ) as_opts=-vx ;; | |
257 | *v* ) as_opts=-v ;; | |
258 | *x* ) as_opts=-x ;; | |
259 | * ) as_opts= ;; | |
260 | esac | |
261 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
262 | # Admittedly, this is quite paranoid, since all the known shells bail | |
263 | # out after a failed `exec'. | |
264 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
265 | exit 255 | |
266 | fi | |
267 | ||
268 | if test x$as_have_required = xno; then : | |
269 | $as_echo "$0: This script requires a shell more modern than all" | |
270 | $as_echo "$0: the shells that I found on your system." | |
271 | if test x${ZSH_VERSION+set} = xset ; then | |
272 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
273 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
274 | else | |
275 | $as_echo "$0: Please tell [email protected] about your system, | |
276 | $0: including any error possibly output before this | |
277 | $0: message. Then install a modern shell, or manually run | |
278 | $0: the script under such a shell if you do have one." | |
279 | fi | |
280 | exit 1 | |
281 | fi | |
282 | fi | |
283 | fi | |
284 | SHELL=${CONFIG_SHELL-/bin/sh} | |
285 | export SHELL | |
286 | # Unset more variables known to interfere with behavior of common tools. | |
287 | CLICOLOR_FORCE= GREP_OPTIONS= | |
288 | unset CLICOLOR_FORCE GREP_OPTIONS | |
289 | ||
290 | ## --------------------- ## | |
291 | ## M4sh Shell Functions. ## | |
292 | ## --------------------- ## | |
293 | # as_fn_unset VAR | |
294 | # --------------- | |
295 | # Portably unset VAR. | |
296 | as_fn_unset () | |
297 | { | |
298 | { eval $1=; unset $1;} | |
299 | } | |
300 | as_unset=as_fn_unset | |
301 | ||
302 | # as_fn_set_status STATUS | |
303 | # ----------------------- | |
304 | # Set $? to STATUS, without forking. | |
305 | as_fn_set_status () | |
306 | { | |
307 | return $1 | |
308 | } # as_fn_set_status | |
309 | ||
310 | # as_fn_exit STATUS | |
311 | # ----------------- | |
312 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
313 | as_fn_exit () | |
314 | { | |
315 | set +e | |
316 | as_fn_set_status $1 | |
317 | exit $1 | |
318 | } # as_fn_exit | |
319 | ||
320 | # as_fn_mkdir_p | |
321 | # ------------- | |
322 | # Create "$as_dir" as a directory, including parents if necessary. | |
323 | as_fn_mkdir_p () | |
324 | { | |
325 | ||
326 | case $as_dir in #( | |
327 | -*) as_dir=./$as_dir;; | |
328 | esac | |
329 | test -d "$as_dir" || eval $as_mkdir_p || { | |
330 | as_dirs= | |
331 | while :; do | |
332 | case $as_dir in #( | |
333 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
334 | *) as_qdir=$as_dir;; | |
335 | esac | |
336 | as_dirs="'$as_qdir' $as_dirs" | |
337 | as_dir=`$as_dirname -- "$as_dir" || | |
338 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
339 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
340 | X"$as_dir" : 'X\(//\)$' \| \ | |
341 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
342 | $as_echo X"$as_dir" | | |
343 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
344 | s//\1/ | |
345 | q | |
346 | } | |
347 | /^X\(\/\/\)[^/].*/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | /^X\(\/\/\)$/{ | |
352 | s//\1/ | |
353 | q | |
354 | } | |
355 | /^X\(\/\).*/{ | |
356 | s//\1/ | |
357 | q | |
358 | } | |
359 | s/.*/./; q'` | |
360 | test -d "$as_dir" && break | |
361 | done | |
362 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
363 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
364 | ||
365 | ||
366 | } # as_fn_mkdir_p | |
367 | ||
368 | # as_fn_executable_p FILE | |
369 | # ----------------------- | |
370 | # Test if FILE is an executable regular file. | |
371 | as_fn_executable_p () | |
372 | { | |
373 | test -f "$1" && test -x "$1" | |
374 | } # as_fn_executable_p | |
375 | # as_fn_append VAR VALUE | |
376 | # ---------------------- | |
377 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
378 | # advantage of any shell optimizations that allow amortized linear growth over | |
379 | # repeated appends, instead of the typical quadratic growth present in naive | |
380 | # implementations. | |
381 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
382 | eval 'as_fn_append () | |
383 | { | |
384 | eval $1+=\$2 | |
385 | }' | |
386 | else | |
387 | as_fn_append () | |
388 | { | |
389 | eval $1=\$$1\$2 | |
390 | } | |
391 | fi # as_fn_append | |
392 | ||
393 | # as_fn_arith ARG... | |
394 | # ------------------ | |
395 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
396 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
397 | # must be portable across $(()) and expr. | |
398 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
399 | eval 'as_fn_arith () | |
400 | { | |
401 | as_val=$(( $* )) | |
402 | }' | |
403 | else | |
404 | as_fn_arith () | |
405 | { | |
406 | as_val=`expr "$@" || test $? -eq 1` | |
407 | } | |
408 | fi # as_fn_arith | |
409 | ||
410 | ||
411 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
412 | # ---------------------------------------- | |
413 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
414 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
415 | # script with STATUS, using 1 if that was 0. | |
416 | as_fn_error () | |
417 | { | |
418 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
419 | if test "$4"; then | |
420 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
421 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
422 | fi | |
423 | $as_echo "$as_me: error: $2" >&2 | |
424 | as_fn_exit $as_status | |
425 | } # as_fn_error | |
426 | ||
427 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
428 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
429 | as_expr=expr | |
430 | else | |
431 | as_expr=false | |
432 | fi | |
433 | ||
434 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
435 | as_basename=basename | |
436 | else | |
437 | as_basename=false | |
438 | fi | |
439 | ||
440 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
441 | as_dirname=dirname | |
442 | else | |
443 | as_dirname=false | |
444 | fi | |
445 | ||
446 | as_me=`$as_basename -- "$0" || | |
447 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
448 | X"$0" : 'X\(//\)$' \| \ | |
449 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
450 | $as_echo X/"$0" | | |
451 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
452 | s//\1/ | |
453 | q | |
454 | } | |
455 | /^X\/\(\/\/\)$/{ | |
456 | s//\1/ | |
457 | q | |
458 | } | |
459 | /^X\/\(\/\).*/{ | |
460 | s//\1/ | |
461 | q | |
462 | } | |
463 | s/.*/./; q'` | |
464 | ||
465 | # Avoid depending upon Character Ranges. | |
466 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
467 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
468 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
469 | as_cr_digits='0123456789' | |
470 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
471 | ||
472 | ||
473 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
474 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
475 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
476 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
477 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
478 | sed -n ' | |
479 | p | |
480 | /[$]LINENO/= | |
481 | ' <$as_myself | | |
482 | sed ' | |
483 | s/[$]LINENO.*/&-/ | |
484 | t lineno | |
485 | b | |
486 | :lineno | |
487 | N | |
488 | :loop | |
489 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
490 | t loop | |
491 | s/-\n.*// | |
492 | ' >$as_me.lineno && | |
493 | chmod +x "$as_me.lineno" || | |
494 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
495 | ||
496 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have | |
497 | # already done that, so ensure we don't try to do so again and fall | |
498 | # in an infinite loop. This has already happened in practice. | |
499 | _as_can_reexec=no; export _as_can_reexec | |
500 | # Don't try to exec as it changes $[0], causing all sort of problems | |
501 | # (the dirname of $[0] is not the place where we might find the | |
502 | # original and so on. Autoconf is especially sensitive to this). | |
503 | . "./$as_me.lineno" | |
504 | # Exit status is that of the last command. | |
505 | exit | |
506 | } | |
507 | ||
508 | ECHO_C= ECHO_N= ECHO_T= | |
509 | case `echo -n x` in #((((( | |
510 | -n*) | |
511 | case `echo 'xy\c'` in | |
512 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
513 | xy) ECHO_C='\c';; | |
514 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
515 | ECHO_T=' ';; | |
516 | esac;; | |
517 | *) | |
518 | ECHO_N='-n';; | |
519 | esac | |
520 | ||
521 | rm -f conf$$ conf$$.exe conf$$.file | |
522 | if test -d conf$$.dir; then | |
523 | rm -f conf$$.dir/conf$$.file | |
524 | else | |
525 | rm -f conf$$.dir | |
526 | mkdir conf$$.dir 2>/dev/null | |
527 | fi | |
528 | if (echo >conf$$.file) 2>/dev/null; then | |
529 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
530 | as_ln_s='ln -s' | |
531 | # ... but there are two gotchas: | |
532 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
533 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
534 | # In both cases, we have to default to `cp -pR'. | |
535 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
536 | as_ln_s='cp -pR' | |
537 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
538 | as_ln_s=ln | |
539 | else | |
540 | as_ln_s='cp -pR' | |
541 | fi | |
542 | else | |
543 | as_ln_s='cp -pR' | |
544 | fi | |
545 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
546 | rmdir conf$$.dir 2>/dev/null | |
547 | ||
548 | if mkdir -p . 2>/dev/null; then | |
549 | as_mkdir_p='mkdir -p "$as_dir"' | |
550 | else | |
551 | test -d ./-p && rmdir ./-p | |
552 | as_mkdir_p=false | |
553 | fi | |
554 | ||
555 | as_test_x='test -x' | |
556 | as_executable_p=as_fn_executable_p | |
557 | ||
558 | # Sed expression to map a string onto a valid CPP name. | |
559 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
560 | ||
561 | # Sed expression to map a string onto a valid variable name. | |
562 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
563 | ||
564 | SHELL=${CONFIG_SHELL-/bin/sh} | |
565 | ||
566 | ||
567 | test -n "$DJDIR" || exec 7<&0 </dev/null | |
568 | exec 6>&1 | |
569 | ||
570 | # Name of the host. | |
571 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
572 | # so uname gets run too. | |
573 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
574 | ||
575 | # | |
576 | # Initializations. | |
577 | # | |
578 | ac_default_prefix=/usr/local | |
579 | ac_clean_files= | |
580 | ac_config_libobj_dir=. | |
581 | LIBOBJS= | |
582 | cross_compiling=no | |
583 | subdirs= | |
584 | MFLAGS= | |
585 | MAKEFLAGS= | |
586 | ||
587 | # Identity of this package. | |
588 | PACKAGE_NAME='package-unused' | |
589 | PACKAGE_TARNAME='libbacktrace' | |
590 | PACKAGE_VERSION='version-unused' | |
591 | PACKAGE_STRING='package-unused version-unused' | |
592 | PACKAGE_BUGREPORT='' | |
593 | PACKAGE_URL='' | |
594 | ||
595 | ac_unique_file="backtrace.h" | |
596 | # Factoring default headers for most tests. | |
597 | ac_includes_default="\ | |
598 | #include <stdio.h> | |
599 | #ifdef HAVE_SYS_TYPES_H | |
600 | # include <sys/types.h> | |
601 | #endif | |
602 | #ifdef HAVE_SYS_STAT_H | |
603 | # include <sys/stat.h> | |
604 | #endif | |
605 | #ifdef STDC_HEADERS | |
606 | # include <stdlib.h> | |
607 | # include <stddef.h> | |
608 | #else | |
609 | # ifdef HAVE_STDLIB_H | |
610 | # include <stdlib.h> | |
611 | # endif | |
612 | #endif | |
613 | #ifdef HAVE_STRING_H | |
614 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
615 | # include <memory.h> | |
616 | # endif | |
617 | # include <string.h> | |
618 | #endif | |
619 | #ifdef HAVE_STRINGS_H | |
620 | # include <strings.h> | |
621 | #endif | |
622 | #ifdef HAVE_INTTYPES_H | |
623 | # include <inttypes.h> | |
624 | #endif | |
625 | #ifdef HAVE_STDINT_H | |
626 | # include <stdint.h> | |
627 | #endif | |
628 | #ifdef HAVE_UNISTD_H | |
629 | # include <unistd.h> | |
630 | #endif" | |
631 | ||
632 | ac_subst_vars='am__EXEEXT_FALSE | |
633 | am__EXEEXT_TRUE | |
634 | LTLIBOBJS | |
635 | LIBOBJS | |
636 | NATIVE_FALSE | |
637 | NATIVE_TRUE | |
638 | HAVE_LIBLZMA_FALSE | |
639 | HAVE_LIBLZMA_TRUE | |
640 | HAVE_MINIDEBUG_FALSE | |
641 | HAVE_MINIDEBUG_TRUE | |
642 | HAVE_COMM_FALSE | |
643 | HAVE_COMM_TRUE | |
644 | COMM | |
645 | HAVE_XZ_FALSE | |
646 | HAVE_XZ_TRUE | |
647 | XZ | |
648 | USE_DSYMUTIL_FALSE | |
649 | USE_DSYMUTIL_TRUE | |
650 | HAVE_OBJCOPY_DEBUGLINK_FALSE | |
651 | HAVE_OBJCOPY_DEBUGLINK_TRUE | |
652 | READELF | |
653 | OBJCOPY | |
654 | HAVE_COMPRESSED_DEBUG_FALSE | |
655 | HAVE_COMPRESSED_DEBUG_TRUE | |
656 | HAVE_ZLIB_FALSE | |
657 | HAVE_ZLIB_TRUE | |
658 | HAVE_DWARF5_FALSE | |
659 | HAVE_DWARF5_TRUE | |
660 | HAVE_PTHREAD_FALSE | |
661 | HAVE_PTHREAD_TRUE | |
662 | PTHREAD_CFLAGS | |
663 | CLOCK_GETTIME_LINK | |
664 | BACKTRACE_USES_MALLOC | |
665 | ALLOC_FILE | |
666 | VIEW_FILE | |
667 | BACKTRACE_SUPPORTS_DATA | |
668 | BACKTRACE_SUPPORTED | |
669 | HAVE_ELF_FALSE | |
670 | HAVE_ELF_TRUE | |
671 | FORMAT_FILE | |
672 | BACKTRACE_SUPPORTS_THREADS | |
673 | CET_HOST_FLAGS | |
674 | PIC_FLAG | |
675 | WARN_FLAGS | |
676 | EXTRA_FLAGS | |
677 | BACKTRACE_FILE | |
678 | OTOOL64 | |
679 | OTOOL | |
680 | LIPO | |
681 | NMEDIT | |
682 | DSYMUTIL | |
683 | AR | |
684 | OBJDUMP | |
685 | LN_S | |
686 | NM | |
687 | ac_ct_DUMPBIN | |
688 | DUMPBIN | |
689 | LD | |
690 | FGREP | |
691 | SED | |
692 | LIBTOOL | |
693 | HAVE_DWZ_FALSE | |
694 | HAVE_DWZ_TRUE | |
695 | DWZ | |
696 | RANLIB | |
697 | MAINT | |
698 | MAINTAINER_MODE_FALSE | |
699 | MAINTAINER_MODE_TRUE | |
700 | AM_BACKSLASH | |
701 | AM_DEFAULT_VERBOSITY | |
702 | AM_DEFAULT_V | |
703 | AM_V | |
704 | am__untar | |
705 | am__tar | |
706 | AMTAR | |
707 | am__leading_dot | |
708 | SET_MAKE | |
709 | AWK | |
710 | mkdir_p | |
711 | MKDIR_P | |
712 | INSTALL_STRIP_PROGRAM | |
713 | STRIP | |
714 | install_sh | |
715 | MAKEINFO | |
716 | AUTOHEADER | |
717 | AUTOMAKE | |
718 | AUTOCONF | |
719 | ACLOCAL | |
720 | VERSION | |
721 | PACKAGE | |
722 | CYGPATH_W | |
723 | am__isrc | |
724 | INSTALL_DATA | |
725 | INSTALL_SCRIPT | |
726 | INSTALL_PROGRAM | |
727 | libtool_VERSION | |
728 | EGREP | |
729 | GREP | |
730 | CPP | |
731 | OBJEXT | |
732 | EXEEXT | |
733 | ac_ct_CC | |
734 | CPPFLAGS | |
735 | LDFLAGS | |
736 | CFLAGS | |
737 | CC | |
738 | target_os | |
739 | target_vendor | |
740 | target_cpu | |
741 | target | |
742 | host_os | |
743 | host_vendor | |
744 | host_cpu | |
745 | host | |
746 | build_os | |
747 | build_vendor | |
748 | build_cpu | |
749 | build | |
750 | multi_basedir | |
751 | target_alias | |
752 | host_alias | |
753 | build_alias | |
754 | LIBS | |
755 | ECHO_T | |
756 | ECHO_N | |
757 | ECHO_C | |
758 | DEFS | |
759 | mandir | |
760 | localedir | |
761 | libdir | |
762 | psdir | |
763 | pdfdir | |
764 | dvidir | |
765 | htmldir | |
766 | infodir | |
767 | docdir | |
768 | oldincludedir | |
769 | includedir | |
770 | localstatedir | |
771 | sharedstatedir | |
772 | sysconfdir | |
773 | datadir | |
774 | datarootdir | |
775 | libexecdir | |
776 | sbindir | |
777 | bindir | |
778 | program_transform_name | |
779 | prefix | |
780 | exec_prefix | |
781 | PACKAGE_URL | |
782 | PACKAGE_BUGREPORT | |
783 | PACKAGE_STRING | |
784 | PACKAGE_VERSION | |
785 | PACKAGE_TARNAME | |
786 | PACKAGE_NAME | |
787 | PATH_SEPARATOR | |
788 | SHELL' | |
789 | ac_subst_files='' | |
790 | ac_user_opts=' | |
791 | enable_option_checking | |
792 | enable_multilib | |
793 | enable_silent_rules | |
794 | enable_maintainer_mode | |
795 | with_target_subdir | |
796 | enable_shared | |
797 | enable_static | |
798 | with_pic | |
799 | enable_fast_install | |
800 | with_gnu_ld | |
801 | enable_libtool_lock | |
802 | enable_largefile | |
803 | enable_cet | |
804 | with_system_libunwind | |
805 | enable_host_shared | |
806 | ' | |
807 | ac_precious_vars='build_alias | |
808 | host_alias | |
809 | target_alias | |
810 | CC | |
811 | CFLAGS | |
812 | LDFLAGS | |
813 | LIBS | |
814 | CPPFLAGS | |
815 | CPP | |
816 | OBJCOPY | |
817 | DSYMUTIL | |
818 | NM' | |
819 | ||
820 | ||
821 | # Initialize some variables set by options. | |
822 | ac_init_help= | |
823 | ac_init_version=false | |
824 | ac_unrecognized_opts= | |
825 | ac_unrecognized_sep= | |
826 | # The variables have the same names as the options, with | |
827 | # dashes changed to underlines. | |
828 | cache_file=/dev/null | |
829 | exec_prefix=NONE | |
830 | no_create= | |
831 | no_recursion= | |
832 | prefix=NONE | |
833 | program_prefix=NONE | |
834 | program_suffix=NONE | |
835 | program_transform_name=s,x,x, | |
836 | silent= | |
837 | site= | |
838 | srcdir= | |
839 | verbose= | |
840 | x_includes=NONE | |
841 | x_libraries=NONE | |
842 | ||
843 | # Installation directory options. | |
844 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
845 | # and all the variables that are supposed to be based on exec_prefix | |
846 | # by default will actually change. | |
847 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
848 | # (The list follows the same order as the GNU Coding Standards.) | |
849 | bindir='${exec_prefix}/bin' | |
850 | sbindir='${exec_prefix}/sbin' | |
851 | libexecdir='${exec_prefix}/libexec' | |
852 | datarootdir='${prefix}/share' | |
853 | datadir='${datarootdir}' | |
854 | sysconfdir='${prefix}/etc' | |
855 | sharedstatedir='${prefix}/com' | |
856 | localstatedir='${prefix}/var' | |
857 | includedir='${prefix}/include' | |
858 | oldincludedir='/usr/include' | |
859 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
860 | infodir='${datarootdir}/info' | |
861 | htmldir='${docdir}' | |
862 | dvidir='${docdir}' | |
863 | pdfdir='${docdir}' | |
864 | psdir='${docdir}' | |
865 | libdir='${exec_prefix}/lib' | |
866 | localedir='${datarootdir}/locale' | |
867 | mandir='${datarootdir}/man' | |
868 | ||
869 | ac_prev= | |
870 | ac_dashdash= | |
871 | for ac_option | |
872 | do | |
873 | # If the previous option needs an argument, assign it. | |
874 | if test -n "$ac_prev"; then | |
875 | eval $ac_prev=\$ac_option | |
876 | ac_prev= | |
877 | continue | |
878 | fi | |
879 | ||
880 | case $ac_option in | |
881 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
882 | *=) ac_optarg= ;; | |
883 | *) ac_optarg=yes ;; | |
884 | esac | |
885 | ||
886 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
887 | ||
888 | case $ac_dashdash$ac_option in | |
889 | --) | |
890 | ac_dashdash=yes ;; | |
891 | ||
892 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
893 | ac_prev=bindir ;; | |
894 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
895 | bindir=$ac_optarg ;; | |
896 | ||
897 | -build | --build | --buil | --bui | --bu) | |
898 | ac_prev=build_alias ;; | |
899 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
900 | build_alias=$ac_optarg ;; | |
901 | ||
902 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
903 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
904 | ac_prev=cache_file ;; | |
905 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
906 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
907 | cache_file=$ac_optarg ;; | |
908 | ||
909 | --config-cache | -C) | |
910 | cache_file=config.cache ;; | |
911 | ||
912 | -datadir | --datadir | --datadi | --datad) | |
913 | ac_prev=datadir ;; | |
914 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
915 | datadir=$ac_optarg ;; | |
916 | ||
917 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
918 | | --dataroo | --dataro | --datar) | |
919 | ac_prev=datarootdir ;; | |
920 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
921 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
922 | datarootdir=$ac_optarg ;; | |
923 | ||
924 | -disable-* | --disable-*) | |
925 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
926 | # Reject names that are not valid shell variable names. | |
927 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
928 | as_fn_error $? "invalid feature name: $ac_useropt" | |
929 | ac_useropt_orig=$ac_useropt | |
930 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
931 | case $ac_user_opts in | |
932 | *" | |
933 | "enable_$ac_useropt" | |
934 | "*) ;; | |
935 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
936 | ac_unrecognized_sep=', ';; | |
937 | esac | |
938 | eval enable_$ac_useropt=no ;; | |
939 | ||
940 | -docdir | --docdir | --docdi | --doc | --do) | |
941 | ac_prev=docdir ;; | |
942 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
943 | docdir=$ac_optarg ;; | |
944 | ||
945 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
946 | ac_prev=dvidir ;; | |
947 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
948 | dvidir=$ac_optarg ;; | |
949 | ||
950 | -enable-* | --enable-*) | |
951 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
952 | # Reject names that are not valid shell variable names. | |
953 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
954 | as_fn_error $? "invalid feature name: $ac_useropt" | |
955 | ac_useropt_orig=$ac_useropt | |
956 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
957 | case $ac_user_opts in | |
958 | *" | |
959 | "enable_$ac_useropt" | |
960 | "*) ;; | |
961 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
962 | ac_unrecognized_sep=', ';; | |
963 | esac | |
964 | eval enable_$ac_useropt=\$ac_optarg ;; | |
965 | ||
966 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
967 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
968 | | --exec | --exe | --ex) | |
969 | ac_prev=exec_prefix ;; | |
970 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
971 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
972 | | --exec=* | --exe=* | --ex=*) | |
973 | exec_prefix=$ac_optarg ;; | |
974 | ||
975 | -gas | --gas | --ga | --g) | |
976 | # Obsolete; use --with-gas. | |
977 | with_gas=yes ;; | |
978 | ||
979 | -help | --help | --hel | --he | -h) | |
980 | ac_init_help=long ;; | |
981 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
982 | ac_init_help=recursive ;; | |
983 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
984 | ac_init_help=short ;; | |
985 | ||
986 | -host | --host | --hos | --ho) | |
987 | ac_prev=host_alias ;; | |
988 | -host=* | --host=* | --hos=* | --ho=*) | |
989 | host_alias=$ac_optarg ;; | |
990 | ||
991 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
992 | ac_prev=htmldir ;; | |
993 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
994 | | --ht=*) | |
995 | htmldir=$ac_optarg ;; | |
996 | ||
997 | -includedir | --includedir | --includedi | --included | --include \ | |
998 | | --includ | --inclu | --incl | --inc) | |
999 | ac_prev=includedir ;; | |
1000 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1001 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1002 | includedir=$ac_optarg ;; | |
1003 | ||
1004 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1005 | ac_prev=infodir ;; | |
1006 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1007 | infodir=$ac_optarg ;; | |
1008 | ||
1009 | -libdir | --libdir | --libdi | --libd) | |
1010 | ac_prev=libdir ;; | |
1011 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1012 | libdir=$ac_optarg ;; | |
1013 | ||
1014 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1015 | | --libexe | --libex | --libe) | |
1016 | ac_prev=libexecdir ;; | |
1017 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1018 | | --libexe=* | --libex=* | --libe=*) | |
1019 | libexecdir=$ac_optarg ;; | |
1020 | ||
1021 | -localedir | --localedir | --localedi | --localed | --locale) | |
1022 | ac_prev=localedir ;; | |
1023 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1024 | localedir=$ac_optarg ;; | |
1025 | ||
1026 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1027 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1028 | ac_prev=localstatedir ;; | |
1029 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1030 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1031 | localstatedir=$ac_optarg ;; | |
1032 | ||
1033 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1034 | ac_prev=mandir ;; | |
1035 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1036 | mandir=$ac_optarg ;; | |
1037 | ||
1038 | -nfp | --nfp | --nf) | |
1039 | # Obsolete; use --without-fp. | |
1040 | with_fp=no ;; | |
1041 | ||
1042 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1043 | | --no-cr | --no-c | -n) | |
1044 | no_create=yes ;; | |
1045 | ||
1046 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1047 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1048 | no_recursion=yes ;; | |
1049 | ||
1050 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1051 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1052 | | --oldin | --oldi | --old | --ol | --o) | |
1053 | ac_prev=oldincludedir ;; | |
1054 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1055 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1056 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1057 | oldincludedir=$ac_optarg ;; | |
1058 | ||
1059 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1060 | ac_prev=prefix ;; | |
1061 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1062 | prefix=$ac_optarg ;; | |
1063 | ||
1064 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1065 | | --program-pre | --program-pr | --program-p) | |
1066 | ac_prev=program_prefix ;; | |
1067 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1068 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1069 | program_prefix=$ac_optarg ;; | |
1070 | ||
1071 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1072 | | --program-suf | --program-su | --program-s) | |
1073 | ac_prev=program_suffix ;; | |
1074 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1075 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1076 | program_suffix=$ac_optarg ;; | |
1077 | ||
1078 | -program-transform-name | --program-transform-name \ | |
1079 | | --program-transform-nam | --program-transform-na \ | |
1080 | | --program-transform-n | --program-transform- \ | |
1081 | | --program-transform | --program-transfor \ | |
1082 | | --program-transfo | --program-transf \ | |
1083 | | --program-trans | --program-tran \ | |
1084 | | --progr-tra | --program-tr | --program-t) | |
1085 | ac_prev=program_transform_name ;; | |
1086 | -program-transform-name=* | --program-transform-name=* \ | |
1087 | | --program-transform-nam=* | --program-transform-na=* \ | |
1088 | | --program-transform-n=* | --program-transform-=* \ | |
1089 | | --program-transform=* | --program-transfor=* \ | |
1090 | | --program-transfo=* | --program-transf=* \ | |
1091 | | --program-trans=* | --program-tran=* \ | |
1092 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1093 | program_transform_name=$ac_optarg ;; | |
1094 | ||
1095 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1096 | ac_prev=pdfdir ;; | |
1097 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1098 | pdfdir=$ac_optarg ;; | |
1099 | ||
1100 | -psdir | --psdir | --psdi | --psd | --ps) | |
1101 | ac_prev=psdir ;; | |
1102 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1103 | psdir=$ac_optarg ;; | |
1104 | ||
1105 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1106 | | -silent | --silent | --silen | --sile | --sil) | |
1107 | silent=yes ;; | |
1108 | ||
1109 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1110 | ac_prev=sbindir ;; | |
1111 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1112 | | --sbi=* | --sb=*) | |
1113 | sbindir=$ac_optarg ;; | |
1114 | ||
1115 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1116 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1117 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1118 | | --sha | --sh) | |
1119 | ac_prev=sharedstatedir ;; | |
1120 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1121 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1122 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1123 | | --sha=* | --sh=*) | |
1124 | sharedstatedir=$ac_optarg ;; | |
1125 | ||
1126 | -site | --site | --sit) | |
1127 | ac_prev=site ;; | |
1128 | -site=* | --site=* | --sit=*) | |
1129 | site=$ac_optarg ;; | |
1130 | ||
1131 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1132 | ac_prev=srcdir ;; | |
1133 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1134 | srcdir=$ac_optarg ;; | |
1135 | ||
1136 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1137 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1138 | ac_prev=sysconfdir ;; | |
1139 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1140 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1141 | sysconfdir=$ac_optarg ;; | |
1142 | ||
1143 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1144 | ac_prev=target_alias ;; | |
1145 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1146 | target_alias=$ac_optarg ;; | |
1147 | ||
1148 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1149 | verbose=yes ;; | |
1150 | ||
1151 | -version | --version | --versio | --versi | --vers | -V) | |
1152 | ac_init_version=: ;; | |
1153 | ||
1154 | -with-* | --with-*) | |
1155 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1156 | # Reject names that are not valid shell variable names. | |
1157 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1158 | as_fn_error $? "invalid package name: $ac_useropt" | |
1159 | ac_useropt_orig=$ac_useropt | |
1160 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1161 | case $ac_user_opts in | |
1162 | *" | |
1163 | "with_$ac_useropt" | |
1164 | "*) ;; | |
1165 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1166 | ac_unrecognized_sep=', ';; | |
1167 | esac | |
1168 | eval with_$ac_useropt=\$ac_optarg ;; | |
1169 | ||
1170 | -without-* | --without-*) | |
1171 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1172 | # Reject names that are not valid shell variable names. | |
1173 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1174 | as_fn_error $? "invalid package name: $ac_useropt" | |
1175 | ac_useropt_orig=$ac_useropt | |
1176 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1177 | case $ac_user_opts in | |
1178 | *" | |
1179 | "with_$ac_useropt" | |
1180 | "*) ;; | |
1181 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1182 | ac_unrecognized_sep=', ';; | |
1183 | esac | |
1184 | eval with_$ac_useropt=no ;; | |
1185 | ||
1186 | --x) | |
1187 | # Obsolete; use --with-x. | |
1188 | with_x=yes ;; | |
1189 | ||
1190 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1191 | | --x-incl | --x-inc | --x-in | --x-i) | |
1192 | ac_prev=x_includes ;; | |
1193 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1194 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1195 | x_includes=$ac_optarg ;; | |
1196 | ||
1197 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1198 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1199 | ac_prev=x_libraries ;; | |
1200 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1201 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1202 | x_libraries=$ac_optarg ;; | |
1203 | ||
1204 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
1205 | Try \`$0 --help' for more information" | |
1206 | ;; | |
1207 | ||
1208 | *=*) | |
1209 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1210 | # Reject names that are not valid shell variable names. | |
1211 | case $ac_envvar in #( | |
1212 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1213 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1214 | esac | |
1215 | eval $ac_envvar=\$ac_optarg | |
1216 | export $ac_envvar ;; | |
1217 | ||
1218 | *) | |
1219 | # FIXME: should be removed in autoconf 3.0. | |
1220 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1221 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1222 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1223 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
1224 | ;; | |
1225 | ||
1226 | esac | |
1227 | done | |
1228 | ||
1229 | if test -n "$ac_prev"; then | |
1230 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1231 | as_fn_error $? "missing argument to $ac_option" | |
1232 | fi | |
1233 | ||
1234 | if test -n "$ac_unrecognized_opts"; then | |
1235 | case $enable_option_checking in | |
1236 | no) ;; | |
1237 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1238 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1239 | esac | |
1240 | fi | |
1241 | ||
1242 | # Check all directory arguments for consistency. | |
1243 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1244 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1245 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1246 | libdir localedir mandir | |
1247 | do | |
1248 | eval ac_val=\$$ac_var | |
1249 | # Remove trailing slashes. | |
1250 | case $ac_val in | |
1251 | */ ) | |
1252 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1253 | eval $ac_var=\$ac_val;; | |
1254 | esac | |
1255 | # Be sure to have absolute directory names. | |
1256 | case $ac_val in | |
1257 | [\\/$]* | ?:[\\/]* ) continue;; | |
1258 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1259 | esac | |
1260 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1261 | done | |
1262 | ||
1263 | # There might be people who depend on the old broken behavior: `$host' | |
1264 | # used to hold the argument of --host etc. | |
1265 | # FIXME: To remove some day. | |
1266 | build=$build_alias | |
1267 | host=$host_alias | |
1268 | target=$target_alias | |
1269 | ||
1270 | # FIXME: To remove some day. | |
1271 | if test "x$host_alias" != x; then | |
1272 | if test "x$build_alias" = x; then | |
1273 | cross_compiling=maybe | |
1274 | elif test "x$build_alias" != "x$host_alias"; then | |
1275 | cross_compiling=yes | |
1276 | fi | |
1277 | fi | |
1278 | ||
1279 | ac_tool_prefix= | |
1280 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1281 | ||
1282 | test "$silent" = yes && exec 6>/dev/null | |
1283 | ||
1284 | ||
1285 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1286 | ac_ls_di=`ls -di .` && | |
1287 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1288 | as_fn_error $? "working directory cannot be determined" | |
1289 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1290 | as_fn_error $? "pwd does not report name of working directory" | |
1291 | ||
1292 | ||
1293 | # Find the source files, if location was not specified. | |
1294 | if test -z "$srcdir"; then | |
1295 | ac_srcdir_defaulted=yes | |
1296 | # Try the directory containing this script, then the parent directory. | |
1297 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1298 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1299 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1300 | X"$as_myself" : 'X\(//\)$' \| \ | |
1301 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1302 | $as_echo X"$as_myself" | | |
1303 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1304 | s//\1/ | |
1305 | q | |
1306 | } | |
1307 | /^X\(\/\/\)[^/].*/{ | |
1308 | s//\1/ | |
1309 | q | |
1310 | } | |
1311 | /^X\(\/\/\)$/{ | |
1312 | s//\1/ | |
1313 | q | |
1314 | } | |
1315 | /^X\(\/\).*/{ | |
1316 | s//\1/ | |
1317 | q | |
1318 | } | |
1319 | s/.*/./; q'` | |
1320 | srcdir=$ac_confdir | |
1321 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1322 | srcdir=.. | |
1323 | fi | |
1324 | else | |
1325 | ac_srcdir_defaulted=no | |
1326 | fi | |
1327 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1328 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1329 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1330 | fi | |
1331 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1332 | ac_abs_confdir=`( | |
1333 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1334 | pwd)` | |
1335 | # When building in place, set srcdir=. | |
1336 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1337 | srcdir=. | |
1338 | fi | |
1339 | # Remove unnecessary trailing slashes from srcdir. | |
1340 | # Double slashes in file names in object file debugging info | |
1341 | # mess up M-x gdb in Emacs. | |
1342 | case $srcdir in | |
1343 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1344 | esac | |
1345 | for ac_var in $ac_precious_vars; do | |
1346 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1347 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1348 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1349 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1350 | done | |
1351 | ||
1352 | # | |
1353 | # Report the --help message. | |
1354 | # | |
1355 | if test "$ac_init_help" = "long"; then | |
1356 | # Omit some internal or obsolete options to make the list less imposing. | |
1357 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1358 | cat <<_ACEOF | |
1359 | \`configure' configures package-unused version-unused to adapt to many kinds of systems. | |
1360 | ||
1361 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1362 | ||
1363 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1364 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1365 | ||
1366 | Defaults for the options are specified in brackets. | |
1367 | ||
1368 | Configuration: | |
1369 | -h, --help display this help and exit | |
1370 | --help=short display options specific to this package | |
1371 | --help=recursive display the short help of all the included packages | |
1372 | -V, --version display version information and exit | |
1373 | -q, --quiet, --silent do not print \`checking ...' messages | |
1374 | --cache-file=FILE cache test results in FILE [disabled] | |
1375 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1376 | -n, --no-create do not create output files | |
1377 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1378 | ||
1379 | Installation directories: | |
1380 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1381 | [$ac_default_prefix] | |
1382 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1383 | [PREFIX] | |
1384 | ||
1385 | By default, \`make install' will install all the files in | |
1386 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1387 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1388 | for instance \`--prefix=\$HOME'. | |
1389 | ||
1390 | For better control, use the options below. | |
1391 | ||
1392 | Fine tuning of the installation directories: | |
1393 | --bindir=DIR user executables [EPREFIX/bin] | |
1394 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1395 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1396 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1397 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1398 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1399 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1400 | --includedir=DIR C header files [PREFIX/include] | |
1401 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1402 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1403 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1404 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1405 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1406 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1407 | --docdir=DIR documentation root [DATAROOTDIR/doc/libbacktrace] | |
1408 | --htmldir=DIR html documentation [DOCDIR] | |
1409 | --dvidir=DIR dvi documentation [DOCDIR] | |
1410 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1411 | --psdir=DIR ps documentation [DOCDIR] | |
1412 | _ACEOF | |
1413 | ||
1414 | cat <<\_ACEOF | |
1415 | ||
1416 | Program names: | |
1417 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1418 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1419 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1420 | ||
1421 | System types: | |
1422 | --build=BUILD configure for building on BUILD [guessed] | |
1423 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1424 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1425 | _ACEOF | |
1426 | fi | |
1427 | ||
1428 | if test -n "$ac_init_help"; then | |
1429 | case $ac_init_help in | |
1430 | short | recursive ) echo "Configuration of package-unused version-unused:";; | |
1431 | esac | |
1432 | cat <<\_ACEOF | |
1433 | ||
1434 | Optional Features: | |
1435 | --disable-option-checking ignore unrecognized --enable/--with options | |
1436 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1437 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1438 | --enable-multilib build many library versions (default) | |
1439 | --enable-silent-rules less verbose build output (undo: "make V=1") | |
1440 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1441 | --enable-maintainer-mode | |
1442 | enable make rules and dependencies not useful (and | |
1443 | sometimes confusing) to the casual installer | |
1444 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
1445 | --enable-static[=PKGS] build static libraries [default=yes] | |
1446 | --enable-fast-install[=PKGS] | |
1447 | optimize for fast installation [default=yes] | |
1448 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1449 | --disable-largefile omit support for large files | |
1450 | --enable-cet enable Intel CET in target libraries [default=auto] | |
1451 | --enable-host-shared build host code as shared libraries | |
1452 | --enable-cet enable Intel CET in host libraries [default=auto] | |
1453 | ||
1454 | Optional Packages: | |
1455 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1456 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1457 | --with-target-subdir=SUBDIR Configuring in a subdirectory for target | |
1458 | --with-pic try to use only PIC/non-PIC objects [default=use | |
1459 | both] | |
1460 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1461 | --with-system-libunwind use installed libunwind | |
1462 | ||
1463 | Some influential environment variables: | |
1464 | CC C compiler command | |
1465 | CFLAGS C compiler flags | |
1466 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1467 | nonstandard directory <lib dir> | |
1468 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1469 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1470 | you have headers in a nonstandard directory <include dir> | |
1471 | CPP C preprocessor | |
1472 | OBJCOPY location of objcopy | |
1473 | DSYMUTIL location of dsymutil | |
1474 | NM location of nm | |
1475 | ||
1476 | Use these variables to override the choices made by `configure' or to help | |
1477 | it to find libraries and programs with nonstandard names/locations. | |
1478 | ||
1479 | Report bugs to the package provider. | |
1480 | _ACEOF | |
1481 | ac_status=$? | |
1482 | fi | |
1483 | ||
1484 | if test "$ac_init_help" = "recursive"; then | |
1485 | # If there are subdirs, report their specific --help. | |
1486 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1487 | test -d "$ac_dir" || | |
1488 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1489 | continue | |
1490 | ac_builddir=. | |
1491 | ||
1492 | case "$ac_dir" in | |
1493 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1494 | *) | |
1495 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1496 | # A ".." for each directory in $ac_dir_suffix. | |
1497 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1498 | case $ac_top_builddir_sub in | |
1499 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1500 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1501 | esac ;; | |
1502 | esac | |
1503 | ac_abs_top_builddir=$ac_pwd | |
1504 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1505 | # for backward compatibility: | |
1506 | ac_top_builddir=$ac_top_build_prefix | |
1507 | ||
1508 | case $srcdir in | |
1509 | .) # We are building in place. | |
1510 | ac_srcdir=. | |
1511 | ac_top_srcdir=$ac_top_builddir_sub | |
1512 | ac_abs_top_srcdir=$ac_pwd ;; | |
1513 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1514 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1515 | ac_top_srcdir=$srcdir | |
1516 | ac_abs_top_srcdir=$srcdir ;; | |
1517 | *) # Relative name. | |
1518 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1519 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1520 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1521 | esac | |
1522 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1523 | ||
1524 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1525 | # Check for guested configure. | |
1526 | if test -f "$ac_srcdir/configure.gnu"; then | |
1527 | echo && | |
1528 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1529 | elif test -f "$ac_srcdir/configure"; then | |
1530 | echo && | |
1531 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1532 | else | |
1533 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1534 | fi || ac_status=$? | |
1535 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1536 | done | |
1537 | fi | |
1538 | ||
1539 | test -n "$ac_init_help" && exit $ac_status | |
1540 | if $ac_init_version; then | |
1541 | cat <<\_ACEOF | |
1542 | package-unused configure version-unused | |
1543 | generated by GNU Autoconf 2.69 | |
1544 | ||
1545 | Copyright (C) 2012 Free Software Foundation, Inc. | |
1546 | This configure script is free software; the Free Software Foundation | |
1547 | gives unlimited permission to copy, distribute and modify it. | |
1548 | _ACEOF | |
1549 | exit | |
1550 | fi | |
1551 | ||
1552 | ## ------------------------ ## | |
1553 | ## Autoconf initialization. ## | |
1554 | ## ------------------------ ## | |
1555 | ||
1556 | # ac_fn_c_try_compile LINENO | |
1557 | # -------------------------- | |
1558 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1559 | ac_fn_c_try_compile () | |
1560 | { | |
1561 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1562 | rm -f conftest.$ac_objext | |
1563 | if { { ac_try="$ac_compile" | |
1564 | case "(($ac_try" in | |
1565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1566 | *) ac_try_echo=$ac_try;; | |
1567 | esac | |
1568 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1569 | $as_echo "$ac_try_echo"; } >&5 | |
1570 | (eval "$ac_compile") 2>conftest.err | |
1571 | ac_status=$? | |
1572 | if test -s conftest.err; then | |
1573 | grep -v '^ *+' conftest.err >conftest.er1 | |
1574 | cat conftest.er1 >&5 | |
1575 | mv -f conftest.er1 conftest.err | |
1576 | fi | |
1577 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1578 | test $ac_status = 0; } && { | |
1579 | test -z "$ac_c_werror_flag" || | |
1580 | test ! -s conftest.err | |
1581 | } && test -s conftest.$ac_objext; then : | |
1582 | ac_retval=0 | |
1583 | else | |
1584 | $as_echo "$as_me: failed program was:" >&5 | |
1585 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1586 | ||
1587 | ac_retval=1 | |
1588 | fi | |
1589 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1590 | as_fn_set_status $ac_retval | |
1591 | ||
1592 | } # ac_fn_c_try_compile | |
1593 | ||
1594 | # ac_fn_c_try_cpp LINENO | |
1595 | # ---------------------- | |
1596 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1597 | ac_fn_c_try_cpp () | |
1598 | { | |
1599 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1600 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1601 | case "(($ac_try" in | |
1602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1603 | *) ac_try_echo=$ac_try;; | |
1604 | esac | |
1605 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1606 | $as_echo "$ac_try_echo"; } >&5 | |
1607 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1608 | ac_status=$? | |
1609 | if test -s conftest.err; then | |
1610 | grep -v '^ *+' conftest.err >conftest.er1 | |
1611 | cat conftest.er1 >&5 | |
1612 | mv -f conftest.er1 conftest.err | |
1613 | fi | |
1614 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1615 | test $ac_status = 0; } > conftest.i && { | |
1616 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1617 | test ! -s conftest.err | |
1618 | }; then : | |
1619 | ac_retval=0 | |
1620 | else | |
1621 | $as_echo "$as_me: failed program was:" >&5 | |
1622 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1623 | ||
1624 | ac_retval=1 | |
1625 | fi | |
1626 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1627 | as_fn_set_status $ac_retval | |
1628 | ||
1629 | } # ac_fn_c_try_cpp | |
1630 | ||
1631 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1632 | # ------------------------------------------------------- | |
1633 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1634 | # the include files in INCLUDES and setting the cache variable VAR | |
1635 | # accordingly. | |
1636 | ac_fn_c_check_header_mongrel () | |
1637 | { | |
1638 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1639 | if eval \${$3+:} false; then : | |
1640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1641 | $as_echo_n "checking for $2... " >&6; } | |
1642 | if eval \${$3+:} false; then : | |
1643 | $as_echo_n "(cached) " >&6 | |
1644 | fi | |
1645 | eval ac_res=\$$3 | |
1646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1647 | $as_echo "$ac_res" >&6; } | |
1648 | else | |
1649 | # Is the header compilable? | |
1650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1651 | $as_echo_n "checking $2 usability... " >&6; } | |
1652 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1653 | /* end confdefs.h. */ | |
1654 | $4 | |
1655 | #include <$2> | |
1656 | _ACEOF | |
1657 | if ac_fn_c_try_compile "$LINENO"; then : | |
1658 | ac_header_compiler=yes | |
1659 | else | |
1660 | ac_header_compiler=no | |
1661 | fi | |
1662 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1664 | $as_echo "$ac_header_compiler" >&6; } | |
1665 | ||
1666 | # Is the header present? | |
1667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1668 | $as_echo_n "checking $2 presence... " >&6; } | |
1669 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1670 | /* end confdefs.h. */ | |
1671 | #include <$2> | |
1672 | _ACEOF | |
1673 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1674 | ac_header_preproc=yes | |
1675 | else | |
1676 | ac_header_preproc=no | |
1677 | fi | |
1678 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1680 | $as_echo "$ac_header_preproc" >&6; } | |
1681 | ||
1682 | # So? What about this header? | |
1683 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1684 | yes:no: ) | |
1685 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1686 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1687 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1688 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1689 | ;; | |
1690 | no:yes:* ) | |
1691 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1692 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1693 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1694 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1695 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1696 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1697 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1698 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1699 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1700 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1701 | ;; | |
1702 | esac | |
1703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1704 | $as_echo_n "checking for $2... " >&6; } | |
1705 | if eval \${$3+:} false; then : | |
1706 | $as_echo_n "(cached) " >&6 | |
1707 | else | |
1708 | eval "$3=\$ac_header_compiler" | |
1709 | fi | |
1710 | eval ac_res=\$$3 | |
1711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1712 | $as_echo "$ac_res" >&6; } | |
1713 | fi | |
1714 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1715 | ||
1716 | } # ac_fn_c_check_header_mongrel | |
1717 | ||
1718 | # ac_fn_c_try_run LINENO | |
1719 | # ---------------------- | |
1720 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1721 | # that executables *can* be run. | |
1722 | ac_fn_c_try_run () | |
1723 | { | |
1724 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1725 | if { { ac_try="$ac_link" | |
1726 | case "(($ac_try" in | |
1727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1728 | *) ac_try_echo=$ac_try;; | |
1729 | esac | |
1730 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1731 | $as_echo "$ac_try_echo"; } >&5 | |
1732 | (eval "$ac_link") 2>&5 | |
1733 | ac_status=$? | |
1734 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1735 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1736 | { { case "(($ac_try" in | |
1737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1738 | *) ac_try_echo=$ac_try;; | |
1739 | esac | |
1740 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1741 | $as_echo "$ac_try_echo"; } >&5 | |
1742 | (eval "$ac_try") 2>&5 | |
1743 | ac_status=$? | |
1744 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1745 | test $ac_status = 0; }; }; then : | |
1746 | ac_retval=0 | |
1747 | else | |
1748 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1749 | $as_echo "$as_me: failed program was:" >&5 | |
1750 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1751 | ||
1752 | ac_retval=$ac_status | |
1753 | fi | |
1754 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1755 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1756 | as_fn_set_status $ac_retval | |
1757 | ||
1758 | } # ac_fn_c_try_run | |
1759 | ||
1760 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1761 | # ------------------------------------------------------- | |
1762 | # Tests whether HEADER exists and can be compiled using the include files in | |
1763 | # INCLUDES, setting the cache variable VAR accordingly. | |
1764 | ac_fn_c_check_header_compile () | |
1765 | { | |
1766 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1768 | $as_echo_n "checking for $2... " >&6; } | |
1769 | if eval \${$3+:} false; then : | |
1770 | $as_echo_n "(cached) " >&6 | |
1771 | else | |
1772 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1773 | /* end confdefs.h. */ | |
1774 | $4 | |
1775 | #include <$2> | |
1776 | _ACEOF | |
1777 | if ac_fn_c_try_compile "$LINENO"; then : | |
1778 | eval "$3=yes" | |
1779 | else | |
1780 | eval "$3=no" | |
1781 | fi | |
1782 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1783 | fi | |
1784 | eval ac_res=\$$3 | |
1785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1786 | $as_echo "$ac_res" >&6; } | |
1787 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1788 | ||
1789 | } # ac_fn_c_check_header_compile | |
1790 | ||
1791 | # ac_fn_c_try_link LINENO | |
1792 | # ----------------------- | |
1793 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1794 | ac_fn_c_try_link () | |
1795 | { | |
1796 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1797 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1798 | if { { ac_try="$ac_link" | |
1799 | case "(($ac_try" in | |
1800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1801 | *) ac_try_echo=$ac_try;; | |
1802 | esac | |
1803 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1804 | $as_echo "$ac_try_echo"; } >&5 | |
1805 | (eval "$ac_link") 2>conftest.err | |
1806 | ac_status=$? | |
1807 | if test -s conftest.err; then | |
1808 | grep -v '^ *+' conftest.err >conftest.er1 | |
1809 | cat conftest.er1 >&5 | |
1810 | mv -f conftest.er1 conftest.err | |
1811 | fi | |
1812 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1813 | test $ac_status = 0; } && { | |
1814 | test -z "$ac_c_werror_flag" || | |
1815 | test ! -s conftest.err | |
1816 | } && test -s conftest$ac_exeext && { | |
1817 | test "$cross_compiling" = yes || | |
1818 | test -x conftest$ac_exeext | |
1819 | }; then : | |
1820 | ac_retval=0 | |
1821 | else | |
1822 | $as_echo "$as_me: failed program was:" >&5 | |
1823 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1824 | ||
1825 | ac_retval=1 | |
1826 | fi | |
1827 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1828 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1829 | # interfere with the next link command; also delete a directory that is | |
1830 | # left behind by Apple's compiler. We do this before executing the actions. | |
1831 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1832 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1833 | as_fn_set_status $ac_retval | |
1834 | ||
1835 | } # ac_fn_c_try_link | |
1836 | ||
1837 | # ac_fn_c_check_func LINENO FUNC VAR | |
1838 | # ---------------------------------- | |
1839 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1840 | ac_fn_c_check_func () | |
1841 | { | |
1842 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1844 | $as_echo_n "checking for $2... " >&6; } | |
1845 | if eval \${$3+:} false; then : | |
1846 | $as_echo_n "(cached) " >&6 | |
1847 | else | |
1848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1849 | /* end confdefs.h. */ | |
1850 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1851 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1852 | #define $2 innocuous_$2 | |
1853 | ||
1854 | /* System header to define __stub macros and hopefully few prototypes, | |
1855 | which can conflict with char $2 (); below. | |
1856 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1857 | <limits.h> exists even on freestanding compilers. */ | |
1858 | ||
1859 | #ifdef __STDC__ | |
1860 | # include <limits.h> | |
1861 | #else | |
1862 | # include <assert.h> | |
1863 | #endif | |
1864 | ||
1865 | #undef $2 | |
1866 | ||
1867 | /* Override any GCC internal prototype to avoid an error. | |
1868 | Use char because int might match the return type of a GCC | |
1869 | builtin and then its argument prototype would still apply. */ | |
1870 | #ifdef __cplusplus | |
1871 | extern "C" | |
1872 | #endif | |
1873 | char $2 (); | |
1874 | /* The GNU C library defines this for functions which it implements | |
1875 | to always fail with ENOSYS. Some functions are actually named | |
1876 | something starting with __ and the normal name is an alias. */ | |
1877 | #if defined __stub_$2 || defined __stub___$2 | |
1878 | choke me | |
1879 | #endif | |
1880 | ||
1881 | int | |
1882 | main () | |
1883 | { | |
1884 | return $2 (); | |
1885 | ; | |
1886 | return 0; | |
1887 | } | |
1888 | _ACEOF | |
1889 | if ac_fn_c_try_link "$LINENO"; then : | |
1890 | eval "$3=yes" | |
1891 | else | |
1892 | eval "$3=no" | |
1893 | fi | |
1894 | rm -f core conftest.err conftest.$ac_objext \ | |
1895 | conftest$ac_exeext conftest.$ac_ext | |
1896 | fi | |
1897 | eval ac_res=\$$3 | |
1898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1899 | $as_echo "$ac_res" >&6; } | |
1900 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1901 | ||
1902 | } # ac_fn_c_check_func | |
1903 | ||
1904 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
1905 | # ------------------------------------------- | |
1906 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1907 | # variable VAR accordingly. | |
1908 | ac_fn_c_check_type () | |
1909 | { | |
1910 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1912 | $as_echo_n "checking for $2... " >&6; } | |
1913 | if eval \${$3+:} false; then : | |
1914 | $as_echo_n "(cached) " >&6 | |
1915 | else | |
1916 | eval "$3=no" | |
1917 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1918 | /* end confdefs.h. */ | |
1919 | $4 | |
1920 | int | |
1921 | main () | |
1922 | { | |
1923 | if (sizeof ($2)) | |
1924 | return 0; | |
1925 | ; | |
1926 | return 0; | |
1927 | } | |
1928 | _ACEOF | |
1929 | if ac_fn_c_try_compile "$LINENO"; then : | |
1930 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1931 | /* end confdefs.h. */ | |
1932 | $4 | |
1933 | int | |
1934 | main () | |
1935 | { | |
1936 | if (sizeof (($2))) | |
1937 | return 0; | |
1938 | ; | |
1939 | return 0; | |
1940 | } | |
1941 | _ACEOF | |
1942 | if ac_fn_c_try_compile "$LINENO"; then : | |
1943 | ||
1944 | else | |
1945 | eval "$3=yes" | |
1946 | fi | |
1947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1948 | fi | |
1949 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1950 | fi | |
1951 | eval ac_res=\$$3 | |
1952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1953 | $as_echo "$ac_res" >&6; } | |
1954 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1955 | ||
1956 | } # ac_fn_c_check_type | |
1957 | ||
1958 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
1959 | # -------------------------------------------- | |
1960 | # Tries to find the compile-time value of EXPR in a program that includes | |
1961 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
1962 | # computed | |
1963 | ac_fn_c_compute_int () | |
1964 | { | |
1965 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1966 | if test "$cross_compiling" = yes; then | |
1967 | # Depending upon the size, compute the lo and hi bounds. | |
1968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1969 | /* end confdefs.h. */ | |
1970 | $4 | |
1971 | int | |
1972 | main () | |
1973 | { | |
1974 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
1975 | test_array [0] = 0; | |
1976 | return test_array [0]; | |
1977 | ||
1978 | ; | |
1979 | return 0; | |
1980 | } | |
1981 | _ACEOF | |
1982 | if ac_fn_c_try_compile "$LINENO"; then : | |
1983 | ac_lo=0 ac_mid=0 | |
1984 | while :; do | |
1985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1986 | /* end confdefs.h. */ | |
1987 | $4 | |
1988 | int | |
1989 | main () | |
1990 | { | |
1991 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
1992 | test_array [0] = 0; | |
1993 | return test_array [0]; | |
1994 | ||
1995 | ; | |
1996 | return 0; | |
1997 | } | |
1998 | _ACEOF | |
1999 | if ac_fn_c_try_compile "$LINENO"; then : | |
2000 | ac_hi=$ac_mid; break | |
2001 | else | |
2002 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
2003 | if test $ac_lo -le $ac_mid; then | |
2004 | ac_lo= ac_hi= | |
2005 | break | |
2006 | fi | |
2007 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
2008 | fi | |
2009 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2010 | done | |
2011 | else | |
2012 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2013 | /* end confdefs.h. */ | |
2014 | $4 | |
2015 | int | |
2016 | main () | |
2017 | { | |
2018 | static int test_array [1 - 2 * !(($2) < 0)]; | |
2019 | test_array [0] = 0; | |
2020 | return test_array [0]; | |
2021 | ||
2022 | ; | |
2023 | return 0; | |
2024 | } | |
2025 | _ACEOF | |
2026 | if ac_fn_c_try_compile "$LINENO"; then : | |
2027 | ac_hi=-1 ac_mid=-1 | |
2028 | while :; do | |
2029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2030 | /* end confdefs.h. */ | |
2031 | $4 | |
2032 | int | |
2033 | main () | |
2034 | { | |
2035 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
2036 | test_array [0] = 0; | |
2037 | return test_array [0]; | |
2038 | ||
2039 | ; | |
2040 | return 0; | |
2041 | } | |
2042 | _ACEOF | |
2043 | if ac_fn_c_try_compile "$LINENO"; then : | |
2044 | ac_lo=$ac_mid; break | |
2045 | else | |
2046 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2047 | if test $ac_mid -le $ac_hi; then | |
2048 | ac_lo= ac_hi= | |
2049 | break | |
2050 | fi | |
2051 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
2052 | fi | |
2053 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2054 | done | |
2055 | else | |
2056 | ac_lo= ac_hi= | |
2057 | fi | |
2058 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2059 | fi | |
2060 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2061 | # Binary search between lo and hi bounds. | |
2062 | while test "x$ac_lo" != "x$ac_hi"; do | |
2063 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2065 | /* end confdefs.h. */ | |
2066 | $4 | |
2067 | int | |
2068 | main () | |
2069 | { | |
2070 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2071 | test_array [0] = 0; | |
2072 | return test_array [0]; | |
2073 | ||
2074 | ; | |
2075 | return 0; | |
2076 | } | |
2077 | _ACEOF | |
2078 | if ac_fn_c_try_compile "$LINENO"; then : | |
2079 | ac_hi=$ac_mid | |
2080 | else | |
2081 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2082 | fi | |
2083 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2084 | done | |
2085 | case $ac_lo in #(( | |
2086 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2087 | '') ac_retval=1 ;; | |
2088 | esac | |
2089 | else | |
2090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2091 | /* end confdefs.h. */ | |
2092 | $4 | |
2093 | static long int longval () { return $2; } | |
2094 | static unsigned long int ulongval () { return $2; } | |
2095 | #include <stdio.h> | |
2096 | #include <stdlib.h> | |
2097 | int | |
2098 | main () | |
2099 | { | |
2100 | ||
2101 | FILE *f = fopen ("conftest.val", "w"); | |
2102 | if (! f) | |
2103 | return 1; | |
2104 | if (($2) < 0) | |
2105 | { | |
2106 | long int i = longval (); | |
2107 | if (i != ($2)) | |
2108 | return 1; | |
2109 | fprintf (f, "%ld", i); | |
2110 | } | |
2111 | else | |
2112 | { | |
2113 | unsigned long int i = ulongval (); | |
2114 | if (i != ($2)) | |
2115 | return 1; | |
2116 | fprintf (f, "%lu", i); | |
2117 | } | |
2118 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2119 | on some platforms. */ | |
2120 | return ferror (f) || fclose (f) != 0; | |
2121 | ||
2122 | ; | |
2123 | return 0; | |
2124 | } | |
2125 | _ACEOF | |
2126 | if ac_fn_c_try_run "$LINENO"; then : | |
2127 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2128 | else | |
2129 | ac_retval=1 | |
2130 | fi | |
2131 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2132 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2133 | rm -f conftest.val | |
2134 | ||
2135 | fi | |
2136 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2137 | as_fn_set_status $ac_retval | |
2138 | ||
2139 | } # ac_fn_c_compute_int | |
2140 | ||
2141 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | |
2142 | # --------------------------------------------- | |
2143 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
2144 | # accordingly. | |
2145 | ac_fn_c_check_decl () | |
2146 | { | |
2147 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2148 | as_decl_name=`echo $2|sed 's/ *(.*//'` | |
2149 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2151 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
2152 | if eval \${$3+:} false; then : | |
2153 | $as_echo_n "(cached) " >&6 | |
2154 | else | |
2155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2156 | /* end confdefs.h. */ | |
2157 | $4 | |
2158 | int | |
2159 | main () | |
2160 | { | |
2161 | #ifndef $as_decl_name | |
2162 | #ifdef __cplusplus | |
2163 | (void) $as_decl_use; | |
2164 | #else | |
2165 | (void) $as_decl_name; | |
2166 | #endif | |
2167 | #endif | |
2168 | ||
2169 | ; | |
2170 | return 0; | |
2171 | } | |
2172 | _ACEOF | |
2173 | if ac_fn_c_try_compile "$LINENO"; then : | |
2174 | eval "$3=yes" | |
2175 | else | |
2176 | eval "$3=no" | |
2177 | fi | |
2178 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2179 | fi | |
2180 | eval ac_res=\$$3 | |
2181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2182 | $as_echo "$ac_res" >&6; } | |
2183 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2184 | ||
2185 | } # ac_fn_c_check_decl | |
2186 | cat >config.log <<_ACEOF | |
2187 | This file contains any messages produced by compilers while | |
2188 | running configure, to aid debugging if configure makes a mistake. | |
2189 | ||
2190 | It was created by package-unused $as_me version-unused, which was | |
2191 | generated by GNU Autoconf 2.69. Invocation command line was | |
2192 | ||
2193 | $ $0 $@ | |
2194 | ||
2195 | _ACEOF | |
2196 | exec 5>>config.log | |
2197 | { | |
2198 | cat <<_ASUNAME | |
2199 | ## --------- ## | |
2200 | ## Platform. ## | |
2201 | ## --------- ## | |
2202 | ||
2203 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2204 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2205 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2206 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2207 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2208 | ||
2209 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2210 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2211 | ||
2212 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2213 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2214 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2215 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2216 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2217 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2218 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2219 | ||
2220 | _ASUNAME | |
2221 | ||
2222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2223 | for as_dir in $PATH | |
2224 | do | |
2225 | IFS=$as_save_IFS | |
2226 | test -z "$as_dir" && as_dir=. | |
2227 | $as_echo "PATH: $as_dir" | |
2228 | done | |
2229 | IFS=$as_save_IFS | |
2230 | ||
2231 | } >&5 | |
2232 | ||
2233 | cat >&5 <<_ACEOF | |
2234 | ||
2235 | ||
2236 | ## ----------- ## | |
2237 | ## Core tests. ## | |
2238 | ## ----------- ## | |
2239 | ||
2240 | _ACEOF | |
2241 | ||
2242 | ||
2243 | # Keep a trace of the command line. | |
2244 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2245 | # Strip out --silent because we don't want to record it for future runs. | |
2246 | # Also quote any args containing shell meta-characters. | |
2247 | # Make two passes to allow for proper duplicate-argument suppression. | |
2248 | ac_configure_args= | |
2249 | ac_configure_args0= | |
2250 | ac_configure_args1= | |
2251 | ac_must_keep_next=false | |
2252 | for ac_pass in 1 2 | |
2253 | do | |
2254 | for ac_arg | |
2255 | do | |
2256 | case $ac_arg in | |
2257 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2258 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2259 | | -silent | --silent | --silen | --sile | --sil) | |
2260 | continue ;; | |
2261 | *\'*) | |
2262 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2263 | esac | |
2264 | case $ac_pass in | |
2265 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2266 | 2) | |
2267 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2268 | if test $ac_must_keep_next = true; then | |
2269 | ac_must_keep_next=false # Got value, back to normal. | |
2270 | else | |
2271 | case $ac_arg in | |
2272 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2273 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2274 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2275 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2276 | case "$ac_configure_args0 " in | |
2277 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2278 | esac | |
2279 | ;; | |
2280 | -* ) ac_must_keep_next=true ;; | |
2281 | esac | |
2282 | fi | |
2283 | as_fn_append ac_configure_args " '$ac_arg'" | |
2284 | ;; | |
2285 | esac | |
2286 | done | |
2287 | done | |
2288 | { ac_configure_args0=; unset ac_configure_args0;} | |
2289 | { ac_configure_args1=; unset ac_configure_args1;} | |
2290 | ||
2291 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2292 | # config.log. We remove comments because anyway the quotes in there | |
2293 | # would cause problems or look ugly. | |
2294 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2295 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2296 | trap 'exit_status=$? | |
2297 | # Save into config.log some information that might help in debugging. | |
2298 | { | |
2299 | echo | |
2300 | ||
2301 | $as_echo "## ---------------- ## | |
2302 | ## Cache variables. ## | |
2303 | ## ---------------- ##" | |
2304 | echo | |
2305 | # The following way of writing the cache mishandles newlines in values, | |
2306 | ( | |
2307 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2308 | eval ac_val=\$$ac_var | |
2309 | case $ac_val in #( | |
2310 | *${as_nl}*) | |
2311 | case $ac_var in #( | |
2312 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2313 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2314 | esac | |
2315 | case $ac_var in #( | |
2316 | _ | IFS | as_nl) ;; #( | |
2317 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2318 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2319 | esac ;; | |
2320 | esac | |
2321 | done | |
2322 | (set) 2>&1 | | |
2323 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2324 | *${as_nl}ac_space=\ *) | |
2325 | sed -n \ | |
2326 | "s/'\''/'\''\\\\'\'''\''/g; | |
2327 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2328 | ;; #( | |
2329 | *) | |
2330 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2331 | ;; | |
2332 | esac | | |
2333 | sort | |
2334 | ) | |
2335 | echo | |
2336 | ||
2337 | $as_echo "## ----------------- ## | |
2338 | ## Output variables. ## | |
2339 | ## ----------------- ##" | |
2340 | echo | |
2341 | for ac_var in $ac_subst_vars | |
2342 | do | |
2343 | eval ac_val=\$$ac_var | |
2344 | case $ac_val in | |
2345 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2346 | esac | |
2347 | $as_echo "$ac_var='\''$ac_val'\''" | |
2348 | done | sort | |
2349 | echo | |
2350 | ||
2351 | if test -n "$ac_subst_files"; then | |
2352 | $as_echo "## ------------------- ## | |
2353 | ## File substitutions. ## | |
2354 | ## ------------------- ##" | |
2355 | echo | |
2356 | for ac_var in $ac_subst_files | |
2357 | do | |
2358 | eval ac_val=\$$ac_var | |
2359 | case $ac_val in | |
2360 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2361 | esac | |
2362 | $as_echo "$ac_var='\''$ac_val'\''" | |
2363 | done | sort | |
2364 | echo | |
2365 | fi | |
2366 | ||
2367 | if test -s confdefs.h; then | |
2368 | $as_echo "## ----------- ## | |
2369 | ## confdefs.h. ## | |
2370 | ## ----------- ##" | |
2371 | echo | |
2372 | cat confdefs.h | |
2373 | echo | |
2374 | fi | |
2375 | test "$ac_signal" != 0 && | |
2376 | $as_echo "$as_me: caught signal $ac_signal" | |
2377 | $as_echo "$as_me: exit $exit_status" | |
2378 | } >&5 | |
2379 | rm -f core *.core core.conftest.* && | |
2380 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2381 | exit $exit_status | |
2382 | ' 0 | |
2383 | for ac_signal in 1 2 13 15; do | |
2384 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2385 | done | |
2386 | ac_signal=0 | |
2387 | ||
2388 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2389 | rm -f -r conftest* confdefs.h | |
2390 | ||
2391 | $as_echo "/* confdefs.h */" > confdefs.h | |
2392 | ||
2393 | # Predefined preprocessor variables. | |
2394 | ||
2395 | cat >>confdefs.h <<_ACEOF | |
2396 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2397 | _ACEOF | |
2398 | ||
2399 | cat >>confdefs.h <<_ACEOF | |
2400 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2401 | _ACEOF | |
2402 | ||
2403 | cat >>confdefs.h <<_ACEOF | |
2404 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2405 | _ACEOF | |
2406 | ||
2407 | cat >>confdefs.h <<_ACEOF | |
2408 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2409 | _ACEOF | |
2410 | ||
2411 | cat >>confdefs.h <<_ACEOF | |
2412 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2413 | _ACEOF | |
2414 | ||
2415 | cat >>confdefs.h <<_ACEOF | |
2416 | #define PACKAGE_URL "$PACKAGE_URL" | |
2417 | _ACEOF | |
2418 | ||
2419 | ||
2420 | # Let the site file select an alternate cache file if it wants to. | |
2421 | # Prefer an explicitly selected file to automatically selected ones. | |
2422 | ac_site_file1=NONE | |
2423 | ac_site_file2=NONE | |
2424 | if test -n "$CONFIG_SITE"; then | |
2425 | # We do not want a PATH search for config.site. | |
2426 | case $CONFIG_SITE in #(( | |
2427 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2428 | */*) ac_site_file1=$CONFIG_SITE;; | |
2429 | *) ac_site_file1=./$CONFIG_SITE;; | |
2430 | esac | |
2431 | elif test "x$prefix" != xNONE; then | |
2432 | ac_site_file1=$prefix/share/config.site | |
2433 | ac_site_file2=$prefix/etc/config.site | |
2434 | else | |
2435 | ac_site_file1=$ac_default_prefix/share/config.site | |
2436 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2437 | fi | |
2438 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2439 | do | |
2440 | test "x$ac_site_file" = xNONE && continue | |
2441 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2442 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2443 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2444 | sed 's/^/| /' "$ac_site_file" >&5 | |
2445 | . "$ac_site_file" \ | |
2446 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2447 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2448 | as_fn_error $? "failed to load site script $ac_site_file | |
2449 | See \`config.log' for more details" "$LINENO" 5; } | |
2450 | fi | |
2451 | done | |
2452 | ||
2453 | if test -r "$cache_file"; then | |
2454 | # Some versions of bash will fail to source /dev/null (special files | |
2455 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2456 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2457 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2458 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2459 | case $cache_file in | |
2460 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2461 | *) . "./$cache_file";; | |
2462 | esac | |
2463 | fi | |
2464 | else | |
2465 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2466 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2467 | >$cache_file | |
2468 | fi | |
2469 | ||
2470 | # Check that the precious variables saved in the cache have kept the same | |
2471 | # value. | |
2472 | ac_cache_corrupted=false | |
2473 | for ac_var in $ac_precious_vars; do | |
2474 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2475 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2476 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2477 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2478 | case $ac_old_set,$ac_new_set in | |
2479 | set,) | |
2480 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2481 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2482 | ac_cache_corrupted=: ;; | |
2483 | ,set) | |
2484 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2485 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2486 | ac_cache_corrupted=: ;; | |
2487 | ,);; | |
2488 | *) | |
2489 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2490 | # differences in whitespace do not lead to failure. | |
2491 | ac_old_val_w=`echo x $ac_old_val` | |
2492 | ac_new_val_w=`echo x $ac_new_val` | |
2493 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2494 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2495 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2496 | ac_cache_corrupted=: | |
2497 | else | |
2498 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2499 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2500 | eval $ac_var=\$ac_old_val | |
2501 | fi | |
2502 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2503 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2504 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2505 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2506 | fi;; | |
2507 | esac | |
2508 | # Pass precious variables to config.status. | |
2509 | if test "$ac_new_set" = set; then | |
2510 | case $ac_new_val in | |
2511 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2512 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2513 | esac | |
2514 | case " $ac_configure_args " in | |
2515 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2516 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2517 | esac | |
2518 | fi | |
2519 | done | |
2520 | if $ac_cache_corrupted; then | |
2521 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2522 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2523 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2524 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2525 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2526 | fi | |
2527 | ## -------------------- ## | |
2528 | ## Main body of script. ## | |
2529 | ## -------------------- ## | |
2530 | ||
2531 | ac_ext=c | |
2532 | ac_cpp='$CPP $CPPFLAGS' | |
2533 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2534 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2535 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2536 | ||
2537 | ||
2538 | ||
2539 | ||
2540 | ||
2541 | ||
2542 | ac_config_headers="$ac_config_headers config.h" | |
2543 | ||
2544 | ||
2545 | if test -n "${with_target_subdir}"; then | |
2546 | # Default to --enable-multilib | |
2547 | # Check whether --enable-multilib was given. | |
2548 | if test "${enable_multilib+set}" = set; then : | |
2549 | enableval=$enable_multilib; case "$enableval" in | |
2550 | yes) multilib=yes ;; | |
2551 | no) multilib=no ;; | |
2552 | *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;; | |
2553 | esac | |
2554 | else | |
2555 | multilib=yes | |
2556 | fi | |
2557 | ||
2558 | ||
2559 | # We may get other options which we leave undocumented: | |
2560 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
2561 | # See config-ml.in if you want the gory details. | |
2562 | ||
2563 | if test "$srcdir" = "."; then | |
2564 | if test "$with_target_subdir" != "."; then | |
2565 | multi_basedir="$srcdir/$with_multisrctop../.." | |
2566 | else | |
2567 | multi_basedir="$srcdir/$with_multisrctop.." | |
2568 | fi | |
2569 | else | |
2570 | multi_basedir="$srcdir/.." | |
2571 | fi | |
2572 | ||
2573 | ||
2574 | # Even if the default multilib is not a cross compilation, | |
2575 | # it may be that some of the other multilibs are. | |
2576 | if test $cross_compiling = no && test $multilib = yes \ | |
2577 | && test "x${with_multisubdir}" != x ; then | |
2578 | cross_compiling=maybe | |
2579 | fi | |
2580 | ||
2581 | ac_config_commands="$ac_config_commands default-1" | |
2582 | ||
2583 | fi | |
2584 | ||
2585 | ac_aux_dir= | |
2586 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2587 | if test -f "$ac_dir/install-sh"; then | |
2588 | ac_aux_dir=$ac_dir | |
2589 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2590 | break | |
2591 | elif test -f "$ac_dir/install.sh"; then | |
2592 | ac_aux_dir=$ac_dir | |
2593 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2594 | break | |
2595 | elif test -f "$ac_dir/shtool"; then | |
2596 | ac_aux_dir=$ac_dir | |
2597 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2598 | break | |
2599 | fi | |
2600 | done | |
2601 | if test -z "$ac_aux_dir"; then | |
2602 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
2603 | fi | |
2604 | ||
2605 | # These three variables are undocumented and unsupported, | |
2606 | # and are intended to be withdrawn in a future Autoconf release. | |
2607 | # They can cause serious problems if a builder's source tree is in a directory | |
2608 | # whose full name contains unusual characters. | |
2609 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2610 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2611 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2612 | ||
2613 | ||
2614 | # Make sure we can run config.sub. | |
2615 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2616 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2617 | ||
2618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2619 | $as_echo_n "checking build system type... " >&6; } | |
2620 | if ${ac_cv_build+:} false; then : | |
2621 | $as_echo_n "(cached) " >&6 | |
2622 | else | |
2623 | ac_build_alias=$build_alias | |
2624 | test "x$ac_build_alias" = x && | |
2625 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2626 | test "x$ac_build_alias" = x && | |
2627 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
2628 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2629 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2630 | ||
2631 | fi | |
2632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2633 | $as_echo "$ac_cv_build" >&6; } | |
2634 | case $ac_cv_build in | |
2635 | *-*-*) ;; | |
2636 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
2637 | esac | |
2638 | build=$ac_cv_build | |
2639 | ac_save_IFS=$IFS; IFS='-' | |
2640 | set x $ac_cv_build | |
2641 | shift | |
2642 | build_cpu=$1 | |
2643 | build_vendor=$2 | |
2644 | shift; shift | |
2645 | # Remember, the first character of IFS is used to create $*, | |
2646 | # except with old shells: | |
2647 | build_os=$* | |
2648 | IFS=$ac_save_IFS | |
2649 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2650 | ||
2651 | ||
2652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2653 | $as_echo_n "checking host system type... " >&6; } | |
2654 | if ${ac_cv_host+:} false; then : | |
2655 | $as_echo_n "(cached) " >&6 | |
2656 | else | |
2657 | if test "x$host_alias" = x; then | |
2658 | ac_cv_host=$ac_cv_build | |
2659 | else | |
2660 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2661 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2662 | fi | |
2663 | ||
2664 | fi | |
2665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2666 | $as_echo "$ac_cv_host" >&6; } | |
2667 | case $ac_cv_host in | |
2668 | *-*-*) ;; | |
2669 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
2670 | esac | |
2671 | host=$ac_cv_host | |
2672 | ac_save_IFS=$IFS; IFS='-' | |
2673 | set x $ac_cv_host | |
2674 | shift | |
2675 | host_cpu=$1 | |
2676 | host_vendor=$2 | |
2677 | shift; shift | |
2678 | # Remember, the first character of IFS is used to create $*, | |
2679 | # except with old shells: | |
2680 | host_os=$* | |
2681 | IFS=$ac_save_IFS | |
2682 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2683 | ||
2684 | ||
2685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | |
2686 | $as_echo_n "checking target system type... " >&6; } | |
2687 | if ${ac_cv_target+:} false; then : | |
2688 | $as_echo_n "(cached) " >&6 | |
2689 | else | |
2690 | if test "x$target_alias" = x; then | |
2691 | ac_cv_target=$ac_cv_host | |
2692 | else | |
2693 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2694 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2695 | fi | |
2696 | ||
2697 | fi | |
2698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
2699 | $as_echo "$ac_cv_target" >&6; } | |
2700 | case $ac_cv_target in | |
2701 | *-*-*) ;; | |
2702 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | |
2703 | esac | |
2704 | target=$ac_cv_target | |
2705 | ac_save_IFS=$IFS; IFS='-' | |
2706 | set x $ac_cv_target | |
2707 | shift | |
2708 | target_cpu=$1 | |
2709 | target_vendor=$2 | |
2710 | shift; shift | |
2711 | # Remember, the first character of IFS is used to create $*, | |
2712 | # except with old shells: | |
2713 | target_os=$* | |
2714 | IFS=$ac_save_IFS | |
2715 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
2716 | ||
2717 | ||
2718 | # The aliases save the names the user supplied, while $host etc. | |
2719 | # will get canonicalized. | |
2720 | test -n "$target_alias" && | |
2721 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2722 | NONENONEs,x,x, && | |
2723 | program_prefix=${target_alias}- | |
2724 | ||
2725 | target_alias=${target_alias-$host_alias} | |
2726 | ||
2727 | # Expand $ac_aux_dir to an absolute path. | |
2728 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
2729 | ||
2730 | ac_ext=c | |
2731 | ac_cpp='$CPP $CPPFLAGS' | |
2732 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2733 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2734 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2735 | if test -n "$ac_tool_prefix"; then | |
2736 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2737 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2739 | $as_echo_n "checking for $ac_word... " >&6; } | |
2740 | if ${ac_cv_prog_CC+:} false; then : | |
2741 | $as_echo_n "(cached) " >&6 | |
2742 | else | |
2743 | if test -n "$CC"; then | |
2744 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2745 | else | |
2746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2747 | for as_dir in $PATH | |
2748 | do | |
2749 | IFS=$as_save_IFS | |
2750 | test -z "$as_dir" && as_dir=. | |
2751 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2752 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2753 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2754 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2755 | break 2 | |
2756 | fi | |
2757 | done | |
2758 | done | |
2759 | IFS=$as_save_IFS | |
2760 | ||
2761 | fi | |
2762 | fi | |
2763 | CC=$ac_cv_prog_CC | |
2764 | if test -n "$CC"; then | |
2765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2766 | $as_echo "$CC" >&6; } | |
2767 | else | |
2768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2769 | $as_echo "no" >&6; } | |
2770 | fi | |
2771 | ||
2772 | ||
2773 | fi | |
2774 | if test -z "$ac_cv_prog_CC"; then | |
2775 | ac_ct_CC=$CC | |
2776 | # Extract the first word of "gcc", so it can be a program name with args. | |
2777 | set dummy gcc; ac_word=$2 | |
2778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2779 | $as_echo_n "checking for $ac_word... " >&6; } | |
2780 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
2781 | $as_echo_n "(cached) " >&6 | |
2782 | else | |
2783 | if test -n "$ac_ct_CC"; then | |
2784 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2785 | else | |
2786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2787 | for as_dir in $PATH | |
2788 | do | |
2789 | IFS=$as_save_IFS | |
2790 | test -z "$as_dir" && as_dir=. | |
2791 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2792 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2793 | ac_cv_prog_ac_ct_CC="gcc" | |
2794 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2795 | break 2 | |
2796 | fi | |
2797 | done | |
2798 | done | |
2799 | IFS=$as_save_IFS | |
2800 | ||
2801 | fi | |
2802 | fi | |
2803 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2804 | if test -n "$ac_ct_CC"; then | |
2805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2806 | $as_echo "$ac_ct_CC" >&6; } | |
2807 | else | |
2808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2809 | $as_echo "no" >&6; } | |
2810 | fi | |
2811 | ||
2812 | if test "x$ac_ct_CC" = x; then | |
2813 | CC="" | |
2814 | else | |
2815 | case $cross_compiling:$ac_tool_warned in | |
2816 | yes:) | |
2817 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2818 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2819 | ac_tool_warned=yes ;; | |
2820 | esac | |
2821 | CC=$ac_ct_CC | |
2822 | fi | |
2823 | else | |
2824 | CC="$ac_cv_prog_CC" | |
2825 | fi | |
2826 | ||
2827 | if test -z "$CC"; then | |
2828 | if test -n "$ac_tool_prefix"; then | |
2829 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2830 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2832 | $as_echo_n "checking for $ac_word... " >&6; } | |
2833 | if ${ac_cv_prog_CC+:} false; then : | |
2834 | $as_echo_n "(cached) " >&6 | |
2835 | else | |
2836 | if test -n "$CC"; then | |
2837 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2838 | else | |
2839 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2840 | for as_dir in $PATH | |
2841 | do | |
2842 | IFS=$as_save_IFS | |
2843 | test -z "$as_dir" && as_dir=. | |
2844 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2845 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2846 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2847 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2848 | break 2 | |
2849 | fi | |
2850 | done | |
2851 | done | |
2852 | IFS=$as_save_IFS | |
2853 | ||
2854 | fi | |
2855 | fi | |
2856 | CC=$ac_cv_prog_CC | |
2857 | if test -n "$CC"; then | |
2858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2859 | $as_echo "$CC" >&6; } | |
2860 | else | |
2861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2862 | $as_echo "no" >&6; } | |
2863 | fi | |
2864 | ||
2865 | ||
2866 | fi | |
2867 | fi | |
2868 | if test -z "$CC"; then | |
2869 | # Extract the first word of "cc", so it can be a program name with args. | |
2870 | set dummy cc; ac_word=$2 | |
2871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2872 | $as_echo_n "checking for $ac_word... " >&6; } | |
2873 | if ${ac_cv_prog_CC+:} false; then : | |
2874 | $as_echo_n "(cached) " >&6 | |
2875 | else | |
2876 | if test -n "$CC"; then | |
2877 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2878 | else | |
2879 | ac_prog_rejected=no | |
2880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2881 | for as_dir in $PATH | |
2882 | do | |
2883 | IFS=$as_save_IFS | |
2884 | test -z "$as_dir" && as_dir=. | |
2885 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2886 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2887 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2888 | ac_prog_rejected=yes | |
2889 | continue | |
2890 | fi | |
2891 | ac_cv_prog_CC="cc" | |
2892 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2893 | break 2 | |
2894 | fi | |
2895 | done | |
2896 | done | |
2897 | IFS=$as_save_IFS | |
2898 | ||
2899 | if test $ac_prog_rejected = yes; then | |
2900 | # We found a bogon in the path, so make sure we never use it. | |
2901 | set dummy $ac_cv_prog_CC | |
2902 | shift | |
2903 | if test $# != 0; then | |
2904 | # We chose a different compiler from the bogus one. | |
2905 | # However, it has the same basename, so the bogon will be chosen | |
2906 | # first if we set CC to just the basename; use the full file name. | |
2907 | shift | |
2908 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2909 | fi | |
2910 | fi | |
2911 | fi | |
2912 | fi | |
2913 | CC=$ac_cv_prog_CC | |
2914 | if test -n "$CC"; then | |
2915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2916 | $as_echo "$CC" >&6; } | |
2917 | else | |
2918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2919 | $as_echo "no" >&6; } | |
2920 | fi | |
2921 | ||
2922 | ||
2923 | fi | |
2924 | if test -z "$CC"; then | |
2925 | if test -n "$ac_tool_prefix"; then | |
2926 | for ac_prog in cl.exe | |
2927 | do | |
2928 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2929 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2931 | $as_echo_n "checking for $ac_word... " >&6; } | |
2932 | if ${ac_cv_prog_CC+:} false; then : | |
2933 | $as_echo_n "(cached) " >&6 | |
2934 | else | |
2935 | if test -n "$CC"; then | |
2936 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2937 | else | |
2938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2939 | for as_dir in $PATH | |
2940 | do | |
2941 | IFS=$as_save_IFS | |
2942 | test -z "$as_dir" && as_dir=. | |
2943 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2944 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2945 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2946 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2947 | break 2 | |
2948 | fi | |
2949 | done | |
2950 | done | |
2951 | IFS=$as_save_IFS | |
2952 | ||
2953 | fi | |
2954 | fi | |
2955 | CC=$ac_cv_prog_CC | |
2956 | if test -n "$CC"; then | |
2957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2958 | $as_echo "$CC" >&6; } | |
2959 | else | |
2960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2961 | $as_echo "no" >&6; } | |
2962 | fi | |
2963 | ||
2964 | ||
2965 | test -n "$CC" && break | |
2966 | done | |
2967 | fi | |
2968 | if test -z "$CC"; then | |
2969 | ac_ct_CC=$CC | |
2970 | for ac_prog in cl.exe | |
2971 | do | |
2972 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2973 | set dummy $ac_prog; ac_word=$2 | |
2974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2975 | $as_echo_n "checking for $ac_word... " >&6; } | |
2976 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
2977 | $as_echo_n "(cached) " >&6 | |
2978 | else | |
2979 | if test -n "$ac_ct_CC"; then | |
2980 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2981 | else | |
2982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2983 | for as_dir in $PATH | |
2984 | do | |
2985 | IFS=$as_save_IFS | |
2986 | test -z "$as_dir" && as_dir=. | |
2987 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2988 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2989 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2990 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2991 | break 2 | |
2992 | fi | |
2993 | done | |
2994 | done | |
2995 | IFS=$as_save_IFS | |
2996 | ||
2997 | fi | |
2998 | fi | |
2999 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3000 | if test -n "$ac_ct_CC"; then | |
3001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3002 | $as_echo "$ac_ct_CC" >&6; } | |
3003 | else | |
3004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3005 | $as_echo "no" >&6; } | |
3006 | fi | |
3007 | ||
3008 | ||
3009 | test -n "$ac_ct_CC" && break | |
3010 | done | |
3011 | ||
3012 | if test "x$ac_ct_CC" = x; then | |
3013 | CC="" | |
3014 | else | |
3015 | case $cross_compiling:$ac_tool_warned in | |
3016 | yes:) | |
3017 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3018 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3019 | ac_tool_warned=yes ;; | |
3020 | esac | |
3021 | CC=$ac_ct_CC | |
3022 | fi | |
3023 | fi | |
3024 | ||
3025 | fi | |
3026 | ||
3027 | ||
3028 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3029 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3030 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
3031 | See \`config.log' for more details" "$LINENO" 5; } | |
3032 | ||
3033 | # Provide some information about the compiler. | |
3034 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3035 | set X $ac_compile | |
3036 | ac_compiler=$2 | |
3037 | for ac_option in --version -v -V -qversion; do | |
3038 | { { ac_try="$ac_compiler $ac_option >&5" | |
3039 | case "(($ac_try" in | |
3040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3041 | *) ac_try_echo=$ac_try;; | |
3042 | esac | |
3043 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3044 | $as_echo "$ac_try_echo"; } >&5 | |
3045 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3046 | ac_status=$? | |
3047 | if test -s conftest.err; then | |
3048 | sed '10a\ | |
3049 | ... rest of stderr output deleted ... | |
3050 | 10q' conftest.err >conftest.er1 | |
3051 | cat conftest.er1 >&5 | |
3052 | fi | |
3053 | rm -f conftest.er1 conftest.err | |
3054 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3055 | test $ac_status = 0; } | |
3056 | done | |
3057 | ||
3058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3059 | /* end confdefs.h. */ | |
3060 | ||
3061 | int | |
3062 | main () | |
3063 | { | |
3064 | ||
3065 | ; | |
3066 | return 0; | |
3067 | } | |
3068 | _ACEOF | |
3069 | ac_clean_files_save=$ac_clean_files | |
3070 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3071 | # Try to create an executable without -o first, disregard a.out. | |
3072 | # It will help us diagnose broken compilers, and finding out an intuition | |
3073 | # of exeext. | |
3074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3075 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3076 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3077 | ||
3078 | # The possible output files: | |
3079 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3080 | ||
3081 | ac_rmfiles= | |
3082 | for ac_file in $ac_files | |
3083 | do | |
3084 | case $ac_file in | |
3085 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3086 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3087 | esac | |
3088 | done | |
3089 | rm -f $ac_rmfiles | |
3090 | ||
3091 | if { { ac_try="$ac_link_default" | |
3092 | case "(($ac_try" in | |
3093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3094 | *) ac_try_echo=$ac_try;; | |
3095 | esac | |
3096 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3097 | $as_echo "$ac_try_echo"; } >&5 | |
3098 | (eval "$ac_link_default") 2>&5 | |
3099 | ac_status=$? | |
3100 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3101 | test $ac_status = 0; }; then : | |
3102 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3103 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3104 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3105 | # so that the user can short-circuit this test for compilers unknown to | |
3106 | # Autoconf. | |
3107 | for ac_file in $ac_files '' | |
3108 | do | |
3109 | test -f "$ac_file" || continue | |
3110 | case $ac_file in | |
3111 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3112 | ;; | |
3113 | [ab].out ) | |
3114 | # We found the default executable, but exeext='' is most | |
3115 | # certainly right. | |
3116 | break;; | |
3117 | *.* ) | |
3118 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3119 | then :; else | |
3120 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3121 | fi | |
3122 | # We set ac_cv_exeext here because the later test for it is not | |
3123 | # safe: cross compilers may not add the suffix if given an `-o' | |
3124 | # argument, so we may need to know it at that point already. | |
3125 | # Even if this section looks crufty: it has the advantage of | |
3126 | # actually working. | |
3127 | break;; | |
3128 | * ) | |
3129 | break;; | |
3130 | esac | |
3131 | done | |
3132 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3133 | ||
3134 | else | |
3135 | ac_file='' | |
3136 | fi | |
3137 | if test -z "$ac_file"; then : | |
3138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3139 | $as_echo "no" >&6; } | |
3140 | $as_echo "$as_me: failed program was:" >&5 | |
3141 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3142 | ||
3143 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3144 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3145 | as_fn_error 77 "C compiler cannot create executables | |
3146 | See \`config.log' for more details" "$LINENO" 5; } | |
3147 | else | |
3148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3149 | $as_echo "yes" >&6; } | |
3150 | fi | |
3151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3152 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3154 | $as_echo "$ac_file" >&6; } | |
3155 | ac_exeext=$ac_cv_exeext | |
3156 | ||
3157 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
3158 | ac_clean_files=$ac_clean_files_save | |
3159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3160 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3161 | if { { ac_try="$ac_link" | |
3162 | case "(($ac_try" in | |
3163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3164 | *) ac_try_echo=$ac_try;; | |
3165 | esac | |
3166 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3167 | $as_echo "$ac_try_echo"; } >&5 | |
3168 | (eval "$ac_link") 2>&5 | |
3169 | ac_status=$? | |
3170 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3171 | test $ac_status = 0; }; then : | |
3172 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3173 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3174 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3175 | # `rm'. | |
3176 | for ac_file in conftest.exe conftest conftest.*; do | |
3177 | test -f "$ac_file" || continue | |
3178 | case $ac_file in | |
3179 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3180 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3181 | break;; | |
3182 | * ) break;; | |
3183 | esac | |
3184 | done | |
3185 | else | |
3186 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3187 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3188 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3189 | See \`config.log' for more details" "$LINENO" 5; } | |
3190 | fi | |
3191 | rm -f conftest conftest$ac_cv_exeext | |
3192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3193 | $as_echo "$ac_cv_exeext" >&6; } | |
3194 | ||
3195 | rm -f conftest.$ac_ext | |
3196 | EXEEXT=$ac_cv_exeext | |
3197 | ac_exeext=$EXEEXT | |
3198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3199 | /* end confdefs.h. */ | |
3200 | #include <stdio.h> | |
3201 | int | |
3202 | main () | |
3203 | { | |
3204 | FILE *f = fopen ("conftest.out", "w"); | |
3205 | return ferror (f) || fclose (f) != 0; | |
3206 | ||
3207 | ; | |
3208 | return 0; | |
3209 | } | |
3210 | _ACEOF | |
3211 | ac_clean_files="$ac_clean_files conftest.out" | |
3212 | # Check that the compiler produces executables we can run. If not, either | |
3213 | # the compiler is broken, or we cross compile. | |
3214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3215 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3216 | if test "$cross_compiling" != yes; then | |
3217 | { { ac_try="$ac_link" | |
3218 | case "(($ac_try" in | |
3219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3220 | *) ac_try_echo=$ac_try;; | |
3221 | esac | |
3222 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3223 | $as_echo "$ac_try_echo"; } >&5 | |
3224 | (eval "$ac_link") 2>&5 | |
3225 | ac_status=$? | |
3226 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3227 | test $ac_status = 0; } | |
3228 | if { ac_try='./conftest$ac_cv_exeext' | |
3229 | { { case "(($ac_try" in | |
3230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3231 | *) ac_try_echo=$ac_try;; | |
3232 | esac | |
3233 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3234 | $as_echo "$ac_try_echo"; } >&5 | |
3235 | (eval "$ac_try") 2>&5 | |
3236 | ac_status=$? | |
3237 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3238 | test $ac_status = 0; }; }; then | |
3239 | cross_compiling=no | |
3240 | else | |
3241 | if test "$cross_compiling" = maybe; then | |
3242 | cross_compiling=yes | |
3243 | else | |
3244 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3245 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3246 | as_fn_error $? "cannot run C compiled programs. | |
3247 | If you meant to cross compile, use \`--host'. | |
3248 | See \`config.log' for more details" "$LINENO" 5; } | |
3249 | fi | |
3250 | fi | |
3251 | fi | |
3252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3253 | $as_echo "$cross_compiling" >&6; } | |
3254 | ||
3255 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3256 | ac_clean_files=$ac_clean_files_save | |
3257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3258 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3259 | if ${ac_cv_objext+:} false; then : | |
3260 | $as_echo_n "(cached) " >&6 | |
3261 | else | |
3262 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3263 | /* end confdefs.h. */ | |
3264 | ||
3265 | int | |
3266 | main () | |
3267 | { | |
3268 | ||
3269 | ; | |
3270 | return 0; | |
3271 | } | |
3272 | _ACEOF | |
3273 | rm -f conftest.o conftest.obj | |
3274 | if { { ac_try="$ac_compile" | |
3275 | case "(($ac_try" in | |
3276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3277 | *) ac_try_echo=$ac_try;; | |
3278 | esac | |
3279 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3280 | $as_echo "$ac_try_echo"; } >&5 | |
3281 | (eval "$ac_compile") 2>&5 | |
3282 | ac_status=$? | |
3283 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3284 | test $ac_status = 0; }; then : | |
3285 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3286 | test -f "$ac_file" || continue; | |
3287 | case $ac_file in | |
3288 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3289 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3290 | break;; | |
3291 | esac | |
3292 | done | |
3293 | else | |
3294 | $as_echo "$as_me: failed program was:" >&5 | |
3295 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3296 | ||
3297 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3298 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3299 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3300 | See \`config.log' for more details" "$LINENO" 5; } | |
3301 | fi | |
3302 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3303 | fi | |
3304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3305 | $as_echo "$ac_cv_objext" >&6; } | |
3306 | OBJEXT=$ac_cv_objext | |
3307 | ac_objext=$OBJEXT | |
3308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3309 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3310 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
3311 | $as_echo_n "(cached) " >&6 | |
3312 | else | |
3313 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3314 | /* end confdefs.h. */ | |
3315 | ||
3316 | int | |
3317 | main () | |
3318 | { | |
3319 | #ifndef __GNUC__ | |
3320 | choke me | |
3321 | #endif | |
3322 | ||
3323 | ; | |
3324 | return 0; | |
3325 | } | |
3326 | _ACEOF | |
3327 | if ac_fn_c_try_compile "$LINENO"; then : | |
3328 | ac_compiler_gnu=yes | |
3329 | else | |
3330 | ac_compiler_gnu=no | |
3331 | fi | |
3332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3333 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3334 | ||
3335 | fi | |
3336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3337 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3338 | if test $ac_compiler_gnu = yes; then | |
3339 | GCC=yes | |
3340 | else | |
3341 | GCC= | |
3342 | fi | |
3343 | ac_test_CFLAGS=${CFLAGS+set} | |
3344 | ac_save_CFLAGS=$CFLAGS | |
3345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3346 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3347 | if ${ac_cv_prog_cc_g+:} false; then : | |
3348 | $as_echo_n "(cached) " >&6 | |
3349 | else | |
3350 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3351 | ac_c_werror_flag=yes | |
3352 | ac_cv_prog_cc_g=no | |
3353 | CFLAGS="-g" | |
3354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3355 | /* end confdefs.h. */ | |
3356 | ||
3357 | int | |
3358 | main () | |
3359 | { | |
3360 | ||
3361 | ; | |
3362 | return 0; | |
3363 | } | |
3364 | _ACEOF | |
3365 | if ac_fn_c_try_compile "$LINENO"; then : | |
3366 | ac_cv_prog_cc_g=yes | |
3367 | else | |
3368 | CFLAGS="" | |
3369 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3370 | /* end confdefs.h. */ | |
3371 | ||
3372 | int | |
3373 | main () | |
3374 | { | |
3375 | ||
3376 | ; | |
3377 | return 0; | |
3378 | } | |
3379 | _ACEOF | |
3380 | if ac_fn_c_try_compile "$LINENO"; then : | |
3381 | ||
3382 | else | |
3383 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3384 | CFLAGS="-g" | |
3385 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3386 | /* end confdefs.h. */ | |
3387 | ||
3388 | int | |
3389 | main () | |
3390 | { | |
3391 | ||
3392 | ; | |
3393 | return 0; | |
3394 | } | |
3395 | _ACEOF | |
3396 | if ac_fn_c_try_compile "$LINENO"; then : | |
3397 | ac_cv_prog_cc_g=yes | |
3398 | fi | |
3399 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3400 | fi | |
3401 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3402 | fi | |
3403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3404 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3405 | fi | |
3406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3407 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3408 | if test "$ac_test_CFLAGS" = set; then | |
3409 | CFLAGS=$ac_save_CFLAGS | |
3410 | elif test $ac_cv_prog_cc_g = yes; then | |
3411 | if test "$GCC" = yes; then | |
3412 | CFLAGS="-g -O2" | |
3413 | else | |
3414 | CFLAGS="-g" | |
3415 | fi | |
3416 | else | |
3417 | if test "$GCC" = yes; then | |
3418 | CFLAGS="-O2" | |
3419 | else | |
3420 | CFLAGS= | |
3421 | fi | |
3422 | fi | |
3423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3424 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3425 | if ${ac_cv_prog_cc_c89+:} false; then : | |
3426 | $as_echo_n "(cached) " >&6 | |
3427 | else | |
3428 | ac_cv_prog_cc_c89=no | |
3429 | ac_save_CC=$CC | |
3430 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3431 | /* end confdefs.h. */ | |
3432 | #include <stdarg.h> | |
3433 | #include <stdio.h> | |
3434 | struct stat; | |
3435 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3436 | struct buf { int x; }; | |
3437 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3438 | static char *e (p, i) | |
3439 | char **p; | |
3440 | int i; | |
3441 | { | |
3442 | return p[i]; | |
3443 | } | |
3444 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3445 | { | |
3446 | char *s; | |
3447 | va_list v; | |
3448 | va_start (v,p); | |
3449 | s = g (p, va_arg (v,int)); | |
3450 | va_end (v); | |
3451 | return s; | |
3452 | } | |
3453 | ||
3454 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3455 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3456 | These don't provoke an error unfortunately, instead are silently treated | |
3457 | as 'x'. The following induces an error, until -std is added to get | |
3458 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3459 | array size at least. It's necessary to write '\x00'==0 to get something | |
3460 | that's true only with -std. */ | |
3461 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3462 | ||
3463 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3464 | inside strings and character constants. */ | |
3465 | #define FOO(x) 'x' | |
3466 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3467 | ||
3468 | int test (int i, double x); | |
3469 | struct s1 {int (*f) (int a);}; | |
3470 | struct s2 {int (*f) (double a);}; | |
3471 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3472 | int argc; | |
3473 | char **argv; | |
3474 | int | |
3475 | main () | |
3476 | { | |
3477 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3478 | ; | |
3479 | return 0; | |
3480 | } | |
3481 | _ACEOF | |
3482 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3483 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3484 | do | |
3485 | CC="$ac_save_CC $ac_arg" | |
3486 | if ac_fn_c_try_compile "$LINENO"; then : | |
3487 | ac_cv_prog_cc_c89=$ac_arg | |
3488 | fi | |
3489 | rm -f core conftest.err conftest.$ac_objext | |
3490 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3491 | done | |
3492 | rm -f conftest.$ac_ext | |
3493 | CC=$ac_save_CC | |
3494 | ||
3495 | fi | |
3496 | # AC_CACHE_VAL | |
3497 | case "x$ac_cv_prog_cc_c89" in | |
3498 | x) | |
3499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3500 | $as_echo "none needed" >&6; } ;; | |
3501 | xno) | |
3502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3503 | $as_echo "unsupported" >&6; } ;; | |
3504 | *) | |
3505 | CC="$CC $ac_cv_prog_cc_c89" | |
3506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3507 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3508 | esac | |
3509 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3510 | ||
3511 | fi | |
3512 | ||
3513 | ac_ext=c | |
3514 | ac_cpp='$CPP $CPPFLAGS' | |
3515 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3516 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3517 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3518 | ||
3519 | ac_ext=c | |
3520 | ac_cpp='$CPP $CPPFLAGS' | |
3521 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3522 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3523 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3525 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3526 | if ${am_cv_prog_cc_c_o+:} false; then : | |
3527 | $as_echo_n "(cached) " >&6 | |
3528 | else | |
3529 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3530 | /* end confdefs.h. */ | |
3531 | ||
3532 | int | |
3533 | main () | |
3534 | { | |
3535 | ||
3536 | ; | |
3537 | return 0; | |
3538 | } | |
3539 | _ACEOF | |
3540 | # Make sure it works both with $CC and with simple cc. | |
3541 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
3542 | # compilers refuse to overwrite an existing .o file with -o, | |
3543 | # though they will create one. | |
3544 | am_cv_prog_cc_c_o=yes | |
3545 | for am_i in 1 2; do | |
3546 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3547 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3548 | ac_status=$? | |
3549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3550 | (exit $ac_status); } \ | |
3551 | && test -f conftest2.$ac_objext; then | |
3552 | : OK | |
3553 | else | |
3554 | am_cv_prog_cc_c_o=no | |
3555 | break | |
3556 | fi | |
3557 | done | |
3558 | rm -f core conftest* | |
3559 | unset am_i | |
3560 | fi | |
3561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
3562 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
3563 | if test "$am_cv_prog_cc_c_o" != yes; then | |
3564 | # Losing compiler, so override with the script. | |
3565 | # FIXME: It is wrong to rewrite CC. | |
3566 | # But if we don't then we get into trouble of one sort or another. | |
3567 | # A longer-term fix would be to have automake use am__CC in this case, | |
3568 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3569 | CC="$am_aux_dir/compile $CC" | |
3570 | fi | |
3571 | ac_ext=c | |
3572 | ac_cpp='$CPP $CPPFLAGS' | |
3573 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3574 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3575 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3576 | ||
3577 | ||
3578 | ||
3579 | ac_ext=c | |
3580 | ac_cpp='$CPP $CPPFLAGS' | |
3581 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3582 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3583 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3585 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3586 | # On Suns, sometimes $CPP names a directory. | |
3587 | if test -n "$CPP" && test -d "$CPP"; then | |
3588 | CPP= | |
3589 | fi | |
3590 | if test -z "$CPP"; then | |
3591 | if ${ac_cv_prog_CPP+:} false; then : | |
3592 | $as_echo_n "(cached) " >&6 | |
3593 | else | |
3594 | # Double quotes because CPP needs to be expanded | |
3595 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3596 | do | |
3597 | ac_preproc_ok=false | |
3598 | for ac_c_preproc_warn_flag in '' yes | |
3599 | do | |
3600 | # Use a header file that comes with gcc, so configuring glibc | |
3601 | # with a fresh cross-compiler works. | |
3602 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3603 | # <limits.h> exists even on freestanding compilers. | |
3604 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3605 | # not just through cpp. "Syntax error" is here to catch this case. | |
3606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3607 | /* end confdefs.h. */ | |
3608 | #ifdef __STDC__ | |
3609 | # include <limits.h> | |
3610 | #else | |
3611 | # include <assert.h> | |
3612 | #endif | |
3613 | Syntax error | |
3614 | _ACEOF | |
3615 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3616 | ||
3617 | else | |
3618 | # Broken: fails on valid input. | |
3619 | continue | |
3620 | fi | |
3621 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3622 | ||
3623 | # OK, works on sane cases. Now check whether nonexistent headers | |
3624 | # can be detected and how. | |
3625 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3626 | /* end confdefs.h. */ | |
3627 | #include <ac_nonexistent.h> | |
3628 | _ACEOF | |
3629 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3630 | # Broken: success on invalid input. | |
3631 | continue | |
3632 | else | |
3633 | # Passes both tests. | |
3634 | ac_preproc_ok=: | |
3635 | break | |
3636 | fi | |
3637 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3638 | ||
3639 | done | |
3640 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3641 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3642 | if $ac_preproc_ok; then : | |
3643 | break | |
3644 | fi | |
3645 | ||
3646 | done | |
3647 | ac_cv_prog_CPP=$CPP | |
3648 | ||
3649 | fi | |
3650 | CPP=$ac_cv_prog_CPP | |
3651 | else | |
3652 | ac_cv_prog_CPP=$CPP | |
3653 | fi | |
3654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
3655 | $as_echo "$CPP" >&6; } | |
3656 | ac_preproc_ok=false | |
3657 | for ac_c_preproc_warn_flag in '' yes | |
3658 | do | |
3659 | # Use a header file that comes with gcc, so configuring glibc | |
3660 | # with a fresh cross-compiler works. | |
3661 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3662 | # <limits.h> exists even on freestanding compilers. | |
3663 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3664 | # not just through cpp. "Syntax error" is here to catch this case. | |
3665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3666 | /* end confdefs.h. */ | |
3667 | #ifdef __STDC__ | |
3668 | # include <limits.h> | |
3669 | #else | |
3670 | # include <assert.h> | |
3671 | #endif | |
3672 | Syntax error | |
3673 | _ACEOF | |
3674 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3675 | ||
3676 | else | |
3677 | # Broken: fails on valid input. | |
3678 | continue | |
3679 | fi | |
3680 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3681 | ||
3682 | # OK, works on sane cases. Now check whether nonexistent headers | |
3683 | # can be detected and how. | |
3684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3685 | /* end confdefs.h. */ | |
3686 | #include <ac_nonexistent.h> | |
3687 | _ACEOF | |
3688 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3689 | # Broken: success on invalid input. | |
3690 | continue | |
3691 | else | |
3692 | # Passes both tests. | |
3693 | ac_preproc_ok=: | |
3694 | break | |
3695 | fi | |
3696 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3697 | ||
3698 | done | |
3699 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3700 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3701 | if $ac_preproc_ok; then : | |
3702 | ||
3703 | else | |
3704 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3705 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3706 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
3707 | See \`config.log' for more details" "$LINENO" 5; } | |
3708 | fi | |
3709 | ||
3710 | ac_ext=c | |
3711 | ac_cpp='$CPP $CPPFLAGS' | |
3712 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3713 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3714 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3715 | ||
3716 | ||
3717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
3718 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3719 | if ${ac_cv_path_GREP+:} false; then : | |
3720 | $as_echo_n "(cached) " >&6 | |
3721 | else | |
3722 | if test -z "$GREP"; then | |
3723 | ac_path_GREP_found=false | |
3724 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3726 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3727 | do | |
3728 | IFS=$as_save_IFS | |
3729 | test -z "$as_dir" && as_dir=. | |
3730 | for ac_prog in grep ggrep; do | |
3731 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3732 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3733 | as_fn_executable_p "$ac_path_GREP" || continue | |
3734 | # Check for GNU ac_path_GREP and select it if it is found. | |
3735 | # Check for GNU $ac_path_GREP | |
3736 | case `"$ac_path_GREP" --version 2>&1` in | |
3737 | *GNU*) | |
3738 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3739 | *) | |
3740 | ac_count=0 | |
3741 | $as_echo_n 0123456789 >"conftest.in" | |
3742 | while : | |
3743 | do | |
3744 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3745 | mv "conftest.tmp" "conftest.in" | |
3746 | cp "conftest.in" "conftest.nl" | |
3747 | $as_echo 'GREP' >> "conftest.nl" | |
3748 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3749 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3750 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3751 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3752 | # Best one so far, save it but keep looking for a better one | |
3753 | ac_cv_path_GREP="$ac_path_GREP" | |
3754 | ac_path_GREP_max=$ac_count | |
3755 | fi | |
3756 | # 10*(2^10) chars as input seems more than enough | |
3757 | test $ac_count -gt 10 && break | |
3758 | done | |
3759 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3760 | esac | |
3761 | ||
3762 | $ac_path_GREP_found && break 3 | |
3763 | done | |
3764 | done | |
3765 | done | |
3766 | IFS=$as_save_IFS | |
3767 | if test -z "$ac_cv_path_GREP"; then | |
3768 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3769 | fi | |
3770 | else | |
3771 | ac_cv_path_GREP=$GREP | |
3772 | fi | |
3773 | ||
3774 | fi | |
3775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
3776 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3777 | GREP="$ac_cv_path_GREP" | |
3778 | ||
3779 | ||
3780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
3781 | $as_echo_n "checking for egrep... " >&6; } | |
3782 | if ${ac_cv_path_EGREP+:} false; then : | |
3783 | $as_echo_n "(cached) " >&6 | |
3784 | else | |
3785 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3786 | then ac_cv_path_EGREP="$GREP -E" | |
3787 | else | |
3788 | if test -z "$EGREP"; then | |
3789 | ac_path_EGREP_found=false | |
3790 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3792 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3793 | do | |
3794 | IFS=$as_save_IFS | |
3795 | test -z "$as_dir" && as_dir=. | |
3796 | for ac_prog in egrep; do | |
3797 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3798 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3799 | as_fn_executable_p "$ac_path_EGREP" || continue | |
3800 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3801 | # Check for GNU $ac_path_EGREP | |
3802 | case `"$ac_path_EGREP" --version 2>&1` in | |
3803 | *GNU*) | |
3804 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3805 | *) | |
3806 | ac_count=0 | |
3807 | $as_echo_n 0123456789 >"conftest.in" | |
3808 | while : | |
3809 | do | |
3810 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3811 | mv "conftest.tmp" "conftest.in" | |
3812 | cp "conftest.in" "conftest.nl" | |
3813 | $as_echo 'EGREP' >> "conftest.nl" | |
3814 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3815 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3816 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3817 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3818 | # Best one so far, save it but keep looking for a better one | |
3819 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3820 | ac_path_EGREP_max=$ac_count | |
3821 | fi | |
3822 | # 10*(2^10) chars as input seems more than enough | |
3823 | test $ac_count -gt 10 && break | |
3824 | done | |
3825 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3826 | esac | |
3827 | ||
3828 | $ac_path_EGREP_found && break 3 | |
3829 | done | |
3830 | done | |
3831 | done | |
3832 | IFS=$as_save_IFS | |
3833 | if test -z "$ac_cv_path_EGREP"; then | |
3834 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3835 | fi | |
3836 | else | |
3837 | ac_cv_path_EGREP=$EGREP | |
3838 | fi | |
3839 | ||
3840 | fi | |
3841 | fi | |
3842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
3843 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3844 | EGREP="$ac_cv_path_EGREP" | |
3845 | ||
3846 | ||
3847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
3848 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
3849 | if ${ac_cv_header_stdc+:} false; then : | |
3850 | $as_echo_n "(cached) " >&6 | |
3851 | else | |
3852 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3853 | /* end confdefs.h. */ | |
3854 | #include <stdlib.h> | |
3855 | #include <stdarg.h> | |
3856 | #include <string.h> | |
3857 | #include <float.h> | |
3858 | ||
3859 | int | |
3860 | main () | |
3861 | { | |
3862 | ||
3863 | ; | |
3864 | return 0; | |
3865 | } | |
3866 | _ACEOF | |
3867 | if ac_fn_c_try_compile "$LINENO"; then : | |
3868 | ac_cv_header_stdc=yes | |
3869 | else | |
3870 | ac_cv_header_stdc=no | |
3871 | fi | |
3872 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3873 | ||
3874 | if test $ac_cv_header_stdc = yes; then | |
3875 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3877 | /* end confdefs.h. */ | |
3878 | #include <string.h> | |
3879 | ||
3880 | _ACEOF | |
3881 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3882 | $EGREP "memchr" >/dev/null 2>&1; then : | |
3883 | ||
3884 | else | |
3885 | ac_cv_header_stdc=no | |
3886 | fi | |
3887 | rm -f conftest* | |
3888 | ||
3889 | fi | |
3890 | ||
3891 | if test $ac_cv_header_stdc = yes; then | |
3892 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3894 | /* end confdefs.h. */ | |
3895 | #include <stdlib.h> | |
3896 | ||
3897 | _ACEOF | |
3898 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3899 | $EGREP "free" >/dev/null 2>&1; then : | |
3900 | ||
3901 | else | |
3902 | ac_cv_header_stdc=no | |
3903 | fi | |
3904 | rm -f conftest* | |
3905 | ||
3906 | fi | |
3907 | ||
3908 | if test $ac_cv_header_stdc = yes; then | |
3909 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3910 | if test "$cross_compiling" = yes; then : | |
3911 | : | |
3912 | else | |
3913 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3914 | /* end confdefs.h. */ | |
3915 | #include <ctype.h> | |
3916 | #include <stdlib.h> | |
3917 | #if ((' ' & 0x0FF) == 0x020) | |
3918 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3919 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3920 | #else | |
3921 | # define ISLOWER(c) \ | |
3922 | (('a' <= (c) && (c) <= 'i') \ | |
3923 | || ('j' <= (c) && (c) <= 'r') \ | |
3924 | || ('s' <= (c) && (c) <= 'z')) | |
3925 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3926 | #endif | |
3927 | ||
3928 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3929 | int | |
3930 | main () | |
3931 | { | |
3932 | int i; | |
3933 | for (i = 0; i < 256; i++) | |
3934 | if (XOR (islower (i), ISLOWER (i)) | |
3935 | || toupper (i) != TOUPPER (i)) | |
3936 | return 2; | |
3937 | return 0; | |
3938 | } | |
3939 | _ACEOF | |
3940 | if ac_fn_c_try_run "$LINENO"; then : | |
3941 | ||
3942 | else | |
3943 | ac_cv_header_stdc=no | |
3944 | fi | |
3945 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
3946 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
3947 | fi | |
3948 | ||
3949 | fi | |
3950 | fi | |
3951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
3952 | $as_echo "$ac_cv_header_stdc" >&6; } | |
3953 | if test $ac_cv_header_stdc = yes; then | |
3954 | ||
3955 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
3956 | ||
3957 | fi | |
3958 | ||
3959 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
3960 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3961 | inttypes.h stdint.h unistd.h | |
3962 | do : | |
3963 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3964 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
3965 | " | |
3966 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
3967 | cat >>confdefs.h <<_ACEOF | |
3968 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3969 | _ACEOF | |
3970 | ||
3971 | fi | |
3972 | ||
3973 | done | |
3974 | ||
3975 | ||
3976 | ||
3977 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
3978 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | |
3979 | MINIX=yes | |
3980 | else | |
3981 | MINIX= | |
3982 | fi | |
3983 | ||
3984 | ||
3985 | if test "$MINIX" = yes; then | |
3986 | ||
3987 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
3988 | ||
3989 | ||
3990 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
3991 | ||
3992 | ||
3993 | $as_echo "#define _MINIX 1" >>confdefs.h | |
3994 | ||
3995 | fi | |
3996 | ||
3997 | ||
3998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
3999 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
4000 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | |
4001 | $as_echo_n "(cached) " >&6 | |
4002 | else | |
4003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4004 | /* end confdefs.h. */ | |
4005 | ||
4006 | # define __EXTENSIONS__ 1 | |
4007 | $ac_includes_default | |
4008 | int | |
4009 | main () | |
4010 | { | |
4011 | ||
4012 | ; | |
4013 | return 0; | |
4014 | } | |
4015 | _ACEOF | |
4016 | if ac_fn_c_try_compile "$LINENO"; then : | |
4017 | ac_cv_safe_to_define___extensions__=yes | |
4018 | else | |
4019 | ac_cv_safe_to_define___extensions__=no | |
4020 | fi | |
4021 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4022 | fi | |
4023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
4024 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
4025 | test $ac_cv_safe_to_define___extensions__ = yes && | |
4026 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
4027 | ||
4028 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | |
4029 | ||
4030 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
4031 | ||
4032 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
4033 | ||
4034 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
4035 | ||
4036 | ||
4037 | ||
4038 | libtool_VERSION=1:0:0 | |
4039 | ||
4040 | ||
4041 | # 1.11.1: Require that version of automake. | |
4042 | # foreign: Don't require README, INSTALL, NEWS, etc. | |
4043 | # no-define: Don't define PACKAGE and VERSION. | |
4044 | # no-dependencies: Don't generate automatic dependencies. | |
4045 | # (because it breaks when using bootstrap-lean, since some of the | |
4046 | # headers are gone at "make install" time). | |
4047 | # -Wall: Issue all automake warnings. | |
4048 | # -Wno-portability: Don't warn about constructs supported by GNU make. | |
4049 | # (because GCC requires GNU make anyhow). | |
4050 | am__api_version='1.15' | |
4051 | ||
4052 | # Find a good install program. We prefer a C program (faster), | |
4053 | # so one script is as good as another. But avoid the broken or | |
4054 | # incompatible versions: | |
4055 | # SysV /etc/install, /usr/sbin/install | |
4056 | # SunOS /usr/etc/install | |
4057 | # IRIX /sbin/install | |
4058 | # AIX /bin/install | |
4059 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4060 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4061 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4062 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4063 | # OS/2's system install, which has a completely different semantic | |
4064 | # ./install, which can be erroneously created by make from ./install.sh. | |
4065 | # Reject install programs that cannot install multiple files. | |
4066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
4067 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
4068 | if test -z "$INSTALL"; then | |
4069 | if ${ac_cv_path_install+:} false; then : | |
4070 | $as_echo_n "(cached) " >&6 | |
4071 | else | |
4072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4073 | for as_dir in $PATH | |
4074 | do | |
4075 | IFS=$as_save_IFS | |
4076 | test -z "$as_dir" && as_dir=. | |
4077 | # Account for people who put trailing slashes in PATH elements. | |
4078 | case $as_dir/ in #(( | |
4079 | ./ | .// | /[cC]/* | \ | |
4080 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4081 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
4082 | /usr/ucb/* ) ;; | |
4083 | *) | |
4084 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4085 | # Don't use installbsd from OSF since it installs stuff as root | |
4086 | # by default. | |
4087 | for ac_prog in ginstall scoinst install; do | |
4088 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4089 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
4090 | if test $ac_prog = install && | |
4091 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4092 | # AIX install. It has an incompatible calling convention. | |
4093 | : | |
4094 | elif test $ac_prog = install && | |
4095 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4096 | # program-specific install script used by HP pwplus--don't use. | |
4097 | : | |
4098 | else | |
4099 | rm -rf conftest.one conftest.two conftest.dir | |
4100 | echo one > conftest.one | |
4101 | echo two > conftest.two | |
4102 | mkdir conftest.dir | |
4103 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4104 | test -s conftest.one && test -s conftest.two && | |
4105 | test -s conftest.dir/conftest.one && | |
4106 | test -s conftest.dir/conftest.two | |
4107 | then | |
4108 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4109 | break 3 | |
4110 | fi | |
4111 | fi | |
4112 | fi | |
4113 | done | |
4114 | done | |
4115 | ;; | |
4116 | esac | |
4117 | ||
4118 | done | |
4119 | IFS=$as_save_IFS | |
4120 | ||
4121 | rm -rf conftest.one conftest.two conftest.dir | |
4122 | ||
4123 | fi | |
4124 | if test "${ac_cv_path_install+set}" = set; then | |
4125 | INSTALL=$ac_cv_path_install | |
4126 | else | |
4127 | # As a last resort, use the slow shell script. Don't cache a | |
4128 | # value for INSTALL within a source directory, because that will | |
4129 | # break other packages using the cache if that directory is | |
4130 | # removed, or if the value is a relative name. | |
4131 | INSTALL=$ac_install_sh | |
4132 | fi | |
4133 | fi | |
4134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
4135 | $as_echo "$INSTALL" >&6; } | |
4136 | ||
4137 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4138 | # It thinks the first close brace ends the variable substitution. | |
4139 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4140 | ||
4141 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
4142 | ||
4143 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4144 | ||
4145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
4146 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
4147 | # Reject unsafe characters in $srcdir or the absolute working directory | |
4148 | # name. Accept space and tab only in the latter. | |
4149 | am_lf=' | |
4150 | ' | |
4151 | case `pwd` in | |
4152 | *[\\\"\#\$\&\'\`$am_lf]*) | |
4153 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
4154 | esac | |
4155 | case $srcdir in | |
4156 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
4157 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
4158 | esac | |
4159 | ||
4160 | # Do 'set' in a subshell so we don't clobber the current shell's | |
4161 | # arguments. Must try -L first in case configure is actually a | |
4162 | # symlink; some systems play weird games with the mod time of symlinks | |
4163 | # (eg FreeBSD returns the mod time of the symlink's containing | |
4164 | # directory). | |
4165 | if ( | |
4166 | am_has_slept=no | |
4167 | for am_try in 1 2; do | |
4168 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
4169 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
4170 | if test "$*" = "X"; then | |
4171 | # -L didn't work. | |
4172 | set X `ls -t "$srcdir/configure" conftest.file` | |
4173 | fi | |
4174 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
4175 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
4176 | ||
4177 | # If neither matched, then we have a broken ls. This can happen | |
4178 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
4179 | # broken ls alias from the environment. This has actually | |
4180 | # happened. Such a system could not be considered "sane". | |
4181 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
4182 | alias in your environment" "$LINENO" 5 | |
4183 | fi | |
4184 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
4185 | break | |
4186 | fi | |
4187 | # Just in case. | |
4188 | sleep 1 | |
4189 | am_has_slept=yes | |
4190 | done | |
4191 | test "$2" = conftest.file | |
4192 | ) | |
4193 | then | |
4194 | # Ok. | |
4195 | : | |
4196 | else | |
4197 | as_fn_error $? "newly created file is older than distributed files! | |
4198 | Check your system clock" "$LINENO" 5 | |
4199 | fi | |
4200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4201 | $as_echo "yes" >&6; } | |
4202 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
4203 | # generated files are strictly newer. | |
4204 | am_sleep_pid= | |
4205 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
4206 | ( sleep 1 ) & | |
4207 | am_sleep_pid=$! | |
4208 | fi | |
4209 | ||
4210 | rm -f conftest.file | |
4211 | ||
4212 | test "$program_prefix" != NONE && | |
4213 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
4214 | # Use a double $ so make ignores it. | |
4215 | test "$program_suffix" != NONE && | |
4216 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
4217 | # Double any \ or $. | |
4218 | # By default was `s,x,x', remove it if useless. | |
4219 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
4220 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
4221 | ||
4222 | if test x"${MISSING+set}" != xset; then | |
4223 | case $am_aux_dir in | |
4224 | *\ * | *\ *) | |
4225 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
4226 | *) | |
4227 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
4228 | esac | |
4229 | fi | |
4230 | # Use eval to expand $SHELL | |
4231 | if eval "$MISSING --is-lightweight"; then | |
4232 | am_missing_run="$MISSING " | |
4233 | else | |
4234 | am_missing_run= | |
4235 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
4236 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
4237 | fi | |
4238 | ||
4239 | if test x"${install_sh+set}" != xset; then | |
4240 | case $am_aux_dir in | |
4241 | *\ * | *\ *) | |
4242 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
4243 | *) | |
4244 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
4245 | esac | |
4246 | fi | |
4247 | ||
4248 | # Installed binaries are usually stripped using 'strip' when the user | |
4249 | # run "make install-strip". However 'strip' might not be the right | |
4250 | # tool to use in cross-compilation environments, therefore Automake | |
4251 | # will honor the 'STRIP' environment variable to overrule this program. | |
4252 | if test "$cross_compiling" != no; then | |
4253 | if test -n "$ac_tool_prefix"; then | |
4254 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
4255 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
4256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4257 | $as_echo_n "checking for $ac_word... " >&6; } | |
4258 | if ${ac_cv_prog_STRIP+:} false; then : | |
4259 | $as_echo_n "(cached) " >&6 | |
4260 | else | |
4261 | if test -n "$STRIP"; then | |
4262 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4263 | else | |
4264 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4265 | for as_dir in $PATH | |
4266 | do | |
4267 | IFS=$as_save_IFS | |
4268 | test -z "$as_dir" && as_dir=. | |
4269 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4270 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4271 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
4272 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4273 | break 2 | |
4274 | fi | |
4275 | done | |
4276 | done | |
4277 | IFS=$as_save_IFS | |
4278 | ||
4279 | fi | |
4280 | fi | |
4281 | STRIP=$ac_cv_prog_STRIP | |
4282 | if test -n "$STRIP"; then | |
4283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
4284 | $as_echo "$STRIP" >&6; } | |
4285 | else | |
4286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4287 | $as_echo "no" >&6; } | |
4288 | fi | |
4289 | ||
4290 | ||
4291 | fi | |
4292 | if test -z "$ac_cv_prog_STRIP"; then | |
4293 | ac_ct_STRIP=$STRIP | |
4294 | # Extract the first word of "strip", so it can be a program name with args. | |
4295 | set dummy strip; ac_word=$2 | |
4296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4297 | $as_echo_n "checking for $ac_word... " >&6; } | |
4298 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
4299 | $as_echo_n "(cached) " >&6 | |
4300 | else | |
4301 | if test -n "$ac_ct_STRIP"; then | |
4302 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
4303 | else | |
4304 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4305 | for as_dir in $PATH | |
4306 | do | |
4307 | IFS=$as_save_IFS | |
4308 | test -z "$as_dir" && as_dir=. | |
4309 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4310 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4311 | ac_cv_prog_ac_ct_STRIP="strip" | |
4312 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4313 | break 2 | |
4314 | fi | |
4315 | done | |
4316 | done | |
4317 | IFS=$as_save_IFS | |
4318 | ||
4319 | fi | |
4320 | fi | |
4321 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
4322 | if test -n "$ac_ct_STRIP"; then | |
4323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
4324 | $as_echo "$ac_ct_STRIP" >&6; } | |
4325 | else | |
4326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4327 | $as_echo "no" >&6; } | |
4328 | fi | |
4329 | ||
4330 | if test "x$ac_ct_STRIP" = x; then | |
4331 | STRIP=":" | |
4332 | else | |
4333 | case $cross_compiling:$ac_tool_warned in | |
4334 | yes:) | |
4335 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4336 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4337 | ac_tool_warned=yes ;; | |
4338 | esac | |
4339 | STRIP=$ac_ct_STRIP | |
4340 | fi | |
4341 | else | |
4342 | STRIP="$ac_cv_prog_STRIP" | |
4343 | fi | |
4344 | ||
4345 | fi | |
4346 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
4347 | ||
4348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
4349 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
4350 | if test -z "$MKDIR_P"; then | |
4351 | if ${ac_cv_path_mkdir+:} false; then : | |
4352 | $as_echo_n "(cached) " >&6 | |
4353 | else | |
4354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4355 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
4356 | do | |
4357 | IFS=$as_save_IFS | |
4358 | test -z "$as_dir" && as_dir=. | |
4359 | for ac_prog in mkdir gmkdir; do | |
4360 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4361 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
4362 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
4363 | 'mkdir (GNU coreutils) '* | \ | |
4364 | 'mkdir (coreutils) '* | \ | |
4365 | 'mkdir (fileutils) '4.1*) | |
4366 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
4367 | break 3;; | |
4368 | esac | |
4369 | done | |
4370 | done | |
4371 | done | |
4372 | IFS=$as_save_IFS | |
4373 | ||
4374 | fi | |
4375 | ||
4376 | test -d ./--version && rmdir ./--version | |
4377 | if test "${ac_cv_path_mkdir+set}" = set; then | |
4378 | MKDIR_P="$ac_cv_path_mkdir -p" | |
4379 | else | |
4380 | # As a last resort, use the slow shell script. Don't cache a | |
4381 | # value for MKDIR_P within a source directory, because that will | |
4382 | # break other packages using the cache if that directory is | |
4383 | # removed, or if the value is a relative name. | |
4384 | MKDIR_P="$ac_install_sh -d" | |
4385 | fi | |
4386 | fi | |
4387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
4388 | $as_echo "$MKDIR_P" >&6; } | |
4389 | ||
4390 | for ac_prog in gawk mawk nawk awk | |
4391 | do | |
4392 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4393 | set dummy $ac_prog; ac_word=$2 | |
4394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4395 | $as_echo_n "checking for $ac_word... " >&6; } | |
4396 | if ${ac_cv_prog_AWK+:} false; then : | |
4397 | $as_echo_n "(cached) " >&6 | |
4398 | else | |
4399 | if test -n "$AWK"; then | |
4400 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
4401 | else | |
4402 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4403 | for as_dir in $PATH | |
4404 | do | |
4405 | IFS=$as_save_IFS | |
4406 | test -z "$as_dir" && as_dir=. | |
4407 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4408 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4409 | ac_cv_prog_AWK="$ac_prog" | |
4410 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4411 | break 2 | |
4412 | fi | |
4413 | done | |
4414 | done | |
4415 | IFS=$as_save_IFS | |
4416 | ||
4417 | fi | |
4418 | fi | |
4419 | AWK=$ac_cv_prog_AWK | |
4420 | if test -n "$AWK"; then | |
4421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
4422 | $as_echo "$AWK" >&6; } | |
4423 | else | |
4424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4425 | $as_echo "no" >&6; } | |
4426 | fi | |
4427 | ||
4428 | ||
4429 | test -n "$AWK" && break | |
4430 | done | |
4431 | ||
4432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
4433 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
4434 | set x ${MAKE-make} | |
4435 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
4436 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
4437 | $as_echo_n "(cached) " >&6 | |
4438 | else | |
4439 | cat >conftest.make <<\_ACEOF | |
4440 | SHELL = /bin/sh | |
4441 | all: | |
4442 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
4443 | _ACEOF | |
4444 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
4445 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
4446 | *@@@%%%=?*=@@@%%%*) | |
4447 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4448 | *) | |
4449 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
4450 | esac | |
4451 | rm -f conftest.make | |
4452 | fi | |
4453 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
4454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4455 | $as_echo "yes" >&6; } | |
4456 | SET_MAKE= | |
4457 | else | |
4458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4459 | $as_echo "no" >&6; } | |
4460 | SET_MAKE="MAKE=${MAKE-make}" | |
4461 | fi | |
4462 | ||
4463 | rm -rf .tst 2>/dev/null | |
4464 | mkdir .tst 2>/dev/null | |
4465 | if test -d .tst; then | |
4466 | am__leading_dot=. | |
4467 | else | |
4468 | am__leading_dot=_ | |
4469 | fi | |
4470 | rmdir .tst 2>/dev/null | |
4471 | ||
4472 | # Check whether --enable-silent-rules was given. | |
4473 | if test "${enable_silent_rules+set}" = set; then : | |
4474 | enableval=$enable_silent_rules; | |
4475 | fi | |
4476 | ||
4477 | case $enable_silent_rules in # ((( | |
4478 | yes) AM_DEFAULT_VERBOSITY=0;; | |
4479 | no) AM_DEFAULT_VERBOSITY=1;; | |
4480 | *) AM_DEFAULT_VERBOSITY=1;; | |
4481 | esac | |
4482 | am_make=${MAKE-make} | |
4483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
4484 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
4485 | if ${am_cv_make_support_nested_variables+:} false; then : | |
4486 | $as_echo_n "(cached) " >&6 | |
4487 | else | |
4488 | if $as_echo 'TRUE=$(BAR$(V)) | |
4489 | BAR0=false | |
4490 | BAR1=true | |
4491 | V=1 | |
4492 | am__doit: | |
4493 | @$(TRUE) | |
4494 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
4495 | am_cv_make_support_nested_variables=yes | |
4496 | else | |
4497 | am_cv_make_support_nested_variables=no | |
4498 | fi | |
4499 | fi | |
4500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
4501 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
4502 | if test $am_cv_make_support_nested_variables = yes; then | |
4503 | AM_V='$(V)' | |
4504 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
4505 | else | |
4506 | AM_V=$AM_DEFAULT_VERBOSITY | |
4507 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
4508 | fi | |
4509 | AM_BACKSLASH='\' | |
4510 | ||
4511 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
4512 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
4513 | # is not polluted with repeated "-I." | |
4514 | am__isrc=' -I$(srcdir)' | |
4515 | # test to see if srcdir already configured | |
4516 | if test -f $srcdir/config.status; then | |
4517 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
4518 | fi | |
4519 | fi | |
4520 | ||
4521 | # test whether we have cygpath | |
4522 | if test -z "$CYGPATH_W"; then | |
4523 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
4524 | CYGPATH_W='cygpath -w' | |
4525 | else | |
4526 | CYGPATH_W=echo | |
4527 | fi | |
4528 | fi | |
4529 | ||
4530 | ||
4531 | # Define the identity of the package. | |
4532 | PACKAGE='libbacktrace' | |
4533 | VERSION='version-unused' | |
4534 | ||
4535 | ||
4536 | # Some tools Automake needs. | |
4537 | ||
4538 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
4539 | ||
4540 | ||
4541 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
4542 | ||
4543 | ||
4544 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
4545 | ||
4546 | ||
4547 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
4548 | ||
4549 | ||
4550 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
4551 | ||
4552 | # For better backward compatibility. To be removed once Automake 1.9.x | |
4553 | # dies out for good. For more background, see: | |
4554 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
4555 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
4556 | mkdir_p='$(MKDIR_P)' | |
4557 | ||
4558 | # We need awk for the "check" target (and possibly the TAP driver). The | |
4559 | # system "awk" is bad on some platforms. | |
4560 | # Always define AMTAR for backward compatibility. Yes, it's still used | |
4561 | # in the wild :-( We should find a proper way to deprecate it ... | |
4562 | AMTAR='$${TAR-tar}' | |
4563 | ||
4564 | ||
4565 | # We'll loop over all known methods to create a tar archive until one works. | |
4566 | _am_tools='gnutar pax cpio none' | |
4567 | ||
4568 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
4569 | ||
4570 | ||
4571 | ||
4572 | ||
4573 | ||
4574 | ||
4575 | # POSIX will say in a future version that running "rm -f" with no argument | |
4576 | # is OK; and we want to be able to make that assumption in our Makefile | |
4577 | # recipes. So use an aggressive probe to check that the usage we want is | |
4578 | # actually supported "in the wild" to an acceptable degree. | |
4579 | # See automake bug#10828. | |
4580 | # To make any issue more visible, cause the running configure to be aborted | |
4581 | # by default if the 'rm' program in use doesn't match our expectations; the | |
4582 | # user can still override this though. | |
4583 | if rm -f && rm -fr && rm -rf; then : OK; else | |
4584 | cat >&2 <<'END' | |
4585 | Oops! | |
4586 | ||
4587 | Your 'rm' program seems unable to run without file operands specified | |
4588 | on the command line, even when the '-f' option is present. This is contrary | |
4589 | to the behaviour of most rm programs out there, and not conforming with | |
4590 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
4591 | ||
4592 | Please tell [email protected] about your system, including the value | |
4593 | of your $PATH and any error possibly output before this message. This | |
4594 | can help us improve future automake versions. | |
4595 | ||
4596 | END | |
4597 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
4598 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
4599 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
4600 | echo >&2 | |
4601 | else | |
4602 | cat >&2 <<'END' | |
4603 | Aborting the configuration process, to ensure you take notice of the issue. | |
4604 | ||
4605 | You can download and install GNU coreutils to get an 'rm' implementation | |
4606 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
4607 | ||
4608 | If you want to complete the configuration process using your problematic | |
4609 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
4610 | to "yes", and re-run configure. | |
4611 | ||
4612 | END | |
4613 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
4614 | fi | |
4615 | fi | |
4616 | ||
4617 | ||
4618 | ||
4619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
4620 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
4621 | # Check whether --enable-maintainer-mode was given. | |
4622 | if test "${enable_maintainer_mode+set}" = set; then : | |
4623 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
4624 | else | |
4625 | USE_MAINTAINER_MODE=no | |
4626 | fi | |
4627 | ||
4628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
4629 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
4630 | if test $USE_MAINTAINER_MODE = yes; then | |
4631 | MAINTAINER_MODE_TRUE= | |
4632 | MAINTAINER_MODE_FALSE='#' | |
4633 | else | |
4634 | MAINTAINER_MODE_TRUE='#' | |
4635 | MAINTAINER_MODE_FALSE= | |
4636 | fi | |
4637 | ||
4638 | MAINT=$MAINTAINER_MODE_TRUE | |
4639 | ||
4640 | ||
4641 | ||
4642 | ||
4643 | # Check whether --with-target-subdir was given. | |
4644 | if test "${with_target_subdir+set}" = set; then : | |
4645 | withval=$with_target_subdir; | |
4646 | fi | |
4647 | ||
4648 | ||
4649 | # We must force CC to /not/ be precious variables; otherwise | |
4650 | # the wrong, non-multilib-adjusted value will be used in multilibs. | |
4651 | # As a side effect, we have to subst CFLAGS ourselves. | |
4652 | ||
4653 | ||
4654 | ac_ext=c | |
4655 | ac_cpp='$CPP $CPPFLAGS' | |
4656 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4657 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4658 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4659 | if test -n "$ac_tool_prefix"; then | |
4660 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4661 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
4662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4663 | $as_echo_n "checking for $ac_word... " >&6; } | |
4664 | if ${ac_cv_prog_CC+:} false; then : | |
4665 | $as_echo_n "(cached) " >&6 | |
4666 | else | |
4667 | if test -n "$CC"; then | |
4668 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4669 | else | |
4670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4671 | for as_dir in $PATH | |
4672 | do | |
4673 | IFS=$as_save_IFS | |
4674 | test -z "$as_dir" && as_dir=. | |
4675 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4676 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4677 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
4678 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4679 | break 2 | |
4680 | fi | |
4681 | done | |
4682 | done | |
4683 | IFS=$as_save_IFS | |
4684 | ||
4685 | fi | |
4686 | fi | |
4687 | CC=$ac_cv_prog_CC | |
4688 | if test -n "$CC"; then | |
4689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4690 | $as_echo "$CC" >&6; } | |
4691 | else | |
4692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4693 | $as_echo "no" >&6; } | |
4694 | fi | |
4695 | ||
4696 | ||
4697 | fi | |
4698 | if test -z "$ac_cv_prog_CC"; then | |
4699 | ac_ct_CC=$CC | |
4700 | # Extract the first word of "gcc", so it can be a program name with args. | |
4701 | set dummy gcc; ac_word=$2 | |
4702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4703 | $as_echo_n "checking for $ac_word... " >&6; } | |
4704 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
4705 | $as_echo_n "(cached) " >&6 | |
4706 | else | |
4707 | if test -n "$ac_ct_CC"; then | |
4708 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4709 | else | |
4710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4711 | for as_dir in $PATH | |
4712 | do | |
4713 | IFS=$as_save_IFS | |
4714 | test -z "$as_dir" && as_dir=. | |
4715 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4716 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4717 | ac_cv_prog_ac_ct_CC="gcc" | |
4718 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4719 | break 2 | |
4720 | fi | |
4721 | done | |
4722 | done | |
4723 | IFS=$as_save_IFS | |
4724 | ||
4725 | fi | |
4726 | fi | |
4727 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4728 | if test -n "$ac_ct_CC"; then | |
4729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4730 | $as_echo "$ac_ct_CC" >&6; } | |
4731 | else | |
4732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4733 | $as_echo "no" >&6; } | |
4734 | fi | |
4735 | ||
4736 | if test "x$ac_ct_CC" = x; then | |
4737 | CC="" | |
4738 | else | |
4739 | case $cross_compiling:$ac_tool_warned in | |
4740 | yes:) | |
4741 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4742 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4743 | ac_tool_warned=yes ;; | |
4744 | esac | |
4745 | CC=$ac_ct_CC | |
4746 | fi | |
4747 | else | |
4748 | CC="$ac_cv_prog_CC" | |
4749 | fi | |
4750 | ||
4751 | if test -z "$CC"; then | |
4752 | if test -n "$ac_tool_prefix"; then | |
4753 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4754 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
4755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4756 | $as_echo_n "checking for $ac_word... " >&6; } | |
4757 | if ${ac_cv_prog_CC+:} false; then : | |
4758 | $as_echo_n "(cached) " >&6 | |
4759 | else | |
4760 | if test -n "$CC"; then | |
4761 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4762 | else | |
4763 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4764 | for as_dir in $PATH | |
4765 | do | |
4766 | IFS=$as_save_IFS | |
4767 | test -z "$as_dir" && as_dir=. | |
4768 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4769 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4770 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
4771 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4772 | break 2 | |
4773 | fi | |
4774 | done | |
4775 | done | |
4776 | IFS=$as_save_IFS | |
4777 | ||
4778 | fi | |
4779 | fi | |
4780 | CC=$ac_cv_prog_CC | |
4781 | if test -n "$CC"; then | |
4782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4783 | $as_echo "$CC" >&6; } | |
4784 | else | |
4785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4786 | $as_echo "no" >&6; } | |
4787 | fi | |
4788 | ||
4789 | ||
4790 | fi | |
4791 | fi | |
4792 | if test -z "$CC"; then | |
4793 | # Extract the first word of "cc", so it can be a program name with args. | |
4794 | set dummy cc; ac_word=$2 | |
4795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4796 | $as_echo_n "checking for $ac_word... " >&6; } | |
4797 | if ${ac_cv_prog_CC+:} false; then : | |
4798 | $as_echo_n "(cached) " >&6 | |
4799 | else | |
4800 | if test -n "$CC"; then | |
4801 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4802 | else | |
4803 | ac_prog_rejected=no | |
4804 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4805 | for as_dir in $PATH | |
4806 | do | |
4807 | IFS=$as_save_IFS | |
4808 | test -z "$as_dir" && as_dir=. | |
4809 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4810 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4811 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
4812 | ac_prog_rejected=yes | |
4813 | continue | |
4814 | fi | |
4815 | ac_cv_prog_CC="cc" | |
4816 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4817 | break 2 | |
4818 | fi | |
4819 | done | |
4820 | done | |
4821 | IFS=$as_save_IFS | |
4822 | ||
4823 | if test $ac_prog_rejected = yes; then | |
4824 | # We found a bogon in the path, so make sure we never use it. | |
4825 | set dummy $ac_cv_prog_CC | |
4826 | shift | |
4827 | if test $# != 0; then | |
4828 | # We chose a different compiler from the bogus one. | |
4829 | # However, it has the same basename, so the bogon will be chosen | |
4830 | # first if we set CC to just the basename; use the full file name. | |
4831 | shift | |
4832 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4833 | fi | |
4834 | fi | |
4835 | fi | |
4836 | fi | |
4837 | CC=$ac_cv_prog_CC | |
4838 | if test -n "$CC"; then | |
4839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4840 | $as_echo "$CC" >&6; } | |
4841 | else | |
4842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4843 | $as_echo "no" >&6; } | |
4844 | fi | |
4845 | ||
4846 | ||
4847 | fi | |
4848 | if test -z "$CC"; then | |
4849 | if test -n "$ac_tool_prefix"; then | |
4850 | for ac_prog in cl.exe | |
4851 | do | |
4852 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4853 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4855 | $as_echo_n "checking for $ac_word... " >&6; } | |
4856 | if ${ac_cv_prog_CC+:} false; then : | |
4857 | $as_echo_n "(cached) " >&6 | |
4858 | else | |
4859 | if test -n "$CC"; then | |
4860 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4861 | else | |
4862 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4863 | for as_dir in $PATH | |
4864 | do | |
4865 | IFS=$as_save_IFS | |
4866 | test -z "$as_dir" && as_dir=. | |
4867 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4868 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4869 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
4870 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4871 | break 2 | |
4872 | fi | |
4873 | done | |
4874 | done | |
4875 | IFS=$as_save_IFS | |
4876 | ||
4877 | fi | |
4878 | fi | |
4879 | CC=$ac_cv_prog_CC | |
4880 | if test -n "$CC"; then | |
4881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4882 | $as_echo "$CC" >&6; } | |
4883 | else | |
4884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4885 | $as_echo "no" >&6; } | |
4886 | fi | |
4887 | ||
4888 | ||
4889 | test -n "$CC" && break | |
4890 | done | |
4891 | fi | |
4892 | if test -z "$CC"; then | |
4893 | ac_ct_CC=$CC | |
4894 | for ac_prog in cl.exe | |
4895 | do | |
4896 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4897 | set dummy $ac_prog; ac_word=$2 | |
4898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4899 | $as_echo_n "checking for $ac_word... " >&6; } | |
4900 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
4901 | $as_echo_n "(cached) " >&6 | |
4902 | else | |
4903 | if test -n "$ac_ct_CC"; then | |
4904 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4905 | else | |
4906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4907 | for as_dir in $PATH | |
4908 | do | |
4909 | IFS=$as_save_IFS | |
4910 | test -z "$as_dir" && as_dir=. | |
4911 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4912 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4913 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
4914 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4915 | break 2 | |
4916 | fi | |
4917 | done | |
4918 | done | |
4919 | IFS=$as_save_IFS | |
4920 | ||
4921 | fi | |
4922 | fi | |
4923 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4924 | if test -n "$ac_ct_CC"; then | |
4925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4926 | $as_echo "$ac_ct_CC" >&6; } | |
4927 | else | |
4928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4929 | $as_echo "no" >&6; } | |
4930 | fi | |
4931 | ||
4932 | ||
4933 | test -n "$ac_ct_CC" && break | |
4934 | done | |
4935 | ||
4936 | if test "x$ac_ct_CC" = x; then | |
4937 | CC="" | |
4938 | else | |
4939 | case $cross_compiling:$ac_tool_warned in | |
4940 | yes:) | |
4941 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4942 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4943 | ac_tool_warned=yes ;; | |
4944 | esac | |
4945 | CC=$ac_ct_CC | |
4946 | fi | |
4947 | fi | |
4948 | ||
4949 | fi | |
4950 | ||
4951 | ||
4952 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4953 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4954 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
4955 | See \`config.log' for more details" "$LINENO" 5; } | |
4956 | ||
4957 | # Provide some information about the compiler. | |
4958 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
4959 | set X $ac_compile | |
4960 | ac_compiler=$2 | |
4961 | for ac_option in --version -v -V -qversion; do | |
4962 | { { ac_try="$ac_compiler $ac_option >&5" | |
4963 | case "(($ac_try" in | |
4964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4965 | *) ac_try_echo=$ac_try;; | |
4966 | esac | |
4967 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4968 | $as_echo "$ac_try_echo"; } >&5 | |
4969 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4970 | ac_status=$? | |
4971 | if test -s conftest.err; then | |
4972 | sed '10a\ | |
4973 | ... rest of stderr output deleted ... | |
4974 | 10q' conftest.err >conftest.er1 | |
4975 | cat conftest.er1 >&5 | |
4976 | fi | |
4977 | rm -f conftest.er1 conftest.err | |
4978 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4979 | test $ac_status = 0; } | |
4980 | done | |
4981 | ||
4982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
4983 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4984 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
4985 | $as_echo_n "(cached) " >&6 | |
4986 | else | |
4987 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4988 | /* end confdefs.h. */ | |
4989 | ||
4990 | int | |
4991 | main () | |
4992 | { | |
4993 | #ifndef __GNUC__ | |
4994 | choke me | |
4995 | #endif | |
4996 | ||
4997 | ; | |
4998 | return 0; | |
4999 | } | |
5000 | _ACEOF | |
5001 | if ac_fn_c_try_compile "$LINENO"; then : | |
5002 | ac_compiler_gnu=yes | |
5003 | else | |
5004 | ac_compiler_gnu=no | |
5005 | fi | |
5006 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5007 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
5008 | ||
5009 | fi | |
5010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
5011 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
5012 | if test $ac_compiler_gnu = yes; then | |
5013 | GCC=yes | |
5014 | else | |
5015 | GCC= | |
5016 | fi | |
5017 | ac_test_CFLAGS=${CFLAGS+set} | |
5018 | ac_save_CFLAGS=$CFLAGS | |
5019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
5020 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
5021 | if ${ac_cv_prog_cc_g+:} false; then : | |
5022 | $as_echo_n "(cached) " >&6 | |
5023 | else | |
5024 | ac_save_c_werror_flag=$ac_c_werror_flag | |
5025 | ac_c_werror_flag=yes | |
5026 | ac_cv_prog_cc_g=no | |
5027 | CFLAGS="-g" | |
5028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5029 | /* end confdefs.h. */ | |
5030 | ||
5031 | int | |
5032 | main () | |
5033 | { | |
5034 | ||
5035 | ; | |
5036 | return 0; | |
5037 | } | |
5038 | _ACEOF | |
5039 | if ac_fn_c_try_compile "$LINENO"; then : | |
5040 | ac_cv_prog_cc_g=yes | |
5041 | else | |
5042 | CFLAGS="" | |
5043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5044 | /* end confdefs.h. */ | |
5045 | ||
5046 | int | |
5047 | main () | |
5048 | { | |
5049 | ||
5050 | ; | |
5051 | return 0; | |
5052 | } | |
5053 | _ACEOF | |
5054 | if ac_fn_c_try_compile "$LINENO"; then : | |
5055 | ||
5056 | else | |
5057 | ac_c_werror_flag=$ac_save_c_werror_flag | |
5058 | CFLAGS="-g" | |
5059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5060 | /* end confdefs.h. */ | |
5061 | ||
5062 | int | |
5063 | main () | |
5064 | { | |
5065 | ||
5066 | ; | |
5067 | return 0; | |
5068 | } | |
5069 | _ACEOF | |
5070 | if ac_fn_c_try_compile "$LINENO"; then : | |
5071 | ac_cv_prog_cc_g=yes | |
5072 | fi | |
5073 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5074 | fi | |
5075 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5076 | fi | |
5077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5078 | ac_c_werror_flag=$ac_save_c_werror_flag | |
5079 | fi | |
5080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
5081 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
5082 | if test "$ac_test_CFLAGS" = set; then | |
5083 | CFLAGS=$ac_save_CFLAGS | |
5084 | elif test $ac_cv_prog_cc_g = yes; then | |
5085 | if test "$GCC" = yes; then | |
5086 | CFLAGS="-g -O2" | |
5087 | else | |
5088 | CFLAGS="-g" | |
5089 | fi | |
5090 | else | |
5091 | if test "$GCC" = yes; then | |
5092 | CFLAGS="-O2" | |
5093 | else | |
5094 | CFLAGS= | |
5095 | fi | |
5096 | fi | |
5097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
5098 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
5099 | if ${ac_cv_prog_cc_c89+:} false; then : | |
5100 | $as_echo_n "(cached) " >&6 | |
5101 | else | |
5102 | ac_cv_prog_cc_c89=no | |
5103 | ac_save_CC=$CC | |
5104 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5105 | /* end confdefs.h. */ | |
5106 | #include <stdarg.h> | |
5107 | #include <stdio.h> | |
5108 | struct stat; | |
5109 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
5110 | struct buf { int x; }; | |
5111 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
5112 | static char *e (p, i) | |
5113 | char **p; | |
5114 | int i; | |
5115 | { | |
5116 | return p[i]; | |
5117 | } | |
5118 | static char *f (char * (*g) (char **, int), char **p, ...) | |
5119 | { | |
5120 | char *s; | |
5121 | va_list v; | |
5122 | va_start (v,p); | |
5123 | s = g (p, va_arg (v,int)); | |
5124 | va_end (v); | |
5125 | return s; | |
5126 | } | |
5127 | ||
5128 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
5129 | function prototypes and stuff, but not '\xHH' hex character constants. | |
5130 | These don't provoke an error unfortunately, instead are silently treated | |
5131 | as 'x'. The following induces an error, until -std is added to get | |
5132 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
5133 | array size at least. It's necessary to write '\x00'==0 to get something | |
5134 | that's true only with -std. */ | |
5135 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
5136 | ||
5137 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
5138 | inside strings and character constants. */ | |
5139 | #define FOO(x) 'x' | |
5140 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
5141 | ||
5142 | int test (int i, double x); | |
5143 | struct s1 {int (*f) (int a);}; | |
5144 | struct s2 {int (*f) (double a);}; | |
5145 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
5146 | int argc; | |
5147 | char **argv; | |
5148 | int | |
5149 | main () | |
5150 | { | |
5151 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
5152 | ; | |
5153 | return 0; | |
5154 | } | |
5155 | _ACEOF | |
5156 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
5157 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
5158 | do | |
5159 | CC="$ac_save_CC $ac_arg" | |
5160 | if ac_fn_c_try_compile "$LINENO"; then : | |
5161 | ac_cv_prog_cc_c89=$ac_arg | |
5162 | fi | |
5163 | rm -f core conftest.err conftest.$ac_objext | |
5164 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
5165 | done | |
5166 | rm -f conftest.$ac_ext | |
5167 | CC=$ac_save_CC | |
5168 | ||
5169 | fi | |
5170 | # AC_CACHE_VAL | |
5171 | case "x$ac_cv_prog_cc_c89" in | |
5172 | x) | |
5173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5174 | $as_echo "none needed" >&6; } ;; | |
5175 | xno) | |
5176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5177 | $as_echo "unsupported" >&6; } ;; | |
5178 | *) | |
5179 | CC="$CC $ac_cv_prog_cc_c89" | |
5180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
5181 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
5182 | esac | |
5183 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
5184 | ||
5185 | fi | |
5186 | ||
5187 | ac_ext=c | |
5188 | ac_cpp='$CPP $CPPFLAGS' | |
5189 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5190 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5191 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5192 | ||
5193 | ac_ext=c | |
5194 | ac_cpp='$CPP $CPPFLAGS' | |
5195 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5196 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5197 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
5199 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
5200 | if ${am_cv_prog_cc_c_o+:} false; then : | |
5201 | $as_echo_n "(cached) " >&6 | |
5202 | else | |
5203 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5204 | /* end confdefs.h. */ | |
5205 | ||
5206 | int | |
5207 | main () | |
5208 | { | |
5209 | ||
5210 | ; | |
5211 | return 0; | |
5212 | } | |
5213 | _ACEOF | |
5214 | # Make sure it works both with $CC and with simple cc. | |
5215 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
5216 | # compilers refuse to overwrite an existing .o file with -o, | |
5217 | # though they will create one. | |
5218 | am_cv_prog_cc_c_o=yes | |
5219 | for am_i in 1 2; do | |
5220 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
5221 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
5222 | ac_status=$? | |
5223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5224 | (exit $ac_status); } \ | |
5225 | && test -f conftest2.$ac_objext; then | |
5226 | : OK | |
5227 | else | |
5228 | am_cv_prog_cc_c_o=no | |
5229 | break | |
5230 | fi | |
5231 | done | |
5232 | rm -f core conftest* | |
5233 | unset am_i | |
5234 | fi | |
5235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
5236 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
5237 | if test "$am_cv_prog_cc_c_o" != yes; then | |
5238 | # Losing compiler, so override with the script. | |
5239 | # FIXME: It is wrong to rewrite CC. | |
5240 | # But if we don't then we get into trouble of one sort or another. | |
5241 | # A longer-term fix would be to have automake use am__CC in this case, | |
5242 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
5243 | CC="$am_aux_dir/compile $CC" | |
5244 | fi | |
5245 | ac_ext=c | |
5246 | ac_cpp='$CPP $CPPFLAGS' | |
5247 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5248 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5249 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5250 | ||
5251 | ||
5252 | ||
5253 | ||
5254 | ||
5255 | ||
5256 | if test -n "$ac_tool_prefix"; then | |
5257 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5258 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5260 | $as_echo_n "checking for $ac_word... " >&6; } | |
5261 | if ${ac_cv_prog_RANLIB+:} false; then : | |
5262 | $as_echo_n "(cached) " >&6 | |
5263 | else | |
5264 | if test -n "$RANLIB"; then | |
5265 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5266 | else | |
5267 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5268 | for as_dir in $PATH | |
5269 | do | |
5270 | IFS=$as_save_IFS | |
5271 | test -z "$as_dir" && as_dir=. | |
5272 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5273 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5274 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5275 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5276 | break 2 | |
5277 | fi | |
5278 | done | |
5279 | done | |
5280 | IFS=$as_save_IFS | |
5281 | ||
5282 | fi | |
5283 | fi | |
5284 | RANLIB=$ac_cv_prog_RANLIB | |
5285 | if test -n "$RANLIB"; then | |
5286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
5287 | $as_echo "$RANLIB" >&6; } | |
5288 | else | |
5289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5290 | $as_echo "no" >&6; } | |
5291 | fi | |
5292 | ||
5293 | ||
5294 | fi | |
5295 | if test -z "$ac_cv_prog_RANLIB"; then | |
5296 | ac_ct_RANLIB=$RANLIB | |
5297 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5298 | set dummy ranlib; ac_word=$2 | |
5299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5300 | $as_echo_n "checking for $ac_word... " >&6; } | |
5301 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
5302 | $as_echo_n "(cached) " >&6 | |
5303 | else | |
5304 | if test -n "$ac_ct_RANLIB"; then | |
5305 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5306 | else | |
5307 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5308 | for as_dir in $PATH | |
5309 | do | |
5310 | IFS=$as_save_IFS | |
5311 | test -z "$as_dir" && as_dir=. | |
5312 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5313 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5314 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5315 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5316 | break 2 | |
5317 | fi | |
5318 | done | |
5319 | done | |
5320 | IFS=$as_save_IFS | |
5321 | ||
5322 | fi | |
5323 | fi | |
5324 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5325 | if test -n "$ac_ct_RANLIB"; then | |
5326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
5327 | $as_echo "$ac_ct_RANLIB" >&6; } | |
5328 | else | |
5329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5330 | $as_echo "no" >&6; } | |
5331 | fi | |
5332 | ||
5333 | if test "x$ac_ct_RANLIB" = x; then | |
5334 | RANLIB=":" | |
5335 | else | |
5336 | case $cross_compiling:$ac_tool_warned in | |
5337 | yes:) | |
5338 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5339 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5340 | ac_tool_warned=yes ;; | |
5341 | esac | |
5342 | RANLIB=$ac_ct_RANLIB | |
5343 | fi | |
5344 | else | |
5345 | RANLIB="$ac_cv_prog_RANLIB" | |
5346 | fi | |
5347 | ||
5348 | ||
5349 | for ac_prog in gawk mawk nawk awk | |
5350 | do | |
5351 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5352 | set dummy $ac_prog; ac_word=$2 | |
5353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5354 | $as_echo_n "checking for $ac_word... " >&6; } | |
5355 | if ${ac_cv_prog_AWK+:} false; then : | |
5356 | $as_echo_n "(cached) " >&6 | |
5357 | else | |
5358 | if test -n "$AWK"; then | |
5359 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
5360 | else | |
5361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5362 | for as_dir in $PATH | |
5363 | do | |
5364 | IFS=$as_save_IFS | |
5365 | test -z "$as_dir" && as_dir=. | |
5366 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5367 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5368 | ac_cv_prog_AWK="$ac_prog" | |
5369 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5370 | break 2 | |
5371 | fi | |
5372 | done | |
5373 | done | |
5374 | IFS=$as_save_IFS | |
5375 | ||
5376 | fi | |
5377 | fi | |
5378 | AWK=$ac_cv_prog_AWK | |
5379 | if test -n "$AWK"; then | |
5380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
5381 | $as_echo "$AWK" >&6; } | |
5382 | else | |
5383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5384 | $as_echo "no" >&6; } | |
5385 | fi | |
5386 | ||
5387 | ||
5388 | test -n "$AWK" && break | |
5389 | done | |
5390 | ||
5391 | case "$AWK" in | |
5392 | "") as_fn_error $? "can't build without awk" "$LINENO" 5 ;; | |
5393 | esac | |
5394 | ||
5395 | # Extract the first word of "dwz", so it can be a program name with args. | |
5396 | set dummy dwz; ac_word=$2 | |
5397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5398 | $as_echo_n "checking for $ac_word... " >&6; } | |
5399 | if ${ac_cv_prog_DWZ+:} false; then : | |
5400 | $as_echo_n "(cached) " >&6 | |
5401 | else | |
5402 | if test -n "$DWZ"; then | |
5403 | ac_cv_prog_DWZ="$DWZ" # Let the user override the test. | |
5404 | else | |
5405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5406 | for as_dir in $PATH | |
5407 | do | |
5408 | IFS=$as_save_IFS | |
5409 | test -z "$as_dir" && as_dir=. | |
5410 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5411 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5412 | ac_cv_prog_DWZ="dwz" | |
5413 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5414 | break 2 | |
5415 | fi | |
5416 | done | |
5417 | done | |
5418 | IFS=$as_save_IFS | |
5419 | ||
5420 | fi | |
5421 | fi | |
5422 | DWZ=$ac_cv_prog_DWZ | |
5423 | if test -n "$DWZ"; then | |
5424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DWZ" >&5 | |
5425 | $as_echo "$DWZ" >&6; } | |
5426 | else | |
5427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5428 | $as_echo "no" >&6; } | |
5429 | fi | |
5430 | ||
5431 | ||
5432 | if test "$DWZ" != ""; then | |
5433 | HAVE_DWZ_TRUE= | |
5434 | HAVE_DWZ_FALSE='#' | |
5435 | else | |
5436 | HAVE_DWZ_TRUE='#' | |
5437 | HAVE_DWZ_FALSE= | |
5438 | fi | |
5439 | ||
5440 | ||
5441 | case `pwd` in | |
5442 | *\ * | *\ *) | |
5443 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
5444 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
5445 | esac | |
5446 | ||
5447 | ||
5448 | ||
5449 | macro_version='2.2.7a' | |
5450 | macro_revision='1.3134' | |
5451 | ||
5452 | ||
5453 | ||
5454 | ||
5455 | ||
5456 | ||
5457 | ||
5458 | ||
5459 | ||
5460 | ||
5461 | ||
5462 | ||
5463 | ||
5464 | ltmain="$ac_aux_dir/ltmain.sh" | |
5465 | ||
5466 | # Backslashify metacharacters that are still active within | |
5467 | # double-quoted strings. | |
5468 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
5469 | ||
5470 | # Same as above, but do not quote variable references. | |
5471 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
5472 | ||
5473 | # Sed substitution to delay expansion of an escaped shell variable in a | |
5474 | # double_quote_subst'ed string. | |
5475 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
5476 | ||
5477 | # Sed substitution to delay expansion of an escaped single quote. | |
5478 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
5479 | ||
5480 | # Sed substitution to avoid accidental globbing in evaled expressions | |
5481 | no_glob_subst='s/\*/\\\*/g' | |
5482 | ||
5483 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
5484 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5485 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
5486 | ||
5487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
5488 | $as_echo_n "checking how to print strings... " >&6; } | |
5489 | # Test print first, because it will be a builtin if present. | |
5490 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
5491 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5492 | ECHO='print -r --' | |
5493 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5494 | ECHO='printf %s\n' | |
5495 | else | |
5496 | # Use this function as a fallback that always works. | |
5497 | func_fallback_echo () | |
5498 | { | |
5499 | eval 'cat <<_LTECHO_EOF | |
5500 | $1 | |
5501 | _LTECHO_EOF' | |
5502 | } | |
5503 | ECHO='func_fallback_echo' | |
5504 | fi | |
5505 | ||
5506 | # func_echo_all arg... | |
5507 | # Invoke $ECHO with all args, space-separated. | |
5508 | func_echo_all () | |
5509 | { | |
5510 | $ECHO "" | |
5511 | } | |
5512 | ||
5513 | case "$ECHO" in | |
5514 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
5515 | $as_echo "printf" >&6; } ;; | |
5516 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5517 | $as_echo "print -r" >&6; } ;; | |
5518 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5519 | $as_echo "cat" >&6; } ;; | |
5520 | esac | |
5521 | ||
5522 | ||
5523 | ||
5524 | ||
5525 | ||
5526 | ||
5527 | ||
5528 | ||
5529 | ||
5530 | ||
5531 | ||
5532 | ||
5533 | ||
5534 | ||
5535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
5536 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5537 | if ${ac_cv_path_SED+:} false; then : | |
5538 | $as_echo_n "(cached) " >&6 | |
5539 | else | |
5540 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
5541 | for ac_i in 1 2 3 4 5 6 7; do | |
5542 | ac_script="$ac_script$as_nl$ac_script" | |
5543 | done | |
5544 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5545 | { ac_script=; unset ac_script;} | |
5546 | if test -z "$SED"; then | |
5547 | ac_path_SED_found=false | |
5548 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5550 | for as_dir in $PATH | |
5551 | do | |
5552 | IFS=$as_save_IFS | |
5553 | test -z "$as_dir" && as_dir=. | |
5554 | for ac_prog in sed gsed; do | |
5555 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5556 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
5557 | as_fn_executable_p "$ac_path_SED" || continue | |
5558 | # Check for GNU ac_path_SED and select it if it is found. | |
5559 | # Check for GNU $ac_path_SED | |
5560 | case `"$ac_path_SED" --version 2>&1` in | |
5561 | *GNU*) | |
5562 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5563 | *) | |
5564 | ac_count=0 | |
5565 | $as_echo_n 0123456789 >"conftest.in" | |
5566 | while : | |
5567 | do | |
5568 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5569 | mv "conftest.tmp" "conftest.in" | |
5570 | cp "conftest.in" "conftest.nl" | |
5571 | $as_echo '' >> "conftest.nl" | |
5572 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5573 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5574 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5575 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5576 | # Best one so far, save it but keep looking for a better one | |
5577 | ac_cv_path_SED="$ac_path_SED" | |
5578 | ac_path_SED_max=$ac_count | |
5579 | fi | |
5580 | # 10*(2^10) chars as input seems more than enough | |
5581 | test $ac_count -gt 10 && break | |
5582 | done | |
5583 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5584 | esac | |
5585 | ||
5586 | $ac_path_SED_found && break 3 | |
5587 | done | |
5588 | done | |
5589 | done | |
5590 | IFS=$as_save_IFS | |
5591 | if test -z "$ac_cv_path_SED"; then | |
5592 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
5593 | fi | |
5594 | else | |
5595 | ac_cv_path_SED=$SED | |
5596 | fi | |
5597 | ||
5598 | fi | |
5599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5600 | $as_echo "$ac_cv_path_SED" >&6; } | |
5601 | SED="$ac_cv_path_SED" | |
5602 | rm -f conftest.sed | |
5603 | ||
5604 | test -z "$SED" && SED=sed | |
5605 | Xsed="$SED -e 1s/^X//" | |
5606 | ||
5607 | ||
5608 | ||
5609 | ||
5610 | ||
5611 | ||
5612 | ||
5613 | ||
5614 | ||
5615 | ||
5616 | ||
5617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
5618 | $as_echo_n "checking for fgrep... " >&6; } | |
5619 | if ${ac_cv_path_FGREP+:} false; then : | |
5620 | $as_echo_n "(cached) " >&6 | |
5621 | else | |
5622 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
5623 | then ac_cv_path_FGREP="$GREP -F" | |
5624 | else | |
5625 | if test -z "$FGREP"; then | |
5626 | ac_path_FGREP_found=false | |
5627 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5628 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5629 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5630 | do | |
5631 | IFS=$as_save_IFS | |
5632 | test -z "$as_dir" && as_dir=. | |
5633 | for ac_prog in fgrep; do | |
5634 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5635 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5636 | as_fn_executable_p "$ac_path_FGREP" || continue | |
5637 | # Check for GNU ac_path_FGREP and select it if it is found. | |
5638 | # Check for GNU $ac_path_FGREP | |
5639 | case `"$ac_path_FGREP" --version 2>&1` in | |
5640 | *GNU*) | |
5641 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5642 | *) | |
5643 | ac_count=0 | |
5644 | $as_echo_n 0123456789 >"conftest.in" | |
5645 | while : | |
5646 | do | |
5647 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5648 | mv "conftest.tmp" "conftest.in" | |
5649 | cp "conftest.in" "conftest.nl" | |
5650 | $as_echo 'FGREP' >> "conftest.nl" | |
5651 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5652 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5653 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5654 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5655 | # Best one so far, save it but keep looking for a better one | |
5656 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5657 | ac_path_FGREP_max=$ac_count | |
5658 | fi | |
5659 | # 10*(2^10) chars as input seems more than enough | |
5660 | test $ac_count -gt 10 && break | |
5661 | done | |
5662 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5663 | esac | |
5664 | ||
5665 | $ac_path_FGREP_found && break 3 | |
5666 | done | |
5667 | done | |
5668 | done | |
5669 | IFS=$as_save_IFS | |
5670 | if test -z "$ac_cv_path_FGREP"; then | |
5671 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5672 | fi | |
5673 | else | |
5674 | ac_cv_path_FGREP=$FGREP | |
5675 | fi | |
5676 | ||
5677 | fi | |
5678 | fi | |
5679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
5680 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5681 | FGREP="$ac_cv_path_FGREP" | |
5682 | ||
5683 | ||
5684 | test -z "$GREP" && GREP=grep | |
5685 | ||
5686 | ||
5687 | ||
5688 | ||
5689 | ||
5690 | ||
5691 | ||
5692 | ||
5693 | ||
5694 | ||
5695 | ||
5696 | ||
5697 | ||
5698 | ||
5699 | ||
5700 | ||
5701 | ||
5702 | ||
5703 | ||
5704 | # Check whether --with-gnu-ld was given. | |
5705 | if test "${with_gnu_ld+set}" = set; then : | |
5706 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
5707 | else | |
5708 | with_gnu_ld=no | |
5709 | fi | |
5710 | ||
5711 | ac_prog=ld | |
5712 | if test "$GCC" = yes; then | |
5713 | # Check if gcc -print-prog-name=ld gives a path. | |
5714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
5715 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
5716 | case $host in | |
5717 | *-*-mingw*) | |
5718 | # gcc leaves a trailing carriage return which upsets mingw | |
5719 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5720 | *) | |
5721 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5722 | esac | |
5723 | case $ac_prog in | |
5724 | # Accept absolute paths. | |
5725 | [\\/]* | ?:[\\/]*) | |
5726 | re_direlt='/[^/][^/]*/\.\./' | |
5727 | # Canonicalize the pathname of ld | |
5728 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5729 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5730 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5731 | done | |
5732 | test -z "$LD" && LD="$ac_prog" | |
5733 | ;; | |
5734 | "") | |
5735 | # If it fails, then pretend we aren't using GCC. | |
5736 | ac_prog=ld | |
5737 | ;; | |
5738 | *) | |
5739 | # If it is relative, then search for the first ld in PATH. | |
5740 | with_gnu_ld=unknown | |
5741 | ;; | |
5742 | esac | |
5743 | elif test "$with_gnu_ld" = yes; then | |
5744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
5745 | $as_echo_n "checking for GNU ld... " >&6; } | |
5746 | else | |
5747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
5748 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
5749 | fi | |
5750 | if ${lt_cv_path_LD+:} false; then : | |
5751 | $as_echo_n "(cached) " >&6 | |
5752 | else | |
5753 | if test -z "$LD"; then | |
5754 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5755 | for ac_dir in $PATH; do | |
5756 | IFS="$lt_save_ifs" | |
5757 | test -z "$ac_dir" && ac_dir=. | |
5758 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5759 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5760 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5761 | # but apparently some variants of GNU ld only accept -v. | |
5762 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5763 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5764 | *GNU* | *'with BFD'*) | |
5765 | test "$with_gnu_ld" != no && break | |
5766 | ;; | |
5767 | *) | |
5768 | test "$with_gnu_ld" != yes && break | |
5769 | ;; | |
5770 | esac | |
5771 | fi | |
5772 | done | |
5773 | IFS="$lt_save_ifs" | |
5774 | else | |
5775 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
5776 | fi | |
5777 | fi | |
5778 | ||
5779 | LD="$lt_cv_path_LD" | |
5780 | if test -n "$LD"; then | |
5781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5782 | $as_echo "$LD" >&6; } | |
5783 | else | |
5784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5785 | $as_echo "no" >&6; } | |
5786 | fi | |
5787 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
5788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
5789 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5790 | if ${lt_cv_prog_gnu_ld+:} false; then : | |
5791 | $as_echo_n "(cached) " >&6 | |
5792 | else | |
5793 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
5794 | case `$LD -v 2>&1 </dev/null` in | |
5795 | *GNU* | *'with BFD'*) | |
5796 | lt_cv_prog_gnu_ld=yes | |
5797 | ;; | |
5798 | *) | |
5799 | lt_cv_prog_gnu_ld=no | |
5800 | ;; | |
5801 | esac | |
5802 | fi | |
5803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
5804 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
5805 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
5806 | ||
5807 | ||
5808 | ||
5809 | ||
5810 | ||
5811 | ||
5812 | ||
5813 | ||
5814 | ||
5815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
5816 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
5817 | if ${lt_cv_path_NM+:} false; then : | |
5818 | $as_echo_n "(cached) " >&6 | |
5819 | else | |
5820 | if test -n "$NM"; then | |
caf606c9 NA |
5821 | # Let the user override the nm to test. |
5822 | lt_nm_to_check="$NM" | |
5823 | else | |
5824 | lt_nm_to_check="${ac_tool_prefix}nm" | |
5825 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5826 | lt_nm_to_check="$lt_nm_to_check nm" | |
5827 | fi | |
5828 | fi | |
5829 | for lt_tmp_nm in "$lt_nm_to_check"; do | |
5830 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5831 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5832 | IFS="$lt_save_ifs" | |
5833 | test -z "$ac_dir" && ac_dir=. | |
5834 | # Strip out any user-provided options from the nm to test twice, | |
5835 | # the first time to test to see if nm (rather than its options) has | |
5836 | # an explicit path, the second time to yield a file which can be | |
5837 | # nm'ed itself. | |
5838 | tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`" | |
5839 | case "$tmp_nm_path" in | |
5840 | */*|*\\*) tmp_nm="$lt_tmp_nm";; | |
5841 | *) tmp_nm="$ac_dir/$lt_tmp_nm";; | |
5842 | esac | |
5843 | tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`" | |
5844 | if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then | |
5845 | # Check to see if the nm accepts a BSD-compat flag. | |
5846 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5847 | # nm: unknown option "B" ignored | |
5848 | case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in | |
5849 | *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B" | |
5850 | break | |
5851 | ;; | |
5852 | *) | |
5853 | case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in | |
5854 | *$tmp_nm*) | |
5855 | lt_cv_path_NM="$tmp_nm -p" | |
5856 | break | |
5857 | ;; | |
5858 | *) | |
5859 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5860 | continue # so that we can try to find one that supports BSD flags | |
5861 | ;; | |
5862 | esac | |
5863 | ;; | |
5864 | esac | |
5865 | fi | |
5866 | done | |
5867 | IFS="$lt_save_ifs" | |
5868 | done | |
5869 | : ${lt_cv_path_NM=no} | |
63a4b106 AB |
5870 | fi |
5871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
5872 | $as_echo "$lt_cv_path_NM" >&6; } | |
5873 | if test "$lt_cv_path_NM" != "no"; then | |
5874 | NM="$lt_cv_path_NM" | |
5875 | else | |
5876 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
5877 | if test -n "$DUMPBIN"; then : | |
5878 | # Let the user override the test. | |
5879 | else | |
5880 | if test -n "$ac_tool_prefix"; then | |
5881 | for ac_prog in dumpbin "link -dump" | |
5882 | do | |
5883 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5884 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5886 | $as_echo_n "checking for $ac_word... " >&6; } | |
5887 | if ${ac_cv_prog_DUMPBIN+:} false; then : | |
5888 | $as_echo_n "(cached) " >&6 | |
5889 | else | |
5890 | if test -n "$DUMPBIN"; then | |
5891 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
5892 | else | |
5893 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5894 | for as_dir in $PATH | |
5895 | do | |
5896 | IFS=$as_save_IFS | |
5897 | test -z "$as_dir" && as_dir=. | |
5898 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5899 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5900 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
5901 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5902 | break 2 | |
5903 | fi | |
5904 | done | |
5905 | done | |
5906 | IFS=$as_save_IFS | |
5907 | ||
5908 | fi | |
5909 | fi | |
5910 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
5911 | if test -n "$DUMPBIN"; then | |
5912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
5913 | $as_echo "$DUMPBIN" >&6; } | |
5914 | else | |
5915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5916 | $as_echo "no" >&6; } | |
5917 | fi | |
5918 | ||
5919 | ||
5920 | test -n "$DUMPBIN" && break | |
5921 | done | |
5922 | fi | |
5923 | if test -z "$DUMPBIN"; then | |
5924 | ac_ct_DUMPBIN=$DUMPBIN | |
5925 | for ac_prog in dumpbin "link -dump" | |
5926 | do | |
5927 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5928 | set dummy $ac_prog; ac_word=$2 | |
5929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5930 | $as_echo_n "checking for $ac_word... " >&6; } | |
5931 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : | |
5932 | $as_echo_n "(cached) " >&6 | |
5933 | else | |
5934 | if test -n "$ac_ct_DUMPBIN"; then | |
5935 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
5936 | else | |
5937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5938 | for as_dir in $PATH | |
5939 | do | |
5940 | IFS=$as_save_IFS | |
5941 | test -z "$as_dir" && as_dir=. | |
5942 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5943 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5944 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
5945 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5946 | break 2 | |
5947 | fi | |
5948 | done | |
5949 | done | |
5950 | IFS=$as_save_IFS | |
5951 | ||
5952 | fi | |
5953 | fi | |
5954 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
5955 | if test -n "$ac_ct_DUMPBIN"; then | |
5956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
5957 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
5958 | else | |
5959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5960 | $as_echo "no" >&6; } | |
5961 | fi | |
5962 | ||
5963 | ||
5964 | test -n "$ac_ct_DUMPBIN" && break | |
5965 | done | |
5966 | ||
5967 | if test "x$ac_ct_DUMPBIN" = x; then | |
5968 | DUMPBIN=":" | |
5969 | else | |
5970 | case $cross_compiling:$ac_tool_warned in | |
5971 | yes:) | |
5972 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5973 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5974 | ac_tool_warned=yes ;; | |
5975 | esac | |
5976 | DUMPBIN=$ac_ct_DUMPBIN | |
5977 | fi | |
5978 | fi | |
5979 | ||
5980 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | |
5981 | *COFF*) | |
5982 | DUMPBIN="$DUMPBIN -symbols" | |
5983 | ;; | |
5984 | *) | |
5985 | DUMPBIN=: | |
5986 | ;; | |
5987 | esac | |
5988 | fi | |
5989 | ||
5990 | if test "$DUMPBIN" != ":"; then | |
5991 | NM="$DUMPBIN" | |
5992 | fi | |
5993 | fi | |
5994 | test -z "$NM" && NM=nm | |
5995 | ||
5996 | ||
5997 | ||
5998 | ||
5999 | ||
6000 | ||
6001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
6002 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
6003 | if ${lt_cv_nm_interface+:} false; then : | |
6004 | $as_echo_n "(cached) " >&6 | |
6005 | else | |
6006 | lt_cv_nm_interface="BSD nm" | |
6007 | echo "int some_variable = 0;" > conftest.$ac_ext | |
6008 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
6009 | (eval "$ac_compile" 2>conftest.err) | |
6010 | cat conftest.err >&5 | |
6011 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
6012 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
6013 | cat conftest.err >&5 | |
6014 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
6015 | cat conftest.out >&5 | |
6016 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
6017 | lt_cv_nm_interface="MS dumpbin" | |
6018 | fi | |
6019 | rm -f conftest* | |
6020 | fi | |
6021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
6022 | $as_echo "$lt_cv_nm_interface" >&6; } | |
6023 | ||
6024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
6025 | $as_echo_n "checking whether ln -s works... " >&6; } | |
6026 | LN_S=$as_ln_s | |
6027 | if test "$LN_S" = "ln -s"; then | |
6028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6029 | $as_echo "yes" >&6; } | |
6030 | else | |
6031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
6032 | $as_echo "no, using $LN_S" >&6; } | |
6033 | fi | |
6034 | ||
6035 | # find the maximum length of command line arguments | |
6036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
6037 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
6038 | if ${lt_cv_sys_max_cmd_len+:} false; then : | |
6039 | $as_echo_n "(cached) " >&6 | |
6040 | else | |
6041 | i=0 | |
6042 | teststring="ABCD" | |
6043 | ||
6044 | case $build_os in | |
6045 | msdosdjgpp*) | |
6046 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
6047 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
6048 | # during glob expansion). Even if it were fixed, the result of this | |
6049 | # check would be larger than it should be. | |
6050 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
6051 | ;; | |
6052 | ||
6053 | gnu*) | |
6054 | # Under GNU Hurd, this test is not required because there is | |
6055 | # no limit to the length of command line arguments. | |
6056 | # Libtool will interpret -1 as no limit whatsoever | |
6057 | lt_cv_sys_max_cmd_len=-1; | |
6058 | ;; | |
6059 | ||
6060 | cygwin* | mingw* | cegcc*) | |
6061 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
6062 | # about 5 minutes as the teststring grows exponentially. | |
6063 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
6064 | # you end up with a "frozen" computer, even though with patience | |
6065 | # the test eventually succeeds (with a max line length of 256k). | |
6066 | # Instead, let's just punt: use the minimum linelength reported by | |
6067 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
6068 | lt_cv_sys_max_cmd_len=8192; | |
6069 | ;; | |
6070 | ||
6071 | mint*) | |
6072 | # On MiNT this can take a long time and run out of memory. | |
6073 | lt_cv_sys_max_cmd_len=8192; | |
6074 | ;; | |
6075 | ||
6076 | amigaos*) | |
6077 | # On AmigaOS with pdksh, this test takes hours, literally. | |
6078 | # So we just punt and use a minimum line length of 8192. | |
6079 | lt_cv_sys_max_cmd_len=8192; | |
6080 | ;; | |
6081 | ||
6082 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
6083 | # This has been around since 386BSD, at least. Likely further. | |
6084 | if test -x /sbin/sysctl; then | |
6085 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
6086 | elif test -x /usr/sbin/sysctl; then | |
6087 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
6088 | else | |
6089 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
6090 | fi | |
6091 | # And add a safety zone | |
6092 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6093 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6094 | ;; | |
6095 | ||
6096 | interix*) | |
6097 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
6098 | lt_cv_sys_max_cmd_len=196608 | |
6099 | ;; | |
6100 | ||
6101 | osf*) | |
6102 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
6103 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
6104 | # nice to cause kernel panics so lets avoid the loop below. | |
6105 | # First set a reasonable default. | |
6106 | lt_cv_sys_max_cmd_len=16384 | |
6107 | # | |
6108 | if test -x /sbin/sysconfig; then | |
6109 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
6110 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
6111 | esac | |
6112 | fi | |
6113 | ;; | |
6114 | sco3.2v5*) | |
6115 | lt_cv_sys_max_cmd_len=102400 | |
6116 | ;; | |
6117 | sysv5* | sco5v6* | sysv4.2uw2*) | |
6118 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
6119 | if test -n "$kargmax"; then | |
6120 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
6121 | else | |
6122 | lt_cv_sys_max_cmd_len=32768 | |
6123 | fi | |
6124 | ;; | |
6125 | *) | |
6126 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
6127 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
6128 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6129 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6130 | else | |
6131 | # Make teststring a little bigger before we do anything with it. | |
6132 | # a 1K string should be a reasonable start. | |
6133 | for i in 1 2 3 4 5 6 7 8 ; do | |
6134 | teststring=$teststring$teststring | |
6135 | done | |
6136 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
6137 | # If test is not a shell built-in, we'll probably end up computing a | |
6138 | # maximum length that is only half of the actual maximum length, but | |
6139 | # we can't tell. | |
6140 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ | |
6141 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
6142 | test $i != 17 # 1/2 MB should be enough | |
6143 | do | |
6144 | i=`expr $i + 1` | |
6145 | teststring=$teststring$teststring | |
6146 | done | |
6147 | # Only check the string length outside the loop. | |
6148 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
6149 | teststring= | |
6150 | # Add a significant safety factor because C++ compilers can tack on | |
6151 | # massive amounts of additional arguments before passing them to the | |
6152 | # linker. It appears as though 1/2 is a usable value. | |
6153 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
6154 | fi | |
6155 | ;; | |
6156 | esac | |
6157 | ||
6158 | fi | |
6159 | ||
6160 | if test -n $lt_cv_sys_max_cmd_len ; then | |
6161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
6162 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
6163 | else | |
6164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
6165 | $as_echo "none" >&6; } | |
6166 | fi | |
6167 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
6168 | ||
6169 | ||
6170 | ||
6171 | ||
6172 | ||
6173 | ||
6174 | : ${CP="cp -f"} | |
6175 | : ${MV="mv -f"} | |
6176 | : ${RM="rm -f"} | |
6177 | ||
6178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
6179 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
6180 | # Try some XSI features | |
6181 | xsi_shell=no | |
6182 | ( _lt_dummy="a/b/c" | |
6183 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
6184 | = c,a/b,, \ | |
6185 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
6186 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
6187 | && xsi_shell=yes | |
6188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
6189 | $as_echo "$xsi_shell" >&6; } | |
6190 | ||
6191 | ||
6192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
6193 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
6194 | lt_shell_append=no | |
6195 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
6196 | >/dev/null 2>&1 \ | |
6197 | && lt_shell_append=yes | |
6198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
6199 | $as_echo "$lt_shell_append" >&6; } | |
6200 | ||
6201 | ||
6202 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
6203 | lt_unset=unset | |
6204 | else | |
6205 | lt_unset=false | |
6206 | fi | |
6207 | ||
6208 | ||
6209 | ||
6210 | ||
6211 | ||
6212 | # test EBCDIC or ASCII | |
6213 | case `echo X|tr X '\101'` in | |
6214 | A) # ASCII based system | |
6215 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
6216 | lt_SP2NL='tr \040 \012' | |
6217 | lt_NL2SP='tr \015\012 \040\040' | |
6218 | ;; | |
6219 | *) # EBCDIC based system | |
6220 | lt_SP2NL='tr \100 \n' | |
6221 | lt_NL2SP='tr \r\n \100\100' | |
6222 | ;; | |
6223 | esac | |
6224 | ||
6225 | ||
6226 | ||
6227 | ||
6228 | ||
6229 | ||
6230 | ||
6231 | ||
6232 | ||
6233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
6234 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
6235 | if ${lt_cv_ld_reload_flag+:} false; then : | |
6236 | $as_echo_n "(cached) " >&6 | |
6237 | else | |
6238 | lt_cv_ld_reload_flag='-r' | |
6239 | fi | |
6240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
6241 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
6242 | reload_flag=$lt_cv_ld_reload_flag | |
6243 | case $reload_flag in | |
6244 | "" | " "*) ;; | |
6245 | *) reload_flag=" $reload_flag" ;; | |
6246 | esac | |
6247 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6248 | case $host_os in | |
6249 | darwin*) | |
6250 | if test "$GCC" = yes; then | |
6251 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
6252 | else | |
6253 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6254 | fi | |
6255 | ;; | |
6256 | esac | |
6257 | ||
6258 | ||
6259 | ||
6260 | ||
6261 | ||
6262 | ||
6263 | ||
6264 | ||
6265 | ||
6266 | if test -n "$ac_tool_prefix"; then | |
6267 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
6268 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
6269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6270 | $as_echo_n "checking for $ac_word... " >&6; } | |
6271 | if ${ac_cv_prog_OBJDUMP+:} false; then : | |
6272 | $as_echo_n "(cached) " >&6 | |
6273 | else | |
6274 | if test -n "$OBJDUMP"; then | |
6275 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
6276 | else | |
6277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6278 | for as_dir in $PATH | |
6279 | do | |
6280 | IFS=$as_save_IFS | |
6281 | test -z "$as_dir" && as_dir=. | |
6282 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6283 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6284 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
6285 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6286 | break 2 | |
6287 | fi | |
6288 | done | |
6289 | done | |
6290 | IFS=$as_save_IFS | |
6291 | ||
6292 | fi | |
6293 | fi | |
6294 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
6295 | if test -n "$OBJDUMP"; then | |
6296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
6297 | $as_echo "$OBJDUMP" >&6; } | |
6298 | else | |
6299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6300 | $as_echo "no" >&6; } | |
6301 | fi | |
6302 | ||
6303 | ||
6304 | fi | |
6305 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
6306 | ac_ct_OBJDUMP=$OBJDUMP | |
6307 | # Extract the first word of "objdump", so it can be a program name with args. | |
6308 | set dummy objdump; ac_word=$2 | |
6309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6310 | $as_echo_n "checking for $ac_word... " >&6; } | |
6311 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
6312 | $as_echo_n "(cached) " >&6 | |
6313 | else | |
6314 | if test -n "$ac_ct_OBJDUMP"; then | |
6315 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
6316 | else | |
6317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6318 | for as_dir in $PATH | |
6319 | do | |
6320 | IFS=$as_save_IFS | |
6321 | test -z "$as_dir" && as_dir=. | |
6322 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6323 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6324 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
6325 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6326 | break 2 | |
6327 | fi | |
6328 | done | |
6329 | done | |
6330 | IFS=$as_save_IFS | |
6331 | ||
6332 | fi | |
6333 | fi | |
6334 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
6335 | if test -n "$ac_ct_OBJDUMP"; then | |
6336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
6337 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
6338 | else | |
6339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6340 | $as_echo "no" >&6; } | |
6341 | fi | |
6342 | ||
6343 | if test "x$ac_ct_OBJDUMP" = x; then | |
6344 | OBJDUMP="false" | |
6345 | else | |
6346 | case $cross_compiling:$ac_tool_warned in | |
6347 | yes:) | |
6348 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6349 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6350 | ac_tool_warned=yes ;; | |
6351 | esac | |
6352 | OBJDUMP=$ac_ct_OBJDUMP | |
6353 | fi | |
6354 | else | |
6355 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
6356 | fi | |
6357 | ||
6358 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
6359 | ||
6360 | ||
6361 | ||
6362 | ||
6363 | ||
6364 | ||
6365 | ||
6366 | ||
6367 | ||
6368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | |
6369 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
6370 | if ${lt_cv_deplibs_check_method+:} false; then : | |
6371 | $as_echo_n "(cached) " >&6 | |
6372 | else | |
6373 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
6374 | lt_cv_file_magic_test_file= | |
6375 | lt_cv_deplibs_check_method='unknown' | |
6376 | # Need to set the preceding variable on all platforms that support | |
6377 | # interlibrary dependencies. | |
6378 | # 'none' -- dependencies not supported. | |
6379 | # `unknown' -- same as none, but documents that we really don't know. | |
6380 | # 'pass_all' -- all dependencies passed with no checks. | |
6381 | # 'test_compile' -- check by making test program. | |
6382 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6383 | # which responds to the $file_magic_cmd with a given extended regex. | |
6384 | # If you have `file' or equivalent on your system and you're not sure | |
6385 | # whether `pass_all' will *always* work, you probably want this one. | |
6386 | ||
6387 | case $host_os in | |
6388 | aix[4-9]*) | |
6389 | lt_cv_deplibs_check_method=pass_all | |
6390 | ;; | |
6391 | ||
6392 | beos*) | |
6393 | lt_cv_deplibs_check_method=pass_all | |
6394 | ;; | |
6395 | ||
6396 | bsdi[45]*) | |
6397 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6398 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6399 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6400 | ;; | |
6401 | ||
6402 | cygwin*) | |
6403 | # func_win32_libid is a shell function defined in ltmain.sh | |
6404 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6405 | lt_cv_file_magic_cmd='func_win32_libid' | |
6406 | ;; | |
6407 | ||
6408 | mingw* | pw32*) | |
6409 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6410 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6411 | # unless we find 'file', for example because we are cross-compiling. | |
6412 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
6413 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
6414 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6415 | lt_cv_file_magic_cmd='func_win32_libid' | |
6416 | else | |
6417 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
6418 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6419 | fi | |
6420 | ;; | |
6421 | ||
6422 | cegcc*) | |
6423 | # use the weaker test based on 'objdump'. See mingw*. | |
6424 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6425 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6426 | ;; | |
6427 | ||
6428 | darwin* | rhapsody*) | |
6429 | lt_cv_deplibs_check_method=pass_all | |
6430 | ;; | |
6431 | ||
6432 | freebsd* | dragonfly*) | |
6433 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6434 | case $host_cpu in | |
6435 | i*86 ) | |
6436 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6437 | # Let's accept both of them until this is cleared up. | |
6438 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6439 | lt_cv_file_magic_cmd=/usr/bin/file | |
6440 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6441 | ;; | |
6442 | esac | |
6443 | else | |
6444 | lt_cv_deplibs_check_method=pass_all | |
6445 | fi | |
6446 | ;; | |
6447 | ||
6448 | gnu*) | |
6449 | lt_cv_deplibs_check_method=pass_all | |
6450 | ;; | |
6451 | ||
6452 | haiku*) | |
6453 | lt_cv_deplibs_check_method=pass_all | |
6454 | ;; | |
6455 | ||
6456 | hpux10.20* | hpux11*) | |
6457 | lt_cv_file_magic_cmd=/usr/bin/file | |
6458 | case $host_cpu in | |
6459 | ia64*) | |
6460 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6461 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6462 | ;; | |
6463 | hppa*64*) | |
6464 | 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]' | |
6465 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6466 | ;; | |
6467 | *) | |
6468 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
6469 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6470 | ;; | |
6471 | esac | |
6472 | ;; | |
6473 | ||
6474 | interix[3-9]*) | |
6475 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6476 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6477 | ;; | |
6478 | ||
6479 | irix5* | irix6* | nonstopux*) | |
6480 | case $LD in | |
6481 | *-32|*"-32 ") libmagic=32-bit;; | |
6482 | *-n32|*"-n32 ") libmagic=N32;; | |
6483 | *-64|*"-64 ") libmagic=64-bit;; | |
6484 | *) libmagic=never-match;; | |
6485 | esac | |
6486 | lt_cv_deplibs_check_method=pass_all | |
6487 | ;; | |
6488 | ||
6489 | # This must be Linux ELF. | |
caf606c9 | 6490 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
63a4b106 AB |
6491 | lt_cv_deplibs_check_method=pass_all |
6492 | ;; | |
6493 | ||
6494 | netbsd*) | |
6495 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6496 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6497 | else | |
6498 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6499 | fi | |
6500 | ;; | |
6501 | ||
6502 | newos6*) | |
6503 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6504 | lt_cv_file_magic_cmd=/usr/bin/file | |
6505 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6506 | ;; | |
6507 | ||
6508 | *nto* | *qnx*) | |
6509 | lt_cv_deplibs_check_method=pass_all | |
6510 | ;; | |
6511 | ||
6512 | openbsd*) | |
6513 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6514 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6515 | else | |
6516 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6517 | fi | |
6518 | ;; | |
6519 | ||
6520 | osf3* | osf4* | osf5*) | |
6521 | lt_cv_deplibs_check_method=pass_all | |
6522 | ;; | |
6523 | ||
6524 | rdos*) | |
6525 | lt_cv_deplibs_check_method=pass_all | |
6526 | ;; | |
6527 | ||
6528 | solaris*) | |
6529 | lt_cv_deplibs_check_method=pass_all | |
6530 | ;; | |
6531 | ||
6532 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
6533 | lt_cv_deplibs_check_method=pass_all | |
6534 | ;; | |
6535 | ||
6536 | sysv4 | sysv4.3*) | |
6537 | case $host_vendor in | |
6538 | motorola) | |
6539 | 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]' | |
6540 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6541 | ;; | |
6542 | ncr) | |
6543 | lt_cv_deplibs_check_method=pass_all | |
6544 | ;; | |
6545 | sequent) | |
6546 | lt_cv_file_magic_cmd='/bin/file' | |
6547 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6548 | ;; | |
6549 | sni) | |
6550 | lt_cv_file_magic_cmd='/bin/file' | |
6551 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6552 | lt_cv_file_magic_test_file=/lib/libc.so | |
6553 | ;; | |
6554 | siemens) | |
6555 | lt_cv_deplibs_check_method=pass_all | |
6556 | ;; | |
6557 | pc) | |
6558 | lt_cv_deplibs_check_method=pass_all | |
6559 | ;; | |
6560 | esac | |
6561 | ;; | |
6562 | ||
6563 | tpf*) | |
6564 | lt_cv_deplibs_check_method=pass_all | |
6565 | ;; | |
6566 | esac | |
6567 | ||
6568 | fi | |
6569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
6570 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
6571 | file_magic_cmd=$lt_cv_file_magic_cmd | |
6572 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6573 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
6574 | ||
6575 | ||
6576 | ||
6577 | ||
6578 | ||
6579 | ||
6580 | ||
6581 | ||
6582 | ||
6583 | ||
6584 | ||
6585 | ||
caf606c9 NA |
6586 | plugin_option= |
6587 | plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" | |
6588 | for plugin in $plugin_names; do | |
6589 | plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` | |
6590 | if test x$plugin_so = x$plugin; then | |
6591 | plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` | |
6592 | fi | |
6593 | if test x$plugin_so != x$plugin; then | |
6594 | plugin_option="--plugin $plugin_so" | |
6595 | break | |
6596 | fi | |
6597 | done | |
6598 | ||
63a4b106 AB |
6599 | if test -n "$ac_tool_prefix"; then |
6600 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6601 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
6602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6603 | $as_echo_n "checking for $ac_word... " >&6; } | |
6604 | if ${ac_cv_prog_AR+:} false; then : | |
6605 | $as_echo_n "(cached) " >&6 | |
6606 | else | |
6607 | if test -n "$AR"; then | |
6608 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6609 | else | |
6610 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6611 | for as_dir in $PATH | |
6612 | do | |
6613 | IFS=$as_save_IFS | |
6614 | test -z "$as_dir" && as_dir=. | |
6615 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6616 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6617 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
6618 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6619 | break 2 | |
6620 | fi | |
6621 | done | |
6622 | done | |
6623 | IFS=$as_save_IFS | |
6624 | ||
6625 | fi | |
6626 | fi | |
6627 | AR=$ac_cv_prog_AR | |
6628 | if test -n "$AR"; then | |
6629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6630 | $as_echo "$AR" >&6; } | |
6631 | else | |
6632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6633 | $as_echo "no" >&6; } | |
6634 | fi | |
6635 | ||
6636 | ||
6637 | fi | |
6638 | if test -z "$ac_cv_prog_AR"; then | |
6639 | ac_ct_AR=$AR | |
6640 | # Extract the first word of "ar", so it can be a program name with args. | |
6641 | set dummy ar; ac_word=$2 | |
6642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6643 | $as_echo_n "checking for $ac_word... " >&6; } | |
6644 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
6645 | $as_echo_n "(cached) " >&6 | |
6646 | else | |
6647 | if test -n "$ac_ct_AR"; then | |
6648 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6649 | else | |
6650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6651 | for as_dir in $PATH | |
6652 | do | |
6653 | IFS=$as_save_IFS | |
6654 | test -z "$as_dir" && as_dir=. | |
6655 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6656 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6657 | ac_cv_prog_ac_ct_AR="ar" | |
6658 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6659 | break 2 | |
6660 | fi | |
6661 | done | |
6662 | done | |
6663 | IFS=$as_save_IFS | |
6664 | ||
6665 | fi | |
6666 | fi | |
6667 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6668 | if test -n "$ac_ct_AR"; then | |
6669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6670 | $as_echo "$ac_ct_AR" >&6; } | |
6671 | else | |
6672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6673 | $as_echo "no" >&6; } | |
6674 | fi | |
6675 | ||
6676 | if test "x$ac_ct_AR" = x; then | |
6677 | AR="false" | |
6678 | else | |
6679 | case $cross_compiling:$ac_tool_warned in | |
6680 | yes:) | |
6681 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6682 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6683 | ac_tool_warned=yes ;; | |
6684 | esac | |
6685 | AR=$ac_ct_AR | |
6686 | fi | |
6687 | else | |
6688 | AR="$ac_cv_prog_AR" | |
6689 | fi | |
6690 | ||
6691 | test -z "$AR" && AR=ar | |
caf606c9 NA |
6692 | if test -n "$plugin_option"; then |
6693 | if $AR --help 2>&1 | grep -q "\--plugin"; then | |
6694 | touch conftest.c | |
6695 | $AR $plugin_option rc conftest.a conftest.c | |
6696 | if test "$?" != 0; then | |
6697 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | |
6698 | $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} | |
6699 | else | |
6700 | AR="$AR $plugin_option" | |
6701 | fi | |
6702 | rm -f conftest.* | |
6703 | fi | |
6704 | fi | |
63a4b106 AB |
6705 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
6706 | ||
6707 | ||
6708 | ||
6709 | ||
6710 | ||
6711 | ||
6712 | ||
6713 | ||
6714 | ||
6715 | ||
6716 | ||
6717 | if test -n "$ac_tool_prefix"; then | |
6718 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6719 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
6720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6721 | $as_echo_n "checking for $ac_word... " >&6; } | |
6722 | if ${ac_cv_prog_STRIP+:} false; then : | |
6723 | $as_echo_n "(cached) " >&6 | |
6724 | else | |
6725 | if test -n "$STRIP"; then | |
6726 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6727 | else | |
6728 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6729 | for as_dir in $PATH | |
6730 | do | |
6731 | IFS=$as_save_IFS | |
6732 | test -z "$as_dir" && as_dir=. | |
6733 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6734 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6735 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
6736 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6737 | break 2 | |
6738 | fi | |
6739 | done | |
6740 | done | |
6741 | IFS=$as_save_IFS | |
6742 | ||
6743 | fi | |
6744 | fi | |
6745 | STRIP=$ac_cv_prog_STRIP | |
6746 | if test -n "$STRIP"; then | |
6747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
6748 | $as_echo "$STRIP" >&6; } | |
6749 | else | |
6750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6751 | $as_echo "no" >&6; } | |
6752 | fi | |
6753 | ||
6754 | ||
6755 | fi | |
6756 | if test -z "$ac_cv_prog_STRIP"; then | |
6757 | ac_ct_STRIP=$STRIP | |
6758 | # Extract the first word of "strip", so it can be a program name with args. | |
6759 | set dummy strip; ac_word=$2 | |
6760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6761 | $as_echo_n "checking for $ac_word... " >&6; } | |
6762 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
6763 | $as_echo_n "(cached) " >&6 | |
6764 | else | |
6765 | if test -n "$ac_ct_STRIP"; then | |
6766 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6767 | else | |
6768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6769 | for as_dir in $PATH | |
6770 | do | |
6771 | IFS=$as_save_IFS | |
6772 | test -z "$as_dir" && as_dir=. | |
6773 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6774 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6775 | ac_cv_prog_ac_ct_STRIP="strip" | |
6776 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6777 | break 2 | |
6778 | fi | |
6779 | done | |
6780 | done | |
6781 | IFS=$as_save_IFS | |
6782 | ||
6783 | fi | |
6784 | fi | |
6785 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6786 | if test -n "$ac_ct_STRIP"; then | |
6787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
6788 | $as_echo "$ac_ct_STRIP" >&6; } | |
6789 | else | |
6790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6791 | $as_echo "no" >&6; } | |
6792 | fi | |
6793 | ||
6794 | if test "x$ac_ct_STRIP" = x; then | |
6795 | STRIP=":" | |
6796 | else | |
6797 | case $cross_compiling:$ac_tool_warned in | |
6798 | yes:) | |
6799 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6800 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6801 | ac_tool_warned=yes ;; | |
6802 | esac | |
6803 | STRIP=$ac_ct_STRIP | |
6804 | fi | |
6805 | else | |
6806 | STRIP="$ac_cv_prog_STRIP" | |
6807 | fi | |
6808 | ||
6809 | test -z "$STRIP" && STRIP=: | |
6810 | ||
6811 | ||
6812 | ||
6813 | ||
6814 | ||
6815 | ||
6816 | if test -n "$ac_tool_prefix"; then | |
6817 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6818 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6820 | $as_echo_n "checking for $ac_word... " >&6; } | |
6821 | if ${ac_cv_prog_RANLIB+:} false; then : | |
6822 | $as_echo_n "(cached) " >&6 | |
6823 | else | |
6824 | if test -n "$RANLIB"; then | |
6825 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6826 | else | |
6827 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6828 | for as_dir in $PATH | |
6829 | do | |
6830 | IFS=$as_save_IFS | |
6831 | test -z "$as_dir" && as_dir=. | |
6832 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6833 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6834 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
6835 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6836 | break 2 | |
6837 | fi | |
6838 | done | |
6839 | done | |
6840 | IFS=$as_save_IFS | |
6841 | ||
6842 | fi | |
6843 | fi | |
6844 | RANLIB=$ac_cv_prog_RANLIB | |
6845 | if test -n "$RANLIB"; then | |
6846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6847 | $as_echo "$RANLIB" >&6; } | |
6848 | else | |
6849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6850 | $as_echo "no" >&6; } | |
6851 | fi | |
6852 | ||
6853 | ||
6854 | fi | |
6855 | if test -z "$ac_cv_prog_RANLIB"; then | |
6856 | ac_ct_RANLIB=$RANLIB | |
6857 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6858 | set dummy ranlib; ac_word=$2 | |
6859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6860 | $as_echo_n "checking for $ac_word... " >&6; } | |
6861 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
6862 | $as_echo_n "(cached) " >&6 | |
6863 | else | |
6864 | if test -n "$ac_ct_RANLIB"; then | |
6865 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6866 | else | |
6867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6868 | for as_dir in $PATH | |
6869 | do | |
6870 | IFS=$as_save_IFS | |
6871 | test -z "$as_dir" && as_dir=. | |
6872 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6873 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6874 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
6875 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6876 | break 2 | |
6877 | fi | |
6878 | done | |
6879 | done | |
6880 | IFS=$as_save_IFS | |
6881 | ||
6882 | fi | |
6883 | fi | |
6884 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6885 | if test -n "$ac_ct_RANLIB"; then | |
6886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6887 | $as_echo "$ac_ct_RANLIB" >&6; } | |
6888 | else | |
6889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6890 | $as_echo "no" >&6; } | |
6891 | fi | |
6892 | ||
6893 | if test "x$ac_ct_RANLIB" = x; then | |
6894 | RANLIB=":" | |
6895 | else | |
6896 | case $cross_compiling:$ac_tool_warned in | |
6897 | yes:) | |
6898 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6899 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6900 | ac_tool_warned=yes ;; | |
6901 | esac | |
6902 | RANLIB=$ac_ct_RANLIB | |
6903 | fi | |
6904 | else | |
6905 | RANLIB="$ac_cv_prog_RANLIB" | |
6906 | fi | |
6907 | ||
6908 | test -z "$RANLIB" && RANLIB=: | |
caf606c9 NA |
6909 | if test -n "$plugin_option" && test "$RANLIB" != ":"; then |
6910 | if $RANLIB --help 2>&1 | grep -q "\--plugin"; then | |
6911 | RANLIB="$RANLIB $plugin_option" | |
6912 | fi | |
6913 | fi | |
63a4b106 AB |
6914 | |
6915 | ||
6916 | ||
6917 | ||
6918 | ||
6919 | ||
6920 | # Determine commands to create old-style static archives. | |
6921 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
6922 | old_postinstall_cmds='chmod 644 $oldlib' | |
6923 | old_postuninstall_cmds= | |
6924 | ||
6925 | if test -n "$RANLIB"; then | |
6926 | case $host_os in | |
6927 | openbsd*) | |
6928 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
6929 | ;; | |
6930 | *) | |
6931 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
6932 | ;; | |
6933 | esac | |
6934 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
6935 | fi | |
6936 | ||
6937 | case $host_os in | |
6938 | darwin*) | |
6939 | lock_old_archive_extraction=yes ;; | |
6940 | *) | |
6941 | lock_old_archive_extraction=no ;; | |
6942 | esac | |
6943 | ||
6944 | ||
6945 | ||
6946 | ||
6947 | ||
6948 | ||
6949 | ||
6950 | ||
6951 | ||
6952 | ||
6953 | ||
6954 | ||
6955 | ||
6956 | ||
6957 | ||
6958 | ||
6959 | ||
6960 | ||
6961 | ||
6962 | ||
6963 | ||
6964 | ||
6965 | ||
6966 | ||
6967 | ||
6968 | ||
6969 | ||
6970 | ||
6971 | ||
6972 | ||
6973 | ||
6974 | ||
6975 | ||
6976 | ||
6977 | ||
6978 | ||
6979 | ||
6980 | ||
6981 | ||
6982 | # If no C compiler was specified, use CC. | |
6983 | LTCC=${LTCC-"$CC"} | |
6984 | ||
6985 | # If no C compiler flags were specified, use CFLAGS. | |
6986 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6987 | ||
6988 | # Allow CC to be a program name with arguments. | |
6989 | compiler=$CC | |
6990 | ||
6991 | ||
6992 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
6993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
6994 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
6995 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : | |
6996 | $as_echo_n "(cached) " >&6 | |
6997 | else | |
6998 | ||
6999 | # These are sane defaults that work on at least a few old systems. | |
7000 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
7001 | ||
7002 | # Character class describing NM global symbol codes. | |
7003 | symcode='[BCDEGRST]' | |
7004 | ||
7005 | # Regexp to match symbols that can be accessed directly from C. | |
7006 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
7007 | ||
7008 | # Define system-specific variables. | |
7009 | case $host_os in | |
7010 | aix*) | |
7011 | symcode='[BCDT]' | |
7012 | ;; | |
7013 | cygwin* | mingw* | pw32* | cegcc*) | |
7014 | symcode='[ABCDGISTW]' | |
7015 | ;; | |
7016 | hpux*) | |
7017 | if test "$host_cpu" = ia64; then | |
7018 | symcode='[ABCDEGRST]' | |
7019 | fi | |
7020 | ;; | |
7021 | irix* | nonstopux*) | |
7022 | symcode='[BCDEGRST]' | |
7023 | ;; | |
7024 | osf*) | |
7025 | symcode='[BCDEGQRST]' | |
7026 | ;; | |
7027 | solaris*) | |
caf606c9 | 7028 | symcode='[BCDRT]' |
63a4b106 AB |
7029 | ;; |
7030 | sco3.2v5*) | |
7031 | symcode='[DT]' | |
7032 | ;; | |
7033 | sysv4.2uw2*) | |
7034 | symcode='[DT]' | |
7035 | ;; | |
7036 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7037 | symcode='[ABDT]' | |
7038 | ;; | |
7039 | sysv4) | |
7040 | symcode='[DFNSTU]' | |
7041 | ;; | |
7042 | esac | |
7043 | ||
7044 | # If we're using GNU nm, then use its standard symbol codes. | |
7045 | case `$NM -V 2>&1` in | |
7046 | *GNU* | *'with BFD'*) | |
7047 | symcode='[ABCDGIRSTW]' ;; | |
7048 | esac | |
7049 | ||
7050 | # Transform an extracted symbol line into a proper C declaration. | |
7051 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7052 | # so use this general approach. | |
7053 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
7054 | ||
7055 | # Transform an extracted symbol line into symbol name and symbol address | |
7056 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
7057 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | |
7058 | ||
7059 | # Handle CRLF in mingw tool chain | |
7060 | opt_cr= | |
7061 | case $build_os in | |
7062 | mingw*) | |
7063 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7064 | ;; | |
7065 | esac | |
7066 | ||
7067 | # Try without a prefix underscore, then with it. | |
7068 | for ac_symprfx in "" "_"; do | |
7069 | ||
7070 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
7071 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
7072 | ||
7073 | # Write the raw and C identifiers. | |
7074 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7075 | # Fake it for dumpbin and say T for any non-static function | |
7076 | # and D for any global variable. | |
7077 | # Also find C++ and __fastcall symbols from MSVC++, | |
7078 | # which start with @ or ?. | |
7079 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7080 | " {last_section=section; section=\$ 3};"\ | |
7081 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
7082 | " \$ 0!~/External *\|/{next};"\ | |
7083 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7084 | " {if(hide[section]) next};"\ | |
7085 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
7086 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
7087 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
7088 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
7089 | " ' prfx=^$ac_symprfx" | |
7090 | else | |
7091 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7092 | fi | |
7093 | ||
7094 | # Check to see that the pipe works correctly. | |
7095 | pipe_works=no | |
7096 | ||
7097 | rm -f conftest* | |
7098 | cat > conftest.$ac_ext <<_LT_EOF | |
7099 | #ifdef __cplusplus | |
7100 | extern "C" { | |
7101 | #endif | |
7102 | char nm_test_var; | |
7103 | void nm_test_func(void); | |
7104 | void nm_test_func(void){} | |
7105 | #ifdef __cplusplus | |
7106 | } | |
7107 | #endif | |
7108 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7109 | _LT_EOF | |
7110 | ||
7111 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7112 | (eval $ac_compile) 2>&5 | |
7113 | ac_status=$? | |
7114 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7115 | test $ac_status = 0; }; then | |
7116 | # Now try to grab the symbols. | |
7117 | nlist=conftest.nm | |
7118 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
7119 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
7120 | ac_status=$? | |
7121 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7122 | test $ac_status = 0; } && test -s "$nlist"; then | |
7123 | # Try sorting and uniquifying the output. | |
7124 | if sort "$nlist" | uniq > "$nlist"T; then | |
7125 | mv -f "$nlist"T "$nlist" | |
7126 | else | |
7127 | rm -f "$nlist"T | |
7128 | fi | |
7129 | ||
7130 | # Make sure that we snagged all the symbols we need. | |
7131 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
7132 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7133 | cat <<_LT_EOF > conftest.$ac_ext | |
7134 | #ifdef __cplusplus | |
7135 | extern "C" { | |
7136 | #endif | |
7137 | ||
7138 | _LT_EOF | |
7139 | # Now generate the symbol file. | |
7140 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
7141 | ||
7142 | cat <<_LT_EOF >> conftest.$ac_ext | |
7143 | ||
7144 | /* The mapping between symbol names and symbols. */ | |
7145 | const struct { | |
7146 | const char *name; | |
7147 | void *address; | |
7148 | } | |
7149 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
7150 | { | |
7151 | { "@PROGRAM@", (void *) 0 }, | |
7152 | _LT_EOF | |
7153 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
7154 | cat <<\_LT_EOF >> conftest.$ac_ext | |
7155 | {0, (void *) 0} | |
7156 | }; | |
7157 | ||
7158 | /* This works around a problem in FreeBSD linker */ | |
7159 | #ifdef FREEBSD_WORKAROUND | |
7160 | static const void *lt_preloaded_setup() { | |
7161 | return lt__PROGRAM__LTX_preloaded_symbols; | |
7162 | } | |
7163 | #endif | |
7164 | ||
7165 | #ifdef __cplusplus | |
7166 | } | |
7167 | #endif | |
7168 | _LT_EOF | |
7169 | # Now try linking the two files. | |
7170 | mv conftest.$ac_objext conftstm.$ac_objext | |
7171 | lt_save_LIBS="$LIBS" | |
7172 | lt_save_CFLAGS="$CFLAGS" | |
7173 | LIBS="conftstm.$ac_objext" | |
7174 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
7175 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
7176 | (eval $ac_link) 2>&5 | |
7177 | ac_status=$? | |
7178 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7179 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7180 | pipe_works=yes | |
7181 | fi | |
7182 | LIBS="$lt_save_LIBS" | |
7183 | CFLAGS="$lt_save_CFLAGS" | |
7184 | else | |
7185 | echo "cannot find nm_test_func in $nlist" >&5 | |
7186 | fi | |
7187 | else | |
7188 | echo "cannot find nm_test_var in $nlist" >&5 | |
7189 | fi | |
7190 | else | |
7191 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7192 | fi | |
7193 | else | |
7194 | echo "$progname: failed program was:" >&5 | |
7195 | cat conftest.$ac_ext >&5 | |
7196 | fi | |
7197 | rm -rf conftest* conftst* | |
7198 | ||
7199 | # Do not use the global_symbol_pipe unless it works. | |
7200 | if test "$pipe_works" = yes; then | |
7201 | break | |
7202 | else | |
7203 | lt_cv_sys_global_symbol_pipe= | |
7204 | fi | |
7205 | done | |
7206 | ||
7207 | fi | |
7208 | ||
7209 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
7210 | lt_cv_sys_global_symbol_to_cdecl= | |
7211 | fi | |
7212 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
7213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
7214 | $as_echo "failed" >&6; } | |
7215 | else | |
7216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
7217 | $as_echo "ok" >&6; } | |
7218 | fi | |
7219 | ||
7220 | ||
7221 | ||
7222 | ||
7223 | ||
7224 | ||
7225 | ||
7226 | ||
7227 | ||
7228 | ||
7229 | ||
7230 | ||
7231 | ||
7232 | ||
7233 | ||
7234 | ||
7235 | ||
7236 | ||
7237 | ||
7238 | ||
7239 | ||
7240 | ||
7241 | # Check whether --enable-libtool-lock was given. | |
7242 | if test "${enable_libtool_lock+set}" = set; then : | |
7243 | enableval=$enable_libtool_lock; | |
7244 | fi | |
7245 | ||
7246 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
7247 | ||
7248 | # Some flags need to be propagated to the compiler or linker for good | |
7249 | # libtool support. | |
7250 | case $host in | |
7251 | ia64-*-hpux*) | |
7252 | # Find out which ABI we are using. | |
7253 | echo 'int i;' > conftest.$ac_ext | |
7254 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7255 | (eval $ac_compile) 2>&5 | |
7256 | ac_status=$? | |
7257 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7258 | test $ac_status = 0; }; then | |
7259 | case `/usr/bin/file conftest.$ac_objext` in | |
7260 | *ELF-32*) | |
7261 | HPUX_IA64_MODE="32" | |
7262 | ;; | |
7263 | *ELF-64*) | |
7264 | HPUX_IA64_MODE="64" | |
7265 | ;; | |
7266 | esac | |
7267 | fi | |
7268 | rm -rf conftest* | |
7269 | ;; | |
7270 | *-*-irix6*) | |
7271 | # Find out which ABI we are using. | |
7272 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
7273 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7274 | (eval $ac_compile) 2>&5 | |
7275 | ac_status=$? | |
7276 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7277 | test $ac_status = 0; }; then | |
7278 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
7279 | case `/usr/bin/file conftest.$ac_objext` in | |
7280 | *32-bit*) | |
7281 | LD="${LD-ld} -melf32bsmip" | |
7282 | ;; | |
7283 | *N32*) | |
7284 | LD="${LD-ld} -melf32bmipn32" | |
7285 | ;; | |
7286 | *64-bit*) | |
7287 | LD="${LD-ld} -melf64bmip" | |
7288 | ;; | |
7289 | esac | |
7290 | else | |
7291 | case `/usr/bin/file conftest.$ac_objext` in | |
7292 | *32-bit*) | |
7293 | LD="${LD-ld} -32" | |
7294 | ;; | |
7295 | *N32*) | |
7296 | LD="${LD-ld} -n32" | |
7297 | ;; | |
7298 | *64-bit*) | |
7299 | LD="${LD-ld} -64" | |
7300 | ;; | |
7301 | esac | |
7302 | fi | |
7303 | fi | |
7304 | rm -rf conftest* | |
7305 | ;; | |
7306 | ||
7307 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ | |
7308 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
7309 | # Find out which ABI we are using. | |
7310 | echo 'int i;' > conftest.$ac_ext | |
7311 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7312 | (eval $ac_compile) 2>&5 | |
7313 | ac_status=$? | |
7314 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7315 | test $ac_status = 0; }; then | |
7316 | case `/usr/bin/file conftest.o` in | |
7317 | *32-bit*) | |
7318 | case $host in | |
7319 | x86_64-*kfreebsd*-gnu) | |
7320 | LD="${LD-ld} -m elf_i386_fbsd" | |
7321 | ;; | |
7322 | x86_64-*linux*) | |
7323 | case `/usr/bin/file conftest.o` in | |
7324 | *x86-64*) | |
7325 | LD="${LD-ld} -m elf32_x86_64" | |
7326 | ;; | |
7327 | *) | |
7328 | LD="${LD-ld} -m elf_i386" | |
7329 | ;; | |
7330 | esac | |
7331 | ;; | |
7332 | powerpc64le-*linux*) | |
7333 | LD="${LD-ld} -m elf32lppclinux" | |
7334 | ;; | |
7335 | powerpc64-*linux*) | |
7336 | LD="${LD-ld} -m elf32ppclinux" | |
7337 | ;; | |
7338 | s390x-*linux*) | |
7339 | LD="${LD-ld} -m elf_s390" | |
7340 | ;; | |
7341 | sparc64-*linux*) | |
7342 | LD="${LD-ld} -m elf32_sparc" | |
7343 | ;; | |
7344 | esac | |
7345 | ;; | |
7346 | *64-bit*) | |
7347 | case $host in | |
7348 | x86_64-*kfreebsd*-gnu) | |
7349 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
7350 | ;; | |
7351 | x86_64-*linux*) | |
7352 | LD="${LD-ld} -m elf_x86_64" | |
7353 | ;; | |
7354 | powerpcle-*linux*) | |
7355 | LD="${LD-ld} -m elf64lppc" | |
7356 | ;; | |
7357 | powerpc-*linux*) | |
7358 | LD="${LD-ld} -m elf64ppc" | |
7359 | ;; | |
7360 | s390*-*linux*|s390*-*tpf*) | |
7361 | LD="${LD-ld} -m elf64_s390" | |
7362 | ;; | |
7363 | sparc*-*linux*) | |
7364 | LD="${LD-ld} -m elf64_sparc" | |
7365 | ;; | |
7366 | esac | |
7367 | ;; | |
7368 | esac | |
7369 | fi | |
7370 | rm -rf conftest* | |
7371 | ;; | |
7372 | ||
7373 | *-*-sco3.2v5*) | |
7374 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
7375 | SAVE_CFLAGS="$CFLAGS" | |
7376 | CFLAGS="$CFLAGS -belf" | |
7377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
7378 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
7379 | if ${lt_cv_cc_needs_belf+:} false; then : | |
7380 | $as_echo_n "(cached) " >&6 | |
7381 | else | |
7382 | ac_ext=c | |
7383 | ac_cpp='$CPP $CPPFLAGS' | |
7384 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7385 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7386 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7387 | ||
7388 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7389 | /* end confdefs.h. */ | |
7390 | ||
7391 | int | |
7392 | main () | |
7393 | { | |
7394 | ||
7395 | ; | |
7396 | return 0; | |
7397 | } | |
7398 | _ACEOF | |
7399 | if ac_fn_c_try_link "$LINENO"; then : | |
7400 | lt_cv_cc_needs_belf=yes | |
7401 | else | |
7402 | lt_cv_cc_needs_belf=no | |
7403 | fi | |
7404 | rm -f core conftest.err conftest.$ac_objext \ | |
7405 | conftest$ac_exeext conftest.$ac_ext | |
7406 | ac_ext=c | |
7407 | ac_cpp='$CPP $CPPFLAGS' | |
7408 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7409 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7410 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7411 | ||
7412 | fi | |
7413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
7414 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7415 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
7416 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7417 | CFLAGS="$SAVE_CFLAGS" | |
7418 | fi | |
7419 | ;; | |
7420 | sparc*-*solaris*) | |
7421 | # Find out which ABI we are using. | |
7422 | echo 'int i;' > conftest.$ac_ext | |
7423 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7424 | (eval $ac_compile) 2>&5 | |
7425 | ac_status=$? | |
7426 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7427 | test $ac_status = 0; }; then | |
7428 | case `/usr/bin/file conftest.o` in | |
7429 | *64-bit*) | |
7430 | case $lt_cv_prog_gnu_ld in | |
7431 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
7432 | *) | |
7433 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7434 | LD="${LD-ld} -64" | |
7435 | fi | |
7436 | ;; | |
7437 | esac | |
7438 | ;; | |
7439 | esac | |
7440 | fi | |
7441 | rm -rf conftest* | |
7442 | ;; | |
7443 | esac | |
7444 | ||
7445 | need_locks="$enable_libtool_lock" | |
7446 | ||
7447 | ||
7448 | case $host_os in | |
7449 | rhapsody* | darwin*) | |
7450 | if test -n "$ac_tool_prefix"; then | |
7451 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7452 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
7453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7454 | $as_echo_n "checking for $ac_word... " >&6; } | |
7455 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
7456 | $as_echo_n "(cached) " >&6 | |
7457 | else | |
7458 | if test -n "$DSYMUTIL"; then | |
7459 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7460 | else | |
7461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7462 | for as_dir in $PATH | |
7463 | do | |
7464 | IFS=$as_save_IFS | |
7465 | test -z "$as_dir" && as_dir=. | |
7466 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7467 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7468 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
7469 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7470 | break 2 | |
7471 | fi | |
7472 | done | |
7473 | done | |
7474 | IFS=$as_save_IFS | |
7475 | ||
7476 | fi | |
7477 | fi | |
7478 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7479 | if test -n "$DSYMUTIL"; then | |
7480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
7481 | $as_echo "$DSYMUTIL" >&6; } | |
7482 | else | |
7483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7484 | $as_echo "no" >&6; } | |
7485 | fi | |
7486 | ||
7487 | ||
7488 | fi | |
7489 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7490 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7491 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7492 | set dummy dsymutil; ac_word=$2 | |
7493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7494 | $as_echo_n "checking for $ac_word... " >&6; } | |
7495 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
7496 | $as_echo_n "(cached) " >&6 | |
7497 | else | |
7498 | if test -n "$ac_ct_DSYMUTIL"; then | |
7499 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7500 | else | |
7501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7502 | for as_dir in $PATH | |
7503 | do | |
7504 | IFS=$as_save_IFS | |
7505 | test -z "$as_dir" && as_dir=. | |
7506 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7507 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7508 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
7509 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7510 | break 2 | |
7511 | fi | |
7512 | done | |
7513 | done | |
7514 | IFS=$as_save_IFS | |
7515 | ||
7516 | fi | |
7517 | fi | |
7518 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
7519 | if test -n "$ac_ct_DSYMUTIL"; then | |
7520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
7521 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
7522 | else | |
7523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7524 | $as_echo "no" >&6; } | |
7525 | fi | |
7526 | ||
7527 | if test "x$ac_ct_DSYMUTIL" = x; then | |
7528 | DSYMUTIL=":" | |
7529 | else | |
7530 | case $cross_compiling:$ac_tool_warned in | |
7531 | yes:) | |
7532 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7533 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7534 | ac_tool_warned=yes ;; | |
7535 | esac | |
7536 | DSYMUTIL=$ac_ct_DSYMUTIL | |
7537 | fi | |
7538 | else | |
7539 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7540 | fi | |
7541 | ||
7542 | if test -n "$ac_tool_prefix"; then | |
7543 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7544 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
7545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7546 | $as_echo_n "checking for $ac_word... " >&6; } | |
7547 | if ${ac_cv_prog_NMEDIT+:} false; then : | |
7548 | $as_echo_n "(cached) " >&6 | |
7549 | else | |
7550 | if test -n "$NMEDIT"; then | |
7551 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7552 | else | |
7553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7554 | for as_dir in $PATH | |
7555 | do | |
7556 | IFS=$as_save_IFS | |
7557 | test -z "$as_dir" && as_dir=. | |
7558 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7559 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7560 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
7561 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7562 | break 2 | |
7563 | fi | |
7564 | done | |
7565 | done | |
7566 | IFS=$as_save_IFS | |
7567 | ||
7568 | fi | |
7569 | fi | |
7570 | NMEDIT=$ac_cv_prog_NMEDIT | |
7571 | if test -n "$NMEDIT"; then | |
7572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
7573 | $as_echo "$NMEDIT" >&6; } | |
7574 | else | |
7575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7576 | $as_echo "no" >&6; } | |
7577 | fi | |
7578 | ||
7579 | ||
7580 | fi | |
7581 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7582 | ac_ct_NMEDIT=$NMEDIT | |
7583 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7584 | set dummy nmedit; ac_word=$2 | |
7585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7586 | $as_echo_n "checking for $ac_word... " >&6; } | |
7587 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | |
7588 | $as_echo_n "(cached) " >&6 | |
7589 | else | |
7590 | if test -n "$ac_ct_NMEDIT"; then | |
7591 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7592 | else | |
7593 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7594 | for as_dir in $PATH | |
7595 | do | |
7596 | IFS=$as_save_IFS | |
7597 | test -z "$as_dir" && as_dir=. | |
7598 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7599 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7600 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
7601 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7602 | break 2 | |
7603 | fi | |
7604 | done | |
7605 | done | |
7606 | IFS=$as_save_IFS | |
7607 | ||
7608 | fi | |
7609 | fi | |
7610 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7611 | if test -n "$ac_ct_NMEDIT"; then | |
7612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
7613 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
7614 | else | |
7615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7616 | $as_echo "no" >&6; } | |
7617 | fi | |
7618 | ||
7619 | if test "x$ac_ct_NMEDIT" = x; then | |
7620 | NMEDIT=":" | |
7621 | else | |
7622 | case $cross_compiling:$ac_tool_warned in | |
7623 | yes:) | |
7624 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7625 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7626 | ac_tool_warned=yes ;; | |
7627 | esac | |
7628 | NMEDIT=$ac_ct_NMEDIT | |
7629 | fi | |
7630 | else | |
7631 | NMEDIT="$ac_cv_prog_NMEDIT" | |
7632 | fi | |
7633 | ||
7634 | if test -n "$ac_tool_prefix"; then | |
7635 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7636 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
7637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7638 | $as_echo_n "checking for $ac_word... " >&6; } | |
7639 | if ${ac_cv_prog_LIPO+:} false; then : | |
7640 | $as_echo_n "(cached) " >&6 | |
7641 | else | |
7642 | if test -n "$LIPO"; then | |
7643 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7644 | else | |
7645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7646 | for as_dir in $PATH | |
7647 | do | |
7648 | IFS=$as_save_IFS | |
7649 | test -z "$as_dir" && as_dir=. | |
7650 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7651 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7652 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
7653 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7654 | break 2 | |
7655 | fi | |
7656 | done | |
7657 | done | |
7658 | IFS=$as_save_IFS | |
7659 | ||
7660 | fi | |
7661 | fi | |
7662 | LIPO=$ac_cv_prog_LIPO | |
7663 | if test -n "$LIPO"; then | |
7664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
7665 | $as_echo "$LIPO" >&6; } | |
7666 | else | |
7667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7668 | $as_echo "no" >&6; } | |
7669 | fi | |
7670 | ||
7671 | ||
7672 | fi | |
7673 | if test -z "$ac_cv_prog_LIPO"; then | |
7674 | ac_ct_LIPO=$LIPO | |
7675 | # Extract the first word of "lipo", so it can be a program name with args. | |
7676 | set dummy lipo; ac_word=$2 | |
7677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7678 | $as_echo_n "checking for $ac_word... " >&6; } | |
7679 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | |
7680 | $as_echo_n "(cached) " >&6 | |
7681 | else | |
7682 | if test -n "$ac_ct_LIPO"; then | |
7683 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7684 | else | |
7685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7686 | for as_dir in $PATH | |
7687 | do | |
7688 | IFS=$as_save_IFS | |
7689 | test -z "$as_dir" && as_dir=. | |
7690 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7691 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7692 | ac_cv_prog_ac_ct_LIPO="lipo" | |
7693 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7694 | break 2 | |
7695 | fi | |
7696 | done | |
7697 | done | |
7698 | IFS=$as_save_IFS | |
7699 | ||
7700 | fi | |
7701 | fi | |
7702 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7703 | if test -n "$ac_ct_LIPO"; then | |
7704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
7705 | $as_echo "$ac_ct_LIPO" >&6; } | |
7706 | else | |
7707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7708 | $as_echo "no" >&6; } | |
7709 | fi | |
7710 | ||
7711 | if test "x$ac_ct_LIPO" = x; then | |
7712 | LIPO=":" | |
7713 | else | |
7714 | case $cross_compiling:$ac_tool_warned in | |
7715 | yes:) | |
7716 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7717 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7718 | ac_tool_warned=yes ;; | |
7719 | esac | |
7720 | LIPO=$ac_ct_LIPO | |
7721 | fi | |
7722 | else | |
7723 | LIPO="$ac_cv_prog_LIPO" | |
7724 | fi | |
7725 | ||
7726 | if test -n "$ac_tool_prefix"; then | |
7727 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7728 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
7729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7730 | $as_echo_n "checking for $ac_word... " >&6; } | |
7731 | if ${ac_cv_prog_OTOOL+:} false; then : | |
7732 | $as_echo_n "(cached) " >&6 | |
7733 | else | |
7734 | if test -n "$OTOOL"; then | |
7735 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7736 | else | |
7737 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7738 | for as_dir in $PATH | |
7739 | do | |
7740 | IFS=$as_save_IFS | |
7741 | test -z "$as_dir" && as_dir=. | |
7742 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7743 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7744 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
7745 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7746 | break 2 | |
7747 | fi | |
7748 | done | |
7749 | done | |
7750 | IFS=$as_save_IFS | |
7751 | ||
7752 | fi | |
7753 | fi | |
7754 | OTOOL=$ac_cv_prog_OTOOL | |
7755 | if test -n "$OTOOL"; then | |
7756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
7757 | $as_echo "$OTOOL" >&6; } | |
7758 | else | |
7759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7760 | $as_echo "no" >&6; } | |
7761 | fi | |
7762 | ||
7763 | ||
7764 | fi | |
7765 | if test -z "$ac_cv_prog_OTOOL"; then | |
7766 | ac_ct_OTOOL=$OTOOL | |
7767 | # Extract the first word of "otool", so it can be a program name with args. | |
7768 | set dummy otool; ac_word=$2 | |
7769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7770 | $as_echo_n "checking for $ac_word... " >&6; } | |
7771 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
7772 | $as_echo_n "(cached) " >&6 | |
7773 | else | |
7774 | if test -n "$ac_ct_OTOOL"; then | |
7775 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7776 | else | |
7777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7778 | for as_dir in $PATH | |
7779 | do | |
7780 | IFS=$as_save_IFS | |
7781 | test -z "$as_dir" && as_dir=. | |
7782 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7783 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7784 | ac_cv_prog_ac_ct_OTOOL="otool" | |
7785 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7786 | break 2 | |
7787 | fi | |
7788 | done | |
7789 | done | |
7790 | IFS=$as_save_IFS | |
7791 | ||
7792 | fi | |
7793 | fi | |
7794 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7795 | if test -n "$ac_ct_OTOOL"; then | |
7796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
7797 | $as_echo "$ac_ct_OTOOL" >&6; } | |
7798 | else | |
7799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7800 | $as_echo "no" >&6; } | |
7801 | fi | |
7802 | ||
7803 | if test "x$ac_ct_OTOOL" = x; then | |
7804 | OTOOL=":" | |
7805 | else | |
7806 | case $cross_compiling:$ac_tool_warned in | |
7807 | yes:) | |
7808 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7809 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7810 | ac_tool_warned=yes ;; | |
7811 | esac | |
7812 | OTOOL=$ac_ct_OTOOL | |
7813 | fi | |
7814 | else | |
7815 | OTOOL="$ac_cv_prog_OTOOL" | |
7816 | fi | |
7817 | ||
7818 | if test -n "$ac_tool_prefix"; then | |
7819 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7820 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
7821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7822 | $as_echo_n "checking for $ac_word... " >&6; } | |
7823 | if ${ac_cv_prog_OTOOL64+:} false; then : | |
7824 | $as_echo_n "(cached) " >&6 | |
7825 | else | |
7826 | if test -n "$OTOOL64"; then | |
7827 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7828 | else | |
7829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7830 | for as_dir in $PATH | |
7831 | do | |
7832 | IFS=$as_save_IFS | |
7833 | test -z "$as_dir" && as_dir=. | |
7834 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7835 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7836 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
7837 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7838 | break 2 | |
7839 | fi | |
7840 | done | |
7841 | done | |
7842 | IFS=$as_save_IFS | |
7843 | ||
7844 | fi | |
7845 | fi | |
7846 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7847 | if test -n "$OTOOL64"; then | |
7848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
7849 | $as_echo "$OTOOL64" >&6; } | |
7850 | else | |
7851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7852 | $as_echo "no" >&6; } | |
7853 | fi | |
7854 | ||
7855 | ||
7856 | fi | |
7857 | if test -z "$ac_cv_prog_OTOOL64"; then | |
7858 | ac_ct_OTOOL64=$OTOOL64 | |
7859 | # Extract the first word of "otool64", so it can be a program name with args. | |
7860 | set dummy otool64; ac_word=$2 | |
7861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7862 | $as_echo_n "checking for $ac_word... " >&6; } | |
7863 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
7864 | $as_echo_n "(cached) " >&6 | |
7865 | else | |
7866 | if test -n "$ac_ct_OTOOL64"; then | |
7867 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7868 | else | |
7869 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7870 | for as_dir in $PATH | |
7871 | do | |
7872 | IFS=$as_save_IFS | |
7873 | test -z "$as_dir" && as_dir=. | |
7874 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7875 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7876 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
7877 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7878 | break 2 | |
7879 | fi | |
7880 | done | |
7881 | done | |
7882 | IFS=$as_save_IFS | |
7883 | ||
7884 | fi | |
7885 | fi | |
7886 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7887 | if test -n "$ac_ct_OTOOL64"; then | |
7888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
7889 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
7890 | else | |
7891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7892 | $as_echo "no" >&6; } | |
7893 | fi | |
7894 | ||
7895 | if test "x$ac_ct_OTOOL64" = x; then | |
7896 | OTOOL64=":" | |
7897 | else | |
7898 | case $cross_compiling:$ac_tool_warned in | |
7899 | yes:) | |
7900 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7901 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7902 | ac_tool_warned=yes ;; | |
7903 | esac | |
7904 | OTOOL64=$ac_ct_OTOOL64 | |
7905 | fi | |
7906 | else | |
7907 | OTOOL64="$ac_cv_prog_OTOOL64" | |
7908 | fi | |
7909 | ||
7910 | ||
7911 | ||
7912 | ||
7913 | ||
7914 | ||
7915 | ||
7916 | ||
7917 | ||
7918 | ||
7919 | ||
7920 | ||
7921 | ||
7922 | ||
7923 | ||
7924 | ||
7925 | ||
7926 | ||
7927 | ||
7928 | ||
7929 | ||
7930 | ||
7931 | ||
7932 | ||
7933 | ||
7934 | ||
7935 | ||
7936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
7937 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
7938 | if ${lt_cv_apple_cc_single_mod+:} false; then : | |
7939 | $as_echo_n "(cached) " >&6 | |
7940 | else | |
7941 | lt_cv_apple_cc_single_mod=no | |
7942 | if test -z "${LT_MULTI_MODULE}"; then | |
7943 | # By default we will add the -single_module flag. You can override | |
7944 | # by either setting the environment variable LT_MULTI_MODULE | |
7945 | # non-empty at configure time, or by adding -multi_module to the | |
7946 | # link flags. | |
7947 | rm -rf libconftest.dylib* | |
7948 | echo "int foo(void){return 1;}" > conftest.c | |
7949 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7950 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7951 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7952 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7953 | _lt_result=$? | |
7954 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
7955 | lt_cv_apple_cc_single_mod=yes | |
7956 | else | |
7957 | cat conftest.err >&5 | |
7958 | fi | |
7959 | rm -rf libconftest.dylib* | |
7960 | rm -f conftest.* | |
7961 | fi | |
7962 | fi | |
7963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
7964 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
7965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
7966 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
7967 | if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
7968 | $as_echo_n "(cached) " >&6 | |
7969 | else | |
7970 | lt_cv_ld_exported_symbols_list=no | |
7971 | save_LDFLAGS=$LDFLAGS | |
7972 | echo "_main" > conftest.sym | |
7973 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
7974 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7975 | /* end confdefs.h. */ | |
7976 | ||
7977 | int | |
7978 | main () | |
7979 | { | |
7980 | ||
7981 | ; | |
7982 | return 0; | |
7983 | } | |
7984 | _ACEOF | |
7985 | if ac_fn_c_try_link "$LINENO"; then : | |
7986 | lt_cv_ld_exported_symbols_list=yes | |
7987 | else | |
7988 | lt_cv_ld_exported_symbols_list=no | |
7989 | fi | |
7990 | rm -f core conftest.err conftest.$ac_objext \ | |
7991 | conftest$ac_exeext conftest.$ac_ext | |
7992 | LDFLAGS="$save_LDFLAGS" | |
7993 | ||
7994 | fi | |
7995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
7996 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
7997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
7998 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
7999 | if ${lt_cv_ld_force_load+:} false; then : | |
8000 | $as_echo_n "(cached) " >&6 | |
8001 | else | |
8002 | lt_cv_ld_force_load=no | |
8003 | cat > conftest.c << _LT_EOF | |
8004 | int forced_loaded() { return 2;} | |
8005 | _LT_EOF | |
8006 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
8007 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
8008 | echo "$AR cru libconftest.a conftest.o" >&5 | |
8009 | $AR cru libconftest.a conftest.o 2>&5 | |
8010 | cat > conftest.c << _LT_EOF | |
8011 | int main() { return 0;} | |
8012 | _LT_EOF | |
8013 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
8014 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
8015 | _lt_result=$? | |
8016 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
8017 | lt_cv_ld_force_load=yes | |
8018 | else | |
8019 | cat conftest.err >&5 | |
8020 | fi | |
8021 | rm -f conftest.err libconftest.a conftest conftest.c | |
8022 | rm -rf conftest.dSYM | |
8023 | ||
8024 | fi | |
8025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
8026 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
caf606c9 NA |
8027 | case $host_os in |
8028 | rhapsody* | darwin1.[012]) | |
63a4b106 | 8029 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
caf606c9 | 8030 | darwin1.*) |
63a4b106 | 8031 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
caf606c9 NA |
8032 | darwin*) # darwin 5.x on |
8033 | # if running on 10.5 or later, the deployment target defaults | |
8034 | # to the OS version, if on x86, and 10.4, the deployment | |
8035 | # target defaults to 10.4. Don't you love it? | |
8036 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
8037 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
8038 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
63a4b106 | 8039 | 10.[012][,.]*) |
caf606c9 NA |
8040 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
8041 | 10.*) | |
8042 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8043 | esac | |
63a4b106 AB |
8044 | ;; |
8045 | esac | |
8046 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
8047 | _lt_dar_single_mod='$single_module' | |
8048 | fi | |
8049 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
8050 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
8051 | else | |
8052 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8053 | fi | |
8054 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
8055 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
8056 | else | |
8057 | _lt_dsymutil= | |
8058 | fi | |
8059 | ;; | |
8060 | esac | |
8061 | ||
8062 | for ac_header in dlfcn.h | |
8063 | do : | |
8064 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8065 | " | |
8066 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
8067 | cat >>confdefs.h <<_ACEOF | |
8068 | #define HAVE_DLFCN_H 1 | |
8069 | _ACEOF | |
8070 | ||
8071 | fi | |
8072 | ||
8073 | done | |
8074 | ||
8075 | ||
8076 | ||
8077 | ||
8078 | ||
8079 | # Set options | |
8080 | ||
8081 | ||
8082 | ||
8083 | enable_dlopen=no | |
8084 | ||
8085 | ||
8086 | enable_win32_dll=no | |
8087 | ||
8088 | ||
8089 | # Check whether --enable-shared was given. | |
8090 | if test "${enable_shared+set}" = set; then : | |
8091 | enableval=$enable_shared; p=${PACKAGE-default} | |
8092 | case $enableval in | |
8093 | yes) enable_shared=yes ;; | |
8094 | no) enable_shared=no ;; | |
8095 | *) | |
8096 | enable_shared=no | |
8097 | # Look at the argument we got. We use all the common list separators. | |
8098 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8099 | for pkg in $enableval; do | |
8100 | IFS="$lt_save_ifs" | |
8101 | if test "X$pkg" = "X$p"; then | |
8102 | enable_shared=yes | |
8103 | fi | |
8104 | done | |
8105 | IFS="$lt_save_ifs" | |
8106 | ;; | |
8107 | esac | |
8108 | else | |
8109 | enable_shared=yes | |
8110 | fi | |
8111 | ||
8112 | ||
8113 | ||
8114 | ||
8115 | ||
8116 | ||
8117 | ||
8118 | ||
8119 | ||
8120 | # Check whether --enable-static was given. | |
8121 | if test "${enable_static+set}" = set; then : | |
8122 | enableval=$enable_static; p=${PACKAGE-default} | |
8123 | case $enableval in | |
8124 | yes) enable_static=yes ;; | |
8125 | no) enable_static=no ;; | |
8126 | *) | |
8127 | enable_static=no | |
8128 | # Look at the argument we got. We use all the common list separators. | |
8129 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8130 | for pkg in $enableval; do | |
8131 | IFS="$lt_save_ifs" | |
8132 | if test "X$pkg" = "X$p"; then | |
8133 | enable_static=yes | |
8134 | fi | |
8135 | done | |
8136 | IFS="$lt_save_ifs" | |
8137 | ;; | |
8138 | esac | |
8139 | else | |
8140 | enable_static=yes | |
8141 | fi | |
8142 | ||
8143 | ||
8144 | ||
8145 | ||
8146 | ||
8147 | ||
8148 | ||
8149 | ||
8150 | ||
8151 | ||
8152 | # Check whether --with-pic was given. | |
8153 | if test "${with_pic+set}" = set; then : | |
8154 | withval=$with_pic; pic_mode="$withval" | |
8155 | else | |
8156 | pic_mode=default | |
8157 | fi | |
8158 | ||
8159 | ||
8160 | test -z "$pic_mode" && pic_mode=default | |
8161 | ||
8162 | ||
8163 | ||
8164 | ||
8165 | ||
8166 | ||
8167 | ||
8168 | # Check whether --enable-fast-install was given. | |
8169 | if test "${enable_fast_install+set}" = set; then : | |
8170 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
8171 | case $enableval in | |
8172 | yes) enable_fast_install=yes ;; | |
8173 | no) enable_fast_install=no ;; | |
8174 | *) | |
8175 | enable_fast_install=no | |
8176 | # Look at the argument we got. We use all the common list separators. | |
8177 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8178 | for pkg in $enableval; do | |
8179 | IFS="$lt_save_ifs" | |
8180 | if test "X$pkg" = "X$p"; then | |
8181 | enable_fast_install=yes | |
8182 | fi | |
8183 | done | |
8184 | IFS="$lt_save_ifs" | |
8185 | ;; | |
8186 | esac | |
8187 | else | |
8188 | enable_fast_install=yes | |
8189 | fi | |
8190 | ||
8191 | ||
8192 | ||
8193 | ||
8194 | ||
8195 | ||
8196 | ||
8197 | ||
8198 | ||
8199 | ||
8200 | ||
8201 | # This can be used to rebuild libtool when needed | |
8202 | LIBTOOL_DEPS="$ltmain" | |
8203 | ||
8204 | # Always use our own libtool. | |
8205 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
8206 | ||
8207 | ||
8208 | ||
8209 | ||
8210 | ||
8211 | ||
8212 | ||
8213 | ||
8214 | ||
8215 | ||
8216 | ||
8217 | ||
8218 | ||
8219 | ||
8220 | ||
8221 | ||
8222 | ||
8223 | ||
8224 | ||
8225 | ||
8226 | ||
8227 | ||
8228 | ||
8229 | ||
8230 | ||
8231 | ||
8232 | test -z "$LN_S" && LN_S="ln -s" | |
8233 | ||
8234 | ||
8235 | ||
8236 | ||
8237 | ||
8238 | ||
8239 | ||
8240 | ||
8241 | ||
8242 | ||
8243 | ||
8244 | ||
8245 | ||
8246 | ||
8247 | if test -n "${ZSH_VERSION+set}" ; then | |
8248 | setopt NO_GLOB_SUBST | |
8249 | fi | |
8250 | ||
8251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
8252 | $as_echo_n "checking for objdir... " >&6; } | |
8253 | if ${lt_cv_objdir+:} false; then : | |
8254 | $as_echo_n "(cached) " >&6 | |
8255 | else | |
8256 | rm -f .libs 2>/dev/null | |
8257 | mkdir .libs 2>/dev/null | |
8258 | if test -d .libs; then | |
8259 | lt_cv_objdir=.libs | |
8260 | else | |
8261 | # MS-DOS does not allow filenames that begin with a dot. | |
8262 | lt_cv_objdir=_libs | |
8263 | fi | |
8264 | rmdir .libs 2>/dev/null | |
8265 | fi | |
8266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
8267 | $as_echo "$lt_cv_objdir" >&6; } | |
8268 | objdir=$lt_cv_objdir | |
8269 | ||
8270 | ||
8271 | ||
8272 | ||
8273 | ||
8274 | cat >>confdefs.h <<_ACEOF | |
8275 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8276 | _ACEOF | |
8277 | ||
8278 | ||
8279 | ||
8280 | ||
8281 | case $host_os in | |
8282 | aix3*) | |
8283 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8284 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8285 | # vanish in a puff of smoke. | |
8286 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8287 | COLLECT_NAMES= | |
8288 | export COLLECT_NAMES | |
8289 | fi | |
8290 | ;; | |
8291 | esac | |
8292 | ||
8293 | # Global variables: | |
8294 | ofile=libtool | |
8295 | can_build_shared=yes | |
8296 | ||
8297 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
8298 | # which needs '.lib'). | |
8299 | libext=a | |
8300 | ||
8301 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
8302 | ||
8303 | old_CC="$CC" | |
8304 | old_CFLAGS="$CFLAGS" | |
8305 | ||
8306 | # Set sane defaults for various variables | |
8307 | test -z "$CC" && CC=cc | |
8308 | test -z "$LTCC" && LTCC=$CC | |
8309 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8310 | test -z "$LD" && LD=ld | |
8311 | test -z "$ac_objext" && ac_objext=o | |
8312 | ||
8313 | for cc_temp in $compiler""; do | |
8314 | case $cc_temp in | |
8315 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8316 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8317 | \-*) ;; | |
8318 | *) break;; | |
8319 | esac | |
8320 | done | |
8321 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
8322 | ||
8323 | ||
8324 | # Only perform the check for file, if the check method requires it | |
8325 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8326 | case $deplibs_check_method in | |
8327 | file_magic*) | |
8328 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
8329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
8330 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
8331 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8332 | $as_echo_n "(cached) " >&6 | |
8333 | else | |
8334 | case $MAGIC_CMD in | |
8335 | [\\/*] | ?:[\\/]*) | |
8336 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8337 | ;; | |
8338 | *) | |
8339 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8340 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8341 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8342 | for ac_dir in $ac_dummy; do | |
8343 | IFS="$lt_save_ifs" | |
8344 | test -z "$ac_dir" && ac_dir=. | |
8345 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
8346 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
8347 | if test -n "$file_magic_test_file"; then | |
8348 | case $deplibs_check_method in | |
8349 | "file_magic "*) | |
8350 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8351 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8352 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8353 | $EGREP "$file_magic_regex" > /dev/null; then | |
8354 | : | |
8355 | else | |
8356 | cat <<_LT_EOF 1>&2 | |
8357 | ||
8358 | *** Warning: the command libtool uses to detect shared libraries, | |
8359 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8360 | *** The result is that libtool may fail to recognize shared libraries | |
8361 | *** as such. This will affect the creation of libtool libraries that | |
8362 | *** depend on shared libraries, but programs linked with such libtool | |
8363 | *** libraries will work regardless of this problem. Nevertheless, you | |
8364 | *** may want to report the problem to your system manager and/or to | |
8365 | *** [email protected] | |
8366 | ||
8367 | _LT_EOF | |
8368 | fi ;; | |
8369 | esac | |
8370 | fi | |
8371 | break | |
8372 | fi | |
8373 | done | |
8374 | IFS="$lt_save_ifs" | |
8375 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8376 | ;; | |
8377 | esac | |
8378 | fi | |
8379 | ||
8380 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8381 | if test -n "$MAGIC_CMD"; then | |
8382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8383 | $as_echo "$MAGIC_CMD" >&6; } | |
8384 | else | |
8385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8386 | $as_echo "no" >&6; } | |
8387 | fi | |
8388 | ||
8389 | ||
8390 | ||
8391 | ||
8392 | ||
8393 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
8394 | if test -n "$ac_tool_prefix"; then | |
8395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
8396 | $as_echo_n "checking for file... " >&6; } | |
8397 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8398 | $as_echo_n "(cached) " >&6 | |
8399 | else | |
8400 | case $MAGIC_CMD in | |
8401 | [\\/*] | ?:[\\/]*) | |
8402 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8403 | ;; | |
8404 | *) | |
8405 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8406 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8407 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8408 | for ac_dir in $ac_dummy; do | |
8409 | IFS="$lt_save_ifs" | |
8410 | test -z "$ac_dir" && ac_dir=. | |
8411 | if test -f $ac_dir/file; then | |
8412 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8413 | if test -n "$file_magic_test_file"; then | |
8414 | case $deplibs_check_method in | |
8415 | "file_magic "*) | |
8416 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8417 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8418 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8419 | $EGREP "$file_magic_regex" > /dev/null; then | |
8420 | : | |
8421 | else | |
8422 | cat <<_LT_EOF 1>&2 | |
8423 | ||
8424 | *** Warning: the command libtool uses to detect shared libraries, | |
8425 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8426 | *** The result is that libtool may fail to recognize shared libraries | |
8427 | *** as such. This will affect the creation of libtool libraries that | |
8428 | *** depend on shared libraries, but programs linked with such libtool | |
8429 | *** libraries will work regardless of this problem. Nevertheless, you | |
8430 | *** may want to report the problem to your system manager and/or to | |
8431 | *** [email protected] | |
8432 | ||
8433 | _LT_EOF | |
8434 | fi ;; | |
8435 | esac | |
8436 | fi | |
8437 | break | |
8438 | fi | |
8439 | done | |
8440 | IFS="$lt_save_ifs" | |
8441 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8442 | ;; | |
8443 | esac | |
8444 | fi | |
8445 | ||
8446 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8447 | if test -n "$MAGIC_CMD"; then | |
8448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8449 | $as_echo "$MAGIC_CMD" >&6; } | |
8450 | else | |
8451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8452 | $as_echo "no" >&6; } | |
8453 | fi | |
8454 | ||
8455 | ||
8456 | else | |
8457 | MAGIC_CMD=: | |
8458 | fi | |
8459 | fi | |
8460 | ||
8461 | fi | |
8462 | ;; | |
8463 | esac | |
8464 | ||
8465 | # Use C for the default configuration in the libtool script | |
8466 | ||
8467 | lt_save_CC="$CC" | |
8468 | ac_ext=c | |
8469 | ac_cpp='$CPP $CPPFLAGS' | |
8470 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8471 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8472 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8473 | ||
8474 | ||
8475 | # Source file extension for C test sources. | |
8476 | ac_ext=c | |
8477 | ||
8478 | # Object file extension for compiled C test sources. | |
8479 | objext=o | |
8480 | objext=$objext | |
8481 | ||
8482 | # Code to be used in simple compile tests | |
8483 | lt_simple_compile_test_code="int some_variable = 0;" | |
8484 | ||
8485 | # Code to be used in simple link tests | |
8486 | lt_simple_link_test_code='int main(){return(0);}' | |
8487 | ||
8488 | ||
8489 | ||
8490 | ||
8491 | ||
8492 | ||
8493 | ||
8494 | # If no C compiler was specified, use CC. | |
8495 | LTCC=${LTCC-"$CC"} | |
8496 | ||
8497 | # If no C compiler flags were specified, use CFLAGS. | |
8498 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8499 | ||
8500 | # Allow CC to be a program name with arguments. | |
8501 | compiler=$CC | |
8502 | ||
8503 | # Save the default compiler, since it gets overwritten when the other | |
8504 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8505 | compiler_DEFAULT=$CC | |
8506 | ||
8507 | # save warnings/boilerplate of simple test code | |
8508 | ac_outfile=conftest.$ac_objext | |
8509 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8510 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8511 | _lt_compiler_boilerplate=`cat conftest.err` | |
8512 | $RM conftest* | |
8513 | ||
8514 | ac_outfile=conftest.$ac_objext | |
8515 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8516 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8517 | _lt_linker_boilerplate=`cat conftest.err` | |
8518 | $RM -r conftest* | |
8519 | ||
8520 | ||
8521 | ## CAVEAT EMPTOR: | |
8522 | ## There is no encapsulation within the following macros, do not change | |
8523 | ## the running order or otherwise move them around unless you know exactly | |
8524 | ## what you are doing... | |
8525 | if test -n "$compiler"; then | |
8526 | ||
8527 | lt_prog_compiler_no_builtin_flag= | |
8528 | ||
8529 | if test "$GCC" = yes; then | |
8530 | case $cc_basename in | |
8531 | nvcc*) | |
8532 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8533 | *) | |
8534 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8535 | esac | |
8536 | ||
8537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
8538 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
8539 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | |
8540 | $as_echo_n "(cached) " >&6 | |
8541 | else | |
8542 | lt_cv_prog_compiler_rtti_exceptions=no | |
8543 | ac_outfile=conftest.$ac_objext | |
8544 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8545 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8546 | # Insert the option either (1) after the last *FLAGS variable, or | |
8547 | # (2) before a word containing "conftest.", or (3) at the end. | |
8548 | # Note that $ac_compile itself does not contain backslashes and begins | |
8549 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8550 | # The option is referenced via a variable to avoid confusing sed. | |
8551 | lt_compile=`echo "$ac_compile" | $SED \ | |
8552 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8553 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8554 | -e 's:$: $lt_compiler_flag:'` | |
8555 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8556 | (eval "$lt_compile" 2>conftest.err) | |
8557 | ac_status=$? | |
8558 | cat conftest.err >&5 | |
8559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8560 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8561 | # The compiler can only warn and ignore the option if not recognized | |
8562 | # So say no if there are warnings other than the usual output. | |
8563 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8564 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8565 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8566 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8567 | fi | |
8568 | fi | |
8569 | $RM conftest* | |
8570 | ||
8571 | fi | |
8572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
8573 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
8574 | ||
8575 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
8576 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8577 | else | |
8578 | : | |
8579 | fi | |
8580 | ||
8581 | fi | |
8582 | ||
8583 | ||
8584 | ||
8585 | ||
8586 | ||
8587 | ||
8588 | lt_prog_compiler_wl= | |
8589 | lt_prog_compiler_pic= | |
8590 | lt_prog_compiler_static= | |
8591 | ||
8592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
8593 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
8594 | ||
8595 | if test "$GCC" = yes; then | |
8596 | lt_prog_compiler_wl='-Wl,' | |
8597 | lt_prog_compiler_static='-static' | |
8598 | ||
8599 | case $host_os in | |
8600 | aix*) | |
8601 | # All AIX code is PIC. | |
8602 | if test "$host_cpu" = ia64; then | |
8603 | # AIX 5 now supports IA64 processor | |
8604 | lt_prog_compiler_static='-Bstatic' | |
8605 | fi | |
8606 | lt_prog_compiler_pic='-fPIC' | |
8607 | ;; | |
8608 | ||
8609 | amigaos*) | |
8610 | case $host_cpu in | |
8611 | powerpc) | |
8612 | # see comment about AmigaOS4 .so support | |
8613 | lt_prog_compiler_pic='-fPIC' | |
8614 | ;; | |
8615 | m68k) | |
8616 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8617 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8618 | # like `-m68040'. | |
8619 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8620 | ;; | |
8621 | esac | |
8622 | ;; | |
8623 | ||
8624 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
8625 | # PIC is the default for these OSes. | |
8626 | ;; | |
8627 | ||
8628 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8629 | # This hack is so that the source file can tell whether it is being | |
8630 | # built for inclusion in a dll (and should export symbols for example). | |
8631 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8632 | # (--disable-auto-import) libraries | |
8633 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8634 | ;; | |
8635 | ||
8636 | darwin* | rhapsody*) | |
8637 | # PIC is the default on this platform | |
8638 | # Common symbols not allowed in MH_DYLIB files | |
8639 | lt_prog_compiler_pic='-fno-common' | |
8640 | ;; | |
8641 | ||
8642 | haiku*) | |
8643 | # PIC is the default for Haiku. | |
8644 | # The "-static" flag exists, but is broken. | |
8645 | lt_prog_compiler_static= | |
8646 | ;; | |
8647 | ||
8648 | hpux*) | |
8649 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
8650 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8651 | # sets the default TLS model and affects inlining. | |
8652 | case $host_cpu in | |
8653 | hppa*64*) | |
8654 | # +Z the default | |
8655 | ;; | |
8656 | *) | |
8657 | lt_prog_compiler_pic='-fPIC' | |
8658 | ;; | |
8659 | esac | |
8660 | ;; | |
8661 | ||
8662 | interix[3-9]*) | |
8663 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8664 | # Instead, we relocate shared libraries at runtime. | |
8665 | ;; | |
8666 | ||
8667 | msdosdjgpp*) | |
8668 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8669 | # on systems that don't support them. | |
8670 | lt_prog_compiler_can_build_shared=no | |
8671 | enable_shared=no | |
8672 | ;; | |
8673 | ||
8674 | *nto* | *qnx*) | |
8675 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8676 | # it will coredump. | |
8677 | lt_prog_compiler_pic='-fPIC -shared' | |
8678 | ;; | |
8679 | ||
8680 | sysv4*MP*) | |
8681 | if test -d /usr/nec; then | |
8682 | lt_prog_compiler_pic=-Kconform_pic | |
8683 | fi | |
8684 | ;; | |
8685 | ||
8686 | *) | |
8687 | lt_prog_compiler_pic='-fPIC' | |
8688 | ;; | |
8689 | esac | |
8690 | ||
8691 | case $cc_basename in | |
8692 | nvcc*) # Cuda Compiler Driver 2.2 | |
8693 | lt_prog_compiler_wl='-Xlinker ' | |
8694 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
8695 | ;; | |
8696 | esac | |
8697 | else | |
8698 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8699 | case $host_os in | |
8700 | aix*) | |
8701 | lt_prog_compiler_wl='-Wl,' | |
8702 | if test "$host_cpu" = ia64; then | |
8703 | # AIX 5 now supports IA64 processor | |
8704 | lt_prog_compiler_static='-Bstatic' | |
8705 | else | |
8706 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8707 | fi | |
8708 | ;; | |
8709 | ||
8710 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8711 | # This hack is so that the source file can tell whether it is being | |
8712 | # built for inclusion in a dll (and should export symbols for example). | |
8713 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8714 | ;; | |
8715 | ||
8716 | hpux9* | hpux10* | hpux11*) | |
8717 | lt_prog_compiler_wl='-Wl,' | |
8718 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8719 | # not for PA HP-UX. | |
8720 | case $host_cpu in | |
8721 | hppa*64*|ia64*) | |
8722 | # +Z the default | |
8723 | ;; | |
8724 | *) | |
8725 | lt_prog_compiler_pic='+Z' | |
8726 | ;; | |
8727 | esac | |
8728 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8729 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
8730 | ;; | |
8731 | ||
8732 | irix5* | irix6* | nonstopux*) | |
8733 | lt_prog_compiler_wl='-Wl,' | |
8734 | # PIC (with -KPIC) is the default. | |
8735 | lt_prog_compiler_static='-non_shared' | |
8736 | ;; | |
8737 | ||
8738 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
8739 | case $cc_basename in | |
8740 | # old Intel for x86_64 which still supported -KPIC. | |
8741 | ecc*) | |
8742 | lt_prog_compiler_wl='-Wl,' | |
8743 | lt_prog_compiler_pic='-KPIC' | |
8744 | lt_prog_compiler_static='-static' | |
8745 | ;; | |
8746 | # icc used to be incompatible with GCC. | |
8747 | # ICC 10 doesn't accept -KPIC any more. | |
8748 | icc* | ifort*) | |
8749 | lt_prog_compiler_wl='-Wl,' | |
8750 | lt_prog_compiler_pic='-fPIC' | |
8751 | lt_prog_compiler_static='-static' | |
8752 | ;; | |
8753 | # Lahey Fortran 8.1. | |
8754 | lf95*) | |
8755 | lt_prog_compiler_wl='-Wl,' | |
8756 | lt_prog_compiler_pic='--shared' | |
8757 | lt_prog_compiler_static='--static' | |
8758 | ;; | |
8759 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
8760 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
8761 | # which looks to be a dead project) | |
8762 | lt_prog_compiler_wl='-Wl,' | |
8763 | lt_prog_compiler_pic='-fpic' | |
8764 | lt_prog_compiler_static='-Bstatic' | |
8765 | ;; | |
8766 | ccc*) | |
8767 | lt_prog_compiler_wl='-Wl,' | |
8768 | # All Alpha code is PIC. | |
8769 | lt_prog_compiler_static='-non_shared' | |
8770 | ;; | |
8771 | xl* | bgxl* | bgf* | mpixl*) | |
8772 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
8773 | lt_prog_compiler_wl='-Wl,' | |
8774 | lt_prog_compiler_pic='-qpic' | |
8775 | lt_prog_compiler_static='-qstaticlink' | |
8776 | ;; | |
8777 | *) | |
8778 | case `$CC -V 2>&1 | sed 5q` in | |
8779 | *Sun\ F* | *Sun*Fortran*) | |
8780 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8781 | lt_prog_compiler_pic='-KPIC' | |
8782 | lt_prog_compiler_static='-Bstatic' | |
8783 | lt_prog_compiler_wl='' | |
8784 | ;; | |
8785 | *Sun\ C*) | |
8786 | # Sun C 5.9 | |
8787 | lt_prog_compiler_pic='-KPIC' | |
8788 | lt_prog_compiler_static='-Bstatic' | |
8789 | lt_prog_compiler_wl='-Wl,' | |
8790 | ;; | |
8791 | esac | |
8792 | ;; | |
8793 | esac | |
8794 | ;; | |
8795 | ||
8796 | newsos6) | |
8797 | lt_prog_compiler_pic='-KPIC' | |
8798 | lt_prog_compiler_static='-Bstatic' | |
8799 | ;; | |
8800 | ||
8801 | *nto* | *qnx*) | |
8802 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8803 | # it will coredump. | |
8804 | lt_prog_compiler_pic='-fPIC -shared' | |
8805 | ;; | |
8806 | ||
8807 | osf3* | osf4* | osf5*) | |
8808 | lt_prog_compiler_wl='-Wl,' | |
8809 | # All OSF/1 code is PIC. | |
8810 | lt_prog_compiler_static='-non_shared' | |
8811 | ;; | |
8812 | ||
8813 | rdos*) | |
8814 | lt_prog_compiler_static='-non_shared' | |
8815 | ;; | |
8816 | ||
8817 | solaris*) | |
8818 | lt_prog_compiler_pic='-KPIC' | |
8819 | lt_prog_compiler_static='-Bstatic' | |
8820 | case $cc_basename in | |
8821 | f77* | f90* | f95*) | |
8822 | lt_prog_compiler_wl='-Qoption ld ';; | |
8823 | *) | |
8824 | lt_prog_compiler_wl='-Wl,';; | |
8825 | esac | |
8826 | ;; | |
8827 | ||
8828 | sunos4*) | |
8829 | lt_prog_compiler_wl='-Qoption ld ' | |
8830 | lt_prog_compiler_pic='-PIC' | |
8831 | lt_prog_compiler_static='-Bstatic' | |
8832 | ;; | |
8833 | ||
8834 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
8835 | lt_prog_compiler_wl='-Wl,' | |
8836 | lt_prog_compiler_pic='-KPIC' | |
8837 | lt_prog_compiler_static='-Bstatic' | |
8838 | ;; | |
8839 | ||
8840 | sysv4*MP*) | |
8841 | if test -d /usr/nec ;then | |
8842 | lt_prog_compiler_pic='-Kconform_pic' | |
8843 | lt_prog_compiler_static='-Bstatic' | |
8844 | fi | |
8845 | ;; | |
8846 | ||
8847 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
8848 | lt_prog_compiler_wl='-Wl,' | |
8849 | lt_prog_compiler_pic='-KPIC' | |
8850 | lt_prog_compiler_static='-Bstatic' | |
8851 | ;; | |
8852 | ||
8853 | unicos*) | |
8854 | lt_prog_compiler_wl='-Wl,' | |
8855 | lt_prog_compiler_can_build_shared=no | |
8856 | ;; | |
8857 | ||
8858 | uts4*) | |
8859 | lt_prog_compiler_pic='-pic' | |
8860 | lt_prog_compiler_static='-Bstatic' | |
8861 | ;; | |
8862 | ||
8863 | *) | |
8864 | lt_prog_compiler_can_build_shared=no | |
8865 | ;; | |
8866 | esac | |
8867 | fi | |
8868 | ||
8869 | case $host_os in | |
8870 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8871 | *djgpp*) | |
8872 | lt_prog_compiler_pic= | |
8873 | ;; | |
8874 | *) | |
8875 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8876 | ;; | |
8877 | esac | |
8878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | |
8879 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
8880 | ||
8881 | ||
8882 | ||
8883 | ||
8884 | ||
8885 | ||
8886 | # | |
8887 | # Check to make sure the PIC flag actually works. | |
8888 | # | |
8889 | if test -n "$lt_prog_compiler_pic"; then | |
8890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
8891 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
8892 | if ${lt_cv_prog_compiler_pic_works+:} false; then : | |
8893 | $as_echo_n "(cached) " >&6 | |
8894 | else | |
8895 | lt_cv_prog_compiler_pic_works=no | |
8896 | ac_outfile=conftest.$ac_objext | |
8897 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8898 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8899 | # Insert the option either (1) after the last *FLAGS variable, or | |
8900 | # (2) before a word containing "conftest.", or (3) at the end. | |
8901 | # Note that $ac_compile itself does not contain backslashes and begins | |
8902 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8903 | # The option is referenced via a variable to avoid confusing sed. | |
8904 | lt_compile=`echo "$ac_compile" | $SED \ | |
8905 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8906 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8907 | -e 's:$: $lt_compiler_flag:'` | |
8908 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8909 | (eval "$lt_compile" 2>conftest.err) | |
8910 | ac_status=$? | |
8911 | cat conftest.err >&5 | |
8912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8913 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8914 | # The compiler can only warn and ignore the option if not recognized | |
8915 | # So say no if there are warnings other than the usual output. | |
8916 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8917 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8918 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8919 | lt_cv_prog_compiler_pic_works=yes | |
8920 | fi | |
8921 | fi | |
8922 | $RM conftest* | |
8923 | ||
8924 | fi | |
8925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
8926 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
8927 | ||
8928 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
8929 | case $lt_prog_compiler_pic in | |
8930 | "" | " "*) ;; | |
8931 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8932 | esac | |
8933 | else | |
8934 | lt_prog_compiler_pic= | |
8935 | lt_prog_compiler_can_build_shared=no | |
8936 | fi | |
8937 | ||
8938 | fi | |
8939 | ||
8940 | ||
8941 | ||
8942 | ||
8943 | ||
8944 | ||
8945 | # | |
8946 | # Check to make sure the static flag actually works. | |
8947 | # | |
8948 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
8949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
8950 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
8951 | if ${lt_cv_prog_compiler_static_works+:} false; then : | |
8952 | $as_echo_n "(cached) " >&6 | |
8953 | else | |
8954 | lt_cv_prog_compiler_static_works=no | |
8955 | save_LDFLAGS="$LDFLAGS" | |
8956 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8957 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8958 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8959 | # The linker can only warn and ignore the option if not recognized | |
8960 | # So say no if there are warnings | |
8961 | if test -s conftest.err; then | |
8962 | # Append any errors to the config.log. | |
8963 | cat conftest.err 1>&5 | |
8964 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
8965 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8966 | if diff conftest.exp conftest.er2 >/dev/null; then | |
8967 | lt_cv_prog_compiler_static_works=yes | |
8968 | fi | |
8969 | else | |
8970 | lt_cv_prog_compiler_static_works=yes | |
8971 | fi | |
8972 | fi | |
8973 | $RM -r conftest* | |
8974 | LDFLAGS="$save_LDFLAGS" | |
8975 | ||
8976 | fi | |
8977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
8978 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
8979 | ||
8980 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
8981 | : | |
8982 | else | |
8983 | lt_prog_compiler_static= | |
8984 | fi | |
8985 | ||
8986 | ||
8987 | ||
8988 | ||
8989 | ||
8990 | ||
8991 | ||
8992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8993 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8994 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
8995 | $as_echo_n "(cached) " >&6 | |
8996 | else | |
8997 | lt_cv_prog_compiler_c_o=no | |
8998 | $RM -r conftest 2>/dev/null | |
8999 | mkdir conftest | |
9000 | cd conftest | |
9001 | mkdir out | |
9002 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9003 | ||
9004 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
9005 | # Insert the option either (1) after the last *FLAGS variable, or | |
9006 | # (2) before a word containing "conftest.", or (3) at the end. | |
9007 | # Note that $ac_compile itself does not contain backslashes and begins | |
9008 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9009 | lt_compile=`echo "$ac_compile" | $SED \ | |
9010 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9011 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9012 | -e 's:$: $lt_compiler_flag:'` | |
9013 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9014 | (eval "$lt_compile" 2>out/conftest.err) | |
9015 | ac_status=$? | |
9016 | cat out/conftest.err >&5 | |
9017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9018 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9019 | then | |
9020 | # The compiler can only warn and ignore the option if not recognized | |
9021 | # So say no if there are warnings | |
9022 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9023 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9024 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9025 | lt_cv_prog_compiler_c_o=yes | |
9026 | fi | |
9027 | fi | |
9028 | chmod u+w . 2>&5 | |
9029 | $RM conftest* | |
9030 | # SGI C++ compiler will create directory out/ii_files/ for | |
9031 | # template instantiation | |
9032 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9033 | $RM out/* && rmdir out | |
9034 | cd .. | |
9035 | $RM -r conftest | |
9036 | $RM conftest* | |
9037 | ||
9038 | fi | |
9039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9040 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9041 | ||
9042 | ||
9043 | ||
9044 | ||
9045 | ||
9046 | ||
9047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
9048 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9049 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9050 | $as_echo_n "(cached) " >&6 | |
9051 | else | |
9052 | lt_cv_prog_compiler_c_o=no | |
9053 | $RM -r conftest 2>/dev/null | |
9054 | mkdir conftest | |
9055 | cd conftest | |
9056 | mkdir out | |
9057 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9058 | ||
9059 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
9060 | # Insert the option either (1) after the last *FLAGS variable, or | |
9061 | # (2) before a word containing "conftest.", or (3) at the end. | |
9062 | # Note that $ac_compile itself does not contain backslashes and begins | |
9063 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9064 | lt_compile=`echo "$ac_compile" | $SED \ | |
9065 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9066 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9067 | -e 's:$: $lt_compiler_flag:'` | |
9068 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9069 | (eval "$lt_compile" 2>out/conftest.err) | |
9070 | ac_status=$? | |
9071 | cat out/conftest.err >&5 | |
9072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9073 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9074 | then | |
9075 | # The compiler can only warn and ignore the option if not recognized | |
9076 | # So say no if there are warnings | |
9077 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9078 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9079 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9080 | lt_cv_prog_compiler_c_o=yes | |
9081 | fi | |
9082 | fi | |
9083 | chmod u+w . 2>&5 | |
9084 | $RM conftest* | |
9085 | # SGI C++ compiler will create directory out/ii_files/ for | |
9086 | # template instantiation | |
9087 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9088 | $RM out/* && rmdir out | |
9089 | cd .. | |
9090 | $RM -r conftest | |
9091 | $RM conftest* | |
9092 | ||
9093 | fi | |
9094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9095 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9096 | ||
9097 | ||
9098 | ||
9099 | ||
9100 | hard_links="nottested" | |
9101 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
9102 | # do not overwrite the value of need_locks provided by the user | |
9103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
9104 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
9105 | hard_links=yes | |
9106 | $RM conftest* | |
9107 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9108 | touch conftest.a | |
9109 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9110 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
9112 | $as_echo "$hard_links" >&6; } | |
9113 | if test "$hard_links" = no; then | |
9114 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
9115 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
9116 | need_locks=warn | |
9117 | fi | |
9118 | else | |
9119 | need_locks=no | |
9120 | fi | |
9121 | ||
9122 | ||
9123 | ||
9124 | ||
9125 | ||
9126 | ||
9127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
9128 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
9129 | ||
9130 | runpath_var= | |
9131 | allow_undefined_flag= | |
9132 | always_export_symbols=no | |
9133 | archive_cmds= | |
9134 | archive_expsym_cmds= | |
9135 | compiler_needs_object=no | |
9136 | enable_shared_with_static_runtimes=no | |
9137 | export_dynamic_flag_spec= | |
9138 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9139 | hardcode_automatic=no | |
9140 | hardcode_direct=no | |
9141 | hardcode_direct_absolute=no | |
9142 | hardcode_libdir_flag_spec= | |
9143 | hardcode_libdir_flag_spec_ld= | |
9144 | hardcode_libdir_separator= | |
9145 | hardcode_minus_L=no | |
9146 | hardcode_shlibpath_var=unsupported | |
9147 | inherit_rpath=no | |
9148 | link_all_deplibs=unknown | |
9149 | module_cmds= | |
9150 | module_expsym_cmds= | |
9151 | old_archive_from_new_cmds= | |
9152 | old_archive_from_expsyms_cmds= | |
9153 | thread_safe_flag_spec= | |
9154 | whole_archive_flag_spec= | |
9155 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9156 | # included in the symbol list | |
9157 | include_expsyms= | |
9158 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9159 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
9160 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
9161 | # as well as any symbol that contains `d'. | |
9162 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
9163 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
9164 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9165 | # the symbol is explicitly referenced. Since portable code cannot | |
9166 | # rely on this symbol name, it's probably fine to never include it in | |
9167 | # preloaded symbol tables. | |
9168 | # Exclude shared library initialization/finalization symbols. | |
9169 | extract_expsyms_cmds= | |
9170 | ||
9171 | case $host_os in | |
9172 | cygwin* | mingw* | pw32* | cegcc*) | |
9173 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
9174 | # When not using gcc, we currently assume that we are using | |
9175 | # Microsoft Visual C++. | |
9176 | if test "$GCC" != yes; then | |
9177 | with_gnu_ld=no | |
9178 | fi | |
9179 | ;; | |
9180 | interix*) | |
9181 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9182 | with_gnu_ld=yes | |
9183 | ;; | |
9184 | openbsd*) | |
9185 | with_gnu_ld=no | |
9186 | ;; | |
9187 | esac | |
9188 | ||
9189 | ld_shlibs=yes | |
9190 | ||
9191 | # On some targets, GNU ld is compatible enough with the native linker | |
9192 | # that we're better off using the native interface for both. | |
9193 | lt_use_gnu_ld_interface=no | |
9194 | if test "$with_gnu_ld" = yes; then | |
9195 | case $host_os in | |
9196 | aix*) | |
9197 | # The AIX port of GNU ld has always aspired to compatibility | |
9198 | # with the native linker. However, as the warning in the GNU ld | |
9199 | # block says, versions before 2.19.5* couldn't really create working | |
9200 | # shared libraries, regardless of the interface used. | |
9201 | case `$LD -v 2>&1` in | |
9202 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9203 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9204 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9205 | *) | |
9206 | lt_use_gnu_ld_interface=yes | |
9207 | ;; | |
9208 | esac | |
9209 | ;; | |
9210 | *) | |
9211 | lt_use_gnu_ld_interface=yes | |
9212 | ;; | |
9213 | esac | |
9214 | fi | |
9215 | ||
9216 | if test "$lt_use_gnu_ld_interface" = yes; then | |
9217 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
9218 | wlarc='${wl}' | |
9219 | ||
9220 | # Set some defaults for GNU ld with shared library support. These | |
9221 | # are reset later if shared libraries are not supported. Putting them | |
9222 | # here allows them to be overridden if necessary. | |
9223 | runpath_var=LD_RUN_PATH | |
9224 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9225 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
9226 | # ancient GNU ld didn't support --whole-archive et. al. | |
9227 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9228 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
9229 | else | |
9230 | whole_archive_flag_spec= | |
9231 | fi | |
9232 | supports_anon_versioning=no | |
9233 | case `$LD -v 2>&1` in | |
9234 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
9235 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
9236 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9237 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9238 | *\ 2.11.*) ;; # other 2.11 versions | |
9239 | *) supports_anon_versioning=yes ;; | |
9240 | esac | |
9241 | ||
9242 | # See if GNU ld supports shared libraries. | |
9243 | case $host_os in | |
9244 | aix[3-9]*) | |
9245 | # On AIX/PPC, the GNU linker is very broken | |
9246 | if test "$host_cpu" != ia64; then | |
9247 | ld_shlibs=no | |
9248 | cat <<_LT_EOF 1>&2 | |
9249 | ||
9250 | *** Warning: the GNU linker, at least up to release 2.19, is reported | |
9251 | *** to be unable to reliably create shared libraries on AIX. | |
9252 | *** Therefore, libtool is disabling shared libraries support. If you | |
9253 | *** really care for shared libraries, you may want to install binutils | |
9254 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9255 | *** You will then need to restart the configuration process. | |
9256 | ||
9257 | _LT_EOF | |
9258 | fi | |
9259 | ;; | |
9260 | ||
9261 | amigaos*) | |
9262 | case $host_cpu in | |
9263 | powerpc) | |
9264 | # see comment about AmigaOS4 .so support | |
9265 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9266 | archive_expsym_cmds='' | |
9267 | ;; | |
9268 | m68k) | |
9269 | 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)' | |
9270 | hardcode_libdir_flag_spec='-L$libdir' | |
9271 | hardcode_minus_L=yes | |
9272 | ;; | |
9273 | esac | |
9274 | ;; | |
9275 | ||
9276 | beos*) | |
9277 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9278 | allow_undefined_flag=unsupported | |
9279 | # Joseph Beckenbach <[email protected]> says some releases of gcc | |
9280 | # support --undefined. This deserves some investigation. FIXME | |
9281 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9282 | else | |
9283 | ld_shlibs=no | |
9284 | fi | |
9285 | ;; | |
9286 | ||
9287 | cygwin* | mingw* | pw32* | cegcc*) | |
9288 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
9289 | # as there is no search path for DLLs. | |
9290 | hardcode_libdir_flag_spec='-L$libdir' | |
9291 | export_dynamic_flag_spec='${wl}--export-all-symbols' | |
9292 | allow_undefined_flag=unsupported | |
9293 | always_export_symbols=no | |
9294 | enable_shared_with_static_runtimes=yes | |
9295 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9296 | ||
9297 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
9298 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9299 | # If the export-symbols file already is a .def file (1st line | |
9300 | # is EXPORTS), use it as is; otherwise, prepend... | |
9301 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9302 | cp $export_symbols $output_objdir/$soname.def; | |
9303 | else | |
9304 | echo EXPORTS > $output_objdir/$soname.def; | |
9305 | cat $export_symbols >> $output_objdir/$soname.def; | |
9306 | fi~ | |
9307 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9308 | else | |
9309 | ld_shlibs=no | |
9310 | fi | |
9311 | ;; | |
9312 | ||
9313 | haiku*) | |
9314 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9315 | link_all_deplibs=yes | |
9316 | ;; | |
9317 | ||
9318 | interix[3-9]*) | |
9319 | hardcode_direct=no | |
9320 | hardcode_shlibpath_var=no | |
9321 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9322 | export_dynamic_flag_spec='${wl}-E' | |
9323 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9324 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9325 | # default) and relocated if they conflict, which is a slow very memory | |
9326 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9327 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9328 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9329 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9330 | 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' | |
9331 | ;; | |
9332 | ||
caf606c9 | 9333 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
63a4b106 AB |
9334 | tmp_diet=no |
9335 | if test "$host_os" = linux-dietlibc; then | |
9336 | case $cc_basename in | |
9337 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9338 | esac | |
9339 | fi | |
9340 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9341 | && test "$tmp_diet" = no | |
9342 | then | |
9343 | tmp_addflag=' $pic_flag' | |
9344 | tmp_sharedflag='-shared' | |
9345 | case $cc_basename,$host_cpu in | |
9346 | pgcc*) # Portland Group C compiler | |
9347 | 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' | |
9348 | tmp_addflag=' $pic_flag' | |
9349 | ;; | |
9350 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9351 | # Portland Group f77 and f90 compilers | |
9352 | 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' | |
9353 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
9354 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9355 | tmp_addflag=' -i_dynamic' ;; | |
9356 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9357 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9358 | ifc* | ifort*) # Intel Fortran compiler | |
9359 | tmp_addflag=' -nofor_main' ;; | |
9360 | lf95*) # Lahey Fortran 8.1 | |
9361 | whole_archive_flag_spec= | |
9362 | tmp_sharedflag='--shared' ;; | |
9363 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
9364 | tmp_sharedflag='-qmkshrobj' | |
9365 | tmp_addflag= ;; | |
9366 | nvcc*) # Cuda Compiler Driver 2.2 | |
9367 | 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' | |
9368 | compiler_needs_object=yes | |
9369 | ;; | |
9370 | esac | |
9371 | case `$CC -V 2>&1 | sed 5q` in | |
9372 | *Sun\ C*) # Sun C 5.9 | |
9373 | 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' | |
9374 | compiler_needs_object=yes | |
9375 | tmp_sharedflag='-G' ;; | |
9376 | *Sun\ F*) # Sun Fortran 8.3 | |
9377 | tmp_sharedflag='-G' ;; | |
9378 | esac | |
9379 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9380 | ||
9381 | if test "x$supports_anon_versioning" = xyes; then | |
9382 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9383 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9384 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9385 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
9386 | fi | |
9387 | ||
9388 | case $cc_basename in | |
9389 | xlf* | bgf* | bgxlf* | mpixlf*) | |
9390 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
9391 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9392 | hardcode_libdir_flag_spec= | |
9393 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
9394 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
9395 | if test "x$supports_anon_versioning" = xyes; then | |
9396 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9397 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9398 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9399 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9400 | fi | |
9401 | ;; | |
9402 | esac | |
9403 | else | |
9404 | ld_shlibs=no | |
9405 | fi | |
9406 | ;; | |
9407 | ||
9408 | netbsd*) | |
9409 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9410 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9411 | wlarc= | |
9412 | else | |
9413 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9414 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9415 | fi | |
9416 | ;; | |
9417 | ||
9418 | solaris*) | |
9419 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9420 | ld_shlibs=no | |
9421 | cat <<_LT_EOF 1>&2 | |
9422 | ||
9423 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
9424 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9425 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9426 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9427 | *** your PATH or compiler configuration so that the native linker is | |
9428 | *** used, and then restart. | |
9429 | ||
9430 | _LT_EOF | |
9431 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9432 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9433 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9434 | else | |
9435 | ld_shlibs=no | |
9436 | fi | |
9437 | ;; | |
9438 | ||
9439 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
9440 | case `$LD -v 2>&1` in | |
9441 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9442 | ld_shlibs=no | |
9443 | cat <<_LT_EOF 1>&2 | |
9444 | ||
9445 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
9446 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9447 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9448 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9449 | *** your PATH or compiler configuration so that the native linker is | |
9450 | *** used, and then restart. | |
9451 | ||
9452 | _LT_EOF | |
9453 | ;; | |
9454 | *) | |
9455 | # For security reasons, it is highly recommended that you always | |
9456 | # use absolute paths for naming shared libraries, and exclude the | |
9457 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9458 | # requires that you compile everything twice, which is a pain. | |
9459 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9460 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9461 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9462 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9463 | else | |
9464 | ld_shlibs=no | |
9465 | fi | |
9466 | ;; | |
9467 | esac | |
9468 | ;; | |
9469 | ||
9470 | sunos4*) | |
9471 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9472 | wlarc= | |
9473 | hardcode_direct=yes | |
9474 | hardcode_shlibpath_var=no | |
9475 | ;; | |
9476 | ||
9477 | *) | |
9478 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9479 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9480 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9481 | else | |
9482 | ld_shlibs=no | |
9483 | fi | |
9484 | ;; | |
9485 | esac | |
9486 | ||
9487 | if test "$ld_shlibs" = no; then | |
9488 | runpath_var= | |
9489 | hardcode_libdir_flag_spec= | |
9490 | export_dynamic_flag_spec= | |
9491 | whole_archive_flag_spec= | |
9492 | fi | |
9493 | else | |
9494 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9495 | case $host_os in | |
9496 | aix3*) | |
9497 | allow_undefined_flag=unsupported | |
9498 | always_export_symbols=yes | |
9499 | 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' | |
9500 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9501 | # are no directories specified by -L. | |
9502 | hardcode_minus_L=yes | |
9503 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9504 | # Neither direct hardcoding nor static linking is supported with a | |
9505 | # broken collect2. | |
9506 | hardcode_direct=unsupported | |
9507 | fi | |
9508 | ;; | |
9509 | ||
9510 | aix[4-9]*) | |
9511 | if test "$host_cpu" = ia64; then | |
9512 | # On IA64, the linker does run time linking by default, so we don't | |
9513 | # have to do anything special. | |
9514 | aix_use_runtimelinking=no | |
9515 | exp_sym_flag='-Bexport' | |
9516 | no_entry_flag="" | |
9517 | else | |
9518 | # If we're using GNU nm, then we don't want the "-C" option. | |
9519 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
9520 | # Also, AIX nm treats weak defined symbols like other global | |
9521 | # defined symbols, whereas GNU nm marks them as "W". | |
9522 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
9523 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
9524 | else | |
9525 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
9526 | fi | |
9527 | aix_use_runtimelinking=no | |
9528 | ||
9529 | # Test if we are trying to use run time linking or normal | |
9530 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9531 | # need to do runtime linking. | |
9532 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
9533 | for ld_flag in $LDFLAGS; do | |
9534 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9535 | aix_use_runtimelinking=yes | |
9536 | break | |
9537 | fi | |
9538 | done | |
9539 | ;; | |
9540 | esac | |
9541 | ||
9542 | exp_sym_flag='-bexport' | |
9543 | no_entry_flag='-bnoentry' | |
9544 | fi | |
9545 | ||
9546 | # When large executables or shared objects are built, AIX ld can | |
9547 | # have problems creating the table of contents. If linking a library | |
9548 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9549 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9550 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9551 | ||
9552 | archive_cmds='' | |
9553 | hardcode_direct=yes | |
9554 | hardcode_direct_absolute=yes | |
9555 | hardcode_libdir_separator=':' | |
9556 | link_all_deplibs=yes | |
9557 | file_list_spec='${wl}-f,' | |
9558 | ||
9559 | if test "$GCC" = yes; then | |
9560 | case $host_os in aix4.[012]|aix4.[012].*) | |
9561 | # We only want to do this on AIX 4.2 and lower, the check | |
9562 | # below for broken collect2 doesn't work under 4.3+ | |
9563 | collect2name=`${CC} -print-prog-name=collect2` | |
9564 | if test -f "$collect2name" && | |
9565 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9566 | then | |
9567 | # We have reworked collect2 | |
9568 | : | |
9569 | else | |
9570 | # We have old collect2 | |
9571 | hardcode_direct=unsupported | |
9572 | # It fails to find uninstalled libraries when the uninstalled | |
9573 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9574 | # to unsupported forces relinking | |
9575 | hardcode_minus_L=yes | |
9576 | hardcode_libdir_flag_spec='-L$libdir' | |
9577 | hardcode_libdir_separator= | |
9578 | fi | |
9579 | ;; | |
9580 | esac | |
9581 | shared_flag='-shared' | |
9582 | if test "$aix_use_runtimelinking" = yes; then | |
9583 | shared_flag="$shared_flag "'${wl}-G' | |
9584 | fi | |
9585 | else | |
9586 | # not using gcc | |
9587 | if test "$host_cpu" = ia64; then | |
9588 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9589 | # chokes on -Wl,-G. The following line is correct: | |
9590 | shared_flag='-G' | |
9591 | else | |
9592 | if test "$aix_use_runtimelinking" = yes; then | |
9593 | shared_flag='${wl}-G' | |
9594 | else | |
9595 | shared_flag='${wl}-bM:SRE' | |
9596 | fi | |
9597 | fi | |
9598 | fi | |
9599 | ||
9600 | export_dynamic_flag_spec='${wl}-bexpall' | |
9601 | # It seems that -bexpall does not export symbols beginning with | |
9602 | # underscore (_), so it is better to generate a list of symbols to export. | |
9603 | always_export_symbols=yes | |
9604 | if test "$aix_use_runtimelinking" = yes; then | |
9605 | # Warning - without using the other runtime loading flags (-brtl), | |
9606 | # -berok will link without error, but may produce a broken library. | |
9607 | allow_undefined_flag='-berok' | |
9608 | # Determine the default libpath from the value encoded in an | |
9609 | # empty executable. | |
9610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9611 | /* end confdefs.h. */ | |
9612 | ||
9613 | int | |
9614 | main () | |
9615 | { | |
9616 | ||
9617 | ; | |
9618 | return 0; | |
9619 | } | |
9620 | _ACEOF | |
9621 | if ac_fn_c_try_link "$LINENO"; then : | |
9622 | ||
9623 | lt_aix_libpath_sed=' | |
9624 | /Import File Strings/,/^$/ { | |
9625 | /^0/ { | |
9626 | s/^0 *\(.*\)$/\1/ | |
9627 | p | |
9628 | } | |
9629 | }' | |
9630 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9631 | # Check for a 64-bit object if we didn't find anything. | |
9632 | if test -z "$aix_libpath"; then | |
9633 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9634 | fi | |
9635 | fi | |
9636 | rm -f core conftest.err conftest.$ac_objext \ | |
9637 | conftest$ac_exeext conftest.$ac_ext | |
9638 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9639 | ||
9640 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9641 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
9642 | else | |
9643 | if test "$host_cpu" = ia64; then | |
9644 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9645 | allow_undefined_flag="-z nodefs" | |
9646 | 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" | |
9647 | else | |
9648 | # Determine the default libpath from the value encoded in an | |
9649 | # empty executable. | |
9650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9651 | /* end confdefs.h. */ | |
9652 | ||
9653 | int | |
9654 | main () | |
9655 | { | |
9656 | ||
9657 | ; | |
9658 | return 0; | |
9659 | } | |
9660 | _ACEOF | |
9661 | if ac_fn_c_try_link "$LINENO"; then : | |
9662 | ||
9663 | lt_aix_libpath_sed=' | |
9664 | /Import File Strings/,/^$/ { | |
9665 | /^0/ { | |
9666 | s/^0 *\(.*\)$/\1/ | |
9667 | p | |
9668 | } | |
9669 | }' | |
9670 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9671 | # Check for a 64-bit object if we didn't find anything. | |
9672 | if test -z "$aix_libpath"; then | |
9673 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9674 | fi | |
9675 | fi | |
9676 | rm -f core conftest.err conftest.$ac_objext \ | |
9677 | conftest$ac_exeext conftest.$ac_ext | |
9678 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9679 | ||
9680 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9681 | # Warning - without using the other run time loading flags, | |
9682 | # -berok will link without error, but may produce a broken library. | |
9683 | no_undefined_flag=' ${wl}-bernotok' | |
9684 | allow_undefined_flag=' ${wl}-berok' | |
9685 | if test "$with_gnu_ld" = yes; then | |
9686 | # We only use this code for GNU lds that support --whole-archive. | |
9687 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
9688 | else | |
9689 | # Exported symbols can be pulled into shared objects from archives | |
9690 | whole_archive_flag_spec='$convenience' | |
9691 | fi | |
9692 | archive_cmds_need_lc=yes | |
9693 | # This is similar to how AIX traditionally builds its shared libraries. | |
9694 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
9695 | fi | |
9696 | fi | |
9697 | ;; | |
9698 | ||
9699 | amigaos*) | |
9700 | case $host_cpu in | |
9701 | powerpc) | |
9702 | # see comment about AmigaOS4 .so support | |
9703 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9704 | archive_expsym_cmds='' | |
9705 | ;; | |
9706 | m68k) | |
9707 | 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)' | |
9708 | hardcode_libdir_flag_spec='-L$libdir' | |
9709 | hardcode_minus_L=yes | |
9710 | ;; | |
9711 | esac | |
9712 | ;; | |
9713 | ||
9714 | bsdi[45]*) | |
9715 | export_dynamic_flag_spec=-rdynamic | |
9716 | ;; | |
9717 | ||
9718 | cygwin* | mingw* | pw32* | cegcc*) | |
9719 | # When not using gcc, we currently assume that we are using | |
9720 | # Microsoft Visual C++. | |
9721 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9722 | # no search path for DLLs. | |
9723 | hardcode_libdir_flag_spec=' ' | |
9724 | allow_undefined_flag=unsupported | |
9725 | # Tell ltmain to make .lib files, not .a files. | |
9726 | libext=lib | |
9727 | # Tell ltmain to make .dll files, not .so files. | |
9728 | shrext_cmds=".dll" | |
9729 | # FIXME: Setting linknames here is a bad hack. | |
9730 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9731 | # The linker will automatically build a .lib file if we build a DLL. | |
9732 | old_archive_from_new_cmds='true' | |
9733 | # FIXME: Should let the user specify the lib program. | |
9734 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9735 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
9736 | enable_shared_with_static_runtimes=yes | |
9737 | ;; | |
9738 | ||
9739 | darwin* | rhapsody*) | |
9740 | ||
9741 | ||
9742 | archive_cmds_need_lc=no | |
9743 | hardcode_direct=no | |
9744 | hardcode_automatic=yes | |
9745 | hardcode_shlibpath_var=unsupported | |
9746 | if test "$lt_cv_ld_force_load" = "yes"; then | |
9747 | 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\"`' | |
9748 | else | |
9749 | whole_archive_flag_spec='' | |
9750 | fi | |
9751 | link_all_deplibs=yes | |
9752 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9753 | case $cc_basename in | |
9754 | ifort*) _lt_dar_can_shared=yes ;; | |
9755 | *) _lt_dar_can_shared=$GCC ;; | |
9756 | esac | |
9757 | if test "$_lt_dar_can_shared" = "yes"; then | |
9758 | output_verbose_link_cmd=func_echo_all | |
9759 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
9760 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9761 | 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}" | |
9762 | 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}" | |
9763 | ||
9764 | else | |
9765 | ld_shlibs=no | |
9766 | fi | |
9767 | ||
9768 | ;; | |
9769 | ||
9770 | dgux*) | |
9771 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9772 | hardcode_libdir_flag_spec='-L$libdir' | |
9773 | hardcode_shlibpath_var=no | |
9774 | ;; | |
9775 | ||
9776 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
9777 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9778 | # does not break anything, and helps significantly (at the cost of a little | |
9779 | # extra space). | |
9780 | freebsd2.2*) | |
9781 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9782 | hardcode_libdir_flag_spec='-R$libdir' | |
9783 | hardcode_direct=yes | |
9784 | hardcode_shlibpath_var=no | |
9785 | ;; | |
9786 | ||
9787 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
9788 | freebsd2.*) | |
9789 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9790 | hardcode_direct=yes | |
9791 | hardcode_minus_L=yes | |
9792 | hardcode_shlibpath_var=no | |
9793 | ;; | |
9794 | ||
9795 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
9796 | freebsd* | dragonfly*) | |
9797 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
9798 | hardcode_libdir_flag_spec='-R$libdir' | |
9799 | hardcode_direct=yes | |
9800 | hardcode_shlibpath_var=no | |
9801 | ;; | |
9802 | ||
9803 | hpux9*) | |
9804 | if test "$GCC" = yes; then | |
9805 | archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
9806 | else | |
9807 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
9808 | fi | |
9809 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9810 | hardcode_libdir_separator=: | |
9811 | hardcode_direct=yes | |
9812 | ||
9813 | # hardcode_minus_L: Not really in the search PATH, | |
9814 | # but as the default location of the library. | |
9815 | hardcode_minus_L=yes | |
9816 | export_dynamic_flag_spec='${wl}-E' | |
9817 | ;; | |
9818 | ||
9819 | hpux10*) | |
9820 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
9821 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9822 | else | |
9823 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9824 | fi | |
9825 | if test "$with_gnu_ld" = no; then | |
9826 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9827 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
9828 | hardcode_libdir_separator=: | |
9829 | hardcode_direct=yes | |
9830 | hardcode_direct_absolute=yes | |
9831 | export_dynamic_flag_spec='${wl}-E' | |
9832 | # hardcode_minus_L: Not really in the search PATH, | |
9833 | # but as the default location of the library. | |
9834 | hardcode_minus_L=yes | |
9835 | fi | |
9836 | ;; | |
9837 | ||
9838 | hpux11*) | |
9839 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
9840 | case $host_cpu in | |
9841 | hppa*64*) | |
caf606c9 | 9842 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
63a4b106 AB |
9843 | ;; |
9844 | ia64*) | |
9845 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9846 | ;; | |
9847 | *) | |
9848 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9849 | ;; | |
9850 | esac | |
9851 | else | |
9852 | case $host_cpu in | |
9853 | hppa*64*) | |
caf606c9 | 9854 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
63a4b106 AB |
9855 | ;; |
9856 | ia64*) | |
9857 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9858 | ;; | |
9859 | *) | |
9860 | ||
9861 | # Older versions of the 11.00 compiler do not understand -b yet | |
9862 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
9863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
9864 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
9865 | if ${lt_cv_prog_compiler__b+:} false; then : | |
9866 | $as_echo_n "(cached) " >&6 | |
9867 | else | |
9868 | lt_cv_prog_compiler__b=no | |
9869 | save_LDFLAGS="$LDFLAGS" | |
9870 | LDFLAGS="$LDFLAGS -b" | |
9871 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9872 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9873 | # The linker can only warn and ignore the option if not recognized | |
9874 | # So say no if there are warnings | |
9875 | if test -s conftest.err; then | |
9876 | # Append any errors to the config.log. | |
9877 | cat conftest.err 1>&5 | |
9878 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9879 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9880 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9881 | lt_cv_prog_compiler__b=yes | |
9882 | fi | |
9883 | else | |
9884 | lt_cv_prog_compiler__b=yes | |
9885 | fi | |
9886 | fi | |
9887 | $RM -r conftest* | |
9888 | LDFLAGS="$save_LDFLAGS" | |
9889 | ||
9890 | fi | |
9891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
9892 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
9893 | ||
9894 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
9895 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9896 | else | |
9897 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9898 | fi | |
9899 | ||
9900 | ;; | |
9901 | esac | |
9902 | fi | |
9903 | if test "$with_gnu_ld" = no; then | |
9904 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9905 | hardcode_libdir_separator=: | |
9906 | ||
9907 | case $host_cpu in | |
9908 | hppa*64*|ia64*) | |
9909 | hardcode_direct=no | |
9910 | hardcode_shlibpath_var=no | |
9911 | ;; | |
9912 | *) | |
9913 | hardcode_direct=yes | |
9914 | hardcode_direct_absolute=yes | |
9915 | export_dynamic_flag_spec='${wl}-E' | |
9916 | ||
9917 | # hardcode_minus_L: Not really in the search PATH, | |
9918 | # but as the default location of the library. | |
9919 | hardcode_minus_L=yes | |
9920 | ;; | |
9921 | esac | |
9922 | fi | |
9923 | ;; | |
9924 | ||
9925 | irix5* | irix6* | nonstopux*) | |
9926 | if test "$GCC" = yes; then | |
9927 | archive_cmds='$CC -shared $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' | |
9928 | # Try to use the -exported_symbol ld option, if it does not | |
9929 | # work, assume that -exports_file does not work either and | |
9930 | # implicitly export all symbols. | |
9931 | save_LDFLAGS="$LDFLAGS" | |
9932 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
9933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9934 | /* end confdefs.h. */ | |
9935 | int foo(void) {} | |
9936 | _ACEOF | |
9937 | if ac_fn_c_try_link "$LINENO"; then : | |
9938 | archive_expsym_cmds='$CC -shared $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' | |
9939 | ||
9940 | fi | |
9941 | rm -f core conftest.err conftest.$ac_objext \ | |
9942 | conftest$ac_exeext conftest.$ac_ext | |
9943 | LDFLAGS="$save_LDFLAGS" | |
9944 | else | |
9945 | 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' | |
9946 | 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' | |
9947 | fi | |
9948 | archive_cmds_need_lc='no' | |
9949 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9950 | hardcode_libdir_separator=: | |
9951 | inherit_rpath=yes | |
9952 | link_all_deplibs=yes | |
9953 | ;; | |
9954 | ||
9955 | netbsd*) | |
9956 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9957 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9958 | else | |
9959 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9960 | fi | |
9961 | hardcode_libdir_flag_spec='-R$libdir' | |
9962 | hardcode_direct=yes | |
9963 | hardcode_shlibpath_var=no | |
9964 | ;; | |
9965 | ||
9966 | newsos6) | |
9967 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9968 | hardcode_direct=yes | |
9969 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9970 | hardcode_libdir_separator=: | |
9971 | hardcode_shlibpath_var=no | |
9972 | ;; | |
9973 | ||
9974 | *nto* | *qnx*) | |
9975 | ;; | |
9976 | ||
9977 | openbsd*) | |
9978 | if test -f /usr/libexec/ld.so; then | |
9979 | hardcode_direct=yes | |
9980 | hardcode_shlibpath_var=no | |
9981 | hardcode_direct_absolute=yes | |
9982 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9983 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9984 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
9985 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9986 | export_dynamic_flag_spec='${wl}-E' | |
9987 | else | |
9988 | case $host_os in | |
9989 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9990 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9991 | hardcode_libdir_flag_spec='-R$libdir' | |
9992 | ;; | |
9993 | *) | |
9994 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9995 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9996 | ;; | |
9997 | esac | |
9998 | fi | |
9999 | else | |
10000 | ld_shlibs=no | |
10001 | fi | |
10002 | ;; | |
10003 | ||
10004 | os2*) | |
10005 | hardcode_libdir_flag_spec='-L$libdir' | |
10006 | hardcode_minus_L=yes | |
10007 | allow_undefined_flag=unsupported | |
10008 | archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | |
10009 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
10010 | ;; | |
10011 | ||
10012 | osf3*) | |
10013 | if test "$GCC" = yes; then | |
10014 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10015 | 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' | |
10016 | else | |
10017 | allow_undefined_flag=' -expect_unresolved \*' | |
10018 | 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' | |
10019 | fi | |
10020 | archive_cmds_need_lc='no' | |
10021 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10022 | hardcode_libdir_separator=: | |
10023 | ;; | |
10024 | ||
10025 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
10026 | if test "$GCC" = yes; then | |
10027 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10028 | archive_cmds='$CC -shared${allow_undefined_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' | |
10029 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10030 | else | |
10031 | allow_undefined_flag=' -expect_unresolved \*' | |
10032 | 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' | |
10033 | 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~ | |
10034 | $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' | |
10035 | ||
10036 | # Both c and cxx compiler support -rpath directly | |
10037 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10038 | fi | |
10039 | archive_cmds_need_lc='no' | |
10040 | hardcode_libdir_separator=: | |
10041 | ;; | |
10042 | ||
10043 | solaris*) | |
10044 | no_undefined_flag=' -z defs' | |
10045 | if test "$GCC" = yes; then | |
10046 | wlarc='${wl}' | |
10047 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10048 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10049 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10050 | else | |
10051 | case `$CC -V 2>&1` in | |
10052 | *"Compilers 5.0"*) | |
10053 | wlarc='' | |
10054 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10055 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10056 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
10057 | ;; | |
10058 | *) | |
10059 | wlarc='${wl}' | |
10060 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10061 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10062 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10063 | ;; | |
10064 | esac | |
10065 | fi | |
10066 | hardcode_libdir_flag_spec='-R$libdir' | |
10067 | hardcode_shlibpath_var=no | |
10068 | case $host_os in | |
10069 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10070 | *) | |
10071 | # The compiler driver will combine and reorder linker options, | |
10072 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
10073 | # but is careful enough not to reorder. | |
10074 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10075 | if test "$GCC" = yes; then | |
10076 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
10077 | else | |
10078 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10079 | fi | |
10080 | ;; | |
10081 | esac | |
10082 | link_all_deplibs=yes | |
10083 | ;; | |
10084 | ||
10085 | sunos4*) | |
10086 | if test "x$host_vendor" = xsequent; then | |
10087 | # Use $CC to link under sequent, because it throws in some extra .o | |
10088 | # files that make .init and .fini sections work. | |
10089 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10090 | else | |
10091 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10092 | fi | |
10093 | hardcode_libdir_flag_spec='-L$libdir' | |
10094 | hardcode_direct=yes | |
10095 | hardcode_minus_L=yes | |
10096 | hardcode_shlibpath_var=no | |
10097 | ;; | |
10098 | ||
10099 | sysv4) | |
10100 | case $host_vendor in | |
10101 | sni) | |
10102 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10103 | hardcode_direct=yes # is this really true??? | |
10104 | ;; | |
10105 | siemens) | |
10106 | ## LD is ld it makes a PLAMLIB | |
10107 | ## CC just makes a GrossModule. | |
10108 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10109 | reload_cmds='$CC -r -o $output$reload_objs' | |
10110 | hardcode_direct=no | |
10111 | ;; | |
10112 | motorola) | |
10113 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10114 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10115 | ;; | |
10116 | esac | |
10117 | runpath_var='LD_RUN_PATH' | |
10118 | hardcode_shlibpath_var=no | |
10119 | ;; | |
10120 | ||
10121 | sysv4.3*) | |
10122 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10123 | hardcode_shlibpath_var=no | |
10124 | export_dynamic_flag_spec='-Bexport' | |
10125 | ;; | |
10126 | ||
10127 | sysv4*MP*) | |
10128 | if test -d /usr/nec; then | |
10129 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10130 | hardcode_shlibpath_var=no | |
10131 | runpath_var=LD_RUN_PATH | |
10132 | hardcode_runpath_var=yes | |
10133 | ld_shlibs=yes | |
10134 | fi | |
10135 | ;; | |
10136 | ||
10137 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
10138 | no_undefined_flag='${wl}-z,text' | |
10139 | archive_cmds_need_lc=no | |
10140 | hardcode_shlibpath_var=no | |
10141 | runpath_var='LD_RUN_PATH' | |
10142 | ||
10143 | if test "$GCC" = yes; then | |
10144 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10145 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10146 | else | |
10147 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10148 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10149 | fi | |
10150 | ;; | |
10151 | ||
10152 | sysv5* | sco3.2v5* | sco5v6*) | |
10153 | # Note: We can NOT use -z defs as we might desire, because we do not | |
10154 | # link with -lc, and that would cause any symbols used from libc to | |
10155 | # always be unresolved, which means just about no library would | |
10156 | # ever link correctly. If we're not using GNU ld we use -z text | |
10157 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10158 | # as -z defs. | |
10159 | no_undefined_flag='${wl}-z,text' | |
10160 | allow_undefined_flag='${wl}-z,nodefs' | |
10161 | archive_cmds_need_lc=no | |
10162 | hardcode_shlibpath_var=no | |
10163 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
10164 | hardcode_libdir_separator=':' | |
10165 | link_all_deplibs=yes | |
10166 | export_dynamic_flag_spec='${wl}-Bexport' | |
10167 | runpath_var='LD_RUN_PATH' | |
10168 | ||
10169 | if test "$GCC" = yes; then | |
10170 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10171 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10172 | else | |
10173 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10174 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10175 | fi | |
10176 | ;; | |
10177 | ||
10178 | uts4*) | |
10179 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10180 | hardcode_libdir_flag_spec='-L$libdir' | |
10181 | hardcode_shlibpath_var=no | |
10182 | ;; | |
10183 | ||
10184 | *) | |
10185 | ld_shlibs=no | |
10186 | ;; | |
10187 | esac | |
10188 | ||
10189 | if test x$host_vendor = xsni; then | |
10190 | case $host in | |
10191 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10192 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
10193 | ;; | |
10194 | esac | |
10195 | fi | |
10196 | fi | |
10197 | ||
10198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
10199 | $as_echo "$ld_shlibs" >&6; } | |
10200 | test "$ld_shlibs" = no && can_build_shared=no | |
10201 | ||
10202 | with_gnu_ld=$with_gnu_ld | |
10203 | ||
10204 | ||
10205 | ||
10206 | ||
10207 | ||
10208 | ||
10209 | ||
10210 | ||
10211 | ||
10212 | ||
10213 | ||
10214 | ||
10215 | ||
10216 | ||
10217 | ||
10218 | # | |
10219 | # Do we need to explicitly link libc? | |
10220 | # | |
10221 | case "x$archive_cmds_need_lc" in | |
10222 | x|xyes) | |
10223 | # Assume -lc should be added | |
10224 | archive_cmds_need_lc=yes | |
10225 | ||
10226 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
10227 | case $archive_cmds in | |
10228 | *'~'*) | |
10229 | # FIXME: we may have to deal with multi-command sequences. | |
10230 | ;; | |
10231 | '$CC '*) | |
10232 | # Test whether the compiler implicitly links with -lc since on some | |
10233 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10234 | # to ld, don't add -lc before -lgcc. | |
10235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
10236 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
10237 | if ${lt_cv_archive_cmds_need_lc+:} false; then : | |
10238 | $as_echo_n "(cached) " >&6 | |
10239 | else | |
10240 | $RM conftest* | |
10241 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10242 | ||
10243 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
10244 | (eval $ac_compile) 2>&5 | |
10245 | ac_status=$? | |
10246 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10247 | test $ac_status = 0; } 2>conftest.err; then | |
10248 | soname=conftest | |
10249 | lib=conftest | |
10250 | libobjs=conftest.$ac_objext | |
10251 | deplibs= | |
10252 | wl=$lt_prog_compiler_wl | |
10253 | pic_flag=$lt_prog_compiler_pic | |
10254 | compiler_flags=-v | |
10255 | linker_flags=-v | |
10256 | verstring= | |
10257 | output_objdir=. | |
10258 | libname=conftest | |
10259 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10260 | allow_undefined_flag= | |
10261 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
10262 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
10263 | ac_status=$? | |
10264 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10265 | test $ac_status = 0; } | |
10266 | then | |
10267 | lt_cv_archive_cmds_need_lc=no | |
10268 | else | |
10269 | lt_cv_archive_cmds_need_lc=yes | |
10270 | fi | |
10271 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10272 | else | |
10273 | cat conftest.err 1>&5 | |
10274 | fi | |
10275 | $RM conftest* | |
10276 | ||
10277 | fi | |
10278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
10279 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
10280 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
10281 | ;; | |
10282 | esac | |
10283 | fi | |
10284 | ;; | |
10285 | esac | |
10286 | ||
10287 | ||
10288 | ||
10289 | ||
10290 | ||
10291 | ||
10292 | ||
10293 | ||
10294 | ||
10295 | ||
10296 | ||
10297 | ||
10298 | ||
10299 | ||
10300 | ||
10301 | ||
10302 | ||
10303 | ||
10304 | ||
10305 | ||
10306 | ||
10307 | ||
10308 | ||
10309 | ||
10310 | ||
10311 | ||
10312 | ||
10313 | ||
10314 | ||
10315 | ||
10316 | ||
10317 | ||
10318 | ||
10319 | ||
10320 | ||
10321 | ||
10322 | ||
10323 | ||
10324 | ||
10325 | ||
10326 | ||
10327 | ||
10328 | ||
10329 | ||
10330 | ||
10331 | ||
10332 | ||
10333 | ||
10334 | ||
10335 | ||
10336 | ||
10337 | ||
10338 | ||
10339 | ||
10340 | ||
10341 | ||
10342 | ||
10343 | ||
10344 | ||
10345 | ||
10346 | ||
10347 | ||
10348 | ||
10349 | ||
10350 | ||
10351 | ||
10352 | ||
10353 | ||
10354 | ||
10355 | ||
10356 | ||
10357 | ||
10358 | ||
10359 | ||
10360 | ||
10361 | ||
10362 | ||
10363 | ||
10364 | ||
10365 | ||
10366 | ||
10367 | ||
10368 | ||
10369 | ||
10370 | ||
10371 | ||
10372 | ||
10373 | ||
10374 | ||
10375 | ||
10376 | ||
10377 | ||
10378 | ||
10379 | ||
10380 | ||
10381 | ||
10382 | ||
10383 | ||
10384 | ||
10385 | ||
10386 | ||
10387 | ||
10388 | ||
10389 | ||
10390 | ||
10391 | ||
10392 | ||
10393 | ||
10394 | ||
10395 | ||
10396 | ||
10397 | ||
10398 | ||
10399 | ||
10400 | ||
10401 | ||
10402 | ||
10403 | ||
10404 | ||
10405 | ||
10406 | ||
10407 | ||
10408 | ||
10409 | ||
10410 | ||
10411 | ||
10412 | ||
10413 | ||
10414 | ||
10415 | ||
10416 | ||
10417 | ||
10418 | ||
10419 | ||
10420 | ||
10421 | ||
10422 | ||
10423 | ||
10424 | ||
10425 | ||
10426 | ||
10427 | ||
10428 | ||
10429 | ||
10430 | ||
10431 | ||
10432 | ||
10433 | ||
10434 | ||
10435 | ||
10436 | ||
10437 | ||
10438 | ||
10439 | ||
10440 | ||
10441 | ||
10442 | ||
10443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
10444 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
10445 | ||
10446 | if test "$GCC" = yes; then | |
10447 | case $host_os in | |
10448 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
10449 | *) lt_awk_arg="/^libraries:/" ;; | |
10450 | esac | |
10451 | case $host_os in | |
10452 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
10453 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
10454 | esac | |
10455 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10456 | case $lt_search_path_spec in | |
10457 | *\;*) | |
10458 | # if the path contains ";" then we assume it to be the separator | |
10459 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10460 | # assumed that no part of a normal pathname contains ";" but that should | |
10461 | # okay in the real world where ";" in dirpaths is itself problematic. | |
10462 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
10463 | ;; | |
10464 | *) | |
10465 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10466 | ;; | |
10467 | esac | |
10468 | # Ok, now we have the path, separated by spaces, we can step through it | |
10469 | # and add multilib dir if necessary. | |
10470 | lt_tmp_lt_search_path_spec= | |
10471 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10472 | for lt_sys_path in $lt_search_path_spec; do | |
10473 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10474 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10475 | else | |
10476 | test -d "$lt_sys_path" && \ | |
10477 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10478 | fi | |
10479 | done | |
10480 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
10481 | BEGIN {RS=" "; FS="/|\n";} { | |
10482 | lt_foo=""; | |
10483 | lt_count=0; | |
10484 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10485 | if ($lt_i != "" && $lt_i != ".") { | |
10486 | if ($lt_i == "..") { | |
10487 | lt_count++; | |
10488 | } else { | |
10489 | if (lt_count == 0) { | |
10490 | lt_foo="/" $lt_i lt_foo; | |
10491 | } else { | |
10492 | lt_count--; | |
10493 | } | |
10494 | } | |
10495 | } | |
10496 | } | |
10497 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10498 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10499 | }'` | |
10500 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
10501 | # for these hosts. | |
10502 | case $host_os in | |
10503 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
10504 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
10505 | esac | |
10506 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
10507 | else | |
10508 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10509 | fi | |
10510 | library_names_spec= | |
10511 | libname_spec='lib$name' | |
10512 | soname_spec= | |
10513 | shrext_cmds=".so" | |
10514 | postinstall_cmds= | |
10515 | postuninstall_cmds= | |
10516 | finish_cmds= | |
10517 | finish_eval= | |
10518 | shlibpath_var= | |
10519 | shlibpath_overrides_runpath=unknown | |
10520 | version_type=none | |
10521 | dynamic_linker="$host_os ld.so" | |
10522 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10523 | need_lib_prefix=unknown | |
10524 | hardcode_into_libs=no | |
10525 | ||
10526 | # when you set need_version to no, make sure it does not cause -set_version | |
10527 | # flags to be left without arguments | |
10528 | need_version=unknown | |
10529 | ||
10530 | case $host_os in | |
10531 | aix3*) | |
10532 | version_type=linux | |
10533 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10534 | shlibpath_var=LIBPATH | |
10535 | ||
10536 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10537 | soname_spec='${libname}${release}${shared_ext}$major' | |
10538 | ;; | |
10539 | ||
10540 | aix[4-9]*) | |
10541 | version_type=linux | |
10542 | need_lib_prefix=no | |
10543 | need_version=no | |
10544 | hardcode_into_libs=yes | |
10545 | if test "$host_cpu" = ia64; then | |
10546 | # AIX 5 supports IA64 | |
10547 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10548 | shlibpath_var=LD_LIBRARY_PATH | |
10549 | else | |
10550 | # With GCC up to 2.95.x, collect2 would create an import file | |
10551 | # for dependence libraries. The import file would start with | |
10552 | # the line `#! .'. This would cause the generated library to | |
10553 | # depend on `.', always an invalid library. This was fixed in | |
10554 | # development snapshots of GCC prior to 3.0. | |
10555 | case $host_os in | |
10556 | aix4 | aix4.[01] | aix4.[01].*) | |
10557 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10558 | echo ' yes ' | |
10559 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10560 | : | |
10561 | else | |
10562 | can_build_shared=no | |
10563 | fi | |
10564 | ;; | |
10565 | esac | |
10566 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10567 | # soname into executable. Probably we can add versioning support to | |
10568 | # collect2, so additional links can be useful in future. | |
10569 | if test "$aix_use_runtimelinking" = yes; then | |
10570 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10571 | # instead of lib<name>.a to let people know that these are not | |
10572 | # typical AIX shared libraries. | |
10573 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10574 | else | |
10575 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10576 | # and later when we are not doing run time linking. | |
10577 | library_names_spec='${libname}${release}.a $libname.a' | |
10578 | soname_spec='${libname}${release}${shared_ext}$major' | |
10579 | fi | |
10580 | shlibpath_var=LIBPATH | |
10581 | fi | |
10582 | ;; | |
10583 | ||
10584 | amigaos*) | |
10585 | case $host_cpu in | |
10586 | powerpc) | |
10587 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10588 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10589 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10590 | ;; | |
10591 | m68k) | |
10592 | library_names_spec='$libname.ixlibrary $libname.a' | |
10593 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
10594 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' | |
10595 | ;; | |
10596 | esac | |
10597 | ;; | |
10598 | ||
10599 | beos*) | |
10600 | library_names_spec='${libname}${shared_ext}' | |
10601 | dynamic_linker="$host_os ld.so" | |
10602 | shlibpath_var=LIBRARY_PATH | |
10603 | ;; | |
10604 | ||
10605 | bsdi[45]*) | |
10606 | version_type=linux | |
10607 | need_version=no | |
10608 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10609 | soname_spec='${libname}${release}${shared_ext}$major' | |
10610 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10611 | shlibpath_var=LD_LIBRARY_PATH | |
10612 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10613 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10614 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10615 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10616 | # libtool to hard-code these into programs | |
10617 | ;; | |
10618 | ||
10619 | cygwin* | mingw* | pw32* | cegcc*) | |
10620 | version_type=windows | |
10621 | shrext_cmds=".dll" | |
10622 | need_version=no | |
10623 | need_lib_prefix=no | |
10624 | ||
10625 | case $GCC,$host_os in | |
10626 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
10627 | library_names_spec='$libname.dll.a' | |
10628 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10629 | postinstall_cmds='base_file=`basename \${file}`~ | |
10630 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10631 | dldir=$destdir/`dirname \$dlpath`~ | |
10632 | test -d \$dldir || mkdir -p \$dldir~ | |
10633 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10634 | chmod a+x \$dldir/$dlname~ | |
10635 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10636 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10637 | fi' | |
10638 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10639 | dlpath=$dir/\$dldll~ | |
10640 | $RM \$dlpath' | |
10641 | shlibpath_overrides_runpath=yes | |
10642 | ||
10643 | case $host_os in | |
10644 | cygwin*) | |
10645 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10646 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10647 | ||
10648 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
10649 | ;; | |
10650 | mingw* | cegcc*) | |
10651 | # MinGW DLLs use traditional 'lib' prefix | |
10652 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10653 | ;; | |
10654 | pw32*) | |
10655 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10656 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10657 | ;; | |
10658 | esac | |
10659 | ;; | |
10660 | ||
10661 | *) | |
10662 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10663 | ;; | |
10664 | esac | |
10665 | dynamic_linker='Win32 ld.exe' | |
10666 | # FIXME: first we should search . and the directory the executable is in | |
10667 | shlibpath_var=PATH | |
10668 | ;; | |
10669 | ||
10670 | darwin* | rhapsody*) | |
10671 | dynamic_linker="$host_os dyld" | |
10672 | version_type=darwin | |
10673 | need_lib_prefix=no | |
10674 | need_version=no | |
10675 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
10676 | soname_spec='${libname}${release}${major}$shared_ext' | |
10677 | shlibpath_overrides_runpath=yes | |
10678 | shlibpath_var=DYLD_LIBRARY_PATH | |
10679 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10680 | ||
10681 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
10682 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10683 | ;; | |
10684 | ||
10685 | dgux*) | |
10686 | version_type=linux | |
10687 | need_lib_prefix=no | |
10688 | need_version=no | |
10689 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10690 | soname_spec='${libname}${release}${shared_ext}$major' | |
10691 | shlibpath_var=LD_LIBRARY_PATH | |
10692 | ;; | |
10693 | ||
10694 | freebsd* | dragonfly*) | |
10695 | # DragonFly does not have aout. When/if they implement a new | |
10696 | # versioning mechanism, adjust this. | |
10697 | if test -x /usr/bin/objformat; then | |
10698 | objformat=`/usr/bin/objformat` | |
10699 | else | |
10700 | case $host_os in | |
10701 | freebsd[23].*) objformat=aout ;; | |
10702 | *) objformat=elf ;; | |
10703 | esac | |
10704 | fi | |
10705 | version_type=freebsd-$objformat | |
10706 | case $version_type in | |
10707 | freebsd-elf*) | |
10708 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10709 | need_version=no | |
10710 | need_lib_prefix=no | |
10711 | ;; | |
10712 | freebsd-*) | |
10713 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10714 | need_version=yes | |
10715 | ;; | |
10716 | esac | |
10717 | shlibpath_var=LD_LIBRARY_PATH | |
10718 | case $host_os in | |
10719 | freebsd2.*) | |
10720 | shlibpath_overrides_runpath=yes | |
10721 | ;; | |
10722 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10723 | shlibpath_overrides_runpath=yes | |
10724 | hardcode_into_libs=yes | |
10725 | ;; | |
10726 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10727 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10728 | shlibpath_overrides_runpath=no | |
10729 | hardcode_into_libs=yes | |
10730 | ;; | |
10731 | *) # from 4.6 on, and DragonFly | |
10732 | shlibpath_overrides_runpath=yes | |
10733 | hardcode_into_libs=yes | |
10734 | ;; | |
10735 | esac | |
10736 | ;; | |
10737 | ||
10738 | haiku*) | |
10739 | version_type=linux | |
10740 | need_lib_prefix=no | |
10741 | need_version=no | |
10742 | dynamic_linker="$host_os runtime_loader" | |
10743 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10744 | soname_spec='${libname}${release}${shared_ext}$major' | |
10745 | shlibpath_var=LIBRARY_PATH | |
10746 | shlibpath_overrides_runpath=yes | |
caf606c9 | 10747 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
63a4b106 AB |
10748 | hardcode_into_libs=yes |
10749 | ;; | |
10750 | ||
10751 | hpux9* | hpux10* | hpux11*) | |
10752 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10753 | # link against other versions. | |
10754 | version_type=sunos | |
10755 | need_lib_prefix=no | |
10756 | need_version=no | |
10757 | case $host_cpu in | |
10758 | ia64*) | |
10759 | shrext_cmds='.so' | |
10760 | hardcode_into_libs=yes | |
10761 | dynamic_linker="$host_os dld.so" | |
10762 | shlibpath_var=LD_LIBRARY_PATH | |
10763 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10764 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10765 | soname_spec='${libname}${release}${shared_ext}$major' | |
10766 | if test "X$HPUX_IA64_MODE" = X32; then | |
10767 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10768 | else | |
10769 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10770 | fi | |
10771 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10772 | ;; | |
10773 | hppa*64*) | |
10774 | shrext_cmds='.sl' | |
10775 | hardcode_into_libs=yes | |
10776 | dynamic_linker="$host_os dld.sl" | |
10777 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10778 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10779 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10780 | soname_spec='${libname}${release}${shared_ext}$major' | |
10781 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10782 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10783 | ;; | |
10784 | *) | |
10785 | shrext_cmds='.sl' | |
10786 | dynamic_linker="$host_os dld.sl" | |
10787 | shlibpath_var=SHLIB_PATH | |
10788 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10789 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10790 | soname_spec='${libname}${release}${shared_ext}$major' | |
10791 | ;; | |
10792 | esac | |
10793 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
10794 | postinstall_cmds='chmod 555 $lib' | |
10795 | # or fails outright, so override atomically: | |
10796 | install_override_mode=555 | |
10797 | ;; | |
10798 | ||
10799 | interix[3-9]*) | |
10800 | version_type=linux | |
10801 | need_lib_prefix=no | |
10802 | need_version=no | |
10803 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10804 | soname_spec='${libname}${release}${shared_ext}$major' | |
10805 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10806 | shlibpath_var=LD_LIBRARY_PATH | |
10807 | shlibpath_overrides_runpath=no | |
10808 | hardcode_into_libs=yes | |
10809 | ;; | |
10810 | ||
10811 | irix5* | irix6* | nonstopux*) | |
10812 | case $host_os in | |
10813 | nonstopux*) version_type=nonstopux ;; | |
10814 | *) | |
10815 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
10816 | version_type=linux | |
10817 | else | |
10818 | version_type=irix | |
10819 | fi ;; | |
10820 | esac | |
10821 | need_lib_prefix=no | |
10822 | need_version=no | |
10823 | soname_spec='${libname}${release}${shared_ext}$major' | |
10824 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10825 | case $host_os in | |
10826 | irix5* | nonstopux*) | |
10827 | libsuff= shlibsuff= | |
10828 | ;; | |
10829 | *) | |
10830 | case $LD in # libtool.m4 will add one of these switches to LD | |
10831 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10832 | libsuff= shlibsuff= libmagic=32-bit;; | |
10833 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10834 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10835 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10836 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10837 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10838 | esac | |
10839 | ;; | |
10840 | esac | |
10841 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10842 | shlibpath_overrides_runpath=no | |
10843 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10844 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10845 | hardcode_into_libs=yes | |
10846 | ;; | |
10847 | ||
10848 | # No shared lib support for Linux oldld, aout, or coff. | |
10849 | linux*oldld* | linux*aout* | linux*coff*) | |
10850 | dynamic_linker=no | |
10851 | ;; | |
10852 | ||
10853 | # This must be Linux ELF. | |
caf606c9 | 10854 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
63a4b106 AB |
10855 | version_type=linux |
10856 | need_lib_prefix=no | |
10857 | need_version=no | |
10858 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10859 | soname_spec='${libname}${release}${shared_ext}$major' | |
10860 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10861 | shlibpath_var=LD_LIBRARY_PATH | |
10862 | shlibpath_overrides_runpath=no | |
10863 | ||
10864 | # Some binutils ld are patched to set DT_RUNPATH | |
10865 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
10866 | $as_echo_n "(cached) " >&6 | |
10867 | else | |
10868 | lt_cv_shlibpath_overrides_runpath=no | |
10869 | save_LDFLAGS=$LDFLAGS | |
10870 | save_libdir=$libdir | |
10871 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10872 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
10873 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10874 | /* end confdefs.h. */ | |
10875 | ||
10876 | int | |
10877 | main () | |
10878 | { | |
10879 | ||
10880 | ; | |
10881 | return 0; | |
10882 | } | |
10883 | _ACEOF | |
10884 | if ac_fn_c_try_link "$LINENO"; then : | |
10885 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
10886 | lt_cv_shlibpath_overrides_runpath=yes | |
10887 | fi | |
10888 | fi | |
10889 | rm -f core conftest.err conftest.$ac_objext \ | |
10890 | conftest$ac_exeext conftest.$ac_ext | |
10891 | LDFLAGS=$save_LDFLAGS | |
10892 | libdir=$save_libdir | |
10893 | ||
10894 | fi | |
10895 | ||
10896 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
10897 | ||
10898 | # This implies no fast_install, which is unacceptable. | |
10899 | # Some rework will be needed to allow for fast_install | |
10900 | # before this can be enabled. | |
10901 | hardcode_into_libs=yes | |
10902 | ||
10903 | # Append ld.so.conf contents to the search path | |
10904 | if test -f /etc/ld.so.conf; then | |
10905 | 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' ' '` | |
10906 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
10907 | fi | |
10908 | ||
10909 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10910 | # powerpc, because MkLinux only supported shared libraries with the | |
10911 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10912 | # most powerpc-linux boxes support dynamic linking these days and | |
10913 | # people can always --disable-shared, the test was removed, and we | |
10914 | # assume the GNU/Linux dynamic linker is in use. | |
10915 | dynamic_linker='GNU/Linux ld.so' | |
10916 | ;; | |
10917 | ||
10918 | netbsd*) | |
10919 | version_type=sunos | |
10920 | need_lib_prefix=no | |
10921 | need_version=no | |
10922 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10923 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10924 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10925 | dynamic_linker='NetBSD (a.out) ld.so' | |
10926 | else | |
10927 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10928 | soname_spec='${libname}${release}${shared_ext}$major' | |
10929 | dynamic_linker='NetBSD ld.elf_so' | |
10930 | fi | |
10931 | shlibpath_var=LD_LIBRARY_PATH | |
10932 | shlibpath_overrides_runpath=yes | |
10933 | hardcode_into_libs=yes | |
10934 | ;; | |
10935 | ||
10936 | newsos6) | |
10937 | version_type=linux | |
10938 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10939 | shlibpath_var=LD_LIBRARY_PATH | |
10940 | shlibpath_overrides_runpath=yes | |
10941 | ;; | |
10942 | ||
10943 | *nto* | *qnx*) | |
10944 | version_type=qnx | |
10945 | need_lib_prefix=no | |
10946 | need_version=no | |
10947 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10948 | soname_spec='${libname}${release}${shared_ext}$major' | |
10949 | shlibpath_var=LD_LIBRARY_PATH | |
10950 | shlibpath_overrides_runpath=no | |
10951 | hardcode_into_libs=yes | |
10952 | dynamic_linker='ldqnx.so' | |
10953 | ;; | |
10954 | ||
10955 | openbsd*) | |
10956 | version_type=sunos | |
10957 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10958 | need_lib_prefix=no | |
10959 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10960 | case $host_os in | |
10961 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10962 | *) need_version=no ;; | |
10963 | esac | |
10964 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10965 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10966 | shlibpath_var=LD_LIBRARY_PATH | |
10967 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10968 | case $host_os in | |
10969 | openbsd2.[89] | openbsd2.[89].*) | |
10970 | shlibpath_overrides_runpath=no | |
10971 | ;; | |
10972 | *) | |
10973 | shlibpath_overrides_runpath=yes | |
10974 | ;; | |
10975 | esac | |
10976 | else | |
10977 | shlibpath_overrides_runpath=yes | |
10978 | fi | |
10979 | ;; | |
10980 | ||
10981 | os2*) | |
10982 | libname_spec='$name' | |
10983 | shrext_cmds=".dll" | |
10984 | need_lib_prefix=no | |
10985 | library_names_spec='$libname${shared_ext} $libname.a' | |
10986 | dynamic_linker='OS/2 ld.exe' | |
10987 | shlibpath_var=LIBPATH | |
10988 | ;; | |
10989 | ||
10990 | osf3* | osf4* | osf5*) | |
10991 | version_type=osf | |
10992 | need_lib_prefix=no | |
10993 | need_version=no | |
10994 | soname_spec='${libname}${release}${shared_ext}$major' | |
10995 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10996 | shlibpath_var=LD_LIBRARY_PATH | |
10997 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10998 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10999 | ;; | |
11000 | ||
11001 | rdos*) | |
11002 | dynamic_linker=no | |
11003 | ;; | |
11004 | ||
11005 | solaris*) | |
11006 | version_type=linux | |
11007 | need_lib_prefix=no | |
11008 | need_version=no | |
11009 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11010 | soname_spec='${libname}${release}${shared_ext}$major' | |
11011 | shlibpath_var=LD_LIBRARY_PATH | |
11012 | shlibpath_overrides_runpath=yes | |
11013 | hardcode_into_libs=yes | |
11014 | # ldd complains unless libraries are executable | |
11015 | postinstall_cmds='chmod +x $lib' | |
11016 | ;; | |
11017 | ||
11018 | sunos4*) | |
11019 | version_type=sunos | |
11020 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11021 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11022 | shlibpath_var=LD_LIBRARY_PATH | |
11023 | shlibpath_overrides_runpath=yes | |
11024 | if test "$with_gnu_ld" = yes; then | |
11025 | need_lib_prefix=no | |
11026 | fi | |
11027 | need_version=yes | |
11028 | ;; | |
11029 | ||
11030 | sysv4 | sysv4.3*) | |
11031 | version_type=linux | |
11032 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11033 | soname_spec='${libname}${release}${shared_ext}$major' | |
11034 | shlibpath_var=LD_LIBRARY_PATH | |
11035 | case $host_vendor in | |
11036 | sni) | |
11037 | shlibpath_overrides_runpath=no | |
11038 | need_lib_prefix=no | |
11039 | runpath_var=LD_RUN_PATH | |
11040 | ;; | |
11041 | siemens) | |
11042 | need_lib_prefix=no | |
11043 | ;; | |
11044 | motorola) | |
11045 | need_lib_prefix=no | |
11046 | need_version=no | |
11047 | shlibpath_overrides_runpath=no | |
11048 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11049 | ;; | |
11050 | esac | |
11051 | ;; | |
11052 | ||
11053 | sysv4*MP*) | |
11054 | if test -d /usr/nec ;then | |
11055 | version_type=linux | |
11056 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
11057 | soname_spec='$libname${shared_ext}.$major' | |
11058 | shlibpath_var=LD_LIBRARY_PATH | |
11059 | fi | |
11060 | ;; | |
11061 | ||
11062 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
11063 | version_type=freebsd-elf | |
11064 | need_lib_prefix=no | |
11065 | need_version=no | |
11066 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11067 | soname_spec='${libname}${release}${shared_ext}$major' | |
11068 | shlibpath_var=LD_LIBRARY_PATH | |
11069 | shlibpath_overrides_runpath=yes | |
11070 | hardcode_into_libs=yes | |
11071 | if test "$with_gnu_ld" = yes; then | |
11072 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
11073 | else | |
11074 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
11075 | case $host_os in | |
11076 | sco3.2v5*) | |
11077 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11078 | ;; | |
11079 | esac | |
11080 | fi | |
11081 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11082 | ;; | |
11083 | ||
11084 | tpf*) | |
11085 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
11086 | version_type=linux | |
11087 | need_lib_prefix=no | |
11088 | need_version=no | |
11089 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11090 | shlibpath_var=LD_LIBRARY_PATH | |
11091 | shlibpath_overrides_runpath=no | |
11092 | hardcode_into_libs=yes | |
11093 | ;; | |
11094 | ||
11095 | uts4*) | |
11096 | version_type=linux | |
11097 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11098 | soname_spec='${libname}${release}${shared_ext}$major' | |
11099 | shlibpath_var=LD_LIBRARY_PATH | |
11100 | ;; | |
11101 | ||
11102 | *) | |
11103 | dynamic_linker=no | |
11104 | ;; | |
11105 | esac | |
11106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
11107 | $as_echo "$dynamic_linker" >&6; } | |
11108 | test "$dynamic_linker" = no && can_build_shared=no | |
11109 | ||
11110 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
11111 | if test "$GCC" = yes; then | |
11112 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
11113 | fi | |
11114 | ||
11115 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
11116 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
11117 | fi | |
11118 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
11119 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
11120 | fi | |
11121 | ||
11122 | ||
11123 | ||
11124 | ||
11125 | ||
11126 | ||
11127 | ||
11128 | ||
11129 | ||
11130 | ||
11131 | ||
11132 | ||
11133 | ||
11134 | ||
11135 | ||
11136 | ||
11137 | ||
11138 | ||
11139 | ||
11140 | ||
11141 | ||
11142 | ||
11143 | ||
11144 | ||
11145 | ||
11146 | ||
11147 | ||
11148 | ||
11149 | ||
11150 | ||
11151 | ||
11152 | ||
11153 | ||
11154 | ||
11155 | ||
11156 | ||
11157 | ||
11158 | ||
11159 | ||
11160 | ||
11161 | ||
11162 | ||
11163 | ||
11164 | ||
11165 | ||
11166 | ||
11167 | ||
11168 | ||
11169 | ||
11170 | ||
11171 | ||
11172 | ||
11173 | ||
11174 | ||
11175 | ||
11176 | ||
11177 | ||
11178 | ||
11179 | ||
11180 | ||
11181 | ||
11182 | ||
11183 | ||
11184 | ||
11185 | ||
11186 | ||
11187 | ||
11188 | ||
11189 | ||
11190 | ||
11191 | ||
11192 | ||
11193 | ||
11194 | ||
11195 | ||
11196 | ||
11197 | ||
11198 | ||
11199 | ||
11200 | ||
11201 | ||
11202 | ||
11203 | ||
11204 | ||
11205 | ||
11206 | ||
11207 | ||
11208 | ||
11209 | ||
11210 | ||
11211 | ||
11212 | ||
11213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
11214 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
11215 | hardcode_action= | |
11216 | if test -n "$hardcode_libdir_flag_spec" || | |
11217 | test -n "$runpath_var" || | |
11218 | test "X$hardcode_automatic" = "Xyes" ; then | |
11219 | ||
11220 | # We can hardcode non-existent directories. | |
11221 | if test "$hardcode_direct" != no && | |
11222 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11223 | # have to relink, otherwise we might link with an installed library | |
11224 | # when we should be linking with a yet-to-be-installed one | |
11225 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
11226 | test "$hardcode_minus_L" != no; then | |
11227 | # Linking always hardcodes the temporary library directory. | |
11228 | hardcode_action=relink | |
11229 | else | |
11230 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11231 | hardcode_action=immediate | |
11232 | fi | |
11233 | else | |
11234 | # We cannot hardcode anything, or else we can only hardcode existing | |
11235 | # directories. | |
11236 | hardcode_action=unsupported | |
11237 | fi | |
11238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
11239 | $as_echo "$hardcode_action" >&6; } | |
11240 | ||
11241 | if test "$hardcode_action" = relink || | |
11242 | test "$inherit_rpath" = yes; then | |
11243 | # Fast installation is not supported | |
11244 | enable_fast_install=no | |
11245 | elif test "$shlibpath_overrides_runpath" = yes || | |
11246 | test "$enable_shared" = no; then | |
11247 | # Fast installation is not necessary | |
11248 | enable_fast_install=needless | |
11249 | fi | |
11250 | ||
11251 | ||
11252 | ||
11253 | ||
11254 | ||
11255 | ||
11256 | if test "x$enable_dlopen" != xyes; then | |
11257 | enable_dlopen=unknown | |
11258 | enable_dlopen_self=unknown | |
11259 | enable_dlopen_self_static=unknown | |
11260 | else | |
11261 | lt_cv_dlopen=no | |
11262 | lt_cv_dlopen_libs= | |
11263 | ||
11264 | case $host_os in | |
11265 | beos*) | |
11266 | lt_cv_dlopen="load_add_on" | |
11267 | lt_cv_dlopen_libs= | |
11268 | lt_cv_dlopen_self=yes | |
11269 | ;; | |
11270 | ||
11271 | mingw* | pw32* | cegcc*) | |
11272 | lt_cv_dlopen="LoadLibrary" | |
11273 | lt_cv_dlopen_libs= | |
11274 | ;; | |
11275 | ||
11276 | cygwin*) | |
11277 | lt_cv_dlopen="dlopen" | |
11278 | lt_cv_dlopen_libs= | |
11279 | ;; | |
11280 | ||
11281 | darwin*) | |
11282 | # if libdl is installed we need to link against it | |
11283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11284 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11285 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
11286 | $as_echo_n "(cached) " >&6 | |
11287 | else | |
11288 | ac_check_lib_save_LIBS=$LIBS | |
11289 | LIBS="-ldl $LIBS" | |
11290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11291 | /* end confdefs.h. */ | |
11292 | ||
11293 | /* Override any GCC internal prototype to avoid an error. | |
11294 | Use char because int might match the return type of a GCC | |
11295 | builtin and then its argument prototype would still apply. */ | |
11296 | #ifdef __cplusplus | |
11297 | extern "C" | |
11298 | #endif | |
11299 | char dlopen (); | |
11300 | int | |
11301 | main () | |
11302 | { | |
11303 | return dlopen (); | |
11304 | ; | |
11305 | return 0; | |
11306 | } | |
11307 | _ACEOF | |
11308 | if ac_fn_c_try_link "$LINENO"; then : | |
11309 | ac_cv_lib_dl_dlopen=yes | |
11310 | else | |
11311 | ac_cv_lib_dl_dlopen=no | |
11312 | fi | |
11313 | rm -f core conftest.err conftest.$ac_objext \ | |
11314 | conftest$ac_exeext conftest.$ac_ext | |
11315 | LIBS=$ac_check_lib_save_LIBS | |
11316 | fi | |
11317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11318 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11319 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
11320 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
11321 | else | |
11322 | ||
11323 | lt_cv_dlopen="dyld" | |
11324 | lt_cv_dlopen_libs= | |
11325 | lt_cv_dlopen_self=yes | |
11326 | ||
11327 | fi | |
11328 | ||
11329 | ;; | |
11330 | ||
11331 | *) | |
11332 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
11333 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
11334 | lt_cv_dlopen="shl_load" | |
11335 | else | |
11336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
11337 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
11338 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
11339 | $as_echo_n "(cached) " >&6 | |
11340 | else | |
11341 | ac_check_lib_save_LIBS=$LIBS | |
11342 | LIBS="-ldld $LIBS" | |
11343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11344 | /* end confdefs.h. */ | |
11345 | ||
11346 | /* Override any GCC internal prototype to avoid an error. | |
11347 | Use char because int might match the return type of a GCC | |
11348 | builtin and then its argument prototype would still apply. */ | |
11349 | #ifdef __cplusplus | |
11350 | extern "C" | |
11351 | #endif | |
11352 | char shl_load (); | |
11353 | int | |
11354 | main () | |
11355 | { | |
11356 | return shl_load (); | |
11357 | ; | |
11358 | return 0; | |
11359 | } | |
11360 | _ACEOF | |
11361 | if ac_fn_c_try_link "$LINENO"; then : | |
11362 | ac_cv_lib_dld_shl_load=yes | |
11363 | else | |
11364 | ac_cv_lib_dld_shl_load=no | |
11365 | fi | |
11366 | rm -f core conftest.err conftest.$ac_objext \ | |
11367 | conftest$ac_exeext conftest.$ac_ext | |
11368 | LIBS=$ac_check_lib_save_LIBS | |
11369 | fi | |
11370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
11371 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
11372 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
11373 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
11374 | else | |
11375 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
11376 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
11377 | lt_cv_dlopen="dlopen" | |
11378 | else | |
11379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11380 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11381 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
11382 | $as_echo_n "(cached) " >&6 | |
11383 | else | |
11384 | ac_check_lib_save_LIBS=$LIBS | |
11385 | LIBS="-ldl $LIBS" | |
11386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11387 | /* end confdefs.h. */ | |
11388 | ||
11389 | /* Override any GCC internal prototype to avoid an error. | |
11390 | Use char because int might match the return type of a GCC | |
11391 | builtin and then its argument prototype would still apply. */ | |
11392 | #ifdef __cplusplus | |
11393 | extern "C" | |
11394 | #endif | |
11395 | char dlopen (); | |
11396 | int | |
11397 | main () | |
11398 | { | |
11399 | return dlopen (); | |
11400 | ; | |
11401 | return 0; | |
11402 | } | |
11403 | _ACEOF | |
11404 | if ac_fn_c_try_link "$LINENO"; then : | |
11405 | ac_cv_lib_dl_dlopen=yes | |
11406 | else | |
11407 | ac_cv_lib_dl_dlopen=no | |
11408 | fi | |
11409 | rm -f core conftest.err conftest.$ac_objext \ | |
11410 | conftest$ac_exeext conftest.$ac_ext | |
11411 | LIBS=$ac_check_lib_save_LIBS | |
11412 | fi | |
11413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11414 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11415 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
11416 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
11417 | else | |
11418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
11419 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
11420 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
11421 | $as_echo_n "(cached) " >&6 | |
11422 | else | |
11423 | ac_check_lib_save_LIBS=$LIBS | |
11424 | LIBS="-lsvld $LIBS" | |
11425 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11426 | /* end confdefs.h. */ | |
11427 | ||
11428 | /* Override any GCC internal prototype to avoid an error. | |
11429 | Use char because int might match the return type of a GCC | |
11430 | builtin and then its argument prototype would still apply. */ | |
11431 | #ifdef __cplusplus | |
11432 | extern "C" | |
11433 | #endif | |
11434 | char dlopen (); | |
11435 | int | |
11436 | main () | |
11437 | { | |
11438 | return dlopen (); | |
11439 | ; | |
11440 | return 0; | |
11441 | } | |
11442 | _ACEOF | |
11443 | if ac_fn_c_try_link "$LINENO"; then : | |
11444 | ac_cv_lib_svld_dlopen=yes | |
11445 | else | |
11446 | ac_cv_lib_svld_dlopen=no | |
11447 | fi | |
11448 | rm -f core conftest.err conftest.$ac_objext \ | |
11449 | conftest$ac_exeext conftest.$ac_ext | |
11450 | LIBS=$ac_check_lib_save_LIBS | |
11451 | fi | |
11452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
11453 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
11454 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
11455 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
11456 | else | |
11457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
11458 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
11459 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
11460 | $as_echo_n "(cached) " >&6 | |
11461 | else | |
11462 | ac_check_lib_save_LIBS=$LIBS | |
11463 | LIBS="-ldld $LIBS" | |
11464 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11465 | /* end confdefs.h. */ | |
11466 | ||
11467 | /* Override any GCC internal prototype to avoid an error. | |
11468 | Use char because int might match the return type of a GCC | |
11469 | builtin and then its argument prototype would still apply. */ | |
11470 | #ifdef __cplusplus | |
11471 | extern "C" | |
11472 | #endif | |
11473 | char dld_link (); | |
11474 | int | |
11475 | main () | |
11476 | { | |
11477 | return dld_link (); | |
11478 | ; | |
11479 | return 0; | |
11480 | } | |
11481 | _ACEOF | |
11482 | if ac_fn_c_try_link "$LINENO"; then : | |
11483 | ac_cv_lib_dld_dld_link=yes | |
11484 | else | |
11485 | ac_cv_lib_dld_dld_link=no | |
11486 | fi | |
11487 | rm -f core conftest.err conftest.$ac_objext \ | |
11488 | conftest$ac_exeext conftest.$ac_ext | |
11489 | LIBS=$ac_check_lib_save_LIBS | |
11490 | fi | |
11491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
11492 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
11493 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
11494 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
11495 | fi | |
11496 | ||
11497 | ||
11498 | fi | |
11499 | ||
11500 | ||
11501 | fi | |
11502 | ||
11503 | ||
11504 | fi | |
11505 | ||
11506 | ||
11507 | fi | |
11508 | ||
11509 | ||
11510 | fi | |
11511 | ||
11512 | ;; | |
11513 | esac | |
11514 | ||
11515 | if test "x$lt_cv_dlopen" != xno; then | |
11516 | enable_dlopen=yes | |
11517 | else | |
11518 | enable_dlopen=no | |
11519 | fi | |
11520 | ||
11521 | case $lt_cv_dlopen in | |
11522 | dlopen) | |
11523 | save_CPPFLAGS="$CPPFLAGS" | |
11524 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11525 | ||
11526 | save_LDFLAGS="$LDFLAGS" | |
11527 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11528 | ||
11529 | save_LIBS="$LIBS" | |
11530 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
11531 | ||
11532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
11533 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
11534 | if ${lt_cv_dlopen_self+:} false; then : | |
11535 | $as_echo_n "(cached) " >&6 | |
11536 | else | |
11537 | if test "$cross_compiling" = yes; then : | |
11538 | lt_cv_dlopen_self=cross | |
11539 | else | |
11540 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11541 | lt_status=$lt_dlunknown | |
11542 | cat > conftest.$ac_ext <<_LT_EOF | |
caf606c9 | 11543 | #line 11543 "configure" |
63a4b106 AB |
11544 | #include "confdefs.h" |
11545 | ||
11546 | #if HAVE_DLFCN_H | |
11547 | #include <dlfcn.h> | |
11548 | #endif | |
11549 | ||
11550 | #include <stdio.h> | |
11551 | ||
11552 | #ifdef RTLD_GLOBAL | |
11553 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11554 | #else | |
11555 | # ifdef DL_GLOBAL | |
11556 | # define LT_DLGLOBAL DL_GLOBAL | |
11557 | # else | |
11558 | # define LT_DLGLOBAL 0 | |
11559 | # endif | |
11560 | #endif | |
11561 | ||
11562 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11563 | find out it does not work in some platform. */ | |
11564 | #ifndef LT_DLLAZY_OR_NOW | |
11565 | # ifdef RTLD_LAZY | |
11566 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11567 | # else | |
11568 | # ifdef DL_LAZY | |
11569 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11570 | # else | |
11571 | # ifdef RTLD_NOW | |
11572 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11573 | # else | |
11574 | # ifdef DL_NOW | |
11575 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11576 | # else | |
11577 | # define LT_DLLAZY_OR_NOW 0 | |
11578 | # endif | |
11579 | # endif | |
11580 | # endif | |
11581 | # endif | |
11582 | #endif | |
11583 | ||
11584 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
11585 | correspondingly for the symbols needed. */ | |
11586 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11587 | void fnord () __attribute__((visibility("default"))); | |
11588 | #endif | |
11589 | ||
11590 | void fnord () { int i=42; } | |
11591 | int main () | |
11592 | { | |
11593 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11594 | int status = $lt_dlunknown; | |
11595 | ||
11596 | if (self) | |
11597 | { | |
11598 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11599 | else | |
11600 | { | |
11601 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11602 | else puts (dlerror ()); | |
11603 | } | |
11604 | /* dlclose (self); */ | |
11605 | } | |
11606 | else | |
11607 | puts (dlerror ()); | |
11608 | ||
11609 | return status; | |
11610 | } | |
11611 | _LT_EOF | |
11612 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11613 | (eval $ac_link) 2>&5 | |
11614 | ac_status=$? | |
11615 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11616 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11617 | (./conftest; exit; ) >&5 2>/dev/null | |
11618 | lt_status=$? | |
11619 | case x$lt_status in | |
11620 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11621 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11622 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11623 | esac | |
11624 | else : | |
11625 | # compilation failed | |
11626 | lt_cv_dlopen_self=no | |
11627 | fi | |
11628 | fi | |
11629 | rm -fr conftest* | |
11630 | ||
11631 | ||
11632 | fi | |
11633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
11634 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
11635 | ||
11636 | if test "x$lt_cv_dlopen_self" = xyes; then | |
11637 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
11638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
11639 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
11640 | if ${lt_cv_dlopen_self_static+:} false; then : | |
11641 | $as_echo_n "(cached) " >&6 | |
11642 | else | |
11643 | if test "$cross_compiling" = yes; then : | |
11644 | lt_cv_dlopen_self_static=cross | |
11645 | else | |
11646 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11647 | lt_status=$lt_dlunknown | |
11648 | cat > conftest.$ac_ext <<_LT_EOF | |
caf606c9 | 11649 | #line 11649 "configure" |
63a4b106 AB |
11650 | #include "confdefs.h" |
11651 | ||
11652 | #if HAVE_DLFCN_H | |
11653 | #include <dlfcn.h> | |
11654 | #endif | |
11655 | ||
11656 | #include <stdio.h> | |
11657 | ||
11658 | #ifdef RTLD_GLOBAL | |
11659 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11660 | #else | |
11661 | # ifdef DL_GLOBAL | |
11662 | # define LT_DLGLOBAL DL_GLOBAL | |
11663 | # else | |
11664 | # define LT_DLGLOBAL 0 | |
11665 | # endif | |
11666 | #endif | |
11667 | ||
11668 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11669 | find out it does not work in some platform. */ | |
11670 | #ifndef LT_DLLAZY_OR_NOW | |
11671 | # ifdef RTLD_LAZY | |
11672 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11673 | # else | |
11674 | # ifdef DL_LAZY | |
11675 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11676 | # else | |
11677 | # ifdef RTLD_NOW | |
11678 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11679 | # else | |
11680 | # ifdef DL_NOW | |
11681 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11682 | # else | |
11683 | # define LT_DLLAZY_OR_NOW 0 | |
11684 | # endif | |
11685 | # endif | |
11686 | # endif | |
11687 | # endif | |
11688 | #endif | |
11689 | ||
11690 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
11691 | correspondingly for the symbols needed. */ | |
11692 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11693 | void fnord () __attribute__((visibility("default"))); | |
11694 | #endif | |
11695 | ||
11696 | void fnord () { int i=42; } | |
11697 | int main () | |
11698 | { | |
11699 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11700 | int status = $lt_dlunknown; | |
11701 | ||
11702 | if (self) | |
11703 | { | |
11704 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11705 | else | |
11706 | { | |
11707 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11708 | else puts (dlerror ()); | |
11709 | } | |
11710 | /* dlclose (self); */ | |
11711 | } | |
11712 | else | |
11713 | puts (dlerror ()); | |
11714 | ||
11715 | return status; | |
11716 | } | |
11717 | _LT_EOF | |
11718 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11719 | (eval $ac_link) 2>&5 | |
11720 | ac_status=$? | |
11721 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11722 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11723 | (./conftest; exit; ) >&5 2>/dev/null | |
11724 | lt_status=$? | |
11725 | case x$lt_status in | |
11726 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11727 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11728 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11729 | esac | |
11730 | else : | |
11731 | # compilation failed | |
11732 | lt_cv_dlopen_self_static=no | |
11733 | fi | |
11734 | fi | |
11735 | rm -fr conftest* | |
11736 | ||
11737 | ||
11738 | fi | |
11739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
11740 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
11741 | fi | |
11742 | ||
11743 | CPPFLAGS="$save_CPPFLAGS" | |
11744 | LDFLAGS="$save_LDFLAGS" | |
11745 | LIBS="$save_LIBS" | |
11746 | ;; | |
11747 | esac | |
11748 | ||
11749 | case $lt_cv_dlopen_self in | |
11750 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11751 | *) enable_dlopen_self=unknown ;; | |
11752 | esac | |
11753 | ||
11754 | case $lt_cv_dlopen_self_static in | |
11755 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11756 | *) enable_dlopen_self_static=unknown ;; | |
11757 | esac | |
11758 | fi | |
11759 | ||
11760 | ||
11761 | ||
11762 | ||
11763 | ||
11764 | ||
11765 | ||
11766 | ||
11767 | ||
11768 | ||
11769 | ||
11770 | ||
11771 | ||
11772 | ||
11773 | ||
11774 | ||
11775 | ||
11776 | striplib= | |
11777 | old_striplib= | |
11778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
11779 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
11780 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
11781 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11782 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
11783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11784 | $as_echo "yes" >&6; } | |
11785 | else | |
11786 | # FIXME - insert some real tests, host_os isn't really good enough | |
11787 | case $host_os in | |
11788 | darwin*) | |
11789 | if test -n "$STRIP" ; then | |
11790 | striplib="$STRIP -x" | |
11791 | old_striplib="$STRIP -S" | |
11792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11793 | $as_echo "yes" >&6; } | |
11794 | else | |
11795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11796 | $as_echo "no" >&6; } | |
11797 | fi | |
11798 | ;; | |
11799 | *) | |
11800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11801 | $as_echo "no" >&6; } | |
11802 | ;; | |
11803 | esac | |
11804 | fi | |
11805 | ||
11806 | ||
11807 | ||
11808 | ||
11809 | ||
11810 | ||
11811 | ||
11812 | ||
11813 | ||
11814 | ||
11815 | ||
11816 | ||
11817 | # Report which library types will actually be built | |
11818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
11819 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
11821 | $as_echo "$can_build_shared" >&6; } | |
11822 | ||
11823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
11824 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
11825 | test "$can_build_shared" = "no" && enable_shared=no | |
11826 | ||
11827 | # On AIX, shared libraries and static libraries use the same namespace, and | |
11828 | # are all built from PIC. | |
11829 | case $host_os in | |
11830 | aix3*) | |
11831 | test "$enable_shared" = yes && enable_static=no | |
11832 | if test -n "$RANLIB"; then | |
11833 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11834 | postinstall_cmds='$RANLIB $lib' | |
11835 | fi | |
11836 | ;; | |
11837 | ||
11838 | aix[4-9]*) | |
11839 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
11840 | test "$enable_shared" = yes && enable_static=no | |
11841 | fi | |
11842 | ;; | |
11843 | esac | |
11844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
11845 | $as_echo "$enable_shared" >&6; } | |
11846 | ||
11847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
11848 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
11849 | # Make sure either enable_shared or enable_static is yes. | |
11850 | test "$enable_shared" = yes || enable_static=yes | |
11851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
11852 | $as_echo "$enable_static" >&6; } | |
11853 | ||
11854 | ||
11855 | ||
11856 | ||
11857 | fi | |
11858 | ac_ext=c | |
11859 | ac_cpp='$CPP $CPPFLAGS' | |
11860 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11861 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11862 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11863 | ||
11864 | CC="$lt_save_CC" | |
11865 | ||
11866 | ||
11867 | ||
11868 | ||
11869 | ||
11870 | ||
11871 | ||
11872 | ||
11873 | ||
11874 | ||
11875 | ||
11876 | ||
11877 | ||
11878 | ac_config_commands="$ac_config_commands libtool" | |
11879 | ||
11880 | ||
11881 | ||
11882 | ||
11883 | # Only expand once: | |
11884 | ||
11885 | ||
11886 | ||
11887 | ||
11888 | # Check whether --enable-largefile was given. | |
11889 | if test "${enable_largefile+set}" = set; then : | |
11890 | enableval=$enable_largefile; | |
11891 | fi | |
11892 | ||
11893 | if test "$enable_largefile" != no; then | |
11894 | ||
11895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | |
11896 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
11897 | if ${ac_cv_sys_largefile_CC+:} false; then : | |
11898 | $as_echo_n "(cached) " >&6 | |
11899 | else | |
11900 | ac_cv_sys_largefile_CC=no | |
11901 | if test "$GCC" != yes; then | |
11902 | ac_save_CC=$CC | |
11903 | while :; do | |
11904 | # IRIX 6.2 and later do not support large files by default, | |
11905 | # so use the C compiler's -n32 option if that helps. | |
11906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11907 | /* end confdefs.h. */ | |
11908 | #include <sys/types.h> | |
11909 | /* Check that off_t can represent 2**63 - 1 correctly. | |
11910 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
11911 | since some C++ compilers masquerading as C compilers | |
11912 | incorrectly reject 9223372036854775807. */ | |
11913 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
11914 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
11915 | && LARGE_OFF_T % 2147483647 == 1) | |
11916 | ? 1 : -1]; | |
11917 | int | |
11918 | main () | |
11919 | { | |
11920 | ||
11921 | ; | |
11922 | return 0; | |
11923 | } | |
11924 | _ACEOF | |
11925 | if ac_fn_c_try_compile "$LINENO"; then : | |
11926 | break | |
11927 | fi | |
11928 | rm -f core conftest.err conftest.$ac_objext | |
11929 | CC="$CC -n32" | |
11930 | if ac_fn_c_try_compile "$LINENO"; then : | |
11931 | ac_cv_sys_largefile_CC=' -n32'; break | |
11932 | fi | |
11933 | rm -f core conftest.err conftest.$ac_objext | |
11934 | break | |
11935 | done | |
11936 | CC=$ac_save_CC | |
11937 | rm -f conftest.$ac_ext | |
11938 | fi | |
11939 | fi | |
11940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
11941 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
11942 | if test "$ac_cv_sys_largefile_CC" != no; then | |
11943 | CC=$CC$ac_cv_sys_largefile_CC | |
11944 | fi | |
11945 | ||
11946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
11947 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
11948 | if ${ac_cv_sys_file_offset_bits+:} false; then : | |
11949 | $as_echo_n "(cached) " >&6 | |
11950 | else | |
11951 | while :; do | |
11952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11953 | /* end confdefs.h. */ | |
11954 | #include <sys/types.h> | |
11955 | /* Check that off_t can represent 2**63 - 1 correctly. | |
11956 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
11957 | since some C++ compilers masquerading as C compilers | |
11958 | incorrectly reject 9223372036854775807. */ | |
11959 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
11960 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
11961 | && LARGE_OFF_T % 2147483647 == 1) | |
11962 | ? 1 : -1]; | |
11963 | int | |
11964 | main () | |
11965 | { | |
11966 | ||
11967 | ; | |
11968 | return 0; | |
11969 | } | |
11970 | _ACEOF | |
11971 | if ac_fn_c_try_compile "$LINENO"; then : | |
11972 | ac_cv_sys_file_offset_bits=no; break | |
11973 | fi | |
11974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11975 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11976 | /* end confdefs.h. */ | |
11977 | #define _FILE_OFFSET_BITS 64 | |
11978 | #include <sys/types.h> | |
11979 | /* Check that off_t can represent 2**63 - 1 correctly. | |
11980 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
11981 | since some C++ compilers masquerading as C compilers | |
11982 | incorrectly reject 9223372036854775807. */ | |
11983 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
11984 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
11985 | && LARGE_OFF_T % 2147483647 == 1) | |
11986 | ? 1 : -1]; | |
11987 | int | |
11988 | main () | |
11989 | { | |
11990 | ||
11991 | ; | |
11992 | return 0; | |
11993 | } | |
11994 | _ACEOF | |
11995 | if ac_fn_c_try_compile "$LINENO"; then : | |
11996 | ac_cv_sys_file_offset_bits=64; break | |
11997 | fi | |
11998 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11999 | ac_cv_sys_file_offset_bits=unknown | |
12000 | break | |
12001 | done | |
12002 | fi | |
12003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | |
12004 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
12005 | case $ac_cv_sys_file_offset_bits in #( | |
12006 | no | unknown) ;; | |
12007 | *) | |
12008 | cat >>confdefs.h <<_ACEOF | |
12009 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
12010 | _ACEOF | |
12011 | ;; | |
12012 | esac | |
12013 | rm -rf conftest* | |
12014 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
12015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
12016 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
12017 | if ${ac_cv_sys_large_files+:} false; then : | |
12018 | $as_echo_n "(cached) " >&6 | |
12019 | else | |
12020 | while :; do | |
12021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12022 | /* end confdefs.h. */ | |
12023 | #include <sys/types.h> | |
12024 | /* Check that off_t can represent 2**63 - 1 correctly. | |
12025 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
12026 | since some C++ compilers masquerading as C compilers | |
12027 | incorrectly reject 9223372036854775807. */ | |
12028 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
12029 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
12030 | && LARGE_OFF_T % 2147483647 == 1) | |
12031 | ? 1 : -1]; | |
12032 | int | |
12033 | main () | |
12034 | { | |
12035 | ||
12036 | ; | |
12037 | return 0; | |
12038 | } | |
12039 | _ACEOF | |
12040 | if ac_fn_c_try_compile "$LINENO"; then : | |
12041 | ac_cv_sys_large_files=no; break | |
12042 | fi | |
12043 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12045 | /* end confdefs.h. */ | |
12046 | #define _LARGE_FILES 1 | |
12047 | #include <sys/types.h> | |
12048 | /* Check that off_t can represent 2**63 - 1 correctly. | |
12049 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
12050 | since some C++ compilers masquerading as C compilers | |
12051 | incorrectly reject 9223372036854775807. */ | |
12052 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
12053 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
12054 | && LARGE_OFF_T % 2147483647 == 1) | |
12055 | ? 1 : -1]; | |
12056 | int | |
12057 | main () | |
12058 | { | |
12059 | ||
12060 | ; | |
12061 | return 0; | |
12062 | } | |
12063 | _ACEOF | |
12064 | if ac_fn_c_try_compile "$LINENO"; then : | |
12065 | ac_cv_sys_large_files=1; break | |
12066 | fi | |
12067 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12068 | ac_cv_sys_large_files=unknown | |
12069 | break | |
12070 | done | |
12071 | fi | |
12072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | |
12073 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
12074 | case $ac_cv_sys_large_files in #( | |
12075 | no | unknown) ;; | |
12076 | *) | |
12077 | cat >>confdefs.h <<_ACEOF | |
12078 | #define _LARGE_FILES $ac_cv_sys_large_files | |
12079 | _ACEOF | |
12080 | ;; | |
12081 | esac | |
12082 | rm -rf conftest* | |
12083 | fi | |
12084 | ||
12085 | ||
12086 | fi | |
12087 | ||
12088 | ||
12089 | backtrace_supported=yes | |
12090 | ||
12091 | if test -n "${with_target_subdir}"; then | |
12092 | # We are compiling a GCC library. We can assume that the unwind | |
12093 | # library exists. | |
12094 | BACKTRACE_FILE="backtrace.lo simple.lo" | |
12095 | else | |
12096 | ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default" | |
12097 | if test "x$ac_cv_header_unwind_h" = xyes; then : | |
12098 | ac_fn_c_check_func "$LINENO" "_Unwind_Backtrace" "ac_cv_func__Unwind_Backtrace" | |
12099 | if test "x$ac_cv_func__Unwind_Backtrace" = xyes; then : | |
12100 | BACKTRACE_FILE="backtrace.lo simple.lo" | |
12101 | else | |
12102 | BACKTRACE_FILE="nounwind.lo" | |
12103 | backtrace_supported=no | |
12104 | fi | |
12105 | ||
12106 | else | |
12107 | BACKTRACE_FILE="nounwind.lo" | |
12108 | backtrace_supported=no | |
12109 | fi | |
12110 | ||
12111 | ||
12112 | fi | |
12113 | ||
12114 | ||
12115 | EXTRA_FLAGS= | |
12116 | if test -n "${with_target_subdir}"; then | |
12117 | EXTRA_FLAGS="-funwind-tables -frandom-seed=\$@" | |
12118 | else | |
12119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -funwind-tables option" >&5 | |
12120 | $as_echo_n "checking for -funwind-tables option... " >&6; } | |
12121 | if ${libbacktrace_cv_c_unwind_tables+:} false; then : | |
12122 | $as_echo_n "(cached) " >&6 | |
12123 | else | |
12124 | CFLAGS_hold="$CFLAGS" | |
12125 | CFLAGS="$CFLAGS -funwind-tables" | |
12126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12127 | /* end confdefs.h. */ | |
12128 | static int f() { return 0; } | |
12129 | int | |
12130 | main () | |
12131 | { | |
12132 | return f(); | |
12133 | ; | |
12134 | return 0; | |
12135 | } | |
12136 | _ACEOF | |
12137 | if ac_fn_c_try_compile "$LINENO"; then : | |
12138 | libbacktrace_cv_c_unwind_tables=yes | |
12139 | else | |
12140 | libbacktrace_cv_c_unwind_tables=no | |
12141 | fi | |
12142 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12143 | CFLAGS="$CFLAGS_hold" | |
12144 | fi | |
12145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_unwind_tables" >&5 | |
12146 | $as_echo "$libbacktrace_cv_c_unwind_tables" >&6; } | |
12147 | if test "$libbacktrace_cv_c_unwind_tables" = "yes"; then | |
12148 | EXTRA_FLAGS=-funwind-tables | |
12149 | fi | |
12150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed=string option" >&5 | |
12151 | $as_echo_n "checking for -frandom-seed=string option... " >&6; } | |
12152 | if ${libbacktrace_cv_c_random_seed_string+:} false; then : | |
12153 | $as_echo_n "(cached) " >&6 | |
12154 | else | |
12155 | CFLAGS_hold="$CFLAGS" | |
12156 | CFLAGS="$CFLAGS -frandom-seed=conftest.lo" | |
12157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12158 | /* end confdefs.h. */ | |
12159 | ||
12160 | int | |
12161 | main () | |
12162 | { | |
12163 | return 0; | |
12164 | ; | |
12165 | return 0; | |
12166 | } | |
12167 | _ACEOF | |
12168 | if ac_fn_c_try_compile "$LINENO"; then : | |
12169 | libbacktrace_cv_c_random_seed_string=yes | |
12170 | else | |
12171 | libbacktrace_cv_c_random_seed_string=no | |
12172 | fi | |
12173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12174 | CFLAGS="$CFLAGS_hold" | |
12175 | fi | |
12176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_random_seed_string" >&5 | |
12177 | $as_echo "$libbacktrace_cv_c_random_seed_string" >&6; } | |
12178 | if test "$libbacktrace_cv_c_random_seed_string" = "yes"; then | |
12179 | EXTRA_FLAGS="$EXTRA_FLAGS -frandom-seed=\$@" | |
12180 | fi | |
12181 | fi | |
12182 | ||
12183 | if test -n "${with_target_subdir}"; then | |
12184 | # Add CET specific flags is Intel CET is enabled. | |
12185 | # Check whether --enable-cet was given. | |
12186 | if test "${enable_cet+set}" = set; then : | |
12187 | enableval=$enable_cet; | |
12188 | case "$enableval" in | |
12189 | yes|no|auto) ;; | |
12190 | *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;; | |
12191 | esac | |
12192 | ||
12193 | else | |
12194 | enable_cet=auto | |
12195 | fi | |
12196 | ||
12197 | ||
12198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5 | |
12199 | $as_echo_n "checking for CET support... " >&6; } | |
12200 | ||
12201 | # NB: Avoid nested save_CFLAGS and save_LDFLAGS. | |
12202 | case "$host" in | |
12203 | i[34567]86-*-linux* | x86_64-*-linux*) | |
12204 | case "$enable_cet" in | |
12205 | auto) | |
12206 | # Check if target supports multi-byte NOPs | |
12207 | # and if compiler and assembler support CET insn. | |
12208 | cet_save_CFLAGS="$CFLAGS" | |
12209 | CFLAGS="$CFLAGS -fcf-protection" | |
12210 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12211 | /* end confdefs.h. */ | |
12212 | ||
12213 | int | |
12214 | main () | |
12215 | { | |
12216 | ||
12217 | #if !defined(__SSE2__) | |
12218 | #error target does not support multi-byte NOPs | |
12219 | #else | |
12220 | asm ("setssbsy"); | |
12221 | #endif | |
12222 | ||
12223 | ; | |
12224 | return 0; | |
12225 | } | |
12226 | _ACEOF | |
12227 | if ac_fn_c_try_compile "$LINENO"; then : | |
12228 | enable_cet=yes | |
12229 | else | |
12230 | enable_cet=no | |
12231 | fi | |
12232 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12233 | CFLAGS="$cet_save_CFLAGS" | |
12234 | ;; | |
12235 | yes) | |
12236 | # Check if assembler supports CET. | |
12237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12238 | /* end confdefs.h. */ | |
12239 | ||
12240 | int | |
12241 | main () | |
12242 | { | |
12243 | asm ("setssbsy"); | |
12244 | ; | |
12245 | return 0; | |
12246 | } | |
12247 | _ACEOF | |
12248 | if ac_fn_c_try_compile "$LINENO"; then : | |
12249 | ||
12250 | else | |
12251 | as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5 | |
12252 | fi | |
12253 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12254 | ;; | |
12255 | esac | |
12256 | ;; | |
12257 | *) | |
12258 | enable_cet=no | |
12259 | ;; | |
12260 | esac | |
12261 | if test x$enable_cet = xyes; then | |
12262 | CET_FLAGS="-fcf-protection -mshstk" | |
12263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12264 | $as_echo "yes" >&6; } | |
12265 | else | |
12266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12267 | $as_echo "no" >&6; } | |
12268 | fi | |
12269 | ||
12270 | EXTRA_FLAGS="$EXTRA_FLAGS $CET_FLAGS" | |
12271 | fi | |
12272 | ||
12273 | ||
12274 | ac_ext=c | |
12275 | ac_cpp='$CPP $CPPFLAGS' | |
12276 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12277 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12278 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12279 | ||
12280 | WARN_FLAGS= | |
12281 | save_CFLAGS="$CFLAGS" | |
12282 | for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \ | |
12283 | -Wmissing-prototypes -Wold-style-definition \ | |
12284 | -Wmissing-format-attribute -Wcast-qual; do | |
12285 | # Do the check with the no- prefix removed since gcc silently | |
12286 | # accepts any -Wno-* option on purpose | |
12287 | case $real_option in | |
12288 | -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; | |
12289 | *) option=$real_option ;; | |
12290 | esac | |
12291 | as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` | |
12292 | ||
12293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 | |
12294 | $as_echo_n "checking whether $CC supports $option... " >&6; } | |
12295 | if eval \${$as_acx_Woption+:} false; then : | |
12296 | $as_echo_n "(cached) " >&6 | |
12297 | else | |
12298 | CFLAGS="$option" | |
12299 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12300 | /* end confdefs.h. */ | |
12301 | ||
12302 | int | |
12303 | main () | |
12304 | { | |
12305 | ||
12306 | ; | |
12307 | return 0; | |
12308 | } | |
12309 | _ACEOF | |
12310 | if ac_fn_c_try_compile "$LINENO"; then : | |
12311 | eval "$as_acx_Woption=yes" | |
12312 | else | |
12313 | eval "$as_acx_Woption=no" | |
12314 | fi | |
12315 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12316 | ||
12317 | fi | |
12318 | eval ac_res=\$$as_acx_Woption | |
12319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
12320 | $as_echo "$ac_res" >&6; } | |
12321 | if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : | |
12322 | WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option" | |
12323 | fi | |
12324 | done | |
12325 | CFLAGS="$save_CFLAGS" | |
12326 | ac_ext=c | |
12327 | ac_cpp='$CPP $CPPFLAGS' | |
12328 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12329 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12330 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12331 | ||
12332 | ||
12333 | ||
12334 | if test -n "${with_target_subdir}"; then | |
12335 | WARN_FLAGS="$WARN_FLAGS -Werror" | |
12336 | fi | |
12337 | ||
12338 | ||
12339 | ||
12340 | if test -n "${with_target_subdir}"; then | |
12341 | ||
12342 | ||
12343 | # Check whether --with-system-libunwind was given. | |
12344 | if test "${with_system_libunwind+set}" = set; then : | |
12345 | withval=$with_system_libunwind; | |
12346 | fi | |
12347 | ||
12348 | # If system-libunwind was not specifically set, pick a default setting. | |
12349 | if test x$with_system_libunwind = x; then | |
12350 | case ${target} in | |
12351 | ia64-*-hpux*) with_system_libunwind=yes ;; | |
12352 | *) with_system_libunwind=no ;; | |
12353 | esac | |
12354 | fi | |
12355 | # Based on system-libunwind and target, do we have ipinfo? | |
12356 | if test x$with_system_libunwind = xyes; then | |
12357 | case ${target} in | |
12358 | ia64-*-*) have_unwind_getipinfo=no ;; | |
12359 | *) have_unwind_getipinfo=yes ;; | |
12360 | esac | |
12361 | else | |
12362 | # Darwin before version 9 does not have _Unwind_GetIPInfo. | |
12363 | ||
12364 | case ${target} in | |
12365 | *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;; | |
12366 | *) have_unwind_getipinfo=yes ;; | |
12367 | esac | |
12368 | ||
12369 | fi | |
12370 | ||
12371 | if test x$have_unwind_getipinfo = xyes; then | |
12372 | ||
12373 | $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h | |
12374 | ||
12375 | fi | |
12376 | ||
12377 | else | |
12378 | ac_save_CFFLAGS="$CFLAGS" | |
12379 | CFLAGS="$CFLAGS -Werror-implicit-function-declaration" | |
12380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_GetIPInfo" >&5 | |
12381 | $as_echo_n "checking for _Unwind_GetIPInfo... " >&6; } | |
12382 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12383 | /* end confdefs.h. */ | |
12384 | #include "unwind.h" | |
12385 | struct _Unwind_Context *context; | |
12386 | int ip_before_insn = 0; | |
12387 | int | |
12388 | main () | |
12389 | { | |
12390 | return _Unwind_GetIPInfo (context, &ip_before_insn); | |
12391 | ; | |
12392 | return 0; | |
12393 | } | |
12394 | _ACEOF | |
12395 | if ac_fn_c_try_link "$LINENO"; then : | |
12396 | have_unwind_getipinfo=yes | |
12397 | else | |
12398 | have_unwind_getipinfo=no | |
12399 | fi | |
12400 | rm -f core conftest.err conftest.$ac_objext \ | |
12401 | conftest$ac_exeext conftest.$ac_ext | |
12402 | CFLAGS="$ac_save_CFLAGS" | |
12403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_unwind_getipinfo" >&5 | |
12404 | $as_echo "$have_unwind_getipinfo" >&6; } | |
12405 | if test "$have_unwind_getipinfo" = "yes"; then | |
12406 | ||
12407 | $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h | |
12408 | ||
12409 | fi | |
12410 | fi | |
12411 | ||
12412 | # Enable --enable-host-shared. | |
12413 | # Check whether --enable-host-shared was given. | |
12414 | if test "${enable_host_shared+set}" = set; then : | |
12415 | enableval=$enable_host_shared; PIC_FLAG=-fPIC | |
12416 | else | |
12417 | PIC_FLAG= | |
12418 | fi | |
12419 | ||
12420 | ||
12421 | ||
12422 | # Enable Intel CET on Intel CET enabled host if jit is enabled. | |
12423 | # Check whether --enable-cet was given. | |
12424 | if test "${enable_cet+set}" = set; then : | |
12425 | enableval=$enable_cet; | |
12426 | case "$enableval" in | |
12427 | yes|no|auto) ;; | |
12428 | *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;; | |
12429 | esac | |
12430 | ||
12431 | else | |
12432 | enable_cet=auto | |
12433 | fi | |
12434 | ||
12435 | ||
12436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5 | |
12437 | $as_echo_n "checking for CET support... " >&6; } | |
12438 | ||
12439 | case "$host" in | |
12440 | i[34567]86-*-linux* | x86_64-*-linux*) | |
12441 | may_have_cet=yes | |
12442 | cet_save_CFLAGS="$CFLAGS" | |
12443 | CFLAGS="$CFLAGS -fcf-protection" | |
12444 | case "$enable_cet" in | |
12445 | auto) | |
12446 | # Check if target supports multi-byte NOPs | |
12447 | # and if compiler and assembler support CET. | |
12448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12449 | /* end confdefs.h. */ | |
12450 | ||
12451 | int | |
12452 | main () | |
12453 | { | |
12454 | ||
12455 | #if !defined(__SSE2__) | |
12456 | #error target does not support multi-byte NOPs | |
12457 | #else | |
12458 | asm ("setssbsy"); | |
12459 | #endif | |
12460 | ||
12461 | ; | |
12462 | return 0; | |
12463 | } | |
12464 | _ACEOF | |
12465 | if ac_fn_c_try_compile "$LINENO"; then : | |
12466 | enable_cet=yes | |
12467 | else | |
12468 | enable_cet=no | |
12469 | fi | |
12470 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12471 | ;; | |
12472 | yes) | |
12473 | # Check if compiler and assembler support CET. | |
12474 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12475 | /* end confdefs.h. */ | |
12476 | ||
12477 | int | |
12478 | main () | |
12479 | { | |
12480 | asm ("setssbsy"); | |
12481 | ; | |
12482 | return 0; | |
12483 | } | |
12484 | _ACEOF | |
12485 | if ac_fn_c_try_compile "$LINENO"; then : | |
12486 | support_cet=yes | |
12487 | else | |
12488 | support_cet=no | |
12489 | fi | |
12490 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12491 | if test $support_cet = "no"; then | |
12492 | if test x$enable_bootstrap != xno \ | |
12493 | && test -z "${with_build_subdir}" \ | |
12494 | && (test ! -f ../stage_current \ | |
12495 | || test `cat ../stage_current` != "stage1"); then | |
12496 | # Require CET support only for the final GCC build. | |
12497 | as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5 | |
12498 | else | |
12499 | # Don't enable CET without CET support for non-bootstrap | |
12500 | # build, in stage1 nor for build support. | |
12501 | enable_cet=no | |
12502 | fi | |
12503 | fi | |
12504 | ;; | |
12505 | esac | |
12506 | CFLAGS="$cet_save_CFLAGS" | |
12507 | ;; | |
12508 | *) | |
12509 | may_have_cet=no | |
12510 | enable_cet=no | |
12511 | ;; | |
12512 | esac | |
12513 | ||
12514 | cet_save_CFLAGS="$CFLAGS" | |
12515 | CFLAGS="$CFLAGS -fcf-protection=none" | |
12516 | cet_save_LDFLAGS="$LDFLAGS" | |
12517 | LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk" | |
12518 | if test x$may_have_cet = xyes; then | |
12519 | # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work. | |
12520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12521 | /* end confdefs.h. */ | |
12522 | ||
12523 | int | |
12524 | main () | |
12525 | { | |
12526 | return 0; | |
12527 | ; | |
12528 | return 0; | |
12529 | } | |
12530 | _ACEOF | |
12531 | if ac_fn_c_try_link "$LINENO"; then : | |
12532 | may_have_cet=yes | |
12533 | else | |
12534 | may_have_cet=no | |
12535 | fi | |
12536 | rm -f core conftest.err conftest.$ac_objext \ | |
12537 | conftest$ac_exeext conftest.$ac_ext | |
12538 | fi | |
12539 | ||
12540 | if test x$may_have_cet = xyes; then | |
12541 | if test x$cross_compiling = xno; then | |
12542 | if test "$cross_compiling" = yes; then : | |
12543 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12544 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12545 | as_fn_error $? "cannot run test program while cross compiling | |
12546 | See \`config.log' for more details" "$LINENO" 5; } | |
12547 | else | |
12548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12549 | /* end confdefs.h. */ | |
12550 | ||
12551 | int | |
12552 | main () | |
12553 | { | |
12554 | asm ("endbr32"); | |
12555 | return 0; | |
12556 | } | |
12557 | ||
12558 | _ACEOF | |
12559 | if ac_fn_c_try_run "$LINENO"; then : | |
12560 | have_multi_byte_nop=yes | |
12561 | else | |
12562 | have_multi_byte_nop=no | |
12563 | fi | |
12564 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
12565 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
12566 | fi | |
12567 | ||
12568 | have_cet=no | |
12569 | if test x$have_multi_byte_nop = xyes; then | |
12570 | if test "$cross_compiling" = yes; then : | |
12571 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12572 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12573 | as_fn_error $? "cannot run test program while cross compiling | |
12574 | See \`config.log' for more details" "$LINENO" 5; } | |
12575 | else | |
12576 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12577 | /* end confdefs.h. */ | |
12578 | ||
12579 | static void | |
12580 | foo (void) | |
12581 | { | |
12582 | } | |
12583 | ||
12584 | static void | |
12585 | __attribute__ ((noinline, noclone)) | |
12586 | xxx (void (*f) (void)) | |
12587 | { | |
12588 | f (); | |
12589 | } | |
12590 | ||
12591 | static void | |
12592 | __attribute__ ((noinline, noclone)) | |
12593 | bar (void) | |
12594 | { | |
12595 | xxx (foo); | |
12596 | } | |
12597 | ||
12598 | int | |
12599 | main () | |
12600 | { | |
12601 | bar (); | |
12602 | return 0; | |
12603 | } | |
12604 | ||
12605 | _ACEOF | |
12606 | if ac_fn_c_try_run "$LINENO"; then : | |
12607 | have_cet=no | |
12608 | else | |
12609 | have_cet=yes | |
12610 | fi | |
12611 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
12612 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
12613 | fi | |
12614 | ||
12615 | fi | |
12616 | if test x$enable_cet = xno -a x$have_cet = xyes; then | |
12617 | as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5 | |
12618 | fi | |
12619 | fi | |
12620 | else | |
12621 | # Enable CET in cross compiler if possible so that it will run on both | |
12622 | # CET and non-CET hosts. | |
12623 | have_cet=yes | |
12624 | fi | |
12625 | if test x$enable_cet = xyes; then | |
12626 | CET_HOST_FLAGS="-fcf-protection" | |
12627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12628 | $as_echo "yes" >&6; } | |
12629 | else | |
12630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12631 | $as_echo "no" >&6; } | |
12632 | fi | |
12633 | CFLAGS="$cet_save_CFLAGS" | |
12634 | LDFLAGS="$cet_save_LDFLAGS" | |
12635 | ||
12636 | case x$enable_languages in | |
12637 | *jit*) | |
12638 | ;; | |
12639 | *) | |
12640 | CET_HOST_FLAGS= | |
12641 | ;; | |
12642 | esac | |
12643 | ||
12644 | ||
12645 | # Test for __sync support. | |
12646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5 | |
12647 | $as_echo_n "checking __sync extensions... " >&6; } | |
12648 | if ${libbacktrace_cv_sys_sync+:} false; then : | |
12649 | $as_echo_n "(cached) " >&6 | |
12650 | else | |
12651 | if test -n "${with_target_subdir}"; then | |
12652 | case "${host}" in | |
12653 | hppa*-*-hpux*) libbacktrace_cv_sys_sync=no ;; | |
12654 | *) libbacktrace_cv_sys_sync=yes ;; | |
12655 | esac | |
12656 | else | |
12657 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12658 | /* end confdefs.h. */ | |
12659 | int i; | |
12660 | int | |
12661 | main () | |
12662 | { | |
12663 | __sync_bool_compare_and_swap (&i, i, i); | |
12664 | __sync_lock_test_and_set (&i, 1); | |
12665 | __sync_lock_release (&i); | |
12666 | ; | |
12667 | return 0; | |
12668 | } | |
12669 | _ACEOF | |
12670 | if ac_fn_c_try_link "$LINENO"; then : | |
12671 | libbacktrace_cv_sys_sync=yes | |
12672 | else | |
12673 | libbacktrace_cv_sys_sync=no | |
12674 | fi | |
12675 | rm -f core conftest.err conftest.$ac_objext \ | |
12676 | conftest$ac_exeext conftest.$ac_ext | |
12677 | fi | |
12678 | fi | |
12679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_sync" >&5 | |
12680 | $as_echo "$libbacktrace_cv_sys_sync" >&6; } | |
12681 | BACKTRACE_SUPPORTS_THREADS=0 | |
12682 | if test "$libbacktrace_cv_sys_sync" = "yes"; then | |
12683 | BACKTRACE_SUPPORTS_THREADS=1 | |
12684 | ||
12685 | $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h | |
12686 | ||
12687 | fi | |
12688 | ||
12689 | ||
12690 | # Test for __atomic support. | |
12691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5 | |
12692 | $as_echo_n "checking __atomic extensions... " >&6; } | |
12693 | if ${libbacktrace_cv_sys_atomic+:} false; then : | |
12694 | $as_echo_n "(cached) " >&6 | |
12695 | else | |
12696 | if test -n "${with_target_subdir}"; then | |
12697 | libbacktrace_cv_sys_atomic=yes | |
12698 | else | |
12699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12700 | /* end confdefs.h. */ | |
12701 | int i; | |
12702 | int | |
12703 | main () | |
12704 | { | |
12705 | __atomic_load_n (&i, __ATOMIC_ACQUIRE); | |
12706 | __atomic_store_n (&i, 1, __ATOMIC_RELEASE); | |
12707 | ; | |
12708 | return 0; | |
12709 | } | |
12710 | _ACEOF | |
12711 | if ac_fn_c_try_link "$LINENO"; then : | |
12712 | libbacktrace_cv_sys_atomic=yes | |
12713 | else | |
12714 | libbacktrace_cv_sys_atomic=no | |
12715 | fi | |
12716 | rm -f core conftest.err conftest.$ac_objext \ | |
12717 | conftest$ac_exeext conftest.$ac_ext | |
12718 | fi | |
12719 | fi | |
12720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_atomic" >&5 | |
12721 | $as_echo "$libbacktrace_cv_sys_atomic" >&6; } | |
12722 | if test "$libbacktrace_cv_sys_atomic" = "yes"; then | |
12723 | ||
12724 | $as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h | |
12725 | ||
12726 | fi | |
12727 | ||
12728 | # The library needs to be able to read the executable itself. Compile | |
12729 | # a file to determine the executable format. The awk script | |
12730 | # filetype.awk prints out the file type. | |
12731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5 | |
12732 | $as_echo_n "checking output filetype... " >&6; } | |
12733 | if ${libbacktrace_cv_sys_filetype+:} false; then : | |
12734 | $as_echo_n "(cached) " >&6 | |
12735 | else | |
12736 | filetype= | |
12737 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12738 | /* end confdefs.h. */ | |
12739 | int i; | |
12740 | int | |
12741 | main () | |
12742 | { | |
12743 | int j; | |
12744 | ; | |
12745 | return 0; | |
12746 | } | |
12747 | _ACEOF | |
12748 | if ac_fn_c_try_compile "$LINENO"; then : | |
12749 | filetype=`${AWK} -f $srcdir/filetype.awk conftest.$ac_objext` | |
12750 | else | |
12751 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12752 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12753 | as_fn_error $? "compiler failed | |
12754 | See \`config.log' for more details" "$LINENO" 5; } | |
12755 | fi | |
12756 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12757 | libbacktrace_cv_sys_filetype=$filetype | |
12758 | fi | |
12759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_filetype" >&5 | |
12760 | $as_echo "$libbacktrace_cv_sys_filetype" >&6; } | |
12761 | ||
12762 | # Match the file type to decide what files to compile. | |
12763 | FORMAT_FILE= | |
12764 | backtrace_supports_data=yes | |
12765 | case "$libbacktrace_cv_sys_filetype" in | |
12766 | elf*) FORMAT_FILE="elf.lo" ;; | |
12767 | macho) FORMAT_FILE="macho.lo" ;; | |
12768 | pecoff) FORMAT_FILE="pecoff.lo" | |
12769 | backtrace_supports_data=no | |
12770 | ;; | |
12771 | xcoff*) FORMAT_FILE="xcoff.lo" | |
12772 | backtrace_supports_data=no | |
12773 | ;; | |
12774 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5 | |
12775 | $as_echo "$as_me: WARNING: could not determine output file type" >&2;} | |
12776 | FORMAT_FILE="unknown.lo" | |
12777 | backtrace_supported=no | |
12778 | ;; | |
12779 | esac | |
12780 | ||
12781 | ||
12782 | # ELF defines. | |
12783 | elfsize= | |
12784 | case "$libbacktrace_cv_sys_filetype" in | |
12785 | elf32) elfsize=32 ;; | |
12786 | elf64) elfsize=64 ;; | |
12787 | *) elfsize=unused | |
12788 | esac | |
12789 | ||
12790 | cat >>confdefs.h <<_ACEOF | |
12791 | #define BACKTRACE_ELF_SIZE $elfsize | |
12792 | _ACEOF | |
12793 | ||
12794 | if test "$FORMAT_FILE" = "elf.lo"; then | |
12795 | HAVE_ELF_TRUE= | |
12796 | HAVE_ELF_FALSE='#' | |
12797 | else | |
12798 | HAVE_ELF_TRUE='#' | |
12799 | HAVE_ELF_FALSE= | |
12800 | fi | |
12801 | ||
12802 | ||
12803 | # XCOFF defines. | |
12804 | xcoffsize= | |
12805 | case "$libbacktrace_cv_sys_filetype" in | |
12806 | xcoff32) xcoffsize=32 ;; | |
12807 | xcoff64) xcoffsize=64 ;; | |
12808 | *) xcoffsize=unused | |
12809 | esac | |
12810 | ||
12811 | cat >>confdefs.h <<_ACEOF | |
12812 | #define BACKTRACE_XCOFF_SIZE $xcoffsize | |
12813 | _ACEOF | |
12814 | ||
12815 | ||
12816 | BACKTRACE_SUPPORTED=0 | |
12817 | if test "$backtrace_supported" = "yes"; then | |
12818 | BACKTRACE_SUPPORTED=1 | |
12819 | fi | |
12820 | ||
12821 | ||
12822 | BACKTRACE_SUPPORTS_DATA=0 | |
12823 | if test "$backtrace_supports_data" = "yes"; then | |
12824 | BACKTRACE_SUPPORTS_DATA=1 | |
12825 | fi | |
12826 | ||
12827 | ||
12828 | ||
12829 | ||
12830 | inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` | |
12831 | ||
12832 | acx_cv_header_stdint=stddef.h | |
12833 | acx_cv_header_stdint_kind="(already complete)" | |
12834 | for i in stdint.h $inttype_headers; do | |
12835 | unset ac_cv_type_uintptr_t | |
12836 | unset ac_cv_type_uintmax_t | |
12837 | unset ac_cv_type_int_least32_t | |
12838 | unset ac_cv_type_int_fast32_t | |
12839 | unset ac_cv_type_uint64_t | |
12840 | $as_echo_n "looking for a compliant stdint.h in $i, " >&6 | |
12841 | ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h> | |
12842 | #include <$i> | |
12843 | " | |
12844 | if test "x$ac_cv_type_uintmax_t" = xyes; then : | |
12845 | acx_cv_header_stdint=$i | |
12846 | else | |
12847 | continue | |
12848 | fi | |
12849 | ||
12850 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> | |
12851 | #include <$i> | |
12852 | " | |
12853 | if test "x$ac_cv_type_uintptr_t" = xyes; then : | |
12854 | ||
12855 | else | |
12856 | acx_cv_header_stdint_kind="(mostly complete)" | |
12857 | fi | |
12858 | ||
12859 | ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h> | |
12860 | #include <$i> | |
12861 | " | |
12862 | if test "x$ac_cv_type_int_least32_t" = xyes; then : | |
12863 | ||
12864 | else | |
12865 | acx_cv_header_stdint_kind="(mostly complete)" | |
12866 | fi | |
12867 | ||
12868 | ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h> | |
12869 | #include <$i> | |
12870 | " | |
12871 | if test "x$ac_cv_type_int_fast32_t" = xyes; then : | |
12872 | ||
12873 | else | |
12874 | acx_cv_header_stdint_kind="(mostly complete)" | |
12875 | fi | |
12876 | ||
12877 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> | |
12878 | #include <$i> | |
12879 | " | |
12880 | if test "x$ac_cv_type_uint64_t" = xyes; then : | |
12881 | ||
12882 | else | |
12883 | acx_cv_header_stdint_kind="(lacks uint64_t)" | |
12884 | fi | |
12885 | ||
12886 | break | |
12887 | done | |
12888 | if test "$acx_cv_header_stdint" = stddef.h; then | |
12889 | acx_cv_header_stdint_kind="(lacks uintmax_t)" | |
12890 | for i in stdint.h $inttype_headers; do | |
12891 | unset ac_cv_type_uintptr_t | |
12892 | unset ac_cv_type_uint32_t | |
12893 | unset ac_cv_type_uint64_t | |
12894 | $as_echo_n "looking for an incomplete stdint.h in $i, " >&6 | |
12895 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h> | |
12896 | #include <$i> | |
12897 | " | |
12898 | if test "x$ac_cv_type_uint32_t" = xyes; then : | |
12899 | acx_cv_header_stdint=$i | |
12900 | else | |
12901 | continue | |
12902 | fi | |
12903 | ||
12904 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> | |
12905 | #include <$i> | |
12906 | " | |
12907 | if test "x$ac_cv_type_uint64_t" = xyes; then : | |
12908 | ||
12909 | fi | |
12910 | ||
12911 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> | |
12912 | #include <$i> | |
12913 | " | |
12914 | if test "x$ac_cv_type_uintptr_t" = xyes; then : | |
12915 | ||
12916 | fi | |
12917 | ||
12918 | break | |
12919 | done | |
12920 | fi | |
12921 | if test "$acx_cv_header_stdint" = stddef.h; then | |
12922 | acx_cv_header_stdint_kind="(u_intXX_t style)" | |
12923 | for i in sys/types.h $inttype_headers; do | |
12924 | unset ac_cv_type_u_int32_t | |
12925 | unset ac_cv_type_u_int64_t | |
12926 | $as_echo_n "looking for u_intXX_t types in $i, " >&6 | |
12927 | ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h> | |
12928 | #include <$i> | |
12929 | " | |
12930 | if test "x$ac_cv_type_u_int32_t" = xyes; then : | |
12931 | acx_cv_header_stdint=$i | |
12932 | else | |
12933 | continue | |
12934 | fi | |
12935 | ||
12936 | ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h> | |
12937 | #include <$i> | |
12938 | " | |
12939 | if test "x$ac_cv_type_u_int64_t" = xyes; then : | |
12940 | ||
12941 | fi | |
12942 | ||
12943 | break | |
12944 | done | |
12945 | fi | |
12946 | if test "$acx_cv_header_stdint" = stddef.h; then | |
12947 | acx_cv_header_stdint_kind="(using manual detection)" | |
12948 | fi | |
12949 | ||
12950 | test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no | |
12951 | test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no | |
12952 | test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no | |
12953 | test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no | |
12954 | test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no | |
12955 | ||
12956 | # ----------------- Summarize what we found so far | |
12957 | ||
12958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5 | |
12959 | $as_echo_n "checking what to include in gstdint.h... " >&6; } | |
12960 | ||
12961 | case `$as_basename -- gstdint.h || | |
12962 | $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \ | |
12963 | Xgstdint.h : 'X\(//\)$' \| \ | |
12964 | Xgstdint.h : 'X\(/\)' \| . 2>/dev/null || | |
12965 | $as_echo X/gstdint.h | | |
12966 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
12967 | s//\1/ | |
12968 | q | |
12969 | } | |
12970 | /^X\/\(\/\/\)$/{ | |
12971 | s//\1/ | |
12972 | q | |
12973 | } | |
12974 | /^X\/\(\/\).*/{ | |
12975 | s//\1/ | |
12976 | q | |
12977 | } | |
12978 | s/.*/./; q'` in | |
12979 | stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 | |
12980 | $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
12981 | inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 | |
12982 | $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
12983 | *) ;; | |
12984 | esac | |
12985 | ||
12986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 | |
12987 | $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; } | |
12988 | ||
12989 | # ----------------- done included file, check C basic types -------- | |
12990 | ||
12991 | # Lacking an uintptr_t? Test size of void * | |
12992 | case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in | |
12993 | stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler | |
12994 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12995 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12996 | # This bug is HP SR number 8606223364. | |
12997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | |
12998 | $as_echo_n "checking size of void *... " >&6; } | |
12999 | if ${ac_cv_sizeof_void_p+:} false; then : | |
13000 | $as_echo_n "(cached) " >&6 | |
13001 | else | |
13002 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : | |
13003 | ||
13004 | else | |
13005 | if test "$ac_cv_type_void_p" = yes; then | |
13006 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13007 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13008 | as_fn_error 77 "cannot compute sizeof (void *) | |
13009 | See \`config.log' for more details" "$LINENO" 5; } | |
13010 | else | |
13011 | ac_cv_sizeof_void_p=0 | |
13012 | fi | |
13013 | fi | |
13014 | ||
13015 | fi | |
13016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | |
13017 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | |
13018 | ||
13019 | ||
13020 | ||
13021 | cat >>confdefs.h <<_ACEOF | |
13022 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
13023 | _ACEOF | |
13024 | ||
13025 | ;; | |
13026 | esac | |
13027 | ||
13028 | # Lacking an uint64_t? Test size of long | |
13029 | case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in | |
13030 | stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler | |
13031 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
13032 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13033 | # This bug is HP SR number 8606223364. | |
13034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
13035 | $as_echo_n "checking size of long... " >&6; } | |
13036 | if ${ac_cv_sizeof_long+:} false; then : | |
13037 | $as_echo_n "(cached) " >&6 | |
13038 | else | |
13039 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : | |
13040 | ||
13041 | else | |
13042 | if test "$ac_cv_type_long" = yes; then | |
13043 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13044 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13045 | as_fn_error 77 "cannot compute sizeof (long) | |
13046 | See \`config.log' for more details" "$LINENO" 5; } | |
13047 | else | |
13048 | ac_cv_sizeof_long=0 | |
13049 | fi | |
13050 | fi | |
13051 | ||
13052 | fi | |
13053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
13054 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
13055 | ||
13056 | ||
13057 | ||
13058 | cat >>confdefs.h <<_ACEOF | |
13059 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
13060 | _ACEOF | |
13061 | ||
13062 | ;; | |
13063 | esac | |
13064 | ||
13065 | if test $acx_cv_header_stdint = stddef.h; then | |
13066 | # Lacking a good header? Test size of everything and deduce all types. | |
13067 | # The cast to long int works around a bug in the HP C Compiler | |
13068 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
13069 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13070 | # This bug is HP SR number 8606223364. | |
13071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
13072 | $as_echo_n "checking size of int... " >&6; } | |
13073 | if ${ac_cv_sizeof_int+:} false; then : | |
13074 | $as_echo_n "(cached) " >&6 | |
13075 | else | |
13076 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | |
13077 | ||
13078 | else | |
13079 | if test "$ac_cv_type_int" = yes; then | |
13080 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13081 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13082 | as_fn_error 77 "cannot compute sizeof (int) | |
13083 | See \`config.log' for more details" "$LINENO" 5; } | |
13084 | else | |
13085 | ac_cv_sizeof_int=0 | |
13086 | fi | |
13087 | fi | |
13088 | ||
13089 | fi | |
13090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
13091 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
13092 | ||
13093 | ||
13094 | ||
13095 | cat >>confdefs.h <<_ACEOF | |
13096 | #define SIZEOF_INT $ac_cv_sizeof_int | |
13097 | _ACEOF | |
13098 | ||
13099 | ||
13100 | # The cast to long int works around a bug in the HP C Compiler | |
13101 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
13102 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13103 | # This bug is HP SR number 8606223364. | |
13104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | |
13105 | $as_echo_n "checking size of short... " >&6; } | |
13106 | if ${ac_cv_sizeof_short+:} false; then : | |
13107 | $as_echo_n "(cached) " >&6 | |
13108 | else | |
13109 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : | |
13110 | ||
13111 | else | |
13112 | if test "$ac_cv_type_short" = yes; then | |
13113 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13114 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13115 | as_fn_error 77 "cannot compute sizeof (short) | |
13116 | See \`config.log' for more details" "$LINENO" 5; } | |
13117 | else | |
13118 | ac_cv_sizeof_short=0 | |
13119 | fi | |
13120 | fi | |
13121 | ||
13122 | fi | |
13123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | |
13124 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
13125 | ||
13126 | ||
13127 | ||
13128 | cat >>confdefs.h <<_ACEOF | |
13129 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
13130 | _ACEOF | |
13131 | ||
13132 | ||
13133 | # The cast to long int works around a bug in the HP C Compiler | |
13134 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
13135 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13136 | # This bug is HP SR number 8606223364. | |
13137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 | |
13138 | $as_echo_n "checking size of char... " >&6; } | |
13139 | if ${ac_cv_sizeof_char+:} false; then : | |
13140 | $as_echo_n "(cached) " >&6 | |
13141 | else | |
13142 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : | |
13143 | ||
13144 | else | |
13145 | if test "$ac_cv_type_char" = yes; then | |
13146 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13147 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13148 | as_fn_error 77 "cannot compute sizeof (char) | |
13149 | See \`config.log' for more details" "$LINENO" 5; } | |
13150 | else | |
13151 | ac_cv_sizeof_char=0 | |
13152 | fi | |
13153 | fi | |
13154 | ||
13155 | fi | |
13156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 | |
13157 | $as_echo "$ac_cv_sizeof_char" >&6; } | |
13158 | ||
13159 | ||
13160 | ||
13161 | cat >>confdefs.h <<_ACEOF | |
13162 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
13163 | _ACEOF | |
13164 | ||
13165 | ||
13166 | ||
13167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5 | |
13168 | $as_echo_n "checking for type equivalent to int8_t... " >&6; } | |
13169 | case "$ac_cv_sizeof_char" in | |
13170 | 1) acx_cv_type_int8_t=char ;; | |
13171 | *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5 | |
13172 | esac | |
13173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5 | |
13174 | $as_echo "$acx_cv_type_int8_t" >&6; } | |
13175 | ||
13176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5 | |
13177 | $as_echo_n "checking for type equivalent to int16_t... " >&6; } | |
13178 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in | |
13179 | 2:*) acx_cv_type_int16_t=int ;; | |
13180 | *:2) acx_cv_type_int16_t=short ;; | |
13181 | *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5 | |
13182 | esac | |
13183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5 | |
13184 | $as_echo "$acx_cv_type_int16_t" >&6; } | |
13185 | ||
13186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5 | |
13187 | $as_echo_n "checking for type equivalent to int32_t... " >&6; } | |
13188 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in | |
13189 | 4:*) acx_cv_type_int32_t=int ;; | |
13190 | *:4) acx_cv_type_int32_t=long ;; | |
13191 | *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5 | |
13192 | esac | |
13193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5 | |
13194 | $as_echo "$acx_cv_type_int32_t" >&6; } | |
13195 | fi | |
13196 | ||
13197 | # These tests are here to make the output prettier | |
13198 | ||
13199 | if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then | |
13200 | case "$ac_cv_sizeof_long" in | |
13201 | 8) acx_cv_type_int64_t=long ;; | |
13202 | esac | |
13203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5 | |
13204 | $as_echo_n "checking for type equivalent to int64_t... " >&6; } | |
13205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 | |
13206 | $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; } | |
13207 | fi | |
13208 | ||
13209 | # Now we can use the above types | |
13210 | ||
13211 | if test "$ac_cv_type_uintptr_t" != yes; then | |
13212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5 | |
13213 | $as_echo_n "checking for type equivalent to intptr_t... " >&6; } | |
13214 | case $ac_cv_sizeof_void_p in | |
13215 | 2) acx_cv_type_intptr_t=int16_t ;; | |
13216 | 4) acx_cv_type_intptr_t=int32_t ;; | |
13217 | 8) acx_cv_type_intptr_t=int64_t ;; | |
13218 | *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5 | |
13219 | esac | |
13220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5 | |
13221 | $as_echo "$acx_cv_type_intptr_t" >&6; } | |
13222 | fi | |
13223 | ||
13224 | # ----------------- done all checks, emit header ------------- | |
13225 | ac_config_commands="$ac_config_commands gstdint.h" | |
13226 | ||
13227 | ||
13228 | ||
13229 | ||
13230 | for ac_header in sys/mman.h | |
13231 | do : | |
13232 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" | |
13233 | if test "x$ac_cv_header_sys_mman_h" = xyes; then : | |
13234 | cat >>confdefs.h <<_ACEOF | |
13235 | #define HAVE_SYS_MMAN_H 1 | |
13236 | _ACEOF | |
13237 | ||
13238 | fi | |
13239 | ||
13240 | done | |
13241 | ||
13242 | if test "$ac_cv_header_sys_mman_h" = "no"; then | |
13243 | have_mmap=no | |
13244 | else | |
13245 | if test -n "${with_target_subdir}"; then | |
13246 | # When built as a GCC target library, we can't do a link test. We | |
13247 | # simply assume that if we have mman.h, we have mmap. | |
13248 | have_mmap=yes | |
13249 | case "${host}" in | |
13250 | *-*-msdosdjgpp) | |
13251 | # DJGPP has sys/man.h, but no mmap | |
13252 | have_mmap=no ;; | |
13253 | esac | |
13254 | else | |
13255 | ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" | |
13256 | if test "x$ac_cv_func_mmap" = xyes; then : | |
13257 | have_mmap=yes | |
13258 | else | |
13259 | have_mmap=no | |
13260 | fi | |
13261 | ||
13262 | fi | |
13263 | fi | |
13264 | if test "$have_mmap" = "no"; then | |
13265 | VIEW_FILE=read.lo | |
13266 | ALLOC_FILE=alloc.lo | |
13267 | else | |
13268 | VIEW_FILE=mmapio.lo | |
13269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13270 | /* end confdefs.h. */ | |
13271 | ||
13272 | #include <sys/mman.h> | |
13273 | #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON) | |
13274 | #error no MAP_ANONYMOUS | |
13275 | #endif | |
13276 | ||
13277 | _ACEOF | |
13278 | if ac_fn_c_try_cpp "$LINENO"; then : | |
13279 | ALLOC_FILE=mmap.lo | |
13280 | else | |
13281 | ALLOC_FILE=alloc.lo | |
13282 | fi | |
13283 | rm -f conftest.err conftest.i conftest.$ac_ext | |
13284 | fi | |
13285 | ||
13286 | ||
13287 | ||
13288 | BACKTRACE_USES_MALLOC=0 | |
13289 | if test "$ALLOC_FILE" = "alloc.lo"; then | |
13290 | BACKTRACE_USES_MALLOC=1 | |
13291 | fi | |
13292 | ||
13293 | ||
13294 | # Check for dl_iterate_phdr. | |
13295 | for ac_header in link.h | |
13296 | do : | |
13297 | ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default" | |
13298 | if test "x$ac_cv_header_link_h" = xyes; then : | |
13299 | cat >>confdefs.h <<_ACEOF | |
13300 | #define HAVE_LINK_H 1 | |
13301 | _ACEOF | |
13302 | ||
13303 | fi | |
13304 | ||
13305 | done | |
13306 | ||
13307 | if test "$ac_cv_header_link_h" = "no"; then | |
13308 | have_dl_iterate_phdr=no | |
13309 | else | |
13310 | if test -n "${with_target_subdir}"; then | |
13311 | # When built as a GCC target library, we can't do a link test. | |
13312 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13313 | /* end confdefs.h. */ | |
13314 | #include <link.h> | |
13315 | ||
13316 | _ACEOF | |
13317 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13318 | $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then : | |
13319 | have_dl_iterate_phdr=yes | |
13320 | else | |
13321 | have_dl_iterate_phdr=no | |
13322 | fi | |
13323 | rm -f conftest* | |
13324 | ||
13325 | else | |
13326 | ac_fn_c_check_func "$LINENO" "dl_iterate_phdr" "ac_cv_func_dl_iterate_phdr" | |
13327 | if test "x$ac_cv_func_dl_iterate_phdr" = xyes; then : | |
13328 | have_dl_iterate_phdr=yes | |
13329 | else | |
13330 | have_dl_iterate_phdr=no | |
13331 | fi | |
13332 | ||
13333 | fi | |
13334 | fi | |
13335 | if test "$have_dl_iterate_phdr" = "yes"; then | |
13336 | ||
13337 | $as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h | |
13338 | ||
13339 | fi | |
13340 | ||
13341 | # Check for header file for Mach-O image functions. | |
13342 | for ac_header in mach-o/dyld.h | |
13343 | do : | |
13344 | ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default" | |
13345 | if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then : | |
13346 | cat >>confdefs.h <<_ACEOF | |
13347 | #define HAVE_MACH_O_DYLD_H 1 | |
13348 | _ACEOF | |
13349 | ||
13350 | fi | |
13351 | ||
13352 | done | |
13353 | ||
13354 | ||
13355 | # Check for loadquery. | |
13356 | for ac_header in sys/ldr.h | |
13357 | do : | |
13358 | ac_fn_c_check_header_mongrel "$LINENO" "sys/ldr.h" "ac_cv_header_sys_ldr_h" "$ac_includes_default" | |
13359 | if test "x$ac_cv_header_sys_ldr_h" = xyes; then : | |
13360 | cat >>confdefs.h <<_ACEOF | |
13361 | #define HAVE_SYS_LDR_H 1 | |
13362 | _ACEOF | |
13363 | ||
13364 | fi | |
13365 | ||
13366 | done | |
13367 | ||
13368 | if test "$ac_cv_header_sys_ldr_h" = "no"; then | |
13369 | have_loadquery=no | |
13370 | else | |
13371 | if test -n "${with_target_subdir}"; then | |
13372 | # When built as a GCC target library, we can't do a link test. | |
13373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13374 | /* end confdefs.h. */ | |
13375 | #include <sys/ldr.h> | |
13376 | ||
13377 | _ACEOF | |
13378 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13379 | $EGREP "loadquery" >/dev/null 2>&1; then : | |
13380 | have_loadquery=yes | |
13381 | else | |
13382 | have_loadquery=no | |
13383 | fi | |
13384 | rm -f conftest* | |
13385 | ||
13386 | else | |
13387 | ac_fn_c_check_func "$LINENO" "loadquery" "ac_cv_func_loadquery" | |
13388 | if test "x$ac_cv_func_loadquery" = xyes; then : | |
13389 | have_loadquery=yes | |
13390 | else | |
13391 | have_loadquery=no | |
13392 | fi | |
13393 | ||
13394 | fi | |
13395 | fi | |
13396 | if test "$have_loadquery" = "yes"; then | |
13397 | ||
13398 | $as_echo "#define HAVE_LOADQUERY 1" >>confdefs.h | |
13399 | ||
13400 | fi | |
13401 | ||
13402 | # Check for the fcntl function. | |
13403 | if test -n "${with_target_subdir}"; then | |
13404 | case "${host}" in | |
13405 | *-*-mingw*) have_fcntl=no ;; | |
13406 | *) have_fcntl=yes ;; | |
13407 | esac | |
13408 | else | |
13409 | ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl" | |
13410 | if test "x$ac_cv_func_fcntl" = xyes; then : | |
13411 | have_fcntl=yes | |
13412 | else | |
13413 | have_fcntl=no | |
13414 | fi | |
13415 | ||
13416 | fi | |
13417 | if test "$have_fcntl" = "yes"; then | |
13418 | ||
13419 | $as_echo "#define HAVE_FCNTL 1" >>confdefs.h | |
13420 | ||
13421 | fi | |
13422 | ||
13423 | ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default" | |
13424 | if test "x$ac_cv_have_decl_strnlen" = xyes; then : | |
13425 | ac_have_decl=1 | |
13426 | else | |
13427 | ac_have_decl=0 | |
13428 | fi | |
13429 | ||
13430 | cat >>confdefs.h <<_ACEOF | |
13431 | #define HAVE_DECL_STRNLEN $ac_have_decl | |
13432 | _ACEOF | |
13433 | ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default" | |
13434 | if test "x$ac_cv_have_decl_getpagesize" = xyes; then : | |
13435 | ac_have_decl=1 | |
13436 | else | |
13437 | ac_have_decl=0 | |
13438 | fi | |
13439 | ||
13440 | cat >>confdefs.h <<_ACEOF | |
13441 | #define HAVE_DECL_GETPAGESIZE $ac_have_decl | |
13442 | _ACEOF | |
13443 | ||
13444 | for ac_func in lstat readlink | |
13445 | do : | |
13446 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13447 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
13448 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
13449 | cat >>confdefs.h <<_ACEOF | |
13450 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13451 | _ACEOF | |
13452 | ||
13453 | fi | |
13454 | done | |
13455 | ||
13456 | ||
13457 | # Check for getexecname function. | |
13458 | if test -n "${with_target_subdir}"; then | |
13459 | case "${host}" in | |
13460 | *-*-solaris2*) have_getexecname=yes ;; | |
13461 | *) have_getexecname=no ;; | |
13462 | esac | |
13463 | else | |
13464 | ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname" | |
13465 | if test "x$ac_cv_func_getexecname" = xyes; then : | |
13466 | have_getexecname=yes | |
13467 | else | |
13468 | have_getexecname=no | |
13469 | fi | |
13470 | ||
13471 | fi | |
13472 | if test "$have_getexecname" = "yes"; then | |
13473 | ||
13474 | $as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h | |
13475 | ||
13476 | fi | |
13477 | ||
13478 | # Check for sysctl definitions. | |
13479 | ||
13480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KERN_PROC" >&5 | |
13481 | $as_echo_n "checking for KERN_PROC... " >&6; } | |
13482 | if ${libbacktrace_cv_proc+:} false; then : | |
13483 | $as_echo_n "(cached) " >&6 | |
13484 | else | |
13485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13486 | /* end confdefs.h. */ | |
13487 | ||
13488 | #include <sys/types.h> | |
13489 | #include <sys/sysctl.h> | |
13490 | ||
13491 | int | |
13492 | main () | |
13493 | { | |
13494 | int mib0 = CTL_KERN; int mib1 = KERN_PROC; int mib2 = KERN_PROC_PATHNAME; | |
13495 | ; | |
13496 | return 0; | |
13497 | } | |
13498 | _ACEOF | |
13499 | if ac_fn_c_try_compile "$LINENO"; then : | |
13500 | libbacktrace_cv_proc=yes | |
13501 | else | |
13502 | libbacktrace_cv_proc=no | |
13503 | fi | |
13504 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13505 | fi | |
13506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_proc" >&5 | |
13507 | $as_echo "$libbacktrace_cv_proc" >&6; } | |
13508 | if test "$libbacktrace_cv_proc" = "yes"; then | |
13509 | ||
13510 | $as_echo "#define HAVE_KERN_PROC 1" >>confdefs.h | |
13511 | ||
13512 | fi | |
13513 | ||
13514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KERN_PROG_ARGS" >&5 | |
13515 | $as_echo_n "checking for KERN_PROG_ARGS... " >&6; } | |
13516 | if ${libbacktrace_cv_procargs+:} false; then : | |
13517 | $as_echo_n "(cached) " >&6 | |
13518 | else | |
13519 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13520 | /* end confdefs.h. */ | |
13521 | ||
13522 | #include <sys/types.h> | |
13523 | #include <sys/sysctl.h> | |
13524 | ||
13525 | int | |
13526 | main () | |
13527 | { | |
13528 | int mib0 = CTL_KERN; int mib1 = KERN_PROC_ARGS; int mib2 = KERN_PROC_PATHNAME; | |
13529 | ; | |
13530 | return 0; | |
13531 | } | |
13532 | _ACEOF | |
13533 | if ac_fn_c_try_compile "$LINENO"; then : | |
13534 | libbacktrace_cv_procargs=yes | |
13535 | else | |
13536 | libbacktrace_cv_procargs=no | |
13537 | fi | |
13538 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13539 | fi | |
13540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_procargs" >&5 | |
13541 | $as_echo "$libbacktrace_cv_procargs" >&6; } | |
13542 | if test "$libbacktrace_cv_procargs" = "yes"; then | |
13543 | ||
13544 | $as_echo "#define HAVE_KERN_PROC_ARGS 1" >>confdefs.h | |
13545 | ||
13546 | fi | |
13547 | ||
13548 | # Check for the clock_gettime function. | |
13549 | for ac_func in clock_gettime | |
13550 | do : | |
13551 | ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" | |
13552 | if test "x$ac_cv_func_clock_gettime" = xyes; then : | |
13553 | cat >>confdefs.h <<_ACEOF | |
13554 | #define HAVE_CLOCK_GETTIME 1 | |
13555 | _ACEOF | |
13556 | ||
13557 | fi | |
13558 | done | |
13559 | ||
13560 | clock_gettime_link= | |
13561 | # At least for glibc, clock_gettime is in librt. But don't | |
13562 | # pull that in if it still doesn't give us the function we want. This | |
13563 | # test is copied from libgomp, and modified to not link in -lrt as | |
13564 | # we're using this for test timing only. | |
13565 | if test "$ac_cv_func_clock_gettime" = no; then | |
13566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 | |
13567 | $as_echo_n "checking for clock_gettime in -lrt... " >&6; } | |
13568 | if ${ac_cv_lib_rt_clock_gettime+:} false; then : | |
13569 | $as_echo_n "(cached) " >&6 | |
13570 | else | |
13571 | ac_check_lib_save_LIBS=$LIBS | |
13572 | LIBS="-lrt $LIBS" | |
13573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13574 | /* end confdefs.h. */ | |
13575 | ||
13576 | /* Override any GCC internal prototype to avoid an error. | |
13577 | Use char because int might match the return type of a GCC | |
13578 | builtin and then its argument prototype would still apply. */ | |
13579 | #ifdef __cplusplus | |
13580 | extern "C" | |
13581 | #endif | |
13582 | char clock_gettime (); | |
13583 | int | |
13584 | main () | |
13585 | { | |
13586 | return clock_gettime (); | |
13587 | ; | |
13588 | return 0; | |
13589 | } | |
13590 | _ACEOF | |
13591 | if ac_fn_c_try_link "$LINENO"; then : | |
13592 | ac_cv_lib_rt_clock_gettime=yes | |
13593 | else | |
13594 | ac_cv_lib_rt_clock_gettime=no | |
13595 | fi | |
13596 | rm -f core conftest.err conftest.$ac_objext \ | |
13597 | conftest$ac_exeext conftest.$ac_ext | |
13598 | LIBS=$ac_check_lib_save_LIBS | |
13599 | fi | |
13600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 | |
13601 | $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } | |
13602 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : | |
13603 | CLOCK_GETTIME_LINK=-lrt | |
13604 | ||
13605 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h | |
13606 | ||
13607 | fi | |
13608 | ||
13609 | fi | |
13610 | ||
13611 | ||
13612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5 | |
13613 | $as_echo_n "checking whether -pthread is supported... " >&6; } | |
13614 | if ${libgo_cv_lib_pthread+:} false; then : | |
13615 | $as_echo_n "(cached) " >&6 | |
13616 | else | |
13617 | CFLAGS_hold=$CFLAGS | |
13618 | CFLAGS="$CFLAGS -pthread" | |
13619 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13620 | /* end confdefs.h. */ | |
13621 | int i; | |
13622 | _ACEOF | |
13623 | if ac_fn_c_try_compile "$LINENO"; then : | |
13624 | libgo_cv_lib_pthread=yes | |
13625 | else | |
13626 | libgo_cv_lib_pthread=no | |
13627 | fi | |
13628 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13629 | CFLAGS=$CFLAGS_hold | |
13630 | fi | |
13631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5 | |
13632 | $as_echo "$libgo_cv_lib_pthread" >&6; } | |
13633 | PTHREAD_CFLAGS= | |
13634 | if test "$libgo_cv_lib_pthread" = yes; then | |
13635 | PTHREAD_CFLAGS=-pthread | |
13636 | fi | |
13637 | ||
13638 | ||
13639 | if test "$libgo_cv_lib_pthread" = yes; then | |
13640 | HAVE_PTHREAD_TRUE= | |
13641 | HAVE_PTHREAD_FALSE='#' | |
13642 | else | |
13643 | HAVE_PTHREAD_TRUE='#' | |
13644 | HAVE_PTHREAD_FALSE= | |
13645 | fi | |
13646 | ||
13647 | ||
13648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -gdwarf-5 is supported" >&5 | |
13649 | $as_echo_n "checking whether -gdwarf-5 is supported... " >&6; } | |
13650 | if ${libbacktrace_cv_lib_dwarf5+:} false; then : | |
13651 | $as_echo_n "(cached) " >&6 | |
13652 | else | |
13653 | CFLAGS_hold=$CFLAGS | |
13654 | CFLAGS="$CFLAGS -gdwarf-5" | |
13655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13656 | /* end confdefs.h. */ | |
13657 | int i; | |
13658 | int | |
13659 | main () | |
13660 | { | |
13661 | return 0; | |
13662 | ; | |
13663 | return 0; | |
13664 | } | |
13665 | _ACEOF | |
13666 | if ac_fn_c_try_link "$LINENO"; then : | |
13667 | libbacktrace_cv_lib_dwarf5=yes | |
13668 | else | |
13669 | libbacktrace_cv_lib_dwarf5=no | |
13670 | fi | |
13671 | rm -f core conftest.err conftest.$ac_objext \ | |
13672 | conftest$ac_exeext conftest.$ac_ext | |
13673 | CFLAGS=$CFLAGS_hold | |
13674 | fi | |
13675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_lib_dwarf5" >&5 | |
13676 | $as_echo "$libbacktrace_cv_lib_dwarf5" >&6; } | |
13677 | if test "$libbacktrace_cv_lib_dwarf5" = yes; then | |
13678 | HAVE_DWARF5_TRUE= | |
13679 | HAVE_DWARF5_FALSE='#' | |
13680 | else | |
13681 | HAVE_DWARF5_TRUE='#' | |
13682 | HAVE_DWARF5_FALSE= | |
13683 | fi | |
13684 | ||
13685 | ||
13686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 | |
13687 | $as_echo_n "checking for compress in -lz... " >&6; } | |
13688 | if ${ac_cv_lib_z_compress+:} false; then : | |
13689 | $as_echo_n "(cached) " >&6 | |
13690 | else | |
13691 | ac_check_lib_save_LIBS=$LIBS | |
13692 | LIBS="-lz $LIBS" | |
13693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13694 | /* end confdefs.h. */ | |
13695 | ||
13696 | /* Override any GCC internal prototype to avoid an error. | |
13697 | Use char because int might match the return type of a GCC | |
13698 | builtin and then its argument prototype would still apply. */ | |
13699 | #ifdef __cplusplus | |
13700 | extern "C" | |
13701 | #endif | |
13702 | char compress (); | |
13703 | int | |
13704 | main () | |
13705 | { | |
13706 | return compress (); | |
13707 | ; | |
13708 | return 0; | |
13709 | } | |
13710 | _ACEOF | |
13711 | if ac_fn_c_try_link "$LINENO"; then : | |
13712 | ac_cv_lib_z_compress=yes | |
13713 | else | |
13714 | ac_cv_lib_z_compress=no | |
13715 | fi | |
13716 | rm -f core conftest.err conftest.$ac_objext \ | |
13717 | conftest$ac_exeext conftest.$ac_ext | |
13718 | LIBS=$ac_check_lib_save_LIBS | |
13719 | fi | |
13720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 | |
13721 | $as_echo "$ac_cv_lib_z_compress" >&6; } | |
13722 | if test "x$ac_cv_lib_z_compress" = xyes; then : | |
13723 | ||
13724 | $as_echo "#define HAVE_ZLIB 1" >>confdefs.h | |
13725 | ||
13726 | fi | |
13727 | ||
13728 | if test "$ac_cv_lib_z_compress" = yes; then | |
13729 | HAVE_ZLIB_TRUE= | |
13730 | HAVE_ZLIB_FALSE='#' | |
13731 | else | |
13732 | HAVE_ZLIB_TRUE='#' | |
13733 | HAVE_ZLIB_FALSE= | |
13734 | fi | |
13735 | ||
13736 | ||
13737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --compress-debug-sections is supported" >&5 | |
13738 | $as_echo_n "checking whether --compress-debug-sections is supported... " >&6; } | |
13739 | if ${libgo_cv_ld_compress+:} false; then : | |
13740 | $as_echo_n "(cached) " >&6 | |
13741 | else | |
13742 | LDFLAGS_hold=$LDFLAGS | |
13743 | LDFLAGS="$LDFLAGS -Wl,--compress-debug-sections=zlib-gnu" | |
13744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13745 | /* end confdefs.h. */ | |
13746 | ||
13747 | int | |
13748 | main () | |
13749 | { | |
13750 | ||
13751 | ; | |
13752 | return 0; | |
13753 | } | |
13754 | _ACEOF | |
13755 | if ac_fn_c_try_link "$LINENO"; then : | |
13756 | libgo_cv_ld_compress=yes | |
13757 | else | |
13758 | libgo_cv_ld_compress=no | |
13759 | fi | |
13760 | rm -f core conftest.err conftest.$ac_objext \ | |
13761 | conftest$ac_exeext conftest.$ac_ext | |
13762 | LDFLAGS=$LDFLAGS_hold | |
13763 | fi | |
13764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_compress" >&5 | |
13765 | $as_echo "$libgo_cv_ld_compress" >&6; } | |
13766 | if test "$libgo_cv_ld_compress" = yes; then | |
13767 | HAVE_COMPRESSED_DEBUG_TRUE= | |
13768 | HAVE_COMPRESSED_DEBUG_FALSE='#' | |
13769 | else | |
13770 | HAVE_COMPRESSED_DEBUG_TRUE='#' | |
13771 | HAVE_COMPRESSED_DEBUG_FALSE= | |
13772 | fi | |
13773 | ||
13774 | ||
13775 | ||
13776 | # Extract the first word of "objcopy", so it can be a program name with args. | |
13777 | set dummy objcopy; ac_word=$2 | |
13778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13779 | $as_echo_n "checking for $ac_word... " >&6; } | |
13780 | if ${ac_cv_prog_OBJCOPY+:} false; then : | |
13781 | $as_echo_n "(cached) " >&6 | |
13782 | else | |
13783 | if test -n "$OBJCOPY"; then | |
13784 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
13785 | else | |
13786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13787 | for as_dir in $PATH | |
13788 | do | |
13789 | IFS=$as_save_IFS | |
13790 | test -z "$as_dir" && as_dir=. | |
13791 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13792 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13793 | ac_cv_prog_OBJCOPY="objcopy" | |
13794 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13795 | break 2 | |
13796 | fi | |
13797 | done | |
13798 | done | |
13799 | IFS=$as_save_IFS | |
13800 | ||
13801 | fi | |
13802 | fi | |
13803 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
13804 | if test -n "$OBJCOPY"; then | |
13805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 | |
13806 | $as_echo "$OBJCOPY" >&6; } | |
13807 | else | |
13808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13809 | $as_echo "no" >&6; } | |
13810 | fi | |
13811 | ||
13812 | ||
13813 | # Extract the first word of "readelf", so it can be a program name with args. | |
13814 | set dummy readelf; ac_word=$2 | |
13815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13816 | $as_echo_n "checking for $ac_word... " >&6; } | |
13817 | if ${ac_cv_prog_READELF+:} false; then : | |
13818 | $as_echo_n "(cached) " >&6 | |
13819 | else | |
13820 | if test -n "$READELF"; then | |
13821 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
13822 | else | |
13823 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13824 | for as_dir in $PATH | |
13825 | do | |
13826 | IFS=$as_save_IFS | |
13827 | test -z "$as_dir" && as_dir=. | |
13828 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13829 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13830 | ac_cv_prog_READELF="readelf" | |
13831 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13832 | break 2 | |
13833 | fi | |
13834 | done | |
13835 | done | |
13836 | IFS=$as_save_IFS | |
13837 | ||
13838 | fi | |
13839 | fi | |
13840 | READELF=$ac_cv_prog_READELF | |
13841 | if test -n "$READELF"; then | |
13842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
13843 | $as_echo "$READELF" >&6; } | |
13844 | else | |
13845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13846 | $as_echo "no" >&6; } | |
13847 | fi | |
13848 | ||
13849 | ||
13850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether objcopy supports debuglink" >&5 | |
13851 | $as_echo_n "checking whether objcopy supports debuglink... " >&6; } | |
13852 | if ${libbacktrace_cv_objcopy_debuglink+:} false; then : | |
13853 | $as_echo_n "(cached) " >&6 | |
13854 | else | |
13855 | if test -n "${with_target_subdir}"; then | |
13856 | libbacktrace_cv_objcopy_debuglink=no | |
13857 | elif ! test -n "${OBJCOPY}"; then | |
13858 | libbacktrace_cv_objcopy_debuglink=no | |
13859 | elif ${OBJCOPY} --help | fgrep add-gnu-debuglink >/dev/null 2>&1; then | |
13860 | libbacktrace_cv_objcopy_debuglink=yes | |
13861 | else | |
13862 | libbacktrace_cv_objcopy_debuglink=no | |
13863 | fi | |
13864 | fi | |
13865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_objcopy_debuglink" >&5 | |
13866 | $as_echo "$libbacktrace_cv_objcopy_debuglink" >&6; } | |
13867 | if test "$libbacktrace_cv_objcopy_debuglink" = yes; then | |
13868 | HAVE_OBJCOPY_DEBUGLINK_TRUE= | |
13869 | HAVE_OBJCOPY_DEBUGLINK_FALSE='#' | |
13870 | else | |
13871 | HAVE_OBJCOPY_DEBUGLINK_TRUE='#' | |
13872 | HAVE_OBJCOPY_DEBUGLINK_FALSE= | |
13873 | fi | |
13874 | ||
13875 | ||
13876 | ||
13877 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
13878 | set dummy dsymutil; ac_word=$2 | |
13879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13880 | $as_echo_n "checking for $ac_word... " >&6; } | |
13881 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
13882 | $as_echo_n "(cached) " >&6 | |
13883 | else | |
13884 | if test -n "$DSYMUTIL"; then | |
13885 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
13886 | else | |
13887 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13888 | for as_dir in $PATH | |
13889 | do | |
13890 | IFS=$as_save_IFS | |
13891 | test -z "$as_dir" && as_dir=. | |
13892 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13893 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13894 | ac_cv_prog_DSYMUTIL="dsymutil" | |
13895 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13896 | break 2 | |
13897 | fi | |
13898 | done | |
13899 | done | |
13900 | IFS=$as_save_IFS | |
13901 | ||
13902 | fi | |
13903 | fi | |
13904 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
13905 | if test -n "$DSYMUTIL"; then | |
13906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
13907 | $as_echo "$DSYMUTIL" >&6; } | |
13908 | else | |
13909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13910 | $as_echo "no" >&6; } | |
13911 | fi | |
13912 | ||
13913 | ||
13914 | if test -n "${DSYMUTIL}" -a "$FORMAT_FILE" = "macho.lo"; then | |
13915 | USE_DSYMUTIL_TRUE= | |
13916 | USE_DSYMUTIL_FALSE='#' | |
13917 | else | |
13918 | USE_DSYMUTIL_TRUE='#' | |
13919 | USE_DSYMUTIL_FALSE= | |
13920 | fi | |
13921 | ||
13922 | ||
13923 | ||
13924 | # Extract the first word of "nm", so it can be a program name with args. | |
13925 | set dummy nm; ac_word=$2 | |
13926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13927 | $as_echo_n "checking for $ac_word... " >&6; } | |
13928 | if ${ac_cv_prog_NM+:} false; then : | |
13929 | $as_echo_n "(cached) " >&6 | |
13930 | else | |
13931 | if test -n "$NM"; then | |
13932 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
13933 | else | |
13934 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13935 | for as_dir in $PATH | |
13936 | do | |
13937 | IFS=$as_save_IFS | |
13938 | test -z "$as_dir" && as_dir=. | |
13939 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13940 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13941 | ac_cv_prog_NM="nm" | |
13942 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13943 | break 2 | |
13944 | fi | |
13945 | done | |
13946 | done | |
13947 | IFS=$as_save_IFS | |
13948 | ||
13949 | fi | |
13950 | fi | |
13951 | NM=$ac_cv_prog_NM | |
13952 | if test -n "$NM"; then | |
13953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 | |
13954 | $as_echo "$NM" >&6; } | |
13955 | else | |
13956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13957 | $as_echo "no" >&6; } | |
13958 | fi | |
13959 | ||
13960 | ||
13961 | ||
13962 | # Extract the first word of "xz", so it can be a program name with args. | |
13963 | set dummy xz; ac_word=$2 | |
13964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13965 | $as_echo_n "checking for $ac_word... " >&6; } | |
13966 | if ${ac_cv_prog_XZ+:} false; then : | |
13967 | $as_echo_n "(cached) " >&6 | |
13968 | else | |
13969 | if test -n "$XZ"; then | |
13970 | ac_cv_prog_XZ="$XZ" # Let the user override the test. | |
13971 | else | |
13972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13973 | for as_dir in $PATH | |
13974 | do | |
13975 | IFS=$as_save_IFS | |
13976 | test -z "$as_dir" && as_dir=. | |
13977 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13978 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13979 | ac_cv_prog_XZ="xz" | |
13980 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13981 | break 2 | |
13982 | fi | |
13983 | done | |
13984 | done | |
13985 | IFS=$as_save_IFS | |
13986 | ||
13987 | fi | |
13988 | fi | |
13989 | XZ=$ac_cv_prog_XZ | |
13990 | if test -n "$XZ"; then | |
13991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XZ" >&5 | |
13992 | $as_echo "$XZ" >&6; } | |
13993 | else | |
13994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13995 | $as_echo "no" >&6; } | |
13996 | fi | |
13997 | ||
13998 | ||
13999 | if test "$XZ" != ""; then | |
14000 | HAVE_XZ_TRUE= | |
14001 | HAVE_XZ_FALSE='#' | |
14002 | else | |
14003 | HAVE_XZ_TRUE='#' | |
14004 | HAVE_XZ_FALSE= | |
14005 | fi | |
14006 | ||
14007 | # Extract the first word of "comm", so it can be a program name with args. | |
14008 | set dummy comm; ac_word=$2 | |
14009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14010 | $as_echo_n "checking for $ac_word... " >&6; } | |
14011 | if ${ac_cv_prog_COMM+:} false; then : | |
14012 | $as_echo_n "(cached) " >&6 | |
14013 | else | |
14014 | if test -n "$COMM"; then | |
14015 | ac_cv_prog_COMM="$COMM" # Let the user override the test. | |
14016 | else | |
14017 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14018 | for as_dir in $PATH | |
14019 | do | |
14020 | IFS=$as_save_IFS | |
14021 | test -z "$as_dir" && as_dir=. | |
14022 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14023 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14024 | ac_cv_prog_COMM="comm" | |
14025 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14026 | break 2 | |
14027 | fi | |
14028 | done | |
14029 | done | |
14030 | IFS=$as_save_IFS | |
14031 | ||
14032 | fi | |
14033 | fi | |
14034 | COMM=$ac_cv_prog_COMM | |
14035 | if test -n "$COMM"; then | |
14036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 | |
14037 | $as_echo "$COMM" >&6; } | |
14038 | else | |
14039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14040 | $as_echo "no" >&6; } | |
14041 | fi | |
14042 | ||
14043 | ||
14044 | if test "$COMM" != ""; then | |
14045 | HAVE_COMM_TRUE= | |
14046 | HAVE_COMM_FALSE='#' | |
14047 | else | |
14048 | HAVE_COMM_TRUE='#' | |
14049 | HAVE_COMM_FALSE= | |
14050 | fi | |
14051 | ||
14052 | ||
14053 | if test "${with_target_subdir}" = "" -a "$FORMAT_FILE" = "elf.lo" -a "${OBJCOPY}" != "" -a "${NM}" != "" -a "${XZ}" != "" -a "${COMM}" != ""; then | |
14054 | HAVE_MINIDEBUG_TRUE= | |
14055 | HAVE_MINIDEBUG_FALSE='#' | |
14056 | else | |
14057 | HAVE_MINIDEBUG_TRUE='#' | |
14058 | HAVE_MINIDEBUG_FALSE= | |
14059 | fi | |
14060 | ||
14061 | ||
14062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_auto_decoder in -llzma" >&5 | |
14063 | $as_echo_n "checking for lzma_auto_decoder in -llzma... " >&6; } | |
14064 | if ${ac_cv_lib_lzma_lzma_auto_decoder+:} false; then : | |
14065 | $as_echo_n "(cached) " >&6 | |
14066 | else | |
14067 | ac_check_lib_save_LIBS=$LIBS | |
14068 | LIBS="-llzma $LIBS" | |
14069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14070 | /* end confdefs.h. */ | |
14071 | ||
14072 | /* Override any GCC internal prototype to avoid an error. | |
14073 | Use char because int might match the return type of a GCC | |
14074 | builtin and then its argument prototype would still apply. */ | |
14075 | #ifdef __cplusplus | |
14076 | extern "C" | |
14077 | #endif | |
14078 | char lzma_auto_decoder (); | |
14079 | int | |
14080 | main () | |
14081 | { | |
14082 | return lzma_auto_decoder (); | |
14083 | ; | |
14084 | return 0; | |
14085 | } | |
14086 | _ACEOF | |
14087 | if ac_fn_c_try_link "$LINENO"; then : | |
14088 | ac_cv_lib_lzma_lzma_auto_decoder=yes | |
14089 | else | |
14090 | ac_cv_lib_lzma_lzma_auto_decoder=no | |
14091 | fi | |
14092 | rm -f core conftest.err conftest.$ac_objext \ | |
14093 | conftest$ac_exeext conftest.$ac_ext | |
14094 | LIBS=$ac_check_lib_save_LIBS | |
14095 | fi | |
14096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_auto_decoder" >&5 | |
14097 | $as_echo "$ac_cv_lib_lzma_lzma_auto_decoder" >&6; } | |
14098 | if test "x$ac_cv_lib_lzma_lzma_auto_decoder" = xyes; then : | |
14099 | ||
14100 | $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h | |
14101 | ||
14102 | fi | |
14103 | ||
14104 | if test "$ac_cv_lib_lzma_lzma_auto_decoder" = yes; then | |
14105 | HAVE_LIBLZMA_TRUE= | |
14106 | HAVE_LIBLZMA_FALSE='#' | |
14107 | else | |
14108 | HAVE_LIBLZMA_TRUE='#' | |
14109 | HAVE_LIBLZMA_FALSE= | |
14110 | fi | |
14111 | ||
14112 | ||
14113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests can run" >&5 | |
14114 | $as_echo_n "checking whether tests can run... " >&6; } | |
14115 | if ${libbacktrace_cv_sys_native+:} false; then : | |
14116 | $as_echo_n "(cached) " >&6 | |
14117 | else | |
14118 | if test "$cross_compiling" = yes; then : | |
14119 | libbacktrace_cv_sys_native=no | |
14120 | else | |
14121 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14122 | /* end confdefs.h. */ | |
14123 | ||
14124 | int | |
14125 | main () | |
14126 | { | |
14127 | return 0; | |
14128 | ; | |
14129 | return 0; | |
14130 | } | |
14131 | _ACEOF | |
14132 | if ac_fn_c_try_run "$LINENO"; then : | |
14133 | libbacktrace_cv_sys_native=yes | |
14134 | else | |
14135 | libbacktrace_cv_sys_native=no | |
14136 | fi | |
14137 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
14138 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
14139 | fi | |
14140 | ||
14141 | fi | |
14142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_native" >&5 | |
14143 | $as_echo "$libbacktrace_cv_sys_native" >&6; } | |
14144 | if test "$libbacktrace_cv_sys_native" = "yes"; then | |
14145 | NATIVE_TRUE= | |
14146 | NATIVE_FALSE='#' | |
14147 | else | |
14148 | NATIVE_TRUE='#' | |
14149 | NATIVE_FALSE= | |
14150 | fi | |
14151 | ||
14152 | ||
14153 | if test "${multilib}" = "yes"; then | |
14154 | multilib_arg="--enable-multilib" | |
14155 | else | |
14156 | multilib_arg= | |
14157 | fi | |
14158 | ||
14159 | ac_config_files="$ac_config_files Makefile backtrace-supported.h" | |
14160 | ||
14161 | ac_config_files="$ac_config_files install-debuginfo-for-buildid.sh" | |
14162 | ||
14163 | ||
14164 | # We need multilib support, but only if configuring for the target. | |
14165 | ac_config_commands="$ac_config_commands default" | |
14166 | ||
14167 | ||
14168 | cat >confcache <<\_ACEOF | |
14169 | # This file is a shell script that caches the results of configure | |
14170 | # tests run on this system so they can be shared between configure | |
14171 | # scripts and configure runs, see configure's option --config-cache. | |
14172 | # It is not useful on other systems. If it contains results you don't | |
14173 | # want to keep, you may remove or edit it. | |
14174 | # | |
14175 | # config.status only pays attention to the cache file if you give it | |
14176 | # the --recheck option to rerun configure. | |
14177 | # | |
14178 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
14179 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14180 | # following values. | |
14181 | ||
14182 | _ACEOF | |
14183 | ||
14184 | # The following way of writing the cache mishandles newlines in values, | |
14185 | # but we know of no workaround that is simple, portable, and efficient. | |
14186 | # So, we kill variables containing newlines. | |
14187 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
14188 | # and sets the high bit in the cache file unless we assign to the vars. | |
14189 | ( | |
14190 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14191 | eval ac_val=\$$ac_var | |
14192 | case $ac_val in #( | |
14193 | *${as_nl}*) | |
14194 | case $ac_var in #( | |
14195 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14196 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14197 | esac | |
14198 | case $ac_var in #( | |
14199 | _ | IFS | as_nl) ;; #( | |
14200 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14201 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14202 | esac ;; | |
14203 | esac | |
14204 | done | |
14205 | ||
14206 | (set) 2>&1 | | |
14207 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
14208 | *${as_nl}ac_space=\ *) | |
14209 | # `set' does not quote correctly, so add quotes: double-quote | |
14210 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
14211 | sed -n \ | |
14212 | "s/'/'\\\\''/g; | |
14213 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
14214 | ;; #( | |
14215 | *) | |
14216 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
14217 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
14218 | ;; | |
14219 | esac | | |
14220 | sort | |
14221 | ) | | |
14222 | sed ' | |
14223 | /^ac_cv_env_/b end | |
14224 | t clear | |
14225 | :clear | |
14226 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
14227 | t end | |
14228 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
14229 | :end' >>confcache | |
14230 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14231 | if test -w "$cache_file"; then | |
14232 | if test "x$cache_file" != "x/dev/null"; then | |
14233 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
14234 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
14235 | if test ! -f "$cache_file" || test -h "$cache_file"; then | |
14236 | cat confcache >"$cache_file" | |
14237 | else | |
14238 | case $cache_file in #( | |
14239 | */* | ?:*) | |
14240 | mv -f confcache "$cache_file"$$ && | |
14241 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
14242 | *) | |
14243 | mv -f confcache "$cache_file" ;; | |
14244 | esac | |
14245 | fi | |
14246 | fi | |
14247 | else | |
14248 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
14249 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
14250 | fi | |
14251 | fi | |
14252 | rm -f confcache | |
14253 | ||
14254 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
14255 | # Let make expand exec_prefix. | |
14256 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
14257 | ||
14258 | DEFS=-DHAVE_CONFIG_H | |
14259 | ||
14260 | ac_libobjs= | |
14261 | ac_ltlibobjs= | |
14262 | U= | |
14263 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
14264 | # 1. Remove the extension, and $U if already installed. | |
14265 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
14266 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
14267 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14268 | # will be set to the directory where LIBOBJS objects are built. | |
14269 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14270 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
14271 | done | |
14272 | LIBOBJS=$ac_libobjs | |
14273 | ||
14274 | LTLIBOBJS=$ac_ltlibobjs | |
14275 | ||
14276 | ||
14277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 | |
14278 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
14279 | if test -n "$am_sleep_pid"; then | |
14280 | # Hide warnings about reused PIDs. | |
14281 | wait $am_sleep_pid 2>/dev/null | |
14282 | fi | |
14283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
14284 | $as_echo "done" >&6; } | |
14285 | if test -n "$EXEEXT"; then | |
14286 | am__EXEEXT_TRUE= | |
14287 | am__EXEEXT_FALSE='#' | |
14288 | else | |
14289 | am__EXEEXT_TRUE='#' | |
14290 | am__EXEEXT_FALSE= | |
14291 | fi | |
14292 | ||
14293 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
14294 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. | |
14295 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
14296 | fi | |
14297 | if test -z "${HAVE_DWZ_TRUE}" && test -z "${HAVE_DWZ_FALSE}"; then | |
14298 | as_fn_error $? "conditional \"HAVE_DWZ\" was never defined. | |
14299 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
14300 | fi | |
14301 | if test -z "${HAVE_ELF_TRUE}" && test -z "${HAVE_ELF_FALSE}"; then | |
14302 | as_fn_error $? "conditional \"HAVE_ELF\" was never defined. | |
14303 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
14304 | fi | |
14305 | if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then | |
14306 | as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined. | |
14307 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
14308 | fi | |
14309 | if test -z "${HAVE_DWARF5_TRUE}" && test -z "${HAVE_DWARF5_FALSE}"; then | |
14310 | as_fn_error $? "conditional \"HAVE_DWARF5\" was never defined. | |
14311 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
14312 | fi | |
14313 | if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then | |
14314 | as_fn_error $? "conditional \"HAVE_ZLIB\" was never defined. | |
14315 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
14316 | fi | |
14317 | if test -z "${HAVE_COMPRESSED_DEBUG_TRUE}" && test -z "${HAVE_COMPRESSED_DEBUG_FALSE}"; then | |
14318 | as_fn_error $? "conditional \"HAVE_COMPRESSED_DEBUG\" was never defined. | |
14319 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
14320 | fi | |
14321 | if test -z "${HAVE_OBJCOPY_DEBUGLINK_TRUE}" && test -z "${HAVE_OBJCOPY_DEBUGLINK_FALSE}"; then | |
14322 | as_fn_error $? "conditional \"HAVE_OBJCOPY_DEBUGLINK\" was never defined. | |
14323 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
14324 | fi | |
14325 | if test -z "${USE_DSYMUTIL_TRUE}" && test -z "${USE_DSYMUTIL_FALSE}"; then | |
14326 | as_fn_error $? "conditional \"USE_DSYMUTIL\" was never defined. | |
14327 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
14328 | fi | |
14329 | if test -z "${HAVE_XZ_TRUE}" && test -z "${HAVE_XZ_FALSE}"; then | |
14330 | as_fn_error $? "conditional \"HAVE_XZ\" was never defined. | |
14331 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
14332 | fi | |
14333 | if test -z "${HAVE_COMM_TRUE}" && test -z "${HAVE_COMM_FALSE}"; then | |
14334 | as_fn_error $? "conditional \"HAVE_COMM\" was never defined. | |
14335 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
14336 | fi | |
14337 | if test -z "${HAVE_MINIDEBUG_TRUE}" && test -z "${HAVE_MINIDEBUG_FALSE}"; then | |
14338 | as_fn_error $? "conditional \"HAVE_MINIDEBUG\" was never defined. | |
14339 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
14340 | fi | |
14341 | if test -z "${HAVE_LIBLZMA_TRUE}" && test -z "${HAVE_LIBLZMA_FALSE}"; then | |
14342 | as_fn_error $? "conditional \"HAVE_LIBLZMA\" was never defined. | |
14343 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
14344 | fi | |
14345 | if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then | |
14346 | as_fn_error $? "conditional \"NATIVE\" was never defined. | |
14347 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
14348 | fi | |
14349 | ||
14350 | : "${CONFIG_STATUS=./config.status}" | |
14351 | ac_write_fail=0 | |
14352 | ac_clean_files_save=$ac_clean_files | |
14353 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
14354 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
14355 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14356 | as_write_fail=0 | |
14357 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
14358 | #! $SHELL | |
14359 | # Generated by $as_me. | |
14360 | # Run this file to recreate the current configuration. | |
14361 | # Compiler output produced by configure, useful for debugging | |
14362 | # configure, is in config.log if it exists. | |
14363 | ||
14364 | debug=false | |
14365 | ac_cs_recheck=false | |
14366 | ac_cs_silent=false | |
14367 | ||
14368 | SHELL=\${CONFIG_SHELL-$SHELL} | |
14369 | export SHELL | |
14370 | _ASEOF | |
14371 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
14372 | ## -------------------- ## | |
14373 | ## M4sh Initialization. ## | |
14374 | ## -------------------- ## | |
14375 | ||
14376 | # Be more Bourne compatible | |
14377 | DUALCASE=1; export DUALCASE # for MKS sh | |
14378 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
14379 | emulate sh | |
14380 | NULLCMD=: | |
14381 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
14382 | # is contrary to our usage. Disable this feature. | |
14383 | alias -g '${1+"$@"}'='"$@"' | |
14384 | setopt NO_GLOB_SUBST | |
14385 | else | |
14386 | case `(set -o) 2>/dev/null` in #( | |
14387 | *posix*) : | |
14388 | set -o posix ;; #( | |
14389 | *) : | |
14390 | ;; | |
14391 | esac | |
14392 | fi | |
14393 | ||
14394 | ||
14395 | as_nl=' | |
14396 | ' | |
14397 | export as_nl | |
14398 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
14399 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
14400 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
14401 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
14402 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
14403 | # but without wasting forks for bash or zsh. | |
14404 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
14405 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14406 | as_echo='print -r --' | |
14407 | as_echo_n='print -rn --' | |
14408 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14409 | as_echo='printf %s\n' | |
14410 | as_echo_n='printf %s' | |
14411 | else | |
14412 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
14413 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
14414 | as_echo_n='/usr/ucb/echo -n' | |
14415 | else | |
14416 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
14417 | as_echo_n_body='eval | |
14418 | arg=$1; | |
14419 | case $arg in #( | |
14420 | *"$as_nl"*) | |
14421 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
14422 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
14423 | esac; | |
14424 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
14425 | ' | |
14426 | export as_echo_n_body | |
14427 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
14428 | fi | |
14429 | export as_echo_body | |
14430 | as_echo='sh -c $as_echo_body as_echo' | |
14431 | fi | |
14432 | ||
14433 | # The user is always right. | |
14434 | if test "${PATH_SEPARATOR+set}" != set; then | |
14435 | PATH_SEPARATOR=: | |
14436 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
14437 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
14438 | PATH_SEPARATOR=';' | |
14439 | } | |
14440 | fi | |
14441 | ||
14442 | ||
14443 | # IFS | |
14444 | # We need space, tab and new line, in precisely that order. Quoting is | |
14445 | # there to prevent editors from complaining about space-tab. | |
14446 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14447 | # splitting by setting IFS to empty value.) | |
14448 | IFS=" "" $as_nl" | |
14449 | ||
14450 | # Find who we are. Look in the path if we contain no directory separator. | |
14451 | as_myself= | |
14452 | case $0 in #(( | |
14453 | *[\\/]* ) as_myself=$0 ;; | |
14454 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14455 | for as_dir in $PATH | |
14456 | do | |
14457 | IFS=$as_save_IFS | |
14458 | test -z "$as_dir" && as_dir=. | |
14459 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14460 | done | |
14461 | IFS=$as_save_IFS | |
14462 | ||
14463 | ;; | |
14464 | esac | |
14465 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14466 | # in which case we are not to be found in the path. | |
14467 | if test "x$as_myself" = x; then | |
14468 | as_myself=$0 | |
14469 | fi | |
14470 | if test ! -f "$as_myself"; then | |
14471 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
14472 | exit 1 | |
14473 | fi | |
14474 | ||
14475 | # Unset variables that we do not need and which cause bugs (e.g. in | |
14476 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
14477 | # suppresses any "Segmentation fault" message there. '((' could | |
14478 | # trigger a bug in pdksh 5.2.14. | |
14479 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
14480 | do eval test x\${$as_var+set} = xset \ | |
14481 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
14482 | done | |
14483 | PS1='$ ' | |
14484 | PS2='> ' | |
14485 | PS4='+ ' | |
14486 | ||
14487 | # NLS nuisances. | |
14488 | LC_ALL=C | |
14489 | export LC_ALL | |
14490 | LANGUAGE=C | |
14491 | export LANGUAGE | |
14492 | ||
14493 | # CDPATH. | |
14494 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14495 | ||
14496 | ||
14497 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
14498 | # ---------------------------------------- | |
14499 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
14500 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
14501 | # script with STATUS, using 1 if that was 0. | |
14502 | as_fn_error () | |
14503 | { | |
14504 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
14505 | if test "$4"; then | |
14506 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
14507 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
14508 | fi | |
14509 | $as_echo "$as_me: error: $2" >&2 | |
14510 | as_fn_exit $as_status | |
14511 | } # as_fn_error | |
14512 | ||
14513 | ||
14514 | # as_fn_set_status STATUS | |
14515 | # ----------------------- | |
14516 | # Set $? to STATUS, without forking. | |
14517 | as_fn_set_status () | |
14518 | { | |
14519 | return $1 | |
14520 | } # as_fn_set_status | |
14521 | ||
14522 | # as_fn_exit STATUS | |
14523 | # ----------------- | |
14524 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
14525 | as_fn_exit () | |
14526 | { | |
14527 | set +e | |
14528 | as_fn_set_status $1 | |
14529 | exit $1 | |
14530 | } # as_fn_exit | |
14531 | ||
14532 | # as_fn_unset VAR | |
14533 | # --------------- | |
14534 | # Portably unset VAR. | |
14535 | as_fn_unset () | |
14536 | { | |
14537 | { eval $1=; unset $1;} | |
14538 | } | |
14539 | as_unset=as_fn_unset | |
14540 | # as_fn_append VAR VALUE | |
14541 | # ---------------------- | |
14542 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
14543 | # advantage of any shell optimizations that allow amortized linear growth over | |
14544 | # repeated appends, instead of the typical quadratic growth present in naive | |
14545 | # implementations. | |
14546 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
14547 | eval 'as_fn_append () | |
14548 | { | |
14549 | eval $1+=\$2 | |
14550 | }' | |
14551 | else | |
14552 | as_fn_append () | |
14553 | { | |
14554 | eval $1=\$$1\$2 | |
14555 | } | |
14556 | fi # as_fn_append | |
14557 | ||
14558 | # as_fn_arith ARG... | |
14559 | # ------------------ | |
14560 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
14561 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
14562 | # must be portable across $(()) and expr. | |
14563 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
14564 | eval 'as_fn_arith () | |
14565 | { | |
14566 | as_val=$(( $* )) | |
14567 | }' | |
14568 | else | |
14569 | as_fn_arith () | |
14570 | { | |
14571 | as_val=`expr "$@" || test $? -eq 1` | |
14572 | } | |
14573 | fi # as_fn_arith | |
14574 | ||
14575 | ||
14576 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
14577 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
14578 | as_expr=expr | |
14579 | else | |
14580 | as_expr=false | |
14581 | fi | |
14582 | ||
14583 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
14584 | as_basename=basename | |
14585 | else | |
14586 | as_basename=false | |
14587 | fi | |
14588 | ||
14589 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
14590 | as_dirname=dirname | |
14591 | else | |
14592 | as_dirname=false | |
14593 | fi | |
14594 | ||
14595 | as_me=`$as_basename -- "$0" || | |
14596 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
14597 | X"$0" : 'X\(//\)$' \| \ | |
14598 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
14599 | $as_echo X/"$0" | | |
14600 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
14601 | s//\1/ | |
14602 | q | |
14603 | } | |
14604 | /^X\/\(\/\/\)$/{ | |
14605 | s//\1/ | |
14606 | q | |
14607 | } | |
14608 | /^X\/\(\/\).*/{ | |
14609 | s//\1/ | |
14610 | q | |
14611 | } | |
14612 | s/.*/./; q'` | |
14613 | ||
14614 | # Avoid depending upon Character Ranges. | |
14615 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
14616 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
14617 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
14618 | as_cr_digits='0123456789' | |
14619 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
14620 | ||
14621 | ECHO_C= ECHO_N= ECHO_T= | |
14622 | case `echo -n x` in #((((( | |
14623 | -n*) | |
14624 | case `echo 'xy\c'` in | |
14625 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
14626 | xy) ECHO_C='\c';; | |
14627 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
14628 | ECHO_T=' ';; | |
14629 | esac;; | |
14630 | *) | |
14631 | ECHO_N='-n';; | |
14632 | esac | |
14633 | ||
14634 | rm -f conf$$ conf$$.exe conf$$.file | |
14635 | if test -d conf$$.dir; then | |
14636 | rm -f conf$$.dir/conf$$.file | |
14637 | else | |
14638 | rm -f conf$$.dir | |
14639 | mkdir conf$$.dir 2>/dev/null | |
14640 | fi | |
14641 | if (echo >conf$$.file) 2>/dev/null; then | |
14642 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
14643 | as_ln_s='ln -s' | |
14644 | # ... but there are two gotchas: | |
14645 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
14646 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
14647 | # In both cases, we have to default to `cp -pR'. | |
14648 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
14649 | as_ln_s='cp -pR' | |
14650 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
14651 | as_ln_s=ln | |
14652 | else | |
14653 | as_ln_s='cp -pR' | |
14654 | fi | |
14655 | else | |
14656 | as_ln_s='cp -pR' | |
14657 | fi | |
14658 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
14659 | rmdir conf$$.dir 2>/dev/null | |
14660 | ||
14661 | ||
14662 | # as_fn_mkdir_p | |
14663 | # ------------- | |
14664 | # Create "$as_dir" as a directory, including parents if necessary. | |
14665 | as_fn_mkdir_p () | |
14666 | { | |
14667 | ||
14668 | case $as_dir in #( | |
14669 | -*) as_dir=./$as_dir;; | |
14670 | esac | |
14671 | test -d "$as_dir" || eval $as_mkdir_p || { | |
14672 | as_dirs= | |
14673 | while :; do | |
14674 | case $as_dir in #( | |
14675 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
14676 | *) as_qdir=$as_dir;; | |
14677 | esac | |
14678 | as_dirs="'$as_qdir' $as_dirs" | |
14679 | as_dir=`$as_dirname -- "$as_dir" || | |
14680 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14681 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14682 | X"$as_dir" : 'X\(//\)$' \| \ | |
14683 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
14684 | $as_echo X"$as_dir" | | |
14685 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14686 | s//\1/ | |
14687 | q | |
14688 | } | |
14689 | /^X\(\/\/\)[^/].*/{ | |
14690 | s//\1/ | |
14691 | q | |
14692 | } | |
14693 | /^X\(\/\/\)$/{ | |
14694 | s//\1/ | |
14695 | q | |
14696 | } | |
14697 | /^X\(\/\).*/{ | |
14698 | s//\1/ | |
14699 | q | |
14700 | } | |
14701 | s/.*/./; q'` | |
14702 | test -d "$as_dir" && break | |
14703 | done | |
14704 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
14705 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
14706 | ||
14707 | ||
14708 | } # as_fn_mkdir_p | |
14709 | if mkdir -p . 2>/dev/null; then | |
14710 | as_mkdir_p='mkdir -p "$as_dir"' | |
14711 | else | |
14712 | test -d ./-p && rmdir ./-p | |
14713 | as_mkdir_p=false | |
14714 | fi | |
14715 | ||
14716 | ||
14717 | # as_fn_executable_p FILE | |
14718 | # ----------------------- | |
14719 | # Test if FILE is an executable regular file. | |
14720 | as_fn_executable_p () | |
14721 | { | |
14722 | test -f "$1" && test -x "$1" | |
14723 | } # as_fn_executable_p | |
14724 | as_test_x='test -x' | |
14725 | as_executable_p=as_fn_executable_p | |
14726 | ||
14727 | # Sed expression to map a string onto a valid CPP name. | |
14728 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
14729 | ||
14730 | # Sed expression to map a string onto a valid variable name. | |
14731 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
14732 | ||
14733 | ||
14734 | exec 6>&1 | |
14735 | ## ----------------------------------- ## | |
14736 | ## Main body of $CONFIG_STATUS script. ## | |
14737 | ## ----------------------------------- ## | |
14738 | _ASEOF | |
14739 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
14740 | ||
14741 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14742 | # Save the log message, to keep $0 and so on meaningful, and to | |
14743 | # report actual input values of CONFIG_FILES etc. instead of their | |
14744 | # values after options handling. | |
14745 | ac_log=" | |
14746 | This file was extended by package-unused $as_me version-unused, which was | |
14747 | generated by GNU Autoconf 2.69. Invocation command line was | |
14748 | ||
14749 | CONFIG_FILES = $CONFIG_FILES | |
14750 | CONFIG_HEADERS = $CONFIG_HEADERS | |
14751 | CONFIG_LINKS = $CONFIG_LINKS | |
14752 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
14753 | $ $0 $@ | |
14754 | ||
14755 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
14756 | " | |
14757 | ||
14758 | _ACEOF | |
14759 | ||
14760 | case $ac_config_files in *" | |
14761 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
14762 | esac | |
14763 | ||
14764 | case $ac_config_headers in *" | |
14765 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
14766 | esac | |
14767 | ||
14768 | ||
14769 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14770 | # Files that config.status was made for. | |
14771 | config_files="$ac_config_files" | |
14772 | config_headers="$ac_config_headers" | |
14773 | config_commands="$ac_config_commands" | |
14774 | ||
14775 | _ACEOF | |
14776 | ||
14777 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14778 | ac_cs_usage="\ | |
14779 | \`$as_me' instantiates files and other configuration actions | |
14780 | from templates according to the current configuration. Unless the files | |
14781 | and actions are specified as TAGs, all are instantiated by default. | |
14782 | ||
14783 | Usage: $0 [OPTION]... [TAG]... | |
14784 | ||
14785 | -h, --help print this help, then exit | |
14786 | -V, --version print version number and configuration settings, then exit | |
14787 | --config print configuration, then exit | |
14788 | -q, --quiet, --silent | |
14789 | do not print progress messages | |
14790 | -d, --debug don't remove temporary files | |
14791 | --recheck update $as_me by reconfiguring in the same conditions | |
14792 | --file=FILE[:TEMPLATE] | |
14793 | instantiate the configuration file FILE | |
14794 | --header=FILE[:TEMPLATE] | |
14795 | instantiate the configuration header FILE | |
14796 | ||
14797 | Configuration files: | |
14798 | $config_files | |
14799 | ||
14800 | Configuration headers: | |
14801 | $config_headers | |
14802 | ||
14803 | Configuration commands: | |
14804 | $config_commands | |
14805 | ||
14806 | Report bugs to the package provider." | |
14807 | ||
14808 | _ACEOF | |
14809 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14810 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
14811 | ac_cs_version="\\ | |
14812 | package-unused config.status version-unused | |
14813 | configured by $0, generated by GNU Autoconf 2.69, | |
14814 | with options \\"\$ac_cs_config\\" | |
14815 | ||
14816 | Copyright (C) 2012 Free Software Foundation, Inc. | |
14817 | This config.status script is free software; the Free Software Foundation | |
14818 | gives unlimited permission to copy, distribute and modify it." | |
14819 | ||
14820 | ac_pwd='$ac_pwd' | |
14821 | srcdir='$srcdir' | |
14822 | INSTALL='$INSTALL' | |
14823 | MKDIR_P='$MKDIR_P' | |
14824 | AWK='$AWK' | |
14825 | test -n "\$AWK" || AWK=awk | |
14826 | _ACEOF | |
14827 | ||
14828 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14829 | # The default lists apply if the user does not specify any file. | |
14830 | ac_need_defaults=: | |
14831 | while test $# != 0 | |
14832 | do | |
14833 | case $1 in | |
14834 | --*=?*) | |
14835 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
14836 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
14837 | ac_shift=: | |
14838 | ;; | |
14839 | --*=) | |
14840 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
14841 | ac_optarg= | |
14842 | ac_shift=: | |
14843 | ;; | |
14844 | *) | |
14845 | ac_option=$1 | |
14846 | ac_optarg=$2 | |
14847 | ac_shift=shift | |
14848 | ;; | |
14849 | esac | |
14850 | ||
14851 | case $ac_option in | |
14852 | # Handling of the options. | |
14853 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
14854 | ac_cs_recheck=: ;; | |
14855 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
14856 | $as_echo "$ac_cs_version"; exit ;; | |
14857 | --config | --confi | --conf | --con | --co | --c ) | |
14858 | $as_echo "$ac_cs_config"; exit ;; | |
14859 | --debug | --debu | --deb | --de | --d | -d ) | |
14860 | debug=: ;; | |
14861 | --file | --fil | --fi | --f ) | |
14862 | $ac_shift | |
14863 | case $ac_optarg in | |
14864 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
14865 | '') as_fn_error $? "missing file argument" ;; | |
14866 | esac | |
14867 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
14868 | ac_need_defaults=false;; | |
14869 | --header | --heade | --head | --hea ) | |
14870 | $ac_shift | |
14871 | case $ac_optarg in | |
14872 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
14873 | esac | |
14874 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
14875 | ac_need_defaults=false;; | |
14876 | --he | --h) | |
14877 | # Conflict between --help and --header | |
14878 | as_fn_error $? "ambiguous option: \`$1' | |
14879 | Try \`$0 --help' for more information.";; | |
14880 | --help | --hel | -h ) | |
14881 | $as_echo "$ac_cs_usage"; exit ;; | |
14882 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
14883 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
14884 | ac_cs_silent=: ;; | |
14885 | ||
14886 | # This is an error. | |
14887 | -*) as_fn_error $? "unrecognized option: \`$1' | |
14888 | Try \`$0 --help' for more information." ;; | |
14889 | ||
14890 | *) as_fn_append ac_config_targets " $1" | |
14891 | ac_need_defaults=false ;; | |
14892 | ||
14893 | esac | |
14894 | shift | |
14895 | done | |
14896 | ||
14897 | ac_configure_extra_args= | |
14898 | ||
14899 | if $ac_cs_silent; then | |
14900 | exec 6>/dev/null | |
14901 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
14902 | fi | |
14903 | ||
14904 | _ACEOF | |
14905 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14906 | if \$ac_cs_recheck; then | |
14907 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
14908 | shift | |
14909 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
14910 | CONFIG_SHELL='$SHELL' | |
14911 | export CONFIG_SHELL | |
14912 | exec "\$@" | |
14913 | fi | |
14914 | ||
14915 | _ACEOF | |
14916 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14917 | exec 5>>config.log | |
14918 | { | |
14919 | echo | |
14920 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
14921 | ## Running $as_me. ## | |
14922 | _ASBOX | |
14923 | $as_echo "$ac_log" | |
14924 | } >&5 | |
14925 | ||
14926 | _ACEOF | |
14927 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14928 | # | |
14929 | # INIT-COMMANDS | |
14930 | # | |
14931 | ||
14932 | srcdir="$srcdir" | |
14933 | host="$host" | |
14934 | target="$target" | |
14935 | with_multisubdir="$with_multisubdir" | |
14936 | with_multisrctop="$with_multisrctop" | |
14937 | with_target_subdir="$with_target_subdir" | |
14938 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
14939 | multi_basedir="$multi_basedir" | |
14940 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
14941 | CC="$CC" | |
14942 | CXX="$CXX" | |
14943 | GFORTRAN="$GFORTRAN" | |
14944 | GDC="$GDC" | |
14945 | ||
14946 | ||
14947 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
14948 | # if CDPATH is set. | |
14949 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14950 | ||
14951 | sed_quote_subst='$sed_quote_subst' | |
14952 | double_quote_subst='$double_quote_subst' | |
14953 | delay_variable_subst='$delay_variable_subst' | |
14954 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
14955 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
14956 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
14957 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
14958 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
14959 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
14960 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
14961 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
14962 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
14963 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
14964 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
14965 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
14966 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
14967 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
14968 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
14969 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
14970 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
14971 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
14972 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
14973 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
14974 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
14975 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
14976 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
14977 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
14978 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
14979 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
14980 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
14981 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
14982 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
14983 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
14984 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
14985 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
14986 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
14987 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
14988 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
14989 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
14990 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
14991 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
14992 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
14993 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
14994 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
14995 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
14996 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
14997 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
14998 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
14999 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
15000 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
15001 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
15002 | 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"`' | |
15003 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
15004 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
15005 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
15006 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
15007 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
15008 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
15009 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
15010 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
15011 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
15012 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
15013 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
15014 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
15015 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
15016 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
15017 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
15018 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
15019 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
15020 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
15021 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
15022 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
15023 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
15024 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
15025 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
15026 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
15027 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
15028 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
15029 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
15030 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
15031 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
15032 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
15033 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
15034 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
15035 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
15036 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
15037 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
15038 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
15039 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
15040 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
15041 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
15042 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
15043 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
15044 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
15045 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
15046 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
15047 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
15048 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
15049 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
15050 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
15051 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
15052 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
15053 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
15054 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
15055 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
15056 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
15057 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
15058 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
15059 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
15060 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
15061 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
15062 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
15063 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
15064 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
15065 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
15066 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
15067 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
15068 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
15069 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
15070 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
15071 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
15072 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
15073 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
15074 | ||
15075 | LTCC='$LTCC' | |
15076 | LTCFLAGS='$LTCFLAGS' | |
15077 | compiler='$compiler_DEFAULT' | |
15078 | ||
15079 | # A function that is used when there is no print builtin or printf. | |
15080 | func_fallback_echo () | |
15081 | { | |
15082 | eval 'cat <<_LTECHO_EOF | |
15083 | \$1 | |
15084 | _LTECHO_EOF' | |
15085 | } | |
15086 | ||
15087 | # Quote evaled strings. | |
15088 | for var in SHELL \ | |
15089 | ECHO \ | |
15090 | SED \ | |
15091 | GREP \ | |
15092 | EGREP \ | |
15093 | FGREP \ | |
15094 | LD \ | |
15095 | NM \ | |
15096 | LN_S \ | |
15097 | lt_SP2NL \ | |
15098 | lt_NL2SP \ | |
15099 | reload_flag \ | |
15100 | OBJDUMP \ | |
15101 | deplibs_check_method \ | |
15102 | file_magic_cmd \ | |
15103 | AR \ | |
15104 | AR_FLAGS \ | |
15105 | STRIP \ | |
15106 | RANLIB \ | |
15107 | CC \ | |
15108 | CFLAGS \ | |
15109 | compiler \ | |
15110 | lt_cv_sys_global_symbol_pipe \ | |
15111 | lt_cv_sys_global_symbol_to_cdecl \ | |
15112 | lt_cv_sys_global_symbol_to_c_name_address \ | |
15113 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
15114 | lt_prog_compiler_no_builtin_flag \ | |
15115 | lt_prog_compiler_wl \ | |
15116 | lt_prog_compiler_pic \ | |
15117 | lt_prog_compiler_static \ | |
15118 | lt_cv_prog_compiler_c_o \ | |
15119 | need_locks \ | |
15120 | DSYMUTIL \ | |
15121 | NMEDIT \ | |
15122 | LIPO \ | |
15123 | OTOOL \ | |
15124 | OTOOL64 \ | |
15125 | shrext_cmds \ | |
15126 | export_dynamic_flag_spec \ | |
15127 | whole_archive_flag_spec \ | |
15128 | compiler_needs_object \ | |
15129 | with_gnu_ld \ | |
15130 | allow_undefined_flag \ | |
15131 | no_undefined_flag \ | |
15132 | hardcode_libdir_flag_spec \ | |
15133 | hardcode_libdir_flag_spec_ld \ | |
15134 | hardcode_libdir_separator \ | |
15135 | fix_srcfile_path \ | |
15136 | exclude_expsyms \ | |
15137 | include_expsyms \ | |
15138 | file_list_spec \ | |
15139 | variables_saved_for_relink \ | |
15140 | libname_spec \ | |
15141 | library_names_spec \ | |
15142 | soname_spec \ | |
15143 | install_override_mode \ | |
15144 | finish_eval \ | |
15145 | old_striplib \ | |
15146 | striplib; do | |
15147 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
15148 | *[\\\\\\\`\\"\\\$]*) | |
15149 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
15150 | ;; | |
15151 | *) | |
15152 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
15153 | ;; | |
15154 | esac | |
15155 | done | |
15156 | ||
15157 | # Double-quote double-evaled strings. | |
15158 | for var in reload_cmds \ | |
15159 | old_postinstall_cmds \ | |
15160 | old_postuninstall_cmds \ | |
15161 | old_archive_cmds \ | |
15162 | extract_expsyms_cmds \ | |
15163 | old_archive_from_new_cmds \ | |
15164 | old_archive_from_expsyms_cmds \ | |
15165 | archive_cmds \ | |
15166 | archive_expsym_cmds \ | |
15167 | module_cmds \ | |
15168 | module_expsym_cmds \ | |
15169 | export_symbols_cmds \ | |
15170 | prelink_cmds \ | |
15171 | postinstall_cmds \ | |
15172 | postuninstall_cmds \ | |
15173 | finish_cmds \ | |
15174 | sys_lib_search_path_spec \ | |
15175 | sys_lib_dlsearch_path_spec; do | |
15176 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
15177 | *[\\\\\\\`\\"\\\$]*) | |
15178 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
15179 | ;; | |
15180 | *) | |
15181 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
15182 | ;; | |
15183 | esac | |
15184 | done | |
15185 | ||
15186 | ac_aux_dir='$ac_aux_dir' | |
15187 | xsi_shell='$xsi_shell' | |
15188 | lt_shell_append='$lt_shell_append' | |
15189 | ||
15190 | # See if we are running on zsh, and set the options which allow our | |
15191 | # commands through without removal of \ escapes INIT. | |
15192 | if test -n "\${ZSH_VERSION+set}" ; then | |
15193 | setopt NO_GLOB_SUBST | |
15194 | fi | |
15195 | ||
15196 | ||
15197 | PACKAGE='$PACKAGE' | |
15198 | VERSION='$VERSION' | |
15199 | TIMESTAMP='$TIMESTAMP' | |
15200 | RM='$RM' | |
15201 | ofile='$ofile' | |
15202 | ||
15203 | ||
15204 | ||
15205 | ||
15206 | GCC="$GCC" | |
15207 | CC="$CC" | |
15208 | acx_cv_header_stdint="$acx_cv_header_stdint" | |
15209 | acx_cv_type_int8_t="$acx_cv_type_int8_t" | |
15210 | acx_cv_type_int16_t="$acx_cv_type_int16_t" | |
15211 | acx_cv_type_int32_t="$acx_cv_type_int32_t" | |
15212 | acx_cv_type_int64_t="$acx_cv_type_int64_t" | |
15213 | acx_cv_type_intptr_t="$acx_cv_type_intptr_t" | |
15214 | ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" | |
15215 | ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" | |
15216 | ac_cv_type_uint64_t="$ac_cv_type_uint64_t" | |
15217 | ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" | |
15218 | ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" | |
15219 | ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" | |
15220 | ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" | |
15221 | ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" | |
15222 | ||
15223 | ||
15224 | # Variables needed in config.status (file generation) which aren't already | |
15225 | # passed by autoconf. | |
15226 | SUBDIRS="$SUBDIRS" | |
15227 | ||
15228 | ||
15229 | _ACEOF | |
15230 | ||
15231 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15232 | ||
15233 | # Handling of arguments. | |
15234 | for ac_config_target in $ac_config_targets | |
15235 | do | |
15236 | case $ac_config_target in | |
15237 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
15238 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
15239 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
15240 | "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;; | |
15241 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
15242 | "backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES backtrace-supported.h" ;; | |
15243 | "install-debuginfo-for-buildid.sh") CONFIG_FILES="$CONFIG_FILES install-debuginfo-for-buildid.sh" ;; | |
15244 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
15245 | ||
15246 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
15247 | esac | |
15248 | done | |
15249 | ||
15250 | ||
15251 | # If the user did not use the arguments to specify the items to instantiate, | |
15252 | # then the envvar interface is used. Set only those that are not. | |
15253 | # We use the long form for the default assignment because of an extremely | |
15254 | # bizarre bug on SunOS 4.1.3. | |
15255 | if $ac_need_defaults; then | |
15256 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
15257 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
15258 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
15259 | fi | |
15260 | ||
15261 | # Have a temporary directory for convenience. Make it in the build tree | |
15262 | # simply because there is no reason against having it here, and in addition, | |
15263 | # creating and moving files from /tmp can sometimes cause problems. | |
15264 | # Hook for its removal unless debugging. | |
15265 | # Note that there is a small window in which the directory will not be cleaned: | |
15266 | # after its creation but before its name has been assigned to `$tmp'. | |
15267 | $debug || | |
15268 | { | |
15269 | tmp= ac_tmp= | |
15270 | trap 'exit_status=$? | |
15271 | : "${ac_tmp:=$tmp}" | |
15272 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
15273 | ' 0 | |
15274 | trap 'as_fn_exit 1' 1 2 13 15 | |
15275 | } | |
15276 | # Create a (secure) tmp directory for tmp files. | |
15277 | ||
15278 | { | |
15279 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
15280 | test -d "$tmp" | |
15281 | } || | |
15282 | { | |
15283 | tmp=./conf$$-$RANDOM | |
15284 | (umask 077 && mkdir "$tmp") | |
15285 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
15286 | ac_tmp=$tmp | |
15287 | ||
15288 | # Set up the scripts for CONFIG_FILES section. | |
15289 | # No need to generate them if there are no CONFIG_FILES. | |
15290 | # This happens for instance with `./config.status config.h'. | |
15291 | if test -n "$CONFIG_FILES"; then | |
15292 | ||
15293 | ||
15294 | ac_cr=`echo X | tr X '\015'` | |
15295 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
15296 | # But we know of no other shell where ac_cr would be empty at this | |
15297 | # point, so we can use a bashism as a fallback. | |
15298 | if test "x$ac_cr" = x; then | |
15299 | eval ac_cr=\$\'\\r\' | |
15300 | fi | |
15301 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
15302 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
15303 | ac_cs_awk_cr='\\r' | |
15304 | else | |
15305 | ac_cs_awk_cr=$ac_cr | |
15306 | fi | |
15307 | ||
15308 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
15309 | _ACEOF | |
15310 | ||
15311 | ||
15312 | { | |
15313 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
15314 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
15315 | echo "_ACEOF" | |
15316 | } >conf$$subs.sh || | |
15317 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15318 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
15319 | ac_delim='%!_!# ' | |
15320 | for ac_last_try in false false false false false :; do | |
15321 | . ./conf$$subs.sh || | |
15322 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15323 | ||
15324 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
15325 | if test $ac_delim_n = $ac_delim_num; then | |
15326 | break | |
15327 | elif $ac_last_try; then | |
15328 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15329 | else | |
15330 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15331 | fi | |
15332 | done | |
15333 | rm -f conf$$subs.sh | |
15334 | ||
15335 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15336 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
15337 | _ACEOF | |
15338 | sed -n ' | |
15339 | h | |
15340 | s/^/S["/; s/!.*/"]=/ | |
15341 | p | |
15342 | g | |
15343 | s/^[^!]*!// | |
15344 | :repl | |
15345 | t repl | |
15346 | s/'"$ac_delim"'$// | |
15347 | t delim | |
15348 | :nl | |
15349 | h | |
15350 | s/\(.\{148\}\)..*/\1/ | |
15351 | t more1 | |
15352 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
15353 | p | |
15354 | n | |
15355 | b repl | |
15356 | :more1 | |
15357 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15358 | p | |
15359 | g | |
15360 | s/.\{148\}// | |
15361 | t nl | |
15362 | :delim | |
15363 | h | |
15364 | s/\(.\{148\}\)..*/\1/ | |
15365 | t more2 | |
15366 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
15367 | p | |
15368 | b | |
15369 | :more2 | |
15370 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15371 | p | |
15372 | g | |
15373 | s/.\{148\}// | |
15374 | t delim | |
15375 | ' <conf$$subs.awk | sed ' | |
15376 | /^[^""]/{ | |
15377 | N | |
15378 | s/\n// | |
15379 | } | |
15380 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
15381 | rm -f conf$$subs.awk | |
15382 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15383 | _ACAWK | |
15384 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
15385 | for (key in S) S_is_set[key] = 1 | |
15386 | FS = "\a" | |
15387 | ||
15388 | } | |
15389 | { | |
15390 | line = $ 0 | |
15391 | nfields = split(line, field, "@") | |
15392 | substed = 0 | |
15393 | len = length(field[1]) | |
15394 | for (i = 2; i < nfields; i++) { | |
15395 | key = field[i] | |
15396 | keylen = length(key) | |
15397 | if (S_is_set[key]) { | |
15398 | value = S[key] | |
15399 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15400 | len += length(value) + length(field[++i]) | |
15401 | substed = 1 | |
15402 | } else | |
15403 | len += 1 + keylen | |
15404 | } | |
15405 | ||
15406 | print line | |
15407 | } | |
15408 | ||
15409 | _ACAWK | |
15410 | _ACEOF | |
15411 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15412 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15413 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
15414 | else | |
15415 | cat | |
15416 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
15417 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
15418 | _ACEOF | |
15419 | ||
15420 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
15421 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
15422 | # trailing colons and then remove the whole line if VPATH becomes empty | |
15423 | # (actually we leave an empty line to preserve line numbers). | |
15424 | if test "x$srcdir" = x.; then | |
15425 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
15426 | h | |
15427 | s/// | |
15428 | s/^/:/ | |
15429 | s/[ ]*$/:/ | |
15430 | s/:\$(srcdir):/:/g | |
15431 | s/:\${srcdir}:/:/g | |
15432 | s/:@srcdir@:/:/g | |
15433 | s/^:*// | |
15434 | s/:*$// | |
15435 | x | |
15436 | s/\(=[ ]*\).*/\1/ | |
15437 | G | |
15438 | s/\n// | |
15439 | s/^[^=]*=[ ]*$// | |
15440 | }' | |
15441 | fi | |
15442 | ||
15443 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15444 | fi # test -n "$CONFIG_FILES" | |
15445 | ||
15446 | # Set up the scripts for CONFIG_HEADERS section. | |
15447 | # No need to generate them if there are no CONFIG_HEADERS. | |
15448 | # This happens for instance with `./config.status Makefile'. | |
15449 | if test -n "$CONFIG_HEADERS"; then | |
15450 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
15451 | BEGIN { | |
15452 | _ACEOF | |
15453 | ||
15454 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
15455 | # here-document in config.status, that substitutes the proper values into | |
15456 | # config.h.in to produce config.h. | |
15457 | ||
15458 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
15459 | # handling of long lines. | |
15460 | ac_delim='%!_!# ' | |
15461 | for ac_last_try in false false :; do | |
15462 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
15463 | if test -z "$ac_tt"; then | |
15464 | break | |
15465 | elif $ac_last_try; then | |
15466 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
15467 | else | |
15468 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15469 | fi | |
15470 | done | |
15471 | ||
15472 | # For the awk script, D is an array of macro values keyed by name, | |
15473 | # likewise P contains macro parameters if any. Preserve backslash | |
15474 | # newline sequences. | |
15475 | ||
15476 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
15477 | sed -n ' | |
15478 | s/.\{148\}/&'"$ac_delim"'/g | |
15479 | t rset | |
15480 | :rset | |
15481 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
15482 | t def | |
15483 | d | |
15484 | :def | |
15485 | s/\\$// | |
15486 | t bsnl | |
15487 | s/["\\]/\\&/g | |
15488 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
15489 | D["\1"]=" \3"/p | |
15490 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
15491 | d | |
15492 | :bsnl | |
15493 | s/["\\]/\\&/g | |
15494 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
15495 | D["\1"]=" \3\\\\\\n"\\/p | |
15496 | t cont | |
15497 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
15498 | t cont | |
15499 | d | |
15500 | :cont | |
15501 | n | |
15502 | s/.\{148\}/&'"$ac_delim"'/g | |
15503 | t clear | |
15504 | :clear | |
15505 | s/\\$// | |
15506 | t bsnlc | |
15507 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
15508 | d | |
15509 | :bsnlc | |
15510 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
15511 | b cont | |
15512 | ' <confdefs.h | sed ' | |
15513 | s/'"$ac_delim"'/"\\\ | |
15514 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
15515 | ||
15516 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15517 | for (key in D) D_is_set[key] = 1 | |
15518 | FS = "\a" | |
15519 | } | |
15520 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
15521 | line = \$ 0 | |
15522 | split(line, arg, " ") | |
15523 | if (arg[1] == "#") { | |
15524 | defundef = arg[2] | |
15525 | mac1 = arg[3] | |
15526 | } else { | |
15527 | defundef = substr(arg[1], 2) | |
15528 | mac1 = arg[2] | |
15529 | } | |
15530 | split(mac1, mac2, "(") #) | |
15531 | macro = mac2[1] | |
15532 | prefix = substr(line, 1, index(line, defundef) - 1) | |
15533 | if (D_is_set[macro]) { | |
15534 | # Preserve the white space surrounding the "#". | |
15535 | print prefix "define", macro P[macro] D[macro] | |
15536 | next | |
15537 | } else { | |
15538 | # Replace #undef with comments. This is necessary, for example, | |
15539 | # in the case of _POSIX_SOURCE, which is predefined and required | |
15540 | # on some systems where configure will not decide to define it. | |
15541 | if (defundef == "undef") { | |
15542 | print "/*", prefix defundef, macro, "*/" | |
15543 | next | |
15544 | } | |
15545 | } | |
15546 | } | |
15547 | { print } | |
15548 | _ACAWK | |
15549 | _ACEOF | |
15550 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15551 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
15552 | fi # test -n "$CONFIG_HEADERS" | |
15553 | ||
15554 | ||
15555 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
15556 | shift | |
15557 | for ac_tag | |
15558 | do | |
15559 | case $ac_tag in | |
15560 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15561 | esac | |
15562 | case $ac_mode$ac_tag in | |
15563 | :[FHL]*:*);; | |
15564 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
15565 | :[FH]-) ac_tag=-:-;; | |
15566 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
15567 | esac | |
15568 | ac_save_IFS=$IFS | |
15569 | IFS=: | |
15570 | set x $ac_tag | |
15571 | IFS=$ac_save_IFS | |
15572 | shift | |
15573 | ac_file=$1 | |
15574 | shift | |
15575 | ||
15576 | case $ac_mode in | |
15577 | :L) ac_source=$1;; | |
15578 | :[FH]) | |
15579 | ac_file_inputs= | |
15580 | for ac_f | |
15581 | do | |
15582 | case $ac_f in | |
15583 | -) ac_f="$ac_tmp/stdin";; | |
15584 | *) # Look for the file first in the build tree, then in the source tree | |
15585 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15586 | # because $ac_f cannot contain `:'. | |
15587 | test -f "$ac_f" || | |
15588 | case $ac_f in | |
15589 | [\\/$]*) false;; | |
15590 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15591 | esac || | |
15592 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
15593 | esac | |
15594 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15595 | as_fn_append ac_file_inputs " '$ac_f'" | |
15596 | done | |
15597 | ||
15598 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
15599 | # use $as_me), people would be surprised to read: | |
15600 | # /* config.h. Generated by config.status. */ | |
15601 | configure_input='Generated from '` | |
15602 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15603 | `' by configure.' | |
15604 | if test x"$ac_file" != x-; then | |
15605 | configure_input="$ac_file. $configure_input" | |
15606 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15607 | $as_echo "$as_me: creating $ac_file" >&6;} | |
15608 | fi | |
15609 | # Neutralize special characters interpreted by sed in replacement strings. | |
15610 | case $configure_input in #( | |
15611 | *\&* | *\|* | *\\* ) | |
15612 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15613 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15614 | *) ac_sed_conf_input=$configure_input;; | |
15615 | esac | |
15616 | ||
15617 | case $ac_tag in | |
15618 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
15619 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
15620 | esac | |
15621 | ;; | |
15622 | esac | |
15623 | ||
15624 | ac_dir=`$as_dirname -- "$ac_file" || | |
15625 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15626 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15627 | X"$ac_file" : 'X\(//\)$' \| \ | |
15628 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
15629 | $as_echo X"$ac_file" | | |
15630 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15631 | s//\1/ | |
15632 | q | |
15633 | } | |
15634 | /^X\(\/\/\)[^/].*/{ | |
15635 | s//\1/ | |
15636 | q | |
15637 | } | |
15638 | /^X\(\/\/\)$/{ | |
15639 | s//\1/ | |
15640 | q | |
15641 | } | |
15642 | /^X\(\/\).*/{ | |
15643 | s//\1/ | |
15644 | q | |
15645 | } | |
15646 | s/.*/./; q'` | |
15647 | as_dir="$ac_dir"; as_fn_mkdir_p | |
15648 | ac_builddir=. | |
15649 | ||
15650 | case "$ac_dir" in | |
15651 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15652 | *) | |
15653 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15654 | # A ".." for each directory in $ac_dir_suffix. | |
15655 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15656 | case $ac_top_builddir_sub in | |
15657 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15658 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15659 | esac ;; | |
15660 | esac | |
15661 | ac_abs_top_builddir=$ac_pwd | |
15662 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15663 | # for backward compatibility: | |
15664 | ac_top_builddir=$ac_top_build_prefix | |
15665 | ||
15666 | case $srcdir in | |
15667 | .) # We are building in place. | |
15668 | ac_srcdir=. | |
15669 | ac_top_srcdir=$ac_top_builddir_sub | |
15670 | ac_abs_top_srcdir=$ac_pwd ;; | |
15671 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
15672 | ac_srcdir=$srcdir$ac_dir_suffix; | |
15673 | ac_top_srcdir=$srcdir | |
15674 | ac_abs_top_srcdir=$srcdir ;; | |
15675 | *) # Relative name. | |
15676 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15677 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15678 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
15679 | esac | |
15680 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
15681 | ||
15682 | ||
15683 | case $ac_mode in | |
15684 | :F) | |
15685 | # | |
15686 | # CONFIG_FILE | |
15687 | # | |
15688 | ||
15689 | case $INSTALL in | |
15690 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
15691 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
15692 | esac | |
15693 | ac_MKDIR_P=$MKDIR_P | |
15694 | case $MKDIR_P in | |
15695 | [\\/$]* | ?:[\\/]* ) ;; | |
15696 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
15697 | esac | |
15698 | _ACEOF | |
15699 | ||
15700 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15701 | # If the template does not know about datarootdir, expand it. | |
15702 | # FIXME: This hack should be removed a few years after 2.60. | |
15703 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15704 | ac_sed_dataroot=' | |
15705 | /datarootdir/ { | |
15706 | p | |
15707 | q | |
15708 | } | |
15709 | /@datadir@/p | |
15710 | /@docdir@/p | |
15711 | /@infodir@/p | |
15712 | /@localedir@/p | |
15713 | /@mandir@/p' | |
15714 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
15715 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15716 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15717 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15718 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
15719 | _ACEOF | |
15720 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15721 | ac_datarootdir_hack=' | |
15722 | s&@datadir@&$datadir&g | |
15723 | s&@docdir@&$docdir&g | |
15724 | s&@infodir@&$infodir&g | |
15725 | s&@localedir@&$localedir&g | |
15726 | s&@mandir@&$mandir&g | |
15727 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15728 | esac | |
15729 | _ACEOF | |
15730 | ||
15731 | # Neutralize VPATH when `$srcdir' = `.'. | |
15732 | # Shell code in configure.ac might set extrasub. | |
15733 | # FIXME: do we really want to maintain this feature? | |
15734 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15735 | ac_sed_extra="$ac_vpsub | |
15736 | $extrasub | |
15737 | _ACEOF | |
15738 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15739 | :t | |
15740 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
15741 | s|@configure_input@|$ac_sed_conf_input|;t t | |
15742 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15743 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
15744 | s&@srcdir@&$ac_srcdir&;t t | |
15745 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15746 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15747 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15748 | s&@builddir@&$ac_builddir&;t t | |
15749 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15750 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15751 | s&@INSTALL@&$ac_INSTALL&;t t | |
15752 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
15753 | $ac_datarootdir_hack | |
15754 | " | |
15755 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
15756 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
15757 | ||
15758 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
15759 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
15760 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
15761 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
15762 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15763 | which seems to be undefined. Please make sure it is defined" >&5 | |
15764 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15765 | which seems to be undefined. Please make sure it is defined" >&2;} | |
15766 | ||
15767 | rm -f "$ac_tmp/stdin" | |
15768 | case $ac_file in | |
15769 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
15770 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
15771 | esac \ | |
15772 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
15773 | ;; | |
15774 | :H) | |
15775 | # | |
15776 | # CONFIG_HEADER | |
15777 | # | |
15778 | if test x"$ac_file" != x-; then | |
15779 | { | |
15780 | $as_echo "/* $configure_input */" \ | |
15781 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
15782 | } >"$ac_tmp/config.h" \ | |
15783 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
15784 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
15785 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
15786 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
15787 | else | |
15788 | rm -f "$ac_file" | |
15789 | mv "$ac_tmp/config.h" "$ac_file" \ | |
15790 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
15791 | fi | |
15792 | else | |
15793 | $as_echo "/* $configure_input */" \ | |
15794 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
15795 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
15796 | fi | |
15797 | # Compute "$ac_file"'s index in $config_headers. | |
15798 | _am_arg="$ac_file" | |
15799 | _am_stamp_count=1 | |
15800 | for _am_header in $config_headers :; do | |
15801 | case $_am_header in | |
15802 | $_am_arg | $_am_arg:* ) | |
15803 | break ;; | |
15804 | * ) | |
15805 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
15806 | esac | |
15807 | done | |
15808 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
15809 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15810 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
15811 | X"$_am_arg" : 'X\(//\)$' \| \ | |
15812 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
15813 | $as_echo X"$_am_arg" | | |
15814 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15815 | s//\1/ | |
15816 | q | |
15817 | } | |
15818 | /^X\(\/\/\)[^/].*/{ | |
15819 | s//\1/ | |
15820 | q | |
15821 | } | |
15822 | /^X\(\/\/\)$/{ | |
15823 | s//\1/ | |
15824 | q | |
15825 | } | |
15826 | /^X\(\/\).*/{ | |
15827 | s//\1/ | |
15828 | q | |
15829 | } | |
15830 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
15831 | ;; | |
15832 | ||
15833 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
15834 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
15835 | ;; | |
15836 | esac | |
15837 | ||
15838 | ||
15839 | case $ac_file$ac_mode in | |
15840 | "default-1":C) | |
15841 | # Only add multilib support code if we just rebuilt the top-level | |
15842 | # Makefile. | |
15843 | case " $CONFIG_FILES " in | |
15844 | *" Makefile "*) | |
15845 | ac_file=Makefile . ${multi_basedir}/config-ml.in | |
15846 | ;; | |
15847 | esac ;; | |
15848 | "libtool":C) | |
15849 | ||
15850 | # See if we are running on zsh, and set the options which allow our | |
15851 | # commands through without removal of \ escapes. | |
15852 | if test -n "${ZSH_VERSION+set}" ; then | |
15853 | setopt NO_GLOB_SUBST | |
15854 | fi | |
15855 | ||
15856 | cfgfile="${ofile}T" | |
15857 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
15858 | $RM "$cfgfile" | |
15859 | ||
15860 | cat <<_LT_EOF >> "$cfgfile" | |
15861 | #! $SHELL | |
15862 | ||
15863 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
15864 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
15865 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
15866 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
15867 | # | |
15868 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
15869 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | |
15870 | # Written by Gordon Matzigkeit, 1996 | |
15871 | # | |
15872 | # This file is part of GNU Libtool. | |
15873 | # | |
15874 | # GNU Libtool is free software; you can redistribute it and/or | |
15875 | # modify it under the terms of the GNU General Public License as | |
15876 | # published by the Free Software Foundation; either version 2 of | |
15877 | # the License, or (at your option) any later version. | |
15878 | # | |
15879 | # As a special exception to the GNU General Public License, | |
15880 | # if you distribute this file as part of a program or library that | |
15881 | # is built using GNU Libtool, you may include this file under the | |
15882 | # same distribution terms that you use for the rest of that program. | |
15883 | # | |
15884 | # GNU Libtool is distributed in the hope that it will be useful, | |
15885 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15886 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15887 | # GNU General Public License for more details. | |
15888 | # | |
15889 | # You should have received a copy of the GNU General Public License | |
15890 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
15891 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
15892 | # obtained by writing to the Free Software Foundation, Inc., | |
15893 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
15894 | ||
15895 | ||
15896 | # The names of the tagged configurations supported by this script. | |
15897 | available_tags="" | |
15898 | ||
15899 | # ### BEGIN LIBTOOL CONFIG | |
15900 | ||
15901 | # Which release of libtool.m4 was used? | |
15902 | macro_version=$macro_version | |
15903 | macro_revision=$macro_revision | |
15904 | ||
15905 | # Whether or not to build shared libraries. | |
15906 | build_libtool_libs=$enable_shared | |
15907 | ||
15908 | # Whether or not to build static libraries. | |
15909 | build_old_libs=$enable_static | |
15910 | ||
15911 | # What type of objects to build. | |
15912 | pic_mode=$pic_mode | |
15913 | ||
15914 | # Whether or not to optimize for fast installation. | |
15915 | fast_install=$enable_fast_install | |
15916 | ||
15917 | # Shell to use when invoking shell scripts. | |
15918 | SHELL=$lt_SHELL | |
15919 | ||
15920 | # An echo program that protects backslashes. | |
15921 | ECHO=$lt_ECHO | |
15922 | ||
15923 | # The host system. | |
15924 | host_alias=$host_alias | |
15925 | host=$host | |
15926 | host_os=$host_os | |
15927 | ||
15928 | # The build system. | |
15929 | build_alias=$build_alias | |
15930 | build=$build | |
15931 | build_os=$build_os | |
15932 | ||
15933 | # A sed program that does not truncate output. | |
15934 | SED=$lt_SED | |
15935 | ||
15936 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
15937 | Xsed="\$SED -e 1s/^X//" | |
15938 | ||
15939 | # A grep program that handles long lines. | |
15940 | GREP=$lt_GREP | |
15941 | ||
15942 | # An ERE matcher. | |
15943 | EGREP=$lt_EGREP | |
15944 | ||
15945 | # A literal string matcher. | |
15946 | FGREP=$lt_FGREP | |
15947 | ||
15948 | # A BSD- or MS-compatible name lister. | |
15949 | NM=$lt_NM | |
15950 | ||
15951 | # Whether we need soft or hard links. | |
15952 | LN_S=$lt_LN_S | |
15953 | ||
15954 | # What is the maximum length of a command? | |
15955 | max_cmd_len=$max_cmd_len | |
15956 | ||
15957 | # Object file suffix (normally "o"). | |
15958 | objext=$ac_objext | |
15959 | ||
15960 | # Executable file suffix (normally ""). | |
15961 | exeext=$exeext | |
15962 | ||
15963 | # whether the shell understands "unset". | |
15964 | lt_unset=$lt_unset | |
15965 | ||
15966 | # turn spaces into newlines. | |
15967 | SP2NL=$lt_lt_SP2NL | |
15968 | ||
15969 | # turn newlines into spaces. | |
15970 | NL2SP=$lt_lt_NL2SP | |
15971 | ||
15972 | # An object symbol dumper. | |
15973 | OBJDUMP=$lt_OBJDUMP | |
15974 | ||
15975 | # Method to check whether dependent libraries are shared objects. | |
15976 | deplibs_check_method=$lt_deplibs_check_method | |
15977 | ||
15978 | # Command to use when deplibs_check_method == "file_magic". | |
15979 | file_magic_cmd=$lt_file_magic_cmd | |
15980 | ||
15981 | # The archiver. | |
15982 | AR=$lt_AR | |
15983 | AR_FLAGS=$lt_AR_FLAGS | |
15984 | ||
15985 | # A symbol stripping program. | |
15986 | STRIP=$lt_STRIP | |
15987 | ||
15988 | # Commands used to install an old-style archive. | |
15989 | RANLIB=$lt_RANLIB | |
15990 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
15991 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
15992 | ||
15993 | # Whether to use a lock for old archive extraction. | |
15994 | lock_old_archive_extraction=$lock_old_archive_extraction | |
15995 | ||
15996 | # A C compiler. | |
15997 | LTCC=$lt_CC | |
15998 | ||
15999 | # LTCC compiler flags. | |
16000 | LTCFLAGS=$lt_CFLAGS | |
16001 | ||
16002 | # Take the output of nm and produce a listing of raw symbols and C names. | |
16003 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
16004 | ||
16005 | # Transform the output of nm in a proper C declaration. | |
16006 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
16007 | ||
16008 | # Transform the output of nm in a C name address pair. | |
16009 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
16010 | ||
16011 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
16012 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
16013 | ||
16014 | # The name of the directory that contains temporary libtool files. | |
16015 | objdir=$objdir | |
16016 | ||
16017 | # Used to examine libraries when file_magic_cmd begins with "file". | |
16018 | MAGIC_CMD=$MAGIC_CMD | |
16019 | ||
16020 | # Must we lock files when doing compilation? | |
16021 | need_locks=$lt_need_locks | |
16022 | ||
16023 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
16024 | DSYMUTIL=$lt_DSYMUTIL | |
16025 | ||
16026 | # Tool to change global to local symbols on Mac OS X. | |
16027 | NMEDIT=$lt_NMEDIT | |
16028 | ||
16029 | # Tool to manipulate fat objects and archives on Mac OS X. | |
16030 | LIPO=$lt_LIPO | |
16031 | ||
16032 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
16033 | OTOOL=$lt_OTOOL | |
16034 | ||
16035 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
16036 | OTOOL64=$lt_OTOOL64 | |
16037 | ||
16038 | # Old archive suffix (normally "a"). | |
16039 | libext=$libext | |
16040 | ||
16041 | # Shared library suffix (normally ".so"). | |
16042 | shrext_cmds=$lt_shrext_cmds | |
16043 | ||
16044 | # The commands to extract the exported symbol list from a shared archive. | |
16045 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
16046 | ||
16047 | # Variables whose values should be saved in libtool wrapper scripts and | |
16048 | # restored at link time. | |
16049 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
16050 | ||
16051 | # Do we need the "lib" prefix for modules? | |
16052 | need_lib_prefix=$need_lib_prefix | |
16053 | ||
16054 | # Do we need a version for libraries? | |
16055 | need_version=$need_version | |
16056 | ||
16057 | # Library versioning type. | |
16058 | version_type=$version_type | |
16059 | ||
16060 | # Shared library runtime path variable. | |
16061 | runpath_var=$runpath_var | |
16062 | ||
16063 | # Shared library path variable. | |
16064 | shlibpath_var=$shlibpath_var | |
16065 | ||
16066 | # Is shlibpath searched before the hard-coded library search path? | |
16067 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
16068 | ||
16069 | # Format of library name prefix. | |
16070 | libname_spec=$lt_libname_spec | |
16071 | ||
16072 | # List of archive names. First name is the real one, the rest are links. | |
16073 | # The last name is the one that the linker finds with -lNAME | |
16074 | library_names_spec=$lt_library_names_spec | |
16075 | ||
16076 | # The coded name of the library, if different from the real name. | |
16077 | soname_spec=$lt_soname_spec | |
16078 | ||
16079 | # Permission mode override for installation of shared libraries. | |
16080 | install_override_mode=$lt_install_override_mode | |
16081 | ||
16082 | # Command to use after installation of a shared archive. | |
16083 | postinstall_cmds=$lt_postinstall_cmds | |
16084 | ||
16085 | # Command to use after uninstallation of a shared archive. | |
16086 | postuninstall_cmds=$lt_postuninstall_cmds | |
16087 | ||
16088 | # Commands used to finish a libtool library installation in a directory. | |
16089 | finish_cmds=$lt_finish_cmds | |
16090 | ||
16091 | # As "finish_cmds", except a single script fragment to be evaled but | |
16092 | # not shown. | |
16093 | finish_eval=$lt_finish_eval | |
16094 | ||
16095 | # Whether we should hardcode library paths into libraries. | |
16096 | hardcode_into_libs=$hardcode_into_libs | |
16097 | ||
16098 | # Compile-time system search path for libraries. | |
16099 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
16100 | ||
16101 | # Run-time system search path for libraries. | |
16102 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
16103 | ||
16104 | # Whether dlopen is supported. | |
16105 | dlopen_support=$enable_dlopen | |
16106 | ||
16107 | # Whether dlopen of programs is supported. | |
16108 | dlopen_self=$enable_dlopen_self | |
16109 | ||
16110 | # Whether dlopen of statically linked programs is supported. | |
16111 | dlopen_self_static=$enable_dlopen_self_static | |
16112 | ||
16113 | # Commands to strip libraries. | |
16114 | old_striplib=$lt_old_striplib | |
16115 | striplib=$lt_striplib | |
16116 | ||
16117 | ||
16118 | # The linker used to build libraries. | |
16119 | LD=$lt_LD | |
16120 | ||
16121 | # How to create reloadable object files. | |
16122 | reload_flag=$lt_reload_flag | |
16123 | reload_cmds=$lt_reload_cmds | |
16124 | ||
16125 | # Commands used to build an old-style archive. | |
16126 | old_archive_cmds=$lt_old_archive_cmds | |
16127 | ||
16128 | # A language specific compiler. | |
16129 | CC=$lt_compiler | |
16130 | ||
16131 | # Is the compiler the GNU compiler? | |
16132 | with_gcc=$GCC | |
16133 | ||
16134 | # Compiler flag to turn off builtin functions. | |
16135 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
16136 | ||
16137 | # How to pass a linker flag through the compiler. | |
16138 | wl=$lt_lt_prog_compiler_wl | |
16139 | ||
16140 | # Additional compiler flags for building library objects. | |
16141 | pic_flag=$lt_lt_prog_compiler_pic | |
16142 | ||
16143 | # Compiler flag to prevent dynamic linking. | |
16144 | link_static_flag=$lt_lt_prog_compiler_static | |
16145 | ||
16146 | # Does compiler simultaneously support -c and -o options? | |
16147 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
16148 | ||
16149 | # Whether or not to add -lc for building shared libraries. | |
16150 | build_libtool_need_lc=$archive_cmds_need_lc | |
16151 | ||
16152 | # Whether or not to disallow shared libs when runtime libs are static. | |
16153 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
16154 | ||
16155 | # Compiler flag to allow reflexive dlopens. | |
16156 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
16157 | ||
16158 | # Compiler flag to generate shared objects directly from archives. | |
16159 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
16160 | ||
16161 | # Whether the compiler copes with passing no objects directly. | |
16162 | compiler_needs_object=$lt_compiler_needs_object | |
16163 | ||
16164 | # Create an old-style archive from a shared archive. | |
16165 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
16166 | ||
16167 | # Create a temporary old-style archive to link instead of a shared archive. | |
16168 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
16169 | ||
16170 | # Commands used to build a shared archive. | |
16171 | archive_cmds=$lt_archive_cmds | |
16172 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
16173 | ||
16174 | # Commands used to build a loadable module if different from building | |
16175 | # a shared archive. | |
16176 | module_cmds=$lt_module_cmds | |
16177 | module_expsym_cmds=$lt_module_expsym_cmds | |
16178 | ||
16179 | # Whether we are building with GNU ld or not. | |
16180 | with_gnu_ld=$lt_with_gnu_ld | |
16181 | ||
16182 | # Flag that allows shared libraries with undefined symbols to be built. | |
16183 | allow_undefined_flag=$lt_allow_undefined_flag | |
16184 | ||
16185 | # Flag that enforces no undefined symbols. | |
16186 | no_undefined_flag=$lt_no_undefined_flag | |
16187 | ||
16188 | # Flag to hardcode \$libdir into a binary during linking. | |
16189 | # This must work even if \$libdir does not exist | |
16190 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
16191 | ||
16192 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
16193 | # during linking. This must work even if \$libdir does not exist. | |
16194 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
16195 | ||
16196 | # Whether we need a single "-rpath" flag with a separated argument. | |
16197 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
16198 | ||
16199 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
16200 | # DIR into the resulting binary. | |
16201 | hardcode_direct=$hardcode_direct | |
16202 | ||
16203 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
16204 | # DIR into the resulting binary and the resulting library dependency is | |
16205 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
16206 | # library is relocated. | |
16207 | hardcode_direct_absolute=$hardcode_direct_absolute | |
16208 | ||
16209 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
16210 | # into the resulting binary. | |
16211 | hardcode_minus_L=$hardcode_minus_L | |
16212 | ||
16213 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
16214 | # into the resulting binary. | |
16215 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
16216 | ||
16217 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
16218 | # into the library and all subsequent libraries and executables linked | |
16219 | # against it. | |
16220 | hardcode_automatic=$hardcode_automatic | |
16221 | ||
16222 | # Set to yes if linker adds runtime paths of dependent libraries | |
16223 | # to runtime path list. | |
16224 | inherit_rpath=$inherit_rpath | |
16225 | ||
16226 | # Whether libtool must link a program against all its dependency libraries. | |
16227 | link_all_deplibs=$link_all_deplibs | |
16228 | ||
16229 | # Fix the shell variable \$srcfile for the compiler. | |
16230 | fix_srcfile_path=$lt_fix_srcfile_path | |
16231 | ||
16232 | # Set to "yes" if exported symbols are required. | |
16233 | always_export_symbols=$always_export_symbols | |
16234 | ||
16235 | # The commands to list exported symbols. | |
16236 | export_symbols_cmds=$lt_export_symbols_cmds | |
16237 | ||
16238 | # Symbols that should not be listed in the preloaded symbols. | |
16239 | exclude_expsyms=$lt_exclude_expsyms | |
16240 | ||
16241 | # Symbols that must always be exported. | |
16242 | include_expsyms=$lt_include_expsyms | |
16243 | ||
16244 | # Commands necessary for linking programs (against libraries) with templates. | |
16245 | prelink_cmds=$lt_prelink_cmds | |
16246 | ||
16247 | # Specify filename containing input files. | |
16248 | file_list_spec=$lt_file_list_spec | |
16249 | ||
16250 | # How to hardcode a shared library path into an executable. | |
16251 | hardcode_action=$hardcode_action | |
16252 | ||
16253 | # ### END LIBTOOL CONFIG | |
16254 | ||
16255 | _LT_EOF | |
16256 | ||
16257 | case $host_os in | |
16258 | aix3*) | |
16259 | cat <<\_LT_EOF >> "$cfgfile" | |
16260 | # AIX sometimes has problems with the GCC collect2 program. For some | |
16261 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
16262 | # vanish in a puff of smoke. | |
16263 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
16264 | COLLECT_NAMES= | |
16265 | export COLLECT_NAMES | |
16266 | fi | |
16267 | _LT_EOF | |
16268 | ;; | |
16269 | esac | |
16270 | ||
16271 | ||
16272 | ltmain="$ac_aux_dir/ltmain.sh" | |
16273 | ||
16274 | ||
16275 | # We use sed instead of cat because bash on DJGPP gets confused if | |
16276 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
16277 | # text mode, it properly converts lines to CR/LF. This bash problem | |
16278 | # is reportedly fixed, but why not run on old versions too? | |
16279 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
16280 | || (rm -f "$cfgfile"; exit 1) | |
16281 | ||
16282 | case $xsi_shell in | |
16283 | yes) | |
16284 | cat << \_LT_EOF >> "$cfgfile" | |
16285 | ||
16286 | # func_dirname file append nondir_replacement | |
16287 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
16288 | # otherwise set result to NONDIR_REPLACEMENT. | |
16289 | func_dirname () | |
16290 | { | |
16291 | case ${1} in | |
16292 | */*) func_dirname_result="${1%/*}${2}" ;; | |
16293 | * ) func_dirname_result="${3}" ;; | |
16294 | esac | |
16295 | } | |
16296 | ||
16297 | # func_basename file | |
16298 | func_basename () | |
16299 | { | |
16300 | func_basename_result="${1##*/}" | |
16301 | } | |
16302 | ||
16303 | # func_dirname_and_basename file append nondir_replacement | |
16304 | # perform func_basename and func_dirname in a single function | |
16305 | # call: | |
16306 | # dirname: Compute the dirname of FILE. If nonempty, | |
16307 | # add APPEND to the result, otherwise set result | |
16308 | # to NONDIR_REPLACEMENT. | |
16309 | # value returned in "$func_dirname_result" | |
16310 | # basename: Compute filename of FILE. | |
16311 | # value retuned in "$func_basename_result" | |
16312 | # Implementation must be kept synchronized with func_dirname | |
16313 | # and func_basename. For efficiency, we do not delegate to | |
16314 | # those functions but instead duplicate the functionality here. | |
16315 | func_dirname_and_basename () | |
16316 | { | |
16317 | case ${1} in | |
16318 | */*) func_dirname_result="${1%/*}${2}" ;; | |
16319 | * ) func_dirname_result="${3}" ;; | |
16320 | esac | |
16321 | func_basename_result="${1##*/}" | |
16322 | } | |
16323 | ||
16324 | # func_stripname prefix suffix name | |
16325 | # strip PREFIX and SUFFIX off of NAME. | |
16326 | # PREFIX and SUFFIX must not contain globbing or regex special | |
16327 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
16328 | # dot (in which case that matches only a dot). | |
16329 | func_stripname () | |
16330 | { | |
16331 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
16332 | # positional parameters, so assign one to ordinary parameter first. | |
16333 | func_stripname_result=${3} | |
16334 | func_stripname_result=${func_stripname_result#"${1}"} | |
16335 | func_stripname_result=${func_stripname_result%"${2}"} | |
16336 | } | |
16337 | ||
16338 | # func_opt_split | |
16339 | func_opt_split () | |
16340 | { | |
16341 | func_opt_split_opt=${1%%=*} | |
16342 | func_opt_split_arg=${1#*=} | |
16343 | } | |
16344 | ||
16345 | # func_lo2o object | |
16346 | func_lo2o () | |
16347 | { | |
16348 | case ${1} in | |
16349 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
16350 | *) func_lo2o_result=${1} ;; | |
16351 | esac | |
16352 | } | |
16353 | ||
16354 | # func_xform libobj-or-source | |
16355 | func_xform () | |
16356 | { | |
16357 | func_xform_result=${1%.*}.lo | |
16358 | } | |
16359 | ||
16360 | # func_arith arithmetic-term... | |
16361 | func_arith () | |
16362 | { | |
16363 | func_arith_result=$(( $* )) | |
16364 | } | |
16365 | ||
16366 | # func_len string | |
16367 | # STRING may not start with a hyphen. | |
16368 | func_len () | |
16369 | { | |
16370 | func_len_result=${#1} | |
16371 | } | |
16372 | ||
16373 | _LT_EOF | |
16374 | ;; | |
16375 | *) # Bourne compatible functions. | |
16376 | cat << \_LT_EOF >> "$cfgfile" | |
16377 | ||
16378 | # func_dirname file append nondir_replacement | |
16379 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
16380 | # otherwise set result to NONDIR_REPLACEMENT. | |
16381 | func_dirname () | |
16382 | { | |
16383 | # Extract subdirectory from the argument. | |
16384 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | |
16385 | if test "X$func_dirname_result" = "X${1}"; then | |
16386 | func_dirname_result="${3}" | |
16387 | else | |
16388 | func_dirname_result="$func_dirname_result${2}" | |
16389 | fi | |
16390 | } | |
16391 | ||
16392 | # func_basename file | |
16393 | func_basename () | |
16394 | { | |
16395 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` | |
16396 | } | |
16397 | ||
16398 | ||
16399 | # func_stripname prefix suffix name | |
16400 | # strip PREFIX and SUFFIX off of NAME. | |
16401 | # PREFIX and SUFFIX must not contain globbing or regex special | |
16402 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
16403 | # dot (in which case that matches only a dot). | |
16404 | # func_strip_suffix prefix name | |
16405 | func_stripname () | |
16406 | { | |
16407 | case ${2} in | |
16408 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | |
16409 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
16410 | esac | |
16411 | } | |
16412 | ||
16413 | # sed scripts: | |
16414 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
16415 | my_sed_long_arg='1s/^-[^=]*=//' | |
16416 | ||
16417 | # func_opt_split | |
16418 | func_opt_split () | |
16419 | { | |
16420 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` | |
16421 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
16422 | } | |
16423 | ||
16424 | # func_lo2o object | |
16425 | func_lo2o () | |
16426 | { | |
16427 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | |
16428 | } | |
16429 | ||
16430 | # func_xform libobj-or-source | |
16431 | func_xform () | |
16432 | { | |
16433 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` | |
16434 | } | |
16435 | ||
16436 | # func_arith arithmetic-term... | |
16437 | func_arith () | |
16438 | { | |
16439 | func_arith_result=`expr "$@"` | |
16440 | } | |
16441 | ||
16442 | # func_len string | |
16443 | # STRING may not start with a hyphen. | |
16444 | func_len () | |
16445 | { | |
16446 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
16447 | } | |
16448 | ||
16449 | _LT_EOF | |
16450 | esac | |
16451 | ||
16452 | case $lt_shell_append in | |
16453 | yes) | |
16454 | cat << \_LT_EOF >> "$cfgfile" | |
16455 | ||
16456 | # func_append var value | |
16457 | # Append VALUE to the end of shell variable VAR. | |
16458 | func_append () | |
16459 | { | |
16460 | eval "$1+=\$2" | |
16461 | } | |
16462 | _LT_EOF | |
16463 | ;; | |
16464 | *) | |
16465 | cat << \_LT_EOF >> "$cfgfile" | |
16466 | ||
16467 | # func_append var value | |
16468 | # Append VALUE to the end of shell variable VAR. | |
16469 | func_append () | |
16470 | { | |
16471 | eval "$1=\$$1\$2" | |
16472 | } | |
16473 | ||
16474 | _LT_EOF | |
16475 | ;; | |
16476 | esac | |
16477 | ||
16478 | ||
16479 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
16480 | || (rm -f "$cfgfile"; exit 1) | |
16481 | ||
16482 | mv -f "$cfgfile" "$ofile" || | |
16483 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
16484 | chmod +x "$ofile" | |
16485 | ||
16486 | ;; | |
16487 | "gstdint.h":C) | |
16488 | if test "$GCC" = yes; then | |
16489 | echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h | |
16490 | else | |
16491 | echo "/* generated for $CC */" > tmp-stdint.h | |
16492 | fi | |
16493 | ||
16494 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
16495 | ||
16496 | #ifndef GCC_GENERATED_STDINT_H | |
16497 | #define GCC_GENERATED_STDINT_H 1 | |
16498 | ||
16499 | #include <sys/types.h> | |
16500 | EOF | |
16501 | ||
16502 | if test "$acx_cv_header_stdint" != stdint.h; then | |
16503 | echo "#include <stddef.h>" >> tmp-stdint.h | |
16504 | fi | |
16505 | if test "$acx_cv_header_stdint" != stddef.h; then | |
16506 | echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h | |
16507 | fi | |
16508 | ||
16509 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
16510 | /* glibc uses these symbols as guards to prevent redefinitions. */ | |
16511 | #ifdef __int8_t_defined | |
16512 | #define _INT8_T | |
16513 | #define _INT16_T | |
16514 | #define _INT32_T | |
16515 | #endif | |
16516 | #ifdef __uint32_t_defined | |
16517 | #define _UINT32_T | |
16518 | #endif | |
16519 | ||
16520 | EOF | |
16521 | ||
16522 | # ----------------- done header, emit basic int types ------------- | |
16523 | if test "$acx_cv_header_stdint" = stddef.h; then | |
16524 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
16525 | ||
16526 | #ifndef _UINT8_T | |
16527 | #define _UINT8_T | |
16528 | #ifndef __uint8_t_defined | |
16529 | #define __uint8_t_defined | |
16530 | #ifndef uint8_t | |
16531 | typedef unsigned $acx_cv_type_int8_t uint8_t; | |
16532 | #endif | |
16533 | #endif | |
16534 | #endif | |
16535 | ||
16536 | #ifndef _UINT16_T | |
16537 | #define _UINT16_T | |
16538 | #ifndef __uint16_t_defined | |
16539 | #define __uint16_t_defined | |
16540 | #ifndef uint16_t | |
16541 | typedef unsigned $acx_cv_type_int16_t uint16_t; | |
16542 | #endif | |
16543 | #endif | |
16544 | #endif | |
16545 | ||
16546 | #ifndef _UINT32_T | |
16547 | #define _UINT32_T | |
16548 | #ifndef __uint32_t_defined | |
16549 | #define __uint32_t_defined | |
16550 | #ifndef uint32_t | |
16551 | typedef unsigned $acx_cv_type_int32_t uint32_t; | |
16552 | #endif | |
16553 | #endif | |
16554 | #endif | |
16555 | ||
16556 | #ifndef _INT8_T | |
16557 | #define _INT8_T | |
16558 | #ifndef __int8_t_defined | |
16559 | #define __int8_t_defined | |
16560 | #ifndef int8_t | |
16561 | typedef $acx_cv_type_int8_t int8_t; | |
16562 | #endif | |
16563 | #endif | |
16564 | #endif | |
16565 | ||
16566 | #ifndef _INT16_T | |
16567 | #define _INT16_T | |
16568 | #ifndef __int16_t_defined | |
16569 | #define __int16_t_defined | |
16570 | #ifndef int16_t | |
16571 | typedef $acx_cv_type_int16_t int16_t; | |
16572 | #endif | |
16573 | #endif | |
16574 | #endif | |
16575 | ||
16576 | #ifndef _INT32_T | |
16577 | #define _INT32_T | |
16578 | #ifndef __int32_t_defined | |
16579 | #define __int32_t_defined | |
16580 | #ifndef int32_t | |
16581 | typedef $acx_cv_type_int32_t int32_t; | |
16582 | #endif | |
16583 | #endif | |
16584 | #endif | |
16585 | EOF | |
16586 | elif test "$ac_cv_type_u_int32_t" = yes; then | |
16587 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
16588 | ||
16589 | /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ | |
16590 | #ifndef _INT8_T | |
16591 | #define _INT8_T | |
16592 | #endif | |
16593 | #ifndef _INT16_T | |
16594 | #define _INT16_T | |
16595 | #endif | |
16596 | #ifndef _INT32_T | |
16597 | #define _INT32_T | |
16598 | #endif | |
16599 | ||
16600 | #ifndef _UINT8_T | |
16601 | #define _UINT8_T | |
16602 | #ifndef __uint8_t_defined | |
16603 | #define __uint8_t_defined | |
16604 | #ifndef uint8_t | |
16605 | typedef u_int8_t uint8_t; | |
16606 | #endif | |
16607 | #endif | |
16608 | #endif | |
16609 | ||
16610 | #ifndef _UINT16_T | |
16611 | #define _UINT16_T | |
16612 | #ifndef __uint16_t_defined | |
16613 | #define __uint16_t_defined | |
16614 | #ifndef uint16_t | |
16615 | typedef u_int16_t uint16_t; | |
16616 | #endif | |
16617 | #endif | |
16618 | #endif | |
16619 | ||
16620 | #ifndef _UINT32_T | |
16621 | #define _UINT32_T | |
16622 | #ifndef __uint32_t_defined | |
16623 | #define __uint32_t_defined | |
16624 | #ifndef uint32_t | |
16625 | typedef u_int32_t uint32_t; | |
16626 | #endif | |
16627 | #endif | |
16628 | #endif | |
16629 | EOF | |
16630 | else | |
16631 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
16632 | ||
16633 | /* Some systems have guard macros to prevent redefinitions, define them. */ | |
16634 | #ifndef _INT8_T | |
16635 | #define _INT8_T | |
16636 | #endif | |
16637 | #ifndef _INT16_T | |
16638 | #define _INT16_T | |
16639 | #endif | |
16640 | #ifndef _INT32_T | |
16641 | #define _INT32_T | |
16642 | #endif | |
16643 | #ifndef _UINT8_T | |
16644 | #define _UINT8_T | |
16645 | #endif | |
16646 | #ifndef _UINT16_T | |
16647 | #define _UINT16_T | |
16648 | #endif | |
16649 | #ifndef _UINT32_T | |
16650 | #define _UINT32_T | |
16651 | #endif | |
16652 | EOF | |
16653 | fi | |
16654 | ||
16655 | # ------------- done basic int types, emit int64_t types ------------ | |
16656 | if test "$ac_cv_type_uint64_t" = yes; then | |
16657 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
16658 | ||
16659 | /* system headers have good uint64_t and int64_t */ | |
16660 | #ifndef _INT64_T | |
16661 | #define _INT64_T | |
16662 | #endif | |
16663 | #ifndef _UINT64_T | |
16664 | #define _UINT64_T | |
16665 | #endif | |
16666 | EOF | |
16667 | elif test "$ac_cv_type_u_int64_t" = yes; then | |
16668 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
16669 | ||
16670 | /* system headers have an u_int64_t (and int64_t) */ | |
16671 | #ifndef _INT64_T | |
16672 | #define _INT64_T | |
16673 | #endif | |
16674 | #ifndef _UINT64_T | |
16675 | #define _UINT64_T | |
16676 | #ifndef __uint64_t_defined | |
16677 | #define __uint64_t_defined | |
16678 | #ifndef uint64_t | |
16679 | typedef u_int64_t uint64_t; | |
16680 | #endif | |
16681 | #endif | |
16682 | #endif | |
16683 | EOF | |
16684 | elif test -n "$acx_cv_type_int64_t"; then | |
16685 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
16686 | ||
16687 | /* architecture has a 64-bit type, $acx_cv_type_int64_t */ | |
16688 | #ifndef _INT64_T | |
16689 | #define _INT64_T | |
16690 | #ifndef int64_t | |
16691 | typedef $acx_cv_type_int64_t int64_t; | |
16692 | #endif | |
16693 | #endif | |
16694 | #ifndef _UINT64_T | |
16695 | #define _UINT64_T | |
16696 | #ifndef __uint64_t_defined | |
16697 | #define __uint64_t_defined | |
16698 | #ifndef uint64_t | |
16699 | typedef unsigned $acx_cv_type_int64_t uint64_t; | |
16700 | #endif | |
16701 | #endif | |
16702 | #endif | |
16703 | EOF | |
16704 | else | |
16705 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
16706 | ||
16707 | /* some common heuristics for int64_t, using compiler-specific tests */ | |
16708 | #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L | |
16709 | #ifndef _INT64_T | |
16710 | #define _INT64_T | |
16711 | #ifndef __int64_t_defined | |
16712 | #ifndef int64_t | |
16713 | typedef long long int64_t; | |
16714 | #endif | |
16715 | #endif | |
16716 | #endif | |
16717 | #ifndef _UINT64_T | |
16718 | #define _UINT64_T | |
16719 | #ifndef uint64_t | |
16720 | typedef unsigned long long uint64_t; | |
16721 | #endif | |
16722 | #endif | |
16723 | ||
16724 | #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 | |
16725 | /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and | |
16726 | does not implement __extension__. But that compiler doesn't define | |
16727 | __GNUC_MINOR__. */ | |
16728 | # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) | |
16729 | # define __extension__ | |
16730 | # endif | |
16731 | ||
16732 | # ifndef _INT64_T | |
16733 | # define _INT64_T | |
16734 | # ifndef int64_t | |
16735 | __extension__ typedef long long int64_t; | |
16736 | # endif | |
16737 | # endif | |
16738 | # ifndef _UINT64_T | |
16739 | # define _UINT64_T | |
16740 | # ifndef uint64_t | |
16741 | __extension__ typedef unsigned long long uint64_t; | |
16742 | # endif | |
16743 | # endif | |
16744 | ||
16745 | #elif !defined __STRICT_ANSI__ | |
16746 | # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ | |
16747 | ||
16748 | # ifndef _INT64_T | |
16749 | # define _INT64_T | |
16750 | # ifndef int64_t | |
16751 | typedef __int64 int64_t; | |
16752 | # endif | |
16753 | # endif | |
16754 | # ifndef _UINT64_T | |
16755 | # define _UINT64_T | |
16756 | # ifndef uint64_t | |
16757 | typedef unsigned __int64 uint64_t; | |
16758 | # endif | |
16759 | # endif | |
16760 | # endif /* compiler */ | |
16761 | ||
16762 | #endif /* ANSI version */ | |
16763 | EOF | |
16764 | fi | |
16765 | ||
16766 | # ------------- done int64_t types, emit intptr types ------------ | |
16767 | if test "$ac_cv_type_uintptr_t" != yes; then | |
16768 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
16769 | ||
16770 | /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ | |
16771 | #ifndef __uintptr_t_defined | |
16772 | #ifndef uintptr_t | |
16773 | typedef u$acx_cv_type_intptr_t uintptr_t; | |
16774 | #endif | |
16775 | #endif | |
16776 | #ifndef __intptr_t_defined | |
16777 | #ifndef intptr_t | |
16778 | typedef $acx_cv_type_intptr_t intptr_t; | |
16779 | #endif | |
16780 | #endif | |
16781 | EOF | |
16782 | fi | |
16783 | ||
16784 | # ------------- done intptr types, emit int_least types ------------ | |
16785 | if test "$ac_cv_type_int_least32_t" != yes; then | |
16786 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
16787 | ||
16788 | /* Define int_least types */ | |
16789 | typedef int8_t int_least8_t; | |
16790 | typedef int16_t int_least16_t; | |
16791 | typedef int32_t int_least32_t; | |
16792 | #ifdef _INT64_T | |
16793 | typedef int64_t int_least64_t; | |
16794 | #endif | |
16795 | ||
16796 | typedef uint8_t uint_least8_t; | |
16797 | typedef uint16_t uint_least16_t; | |
16798 | typedef uint32_t uint_least32_t; | |
16799 | #ifdef _UINT64_T | |
16800 | typedef uint64_t uint_least64_t; | |
16801 | #endif | |
16802 | EOF | |
16803 | fi | |
16804 | ||
16805 | # ------------- done intptr types, emit int_fast types ------------ | |
16806 | if test "$ac_cv_type_int_fast32_t" != yes; then | |
16807 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
16808 | ||
16809 | /* Define int_fast types. short is often slow */ | |
16810 | typedef int8_t int_fast8_t; | |
16811 | typedef int int_fast16_t; | |
16812 | typedef int32_t int_fast32_t; | |
16813 | #ifdef _INT64_T | |
16814 | typedef int64_t int_fast64_t; | |
16815 | #endif | |
16816 | ||
16817 | typedef uint8_t uint_fast8_t; | |
16818 | typedef unsigned int uint_fast16_t; | |
16819 | typedef uint32_t uint_fast32_t; | |
16820 | #ifdef _UINT64_T | |
16821 | typedef uint64_t uint_fast64_t; | |
16822 | #endif | |
16823 | EOF | |
16824 | fi | |
16825 | ||
16826 | if test "$ac_cv_type_uintmax_t" != yes; then | |
16827 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
16828 | ||
16829 | /* Define intmax based on what we found */ | |
16830 | #ifndef intmax_t | |
16831 | #ifdef _INT64_T | |
16832 | typedef int64_t intmax_t; | |
16833 | #else | |
16834 | typedef long intmax_t; | |
16835 | #endif | |
16836 | #endif | |
16837 | #ifndef uintmax_t | |
16838 | #ifdef _UINT64_T | |
16839 | typedef uint64_t uintmax_t; | |
16840 | #else | |
16841 | typedef unsigned long uintmax_t; | |
16842 | #endif | |
16843 | #endif | |
16844 | EOF | |
16845 | fi | |
16846 | ||
16847 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
16848 | ||
16849 | #endif /* GCC_GENERATED_STDINT_H */ | |
16850 | EOF | |
16851 | ||
16852 | if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then | |
16853 | rm -f tmp-stdint.h | |
16854 | else | |
16855 | mv -f tmp-stdint.h gstdint.h | |
16856 | fi | |
16857 | ||
16858 | ;; | |
16859 | "install-debuginfo-for-buildid.sh":F) chmod +x install-debuginfo-for-buildid.sh ;; | |
16860 | "default":C) if test -n "$CONFIG_FILES"; then | |
16861 | if test -n "${with_target_subdir}"; then | |
16862 | # Multilibs need MULTISUBDIR defined correctly in certain makefiles so | |
16863 | # that multilib installs will end up installed in the correct place. | |
16864 | # The testsuite needs it for multilib-aware ABI baseline files. | |
16865 | # To work around this not being passed down from config-ml.in -> | |
16866 | # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually | |
16867 | # append it here. Only modify Makefiles that have just been created. | |
16868 | # | |
16869 | # Also, get rid of this simulated-VPATH thing that automake does. | |
16870 | cat > vpsed << \_EOF | |
16871 | s!`test -f '$<' || echo '$(srcdir)/'`!! | |
16872 | _EOF | |
16873 | for i in $SUBDIRS; do | |
16874 | case $CONFIG_FILES in | |
16875 | *${i}/Makefile*) | |
16876 | #echo "Adding MULTISUBDIR to $i/Makefile" | |
16877 | sed -f vpsed $i/Makefile > tmp | |
16878 | grep '^MULTISUBDIR =' Makefile >> tmp | |
16879 | mv tmp $i/Makefile | |
16880 | ;; | |
16881 | esac | |
16882 | done | |
16883 | rm vpsed | |
16884 | fi | |
16885 | fi | |
16886 | ;; | |
16887 | ||
16888 | esac | |
16889 | done # for ac_tag | |
16890 | ||
16891 | ||
16892 | as_fn_exit 0 | |
16893 | _ACEOF | |
16894 | ac_clean_files=$ac_clean_files_save | |
16895 | ||
16896 | test $ac_write_fail = 0 || | |
16897 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
16898 | ||
16899 | ||
16900 | # configure is writing to config.log, and then calls config.status. | |
16901 | # config.status does its own redirection, appending to config.log. | |
16902 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
16903 | # by configure, so config.status won't be able to write to it; its | |
16904 | # output is simply discarded. So we exec the FD to /dev/null, | |
16905 | # effectively closing config.log, so it can be properly (re)opened and | |
16906 | # appended to by config.status. When coming back to configure, we | |
16907 | # need to make the FD available again. | |
16908 | if test "$no_create" != yes; then | |
16909 | ac_cs_success=: | |
16910 | ac_config_status_args= | |
16911 | test "$silent" = yes && | |
16912 | ac_config_status_args="$ac_config_status_args --quiet" | |
16913 | exec 5>/dev/null | |
16914 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
16915 | exec 5>>config.log | |
16916 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
16917 | # would make configure fail if this is the last instruction. | |
16918 | $ac_cs_success || as_fn_exit 1 | |
16919 | fi | |
16920 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
16921 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
16922 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
16923 | fi | |
16924 |