]>
Commit | Line | Data |
---|---|---|
1 | #! /bin/sh | |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.72 for GNU C Library (see version.h). | |
4 | # | |
5 | # Report bugs to <https://sourceware.org/bugzilla/>. | |
6 | # | |
7 | # | |
8 | # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, | |
9 | # Inc. | |
10 | # | |
11 | # | |
12 | # This configure script is free software; the Free Software Foundation | |
13 | # gives unlimited permission to copy, distribute and modify it. | |
14 | ## -------------------- ## | |
15 | ## M4sh Initialization. ## | |
16 | ## -------------------- ## | |
17 | ||
18 | # Be more Bourne compatible | |
19 | DUALCASE=1; export DUALCASE # for MKS sh | |
20 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 | |
21 | then : | |
22 | emulate sh | |
23 | NULLCMD=: | |
24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
25 | # is contrary to our usage. Disable this feature. | |
26 | alias -g '${1+"$@"}'='"$@"' | |
27 | setopt NO_GLOB_SUBST | |
28 | else case e in #( | |
29 | e) case `(set -o) 2>/dev/null` in #( | |
30 | *posix*) : | |
31 | set -o posix ;; #( | |
32 | *) : | |
33 | ;; | |
34 | esac ;; | |
35 | esac | |
36 | fi | |
37 | ||
38 | ||
39 | ||
40 | # Reset variables that may have inherited troublesome values from | |
41 | # the environment. | |
42 | ||
43 | # IFS needs to be set, to space, tab, and newline, in precisely that order. | |
44 | # (If _AS_PATH_WALK were called with IFS unset, it would have the | |
45 | # side effect of setting IFS to empty, thus disabling word splitting.) | |
46 | # Quoting is to prevent editors from complaining about space-tab. | |
47 | as_nl=' | |
48 | ' | |
49 | export as_nl | |
50 | IFS=" "" $as_nl" | |
51 | ||
52 | PS1='$ ' | |
53 | PS2='> ' | |
54 | PS4='+ ' | |
55 | ||
56 | # Ensure predictable behavior from utilities with locale-dependent output. | |
57 | LC_ALL=C | |
58 | export LC_ALL | |
59 | LANGUAGE=C | |
60 | export LANGUAGE | |
61 | ||
62 | # We cannot yet rely on "unset" to work, but we need these variables | |
63 | # to be unset--not just set to an empty or harmless value--now, to | |
64 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct | |
65 | # also avoids known problems related to "unset" and subshell syntax | |
66 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). | |
67 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH | |
68 | do eval test \${$as_var+y} \ | |
69 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
70 | done | |
71 | ||
72 | # Ensure that fds 0, 1, and 2 are open. | |
73 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi | |
74 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi | |
75 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi | |
76 | ||
77 | # The user is always right. | |
78 | if ${PATH_SEPARATOR+false} :; then | |
79 | PATH_SEPARATOR=: | |
80 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
81 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
82 | PATH_SEPARATOR=';' | |
83 | } | |
84 | fi | |
85 | ||
86 | ||
87 | # Find who we are. Look in the path if we contain no directory separator. | |
88 | as_myself= | |
89 | case $0 in #(( | |
90 | *[\\/]* ) as_myself=$0 ;; | |
91 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
92 | for as_dir in $PATH | |
93 | do | |
94 | IFS=$as_save_IFS | |
95 | case $as_dir in #((( | |
96 | '') as_dir=./ ;; | |
97 | */) ;; | |
98 | *) as_dir=$as_dir/ ;; | |
99 | esac | |
100 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break | |
101 | done | |
102 | IFS=$as_save_IFS | |
103 | ||
104 | ;; | |
105 | esac | |
106 | # We did not find ourselves, most probably we were run as 'sh COMMAND' | |
107 | # in which case we are not to be found in the path. | |
108 | if test "x$as_myself" = x; then | |
109 | as_myself=$0 | |
110 | fi | |
111 | if test ! -f "$as_myself"; then | |
112 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
113 | exit 1 | |
114 | fi | |
115 | ||
116 | ||
117 | # Use a proper internal environment variable to ensure we don't fall | |
118 | # into an infinite loop, continuously re-executing ourselves. | |
119 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
120 | _as_can_reexec=no; export _as_can_reexec; | |
121 | # We cannot yet assume a decent shell, so we have to provide a | |
122 | # neutralization value for shells without unset; and this also | |
123 | # works around shells that cannot unset nonexistent variables. | |
124 | # Preserve -v and -x to the replacement shell. | |
125 | BASH_ENV=/dev/null | |
126 | ENV=/dev/null | |
127 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
128 | case $- in # (((( | |
129 | *v*x* | *x*v* ) as_opts=-vx ;; | |
130 | *v* ) as_opts=-v ;; | |
131 | *x* ) as_opts=-x ;; | |
132 | * ) as_opts= ;; | |
133 | esac | |
134 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
135 | # Admittedly, this is quite paranoid, since all the known shells bail | |
136 | # out after a failed 'exec'. | |
137 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
138 | exit 255 | |
139 | fi | |
140 | # We don't want this to propagate to other subprocesses. | |
141 | { _as_can_reexec=; unset _as_can_reexec;} | |
142 | if test "x$CONFIG_SHELL" = x; then | |
143 | as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 | |
144 | then : | |
145 | emulate sh | |
146 | NULLCMD=: | |
147 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
148 | # is contrary to our usage. Disable this feature. | |
149 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
150 | setopt NO_GLOB_SUBST | |
151 | else case e in #( | |
152 | e) case \`(set -o) 2>/dev/null\` in #( | |
153 | *posix*) : | |
154 | set -o posix ;; #( | |
155 | *) : | |
156 | ;; | |
157 | esac ;; | |
158 | esac | |
159 | fi | |
160 | " | |
161 | as_required="as_fn_return () { (exit \$1); } | |
162 | as_fn_success () { as_fn_return 0; } | |
163 | as_fn_failure () { as_fn_return 1; } | |
164 | as_fn_ret_success () { return 0; } | |
165 | as_fn_ret_failure () { return 1; } | |
166 | ||
167 | exitcode=0 | |
168 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
169 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
170 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
171 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
172 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ) | |
173 | then : | |
174 | ||
175 | else case e in #( | |
176 | e) exitcode=1; echo positional parameters were not saved. ;; | |
177 | esac | |
178 | fi | |
179 | test x\$exitcode = x0 || exit 1 | |
180 | blah=\$(echo \$(echo blah)) | |
181 | test x\"\$blah\" = xblah || exit 1 | |
182 | test -x / || exit 1" | |
183 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
184 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
185 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
186 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" | |
187 | if (eval "$as_required") 2>/dev/null | |
188 | then : | |
189 | as_have_required=yes | |
190 | else case e in #( | |
191 | e) as_have_required=no ;; | |
192 | esac | |
193 | fi | |
194 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null | |
195 | then : | |
196 | ||
197 | else case e in #( | |
198 | e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
199 | as_found=false | |
200 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
201 | do | |
202 | IFS=$as_save_IFS | |
203 | case $as_dir in #((( | |
204 | '') as_dir=./ ;; | |
205 | */) ;; | |
206 | *) as_dir=$as_dir/ ;; | |
207 | esac | |
208 | as_found=: | |
209 | case $as_dir in #( | |
210 | /*) | |
211 | for as_base in sh bash ksh sh5; do | |
212 | # Try only shells that exist, to save several forks. | |
213 | as_shell=$as_dir$as_base | |
214 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
215 | as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null | |
216 | then : | |
217 | CONFIG_SHELL=$as_shell as_have_required=yes | |
218 | if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null | |
219 | then : | |
220 | break 2 | |
221 | fi | |
222 | fi | |
223 | done;; | |
224 | esac | |
225 | as_found=false | |
226 | done | |
227 | IFS=$as_save_IFS | |
228 | if $as_found | |
229 | then : | |
230 | ||
231 | else case e in #( | |
232 | e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
233 | as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null | |
234 | then : | |
235 | CONFIG_SHELL=$SHELL as_have_required=yes | |
236 | fi ;; | |
237 | esac | |
238 | fi | |
239 | ||
240 | ||
241 | if test "x$CONFIG_SHELL" != x | |
242 | then : | |
243 | export CONFIG_SHELL | |
244 | # We cannot yet assume a decent shell, so we have to provide a | |
245 | # neutralization value for shells without unset; and this also | |
246 | # works around shells that cannot unset nonexistent variables. | |
247 | # Preserve -v and -x to the replacement shell. | |
248 | BASH_ENV=/dev/null | |
249 | ENV=/dev/null | |
250 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
251 | case $- in # (((( | |
252 | *v*x* | *x*v* ) as_opts=-vx ;; | |
253 | *v* ) as_opts=-v ;; | |
254 | *x* ) as_opts=-x ;; | |
255 | * ) as_opts= ;; | |
256 | esac | |
257 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
258 | # Admittedly, this is quite paranoid, since all the known shells bail | |
259 | # out after a failed 'exec'. | |
260 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
261 | exit 255 | |
262 | fi | |
263 | ||
264 | if test x$as_have_required = xno | |
265 | then : | |
266 | printf "%s\n" "$0: This script requires a shell more modern than all" | |
267 | printf "%s\n" "$0: the shells that I found on your system." | |
268 | if test ${ZSH_VERSION+y} ; then | |
269 | printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
270 | printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." | |
271 | else | |
272 | printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and | |
273 | $0: https://sourceware.org/bugzilla/ about your system, | |
274 | $0: including any error possibly output before this | |
275 | $0: message. Then install a modern shell, or manually run | |
276 | $0: the script under such a shell if you do have one." | |
277 | fi | |
278 | exit 1 | |
279 | fi ;; | |
280 | esac | |
281 | fi | |
282 | fi | |
283 | SHELL=${CONFIG_SHELL-/bin/sh} | |
284 | export SHELL | |
285 | # Unset more variables known to interfere with behavior of common tools. | |
286 | CLICOLOR_FORCE= GREP_OPTIONS= | |
287 | unset CLICOLOR_FORCE GREP_OPTIONS | |
288 | ||
289 | ## --------------------- ## | |
290 | ## M4sh Shell Functions. ## | |
291 | ## --------------------- ## | |
292 | # as_fn_unset VAR | |
293 | # --------------- | |
294 | # Portably unset VAR. | |
295 | as_fn_unset () | |
296 | { | |
297 | { eval $1=; unset $1;} | |
298 | } | |
299 | as_unset=as_fn_unset | |
300 | ||
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=`printf "%s\n" "$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 | printf "%s\n" 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 | |
382 | then : | |
383 | eval 'as_fn_append () | |
384 | { | |
385 | eval $1+=\$2 | |
386 | }' | |
387 | else case e in #( | |
388 | e) as_fn_append () | |
389 | { | |
390 | eval $1=\$$1\$2 | |
391 | } ;; | |
392 | esac | |
393 | fi # as_fn_append | |
394 | ||
395 | # as_fn_arith ARG... | |
396 | # ------------------ | |
397 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
398 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
399 | # must be portable across $(()) and expr. | |
400 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null | |
401 | then : | |
402 | eval 'as_fn_arith () | |
403 | { | |
404 | as_val=$(( $* )) | |
405 | }' | |
406 | else case e in #( | |
407 | e) as_fn_arith () | |
408 | { | |
409 | as_val=`expr "$@" || test $? -eq 1` | |
410 | } ;; | |
411 | esac | |
412 | fi # as_fn_arith | |
413 | ||
414 | ||
415 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
416 | # ---------------------------------------- | |
417 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
418 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
419 | # script with STATUS, using 1 if that was 0. | |
420 | as_fn_error () | |
421 | { | |
422 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
423 | if test "$4"; then | |
424 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
425 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
426 | fi | |
427 | printf "%s\n" "$as_me: error: $2" >&2 | |
428 | as_fn_exit $as_status | |
429 | } # as_fn_error | |
430 | ||
431 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
432 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
433 | as_expr=expr | |
434 | else | |
435 | as_expr=false | |
436 | fi | |
437 | ||
438 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
439 | as_basename=basename | |
440 | else | |
441 | as_basename=false | |
442 | fi | |
443 | ||
444 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
445 | as_dirname=dirname | |
446 | else | |
447 | as_dirname=false | |
448 | fi | |
449 | ||
450 | as_me=`$as_basename -- "$0" || | |
451 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
452 | X"$0" : 'X\(//\)$' \| \ | |
453 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
454 | printf "%s\n" X/"$0" | | |
455 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
456 | s//\1/ | |
457 | q | |
458 | } | |
459 | /^X\/\(\/\/\)$/{ | |
460 | s//\1/ | |
461 | q | |
462 | } | |
463 | /^X\/\(\/\).*/{ | |
464 | s//\1/ | |
465 | q | |
466 | } | |
467 | s/.*/./; q'` | |
468 | ||
469 | # Avoid depending upon Character Ranges. | |
470 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
471 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
472 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
473 | as_cr_digits='0123456789' | |
474 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
475 | ||
476 | ||
477 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
478 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
479 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
480 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
481 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
482 | sed -n ' | |
483 | p | |
484 | /[$]LINENO/= | |
485 | ' <$as_myself | | |
486 | sed ' | |
487 | t clear | |
488 | :clear | |
489 | s/[$]LINENO.*/&-/ | |
490 | t lineno | |
491 | b | |
492 | :lineno | |
493 | N | |
494 | :loop | |
495 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
496 | t loop | |
497 | s/-\n.*// | |
498 | ' >$as_me.lineno && | |
499 | chmod +x "$as_me.lineno" || | |
500 | { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
501 | ||
502 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have | |
503 | # already done that, so ensure we don't try to do so again and fall | |
504 | # in an infinite loop. This has already happened in practice. | |
505 | _as_can_reexec=no; export _as_can_reexec | |
506 | # Don't try to exec as it changes $[0], causing all sort of problems | |
507 | # (the dirname of $[0] is not the place where we might find the | |
508 | # original and so on. Autoconf is especially sensitive to this). | |
509 | . "./$as_me.lineno" | |
510 | # Exit status is that of the last command. | |
511 | exit | |
512 | } | |
513 | ||
514 | ||
515 | # Determine whether it's possible to make 'echo' print without a newline. | |
516 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed | |
517 | # for compatibility with existing Makefiles. | |
518 | ECHO_C= ECHO_N= ECHO_T= | |
519 | case `echo -n x` in #((((( | |
520 | -n*) | |
521 | case `echo 'xy\c'` in | |
522 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
523 | xy) ECHO_C='\c';; | |
524 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
525 | ECHO_T=' ';; | |
526 | esac;; | |
527 | *) | |
528 | ECHO_N='-n';; | |
529 | esac | |
530 | ||
531 | # For backward compatibility with old third-party macros, we provide | |
532 | # the shell variables $as_echo and $as_echo_n. New code should use | |
533 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. | |
534 | as_echo='printf %s\n' | |
535 | as_echo_n='printf %s' | |
536 | ||
537 | rm -f conf$$ conf$$.exe conf$$.file | |
538 | if test -d conf$$.dir; then | |
539 | rm -f conf$$.dir/conf$$.file | |
540 | else | |
541 | rm -f conf$$.dir | |
542 | mkdir conf$$.dir 2>/dev/null | |
543 | fi | |
544 | if (echo >conf$$.file) 2>/dev/null; then | |
545 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
546 | as_ln_s='ln -s' | |
547 | # ... but there are two gotchas: | |
548 | # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. | |
549 | # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. | |
550 | # In both cases, we have to default to 'cp -pR'. | |
551 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
552 | as_ln_s='cp -pR' | |
553 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
554 | as_ln_s=ln | |
555 | else | |
556 | as_ln_s='cp -pR' | |
557 | fi | |
558 | else | |
559 | as_ln_s='cp -pR' | |
560 | fi | |
561 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
562 | rmdir conf$$.dir 2>/dev/null | |
563 | ||
564 | if mkdir -p . 2>/dev/null; then | |
565 | as_mkdir_p='mkdir -p "$as_dir"' | |
566 | else | |
567 | test -d ./-p && rmdir ./-p | |
568 | as_mkdir_p=false | |
569 | fi | |
570 | ||
571 | as_test_x='test -x' | |
572 | as_executable_p=as_fn_executable_p | |
573 | ||
574 | # Sed expression to map a string onto a valid CPP name. | |
575 | as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
576 | as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated | |
577 | ||
578 | # Sed expression to map a string onto a valid variable name. | |
579 | as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
580 | as_tr_sh="eval sed '$as_sed_sh'" # deprecated | |
581 | ||
582 | ||
583 | test -n "$DJDIR" || exec 7<&0 </dev/null | |
584 | exec 6>&1 | |
585 | ||
586 | # Name of the host. | |
587 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
588 | # so uname gets run too. | |
589 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
590 | ||
591 | # | |
592 | # Initializations. | |
593 | # | |
594 | ac_default_prefix=/usr/local | |
595 | ac_clean_files= | |
596 | ac_config_libobj_dir=. | |
597 | LIBOBJS= | |
598 | cross_compiling=no | |
599 | subdirs= | |
600 | MFLAGS= | |
601 | MAKEFLAGS= | |
602 | ||
603 | # Identity of this package. | |
604 | PACKAGE_NAME='GNU C Library' | |
605 | PACKAGE_TARNAME='glibc' | |
606 | PACKAGE_VERSION='(see version.h)' | |
607 | PACKAGE_STRING='GNU C Library (see version.h)' | |
608 | PACKAGE_BUGREPORT='https://sourceware.org/bugzilla/' | |
609 | PACKAGE_URL='https://www.gnu.org/software/glibc/' | |
610 | ||
611 | ac_unique_file="include/features.h" | |
612 | enable_option_checking=no | |
613 | ac_subst_vars='LTLIBOBJS | |
614 | LIBOBJS | |
615 | pthread_in_libc | |
616 | RELEASE | |
617 | VERSION | |
618 | mach_interface_list | |
619 | DEFINES | |
620 | static_nss | |
621 | profile | |
622 | libc_cv_multidir | |
623 | libc_cv_test_x86_have_amx_tile | |
624 | test_enable_cet | |
625 | libc_cv_test_cc_mprefer_vector_width | |
626 | shared | |
627 | static | |
628 | ldd_rewrite_script | |
629 | use_ldconfig | |
630 | libc_cv_rootsbindir | |
631 | libc_cv_localstatedir | |
632 | libc_cv_sysconfdir | |
633 | libc_cv_complocaledir | |
634 | libc_cv_rtlddir | |
635 | libc_cv_slibdir | |
636 | use_nscd | |
637 | libc_cv_gcc_unwind_find_fde | |
638 | libc_extra_cppflags | |
639 | libc_extra_cflags | |
640 | libc_cv_cxx_thread_local | |
641 | no_time_bits_source | |
642 | no_file_offset_bits_source | |
643 | fortify_source | |
644 | no_fortify_source | |
645 | libc_cv_fortify_source | |
646 | enable_fortify_source | |
647 | libc_cv_test_supported_fortify_source | |
648 | have_selinux | |
649 | have_libcap | |
650 | have_libaudit | |
651 | LIBGD | |
652 | libc_cv_test_cc_wmissing_parameter_name | |
653 | libc_cv_test_cc_wfree_labels | |
654 | libc_cv_test_cc_wimplicit_fallthrough | |
655 | libc_cv_cc_loop_to_function | |
656 | libc_cv_test_cc_signaling_nans | |
657 | libc_cv_cc_submachine | |
658 | libc_cv_cc_nofma | |
659 | libc_cv_test_wno_ignored_attributes | |
660 | libc_cv_has_glob_dat | |
661 | libc_cv_fpie | |
662 | libc_cv_test_static_pie | |
663 | libc_cv_z_execstack | |
664 | libc_cv_no_error_execstack | |
665 | ASFLAGS_config | |
666 | libc_cv_cc_with_libunwind | |
667 | libc_cv_insert | |
668 | libc_cv_protected_data | |
669 | INSTALL_INFO | |
670 | PERL | |
671 | BASH_SHELL | |
672 | CXX_BITS_STD_ABS_H | |
673 | CXX_CMATH_HEADER | |
674 | CXX_CSTDLIB_HEADER | |
675 | CXX_SYSINCLUDES | |
676 | SYSINCLUDES | |
677 | sysnames | |
678 | submachine | |
679 | multi_arch | |
680 | libc_cv_textrel_ifunc | |
681 | no_stack_protector | |
682 | stack_protector | |
683 | libc_cv_ssp | |
684 | libc_cv_with_fp | |
685 | PYTHON | |
686 | PYTHON_PROG | |
687 | AUTOCONF | |
688 | BISON | |
689 | AWK | |
690 | SED | |
691 | MAKEINFO | |
692 | MSGFMT | |
693 | MAKE | |
694 | LD | |
695 | NM | |
696 | OBJDUMP | |
697 | READELF | |
698 | GPROF | |
699 | OBJCOPY | |
700 | AR | |
701 | LN_S | |
702 | INSTALL_DATA | |
703 | INSTALL_SCRIPT | |
704 | INSTALL_PROGRAM | |
705 | base_machine | |
706 | build_pt_chown | |
707 | build_nscd | |
708 | memory_tagging | |
709 | enable_werror | |
710 | force_install | |
711 | bindnow | |
712 | hardcoded_path_in_tests | |
713 | enable_timezone_tools | |
714 | man_pages_version | |
715 | rtld_early_cflags | |
716 | extra_nonshared_cflags | |
717 | sysheaders | |
718 | TEST_CXX | |
719 | ac_ct_CXX | |
720 | CXXFLAGS | |
721 | CXX | |
722 | CPP | |
723 | cross_compiling | |
724 | BUILD_CC | |
725 | TEST_CC | |
726 | OBJEXT | |
727 | ac_ct_CC | |
728 | CPPFLAGS | |
729 | LDFLAGS | |
730 | CFLAGS | |
731 | CC | |
732 | host_os | |
733 | host_vendor | |
734 | host_cpu | |
735 | host | |
736 | build_os | |
737 | build_vendor | |
738 | build_cpu | |
739 | build | |
740 | subdirs | |
741 | REPORT_BUGS_TEXI | |
742 | REPORT_BUGS_TO | |
743 | PKGVERSION_TEXI | |
744 | PKGVERSION | |
745 | target_alias | |
746 | host_alias | |
747 | build_alias | |
748 | LIBS | |
749 | ECHO_T | |
750 | ECHO_N | |
751 | ECHO_C | |
752 | DEFS | |
753 | mandir | |
754 | localedir | |
755 | libdir | |
756 | psdir | |
757 | pdfdir | |
758 | dvidir | |
759 | htmldir | |
760 | infodir | |
761 | docdir | |
762 | oldincludedir | |
763 | includedir | |
764 | runstatedir | |
765 | localstatedir | |
766 | sharedstatedir | |
767 | sysconfdir | |
768 | datadir | |
769 | datarootdir | |
770 | libexecdir | |
771 | sbindir | |
772 | bindir | |
773 | program_transform_name | |
774 | prefix | |
775 | exec_prefix | |
776 | PACKAGE_URL | |
777 | PACKAGE_BUGREPORT | |
778 | PACKAGE_STRING | |
779 | PACKAGE_VERSION | |
780 | PACKAGE_TARNAME | |
781 | PACKAGE_NAME | |
782 | PATH_SEPARATOR | |
783 | SHELL' | |
784 | ac_subst_files='' | |
785 | ac_user_opts=' | |
786 | enable_option_checking | |
787 | with_pkgversion | |
788 | with_bugurl | |
789 | enable_static_c___tests | |
790 | enable_static_c___link_check | |
791 | with_gd | |
792 | with_gd_include | |
793 | with_gd_lib | |
794 | with_binutils | |
795 | with_selinux | |
796 | with_headers | |
797 | with_nonshared_cflags | |
798 | with_rtld_early_cflags | |
799 | with_timeoutfactor | |
800 | with_man_pages | |
801 | enable_sanity_checks | |
802 | enable_shared | |
803 | enable_profile | |
804 | enable_default_pie | |
805 | enable_timezone_tools | |
806 | enable_hardcoded_path_in_tests | |
807 | enable_hidden_plt | |
808 | enable_bind_now | |
809 | enable_stack_protector | |
810 | enable_static_nss | |
811 | enable_force_install | |
812 | enable_maintainer_mode | |
813 | enable_kernel | |
814 | enable_werror | |
815 | enable_multi_arch | |
816 | enable_memory_tagging | |
817 | enable_systemtap | |
818 | enable_build_nscd | |
819 | enable_nscd | |
820 | enable_pt_chown | |
821 | enable_mathvec | |
822 | enable_cet | |
823 | enable_scv | |
824 | enable_fortify_source | |
825 | with_cpu | |
826 | ' | |
827 | ac_precious_vars='build_alias | |
828 | host_alias | |
829 | target_alias | |
830 | CC | |
831 | CFLAGS | |
832 | LDFLAGS | |
833 | LIBS | |
834 | CPPFLAGS | |
835 | TEST_CC | |
836 | CPP | |
837 | CXX | |
838 | CXXFLAGS | |
839 | CCC | |
840 | TEST_CXX' | |
841 | ac_subdirs_all='' | |
842 | ||
843 | # Initialize some variables set by options. | |
844 | ac_init_help= | |
845 | ac_init_version=false | |
846 | ac_unrecognized_opts= | |
847 | ac_unrecognized_sep= | |
848 | # The variables have the same names as the options, with | |
849 | # dashes changed to underlines. | |
850 | cache_file=/dev/null | |
851 | exec_prefix=NONE | |
852 | no_create= | |
853 | no_recursion= | |
854 | prefix=NONE | |
855 | program_prefix=NONE | |
856 | program_suffix=NONE | |
857 | program_transform_name=s,x,x, | |
858 | silent= | |
859 | site= | |
860 | srcdir= | |
861 | verbose= | |
862 | x_includes=NONE | |
863 | x_libraries=NONE | |
864 | ||
865 | # Installation directory options. | |
866 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
867 | # and all the variables that are supposed to be based on exec_prefix | |
868 | # by default will actually change. | |
869 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
870 | # (The list follows the same order as the GNU Coding Standards.) | |
871 | bindir='${exec_prefix}/bin' | |
872 | sbindir='${exec_prefix}/sbin' | |
873 | libexecdir='${exec_prefix}/libexec' | |
874 | datarootdir='${prefix}/share' | |
875 | datadir='${datarootdir}' | |
876 | sysconfdir='${prefix}/etc' | |
877 | sharedstatedir='${prefix}/com' | |
878 | localstatedir='${prefix}/var' | |
879 | runstatedir='${localstatedir}/run' | |
880 | includedir='${prefix}/include' | |
881 | oldincludedir='/usr/include' | |
882 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
883 | infodir='${datarootdir}/info' | |
884 | htmldir='${docdir}' | |
885 | dvidir='${docdir}' | |
886 | pdfdir='${docdir}' | |
887 | psdir='${docdir}' | |
888 | libdir='${exec_prefix}/lib' | |
889 | localedir='${datarootdir}/locale' | |
890 | mandir='${datarootdir}/man' | |
891 | ||
892 | ac_prev= | |
893 | ac_dashdash= | |
894 | for ac_option | |
895 | do | |
896 | # If the previous option needs an argument, assign it. | |
897 | if test -n "$ac_prev"; then | |
898 | eval $ac_prev=\$ac_option | |
899 | ac_prev= | |
900 | continue | |
901 | fi | |
902 | ||
903 | case $ac_option in | |
904 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
905 | *=) ac_optarg= ;; | |
906 | *) ac_optarg=yes ;; | |
907 | esac | |
908 | ||
909 | case $ac_dashdash$ac_option in | |
910 | --) | |
911 | ac_dashdash=yes ;; | |
912 | ||
913 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
914 | ac_prev=bindir ;; | |
915 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
916 | bindir=$ac_optarg ;; | |
917 | ||
918 | -build | --build | --buil | --bui | --bu) | |
919 | ac_prev=build_alias ;; | |
920 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
921 | build_alias=$ac_optarg ;; | |
922 | ||
923 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
924 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
925 | ac_prev=cache_file ;; | |
926 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
927 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
928 | cache_file=$ac_optarg ;; | |
929 | ||
930 | --config-cache | -C) | |
931 | cache_file=config.cache ;; | |
932 | ||
933 | -datadir | --datadir | --datadi | --datad) | |
934 | ac_prev=datadir ;; | |
935 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
936 | datadir=$ac_optarg ;; | |
937 | ||
938 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
939 | | --dataroo | --dataro | --datar) | |
940 | ac_prev=datarootdir ;; | |
941 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
942 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
943 | datarootdir=$ac_optarg ;; | |
944 | ||
945 | -disable-* | --disable-*) | |
946 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
947 | # Reject names that are not valid shell variable names. | |
948 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
949 | as_fn_error $? "invalid feature name: '$ac_useropt'" | |
950 | ac_useropt_orig=$ac_useropt | |
951 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` | |
952 | case $ac_user_opts in | |
953 | *" | |
954 | "enable_$ac_useropt" | |
955 | "*) ;; | |
956 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
957 | ac_unrecognized_sep=', ';; | |
958 | esac | |
959 | eval enable_$ac_useropt=no ;; | |
960 | ||
961 | -docdir | --docdir | --docdi | --doc | --do) | |
962 | ac_prev=docdir ;; | |
963 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
964 | docdir=$ac_optarg ;; | |
965 | ||
966 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
967 | ac_prev=dvidir ;; | |
968 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
969 | dvidir=$ac_optarg ;; | |
970 | ||
971 | -enable-* | --enable-*) | |
972 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
973 | # Reject names that are not valid shell variable names. | |
974 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
975 | as_fn_error $? "invalid feature name: '$ac_useropt'" | |
976 | ac_useropt_orig=$ac_useropt | |
977 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` | |
978 | case $ac_user_opts in | |
979 | *" | |
980 | "enable_$ac_useropt" | |
981 | "*) ;; | |
982 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
983 | ac_unrecognized_sep=', ';; | |
984 | esac | |
985 | eval enable_$ac_useropt=\$ac_optarg ;; | |
986 | ||
987 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
988 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
989 | | --exec | --exe | --ex) | |
990 | ac_prev=exec_prefix ;; | |
991 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
992 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
993 | | --exec=* | --exe=* | --ex=*) | |
994 | exec_prefix=$ac_optarg ;; | |
995 | ||
996 | -gas | --gas | --ga | --g) | |
997 | # Obsolete; use --with-gas. | |
998 | with_gas=yes ;; | |
999 | ||
1000 | -help | --help | --hel | --he | -h) | |
1001 | ac_init_help=long ;; | |
1002 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1003 | ac_init_help=recursive ;; | |
1004 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1005 | ac_init_help=short ;; | |
1006 | ||
1007 | -host | --host | --hos | --ho) | |
1008 | ac_prev=host_alias ;; | |
1009 | -host=* | --host=* | --hos=* | --ho=*) | |
1010 | host_alias=$ac_optarg ;; | |
1011 | ||
1012 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1013 | ac_prev=htmldir ;; | |
1014 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1015 | | --ht=*) | |
1016 | htmldir=$ac_optarg ;; | |
1017 | ||
1018 | -includedir | --includedir | --includedi | --included | --include \ | |
1019 | | --includ | --inclu | --incl | --inc) | |
1020 | ac_prev=includedir ;; | |
1021 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1022 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1023 | includedir=$ac_optarg ;; | |
1024 | ||
1025 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1026 | ac_prev=infodir ;; | |
1027 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1028 | infodir=$ac_optarg ;; | |
1029 | ||
1030 | -libdir | --libdir | --libdi | --libd) | |
1031 | ac_prev=libdir ;; | |
1032 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1033 | libdir=$ac_optarg ;; | |
1034 | ||
1035 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1036 | | --libexe | --libex | --libe) | |
1037 | ac_prev=libexecdir ;; | |
1038 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1039 | | --libexe=* | --libex=* | --libe=*) | |
1040 | libexecdir=$ac_optarg ;; | |
1041 | ||
1042 | -localedir | --localedir | --localedi | --localed | --locale) | |
1043 | ac_prev=localedir ;; | |
1044 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1045 | localedir=$ac_optarg ;; | |
1046 | ||
1047 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1048 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1049 | ac_prev=localstatedir ;; | |
1050 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1051 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1052 | localstatedir=$ac_optarg ;; | |
1053 | ||
1054 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1055 | ac_prev=mandir ;; | |
1056 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1057 | mandir=$ac_optarg ;; | |
1058 | ||
1059 | -nfp | --nfp | --nf) | |
1060 | # Obsolete; use --without-fp. | |
1061 | with_fp=no ;; | |
1062 | ||
1063 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1064 | | --no-cr | --no-c | -n) | |
1065 | no_create=yes ;; | |
1066 | ||
1067 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1068 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1069 | no_recursion=yes ;; | |
1070 | ||
1071 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1072 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1073 | | --oldin | --oldi | --old | --ol | --o) | |
1074 | ac_prev=oldincludedir ;; | |
1075 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1076 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1077 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1078 | oldincludedir=$ac_optarg ;; | |
1079 | ||
1080 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1081 | ac_prev=prefix ;; | |
1082 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1083 | prefix=$ac_optarg ;; | |
1084 | ||
1085 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1086 | | --program-pre | --program-pr | --program-p) | |
1087 | ac_prev=program_prefix ;; | |
1088 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1089 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1090 | program_prefix=$ac_optarg ;; | |
1091 | ||
1092 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1093 | | --program-suf | --program-su | --program-s) | |
1094 | ac_prev=program_suffix ;; | |
1095 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1096 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1097 | program_suffix=$ac_optarg ;; | |
1098 | ||
1099 | -program-transform-name | --program-transform-name \ | |
1100 | | --program-transform-nam | --program-transform-na \ | |
1101 | | --program-transform-n | --program-transform- \ | |
1102 | | --program-transform | --program-transfor \ | |
1103 | | --program-transfo | --program-transf \ | |
1104 | | --program-trans | --program-tran \ | |
1105 | | --progr-tra | --program-tr | --program-t) | |
1106 | ac_prev=program_transform_name ;; | |
1107 | -program-transform-name=* | --program-transform-name=* \ | |
1108 | | --program-transform-nam=* | --program-transform-na=* \ | |
1109 | | --program-transform-n=* | --program-transform-=* \ | |
1110 | | --program-transform=* | --program-transfor=* \ | |
1111 | | --program-transfo=* | --program-transf=* \ | |
1112 | | --program-trans=* | --program-tran=* \ | |
1113 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1114 | program_transform_name=$ac_optarg ;; | |
1115 | ||
1116 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1117 | ac_prev=pdfdir ;; | |
1118 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1119 | pdfdir=$ac_optarg ;; | |
1120 | ||
1121 | -psdir | --psdir | --psdi | --psd | --ps) | |
1122 | ac_prev=psdir ;; | |
1123 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1124 | psdir=$ac_optarg ;; | |
1125 | ||
1126 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1127 | | -silent | --silent | --silen | --sile | --sil) | |
1128 | silent=yes ;; | |
1129 | ||
1130 | -runstatedir | --runstatedir | --runstatedi | --runstated \ | |
1131 | | --runstate | --runstat | --runsta | --runst | --runs \ | |
1132 | | --run | --ru | --r) | |
1133 | ac_prev=runstatedir ;; | |
1134 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | |
1135 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | |
1136 | | --run=* | --ru=* | --r=*) | |
1137 | runstatedir=$ac_optarg ;; | |
1138 | ||
1139 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1140 | ac_prev=sbindir ;; | |
1141 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1142 | | --sbi=* | --sb=*) | |
1143 | sbindir=$ac_optarg ;; | |
1144 | ||
1145 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1146 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1147 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1148 | | --sha | --sh) | |
1149 | ac_prev=sharedstatedir ;; | |
1150 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1151 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1152 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1153 | | --sha=* | --sh=*) | |
1154 | sharedstatedir=$ac_optarg ;; | |
1155 | ||
1156 | -site | --site | --sit) | |
1157 | ac_prev=site ;; | |
1158 | -site=* | --site=* | --sit=*) | |
1159 | site=$ac_optarg ;; | |
1160 | ||
1161 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1162 | ac_prev=srcdir ;; | |
1163 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1164 | srcdir=$ac_optarg ;; | |
1165 | ||
1166 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1167 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1168 | ac_prev=sysconfdir ;; | |
1169 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1170 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1171 | sysconfdir=$ac_optarg ;; | |
1172 | ||
1173 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1174 | ac_prev=target_alias ;; | |
1175 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1176 | target_alias=$ac_optarg ;; | |
1177 | ||
1178 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1179 | verbose=yes ;; | |
1180 | ||
1181 | -version | --version | --versio | --versi | --vers | -V) | |
1182 | ac_init_version=: ;; | |
1183 | ||
1184 | -with-* | --with-*) | |
1185 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1186 | # Reject names that are not valid shell variable names. | |
1187 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1188 | as_fn_error $? "invalid package name: '$ac_useropt'" | |
1189 | ac_useropt_orig=$ac_useropt | |
1190 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1191 | case $ac_user_opts in | |
1192 | *" | |
1193 | "with_$ac_useropt" | |
1194 | "*) ;; | |
1195 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1196 | ac_unrecognized_sep=', ';; | |
1197 | esac | |
1198 | eval with_$ac_useropt=\$ac_optarg ;; | |
1199 | ||
1200 | -without-* | --without-*) | |
1201 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1202 | # Reject names that are not valid shell variable names. | |
1203 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1204 | as_fn_error $? "invalid package name: '$ac_useropt'" | |
1205 | ac_useropt_orig=$ac_useropt | |
1206 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1207 | case $ac_user_opts in | |
1208 | *" | |
1209 | "with_$ac_useropt" | |
1210 | "*) ;; | |
1211 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1212 | ac_unrecognized_sep=', ';; | |
1213 | esac | |
1214 | eval with_$ac_useropt=no ;; | |
1215 | ||
1216 | --x) | |
1217 | # Obsolete; use --with-x. | |
1218 | with_x=yes ;; | |
1219 | ||
1220 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1221 | | --x-incl | --x-inc | --x-in | --x-i) | |
1222 | ac_prev=x_includes ;; | |
1223 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1224 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1225 | x_includes=$ac_optarg ;; | |
1226 | ||
1227 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1228 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1229 | ac_prev=x_libraries ;; | |
1230 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1231 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1232 | x_libraries=$ac_optarg ;; | |
1233 | ||
1234 | -*) as_fn_error $? "unrecognized option: '$ac_option' | |
1235 | Try '$0 --help' for more information" | |
1236 | ;; | |
1237 | ||
1238 | *=*) | |
1239 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1240 | # Reject names that are not valid shell variable names. | |
1241 | case $ac_envvar in #( | |
1242 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1243 | as_fn_error $? "invalid variable name: '$ac_envvar'" ;; | |
1244 | esac | |
1245 | eval $ac_envvar=\$ac_optarg | |
1246 | export $ac_envvar ;; | |
1247 | ||
1248 | *) | |
1249 | # FIXME: should be removed in autoconf 3.0. | |
1250 | printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1251 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1252 | printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1253 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
1254 | ;; | |
1255 | ||
1256 | esac | |
1257 | done | |
1258 | ||
1259 | if test -n "$ac_prev"; then | |
1260 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1261 | as_fn_error $? "missing argument to $ac_option" | |
1262 | fi | |
1263 | ||
1264 | if test -n "$ac_unrecognized_opts"; then | |
1265 | case $enable_option_checking in | |
1266 | no) ;; | |
1267 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1268 | *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1269 | esac | |
1270 | fi | |
1271 | ||
1272 | # Check all directory arguments for consistency. | |
1273 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1274 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1275 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1276 | libdir localedir mandir runstatedir | |
1277 | do | |
1278 | eval ac_val=\$$ac_var | |
1279 | # Remove trailing slashes. | |
1280 | case $ac_val in | |
1281 | */ ) | |
1282 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1283 | eval $ac_var=\$ac_val;; | |
1284 | esac | |
1285 | # Be sure to have absolute directory names. | |
1286 | case $ac_val in | |
1287 | [\\/$]* | ?:[\\/]* ) continue;; | |
1288 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1289 | esac | |
1290 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1291 | done | |
1292 | ||
1293 | # There might be people who depend on the old broken behavior: '$host' | |
1294 | # used to hold the argument of --host etc. | |
1295 | # FIXME: To remove some day. | |
1296 | build=$build_alias | |
1297 | host=$host_alias | |
1298 | target=$target_alias | |
1299 | ||
1300 | # FIXME: To remove some day. | |
1301 | if test "x$host_alias" != x; then | |
1302 | if test "x$build_alias" = x; then | |
1303 | cross_compiling=maybe | |
1304 | elif test "x$build_alias" != "x$host_alias"; then | |
1305 | cross_compiling=yes | |
1306 | fi | |
1307 | fi | |
1308 | ||
1309 | ac_tool_prefix= | |
1310 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1311 | ||
1312 | test "$silent" = yes && exec 6>/dev/null | |
1313 | ||
1314 | ||
1315 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1316 | ac_ls_di=`ls -di .` && | |
1317 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1318 | as_fn_error $? "working directory cannot be determined" | |
1319 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1320 | as_fn_error $? "pwd does not report name of working directory" | |
1321 | ||
1322 | ||
1323 | # Find the source files, if location was not specified. | |
1324 | if test -z "$srcdir"; then | |
1325 | ac_srcdir_defaulted=yes | |
1326 | # Try the directory containing this script, then the parent directory. | |
1327 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1328 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1329 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1330 | X"$as_myself" : 'X\(//\)$' \| \ | |
1331 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1332 | printf "%s\n" X"$as_myself" | | |
1333 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1334 | s//\1/ | |
1335 | q | |
1336 | } | |
1337 | /^X\(\/\/\)[^/].*/{ | |
1338 | s//\1/ | |
1339 | q | |
1340 | } | |
1341 | /^X\(\/\/\)$/{ | |
1342 | s//\1/ | |
1343 | q | |
1344 | } | |
1345 | /^X\(\/\).*/{ | |
1346 | s//\1/ | |
1347 | q | |
1348 | } | |
1349 | s/.*/./; q'` | |
1350 | srcdir=$ac_confdir | |
1351 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1352 | srcdir=.. | |
1353 | fi | |
1354 | else | |
1355 | ac_srcdir_defaulted=no | |
1356 | fi | |
1357 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1358 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1359 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1360 | fi | |
1361 | ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" | |
1362 | ac_abs_confdir=`( | |
1363 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1364 | pwd)` | |
1365 | # When building in place, set srcdir=. | |
1366 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1367 | srcdir=. | |
1368 | fi | |
1369 | # Remove unnecessary trailing slashes from srcdir. | |
1370 | # Double slashes in file names in object file debugging info | |
1371 | # mess up M-x gdb in Emacs. | |
1372 | case $srcdir in | |
1373 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1374 | esac | |
1375 | for ac_var in $ac_precious_vars; do | |
1376 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1377 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1378 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1379 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1380 | done | |
1381 | ||
1382 | # | |
1383 | # Report the --help message. | |
1384 | # | |
1385 | if test "$ac_init_help" = "long"; then | |
1386 | # Omit some internal or obsolete options to make the list less imposing. | |
1387 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1388 | cat <<_ACEOF | |
1389 | 'configure' configures GNU C Library (see version.h) to adapt to many kinds of systems. | |
1390 | ||
1391 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1392 | ||
1393 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1394 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1395 | ||
1396 | Defaults for the options are specified in brackets. | |
1397 | ||
1398 | Configuration: | |
1399 | -h, --help display this help and exit | |
1400 | --help=short display options specific to this package | |
1401 | --help=recursive display the short help of all the included packages | |
1402 | -V, --version display version information and exit | |
1403 | -q, --quiet, --silent do not print 'checking ...' messages | |
1404 | --cache-file=FILE cache test results in FILE [disabled] | |
1405 | -C, --config-cache alias for '--cache-file=config.cache' | |
1406 | -n, --no-create do not create output files | |
1407 | --srcdir=DIR find the sources in DIR [configure dir or '..'] | |
1408 | ||
1409 | Installation directories: | |
1410 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1411 | [$ac_default_prefix] | |
1412 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1413 | [PREFIX] | |
1414 | ||
1415 | By default, 'make install' will install all the files in | |
1416 | '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify | |
1417 | an installation prefix other than '$ac_default_prefix' using '--prefix', | |
1418 | for instance '--prefix=\$HOME'. | |
1419 | ||
1420 | For better control, use the options below. | |
1421 | ||
1422 | Fine tuning of the installation directories: | |
1423 | --bindir=DIR user executables [EPREFIX/bin] | |
1424 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1425 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1426 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1427 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1428 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1429 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] | |
1430 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1431 | --includedir=DIR C header files [PREFIX/include] | |
1432 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1433 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1434 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1435 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1436 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1437 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1438 | --docdir=DIR documentation root [DATAROOTDIR/doc/glibc] | |
1439 | --htmldir=DIR html documentation [DOCDIR] | |
1440 | --dvidir=DIR dvi documentation [DOCDIR] | |
1441 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1442 | --psdir=DIR ps documentation [DOCDIR] | |
1443 | _ACEOF | |
1444 | ||
1445 | cat <<\_ACEOF | |
1446 | ||
1447 | System types: | |
1448 | --build=BUILD configure for building on BUILD [guessed] | |
1449 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1450 | _ACEOF | |
1451 | fi | |
1452 | ||
1453 | if test -n "$ac_init_help"; then | |
1454 | case $ac_init_help in | |
1455 | short | recursive ) echo "Configuration of GNU C Library (see version.h):";; | |
1456 | esac | |
1457 | cat <<\_ACEOF | |
1458 | ||
1459 | Optional Features: | |
1460 | --disable-option-checking ignore unrecognized --enable/--with options | |
1461 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1462 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1463 | --disable-static-c++-tests | |
1464 | disable static C++ tests[default=no] | |
1465 | --disable-static-c++-link-check | |
1466 | disable static C++ link check [default=no] | |
1467 | --disable-sanity-checks really do not use threads (should not be used except | |
1468 | in special situations) [default=yes] | |
1469 | --enable-shared build shared library [default=yes if GNU ld] | |
1470 | --enable-profile build profiled library [default=no] | |
1471 | --disable-default-pie Do not build glibc programs and the testsuite as PIE | |
1472 | [default=no] | |
1473 | --disable-timezone-tools | |
1474 | do not install timezone tools [default=install] | |
1475 | --enable-hardcoded-path-in-tests | |
1476 | hardcode newly built glibc path in tests | |
1477 | [default=no] | |
1478 | --disable-hidden-plt do not hide internal function calls to avoid PLT | |
1479 | --enable-bind-now disable lazy relocations in DSOs | |
1480 | --enable-stack-protector=[yes|no|all|strong] | |
1481 | Use -fstack-protector[-all|-strong] to detect glibc | |
1482 | buffer overflows | |
1483 | --enable-static-nss build static NSS modules [default=no] | |
1484 | --disable-force-install don't force installation of files from this package, | |
1485 | even if they are older than the installed files | |
1486 | --enable-maintainer-mode | |
1487 | enable make rules and dependencies not useful (and | |
1488 | sometimes confusing) to the casual installer | |
1489 | --enable-kernel=VERSION compile for compatibility with kernel not older than | |
1490 | VERSION | |
1491 | --disable-werror do not build with -Werror | |
1492 | --enable-multi-arch enable single DSO with optimizations for multiple | |
1493 | architectures | |
1494 | --enable-memory-tagging enable memory tagging if supported by the | |
1495 | architecture [default=no] | |
1496 | --enable-systemtap enable systemtap static probe points [default=no] | |
1497 | --disable-build-nscd disable building and installing the nscd daemon | |
1498 | --disable-nscd library functions will not contact the nscd daemon | |
1499 | --enable-pt_chown Enable building and installing pt_chown | |
1500 | --enable-mathvec Enable building and installing mathvec [default | |
1501 | depends on architecture] | |
1502 | --enable-cet enable Intel Control-flow Enforcement Technology | |
1503 | (CET), x86 only | |
1504 | --disable-scv syscalls will not use scv instruction, even if the | |
1505 | kernel supports it, powerpc only | |
1506 | --enable-fortify-source[=1|2|3] | |
1507 | Use -D_FORTIFY_SOURCE=[1|2|3] to control code | |
1508 | hardening, defaults to highest possible value | |
1509 | supported by the build compiler. | |
1510 | ||
1511 | Optional Packages: | |
1512 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1513 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1514 | --with-pkgversion=PKG Use PKG in the version string in place of "GNU libc" | |
1515 | --with-bugurl=URL Direct users to URL to report a bug | |
1516 | --with-gd=DIR find libgd include dir and library with prefix DIR | |
1517 | --with-gd-include=DIR find libgd include files in DIR | |
1518 | --with-gd-lib=DIR find libgd library files in DIR | |
1519 | --with-binutils=PATH specify location of binutils (as and ld) | |
1520 | --with-selinux if building with SELinux support | |
1521 | --with-headers=PATH location of system headers to use (for example | |
1522 | /usr/src/linux/include) [default=compiler default] | |
1523 | --with-nonshared-cflags=CFLAGS | |
1524 | build nonshared libraries with additional CFLAGS | |
1525 | --with-rtld-early-cflags=CFLAGS | |
1526 | build early initialization with additional CFLAGS | |
1527 | --with-timeoutfactor=NUM | |
1528 | specify an integer to scale the timeout | |
1529 | --with-man-pages=VERSION | |
1530 | tie manual to a specific man-pages version | |
1531 | --with-cpu=CPU select code for CPU variant | |
1532 | ||
1533 | Some influential environment variables: | |
1534 | CC C compiler command | |
1535 | CFLAGS C compiler flags | |
1536 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1537 | nonstandard directory <lib dir> | |
1538 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1539 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1540 | you have headers in a nonstandard directory <include dir> | |
1541 | TEST_CC C compiler for testing | |
1542 | CPP C preprocessor | |
1543 | CXX C++ compiler command | |
1544 | CXXFLAGS C++ compiler flags | |
1545 | TEST_CXX C++ compiler for testing | |
1546 | ||
1547 | Use these variables to override the choices made by 'configure' or to help | |
1548 | it to find libraries and programs with nonstandard names/locations. | |
1549 | ||
1550 | Report bugs to <https://sourceware.org/bugzilla/>. | |
1551 | GNU C Library home page: <https://www.gnu.org/software/glibc/>. | |
1552 | General help using GNU software: <https://www.gnu.org/gethelp/>. | |
1553 | _ACEOF | |
1554 | ac_status=$? | |
1555 | fi | |
1556 | ||
1557 | if test "$ac_init_help" = "recursive"; then | |
1558 | # If there are subdirs, report their specific --help. | |
1559 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1560 | test -d "$ac_dir" || | |
1561 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1562 | continue | |
1563 | ac_builddir=. | |
1564 | ||
1565 | case "$ac_dir" in | |
1566 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1567 | *) | |
1568 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` | |
1569 | # A ".." for each directory in $ac_dir_suffix. | |
1570 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1571 | case $ac_top_builddir_sub in | |
1572 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1573 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1574 | esac ;; | |
1575 | esac | |
1576 | ac_abs_top_builddir=$ac_pwd | |
1577 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1578 | # for backward compatibility: | |
1579 | ac_top_builddir=$ac_top_build_prefix | |
1580 | ||
1581 | case $srcdir in | |
1582 | .) # We are building in place. | |
1583 | ac_srcdir=. | |
1584 | ac_top_srcdir=$ac_top_builddir_sub | |
1585 | ac_abs_top_srcdir=$ac_pwd ;; | |
1586 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1587 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1588 | ac_top_srcdir=$srcdir | |
1589 | ac_abs_top_srcdir=$srcdir ;; | |
1590 | *) # Relative name. | |
1591 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1592 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1593 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1594 | esac | |
1595 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1596 | ||
1597 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1598 | # Check for configure.gnu first; this name is used for a wrapper for | |
1599 | # Metaconfig's "Configure" on case-insensitive file systems. | |
1600 | if test -f "$ac_srcdir/configure.gnu"; then | |
1601 | echo && | |
1602 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1603 | elif test -f "$ac_srcdir/configure"; then | |
1604 | echo && | |
1605 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1606 | else | |
1607 | printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1608 | fi || ac_status=$? | |
1609 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1610 | done | |
1611 | fi | |
1612 | ||
1613 | test -n "$ac_init_help" && exit $ac_status | |
1614 | if $ac_init_version; then | |
1615 | cat <<\_ACEOF | |
1616 | GNU C Library configure (see version.h) | |
1617 | generated by GNU Autoconf 2.72 | |
1618 | ||
1619 | Copyright (C) 2023 Free Software Foundation, Inc. | |
1620 | This configure script is free software; the Free Software Foundation | |
1621 | gives unlimited permission to copy, distribute and modify it. | |
1622 | _ACEOF | |
1623 | exit | |
1624 | fi | |
1625 | ||
1626 | ## ------------------------ ## | |
1627 | ## Autoconf initialization. ## | |
1628 | ## ------------------------ ## | |
1629 | ||
1630 | # ac_fn_c_try_compile LINENO | |
1631 | # -------------------------- | |
1632 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1633 | ac_fn_c_try_compile () | |
1634 | { | |
1635 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1636 | rm -f conftest.$ac_objext conftest.beam | |
1637 | if { { ac_try="$ac_compile" | |
1638 | case "(($ac_try" in | |
1639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1640 | *) ac_try_echo=$ac_try;; | |
1641 | esac | |
1642 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1643 | printf "%s\n" "$ac_try_echo"; } >&5 | |
1644 | (eval "$ac_compile") 2>conftest.err | |
1645 | ac_status=$? | |
1646 | if test -s conftest.err; then | |
1647 | grep -v '^ *+' conftest.err >conftest.er1 | |
1648 | cat conftest.er1 >&5 | |
1649 | mv -f conftest.er1 conftest.err | |
1650 | fi | |
1651 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1652 | test $ac_status = 0; } && { | |
1653 | test -z "$ac_c_werror_flag" || | |
1654 | test ! -s conftest.err | |
1655 | } && test -s conftest.$ac_objext | |
1656 | then : | |
1657 | ac_retval=0 | |
1658 | else case e in #( | |
1659 | e) printf "%s\n" "$as_me: failed program was:" >&5 | |
1660 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1661 | ||
1662 | ac_retval=1 ;; | |
1663 | esac | |
1664 | fi | |
1665 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1666 | as_fn_set_status $ac_retval | |
1667 | ||
1668 | } # ac_fn_c_try_compile | |
1669 | ||
1670 | # ac_fn_cxx_try_compile LINENO | |
1671 | # ---------------------------- | |
1672 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1673 | ac_fn_cxx_try_compile () | |
1674 | { | |
1675 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1676 | rm -f conftest.$ac_objext conftest.beam | |
1677 | if { { ac_try="$ac_compile" | |
1678 | case "(($ac_try" in | |
1679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1680 | *) ac_try_echo=$ac_try;; | |
1681 | esac | |
1682 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1683 | printf "%s\n" "$ac_try_echo"; } >&5 | |
1684 | (eval "$ac_compile") 2>conftest.err | |
1685 | ac_status=$? | |
1686 | if test -s conftest.err; then | |
1687 | grep -v '^ *+' conftest.err >conftest.er1 | |
1688 | cat conftest.er1 >&5 | |
1689 | mv -f conftest.er1 conftest.err | |
1690 | fi | |
1691 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1692 | test $ac_status = 0; } && { | |
1693 | test -z "$ac_cxx_werror_flag" || | |
1694 | test ! -s conftest.err | |
1695 | } && test -s conftest.$ac_objext | |
1696 | then : | |
1697 | ac_retval=0 | |
1698 | else case e in #( | |
1699 | e) printf "%s\n" "$as_me: failed program was:" >&5 | |
1700 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1701 | ||
1702 | ac_retval=1 ;; | |
1703 | esac | |
1704 | fi | |
1705 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1706 | as_fn_set_status $ac_retval | |
1707 | ||
1708 | } # ac_fn_cxx_try_compile | |
1709 | ||
1710 | # ac_fn_cxx_try_link LINENO | |
1711 | # ------------------------- | |
1712 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1713 | ac_fn_cxx_try_link () | |
1714 | { | |
1715 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1716 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext | |
1717 | if { { ac_try="$ac_link" | |
1718 | case "(($ac_try" in | |
1719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1720 | *) ac_try_echo=$ac_try;; | |
1721 | esac | |
1722 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1723 | printf "%s\n" "$ac_try_echo"; } >&5 | |
1724 | (eval "$ac_link") 2>conftest.err | |
1725 | ac_status=$? | |
1726 | if test -s conftest.err; then | |
1727 | grep -v '^ *+' conftest.err >conftest.er1 | |
1728 | cat conftest.er1 >&5 | |
1729 | mv -f conftest.er1 conftest.err | |
1730 | fi | |
1731 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1732 | test $ac_status = 0; } && { | |
1733 | test -z "$ac_cxx_werror_flag" || | |
1734 | test ! -s conftest.err | |
1735 | } && test -s conftest$ac_exeext && { | |
1736 | test "$cross_compiling" = yes || | |
1737 | test -x conftest$ac_exeext | |
1738 | } | |
1739 | then : | |
1740 | ac_retval=0 | |
1741 | else case e in #( | |
1742 | e) printf "%s\n" "$as_me: failed program was:" >&5 | |
1743 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1744 | ||
1745 | ac_retval=1 ;; | |
1746 | esac | |
1747 | fi | |
1748 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1749 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1750 | # interfere with the next link command; also delete a directory that is | |
1751 | # left behind by Apple's compiler. We do this before executing the actions. | |
1752 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1753 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1754 | as_fn_set_status $ac_retval | |
1755 | ||
1756 | } # ac_fn_cxx_try_link | |
1757 | ||
1758 | # ac_fn_c_try_cpp LINENO | |
1759 | # ---------------------- | |
1760 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1761 | ac_fn_c_try_cpp () | |
1762 | { | |
1763 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1764 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1765 | case "(($ac_try" in | |
1766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1767 | *) ac_try_echo=$ac_try;; | |
1768 | esac | |
1769 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1770 | printf "%s\n" "$ac_try_echo"; } >&5 | |
1771 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1772 | ac_status=$? | |
1773 | if test -s conftest.err; then | |
1774 | grep -v '^ *+' conftest.err >conftest.er1 | |
1775 | cat conftest.er1 >&5 | |
1776 | mv -f conftest.er1 conftest.err | |
1777 | fi | |
1778 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1779 | test $ac_status = 0; } > conftest.i && { | |
1780 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1781 | test ! -s conftest.err | |
1782 | } | |
1783 | then : | |
1784 | ac_retval=0 | |
1785 | else case e in #( | |
1786 | e) printf "%s\n" "$as_me: failed program was:" >&5 | |
1787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1788 | ||
1789 | ac_retval=1 ;; | |
1790 | esac | |
1791 | fi | |
1792 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1793 | as_fn_set_status $ac_retval | |
1794 | ||
1795 | } # ac_fn_c_try_cpp | |
1796 | ||
1797 | # ac_fn_c_try_link LINENO | |
1798 | # ----------------------- | |
1799 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1800 | ac_fn_c_try_link () | |
1801 | { | |
1802 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1803 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext | |
1804 | if { { ac_try="$ac_link" | |
1805 | case "(($ac_try" in | |
1806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1807 | *) ac_try_echo=$ac_try;; | |
1808 | esac | |
1809 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1810 | printf "%s\n" "$ac_try_echo"; } >&5 | |
1811 | (eval "$ac_link") 2>conftest.err | |
1812 | ac_status=$? | |
1813 | if test -s conftest.err; then | |
1814 | grep -v '^ *+' conftest.err >conftest.er1 | |
1815 | cat conftest.er1 >&5 | |
1816 | mv -f conftest.er1 conftest.err | |
1817 | fi | |
1818 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1819 | test $ac_status = 0; } && { | |
1820 | test -z "$ac_c_werror_flag" || | |
1821 | test ! -s conftest.err | |
1822 | } && test -s conftest$ac_exeext && { | |
1823 | test "$cross_compiling" = yes || | |
1824 | test -x conftest$ac_exeext | |
1825 | } | |
1826 | then : | |
1827 | ac_retval=0 | |
1828 | else case e in #( | |
1829 | e) printf "%s\n" "$as_me: failed program was:" >&5 | |
1830 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1831 | ||
1832 | ac_retval=1 ;; | |
1833 | esac | |
1834 | fi | |
1835 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1836 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1837 | # interfere with the next link command; also delete a directory that is | |
1838 | # left behind by Apple's compiler. We do this before executing the actions. | |
1839 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1840 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1841 | as_fn_set_status $ac_retval | |
1842 | ||
1843 | } # ac_fn_c_try_link | |
1844 | ac_configure_args_raw= | |
1845 | for ac_arg | |
1846 | do | |
1847 | case $ac_arg in | |
1848 | *\'*) | |
1849 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1850 | esac | |
1851 | as_fn_append ac_configure_args_raw " '$ac_arg'" | |
1852 | done | |
1853 | ||
1854 | case $ac_configure_args_raw in | |
1855 | *$as_nl*) | |
1856 | ac_safe_unquote= ;; | |
1857 | *) | |
1858 | ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. | |
1859 | ac_unsafe_a="$ac_unsafe_z#~" | |
1860 | ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" | |
1861 | ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; | |
1862 | esac | |
1863 | ||
1864 | cat >config.log <<_ACEOF | |
1865 | This file contains any messages produced by compilers while | |
1866 | running configure, to aid debugging if configure makes a mistake. | |
1867 | ||
1868 | It was created by GNU C Library $as_me (see version.h), which was | |
1869 | generated by GNU Autoconf 2.72. Invocation command line was | |
1870 | ||
1871 | $ $0$ac_configure_args_raw | |
1872 | ||
1873 | _ACEOF | |
1874 | exec 5>>config.log | |
1875 | { | |
1876 | cat <<_ASUNAME | |
1877 | ## --------- ## | |
1878 | ## Platform. ## | |
1879 | ## --------- ## | |
1880 | ||
1881 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1882 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1883 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1884 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1885 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1886 | ||
1887 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1888 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1889 | ||
1890 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1891 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1892 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1893 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1894 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1895 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1896 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1897 | ||
1898 | _ASUNAME | |
1899 | ||
1900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1901 | for as_dir in $PATH | |
1902 | do | |
1903 | IFS=$as_save_IFS | |
1904 | case $as_dir in #((( | |
1905 | '') as_dir=./ ;; | |
1906 | */) ;; | |
1907 | *) as_dir=$as_dir/ ;; | |
1908 | esac | |
1909 | printf "%s\n" "PATH: $as_dir" | |
1910 | done | |
1911 | IFS=$as_save_IFS | |
1912 | ||
1913 | } >&5 | |
1914 | ||
1915 | cat >&5 <<_ACEOF | |
1916 | ||
1917 | ||
1918 | ## ----------- ## | |
1919 | ## Core tests. ## | |
1920 | ## ----------- ## | |
1921 | ||
1922 | _ACEOF | |
1923 | ||
1924 | ||
1925 | # Keep a trace of the command line. | |
1926 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1927 | # Strip out --silent because we don't want to record it for future runs. | |
1928 | # Also quote any args containing shell meta-characters. | |
1929 | # Make two passes to allow for proper duplicate-argument suppression. | |
1930 | ac_configure_args= | |
1931 | ac_configure_args0= | |
1932 | ac_configure_args1= | |
1933 | ac_must_keep_next=false | |
1934 | for ac_pass in 1 2 | |
1935 | do | |
1936 | for ac_arg | |
1937 | do | |
1938 | case $ac_arg in | |
1939 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1940 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1941 | | -silent | --silent | --silen | --sile | --sil) | |
1942 | continue ;; | |
1943 | *\'*) | |
1944 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1945 | esac | |
1946 | case $ac_pass in | |
1947 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
1948 | 2) | |
1949 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
1950 | if test $ac_must_keep_next = true; then | |
1951 | ac_must_keep_next=false # Got value, back to normal. | |
1952 | else | |
1953 | case $ac_arg in | |
1954 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1955 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1956 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1957 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1958 | case "$ac_configure_args0 " in | |
1959 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1960 | esac | |
1961 | ;; | |
1962 | -* ) ac_must_keep_next=true ;; | |
1963 | esac | |
1964 | fi | |
1965 | as_fn_append ac_configure_args " '$ac_arg'" | |
1966 | ;; | |
1967 | esac | |
1968 | done | |
1969 | done | |
1970 | { ac_configure_args0=; unset ac_configure_args0;} | |
1971 | { ac_configure_args1=; unset ac_configure_args1;} | |
1972 | ||
1973 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1974 | # config.log. We remove comments because anyway the quotes in there | |
1975 | # would cause problems or look ugly. | |
1976 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
1977 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1978 | trap 'exit_status=$? | |
1979 | # Sanitize IFS. | |
1980 | IFS=" "" $as_nl" | |
1981 | # Save into config.log some information that might help in debugging. | |
1982 | { | |
1983 | echo | |
1984 | ||
1985 | printf "%s\n" "## ---------------- ## | |
1986 | ## Cache variables. ## | |
1987 | ## ---------------- ##" | |
1988 | echo | |
1989 | # The following way of writing the cache mishandles newlines in values, | |
1990 | ( | |
1991 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1992 | eval ac_val=\$$ac_var | |
1993 | case $ac_val in #( | |
1994 | *${as_nl}*) | |
1995 | case $ac_var in #( | |
1996 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1997 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1998 | esac | |
1999 | case $ac_var in #( | |
2000 | _ | IFS | as_nl) ;; #( | |
2001 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2002 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2003 | esac ;; | |
2004 | esac | |
2005 | done | |
2006 | (set) 2>&1 | | |
2007 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2008 | *${as_nl}ac_space=\ *) | |
2009 | sed -n \ | |
2010 | "s/'\''/'\''\\\\'\'''\''/g; | |
2011 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2012 | ;; #( | |
2013 | *) | |
2014 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2015 | ;; | |
2016 | esac | | |
2017 | sort | |
2018 | ) | |
2019 | echo | |
2020 | ||
2021 | printf "%s\n" "## ----------------- ## | |
2022 | ## Output variables. ## | |
2023 | ## ----------------- ##" | |
2024 | echo | |
2025 | for ac_var in $ac_subst_vars | |
2026 | do | |
2027 | eval ac_val=\$$ac_var | |
2028 | case $ac_val in | |
2029 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2030 | esac | |
2031 | printf "%s\n" "$ac_var='\''$ac_val'\''" | |
2032 | done | sort | |
2033 | echo | |
2034 | ||
2035 | if test -n "$ac_subst_files"; then | |
2036 | printf "%s\n" "## ------------------- ## | |
2037 | ## File substitutions. ## | |
2038 | ## ------------------- ##" | |
2039 | echo | |
2040 | for ac_var in $ac_subst_files | |
2041 | do | |
2042 | eval ac_val=\$$ac_var | |
2043 | case $ac_val in | |
2044 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2045 | esac | |
2046 | printf "%s\n" "$ac_var='\''$ac_val'\''" | |
2047 | done | sort | |
2048 | echo | |
2049 | fi | |
2050 | ||
2051 | if test -s confdefs.h; then | |
2052 | printf "%s\n" "## ----------- ## | |
2053 | ## confdefs.h. ## | |
2054 | ## ----------- ##" | |
2055 | echo | |
2056 | cat confdefs.h | |
2057 | echo | |
2058 | fi | |
2059 | test "$ac_signal" != 0 && | |
2060 | printf "%s\n" "$as_me: caught signal $ac_signal" | |
2061 | printf "%s\n" "$as_me: exit $exit_status" | |
2062 | } >&5 | |
2063 | rm -f core *.core core.conftest.* && | |
2064 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2065 | exit $exit_status | |
2066 | ' 0 | |
2067 | for ac_signal in 1 2 13 15; do | |
2068 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2069 | done | |
2070 | ac_signal=0 | |
2071 | ||
2072 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2073 | rm -f -r conftest* confdefs.h | |
2074 | ||
2075 | printf "%s\n" "/* confdefs.h */" > confdefs.h | |
2076 | ||
2077 | # Predefined preprocessor variables. | |
2078 | ||
2079 | printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h | |
2080 | ||
2081 | printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h | |
2082 | ||
2083 | printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h | |
2084 | ||
2085 | printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h | |
2086 | ||
2087 | printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h | |
2088 | ||
2089 | printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h | |
2090 | ||
2091 | ||
2092 | # Let the site file select an alternate cache file if it wants to. | |
2093 | # Prefer an explicitly selected file to automatically selected ones. | |
2094 | if test -n "$CONFIG_SITE"; then | |
2095 | ac_site_files="$CONFIG_SITE" | |
2096 | elif test "x$prefix" != xNONE; then | |
2097 | ac_site_files="$prefix/share/config.site $prefix/etc/config.site" | |
2098 | else | |
2099 | ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
2100 | fi | |
2101 | ||
2102 | for ac_site_file in $ac_site_files | |
2103 | do | |
2104 | case $ac_site_file in #( | |
2105 | */*) : | |
2106 | ;; #( | |
2107 | *) : | |
2108 | ac_site_file=./$ac_site_file ;; | |
2109 | esac | |
2110 | if test -f "$ac_site_file" && test -r "$ac_site_file"; then | |
2111 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2112 | printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} | |
2113 | sed 's/^/| /' "$ac_site_file" >&5 | |
2114 | . "$ac_site_file" \ | |
2115 | || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 | |
2116 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
2117 | as_fn_error $? "failed to load site script $ac_site_file | |
2118 | See 'config.log' for more details" "$LINENO" 5; } | |
2119 | fi | |
2120 | done | |
2121 | ||
2122 | if test -r "$cache_file"; then | |
2123 | # Some versions of bash will fail to source /dev/null (special files | |
2124 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2125 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2126 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2127 | printf "%s\n" "$as_me: loading cache $cache_file" >&6;} | |
2128 | case $cache_file in | |
2129 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2130 | *) . "./$cache_file";; | |
2131 | esac | |
2132 | fi | |
2133 | else | |
2134 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2135 | printf "%s\n" "$as_me: creating cache $cache_file" >&6;} | |
2136 | >$cache_file | |
2137 | fi | |
2138 | ||
2139 | # Test code for whether the C compiler supports C89 (global declarations) | |
2140 | ac_c_conftest_c89_globals=' | |
2141 | /* Does the compiler advertise C89 conformance? | |
2142 | Do not test the value of __STDC__, because some compilers set it to 0 | |
2143 | while being otherwise adequately conformant. */ | |
2144 | #if !defined __STDC__ | |
2145 | # error "Compiler does not advertise C89 conformance" | |
2146 | #endif | |
2147 | ||
2148 | #include <stddef.h> | |
2149 | #include <stdarg.h> | |
2150 | struct stat; | |
2151 | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ | |
2152 | struct buf { int x; }; | |
2153 | struct buf * (*rcsopen) (struct buf *, struct stat *, int); | |
2154 | static char *e (char **p, int i) | |
2155 | { | |
2156 | return p[i]; | |
2157 | } | |
2158 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2159 | { | |
2160 | char *s; | |
2161 | va_list v; | |
2162 | va_start (v,p); | |
2163 | s = g (p, va_arg (v,int)); | |
2164 | va_end (v); | |
2165 | return s; | |
2166 | } | |
2167 | ||
2168 | /* C89 style stringification. */ | |
2169 | #define noexpand_stringify(a) #a | |
2170 | const char *stringified = noexpand_stringify(arbitrary+token=sequence); | |
2171 | ||
2172 | /* C89 style token pasting. Exercises some of the corner cases that | |
2173 | e.g. old MSVC gets wrong, but not very hard. */ | |
2174 | #define noexpand_concat(a,b) a##b | |
2175 | #define expand_concat(a,b) noexpand_concat(a,b) | |
2176 | extern int vA; | |
2177 | extern int vbee; | |
2178 | #define aye A | |
2179 | #define bee B | |
2180 | int *pvA = &expand_concat(v,aye); | |
2181 | int *pvbee = &noexpand_concat(v,bee); | |
2182 | ||
2183 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2184 | function prototypes and stuff, but not \xHH hex character constants. | |
2185 | These do not provoke an error unfortunately, instead are silently treated | |
2186 | as an "x". The following induces an error, until -std is added to get | |
2187 | proper ANSI mode. Curiously \x00 != x always comes out true, for an | |
2188 | array size at least. It is necessary to write \x00 == 0 to get something | |
2189 | that is true only with -std. */ | |
2190 | int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; | |
2191 | ||
2192 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
2193 | inside strings and character constants. */ | |
2194 | #define FOO(x) '\''x'\'' | |
2195 | int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; | |
2196 | ||
2197 | int test (int i, double x); | |
2198 | struct s1 {int (*f) (int a);}; | |
2199 | struct s2 {int (*f) (double a);}; | |
2200 | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), | |
2201 | int, int);' | |
2202 | ||
2203 | # Test code for whether the C compiler supports C89 (body of main). | |
2204 | ac_c_conftest_c89_main=' | |
2205 | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); | |
2206 | ' | |
2207 | ||
2208 | # Test code for whether the C compiler supports C99 (global declarations) | |
2209 | ac_c_conftest_c99_globals=' | |
2210 | /* Does the compiler advertise C99 conformance? */ | |
2211 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L | |
2212 | # error "Compiler does not advertise C99 conformance" | |
2213 | #endif | |
2214 | ||
2215 | // See if C++-style comments work. | |
2216 | ||
2217 | #include <stdbool.h> | |
2218 | extern int puts (const char *); | |
2219 | extern int printf (const char *, ...); | |
2220 | extern int dprintf (int, const char *, ...); | |
2221 | extern void *malloc (size_t); | |
2222 | extern void free (void *); | |
2223 | ||
2224 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | |
2225 | // dprintf is used instead of fprintf to avoid needing to declare | |
2226 | // FILE and stderr. | |
2227 | #define debug(...) dprintf (2, __VA_ARGS__) | |
2228 | #define showlist(...) puts (#__VA_ARGS__) | |
2229 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
2230 | static void | |
2231 | test_varargs_macros (void) | |
2232 | { | |
2233 | int x = 1234; | |
2234 | int y = 5678; | |
2235 | debug ("Flag"); | |
2236 | debug ("X = %d\n", x); | |
2237 | showlist (The first, second, and third items.); | |
2238 | report (x>y, "x is %d but y is %d", x, y); | |
2239 | } | |
2240 | ||
2241 | // Check long long types. | |
2242 | #define BIG64 18446744073709551615ull | |
2243 | #define BIG32 4294967295ul | |
2244 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
2245 | #if !BIG_OK | |
2246 | #error "your preprocessor is broken" | |
2247 | #endif | |
2248 | #if BIG_OK | |
2249 | #else | |
2250 | #error "your preprocessor is broken" | |
2251 | #endif | |
2252 | static long long int bignum = -9223372036854775807LL; | |
2253 | static unsigned long long int ubignum = BIG64; | |
2254 | ||
2255 | struct incomplete_array | |
2256 | { | |
2257 | int datasize; | |
2258 | double data[]; | |
2259 | }; | |
2260 | ||
2261 | struct named_init { | |
2262 | int number; | |
2263 | const wchar_t *name; | |
2264 | double average; | |
2265 | }; | |
2266 | ||
2267 | typedef const char *ccp; | |
2268 | ||
2269 | static inline int | |
2270 | test_restrict (ccp restrict text) | |
2271 | { | |
2272 | // Iterate through items via the restricted pointer. | |
2273 | // Also check for declarations in for loops. | |
2274 | for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) | |
2275 | continue; | |
2276 | return 0; | |
2277 | } | |
2278 | ||
2279 | // Check varargs and va_copy. | |
2280 | static bool | |
2281 | test_varargs (const char *format, ...) | |
2282 | { | |
2283 | va_list args; | |
2284 | va_start (args, format); | |
2285 | va_list args_copy; | |
2286 | va_copy (args_copy, args); | |
2287 | ||
2288 | const char *str = ""; | |
2289 | int number = 0; | |
2290 | float fnumber = 0; | |
2291 | ||
2292 | while (*format) | |
2293 | { | |
2294 | switch (*format++) | |
2295 | { | |
2296 | case '\''s'\'': // string | |
2297 | str = va_arg (args_copy, const char *); | |
2298 | break; | |
2299 | case '\''d'\'': // int | |
2300 | number = va_arg (args_copy, int); | |
2301 | break; | |
2302 | case '\''f'\'': // float | |
2303 | fnumber = va_arg (args_copy, double); | |
2304 | break; | |
2305 | default: | |
2306 | break; | |
2307 | } | |
2308 | } | |
2309 | va_end (args_copy); | |
2310 | va_end (args); | |
2311 | ||
2312 | return *str && number && fnumber; | |
2313 | } | |
2314 | ' | |
2315 | ||
2316 | # Test code for whether the C compiler supports C99 (body of main). | |
2317 | ac_c_conftest_c99_main=' | |
2318 | // Check bool. | |
2319 | _Bool success = false; | |
2320 | success |= (argc != 0); | |
2321 | ||
2322 | // Check restrict. | |
2323 | if (test_restrict ("String literal") == 0) | |
2324 | success = true; | |
2325 | char *restrict newvar = "Another string"; | |
2326 | ||
2327 | // Check varargs. | |
2328 | success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); | |
2329 | test_varargs_macros (); | |
2330 | ||
2331 | // Check flexible array members. | |
2332 | struct incomplete_array *ia = | |
2333 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
2334 | ia->datasize = 10; | |
2335 | for (int i = 0; i < ia->datasize; ++i) | |
2336 | ia->data[i] = i * 1.234; | |
2337 | // Work around memory leak warnings. | |
2338 | free (ia); | |
2339 | ||
2340 | // Check named initializers. | |
2341 | struct named_init ni = { | |
2342 | .number = 34, | |
2343 | .name = L"Test wide string", | |
2344 | .average = 543.34343, | |
2345 | }; | |
2346 | ||
2347 | ni.number = 58; | |
2348 | ||
2349 | int dynamic_array[ni.number]; | |
2350 | dynamic_array[0] = argv[0][0]; | |
2351 | dynamic_array[ni.number - 1] = 543; | |
2352 | ||
2353 | // work around unused variable warnings | |
2354 | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' | |
2355 | || dynamic_array[ni.number - 1] != 543); | |
2356 | ' | |
2357 | ||
2358 | # Test code for whether the C compiler supports C11 (global declarations) | |
2359 | ac_c_conftest_c11_globals=' | |
2360 | /* Does the compiler advertise C11 conformance? */ | |
2361 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L | |
2362 | # error "Compiler does not advertise C11 conformance" | |
2363 | #endif | |
2364 | ||
2365 | // Check _Alignas. | |
2366 | char _Alignas (double) aligned_as_double; | |
2367 | char _Alignas (0) no_special_alignment; | |
2368 | extern char aligned_as_int; | |
2369 | char _Alignas (0) _Alignas (int) aligned_as_int; | |
2370 | ||
2371 | // Check _Alignof. | |
2372 | enum | |
2373 | { | |
2374 | int_alignment = _Alignof (int), | |
2375 | int_array_alignment = _Alignof (int[100]), | |
2376 | char_alignment = _Alignof (char) | |
2377 | }; | |
2378 | _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); | |
2379 | ||
2380 | // Check _Noreturn. | |
2381 | int _Noreturn does_not_return (void) { for (;;) continue; } | |
2382 | ||
2383 | // Check _Static_assert. | |
2384 | struct test_static_assert | |
2385 | { | |
2386 | int x; | |
2387 | _Static_assert (sizeof (int) <= sizeof (long int), | |
2388 | "_Static_assert does not work in struct"); | |
2389 | long int y; | |
2390 | }; | |
2391 | ||
2392 | // Check UTF-8 literals. | |
2393 | #define u8 syntax error! | |
2394 | char const utf8_literal[] = u8"happens to be ASCII" "another string"; | |
2395 | ||
2396 | // Check duplicate typedefs. | |
2397 | typedef long *long_ptr; | |
2398 | typedef long int *long_ptr; | |
2399 | typedef long_ptr long_ptr; | |
2400 | ||
2401 | // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. | |
2402 | struct anonymous | |
2403 | { | |
2404 | union { | |
2405 | struct { int i; int j; }; | |
2406 | struct { int k; long int l; } w; | |
2407 | }; | |
2408 | int m; | |
2409 | } v1; | |
2410 | ' | |
2411 | ||
2412 | # Test code for whether the C compiler supports C11 (body of main). | |
2413 | ac_c_conftest_c11_main=' | |
2414 | _Static_assert ((offsetof (struct anonymous, i) | |
2415 | == offsetof (struct anonymous, w.k)), | |
2416 | "Anonymous union alignment botch"); | |
2417 | v1.i = 2; | |
2418 | v1.w.k = 5; | |
2419 | ok |= v1.i != 5; | |
2420 | ' | |
2421 | ||
2422 | # Test code for whether the C compiler supports C11 (complete). | |
2423 | ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} | |
2424 | ${ac_c_conftest_c99_globals} | |
2425 | ${ac_c_conftest_c11_globals} | |
2426 | ||
2427 | int | |
2428 | main (int argc, char **argv) | |
2429 | { | |
2430 | int ok = 0; | |
2431 | ${ac_c_conftest_c89_main} | |
2432 | ${ac_c_conftest_c99_main} | |
2433 | ${ac_c_conftest_c11_main} | |
2434 | return ok; | |
2435 | } | |
2436 | " | |
2437 | ||
2438 | # Test code for whether the C compiler supports C99 (complete). | |
2439 | ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} | |
2440 | ${ac_c_conftest_c99_globals} | |
2441 | ||
2442 | int | |
2443 | main (int argc, char **argv) | |
2444 | { | |
2445 | int ok = 0; | |
2446 | ${ac_c_conftest_c89_main} | |
2447 | ${ac_c_conftest_c99_main} | |
2448 | return ok; | |
2449 | } | |
2450 | " | |
2451 | ||
2452 | # Test code for whether the C compiler supports C89 (complete). | |
2453 | ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} | |
2454 | ||
2455 | int | |
2456 | main (int argc, char **argv) | |
2457 | { | |
2458 | int ok = 0; | |
2459 | ${ac_c_conftest_c89_main} | |
2460 | return ok; | |
2461 | } | |
2462 | " | |
2463 | ||
2464 | # Test code for whether the C++ compiler supports C++98 (global declarations) | |
2465 | ac_cxx_conftest_cxx98_globals=' | |
2466 | // Does the compiler advertise C++98 conformance? | |
2467 | #if !defined __cplusplus || __cplusplus < 199711L | |
2468 | # error "Compiler does not advertise C++98 conformance" | |
2469 | #endif | |
2470 | ||
2471 | // These inclusions are to reject old compilers that | |
2472 | // lack the unsuffixed header files. | |
2473 | #include <cstdlib> | |
2474 | #include <exception> | |
2475 | ||
2476 | // <cassert> and <cstring> are *not* freestanding headers in C++98. | |
2477 | extern void assert (int); | |
2478 | namespace std { | |
2479 | extern int strcmp (const char *, const char *); | |
2480 | } | |
2481 | ||
2482 | // Namespaces, exceptions, and templates were all added after "C++ 2.0". | |
2483 | using std::exception; | |
2484 | using std::strcmp; | |
2485 | ||
2486 | namespace { | |
2487 | ||
2488 | void test_exception_syntax() | |
2489 | { | |
2490 | try { | |
2491 | throw "test"; | |
2492 | } catch (const char *s) { | |
2493 | // Extra parentheses suppress a warning when building autoconf itself, | |
2494 | // due to lint rules shared with more typical C programs. | |
2495 | assert (!(strcmp) (s, "test")); | |
2496 | } | |
2497 | } | |
2498 | ||
2499 | template <typename T> struct test_template | |
2500 | { | |
2501 | T const val; | |
2502 | explicit test_template(T t) : val(t) {} | |
2503 | template <typename U> T add(U u) { return static_cast<T>(u) + val; } | |
2504 | }; | |
2505 | ||
2506 | } // anonymous namespace | |
2507 | ' | |
2508 | ||
2509 | # Test code for whether the C++ compiler supports C++98 (body of main) | |
2510 | ac_cxx_conftest_cxx98_main=' | |
2511 | assert (argc); | |
2512 | assert (! argv[0]); | |
2513 | { | |
2514 | test_exception_syntax (); | |
2515 | test_template<double> tt (2.0); | |
2516 | assert (tt.add (4) == 6.0); | |
2517 | assert (true && !false); | |
2518 | } | |
2519 | ' | |
2520 | ||
2521 | # Test code for whether the C++ compiler supports C++11 (global declarations) | |
2522 | ac_cxx_conftest_cxx11_globals=' | |
2523 | // Does the compiler advertise C++ 2011 conformance? | |
2524 | #if !defined __cplusplus || __cplusplus < 201103L | |
2525 | # error "Compiler does not advertise C++11 conformance" | |
2526 | #endif | |
2527 | ||
2528 | namespace cxx11test | |
2529 | { | |
2530 | constexpr int get_val() { return 20; } | |
2531 | ||
2532 | struct testinit | |
2533 | { | |
2534 | int i; | |
2535 | double d; | |
2536 | }; | |
2537 | ||
2538 | class delegate | |
2539 | { | |
2540 | public: | |
2541 | delegate(int n) : n(n) {} | |
2542 | delegate(): delegate(2354) {} | |
2543 | ||
2544 | virtual int getval() { return this->n; }; | |
2545 | protected: | |
2546 | int n; | |
2547 | }; | |
2548 | ||
2549 | class overridden : public delegate | |
2550 | { | |
2551 | public: | |
2552 | overridden(int n): delegate(n) {} | |
2553 | virtual int getval() override final { return this->n * 2; } | |
2554 | }; | |
2555 | ||
2556 | class nocopy | |
2557 | { | |
2558 | public: | |
2559 | nocopy(int i): i(i) {} | |
2560 | nocopy() = default; | |
2561 | nocopy(const nocopy&) = delete; | |
2562 | nocopy & operator=(const nocopy&) = delete; | |
2563 | private: | |
2564 | int i; | |
2565 | }; | |
2566 | ||
2567 | // for testing lambda expressions | |
2568 | template <typename Ret, typename Fn> Ret eval(Fn f, Ret v) | |
2569 | { | |
2570 | return f(v); | |
2571 | } | |
2572 | ||
2573 | // for testing variadic templates and trailing return types | |
2574 | template <typename V> auto sum(V first) -> V | |
2575 | { | |
2576 | return first; | |
2577 | } | |
2578 | template <typename V, typename... Args> auto sum(V first, Args... rest) -> V | |
2579 | { | |
2580 | return first + sum(rest...); | |
2581 | } | |
2582 | } | |
2583 | ' | |
2584 | ||
2585 | # Test code for whether the C++ compiler supports C++11 (body of main) | |
2586 | ac_cxx_conftest_cxx11_main=' | |
2587 | { | |
2588 | // Test auto and decltype | |
2589 | auto a1 = 6538; | |
2590 | auto a2 = 48573953.4; | |
2591 | auto a3 = "String literal"; | |
2592 | ||
2593 | int total = 0; | |
2594 | for (auto i = a3; *i; ++i) { total += *i; } | |
2595 | ||
2596 | decltype(a2) a4 = 34895.034; | |
2597 | } | |
2598 | { | |
2599 | // Test constexpr | |
2600 | short sa[cxx11test::get_val()] = { 0 }; | |
2601 | } | |
2602 | { | |
2603 | // Test initializer lists | |
2604 | cxx11test::testinit il = { 4323, 435234.23544 }; | |
2605 | } | |
2606 | { | |
2607 | // Test range-based for | |
2608 | int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, | |
2609 | 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; | |
2610 | for (auto &x : array) { x += 23; } | |
2611 | } | |
2612 | { | |
2613 | // Test lambda expressions | |
2614 | using cxx11test::eval; | |
2615 | assert (eval ([](int x) { return x*2; }, 21) == 42); | |
2616 | double d = 2.0; | |
2617 | assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); | |
2618 | assert (d == 5.0); | |
2619 | assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); | |
2620 | assert (d == 5.0); | |
2621 | } | |
2622 | { | |
2623 | // Test use of variadic templates | |
2624 | using cxx11test::sum; | |
2625 | auto a = sum(1); | |
2626 | auto b = sum(1, 2); | |
2627 | auto c = sum(1.0, 2.0, 3.0); | |
2628 | } | |
2629 | { | |
2630 | // Test constructor delegation | |
2631 | cxx11test::delegate d1; | |
2632 | cxx11test::delegate d2(); | |
2633 | cxx11test::delegate d3(45); | |
2634 | } | |
2635 | { | |
2636 | // Test override and final | |
2637 | cxx11test::overridden o1(55464); | |
2638 | } | |
2639 | { | |
2640 | // Test nullptr | |
2641 | char *c = nullptr; | |
2642 | } | |
2643 | { | |
2644 | // Test template brackets | |
2645 | test_template<::test_template<int>> v(test_template<int>(12)); | |
2646 | } | |
2647 | { | |
2648 | // Unicode literals | |
2649 | char const *utf8 = u8"UTF-8 string \u2500"; | |
2650 | char16_t const *utf16 = u"UTF-8 string \u2500"; | |
2651 | char32_t const *utf32 = U"UTF-32 string \u2500"; | |
2652 | } | |
2653 | ' | |
2654 | ||
2655 | # Test code for whether the C compiler supports C++11 (complete). | |
2656 | ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} | |
2657 | ${ac_cxx_conftest_cxx11_globals} | |
2658 | ||
2659 | int | |
2660 | main (int argc, char **argv) | |
2661 | { | |
2662 | int ok = 0; | |
2663 | ${ac_cxx_conftest_cxx98_main} | |
2664 | ${ac_cxx_conftest_cxx11_main} | |
2665 | return ok; | |
2666 | } | |
2667 | " | |
2668 | ||
2669 | # Test code for whether the C compiler supports C++98 (complete). | |
2670 | ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} | |
2671 | int | |
2672 | main (int argc, char **argv) | |
2673 | { | |
2674 | int ok = 0; | |
2675 | ${ac_cxx_conftest_cxx98_main} | |
2676 | return ok; | |
2677 | } | |
2678 | " | |
2679 | ||
2680 | ||
2681 | # Auxiliary files required by this configure script. | |
2682 | ac_aux_files="install-sh config.guess config.sub" | |
2683 | ||
2684 | # Locations in which to look for auxiliary files. | |
2685 | ac_aux_dir_candidates="${srcdir}/scripts" | |
2686 | ||
2687 | # Search for a directory containing all of the required auxiliary files, | |
2688 | # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. | |
2689 | # If we don't find one directory that contains all the files we need, | |
2690 | # we report the set of missing files from the *first* directory in | |
2691 | # $ac_aux_dir_candidates and give up. | |
2692 | ac_missing_aux_files="" | |
2693 | ac_first_candidate=: | |
2694 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 | |
2695 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2696 | as_found=false | |
2697 | for as_dir in $ac_aux_dir_candidates | |
2698 | do | |
2699 | IFS=$as_save_IFS | |
2700 | case $as_dir in #((( | |
2701 | '') as_dir=./ ;; | |
2702 | */) ;; | |
2703 | *) as_dir=$as_dir/ ;; | |
2704 | esac | |
2705 | as_found=: | |
2706 | ||
2707 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 | |
2708 | ac_aux_dir_found=yes | |
2709 | ac_install_sh= | |
2710 | for ac_aux in $ac_aux_files | |
2711 | do | |
2712 | # As a special case, if "install-sh" is required, that requirement | |
2713 | # can be satisfied by any of "install-sh", "install.sh", or "shtool", | |
2714 | # and $ac_install_sh is set appropriately for whichever one is found. | |
2715 | if test x"$ac_aux" = x"install-sh" | |
2716 | then | |
2717 | if test -f "${as_dir}install-sh"; then | |
2718 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 | |
2719 | ac_install_sh="${as_dir}install-sh -c" | |
2720 | elif test -f "${as_dir}install.sh"; then | |
2721 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 | |
2722 | ac_install_sh="${as_dir}install.sh -c" | |
2723 | elif test -f "${as_dir}shtool"; then | |
2724 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 | |
2725 | ac_install_sh="${as_dir}shtool install -c" | |
2726 | else | |
2727 | ac_aux_dir_found=no | |
2728 | if $ac_first_candidate; then | |
2729 | ac_missing_aux_files="${ac_missing_aux_files} install-sh" | |
2730 | else | |
2731 | break | |
2732 | fi | |
2733 | fi | |
2734 | else | |
2735 | if test -f "${as_dir}${ac_aux}"; then | |
2736 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 | |
2737 | else | |
2738 | ac_aux_dir_found=no | |
2739 | if $ac_first_candidate; then | |
2740 | ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" | |
2741 | else | |
2742 | break | |
2743 | fi | |
2744 | fi | |
2745 | fi | |
2746 | done | |
2747 | if test "$ac_aux_dir_found" = yes; then | |
2748 | ac_aux_dir="$as_dir" | |
2749 | break | |
2750 | fi | |
2751 | ac_first_candidate=false | |
2752 | ||
2753 | as_found=false | |
2754 | done | |
2755 | IFS=$as_save_IFS | |
2756 | if $as_found | |
2757 | then : | |
2758 | ||
2759 | else case e in #( | |
2760 | e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; | |
2761 | esac | |
2762 | fi | |
2763 | ||
2764 | ||
2765 | # These three variables are undocumented and unsupported, | |
2766 | # and are intended to be withdrawn in a future Autoconf release. | |
2767 | # They can cause serious problems if a builder's source tree is in a directory | |
2768 | # whose full name contains unusual characters. | |
2769 | if test -f "${ac_aux_dir}config.guess"; then | |
2770 | ac_config_guess="$SHELL ${ac_aux_dir}config.guess" | |
2771 | fi | |
2772 | if test -f "${ac_aux_dir}config.sub"; then | |
2773 | ac_config_sub="$SHELL ${ac_aux_dir}config.sub" | |
2774 | fi | |
2775 | if test -f "$ac_aux_dir/configure"; then | |
2776 | ac_configure="$SHELL ${ac_aux_dir}configure" | |
2777 | fi | |
2778 | ||
2779 | # Check that the precious variables saved in the cache have kept the same | |
2780 | # value. | |
2781 | ac_cache_corrupted=false | |
2782 | for ac_var in $ac_precious_vars; do | |
2783 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2784 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2785 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2786 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2787 | case $ac_old_set,$ac_new_set in | |
2788 | set,) | |
2789 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 | |
2790 | printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} | |
2791 | ac_cache_corrupted=: ;; | |
2792 | ,set) | |
2793 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 | |
2794 | printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} | |
2795 | ac_cache_corrupted=: ;; | |
2796 | ,);; | |
2797 | *) | |
2798 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2799 | # differences in whitespace do not lead to failure. | |
2800 | ac_old_val_w=`echo x $ac_old_val` | |
2801 | ac_new_val_w=`echo x $ac_new_val` | |
2802 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2803 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 | |
2804 | printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} | |
2805 | ac_cache_corrupted=: | |
2806 | else | |
2807 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 | |
2808 | printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} | |
2809 | eval $ac_var=\$ac_old_val | |
2810 | fi | |
2811 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 | |
2812 | printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} | |
2813 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 | |
2814 | printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} | |
2815 | fi;; | |
2816 | esac | |
2817 | # Pass precious variables to config.status. | |
2818 | if test "$ac_new_set" = set; then | |
2819 | case $ac_new_val in | |
2820 | *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2821 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2822 | esac | |
2823 | case " $ac_configure_args " in | |
2824 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2825 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2826 | esac | |
2827 | fi | |
2828 | done | |
2829 | if $ac_cache_corrupted; then | |
2830 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 | |
2831 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
2832 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2833 | printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2834 | as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' | |
2835 | and start over" "$LINENO" 5 | |
2836 | fi | |
2837 | ## -------------------- ## | |
2838 | ## Main body of script. ## | |
2839 | ## -------------------- ## | |
2840 | ||
2841 | ac_ext=c | |
2842 | ac_cpp='$CPP $CPPFLAGS' | |
2843 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2844 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2845 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2846 | ||
2847 | ||
2848 | ||
2849 | ac_config_headers="$ac_config_headers config.h" | |
2850 | ||
2851 | ||
2852 | ||
2853 | ||
2854 | ||
2855 | # Check whether --with-pkgversion was given. | |
2856 | if test ${with_pkgversion+y} | |
2857 | then : | |
2858 | withval=$with_pkgversion; case "$withval" in | |
2859 | yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;; | |
2860 | no) PKGVERSION= ;; | |
2861 | *) PKGVERSION="($withval) " ;; | |
2862 | esac | |
2863 | else case e in #( | |
2864 | e) PKGVERSION="(GNU libc) " | |
2865 | ;; | |
2866 | esac | |
2867 | fi | |
2868 | ||
2869 | PKGVERSION_TEXI=`echo "$PKGVERSION" | sed 's/@/@@/g'` | |
2870 | ||
2871 | ||
2872 | ||
2873 | ||
2874 | ||
2875 | # Check whether --with-bugurl was given. | |
2876 | if test ${with_bugurl+y} | |
2877 | then : | |
2878 | withval=$with_bugurl; case "$withval" in | |
2879 | yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;; | |
2880 | no) BUGURL= | |
2881 | ;; | |
2882 | *) BUGURL="$withval" | |
2883 | ;; | |
2884 | esac | |
2885 | else case e in #( | |
2886 | e) BUGURL="https://www.gnu.org/software/libc/bugs.html" | |
2887 | ;; | |
2888 | esac | |
2889 | fi | |
2890 | ||
2891 | case ${BUGURL} in | |
2892 | "") | |
2893 | REPORT_BUGS_TO= | |
2894 | REPORT_BUGS_TEXI= | |
2895 | ;; | |
2896 | *) | |
2897 | REPORT_BUGS_TO="<$BUGURL>" | |
2898 | REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} | |
2899 | ;; | |
2900 | esac; | |
2901 | ||
2902 | ||
2903 | ||
2904 | ||
2905 | printf "%s\n" "#define PKGVERSION \"$PKGVERSION\"" >>confdefs.h | |
2906 | ||
2907 | ||
2908 | printf "%s\n" "#define REPORT_BUGS_TO \"$REPORT_BUGS_TO\"" >>confdefs.h | |
2909 | ||
2910 | ||
2911 | # Glibc should not depend on any header files | |
2912 | ||
2913 | ||
2914 | # We require GCC, and by default use its preprocessor. Override AC_PROG_CPP | |
2915 | # here to work around the Autoconf issue discussed in | |
2916 | # <https://sourceware.org/ml/libc-alpha/2013-01/msg00721.html>. | |
2917 | # AC_PROG_CPP | |
2918 | ||
2919 | # We require GCC. Override _AC_PROG_CC_C89 here to work around the Autoconf | |
2920 | # issue discussed in | |
2921 | # <https://sourceware.org/ml/libc-alpha/2013-01/msg00757.html>. | |
2922 | ||
2923 | ||
2924 | ||
2925 | ||
2926 | subdirs="$subdirs " | |
2927 | ||
2928 | ||
2929 | ||
2930 | ||
2931 | ||
2932 | # Make sure we can run config.sub. | |
2933 | $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || | |
2934 | as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 | |
2935 | ||
2936 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2937 | printf %s "checking build system type... " >&6; } | |
2938 | if test ${ac_cv_build+y} | |
2939 | then : | |
2940 | printf %s "(cached) " >&6 | |
2941 | else case e in #( | |
2942 | e) ac_build_alias=$build_alias | |
2943 | test "x$ac_build_alias" = x && | |
2944 | ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` | |
2945 | test "x$ac_build_alias" = x && | |
2946 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
2947 | ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || | |
2948 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 | |
2949 | ;; | |
2950 | esac | |
2951 | fi | |
2952 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2953 | printf "%s\n" "$ac_cv_build" >&6; } | |
2954 | case $ac_cv_build in | |
2955 | *-*-*) ;; | |
2956 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
2957 | esac | |
2958 | build=$ac_cv_build | |
2959 | ac_save_IFS=$IFS; IFS='-' | |
2960 | set x $ac_cv_build | |
2961 | shift | |
2962 | build_cpu=$1 | |
2963 | build_vendor=$2 | |
2964 | shift; shift | |
2965 | # Remember, the first character of IFS is used to create $*, | |
2966 | # except with old shells: | |
2967 | build_os=$* | |
2968 | IFS=$ac_save_IFS | |
2969 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2970 | ||
2971 | ||
2972 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2973 | printf %s "checking host system type... " >&6; } | |
2974 | if test ${ac_cv_host+y} | |
2975 | then : | |
2976 | printf %s "(cached) " >&6 | |
2977 | else case e in #( | |
2978 | e) if test "x$host_alias" = x; then | |
2979 | ac_cv_host=$ac_cv_build | |
2980 | else | |
2981 | ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || | |
2982 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 | |
2983 | fi | |
2984 | ;; | |
2985 | esac | |
2986 | fi | |
2987 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2988 | printf "%s\n" "$ac_cv_host" >&6; } | |
2989 | case $ac_cv_host in | |
2990 | *-*-*) ;; | |
2991 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
2992 | esac | |
2993 | host=$ac_cv_host | |
2994 | ac_save_IFS=$IFS; IFS='-' | |
2995 | set x $ac_cv_host | |
2996 | shift | |
2997 | host_cpu=$1 | |
2998 | host_vendor=$2 | |
2999 | shift; shift | |
3000 | # Remember, the first character of IFS is used to create $*, | |
3001 | # except with old shells: | |
3002 | host_os=$* | |
3003 | IFS=$ac_save_IFS | |
3004 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
3005 | ||
3006 | ||
3007 | ||
3008 | ||
3009 | ||
3010 | ||
3011 | ||
3012 | ||
3013 | ||
3014 | ||
3015 | ||
3016 | ||
3017 | ac_ext=c | |
3018 | ac_cpp='$CPP $CPPFLAGS' | |
3019 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3020 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3021 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3022 | if test -n "$ac_tool_prefix"; then | |
3023 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3024 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3025 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3026 | printf %s "checking for $ac_word... " >&6; } | |
3027 | if test ${ac_cv_prog_CC+y} | |
3028 | then : | |
3029 | printf %s "(cached) " >&6 | |
3030 | else case e in #( | |
3031 | e) if test -n "$CC"; then | |
3032 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3033 | else | |
3034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3035 | for as_dir in $PATH | |
3036 | do | |
3037 | IFS=$as_save_IFS | |
3038 | case $as_dir in #((( | |
3039 | '') as_dir=./ ;; | |
3040 | */) ;; | |
3041 | *) as_dir=$as_dir/ ;; | |
3042 | esac | |
3043 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3044 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3045 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3046 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3047 | break 2 | |
3048 | fi | |
3049 | done | |
3050 | done | |
3051 | IFS=$as_save_IFS | |
3052 | ||
3053 | fi ;; | |
3054 | esac | |
3055 | fi | |
3056 | CC=$ac_cv_prog_CC | |
3057 | if test -n "$CC"; then | |
3058 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3059 | printf "%s\n" "$CC" >&6; } | |
3060 | else | |
3061 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3062 | printf "%s\n" "no" >&6; } | |
3063 | fi | |
3064 | ||
3065 | ||
3066 | fi | |
3067 | if test -z "$ac_cv_prog_CC"; then | |
3068 | ac_ct_CC=$CC | |
3069 | # Extract the first word of "gcc", so it can be a program name with args. | |
3070 | set dummy gcc; ac_word=$2 | |
3071 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3072 | printf %s "checking for $ac_word... " >&6; } | |
3073 | if test ${ac_cv_prog_ac_ct_CC+y} | |
3074 | then : | |
3075 | printf %s "(cached) " >&6 | |
3076 | else case e in #( | |
3077 | e) if test -n "$ac_ct_CC"; then | |
3078 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3079 | else | |
3080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3081 | for as_dir in $PATH | |
3082 | do | |
3083 | IFS=$as_save_IFS | |
3084 | case $as_dir in #((( | |
3085 | '') as_dir=./ ;; | |
3086 | */) ;; | |
3087 | *) as_dir=$as_dir/ ;; | |
3088 | esac | |
3089 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3090 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3091 | ac_cv_prog_ac_ct_CC="gcc" | |
3092 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3093 | break 2 | |
3094 | fi | |
3095 | done | |
3096 | done | |
3097 | IFS=$as_save_IFS | |
3098 | ||
3099 | fi ;; | |
3100 | esac | |
3101 | fi | |
3102 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3103 | if test -n "$ac_ct_CC"; then | |
3104 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3105 | printf "%s\n" "$ac_ct_CC" >&6; } | |
3106 | else | |
3107 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3108 | printf "%s\n" "no" >&6; } | |
3109 | fi | |
3110 | ||
3111 | if test "x$ac_ct_CC" = x; then | |
3112 | CC="" | |
3113 | else | |
3114 | case $cross_compiling:$ac_tool_warned in | |
3115 | yes:) | |
3116 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3117 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3118 | ac_tool_warned=yes ;; | |
3119 | esac | |
3120 | CC=$ac_ct_CC | |
3121 | fi | |
3122 | else | |
3123 | CC="$ac_cv_prog_CC" | |
3124 | fi | |
3125 | ||
3126 | if test -z "$CC"; then | |
3127 | if test -n "$ac_tool_prefix"; then | |
3128 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3129 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3130 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3131 | printf %s "checking for $ac_word... " >&6; } | |
3132 | if test ${ac_cv_prog_CC+y} | |
3133 | then : | |
3134 | printf %s "(cached) " >&6 | |
3135 | else case e in #( | |
3136 | e) if test -n "$CC"; then | |
3137 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3138 | else | |
3139 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3140 | for as_dir in $PATH | |
3141 | do | |
3142 | IFS=$as_save_IFS | |
3143 | case $as_dir in #((( | |
3144 | '') as_dir=./ ;; | |
3145 | */) ;; | |
3146 | *) as_dir=$as_dir/ ;; | |
3147 | esac | |
3148 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3149 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3150 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3151 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3152 | break 2 | |
3153 | fi | |
3154 | done | |
3155 | done | |
3156 | IFS=$as_save_IFS | |
3157 | ||
3158 | fi ;; | |
3159 | esac | |
3160 | fi | |
3161 | CC=$ac_cv_prog_CC | |
3162 | if test -n "$CC"; then | |
3163 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3164 | printf "%s\n" "$CC" >&6; } | |
3165 | else | |
3166 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3167 | printf "%s\n" "no" >&6; } | |
3168 | fi | |
3169 | ||
3170 | ||
3171 | fi | |
3172 | fi | |
3173 | if test -z "$CC"; then | |
3174 | # Extract the first word of "cc", so it can be a program name with args. | |
3175 | set dummy cc; ac_word=$2 | |
3176 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3177 | printf %s "checking for $ac_word... " >&6; } | |
3178 | if test ${ac_cv_prog_CC+y} | |
3179 | then : | |
3180 | printf %s "(cached) " >&6 | |
3181 | else case e in #( | |
3182 | e) if test -n "$CC"; then | |
3183 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3184 | else | |
3185 | ac_prog_rejected=no | |
3186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3187 | for as_dir in $PATH | |
3188 | do | |
3189 | IFS=$as_save_IFS | |
3190 | case $as_dir in #((( | |
3191 | '') as_dir=./ ;; | |
3192 | */) ;; | |
3193 | *) as_dir=$as_dir/ ;; | |
3194 | esac | |
3195 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3196 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3197 | if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3198 | ac_prog_rejected=yes | |
3199 | continue | |
3200 | fi | |
3201 | ac_cv_prog_CC="cc" | |
3202 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3203 | break 2 | |
3204 | fi | |
3205 | done | |
3206 | done | |
3207 | IFS=$as_save_IFS | |
3208 | ||
3209 | if test $ac_prog_rejected = yes; then | |
3210 | # We found a bogon in the path, so make sure we never use it. | |
3211 | set dummy $ac_cv_prog_CC | |
3212 | shift | |
3213 | if test $# != 0; then | |
3214 | # We chose a different compiler from the bogus one. | |
3215 | # However, it has the same basename, so the bogon will be chosen | |
3216 | # first if we set CC to just the basename; use the full file name. | |
3217 | shift | |
3218 | ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" | |
3219 | fi | |
3220 | fi | |
3221 | fi ;; | |
3222 | esac | |
3223 | fi | |
3224 | CC=$ac_cv_prog_CC | |
3225 | if test -n "$CC"; then | |
3226 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3227 | printf "%s\n" "$CC" >&6; } | |
3228 | else | |
3229 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3230 | printf "%s\n" "no" >&6; } | |
3231 | fi | |
3232 | ||
3233 | ||
3234 | fi | |
3235 | if test -z "$CC"; then | |
3236 | if test -n "$ac_tool_prefix"; then | |
3237 | for ac_prog in cl.exe | |
3238 | do | |
3239 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3240 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3241 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3242 | printf %s "checking for $ac_word... " >&6; } | |
3243 | if test ${ac_cv_prog_CC+y} | |
3244 | then : | |
3245 | printf %s "(cached) " >&6 | |
3246 | else case e in #( | |
3247 | e) if test -n "$CC"; then | |
3248 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3249 | else | |
3250 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3251 | for as_dir in $PATH | |
3252 | do | |
3253 | IFS=$as_save_IFS | |
3254 | case $as_dir in #((( | |
3255 | '') as_dir=./ ;; | |
3256 | */) ;; | |
3257 | *) as_dir=$as_dir/ ;; | |
3258 | esac | |
3259 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3260 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3261 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3262 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3263 | break 2 | |
3264 | fi | |
3265 | done | |
3266 | done | |
3267 | IFS=$as_save_IFS | |
3268 | ||
3269 | fi ;; | |
3270 | esac | |
3271 | fi | |
3272 | CC=$ac_cv_prog_CC | |
3273 | if test -n "$CC"; then | |
3274 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3275 | printf "%s\n" "$CC" >&6; } | |
3276 | else | |
3277 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3278 | printf "%s\n" "no" >&6; } | |
3279 | fi | |
3280 | ||
3281 | ||
3282 | test -n "$CC" && break | |
3283 | done | |
3284 | fi | |
3285 | if test -z "$CC"; then | |
3286 | ac_ct_CC=$CC | |
3287 | for ac_prog in cl.exe | |
3288 | do | |
3289 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3290 | set dummy $ac_prog; ac_word=$2 | |
3291 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3292 | printf %s "checking for $ac_word... " >&6; } | |
3293 | if test ${ac_cv_prog_ac_ct_CC+y} | |
3294 | then : | |
3295 | printf %s "(cached) " >&6 | |
3296 | else case e in #( | |
3297 | e) if test -n "$ac_ct_CC"; then | |
3298 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3299 | else | |
3300 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3301 | for as_dir in $PATH | |
3302 | do | |
3303 | IFS=$as_save_IFS | |
3304 | case $as_dir in #((( | |
3305 | '') as_dir=./ ;; | |
3306 | */) ;; | |
3307 | *) as_dir=$as_dir/ ;; | |
3308 | esac | |
3309 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3310 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3311 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3312 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3313 | break 2 | |
3314 | fi | |
3315 | done | |
3316 | done | |
3317 | IFS=$as_save_IFS | |
3318 | ||
3319 | fi ;; | |
3320 | esac | |
3321 | fi | |
3322 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3323 | if test -n "$ac_ct_CC"; then | |
3324 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3325 | printf "%s\n" "$ac_ct_CC" >&6; } | |
3326 | else | |
3327 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3328 | printf "%s\n" "no" >&6; } | |
3329 | fi | |
3330 | ||
3331 | ||
3332 | test -n "$ac_ct_CC" && break | |
3333 | done | |
3334 | ||
3335 | if test "x$ac_ct_CC" = x; then | |
3336 | CC="" | |
3337 | else | |
3338 | case $cross_compiling:$ac_tool_warned in | |
3339 | yes:) | |
3340 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3341 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3342 | ac_tool_warned=yes ;; | |
3343 | esac | |
3344 | CC=$ac_ct_CC | |
3345 | fi | |
3346 | fi | |
3347 | ||
3348 | fi | |
3349 | if test -z "$CC"; then | |
3350 | if test -n "$ac_tool_prefix"; then | |
3351 | # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. | |
3352 | set dummy ${ac_tool_prefix}clang; ac_word=$2 | |
3353 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3354 | printf %s "checking for $ac_word... " >&6; } | |
3355 | if test ${ac_cv_prog_CC+y} | |
3356 | then : | |
3357 | printf %s "(cached) " >&6 | |
3358 | else case e in #( | |
3359 | e) if test -n "$CC"; then | |
3360 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3361 | else | |
3362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3363 | for as_dir in $PATH | |
3364 | do | |
3365 | IFS=$as_save_IFS | |
3366 | case $as_dir in #((( | |
3367 | '') as_dir=./ ;; | |
3368 | */) ;; | |
3369 | *) as_dir=$as_dir/ ;; | |
3370 | esac | |
3371 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3372 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3373 | ac_cv_prog_CC="${ac_tool_prefix}clang" | |
3374 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3375 | break 2 | |
3376 | fi | |
3377 | done | |
3378 | done | |
3379 | IFS=$as_save_IFS | |
3380 | ||
3381 | fi ;; | |
3382 | esac | |
3383 | fi | |
3384 | CC=$ac_cv_prog_CC | |
3385 | if test -n "$CC"; then | |
3386 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3387 | printf "%s\n" "$CC" >&6; } | |
3388 | else | |
3389 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3390 | printf "%s\n" "no" >&6; } | |
3391 | fi | |
3392 | ||
3393 | ||
3394 | fi | |
3395 | if test -z "$ac_cv_prog_CC"; then | |
3396 | ac_ct_CC=$CC | |
3397 | # Extract the first word of "clang", so it can be a program name with args. | |
3398 | set dummy clang; ac_word=$2 | |
3399 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3400 | printf %s "checking for $ac_word... " >&6; } | |
3401 | if test ${ac_cv_prog_ac_ct_CC+y} | |
3402 | then : | |
3403 | printf %s "(cached) " >&6 | |
3404 | else case e in #( | |
3405 | e) if test -n "$ac_ct_CC"; then | |
3406 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3407 | else | |
3408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3409 | for as_dir in $PATH | |
3410 | do | |
3411 | IFS=$as_save_IFS | |
3412 | case $as_dir in #((( | |
3413 | '') as_dir=./ ;; | |
3414 | */) ;; | |
3415 | *) as_dir=$as_dir/ ;; | |
3416 | esac | |
3417 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3418 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3419 | ac_cv_prog_ac_ct_CC="clang" | |
3420 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3421 | break 2 | |
3422 | fi | |
3423 | done | |
3424 | done | |
3425 | IFS=$as_save_IFS | |
3426 | ||
3427 | fi ;; | |
3428 | esac | |
3429 | fi | |
3430 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3431 | if test -n "$ac_ct_CC"; then | |
3432 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3433 | printf "%s\n" "$ac_ct_CC" >&6; } | |
3434 | else | |
3435 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3436 | printf "%s\n" "no" >&6; } | |
3437 | fi | |
3438 | ||
3439 | if test "x$ac_ct_CC" = x; then | |
3440 | CC="" | |
3441 | else | |
3442 | case $cross_compiling:$ac_tool_warned in | |
3443 | yes:) | |
3444 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3445 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3446 | ac_tool_warned=yes ;; | |
3447 | esac | |
3448 | CC=$ac_ct_CC | |
3449 | fi | |
3450 | else | |
3451 | CC="$ac_cv_prog_CC" | |
3452 | fi | |
3453 | ||
3454 | fi | |
3455 | ||
3456 | ||
3457 | test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 | |
3458 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
3459 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
3460 | See 'config.log' for more details" "$LINENO" 5; } | |
3461 | ||
3462 | # Provide some information about the compiler. | |
3463 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3464 | set X $ac_compile | |
3465 | ac_compiler=$2 | |
3466 | for ac_option in --version -v -V -qversion -version; do | |
3467 | { { ac_try="$ac_compiler $ac_option >&5" | |
3468 | case "(($ac_try" in | |
3469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3470 | *) ac_try_echo=$ac_try;; | |
3471 | esac | |
3472 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3473 | printf "%s\n" "$ac_try_echo"; } >&5 | |
3474 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3475 | ac_status=$? | |
3476 | if test -s conftest.err; then | |
3477 | sed '10a\ | |
3478 | ... rest of stderr output deleted ... | |
3479 | 10q' conftest.err >conftest.er1 | |
3480 | cat conftest.er1 >&5 | |
3481 | fi | |
3482 | rm -f conftest.er1 conftest.err | |
3483 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3484 | test $ac_status = 0; } | |
3485 | done | |
3486 | ||
3487 | EXEEXT= | |
3488 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3489 | printf %s "checking for suffix of object files... " >&6; } | |
3490 | if test ${ac_cv_objext+y} | |
3491 | then : | |
3492 | printf %s "(cached) " >&6 | |
3493 | else case e in #( | |
3494 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3495 | /* end confdefs.h. */ | |
3496 | ||
3497 | int | |
3498 | main (void) | |
3499 | { | |
3500 | ||
3501 | ; | |
3502 | return 0; | |
3503 | } | |
3504 | _ACEOF | |
3505 | rm -f conftest.o conftest.obj | |
3506 | if { { ac_try="$ac_compile" | |
3507 | case "(($ac_try" in | |
3508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3509 | *) ac_try_echo=$ac_try;; | |
3510 | esac | |
3511 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3512 | printf "%s\n" "$ac_try_echo"; } >&5 | |
3513 | (eval "$ac_compile") 2>&5 | |
3514 | ac_status=$? | |
3515 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3516 | test $ac_status = 0; } | |
3517 | then : | |
3518 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3519 | test -f "$ac_file" || continue; | |
3520 | case $ac_file in | |
3521 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3522 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3523 | break;; | |
3524 | esac | |
3525 | done | |
3526 | else case e in #( | |
3527 | e) printf "%s\n" "$as_me: failed program was:" >&5 | |
3528 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3529 | ||
3530 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 | |
3531 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
3532 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3533 | See 'config.log' for more details" "$LINENO" 5; } ;; | |
3534 | esac | |
3535 | fi | |
3536 | rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; | |
3537 | esac | |
3538 | fi | |
3539 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3540 | printf "%s\n" "$ac_cv_objext" >&6; } | |
3541 | OBJEXT=$ac_cv_objext | |
3542 | ac_objext=$OBJEXT | |
3543 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 | |
3544 | printf %s "checking whether the compiler supports GNU C... " >&6; } | |
3545 | if test ${ac_cv_c_compiler_gnu+y} | |
3546 | then : | |
3547 | printf %s "(cached) " >&6 | |
3548 | else case e in #( | |
3549 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3550 | /* end confdefs.h. */ | |
3551 | ||
3552 | int | |
3553 | main (void) | |
3554 | { | |
3555 | #ifndef __GNUC__ | |
3556 | choke me | |
3557 | #endif | |
3558 | ||
3559 | ; | |
3560 | return 0; | |
3561 | } | |
3562 | _ACEOF | |
3563 | if ac_fn_c_try_compile "$LINENO" | |
3564 | then : | |
3565 | ac_compiler_gnu=yes | |
3566 | else case e in #( | |
3567 | e) ac_compiler_gnu=no ;; | |
3568 | esac | |
3569 | fi | |
3570 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
3571 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3572 | ;; | |
3573 | esac | |
3574 | fi | |
3575 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3576 | printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } | |
3577 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3578 | ||
3579 | if test $ac_compiler_gnu = yes; then | |
3580 | GCC=yes | |
3581 | else | |
3582 | GCC= | |
3583 | fi | |
3584 | ac_test_CFLAGS=${CFLAGS+y} | |
3585 | ac_save_CFLAGS=$CFLAGS | |
3586 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3587 | printf %s "checking whether $CC accepts -g... " >&6; } | |
3588 | if test ${ac_cv_prog_cc_g+y} | |
3589 | then : | |
3590 | printf %s "(cached) " >&6 | |
3591 | else case e in #( | |
3592 | e) ac_save_c_werror_flag=$ac_c_werror_flag | |
3593 | ac_c_werror_flag=yes | |
3594 | ac_cv_prog_cc_g=no | |
3595 | CFLAGS="-g" | |
3596 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3597 | /* end confdefs.h. */ | |
3598 | ||
3599 | int | |
3600 | main (void) | |
3601 | { | |
3602 | ||
3603 | ; | |
3604 | return 0; | |
3605 | } | |
3606 | _ACEOF | |
3607 | if ac_fn_c_try_compile "$LINENO" | |
3608 | then : | |
3609 | ac_cv_prog_cc_g=yes | |
3610 | else case e in #( | |
3611 | e) CFLAGS="" | |
3612 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3613 | /* end confdefs.h. */ | |
3614 | ||
3615 | int | |
3616 | main (void) | |
3617 | { | |
3618 | ||
3619 | ; | |
3620 | return 0; | |
3621 | } | |
3622 | _ACEOF | |
3623 | if ac_fn_c_try_compile "$LINENO" | |
3624 | then : | |
3625 | ||
3626 | else case e in #( | |
3627 | e) ac_c_werror_flag=$ac_save_c_werror_flag | |
3628 | CFLAGS="-g" | |
3629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3630 | /* end confdefs.h. */ | |
3631 | ||
3632 | int | |
3633 | main (void) | |
3634 | { | |
3635 | ||
3636 | ; | |
3637 | return 0; | |
3638 | } | |
3639 | _ACEOF | |
3640 | if ac_fn_c_try_compile "$LINENO" | |
3641 | then : | |
3642 | ac_cv_prog_cc_g=yes | |
3643 | fi | |
3644 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
3645 | esac | |
3646 | fi | |
3647 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
3648 | esac | |
3649 | fi | |
3650 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
3651 | ac_c_werror_flag=$ac_save_c_werror_flag ;; | |
3652 | esac | |
3653 | fi | |
3654 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3655 | printf "%s\n" "$ac_cv_prog_cc_g" >&6; } | |
3656 | if test $ac_test_CFLAGS; then | |
3657 | CFLAGS=$ac_save_CFLAGS | |
3658 | elif test $ac_cv_prog_cc_g = yes; then | |
3659 | if test "$GCC" = yes; then | |
3660 | CFLAGS="-g -O2" | |
3661 | else | |
3662 | CFLAGS="-g" | |
3663 | fi | |
3664 | else | |
3665 | if test "$GCC" = yes; then | |
3666 | CFLAGS="-O2" | |
3667 | else | |
3668 | CFLAGS= | |
3669 | fi | |
3670 | fi | |
3671 | ac_prog_cc_stdc=no | |
3672 | if test x$ac_prog_cc_stdc = xno | |
3673 | then : | |
3674 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 | |
3675 | printf %s "checking for $CC option to enable C11 features... " >&6; } | |
3676 | if test ${ac_cv_prog_cc_c11+y} | |
3677 | then : | |
3678 | printf %s "(cached) " >&6 | |
3679 | else case e in #( | |
3680 | e) ac_cv_prog_cc_c11=no | |
3681 | ac_save_CC=$CC | |
3682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3683 | /* end confdefs.h. */ | |
3684 | $ac_c_conftest_c11_program | |
3685 | _ACEOF | |
3686 | for ac_arg in '' -std=gnu11 | |
3687 | do | |
3688 | CC="$ac_save_CC $ac_arg" | |
3689 | if ac_fn_c_try_compile "$LINENO" | |
3690 | then : | |
3691 | ac_cv_prog_cc_c11=$ac_arg | |
3692 | fi | |
3693 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
3694 | test "x$ac_cv_prog_cc_c11" != "xno" && break | |
3695 | done | |
3696 | rm -f conftest.$ac_ext | |
3697 | CC=$ac_save_CC ;; | |
3698 | esac | |
3699 | fi | |
3700 | ||
3701 | if test "x$ac_cv_prog_cc_c11" = xno | |
3702 | then : | |
3703 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3704 | printf "%s\n" "unsupported" >&6; } | |
3705 | else case e in #( | |
3706 | e) if test "x$ac_cv_prog_cc_c11" = x | |
3707 | then : | |
3708 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3709 | printf "%s\n" "none needed" >&6; } | |
3710 | else case e in #( | |
3711 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 | |
3712 | printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } | |
3713 | CC="$CC $ac_cv_prog_cc_c11" ;; | |
3714 | esac | |
3715 | fi | |
3716 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 | |
3717 | ac_prog_cc_stdc=c11 ;; | |
3718 | esac | |
3719 | fi | |
3720 | fi | |
3721 | if test x$ac_prog_cc_stdc = xno | |
3722 | then : | |
3723 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 | |
3724 | printf %s "checking for $CC option to enable C99 features... " >&6; } | |
3725 | if test ${ac_cv_prog_cc_c99+y} | |
3726 | then : | |
3727 | printf %s "(cached) " >&6 | |
3728 | else case e in #( | |
3729 | e) ac_cv_prog_cc_c99=no | |
3730 | ac_save_CC=$CC | |
3731 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3732 | /* end confdefs.h. */ | |
3733 | $ac_c_conftest_c99_program | |
3734 | _ACEOF | |
3735 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= | |
3736 | do | |
3737 | CC="$ac_save_CC $ac_arg" | |
3738 | if ac_fn_c_try_compile "$LINENO" | |
3739 | then : | |
3740 | ac_cv_prog_cc_c99=$ac_arg | |
3741 | fi | |
3742 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
3743 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
3744 | done | |
3745 | rm -f conftest.$ac_ext | |
3746 | CC=$ac_save_CC ;; | |
3747 | esac | |
3748 | fi | |
3749 | ||
3750 | if test "x$ac_cv_prog_cc_c99" = xno | |
3751 | then : | |
3752 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3753 | printf "%s\n" "unsupported" >&6; } | |
3754 | else case e in #( | |
3755 | e) if test "x$ac_cv_prog_cc_c99" = x | |
3756 | then : | |
3757 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3758 | printf "%s\n" "none needed" >&6; } | |
3759 | else case e in #( | |
3760 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
3761 | printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } | |
3762 | CC="$CC $ac_cv_prog_cc_c99" ;; | |
3763 | esac | |
3764 | fi | |
3765 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 | |
3766 | ac_prog_cc_stdc=c99 ;; | |
3767 | esac | |
3768 | fi | |
3769 | fi | |
3770 | if test x$ac_prog_cc_stdc = xno | |
3771 | then : | |
3772 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 | |
3773 | printf %s "checking for $CC option to enable C89 features... " >&6; } | |
3774 | if test ${ac_cv_prog_cc_c89+y} | |
3775 | then : | |
3776 | printf %s "(cached) " >&6 | |
3777 | else case e in #( | |
3778 | e) ac_cv_prog_cc_c89=no | |
3779 | ac_save_CC=$CC | |
3780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3781 | /* end confdefs.h. */ | |
3782 | $ac_c_conftest_c89_program | |
3783 | _ACEOF | |
3784 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3785 | do | |
3786 | CC="$ac_save_CC $ac_arg" | |
3787 | if ac_fn_c_try_compile "$LINENO" | |
3788 | then : | |
3789 | ac_cv_prog_cc_c89=$ac_arg | |
3790 | fi | |
3791 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
3792 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3793 | done | |
3794 | rm -f conftest.$ac_ext | |
3795 | CC=$ac_save_CC ;; | |
3796 | esac | |
3797 | fi | |
3798 | ||
3799 | if test "x$ac_cv_prog_cc_c89" = xno | |
3800 | then : | |
3801 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3802 | printf "%s\n" "unsupported" >&6; } | |
3803 | else case e in #( | |
3804 | e) if test "x$ac_cv_prog_cc_c89" = x | |
3805 | then : | |
3806 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3807 | printf "%s\n" "none needed" >&6; } | |
3808 | else case e in #( | |
3809 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3810 | printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } | |
3811 | CC="$CC $ac_cv_prog_cc_c89" ;; | |
3812 | esac | |
3813 | fi | |
3814 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 | |
3815 | ac_prog_cc_stdc=c89 ;; | |
3816 | esac | |
3817 | fi | |
3818 | fi | |
3819 | ||
3820 | ac_ext=c | |
3821 | ac_cpp='$CPP $CPPFLAGS' | |
3822 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3823 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3824 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3825 | ||
3826 | ||
3827 | if test -z "$TEST_CC"; then | |
3828 | TEST_CC="$CC" | |
3829 | fi | |
3830 | if test $host != $build; then | |
3831 | for ac_prog in gcc cc | |
3832 | do | |
3833 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3834 | set dummy $ac_prog; ac_word=$2 | |
3835 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3836 | printf %s "checking for $ac_word... " >&6; } | |
3837 | if test ${ac_cv_prog_BUILD_CC+y} | |
3838 | then : | |
3839 | printf %s "(cached) " >&6 | |
3840 | else case e in #( | |
3841 | e) if test -n "$BUILD_CC"; then | |
3842 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. | |
3843 | else | |
3844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3845 | for as_dir in $PATH | |
3846 | do | |
3847 | IFS=$as_save_IFS | |
3848 | case $as_dir in #((( | |
3849 | '') as_dir=./ ;; | |
3850 | */) ;; | |
3851 | *) as_dir=$as_dir/ ;; | |
3852 | esac | |
3853 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3854 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3855 | ac_cv_prog_BUILD_CC="$ac_prog" | |
3856 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3857 | break 2 | |
3858 | fi | |
3859 | done | |
3860 | done | |
3861 | IFS=$as_save_IFS | |
3862 | ||
3863 | fi ;; | |
3864 | esac | |
3865 | fi | |
3866 | BUILD_CC=$ac_cv_prog_BUILD_CC | |
3867 | if test -n "$BUILD_CC"; then | |
3868 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 | |
3869 | printf "%s\n" "$BUILD_CC" >&6; } | |
3870 | else | |
3871 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3872 | printf "%s\n" "no" >&6; } | |
3873 | fi | |
3874 | ||
3875 | ||
3876 | test -n "$BUILD_CC" && break | |
3877 | done | |
3878 | ||
3879 | fi | |
3880 | ||
3881 | # On Suns, sometimes $CPP names a directory. | |
3882 | if test -n "$CPP" && test -d "$CPP"; then | |
3883 | CPP= | |
3884 | fi | |
3885 | if test -z "$CPP"; then | |
3886 | CPP="$CC -E" | |
3887 | fi | |
3888 | ||
3889 | ||
3890 | # This will get text that should go into config.make. | |
3891 | config_vars= | |
3892 | ||
3893 | # Check whether --enable-static-c++-tests was given. | |
3894 | if test ${enable_static_c___tests+y} | |
3895 | then : | |
3896 | enableval=$enable_static_c___tests; static_cxx_tests=$enableval | |
3897 | else case e in #( | |
3898 | e) static_cxx_tests=yes ;; | |
3899 | esac | |
3900 | fi | |
3901 | ||
3902 | config_vars="$config_vars | |
3903 | static-cxx-tests = $static_cxx_tests" | |
3904 | ||
3905 | # Check whether --enable-static-c++-link-check was given. | |
3906 | if test ${enable_static_c___link_check+y} | |
3907 | then : | |
3908 | enableval=$enable_static_c___link_check; static_cxx_link_check=$enableval | |
3909 | else case e in #( | |
3910 | e) static_cxx_link_check=yes ;; | |
3911 | esac | |
3912 | fi | |
3913 | ||
3914 | ||
3915 | # We need the C++ compiler for testing and libsupport. | |
3916 | ||
3917 | ||
3918 | ||
3919 | ||
3920 | ||
3921 | ||
3922 | ac_ext=cpp | |
3923 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3924 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3925 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3926 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3927 | if test -z "$CXX"; then | |
3928 | if test -n "$CCC"; then | |
3929 | CXX=$CCC | |
3930 | else | |
3931 | if test -n "$ac_tool_prefix"; then | |
3932 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ | |
3933 | do | |
3934 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3935 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3936 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3937 | printf %s "checking for $ac_word... " >&6; } | |
3938 | if test ${ac_cv_prog_CXX+y} | |
3939 | then : | |
3940 | printf %s "(cached) " >&6 | |
3941 | else case e in #( | |
3942 | e) if test -n "$CXX"; then | |
3943 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
3944 | else | |
3945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3946 | for as_dir in $PATH | |
3947 | do | |
3948 | IFS=$as_save_IFS | |
3949 | case $as_dir in #((( | |
3950 | '') as_dir=./ ;; | |
3951 | */) ;; | |
3952 | *) as_dir=$as_dir/ ;; | |
3953 | esac | |
3954 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3955 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3956 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
3957 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3958 | break 2 | |
3959 | fi | |
3960 | done | |
3961 | done | |
3962 | IFS=$as_save_IFS | |
3963 | ||
3964 | fi ;; | |
3965 | esac | |
3966 | fi | |
3967 | CXX=$ac_cv_prog_CXX | |
3968 | if test -n "$CXX"; then | |
3969 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
3970 | printf "%s\n" "$CXX" >&6; } | |
3971 | else | |
3972 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3973 | printf "%s\n" "no" >&6; } | |
3974 | fi | |
3975 | ||
3976 | ||
3977 | test -n "$CXX" && break | |
3978 | done | |
3979 | fi | |
3980 | if test -z "$CXX"; then | |
3981 | ac_ct_CXX=$CXX | |
3982 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ | |
3983 | do | |
3984 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3985 | set dummy $ac_prog; ac_word=$2 | |
3986 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3987 | printf %s "checking for $ac_word... " >&6; } | |
3988 | if test ${ac_cv_prog_ac_ct_CXX+y} | |
3989 | then : | |
3990 | printf %s "(cached) " >&6 | |
3991 | else case e in #( | |
3992 | e) if test -n "$ac_ct_CXX"; then | |
3993 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
3994 | else | |
3995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3996 | for as_dir in $PATH | |
3997 | do | |
3998 | IFS=$as_save_IFS | |
3999 | case $as_dir in #((( | |
4000 | '') as_dir=./ ;; | |
4001 | */) ;; | |
4002 | *) as_dir=$as_dir/ ;; | |
4003 | esac | |
4004 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4005 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
4006 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
4007 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
4008 | break 2 | |
4009 | fi | |
4010 | done | |
4011 | done | |
4012 | IFS=$as_save_IFS | |
4013 | ||
4014 | fi ;; | |
4015 | esac | |
4016 | fi | |
4017 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4018 | if test -n "$ac_ct_CXX"; then | |
4019 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
4020 | printf "%s\n" "$ac_ct_CXX" >&6; } | |
4021 | else | |
4022 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4023 | printf "%s\n" "no" >&6; } | |
4024 | fi | |
4025 | ||
4026 | ||
4027 | test -n "$ac_ct_CXX" && break | |
4028 | done | |
4029 | ||
4030 | if test "x$ac_ct_CXX" = x; then | |
4031 | CXX="g++" | |
4032 | else | |
4033 | case $cross_compiling:$ac_tool_warned in | |
4034 | yes:) | |
4035 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4036 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4037 | ac_tool_warned=yes ;; | |
4038 | esac | |
4039 | CXX=$ac_ct_CXX | |
4040 | fi | |
4041 | fi | |
4042 | ||
4043 | fi | |
4044 | fi | |
4045 | # Provide some information about the compiler. | |
4046 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
4047 | set X $ac_compile | |
4048 | ac_compiler=$2 | |
4049 | for ac_option in --version -v -V -qversion; do | |
4050 | { { ac_try="$ac_compiler $ac_option >&5" | |
4051 | case "(($ac_try" in | |
4052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4053 | *) ac_try_echo=$ac_try;; | |
4054 | esac | |
4055 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4056 | printf "%s\n" "$ac_try_echo"; } >&5 | |
4057 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4058 | ac_status=$? | |
4059 | if test -s conftest.err; then | |
4060 | sed '10a\ | |
4061 | ... rest of stderr output deleted ... | |
4062 | 10q' conftest.err >conftest.er1 | |
4063 | cat conftest.er1 >&5 | |
4064 | fi | |
4065 | rm -f conftest.er1 conftest.err | |
4066 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4067 | test $ac_status = 0; } | |
4068 | done | |
4069 | ||
4070 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 | |
4071 | printf %s "checking whether the compiler supports GNU C++... " >&6; } | |
4072 | if test ${ac_cv_cxx_compiler_gnu+y} | |
4073 | then : | |
4074 | printf %s "(cached) " >&6 | |
4075 | else case e in #( | |
4076 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4077 | /* end confdefs.h. */ | |
4078 | ||
4079 | int | |
4080 | main (void) | |
4081 | { | |
4082 | #ifndef __GNUC__ | |
4083 | choke me | |
4084 | #endif | |
4085 | ||
4086 | ; | |
4087 | return 0; | |
4088 | } | |
4089 | _ACEOF | |
4090 | if ac_fn_cxx_try_compile "$LINENO" | |
4091 | then : | |
4092 | ac_compiler_gnu=yes | |
4093 | else case e in #( | |
4094 | e) ac_compiler_gnu=no ;; | |
4095 | esac | |
4096 | fi | |
4097 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4098 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
4099 | ;; | |
4100 | esac | |
4101 | fi | |
4102 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
4103 | printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } | |
4104 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4105 | ||
4106 | if test $ac_compiler_gnu = yes; then | |
4107 | GXX=yes | |
4108 | else | |
4109 | GXX= | |
4110 | fi | |
4111 | ac_test_CXXFLAGS=${CXXFLAGS+y} | |
4112 | ac_save_CXXFLAGS=$CXXFLAGS | |
4113 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
4114 | printf %s "checking whether $CXX accepts -g... " >&6; } | |
4115 | if test ${ac_cv_prog_cxx_g+y} | |
4116 | then : | |
4117 | printf %s "(cached) " >&6 | |
4118 | else case e in #( | |
4119 | e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4120 | ac_cxx_werror_flag=yes | |
4121 | ac_cv_prog_cxx_g=no | |
4122 | CXXFLAGS="-g" | |
4123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4124 | /* end confdefs.h. */ | |
4125 | ||
4126 | int | |
4127 | main (void) | |
4128 | { | |
4129 | ||
4130 | ; | |
4131 | return 0; | |
4132 | } | |
4133 | _ACEOF | |
4134 | if ac_fn_cxx_try_compile "$LINENO" | |
4135 | then : | |
4136 | ac_cv_prog_cxx_g=yes | |
4137 | else case e in #( | |
4138 | e) CXXFLAGS="" | |
4139 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4140 | /* end confdefs.h. */ | |
4141 | ||
4142 | int | |
4143 | main (void) | |
4144 | { | |
4145 | ||
4146 | ; | |
4147 | return 0; | |
4148 | } | |
4149 | _ACEOF | |
4150 | if ac_fn_cxx_try_compile "$LINENO" | |
4151 | then : | |
4152 | ||
4153 | else case e in #( | |
4154 | e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4155 | CXXFLAGS="-g" | |
4156 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4157 | /* end confdefs.h. */ | |
4158 | ||
4159 | int | |
4160 | main (void) | |
4161 | { | |
4162 | ||
4163 | ; | |
4164 | return 0; | |
4165 | } | |
4166 | _ACEOF | |
4167 | if ac_fn_cxx_try_compile "$LINENO" | |
4168 | then : | |
4169 | ac_cv_prog_cxx_g=yes | |
4170 | fi | |
4171 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
4172 | esac | |
4173 | fi | |
4174 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
4175 | esac | |
4176 | fi | |
4177 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4178 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;; | |
4179 | esac | |
4180 | fi | |
4181 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
4182 | printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } | |
4183 | if test $ac_test_CXXFLAGS; then | |
4184 | CXXFLAGS=$ac_save_CXXFLAGS | |
4185 | elif test $ac_cv_prog_cxx_g = yes; then | |
4186 | if test "$GXX" = yes; then | |
4187 | CXXFLAGS="-g -O2" | |
4188 | else | |
4189 | CXXFLAGS="-g" | |
4190 | fi | |
4191 | else | |
4192 | if test "$GXX" = yes; then | |
4193 | CXXFLAGS="-O2" | |
4194 | else | |
4195 | CXXFLAGS= | |
4196 | fi | |
4197 | fi | |
4198 | ac_prog_cxx_stdcxx=no | |
4199 | if test x$ac_prog_cxx_stdcxx = xno | |
4200 | then : | |
4201 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 | |
4202 | printf %s "checking for $CXX option to enable C++11 features... " >&6; } | |
4203 | if test ${ac_cv_prog_cxx_cxx11+y} | |
4204 | then : | |
4205 | printf %s "(cached) " >&6 | |
4206 | else case e in #( | |
4207 | e) ac_cv_prog_cxx_cxx11=no | |
4208 | ac_save_CXX=$CXX | |
4209 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4210 | /* end confdefs.h. */ | |
4211 | $ac_cxx_conftest_cxx11_program | |
4212 | _ACEOF | |
4213 | for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA | |
4214 | do | |
4215 | CXX="$ac_save_CXX $ac_arg" | |
4216 | if ac_fn_cxx_try_compile "$LINENO" | |
4217 | then : | |
4218 | ac_cv_prog_cxx_cxx11=$ac_arg | |
4219 | fi | |
4220 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
4221 | test "x$ac_cv_prog_cxx_cxx11" != "xno" && break | |
4222 | done | |
4223 | rm -f conftest.$ac_ext | |
4224 | CXX=$ac_save_CXX ;; | |
4225 | esac | |
4226 | fi | |
4227 | ||
4228 | if test "x$ac_cv_prog_cxx_cxx11" = xno | |
4229 | then : | |
4230 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4231 | printf "%s\n" "unsupported" >&6; } | |
4232 | else case e in #( | |
4233 | e) if test "x$ac_cv_prog_cxx_cxx11" = x | |
4234 | then : | |
4235 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4236 | printf "%s\n" "none needed" >&6; } | |
4237 | else case e in #( | |
4238 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 | |
4239 | printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } | |
4240 | CXX="$CXX $ac_cv_prog_cxx_cxx11" ;; | |
4241 | esac | |
4242 | fi | |
4243 | ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 | |
4244 | ac_prog_cxx_stdcxx=cxx11 ;; | |
4245 | esac | |
4246 | fi | |
4247 | fi | |
4248 | if test x$ac_prog_cxx_stdcxx = xno | |
4249 | then : | |
4250 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 | |
4251 | printf %s "checking for $CXX option to enable C++98 features... " >&6; } | |
4252 | if test ${ac_cv_prog_cxx_cxx98+y} | |
4253 | then : | |
4254 | printf %s "(cached) " >&6 | |
4255 | else case e in #( | |
4256 | e) ac_cv_prog_cxx_cxx98=no | |
4257 | ac_save_CXX=$CXX | |
4258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4259 | /* end confdefs.h. */ | |
4260 | $ac_cxx_conftest_cxx98_program | |
4261 | _ACEOF | |
4262 | for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA | |
4263 | do | |
4264 | CXX="$ac_save_CXX $ac_arg" | |
4265 | if ac_fn_cxx_try_compile "$LINENO" | |
4266 | then : | |
4267 | ac_cv_prog_cxx_cxx98=$ac_arg | |
4268 | fi | |
4269 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
4270 | test "x$ac_cv_prog_cxx_cxx98" != "xno" && break | |
4271 | done | |
4272 | rm -f conftest.$ac_ext | |
4273 | CXX=$ac_save_CXX ;; | |
4274 | esac | |
4275 | fi | |
4276 | ||
4277 | if test "x$ac_cv_prog_cxx_cxx98" = xno | |
4278 | then : | |
4279 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4280 | printf "%s\n" "unsupported" >&6; } | |
4281 | else case e in #( | |
4282 | e) if test "x$ac_cv_prog_cxx_cxx98" = x | |
4283 | then : | |
4284 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4285 | printf "%s\n" "none needed" >&6; } | |
4286 | else case e in #( | |
4287 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 | |
4288 | printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } | |
4289 | CXX="$CXX $ac_cv_prog_cxx_cxx98" ;; | |
4290 | esac | |
4291 | fi | |
4292 | ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 | |
4293 | ac_prog_cxx_stdcxx=cxx98 ;; | |
4294 | esac | |
4295 | fi | |
4296 | fi | |
4297 | ||
4298 | ac_ext=c | |
4299 | ac_cpp='$CPP $CPPFLAGS' | |
4300 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4301 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4302 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4303 | ||
4304 | ||
4305 | saved_CXX="$CXX" | |
4306 | if test -z "$TEST_CXX"; then | |
4307 | TEST_CXX="$CXX" | |
4308 | else | |
4309 | CXX="$TEST_CXX" | |
4310 | fi | |
4311 | # It's useless to us if it can't link programs (e.g. missing -lstdc++). | |
4312 | ||
4313 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX can link programs" >&5 | |
4314 | printf %s "checking whether $CXX can link programs... " >&6; } | |
4315 | if test ${libc_cv_cxx_link_ok+y} | |
4316 | then : | |
4317 | printf %s "(cached) " >&6 | |
4318 | else case e in #( | |
4319 | e) ac_ext=cpp | |
4320 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4321 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4322 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4323 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4324 | ||
4325 | # Default, dynamic case. | |
4326 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4327 | /* end confdefs.h. */ | |
4328 | ||
4329 | int | |
4330 | main (void) | |
4331 | { | |
4332 | ||
4333 | ; | |
4334 | return 0; | |
4335 | } | |
4336 | _ACEOF | |
4337 | if ac_fn_cxx_try_link "$LINENO" | |
4338 | then : | |
4339 | libc_cv_cxx_link_ok=yes | |
4340 | else case e in #( | |
4341 | e) libc_cv_cxx_link_ok=no ;; | |
4342 | esac | |
4343 | fi | |
4344 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
4345 | conftest$ac_exeext conftest.$ac_ext | |
4346 | if test $static_cxx_link_check$static_cxx_tests = yesyes; then | |
4347 | # Static case. | |
4348 | old_LDFLAGS="$LDFLAGS" | |
4349 | LDFLAGS="$LDFLAGS -static" | |
4350 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4351 | /* end confdefs.h. */ | |
4352 | ||
4353 | #include <iostream> | |
4354 | ||
4355 | int | |
4356 | main() | |
4357 | { | |
4358 | std::cout << "Hello, world!"; | |
4359 | return 0; | |
4360 | } | |
4361 | ||
4362 | _ACEOF | |
4363 | if ac_fn_cxx_try_link "$LINENO" | |
4364 | then : | |
4365 | ||
4366 | else case e in #( | |
4367 | e) libc_cv_cxx_link_ok=no ;; | |
4368 | esac | |
4369 | fi | |
4370 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
4371 | conftest$ac_exeext conftest.$ac_ext | |
4372 | LDFLAGS="$old_LDFLAGS" | |
4373 | fi | |
4374 | ac_ext=c | |
4375 | ac_cpp='$CPP $CPPFLAGS' | |
4376 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4377 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4378 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4379 | ;; | |
4380 | esac | |
4381 | fi | |
4382 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_link_ok" >&5 | |
4383 | printf "%s\n" "$libc_cv_cxx_link_ok" >&6; } | |
4384 | CXX="$saved_CXX" | |
4385 | if test $libc_cv_cxx_link_ok != yes | |
4386 | then : | |
4387 | CXX=; TEST_CXX= | |
4388 | fi | |
4389 | ||
4390 | if test "`cd $srcdir; pwd -P`" = "`pwd -P`"; then | |
4391 | as_fn_error $? "you must configure in a separate build directory" "$LINENO" 5 | |
4392 | fi | |
4393 | ||
4394 | # Check for a --with-gd argument and set libgd-LDFLAGS in config.make. | |
4395 | ||
4396 | # Check whether --with-gd was given. | |
4397 | if test ${with_gd+y} | |
4398 | then : | |
4399 | withval=$with_gd; case "$with_gd" in | |
4400 | yes|''|no) ;; | |
4401 | *) libgd_include="-I$withval/include" | |
4402 | libgd_ldflags="-L$withval/lib" ;; | |
4403 | esac | |
4404 | ||
4405 | fi | |
4406 | ||
4407 | ||
4408 | # Check whether --with-gd-include was given. | |
4409 | if test ${with_gd_include+y} | |
4410 | then : | |
4411 | withval=$with_gd_include; case "$with_gd_include" in | |
4412 | ''|no) ;; | |
4413 | *) libgd_include="-I$withval" ;; | |
4414 | esac | |
4415 | ||
4416 | fi | |
4417 | ||
4418 | ||
4419 | # Check whether --with-gd-lib was given. | |
4420 | if test ${with_gd_lib+y} | |
4421 | then : | |
4422 | withval=$with_gd_lib; case "$with_gd_lib" in | |
4423 | ''|no) ;; | |
4424 | *) libgd_ldflags="-L$withval" ;; | |
4425 | esac | |
4426 | ||
4427 | fi | |
4428 | ||
4429 | ||
4430 | if test -n "$libgd_include"; then | |
4431 | config_vars="$config_vars | |
4432 | CFLAGS-memusagestat.c = $libgd_include" | |
4433 | fi | |
4434 | if test -n "$libgd_ldflags"; then | |
4435 | config_vars="$config_vars | |
4436 | libgd-LDFLAGS = $libgd_ldflags" | |
4437 | fi | |
4438 | ||
4439 | ||
4440 | # Check whether --with-binutils was given. | |
4441 | if test ${with_binutils+y} | |
4442 | then : | |
4443 | withval=$with_binutils; path_binutils=$withval | |
4444 | else case e in #( | |
4445 | e) path_binutils='' ;; | |
4446 | esac | |
4447 | fi | |
4448 | ||
4449 | ||
4450 | # Check whether --with-selinux was given. | |
4451 | if test ${with_selinux+y} | |
4452 | then : | |
4453 | withval=$with_selinux; with_selinux=$withval | |
4454 | else case e in #( | |
4455 | e) with_selinux=auto ;; | |
4456 | esac | |
4457 | fi | |
4458 | ||
4459 | ||
4460 | ||
4461 | # Check whether --with-headers was given. | |
4462 | if test ${with_headers+y} | |
4463 | then : | |
4464 | withval=$with_headers; sysheaders=$withval | |
4465 | else case e in #( | |
4466 | e) sysheaders='' ;; | |
4467 | esac | |
4468 | fi | |
4469 | ||
4470 | ||
4471 | ||
4472 | ||
4473 | # Check whether --with-nonshared-cflags was given. | |
4474 | if test ${with_nonshared_cflags+y} | |
4475 | then : | |
4476 | withval=$with_nonshared_cflags; extra_nonshared_cflags=$withval | |
4477 | else case e in #( | |
4478 | e) extra_nonshared_cflags= ;; | |
4479 | esac | |
4480 | fi | |
4481 | ||
4482 | ||
4483 | ||
4484 | # Check whether --with-rtld-early-cflags was given. | |
4485 | if test ${with_rtld_early_cflags+y} | |
4486 | then : | |
4487 | withval=$with_rtld_early_cflags; rtld_early_cflags=$withval | |
4488 | else case e in #( | |
4489 | e) rtld_early_cflags= ;; | |
4490 | esac | |
4491 | fi | |
4492 | ||
4493 | ||
4494 | ||
4495 | ||
4496 | # Check whether --with-timeoutfactor was given. | |
4497 | if test ${with_timeoutfactor+y} | |
4498 | then : | |
4499 | withval=$with_timeoutfactor; timeoutfactor=$withval | |
4500 | else case e in #( | |
4501 | e) timeoutfactor=1 ;; | |
4502 | esac | |
4503 | fi | |
4504 | ||
4505 | printf "%s\n" "#define TIMEOUTFACTOR $timeoutfactor" >>confdefs.h | |
4506 | ||
4507 | ||
4508 | man_pages_version=6.9.1 | |
4509 | ||
4510 | ||
4511 | # Check whether --with-man-pages was given. | |
4512 | if test ${with_man_pages+y} | |
4513 | then : | |
4514 | withval=$with_man_pages; man_pages_version=$withval | |
4515 | fi | |
4516 | ||
4517 | ||
4518 | ||
4519 | # Check whether --enable-sanity-checks was given. | |
4520 | if test ${enable_sanity_checks+y} | |
4521 | then : | |
4522 | enableval=$enable_sanity_checks; enable_sanity=$enableval | |
4523 | else case e in #( | |
4524 | e) enable_sanity=yes ;; | |
4525 | esac | |
4526 | fi | |
4527 | ||
4528 | ||
4529 | # Check whether --enable-shared was given. | |
4530 | if test ${enable_shared+y} | |
4531 | then : | |
4532 | enableval=$enable_shared; shared=$enableval | |
4533 | else case e in #( | |
4534 | e) shared=yes ;; | |
4535 | esac | |
4536 | fi | |
4537 | ||
4538 | # Check whether --enable-profile was given. | |
4539 | if test ${enable_profile+y} | |
4540 | then : | |
4541 | enableval=$enable_profile; profile=$enableval | |
4542 | else case e in #( | |
4543 | e) profile=no ;; | |
4544 | esac | |
4545 | fi | |
4546 | ||
4547 | # Check whether --enable-default-pie was given. | |
4548 | if test ${enable_default_pie+y} | |
4549 | then : | |
4550 | enableval=$enable_default_pie; default_pie=$enableval | |
4551 | else case e in #( | |
4552 | e) default_pie=yes ;; | |
4553 | esac | |
4554 | fi | |
4555 | ||
4556 | # Check whether --enable-timezone-tools was given. | |
4557 | if test ${enable_timezone_tools+y} | |
4558 | then : | |
4559 | enableval=$enable_timezone_tools; enable_timezone_tools=$enableval | |
4560 | else case e in #( | |
4561 | e) enable_timezone_tools=yes ;; | |
4562 | esac | |
4563 | fi | |
4564 | ||
4565 | ||
4566 | ||
4567 | # Check whether --enable-hardcoded-path-in-tests was given. | |
4568 | if test ${enable_hardcoded_path_in_tests+y} | |
4569 | then : | |
4570 | enableval=$enable_hardcoded_path_in_tests; hardcoded_path_in_tests=$enableval | |
4571 | else case e in #( | |
4572 | e) hardcoded_path_in_tests=no ;; | |
4573 | esac | |
4574 | fi | |
4575 | ||
4576 | ||
4577 | ||
4578 | # Check whether --enable-hidden-plt was given. | |
4579 | if test ${enable_hidden_plt+y} | |
4580 | then : | |
4581 | enableval=$enable_hidden_plt; hidden=$enableval | |
4582 | else case e in #( | |
4583 | e) hidden=yes ;; | |
4584 | esac | |
4585 | fi | |
4586 | ||
4587 | if test "x$hidden" = xno; then | |
4588 | printf "%s\n" "#define NO_HIDDEN 1" >>confdefs.h | |
4589 | ||
4590 | fi | |
4591 | ||
4592 | # Check whether --enable-bind-now was given. | |
4593 | if test ${enable_bind_now+y} | |
4594 | then : | |
4595 | enableval=$enable_bind_now; bindnow=$enableval | |
4596 | else case e in #( | |
4597 | e) bindnow=no ;; | |
4598 | esac | |
4599 | fi | |
4600 | ||
4601 | ||
4602 | if test "x$bindnow" = xyes; then | |
4603 | printf "%s\n" "#define BIND_NOW 1" >>confdefs.h | |
4604 | ||
4605 | fi | |
4606 | ||
4607 | # Check whether --enable-stack-protector was given. | |
4608 | if test ${enable_stack_protector+y} | |
4609 | then : | |
4610 | enableval=$enable_stack_protector; enable_stack_protector=$enableval | |
4611 | else case e in #( | |
4612 | e) enable_stack_protector=no ;; | |
4613 | esac | |
4614 | fi | |
4615 | ||
4616 | case "$enable_stack_protector" in | |
4617 | all|yes|no|strong) ;; | |
4618 | *) as_fn_error $? "Not a valid argument for --enable-stack-protector: \"$enable_stack_protector\"" "$LINENO" 5;; | |
4619 | esac | |
4620 | ||
4621 | # Check whether --enable-static-nss was given. | |
4622 | if test ${enable_static_nss+y} | |
4623 | then : | |
4624 | enableval=$enable_static_nss; static_nss=$enableval | |
4625 | else case e in #( | |
4626 | e) static_nss=no ;; | |
4627 | esac | |
4628 | fi | |
4629 | ||
4630 | if test x"$static_nss" = xyes || test x"$shared" = xno; then | |
4631 | static_nss=yes | |
4632 | printf "%s\n" "#define DO_STATIC_NSS 1" >>confdefs.h | |
4633 | ||
4634 | fi | |
4635 | ||
4636 | # Check whether --enable-force-install was given. | |
4637 | if test ${enable_force_install+y} | |
4638 | then : | |
4639 | enableval=$enable_force_install; force_install=$enableval | |
4640 | else case e in #( | |
4641 | e) force_install=yes ;; | |
4642 | esac | |
4643 | fi | |
4644 | ||
4645 | ||
4646 | ||
4647 | # Check whether --enable-maintainer-mode was given. | |
4648 | if test ${enable_maintainer_mode+y} | |
4649 | then : | |
4650 | enableval=$enable_maintainer_mode; maintainer=$enableval | |
4651 | else case e in #( | |
4652 | e) maintainer=no ;; | |
4653 | esac | |
4654 | fi | |
4655 | ||
4656 | ||
4657 | # Check whether --enable-kernel was given. | |
4658 | if test ${enable_kernel+y} | |
4659 | then : | |
4660 | enableval=$enable_kernel; minimum_kernel=$enableval | |
4661 | fi | |
4662 | ||
4663 | if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then | |
4664 | # Better nothing than this. | |
4665 | minimum_kernel="" | |
4666 | else | |
4667 | if test "$minimum_kernel" = current; then | |
4668 | minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel= | |
4669 | fi | |
4670 | fi | |
4671 | ||
4672 | # Check whether --enable-werror was given. | |
4673 | if test ${enable_werror+y} | |
4674 | then : | |
4675 | enableval=$enable_werror; enable_werror=$enableval | |
4676 | else case e in #( | |
4677 | e) enable_werror=yes ;; | |
4678 | esac | |
4679 | fi | |
4680 | ||
4681 | ||
4682 | ||
4683 | # Check whether --enable-multi-arch was given. | |
4684 | if test ${enable_multi_arch+y} | |
4685 | then : | |
4686 | enableval=$enable_multi_arch; multi_arch=$enableval | |
4687 | else case e in #( | |
4688 | e) multi_arch=default ;; | |
4689 | esac | |
4690 | fi | |
4691 | ||
4692 | ||
4693 | # Check whether --enable-memory-tagging was given. | |
4694 | if test ${enable_memory_tagging+y} | |
4695 | then : | |
4696 | enableval=$enable_memory_tagging; memory_tagging=$enableval | |
4697 | else case e in #( | |
4698 | e) memory_tagging=no ;; | |
4699 | esac | |
4700 | fi | |
4701 | ||
4702 | if test "$memory_tagging" = yes; then | |
4703 | # Only enable this on architectures that support it. | |
4704 | case $host_cpu in | |
4705 | aarch64) | |
4706 | printf "%s\n" "#define USE_MTAG 1" >>confdefs.h | |
4707 | ||
4708 | ;; | |
4709 | esac | |
4710 | fi | |
4711 | ||
4712 | ||
4713 | # Check whether --enable-systemtap was given. | |
4714 | if test ${enable_systemtap+y} | |
4715 | then : | |
4716 | enableval=$enable_systemtap; systemtap=$enableval | |
4717 | else case e in #( | |
4718 | e) systemtap=no ;; | |
4719 | esac | |
4720 | fi | |
4721 | ||
4722 | if test "x$systemtap" != xno; then | |
4723 | ||
4724 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemtap static probe support" >&5 | |
4725 | printf %s "checking for systemtap static probe support... " >&6; } | |
4726 | if test ${libc_cv_sdt+y} | |
4727 | then : | |
4728 | printf %s "(cached) " >&6 | |
4729 | else case e in #( | |
4730 | e) old_CFLAGS="$CFLAGS" | |
4731 | CFLAGS="-std=gnu11 $CFLAGS" | |
4732 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4733 | /* end confdefs.h. */ | |
4734 | #include <sys/sdt.h> | |
4735 | void foo (int i, void *p) | |
4736 | { | |
4737 | asm ("" STAP_PROBE_ASM (foo, bar, STAP_PROBE_ASM_TEMPLATE (2)) "" | |
4738 | :: STAP_PROBE_ASM_OPERANDS (2, i, p)); | |
4739 | } | |
4740 | _ACEOF | |
4741 | if ac_fn_c_try_compile "$LINENO" | |
4742 | then : | |
4743 | libc_cv_sdt=yes | |
4744 | else case e in #( | |
4745 | e) libc_cv_sdt=no ;; | |
4746 | esac | |
4747 | fi | |
4748 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4749 | CFLAGS="$old_CFLAGS" ;; | |
4750 | esac | |
4751 | fi | |
4752 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sdt" >&5 | |
4753 | printf "%s\n" "$libc_cv_sdt" >&6; } | |
4754 | if test $libc_cv_sdt = yes; then | |
4755 | printf "%s\n" "#define USE_STAP_PROBE 1" >>confdefs.h | |
4756 | ||
4757 | elif test "x$systemtap" != xauto; then | |
4758 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 | |
4759 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
4760 | as_fn_error $? "systemtap support needs sys/sdt.h with asm support | |
4761 | See 'config.log' for more details" "$LINENO" 5; } | |
4762 | fi | |
4763 | fi | |
4764 | ||
4765 | # Check whether --enable-build-nscd was given. | |
4766 | if test ${enable_build_nscd+y} | |
4767 | then : | |
4768 | enableval=$enable_build_nscd; build_nscd=$enableval | |
4769 | else case e in #( | |
4770 | e) build_nscd=default ;; | |
4771 | esac | |
4772 | fi | |
4773 | ||
4774 | ||
4775 | ||
4776 | # Note the use of $use_nscd is near the bottom of the file. | |
4777 | # Check whether --enable-nscd was given. | |
4778 | if test ${enable_nscd+y} | |
4779 | then : | |
4780 | enableval=$enable_nscd; use_nscd=$enableval | |
4781 | else case e in #( | |
4782 | e) use_nscd=yes ;; | |
4783 | esac | |
4784 | fi | |
4785 | ||
4786 | ||
4787 | # Check whether --enable-pt_chown was given. | |
4788 | if test ${enable_pt_chown+y} | |
4789 | then : | |
4790 | enableval=$enable_pt_chown; build_pt_chown=$enableval | |
4791 | else case e in #( | |
4792 | e) build_pt_chown=no ;; | |
4793 | esac | |
4794 | fi | |
4795 | ||
4796 | ||
4797 | if test "$build_pt_chown" = yes; then | |
4798 | printf "%s\n" "#define HAVE_PT_CHOWN 1" >>confdefs.h | |
4799 | ||
4800 | fi | |
4801 | ||
4802 | # The abi-tags file uses a fairly simplistic model for name recognition that | |
4803 | # can't distinguish i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a | |
4804 | # $host_os of `gnu*' here to be `gnu-gnu*' just so that it can tell. | |
4805 | # This doesn't get used much beyond that, so it's fairly safe. | |
4806 | case "$host_os" in | |
4807 | linux*) | |
4808 | ;; | |
4809 | gnu*) | |
4810 | host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'` | |
4811 | ;; | |
4812 | esac | |
4813 | ||
4814 | # Check whether --enable-mathvec was given. | |
4815 | if test ${enable_mathvec+y} | |
4816 | then : | |
4817 | enableval=$enable_mathvec; build_mathvec=$enableval | |
4818 | else case e in #( | |
4819 | e) build_mathvec=notset ;; | |
4820 | esac | |
4821 | fi | |
4822 | ||
4823 | ||
4824 | ||
4825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4826 | /* end confdefs.h. */ | |
4827 | ||
4828 | int | |
4829 | main (void) | |
4830 | { | |
4831 | ||
4832 | #ifndef __CET__ | |
4833 | # error no CET compiler support | |
4834 | #endif | |
4835 | ; | |
4836 | return 0; | |
4837 | } | |
4838 | _ACEOF | |
4839 | if ac_fn_c_try_cpp "$LINENO" | |
4840 | then : | |
4841 | libc_cv_compiler_default_cet=yes | |
4842 | else case e in #( | |
4843 | e) libc_cv_compiler_default_cet=no ;; | |
4844 | esac | |
4845 | fi | |
4846 | rm -f conftest.err conftest.i conftest.$ac_ext | |
4847 | ||
4848 | # Check whether --enable-cet was given. | |
4849 | if test ${enable_cet+y} | |
4850 | then : | |
4851 | enableval=$enable_cet; enable_cet=$enableval | |
4852 | else case e in #( | |
4853 | e) enable_cet=$libc_cv_compiler_default_cet ;; | |
4854 | esac | |
4855 | fi | |
4856 | ||
4857 | ||
4858 | # Check whether --enable-scv was given. | |
4859 | if test ${enable_scv+y} | |
4860 | then : | |
4861 | enableval=$enable_scv; use_scv=$enableval | |
4862 | else case e in #( | |
4863 | e) use_scv=yes ;; | |
4864 | esac | |
4865 | fi | |
4866 | ||
4867 | ||
4868 | if test "$use_scv" != "no" | |
4869 | then : | |
4870 | printf "%s\n" "#define USE_PPC_SCV 1" >>confdefs.h | |
4871 | ||
4872 | fi | |
4873 | ||
4874 | # Check whether --enable-fortify-source was given. | |
4875 | if test ${enable_fortify_source+y} | |
4876 | then : | |
4877 | enableval=$enable_fortify_source; enable_fortify_source=$enableval | |
4878 | else case e in #( | |
4879 | e) enable_fortify_source=no ;; | |
4880 | esac | |
4881 | fi | |
4882 | ||
4883 | case "$enable_fortify_source" in | |
4884 | 1|2|3|no|yes) ;; | |
4885 | *) as_fn_error $? "Not a valid argument for --enable-fortify-source: \"$enable_fortify_source\"" "$LINENO" 5;; | |
4886 | esac | |
4887 | ||
4888 | # We keep the original values in `$config_*' and never modify them, so we | |
4889 | # can write them unchanged into config.make. Everything else uses | |
4890 | # $machine, $vendor, and $os, and changes them whenever convenient. | |
4891 | config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os | |
4892 | ||
4893 | # Don't allow vendor == "unknown" | |
4894 | test "$config_vendor" = unknown && config_vendor= | |
4895 | config_os="`echo $config_os | sed 's/^unknown-//'`" | |
4896 | ||
4897 | # Some configurations imply other options. | |
4898 | elf=yes | |
4899 | ||
4900 | # The configure fragment of a port can modify these to supplement | |
4901 | # or override the table in the case statement below. No fragment should | |
4902 | # ever change the config_* variables, however. | |
4903 | machine=$config_machine | |
4904 | vendor=$config_vendor | |
4905 | os=$config_os | |
4906 | base_os='' | |
4907 | ||
4908 | submachine= | |
4909 | ||
4910 | # Check whether --with-cpu was given. | |
4911 | if test ${with_cpu+y} | |
4912 | then : | |
4913 | withval=$with_cpu; case "$withval" in | |
4914 | yes|'') as_fn_error $? "--with-cpu requires an argument" "$LINENO" 5 ;; | |
4915 | no) ;; | |
4916 | *) submachine="$withval" ;; | |
4917 | esac | |
4918 | ||
4919 | fi | |
4920 | ||
4921 | ||
4922 | # An preconfigure script can set this when it wants to disable the sanity | |
4923 | # check below. | |
4924 | libc_config_ok=no | |
4925 | ||
4926 | # A preconfigure script for a system that may or may not use fpu | |
4927 | # sysdeps directories sets this to a preprocessor conditional for | |
4928 | # whether to use such directories. | |
4929 | with_fp_cond=1 | |
4930 | ||
4931 | # A preconfigure script may define another name to TLS descriptor variant | |
4932 | mtls_descriptor=gnu2 | |
4933 | ||
4934 | # A preconfigure script may define another name to traditional TLS variant | |
4935 | mtls_traditional=gnu | |
4936 | ||
4937 | if frags=`ls -d $srcdir/sysdeps/*/preconfigure 2> /dev/null` | |
4938 | then | |
4939 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysdeps preconfigure fragments" >&5 | |
4940 | printf %s "checking for sysdeps preconfigure fragments... " >&6; } | |
4941 | for frag in $frags; do | |
4942 | name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'` | |
4943 | echo $ECHO_N "$name $ECHO_C" >&6 | |
4944 | . "$frag" | |
4945 | done | |
4946 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5 | |
4947 | printf "%s\n" "" >&6; } | |
4948 | fi | |
4949 | ||
4950 | ||
4951 | ### | |
4952 | ### By using the undocumented --enable-hacker-mode option for configure | |
4953 | ### one can skip this test to make the configuration not fail for unsupported | |
4954 | ### platforms. | |
4955 | ### | |
4956 | if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then | |
4957 | case "$machine-$host_os" in | |
4958 | *-linux* | *-gnu*) | |
4959 | ;; | |
4960 | *) | |
4961 | as_fn_error $? " | |
4962 | *** The GNU C library is currently unavailable for this platform. | |
4963 | *** If you are interested in seeing glibc on this platform visit | |
4964 | *** the \"How to submit a new port\" in the wiki: | |
4965 | *** https://sourceware.org/glibc/wiki/#Development | |
4966 | *** and join the community!" "$LINENO" 5 | |
4967 | ;; | |
4968 | esac | |
4969 | fi | |
4970 | ||
4971 | # Set base_machine if not set by a preconfigure fragment. | |
4972 | test -n "$base_machine" || base_machine=$machine | |
4973 | ||
4974 | ||
4975 | ### Locate tools. | |
4976 | ||
4977 | ||
4978 | # Find a good install program. We prefer a C program (faster), | |
4979 | # so one script is as good as another. But avoid the broken or | |
4980 | # incompatible versions: | |
4981 | # SysV /etc/install, /usr/sbin/install | |
4982 | # SunOS /usr/etc/install | |
4983 | # IRIX /sbin/install | |
4984 | # AIX /bin/install | |
4985 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4986 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4987 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4988 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4989 | # OS/2's system install, which has a completely different semantic | |
4990 | # ./install, which can be erroneously created by make from ./install.sh. | |
4991 | # Reject install programs that cannot install multiple files. | |
4992 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
4993 | printf %s "checking for a BSD-compatible install... " >&6; } | |
4994 | if test -z "$INSTALL"; then | |
4995 | if test ${ac_cv_path_install+y} | |
4996 | then : | |
4997 | printf %s "(cached) " >&6 | |
4998 | else case e in #( | |
4999 | e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5000 | for as_dir in $PATH | |
5001 | do | |
5002 | IFS=$as_save_IFS | |
5003 | case $as_dir in #((( | |
5004 | '') as_dir=./ ;; | |
5005 | */) ;; | |
5006 | *) as_dir=$as_dir/ ;; | |
5007 | esac | |
5008 | # Account for fact that we put trailing slashes in our PATH walk. | |
5009 | case $as_dir in #(( | |
5010 | ./ | /[cC]/* | \ | |
5011 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
5012 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
5013 | /usr/ucb/* ) ;; | |
5014 | *) | |
5015 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
5016 | # Don't use installbsd from OSF since it installs stuff as root | |
5017 | # by default. | |
5018 | for ac_prog in ginstall scoinst install; do | |
5019 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5020 | if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then | |
5021 | if test $ac_prog = install && | |
5022 | grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5023 | # AIX install. It has an incompatible calling convention. | |
5024 | : | |
5025 | elif test $ac_prog = install && | |
5026 | grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5027 | # program-specific install script used by HP pwplus--don't use. | |
5028 | : | |
5029 | else | |
5030 | rm -rf conftest.one conftest.two conftest.dir | |
5031 | echo one > conftest.one | |
5032 | echo two > conftest.two | |
5033 | mkdir conftest.dir | |
5034 | if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && | |
5035 | test -s conftest.one && test -s conftest.two && | |
5036 | test -s conftest.dir/conftest.one && | |
5037 | test -s conftest.dir/conftest.two | |
5038 | then | |
5039 | ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" | |
5040 | break 3 | |
5041 | fi | |
5042 | fi | |
5043 | fi | |
5044 | done | |
5045 | done | |
5046 | ;; | |
5047 | esac | |
5048 | ||
5049 | done | |
5050 | IFS=$as_save_IFS | |
5051 | ||
5052 | rm -rf conftest.one conftest.two conftest.dir | |
5053 | ;; | |
5054 | esac | |
5055 | fi | |
5056 | if test ${ac_cv_path_install+y}; then | |
5057 | INSTALL=$ac_cv_path_install | |
5058 | else | |
5059 | # As a last resort, use the slow shell script. Don't cache a | |
5060 | # value for INSTALL within a source directory, because that will | |
5061 | # break other packages using the cache if that directory is | |
5062 | # removed, or if the value is a relative name. | |
5063 | INSTALL=$ac_install_sh | |
5064 | fi | |
5065 | fi | |
5066 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
5067 | printf "%s\n" "$INSTALL" >&6; } | |
5068 | ||
5069 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
5070 | # It thinks the first close brace ends the variable substitution. | |
5071 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
5072 | ||
5073 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
5074 | ||
5075 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
5076 | ||
5077 | if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then | |
5078 | # The makefiles need to use a different form to find it in $srcdir. | |
5079 | INSTALL='\$(..)./scripts/install-sh -c' | |
5080 | fi | |
5081 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
5082 | printf %s "checking whether ln -s works... " >&6; } | |
5083 | LN_S=$as_ln_s | |
5084 | if test "$LN_S" = "ln -s"; then | |
5085 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5086 | printf "%s\n" "yes" >&6; } | |
5087 | else | |
5088 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
5089 | printf "%s\n" "no, using $LN_S" >&6; } | |
5090 | fi | |
5091 | ||
5092 | ||
5093 | # Was a --with-binutils option given? | |
5094 | if test -n "$path_binutils"; then | |
5095 | # Make absolute; ensure a single trailing slash. | |
5096 | path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'` | |
5097 | CC="$CC -B$path_binutils" | |
5098 | fi | |
5099 | case "$CC" in | |
5100 | *fuse-ld=lld*) LDNAME=ld.lld;; | |
5101 | *) LDNAME=ld;; | |
5102 | esac | |
5103 | if test -z "$LD"; then | |
5104 | LD=`$CC -print-prog-name=$LDNAME` | |
5105 | fi | |
5106 | if test -z "$AR"; then | |
5107 | AR=`$CC -print-prog-name=ar` | |
5108 | fi | |
5109 | ||
5110 | if test -z "$OBJCOPY"; then | |
5111 | OBJCOPY=`$CC -print-prog-name=objcopy` | |
5112 | fi | |
5113 | ||
5114 | if test -z "$GPROF"; then | |
5115 | GPROF=`$CC -print-prog-name=gprof` | |
5116 | fi | |
5117 | ||
5118 | if test -z "$READELF"; then | |
5119 | READELF=`$CC -print-prog-name=readelf` | |
5120 | fi | |
5121 | ||
5122 | if test -z "$OBJDUMP"; then | |
5123 | OBJDUMP=`$CC -print-prog-name=objdump` | |
5124 | fi | |
5125 | ||
5126 | if test -z "$NM"; then | |
5127 | NM=`$CC -print-prog-name=nm` | |
5128 | fi | |
5129 | ||
5130 | ||
5131 | ||
5132 | # Accept binutils 2.39 or newer. | |
5133 | libc_cv_with_lld=no | |
5134 | case $($LD --version) in | |
5135 | "GNU gold"*) | |
5136 | # Accept gold 1.14 or higher | |
5137 | for ac_prog in $LD | |
5138 | do | |
5139 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5140 | set dummy $ac_prog; ac_word=$2 | |
5141 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5142 | printf %s "checking for $ac_word... " >&6; } | |
5143 | if test ${ac_cv_prog_LD+y} | |
5144 | then : | |
5145 | printf %s "(cached) " >&6 | |
5146 | else case e in #( | |
5147 | e) if test -n "$LD"; then | |
5148 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
5149 | else | |
5150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5151 | for as_dir in $PATH | |
5152 | do | |
5153 | IFS=$as_save_IFS | |
5154 | case $as_dir in #((( | |
5155 | '') as_dir=./ ;; | |
5156 | */) ;; | |
5157 | *) as_dir=$as_dir/ ;; | |
5158 | esac | |
5159 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5160 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
5161 | ac_cv_prog_LD="$ac_prog" | |
5162 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
5163 | break 2 | |
5164 | fi | |
5165 | done | |
5166 | done | |
5167 | IFS=$as_save_IFS | |
5168 | ||
5169 | fi ;; | |
5170 | esac | |
5171 | fi | |
5172 | LD=$ac_cv_prog_LD | |
5173 | if test -n "$LD"; then | |
5174 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5175 | printf "%s\n" "$LD" >&6; } | |
5176 | else | |
5177 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5178 | printf "%s\n" "no" >&6; } | |
5179 | fi | |
5180 | ||
5181 | ||
5182 | test -n "$LD" && break | |
5183 | done | |
5184 | ||
5185 | if test -z "$LD"; then | |
5186 | ac_verc_fail=yes | |
5187 | else | |
5188 | # Found it, now check the version. | |
5189 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5 | |
5190 | printf %s "checking version of $LD... " >&6; } | |
5191 | ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU gold.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'` | |
5192 | case $ac_prog_version in | |
5193 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
5194 | 1.1[4-9]*|1.[2-9][0-9]*|1.1[0-9][0-9]*|[2-9].*|[1-9][0-9]*) | |
5195 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
5196 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
5197 | ||
5198 | esac | |
5199 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 | |
5200 | printf "%s\n" "$ac_prog_version" >&6; } | |
5201 | fi | |
5202 | if test $ac_verc_fail = yes; then | |
5203 | LD=: critic_missing="$critic_missing GNU gold" | |
5204 | fi | |
5205 | ||
5206 | ;; | |
5207 | "LLD"*) | |
5208 | # Accept LLD 13.0.0 or higher | |
5209 | for ac_prog in $LD | |
5210 | do | |
5211 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5212 | set dummy $ac_prog; ac_word=$2 | |
5213 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5214 | printf %s "checking for $ac_word... " >&6; } | |
5215 | if test ${ac_cv_prog_LD+y} | |
5216 | then : | |
5217 | printf %s "(cached) " >&6 | |
5218 | else case e in #( | |
5219 | e) if test -n "$LD"; then | |
5220 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
5221 | else | |
5222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5223 | for as_dir in $PATH | |
5224 | do | |
5225 | IFS=$as_save_IFS | |
5226 | case $as_dir in #((( | |
5227 | '') as_dir=./ ;; | |
5228 | */) ;; | |
5229 | *) as_dir=$as_dir/ ;; | |
5230 | esac | |
5231 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5232 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
5233 | ac_cv_prog_LD="$ac_prog" | |
5234 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
5235 | break 2 | |
5236 | fi | |
5237 | done | |
5238 | done | |
5239 | IFS=$as_save_IFS | |
5240 | ||
5241 | fi ;; | |
5242 | esac | |
5243 | fi | |
5244 | LD=$ac_cv_prog_LD | |
5245 | if test -n "$LD"; then | |
5246 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5247 | printf "%s\n" "$LD" >&6; } | |
5248 | else | |
5249 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5250 | printf "%s\n" "no" >&6; } | |
5251 | fi | |
5252 | ||
5253 | ||
5254 | test -n "$LD" && break | |
5255 | done | |
5256 | ||
5257 | if test -z "$LD"; then | |
5258 | ac_verc_fail=yes | |
5259 | else | |
5260 | # Found it, now check the version. | |
5261 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5 | |
5262 | printf %s "checking version of $LD... " >&6; } | |
5263 | ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*LLD.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'` | |
5264 | case $ac_prog_version in | |
5265 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
5266 | 1[3-9].*|[2-9][0-9].*) | |
5267 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
5268 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
5269 | ||
5270 | esac | |
5271 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 | |
5272 | printf "%s\n" "$ac_prog_version" >&6; } | |
5273 | fi | |
5274 | if test $ac_verc_fail = yes; then | |
5275 | LD=: critic_missing="$critic_missing LLD" | |
5276 | fi | |
5277 | ||
5278 | libc_cv_with_lld=yes | |
5279 | ;; | |
5280 | *) | |
5281 | for ac_prog in $LD | |
5282 | do | |
5283 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5284 | set dummy $ac_prog; ac_word=$2 | |
5285 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5286 | printf %s "checking for $ac_word... " >&6; } | |
5287 | if test ${ac_cv_prog_LD+y} | |
5288 | then : | |
5289 | printf %s "(cached) " >&6 | |
5290 | else case e in #( | |
5291 | e) if test -n "$LD"; then | |
5292 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
5293 | else | |
5294 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5295 | for as_dir in $PATH | |
5296 | do | |
5297 | IFS=$as_save_IFS | |
5298 | case $as_dir in #((( | |
5299 | '') as_dir=./ ;; | |
5300 | */) ;; | |
5301 | *) as_dir=$as_dir/ ;; | |
5302 | esac | |
5303 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5304 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
5305 | ac_cv_prog_LD="$ac_prog" | |
5306 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
5307 | break 2 | |
5308 | fi | |
5309 | done | |
5310 | done | |
5311 | IFS=$as_save_IFS | |
5312 | ||
5313 | fi ;; | |
5314 | esac | |
5315 | fi | |
5316 | LD=$ac_cv_prog_LD | |
5317 | if test -n "$LD"; then | |
5318 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5319 | printf "%s\n" "$LD" >&6; } | |
5320 | else | |
5321 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5322 | printf "%s\n" "no" >&6; } | |
5323 | fi | |
5324 | ||
5325 | ||
5326 | test -n "$LD" && break | |
5327 | done | |
5328 | ||
5329 | if test -z "$LD"; then | |
5330 | ac_verc_fail=yes | |
5331 | else | |
5332 | # Found it, now check the version. | |
5333 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5 | |
5334 | printf %s "checking version of $LD... " >&6; } | |
5335 | ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'` | |
5336 | case $ac_prog_version in | |
5337 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
5338 | 2.[1-9][0-9][0-9]*|2.39*|2.[4-9][0-9]*|[3-9].*|[1-9][0-9]*) | |
5339 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
5340 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
5341 | ||
5342 | esac | |
5343 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 | |
5344 | printf "%s\n" "$ac_prog_version" >&6; } | |
5345 | fi | |
5346 | if test $ac_verc_fail = yes; then | |
5347 | LD=: critic_missing="$critic_missing GNU ld" | |
5348 | fi | |
5349 | ||
5350 | ;; | |
5351 | esac | |
5352 | config_vars="$config_vars | |
5353 | with-lld = $libc_cv_with_lld" | |
5354 | ||
5355 | # These programs are version sensitive. | |
5356 | for ac_prog in gnumake gmake make | |
5357 | do | |
5358 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5359 | set dummy $ac_prog; ac_word=$2 | |
5360 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5361 | printf %s "checking for $ac_word... " >&6; } | |
5362 | if test ${ac_cv_prog_MAKE+y} | |
5363 | then : | |
5364 | printf %s "(cached) " >&6 | |
5365 | else case e in #( | |
5366 | e) if test -n "$MAKE"; then | |
5367 | ac_cv_prog_MAKE="$MAKE" # Let the user override the test. | |
5368 | else | |
5369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5370 | for as_dir in $PATH | |
5371 | do | |
5372 | IFS=$as_save_IFS | |
5373 | case $as_dir in #((( | |
5374 | '') as_dir=./ ;; | |
5375 | */) ;; | |
5376 | *) as_dir=$as_dir/ ;; | |
5377 | esac | |
5378 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5379 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
5380 | ac_cv_prog_MAKE="$ac_prog" | |
5381 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
5382 | break 2 | |
5383 | fi | |
5384 | done | |
5385 | done | |
5386 | IFS=$as_save_IFS | |
5387 | ||
5388 | fi ;; | |
5389 | esac | |
5390 | fi | |
5391 | MAKE=$ac_cv_prog_MAKE | |
5392 | if test -n "$MAKE"; then | |
5393 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 | |
5394 | printf "%s\n" "$MAKE" >&6; } | |
5395 | else | |
5396 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5397 | printf "%s\n" "no" >&6; } | |
5398 | fi | |
5399 | ||
5400 | ||
5401 | test -n "$MAKE" && break | |
5402 | done | |
5403 | ||
5404 | if test -z "$MAKE"; then | |
5405 | ac_verc_fail=yes | |
5406 | else | |
5407 | # Found it, now check the version. | |
5408 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $MAKE" >&5 | |
5409 | printf %s "checking version of $MAKE... " >&6; } | |
5410 | ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'` | |
5411 | case $ac_prog_version in | |
5412 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
5413 | [4-9].* | [1-9][0-9]*) | |
5414 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
5415 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
5416 | ||
5417 | esac | |
5418 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 | |
5419 | printf "%s\n" "$ac_prog_version" >&6; } | |
5420 | fi | |
5421 | if test $ac_verc_fail = yes; then | |
5422 | critic_missing="$critic_missing make" | |
5423 | fi | |
5424 | ||
5425 | ||
5426 | for ac_prog in gnumsgfmt gmsgfmt msgfmt | |
5427 | do | |
5428 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5429 | set dummy $ac_prog; ac_word=$2 | |
5430 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5431 | printf %s "checking for $ac_word... " >&6; } | |
5432 | if test ${ac_cv_prog_MSGFMT+y} | |
5433 | then : | |
5434 | printf %s "(cached) " >&6 | |
5435 | else case e in #( | |
5436 | e) if test -n "$MSGFMT"; then | |
5437 | ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. | |
5438 | else | |
5439 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5440 | for as_dir in $PATH | |
5441 | do | |
5442 | IFS=$as_save_IFS | |
5443 | case $as_dir in #((( | |
5444 | '') as_dir=./ ;; | |
5445 | */) ;; | |
5446 | *) as_dir=$as_dir/ ;; | |
5447 | esac | |
5448 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5449 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
5450 | ac_cv_prog_MSGFMT="$ac_prog" | |
5451 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
5452 | break 2 | |
5453 | fi | |
5454 | done | |
5455 | done | |
5456 | IFS=$as_save_IFS | |
5457 | ||
5458 | fi ;; | |
5459 | esac | |
5460 | fi | |
5461 | MSGFMT=$ac_cv_prog_MSGFMT | |
5462 | if test -n "$MSGFMT"; then | |
5463 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 | |
5464 | printf "%s\n" "$MSGFMT" >&6; } | |
5465 | else | |
5466 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5467 | printf "%s\n" "no" >&6; } | |
5468 | fi | |
5469 | ||
5470 | ||
5471 | test -n "$MSGFMT" && break | |
5472 | done | |
5473 | ||
5474 | if test -z "$MSGFMT"; then | |
5475 | ac_verc_fail=yes | |
5476 | else | |
5477 | # Found it, now check the version. | |
5478 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $MSGFMT" >&5 | |
5479 | printf %s "checking version of $MSGFMT... " >&6; } | |
5480 | ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'` | |
5481 | case $ac_prog_version in | |
5482 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
5483 | 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*) | |
5484 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
5485 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
5486 | ||
5487 | esac | |
5488 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 | |
5489 | printf "%s\n" "$ac_prog_version" >&6; } | |
5490 | fi | |
5491 | if test $ac_verc_fail = yes; then | |
5492 | MSGFMT=: aux_missing="$aux_missing msgfmt" | |
5493 | fi | |
5494 | ||
5495 | for ac_prog in makeinfo | |
5496 | do | |
5497 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5498 | set dummy $ac_prog; ac_word=$2 | |
5499 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5500 | printf %s "checking for $ac_word... " >&6; } | |
5501 | if test ${ac_cv_prog_MAKEINFO+y} | |
5502 | then : | |
5503 | printf %s "(cached) " >&6 | |
5504 | else case e in #( | |
5505 | e) if test -n "$MAKEINFO"; then | |
5506 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
5507 | else | |
5508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5509 | for as_dir in $PATH | |
5510 | do | |
5511 | IFS=$as_save_IFS | |
5512 | case $as_dir in #((( | |
5513 | '') as_dir=./ ;; | |
5514 | */) ;; | |
5515 | *) as_dir=$as_dir/ ;; | |
5516 | esac | |
5517 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5518 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
5519 | ac_cv_prog_MAKEINFO="$ac_prog" | |
5520 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
5521 | break 2 | |
5522 | fi | |
5523 | done | |
5524 | done | |
5525 | IFS=$as_save_IFS | |
5526 | ||
5527 | fi ;; | |
5528 | esac | |
5529 | fi | |
5530 | MAKEINFO=$ac_cv_prog_MAKEINFO | |
5531 | if test -n "$MAKEINFO"; then | |
5532 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 | |
5533 | printf "%s\n" "$MAKEINFO" >&6; } | |
5534 | else | |
5535 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5536 | printf "%s\n" "no" >&6; } | |
5537 | fi | |
5538 | ||
5539 | ||
5540 | test -n "$MAKEINFO" && break | |
5541 | done | |
5542 | ||
5543 | if test -z "$MAKEINFO"; then | |
5544 | ac_verc_fail=yes | |
5545 | else | |
5546 | # Found it, now check the version. | |
5547 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $MAKEINFO" >&5 | |
5548 | printf %s "checking version of $MAKEINFO... " >&6; } | |
5549 | ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'` | |
5550 | case $ac_prog_version in | |
5551 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
5552 | 4.[7-9]*|4.[1-9][0-9]*|[5-9].*) | |
5553 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
5554 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
5555 | ||
5556 | esac | |
5557 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 | |
5558 | printf "%s\n" "$ac_prog_version" >&6; } | |
5559 | fi | |
5560 | if test $ac_verc_fail = yes; then | |
5561 | MAKEINFO=: aux_missing="$aux_missing makeinfo" | |
5562 | fi | |
5563 | ||
5564 | for ac_prog in sed | |
5565 | do | |
5566 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5567 | set dummy $ac_prog; ac_word=$2 | |
5568 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5569 | printf %s "checking for $ac_word... " >&6; } | |
5570 | if test ${ac_cv_prog_SED+y} | |
5571 | then : | |
5572 | printf %s "(cached) " >&6 | |
5573 | else case e in #( | |
5574 | e) if test -n "$SED"; then | |
5575 | ac_cv_prog_SED="$SED" # Let the user override the test. | |
5576 | else | |
5577 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5578 | for as_dir in $PATH | |
5579 | do | |
5580 | IFS=$as_save_IFS | |
5581 | case $as_dir in #((( | |
5582 | '') as_dir=./ ;; | |
5583 | */) ;; | |
5584 | *) as_dir=$as_dir/ ;; | |
5585 | esac | |
5586 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5587 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
5588 | ac_cv_prog_SED="$ac_prog" | |
5589 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
5590 | break 2 | |
5591 | fi | |
5592 | done | |
5593 | done | |
5594 | IFS=$as_save_IFS | |
5595 | ||
5596 | fi ;; | |
5597 | esac | |
5598 | fi | |
5599 | SED=$ac_cv_prog_SED | |
5600 | if test -n "$SED"; then | |
5601 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 | |
5602 | printf "%s\n" "$SED" >&6; } | |
5603 | else | |
5604 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5605 | printf "%s\n" "no" >&6; } | |
5606 | fi | |
5607 | ||
5608 | ||
5609 | test -n "$SED" && break | |
5610 | done | |
5611 | ||
5612 | if test -z "$SED"; then | |
5613 | ac_verc_fail=yes | |
5614 | else | |
5615 | # Found it, now check the version. | |
5616 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $SED" >&5 | |
5617 | printf %s "checking version of $SED... " >&6; } | |
5618 | ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed[^0-9]* \([0-9]*\.[0-9.]*\).*$/\1/p'` | |
5619 | case $ac_prog_version in | |
5620 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
5621 | 3.0[2-9]*|3.[1-9]*|[4-9]*) | |
5622 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
5623 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
5624 | ||
5625 | esac | |
5626 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 | |
5627 | printf "%s\n" "$ac_prog_version" >&6; } | |
5628 | fi | |
5629 | if test $ac_verc_fail = yes; then | |
5630 | SED=: aux_missing="$aux_missing sed" | |
5631 | fi | |
5632 | ||
5633 | for ac_prog in gawk | |
5634 | do | |
5635 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5636 | set dummy $ac_prog; ac_word=$2 | |
5637 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5638 | printf %s "checking for $ac_word... " >&6; } | |
5639 | if test ${ac_cv_prog_AWK+y} | |
5640 | then : | |
5641 | printf %s "(cached) " >&6 | |
5642 | else case e in #( | |
5643 | e) if test -n "$AWK"; then | |
5644 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
5645 | else | |
5646 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5647 | for as_dir in $PATH | |
5648 | do | |
5649 | IFS=$as_save_IFS | |
5650 | case $as_dir in #((( | |
5651 | '') as_dir=./ ;; | |
5652 | */) ;; | |
5653 | *) as_dir=$as_dir/ ;; | |
5654 | esac | |
5655 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5656 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
5657 | ac_cv_prog_AWK="$ac_prog" | |
5658 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
5659 | break 2 | |
5660 | fi | |
5661 | done | |
5662 | done | |
5663 | IFS=$as_save_IFS | |
5664 | ||
5665 | fi ;; | |
5666 | esac | |
5667 | fi | |
5668 | AWK=$ac_cv_prog_AWK | |
5669 | if test -n "$AWK"; then | |
5670 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
5671 | printf "%s\n" "$AWK" >&6; } | |
5672 | else | |
5673 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5674 | printf "%s\n" "no" >&6; } | |
5675 | fi | |
5676 | ||
5677 | ||
5678 | test -n "$AWK" && break | |
5679 | done | |
5680 | ||
5681 | if test -z "$AWK"; then | |
5682 | ac_verc_fail=yes | |
5683 | else | |
5684 | # Found it, now check the version. | |
5685 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $AWK" >&5 | |
5686 | printf %s "checking version of $AWK... " >&6; } | |
5687 | ac_prog_version=`$AWK --version 2>&1 | sed -n 's/^.*GNU Awk[^0-9]*\([0-9][0-9.]*\).*$/\1/p'` | |
5688 | case $ac_prog_version in | |
5689 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
5690 | 3.1.[2-9]*|3.[2-9]*|[4-9]*) | |
5691 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
5692 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
5693 | ||
5694 | esac | |
5695 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 | |
5696 | printf "%s\n" "$ac_prog_version" >&6; } | |
5697 | fi | |
5698 | if test $ac_verc_fail = yes; then | |
5699 | critic_missing="$critic_missing gawk" | |
5700 | fi | |
5701 | ||
5702 | for ac_prog in bison | |
5703 | do | |
5704 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5705 | set dummy $ac_prog; ac_word=$2 | |
5706 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5707 | printf %s "checking for $ac_word... " >&6; } | |
5708 | if test ${ac_cv_prog_BISON+y} | |
5709 | then : | |
5710 | printf %s "(cached) " >&6 | |
5711 | else case e in #( | |
5712 | e) if test -n "$BISON"; then | |
5713 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
5714 | else | |
5715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5716 | for as_dir in $PATH | |
5717 | do | |
5718 | IFS=$as_save_IFS | |
5719 | case $as_dir in #((( | |
5720 | '') as_dir=./ ;; | |
5721 | */) ;; | |
5722 | *) as_dir=$as_dir/ ;; | |
5723 | esac | |
5724 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5725 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
5726 | ac_cv_prog_BISON="$ac_prog" | |
5727 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
5728 | break 2 | |
5729 | fi | |
5730 | done | |
5731 | done | |
5732 | IFS=$as_save_IFS | |
5733 | ||
5734 | fi ;; | |
5735 | esac | |
5736 | fi | |
5737 | BISON=$ac_cv_prog_BISON | |
5738 | if test -n "$BISON"; then | |
5739 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 | |
5740 | printf "%s\n" "$BISON" >&6; } | |
5741 | else | |
5742 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5743 | printf "%s\n" "no" >&6; } | |
5744 | fi | |
5745 | ||
5746 | ||
5747 | test -n "$BISON" && break | |
5748 | done | |
5749 | ||
5750 | if test -z "$BISON"; then | |
5751 | ac_verc_fail=yes | |
5752 | else | |
5753 | # Found it, now check the version. | |
5754 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $BISON" >&5 | |
5755 | printf %s "checking version of $BISON... " >&6; } | |
5756 | ac_prog_version=`$BISON --version 2>&1 | sed -n 's/^.*bison (GNU Bison) \([0-9]*\.[0-9.]*\).*$/\1/p'` | |
5757 | case $ac_prog_version in | |
5758 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
5759 | 2.7*|[3-9].*|[1-9][0-9]*) | |
5760 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
5761 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
5762 | ||
5763 | esac | |
5764 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 | |
5765 | printf "%s\n" "$ac_prog_version" >&6; } | |
5766 | fi | |
5767 | if test $ac_verc_fail = yes; then | |
5768 | critic_missing="$critic_missing bison" | |
5769 | fi | |
5770 | ||
5771 | ||
5772 | # Require GCC 12.1 to build. | |
5773 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC is sufficient to build libc" >&5 | |
5774 | printf %s "checking if $CC is sufficient to build libc... " >&6; } | |
5775 | if test ${libc_cv_compiler_ok+y} | |
5776 | then : | |
5777 | printf %s "(cached) " >&6 | |
5778 | else case e in #( | |
5779 | e) | |
5780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5781 | /* end confdefs.h. */ | |
5782 | ||
5783 | int | |
5784 | main (void) | |
5785 | { | |
5786 | ||
5787 | #if !defined __GNUC__ || __GNUC__ < 12 || (__GNUC__ == 12 && __GNUC_MINOR__ < 1) | |
5788 | #error insufficient compiler | |
5789 | #endif | |
5790 | ; | |
5791 | return 0; | |
5792 | } | |
5793 | _ACEOF | |
5794 | if ac_fn_c_try_cpp "$LINENO" | |
5795 | then : | |
5796 | libc_cv_compiler_ok=yes | |
5797 | else case e in #( | |
5798 | e) libc_cv_compiler_ok=no ;; | |
5799 | esac | |
5800 | fi | |
5801 | rm -f conftest.err conftest.i conftest.$ac_ext ;; | |
5802 | esac | |
5803 | fi | |
5804 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_ok" >&5 | |
5805 | printf "%s\n" "$libc_cv_compiler_ok" >&6; } | |
5806 | if test $libc_cv_compiler_ok != yes | |
5807 | then : | |
5808 | critic_missing="$critic_missing compiler" | |
5809 | fi | |
5810 | ||
5811 | if test "x$maintainer" = "xyes"; then | |
5812 | for ac_prog in autoconf | |
5813 | do | |
5814 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5815 | set dummy $ac_prog; ac_word=$2 | |
5816 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5817 | printf %s "checking for $ac_word... " >&6; } | |
5818 | if test ${ac_cv_prog_AUTOCONF+y} | |
5819 | then : | |
5820 | printf %s "(cached) " >&6 | |
5821 | else case e in #( | |
5822 | e) if test -n "$AUTOCONF"; then | |
5823 | ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test. | |
5824 | else | |
5825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5826 | for as_dir in $PATH | |
5827 | do | |
5828 | IFS=$as_save_IFS | |
5829 | case $as_dir in #((( | |
5830 | '') as_dir=./ ;; | |
5831 | */) ;; | |
5832 | *) as_dir=$as_dir/ ;; | |
5833 | esac | |
5834 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5835 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
5836 | ac_cv_prog_AUTOCONF="$ac_prog" | |
5837 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
5838 | break 2 | |
5839 | fi | |
5840 | done | |
5841 | done | |
5842 | IFS=$as_save_IFS | |
5843 | ||
5844 | fi ;; | |
5845 | esac | |
5846 | fi | |
5847 | AUTOCONF=$ac_cv_prog_AUTOCONF | |
5848 | if test -n "$AUTOCONF"; then | |
5849 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5 | |
5850 | printf "%s\n" "$AUTOCONF" >&6; } | |
5851 | else | |
5852 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5853 | printf "%s\n" "no" >&6; } | |
5854 | fi | |
5855 | ||
5856 | ||
5857 | test -n "$AUTOCONF" && break | |
5858 | done | |
5859 | test -n "$AUTOCONF" || AUTOCONF="no" | |
5860 | ||
5861 | case "x$AUTOCONF" in | |
5862 | xno|x|x:) AUTOCONF=no ;; | |
5863 | *) | |
5864 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5 | |
5865 | printf %s "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; } | |
5866 | if test ${libc_cv_autoconf_works+y} | |
5867 | then : | |
5868 | printf %s "(cached) " >&6 | |
5869 | else case e in #( | |
5870 | e) if (cd $srcdir; $AUTOCONF $ACFLAGS configure.ac > /dev/null 2>&1); then | |
5871 | libc_cv_autoconf_works=yes | |
5872 | else | |
5873 | libc_cv_autoconf_works=no | |
5874 | fi ;; | |
5875 | esac | |
5876 | fi | |
5877 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_autoconf_works" >&5 | |
5878 | printf "%s\n" "$libc_cv_autoconf_works" >&6; } | |
5879 | test $libc_cv_autoconf_works = yes || AUTOCONF=no | |
5880 | ;; | |
5881 | esac | |
5882 | if test "x$AUTOCONF" = xno; then | |
5883 | aux_missing="$aux_missing autoconf" | |
5884 | fi | |
5885 | else | |
5886 | AUTOCONF=no | |
5887 | fi | |
5888 | ||
5889 | # Check for python3 if available, or else python. | |
5890 | for ac_prog in python3 python | |
5891 | do | |
5892 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5893 | set dummy $ac_prog; ac_word=$2 | |
5894 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5895 | printf %s "checking for $ac_word... " >&6; } | |
5896 | if test ${ac_cv_prog_PYTHON_PROG+y} | |
5897 | then : | |
5898 | printf %s "(cached) " >&6 | |
5899 | else case e in #( | |
5900 | e) if test -n "$PYTHON_PROG"; then | |
5901 | ac_cv_prog_PYTHON_PROG="$PYTHON_PROG" # Let the user override the test. | |
5902 | else | |
5903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5904 | for as_dir in $PATH | |
5905 | do | |
5906 | IFS=$as_save_IFS | |
5907 | case $as_dir in #((( | |
5908 | '') as_dir=./ ;; | |
5909 | */) ;; | |
5910 | *) as_dir=$as_dir/ ;; | |
5911 | esac | |
5912 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5913 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
5914 | ac_cv_prog_PYTHON_PROG="$ac_prog" | |
5915 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
5916 | break 2 | |
5917 | fi | |
5918 | done | |
5919 | done | |
5920 | IFS=$as_save_IFS | |
5921 | ||
5922 | fi ;; | |
5923 | esac | |
5924 | fi | |
5925 | PYTHON_PROG=$ac_cv_prog_PYTHON_PROG | |
5926 | if test -n "$PYTHON_PROG"; then | |
5927 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_PROG" >&5 | |
5928 | printf "%s\n" "$PYTHON_PROG" >&6; } | |
5929 | else | |
5930 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5931 | printf "%s\n" "no" >&6; } | |
5932 | fi | |
5933 | ||
5934 | ||
5935 | test -n "$PYTHON_PROG" && break | |
5936 | done | |
5937 | ||
5938 | if test -z "$PYTHON_PROG"; then | |
5939 | ac_verc_fail=yes | |
5940 | else | |
5941 | # Found it, now check the version. | |
5942 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $PYTHON_PROG" >&5 | |
5943 | printf %s "checking version of $PYTHON_PROG... " >&6; } | |
5944 | ac_prog_version=`$PYTHON_PROG --version 2>&1 | sed -n 's/^.*Python \([0-9][0-9.]*\).*$/\1/p'` | |
5945 | case $ac_prog_version in | |
5946 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
5947 | 3.[4-9]*|3.[1-9][0-9]*|[4-9].*|[1-9][0-9]*) | |
5948 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
5949 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
5950 | ||
5951 | esac | |
5952 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 | |
5953 | printf "%s\n" "$ac_prog_version" >&6; } | |
5954 | fi | |
5955 | if test $ac_verc_fail = yes; then | |
5956 | critic_missing="$critic_missing python" | |
5957 | fi | |
5958 | ||
5959 | PYTHON="$PYTHON_PROG -B" | |
5960 | ||
5961 | ||
5962 | test -n "$critic_missing" && as_fn_error $? " | |
5963 | *** These critical programs are missing or too old:$critic_missing | |
5964 | *** Check the INSTALL file for required versions." "$LINENO" 5 | |
5965 | ||
5966 | test -n "$aux_missing" && { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: | |
5967 | *** These auxiliary programs are missing or incompatible versions:$aux_missing | |
5968 | *** some features or tests will be disabled. | |
5969 | *** Check the INSTALL file for required versions." >&5 | |
5970 | printf "%s\n" "$as_me: WARNING: | |
5971 | *** These auxiliary programs are missing or incompatible versions:$aux_missing | |
5972 | *** some features or tests will be disabled. | |
5973 | *** Check the INSTALL file for required versions." >&2;} | |
5974 | ||
5975 | ||
5976 | # Determine whether to use fpu or nofpu sysdeps directories. | |
5977 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for use of fpu sysdeps directories" >&5 | |
5978 | printf %s "checking for use of fpu sysdeps directories... " >&6; } | |
5979 | if test ${libc_cv_with_fp+y} | |
5980 | then : | |
5981 | printf %s "(cached) " >&6 | |
5982 | else case e in #( | |
5983 | e) cat > conftest.c <<EOF | |
5984 | #if $with_fp_cond | |
5985 | int dummy; | |
5986 | #else | |
5987 | # error "no hardware floating point" | |
5988 | #endif | |
5989 | EOF | |
5990 | libc_cv_with_fp=no | |
5991 | if ${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c -o conftest.s \ | |
5992 | 1>&5 2>&5 ; then | |
5993 | libc_cv_with_fp=yes | |
5994 | fi | |
5995 | rm -f conftest* ;; | |
5996 | esac | |
5997 | fi | |
5998 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_with_fp" >&5 | |
5999 | printf "%s\n" "$libc_cv_with_fp" >&6; } | |
6000 | ||
6001 | ||
6002 | conftest_code=" | |
6003 | #ifndef __clang__ | |
6004 | #error Not Clang! | |
6005 | #endif | |
6006 | " | |
6007 | ||
6008 | ||
6009 | cat > conftest.c <<EOF | |
6010 | $conftest_code | |
6011 | EOF | |
6012 | ||
6013 | saved_CC="$CC" | |
6014 | CC="$TEST_CC" | |
6015 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang in testing" >&5 | |
6016 | printf %s "checking for clang in testing... " >&6; } | |
6017 | if test ${libc_cv_test_clang+y} | |
6018 | then : | |
6019 | printf %s "(cached) " >&6 | |
6020 | else case e in #( | |
6021 | e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c -o conftest 1>&5' | |
6022 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
6023 | (eval $ac_try) 2>&5 | |
6024 | ac_status=$? | |
6025 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6026 | test $ac_status = 0; }; } | |
6027 | then | |
6028 | libc_cv_test_clang=yes | |
6029 | else | |
6030 | libc_cv_test_clang=no | |
6031 | fi ;; | |
6032 | esac | |
6033 | fi | |
6034 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_clang" >&5 | |
6035 | printf "%s\n" "$libc_cv_test_clang" >&6; } | |
6036 | ||
6037 | CC="$saved_CC" | |
6038 | ||
6039 | rm -f conftest* | |
6040 | config_vars="$config_vars | |
6041 | have-test-clang = $libc_cv_test_clang" | |
6042 | ||
6043 | ||
6044 | cat > conftest.cc <<EOF | |
6045 | $conftest_code | |
6046 | EOF | |
6047 | ||
6048 | saved_CXX="$CXX" | |
6049 | CXX="$TEST_CXX" | |
6050 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang++ in testing" >&5 | |
6051 | printf %s "checking for clang++ in testing... " >&6; } | |
6052 | if test ${libc_cv_test_clangxx+y} | |
6053 | then : | |
6054 | printf %s "(cached) " >&6 | |
6055 | else case e in #( | |
6056 | e) if { ac_try='${CXX-c++} $CXXFLAGS $CPPFLAGS -c conftest.cc -o conftest 1>&5' | |
6057 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
6058 | (eval $ac_try) 2>&5 | |
6059 | ac_status=$? | |
6060 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6061 | test $ac_status = 0; }; } | |
6062 | then | |
6063 | libc_cv_test_clangxx=yes | |
6064 | else | |
6065 | libc_cv_test_clangxx=no | |
6066 | fi ;; | |
6067 | esac | |
6068 | fi | |
6069 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_clangxx" >&5 | |
6070 | printf "%s\n" "$libc_cv_test_clangxx" >&6; } | |
6071 | ||
6072 | CXX="$saved_CXX" | |
6073 | ||
6074 | rm -f conftest* | |
6075 | config_vars="$config_vars | |
6076 | have-test-clangxx = $libc_cv_test_clangxx" | |
6077 | ||
6078 | if test "$libc_cv_test_clang" = "yes"; then | |
6079 | conftest_code=" | |
6080 | #if __clang_major__ > 19 | |
6081 | #error clang version > 19 | |
6082 | #endif | |
6083 | " | |
6084 | ||
6085 | cat > conftest.c <<EOF | |
6086 | $conftest_code | |
6087 | EOF | |
6088 | ||
6089 | saved_CC="$CC" | |
6090 | CC="$TEST_CC" | |
6091 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang in testing" >&5 | |
6092 | printf %s "checking for clang in testing... " >&6; } | |
6093 | if test ${libc_cv_test_clang_19_or_less+y} | |
6094 | then : | |
6095 | printf %s "(cached) " >&6 | |
6096 | else case e in #( | |
6097 | e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c -o conftest 1>&5' | |
6098 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
6099 | (eval $ac_try) 2>&5 | |
6100 | ac_status=$? | |
6101 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6102 | test $ac_status = 0; }; } | |
6103 | then | |
6104 | libc_cv_test_clang_19_or_less=yes | |
6105 | else | |
6106 | libc_cv_test_clang_19_or_less=no | |
6107 | fi ;; | |
6108 | esac | |
6109 | fi | |
6110 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_clang_19_or_less" >&5 | |
6111 | printf "%s\n" "$libc_cv_test_clang_19_or_less" >&6; } | |
6112 | ||
6113 | CC="$saved_CC" | |
6114 | ||
6115 | rm -f conftest* | |
6116 | fi | |
6117 | config_vars="$config_vars | |
6118 | have-test-clang-19-or-less = $libc_cv_test_clang_19_or_less" | |
6119 | ||
6120 | ||
6121 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector" >&5 | |
6122 | printf %s "checking for -fstack-protector... " >&6; } | |
6123 | if test ${libc_cv_ssp+y} | |
6124 | then : | |
6125 | printf %s "(cached) " >&6 | |
6126 | else case e in #( | |
6127 | e) if { ac_try='${CC-cc} -Werror -fstack-protector -xc /dev/null -S -o /dev/null' | |
6128 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
6129 | (eval $ac_try) 2>&5 | |
6130 | ac_status=$? | |
6131 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6132 | test $ac_status = 0; }; } | |
6133 | then : | |
6134 | libc_cv_ssp=yes | |
6135 | else case e in #( | |
6136 | e) libc_cv_ssp=no ;; | |
6137 | esac | |
6138 | fi ;; | |
6139 | esac | |
6140 | fi | |
6141 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp" >&5 | |
6142 | printf "%s\n" "$libc_cv_ssp" >&6; } | |
6143 | if test "$TEST_CC" = "$CC"; then | |
6144 | libc_cv_test_ssp=$libc_cv_ssp | |
6145 | else | |
6146 | ||
6147 | saved_CC="$CC" | |
6148 | CC="$TEST_CC" | |
6149 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector in testing" >&5 | |
6150 | printf %s "checking for -fstack-protector in testing... " >&6; } | |
6151 | if test ${libc_cv_test_ssp+y} | |
6152 | then : | |
6153 | printf %s "(cached) " >&6 | |
6154 | else case e in #( | |
6155 | e) if { ac_try='${CC-cc} -Werror -fstack-protector -xc /dev/null -S -o /dev/null' | |
6156 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
6157 | (eval $ac_try) 2>&5 | |
6158 | ac_status=$? | |
6159 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6160 | test $ac_status = 0; }; } | |
6161 | then : | |
6162 | libc_cv_test_ssp=yes | |
6163 | else case e in #( | |
6164 | e) libc_cv_test_ssp=no ;; | |
6165 | esac | |
6166 | fi ;; | |
6167 | esac | |
6168 | fi | |
6169 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_ssp" >&5 | |
6170 | printf "%s\n" "$libc_cv_test_ssp" >&6; } | |
6171 | ||
6172 | CC="$saved_CC" | |
6173 | ||
6174 | fi | |
6175 | ||
6176 | ||
6177 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector-strong" >&5 | |
6178 | printf %s "checking for -fstack-protector-strong... " >&6; } | |
6179 | if test ${libc_cv_ssp_strong+y} | |
6180 | then : | |
6181 | printf %s "(cached) " >&6 | |
6182 | else case e in #( | |
6183 | e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-strong -xc /dev/null -S -o /dev/null' | |
6184 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
6185 | (eval $ac_try) 2>&5 | |
6186 | ac_status=$? | |
6187 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6188 | test $ac_status = 0; }; } | |
6189 | then : | |
6190 | libc_cv_ssp_strong=yes | |
6191 | else case e in #( | |
6192 | e) libc_cv_ssp_strong=no ;; | |
6193 | esac | |
6194 | fi | |
6195 | ;; | |
6196 | esac | |
6197 | fi | |
6198 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_strong" >&5 | |
6199 | printf "%s\n" "$libc_cv_ssp_strong" >&6; } | |
6200 | ||
6201 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector-all" >&5 | |
6202 | printf %s "checking for -fstack-protector-all... " >&6; } | |
6203 | if test ${libc_cv_ssp_all+y} | |
6204 | then : | |
6205 | printf %s "(cached) " >&6 | |
6206 | else case e in #( | |
6207 | e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-all -xc /dev/null -S -o /dev/null' | |
6208 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
6209 | (eval $ac_try) 2>&5 | |
6210 | ac_status=$? | |
6211 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6212 | test $ac_status = 0; }; } | |
6213 | then : | |
6214 | libc_cv_ssp_all=yes | |
6215 | else case e in #( | |
6216 | e) libc_cv_ssp_all=no ;; | |
6217 | esac | |
6218 | fi | |
6219 | ;; | |
6220 | esac | |
6221 | fi | |
6222 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_all" >&5 | |
6223 | printf "%s\n" "$libc_cv_ssp_all" >&6; } | |
6224 | ||
6225 | stack_protector= | |
6226 | no_stack_protector= | |
6227 | if test "$libc_cv_ssp" = yes; then | |
6228 | no_stack_protector="-fno-stack-protector -DSTACK_PROTECTOR_LEVEL=0" | |
6229 | printf "%s\n" "#define HAVE_CC_NO_STACK_PROTECTOR 1" >>confdefs.h | |
6230 | ||
6231 | fi | |
6232 | if test "$libc_cv_test_ssp" = yes; then | |
6233 | printf "%s\n" "#define HAVE_TEST_CC_NO_STACK_PROTECTOR 1" >>confdefs.h | |
6234 | ||
6235 | fi | |
6236 | ||
6237 | ||
6238 | if test "$enable_stack_protector" = yes && test "$libc_cv_ssp" = yes; then | |
6239 | stack_protector="-fstack-protector" | |
6240 | printf "%s\n" "#define STACK_PROTECTOR_LEVEL 1" >>confdefs.h | |
6241 | ||
6242 | elif test "$enable_stack_protector" = all && test "$libc_cv_ssp_all" = yes; then | |
6243 | stack_protector="-fstack-protector-all" | |
6244 | printf "%s\n" "#define STACK_PROTECTOR_LEVEL 2" >>confdefs.h | |
6245 | ||
6246 | elif test "$enable_stack_protector" = strong && test "$libc_cv_ssp_strong" = yes; then | |
6247 | stack_protector="-fstack-protector-strong" | |
6248 | printf "%s\n" "#define STACK_PROTECTOR_LEVEL 3" >>confdefs.h | |
6249 | ||
6250 | else | |
6251 | stack_protector="-fno-stack-protector" | |
6252 | printf "%s\n" "#define STACK_PROTECTOR_LEVEL 0" >>confdefs.h | |
6253 | ||
6254 | fi | |
6255 | ||
6256 | ||
6257 | ||
6258 | ||
6259 | if test -n "$stack_protector"; then | |
6260 | no_ssp=-fno-stack-protector | |
6261 | else | |
6262 | no_ssp= | |
6263 | ||
6264 | if test "$enable_stack_protector" != no; then | |
6265 | as_fn_error $? "--enable-stack-protector=$enable_stack_protector specified, but specified level of stack protection is not supported by the compiler." "$LINENO" 5 | |
6266 | fi | |
6267 | fi | |
6268 | ||
6269 | # For the multi-arch option we need support in the assembler & linker. | |
6270 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for assembler and linker STT_GNU_IFUNC support" >&5 | |
6271 | printf %s "checking for assembler and linker STT_GNU_IFUNC support... " >&6; } | |
6272 | if test ${libc_cv_ld_gnu_indirect_function+y} | |
6273 | then : | |
6274 | printf %s "(cached) " >&6 | |
6275 | else case e in #( | |
6276 | e) cat > conftest.S <<EOF | |
6277 | .type foo,%gnu_indirect_function | |
6278 | foo: | |
6279 | .globl _start | |
6280 | _start: | |
6281 | .globl __start | |
6282 | __start: | |
6283 | .data | |
6284 | #ifdef _LP64 | |
6285 | .quad foo | |
6286 | #else | |
6287 | .long foo | |
6288 | #endif | |
6289 | EOF | |
6290 | libc_cv_ld_gnu_indirect_function=no | |
6291 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ | |
6292 | -nostartfiles -nostdlib $no_ssp \ | |
6293 | -o conftest conftest.S 1>&5 2>&5; then | |
6294 | # Do a link to see if the backend supports IFUNC relocs. | |
6295 | $READELF -r conftest 1>&5 | |
6296 | LC_ALL=C $READELF -Wr conftest | grep -q 'IRELATIVE\|R_SPARC_JMP_IREL' && { | |
6297 | libc_cv_ld_gnu_indirect_function=yes | |
6298 | } | |
6299 | fi | |
6300 | rm -f conftest* ;; | |
6301 | esac | |
6302 | fi | |
6303 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_gnu_indirect_function" >&5 | |
6304 | printf "%s\n" "$libc_cv_ld_gnu_indirect_function" >&6; } | |
6305 | ||
6306 | # Check if gcc supports attribute ifunc as it is used in libc_ifunc macro. | |
6307 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc attribute ifunc support" >&5 | |
6308 | printf %s "checking for gcc attribute ifunc support... " >&6; } | |
6309 | if test ${libc_cv_gcc_indirect_function+y} | |
6310 | then : | |
6311 | printf %s "(cached) " >&6 | |
6312 | else case e in #( | |
6313 | e) cat > conftest.c <<EOF | |
6314 | extern int func (int); | |
6315 | int used_func (int a) | |
6316 | { | |
6317 | return a; | |
6318 | } | |
6319 | static void *resolver () | |
6320 | { | |
6321 | return &used_func; | |
6322 | } | |
6323 | extern __typeof (func) func __attribute__ ((ifunc ("resolver"))); | |
6324 | EOF | |
6325 | libc_cv_gcc_indirect_function=no | |
6326 | if ${CC-cc} -c conftest.c -o conftest.o 1>&5 \ | |
6327 | 2>&5 ; then | |
6328 | if $READELF -s conftest.o | grep IFUNC >/dev/null 2>&5; then | |
6329 | libc_cv_gcc_indirect_function=yes | |
6330 | fi | |
6331 | fi | |
6332 | rm -f conftest* ;; | |
6333 | esac | |
6334 | fi | |
6335 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_indirect_function" >&5 | |
6336 | printf "%s\n" "$libc_cv_gcc_indirect_function" >&6; } | |
6337 | ||
6338 | # Check if linker supports textrel relocation with ifunc (used on elf/tests). | |
6339 | # Note that it relies on libc_cv_ld_gnu_indirect_function test above. | |
6340 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker supports textrels along with ifunc" >&5 | |
6341 | printf %s "checking whether the linker supports textrels along with ifunc... " >&6; } | |
6342 | if test ${libc_cv_textrel_ifunc+y} | |
6343 | then : | |
6344 | printf %s "(cached) " >&6 | |
6345 | else case e in #( | |
6346 | e) cat > conftest.S <<EOF | |
6347 | .type foo,%gnu_indirect_function | |
6348 | foo: | |
6349 | .globl _start | |
6350 | _start: | |
6351 | .globl __start | |
6352 | __start: | |
6353 | .data | |
6354 | #ifdef _LP64 | |
6355 | .quad foo | |
6356 | #else | |
6357 | .long foo | |
6358 | #endif | |
6359 | .text | |
6360 | .globl address | |
6361 | address: | |
6362 | #ifdef _LP64 | |
6363 | .quad address | |
6364 | #else | |
6365 | .long address | |
6366 | #endif | |
6367 | EOF | |
6368 | libc_cv_textrel_ifunc=no | |
6369 | if test $libc_cv_ld_gnu_indirect_function = yes; then | |
6370 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostartfiles -nostdlib $no_ssp -pie -o conftest conftest.S' | |
6371 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
6372 | (eval $ac_try) 2>&5 | |
6373 | ac_status=$? | |
6374 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6375 | test $ac_status = 0; }; }; then | |
6376 | libc_cv_textrel_ifunc=yes | |
6377 | fi | |
6378 | fi | |
6379 | rm -f conftest* ;; | |
6380 | esac | |
6381 | fi | |
6382 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_textrel_ifunc" >&5 | |
6383 | printf "%s\n" "$libc_cv_textrel_ifunc" >&6; } | |
6384 | ||
6385 | ||
6386 | # Check if CC supports attribute retain as it is used in attribute_used_retain macro. | |
6387 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU attribute retain support" >&5 | |
6388 | printf %s "checking for GNU attribute retain support... " >&6; } | |
6389 | if test ${libc_cv_gnu_retain+y} | |
6390 | then : | |
6391 | printf %s "(cached) " >&6 | |
6392 | else case e in #( | |
6393 | e) cat > conftest.c <<EOF | |
6394 | static int var __attribute__ ((used, retain, section ("__libc_atexit"))); | |
6395 | EOF | |
6396 | libc_cv_gnu_retain=no | |
6397 | if ${CC-cc} -Werror -c conftest.c -o /dev/null 1>&5 \ | |
6398 | 2>&5 ; then | |
6399 | libc_cv_gnu_retain=yes | |
6400 | fi | |
6401 | rm -f conftest* ;; | |
6402 | esac | |
6403 | fi | |
6404 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gnu_retain" >&5 | |
6405 | printf "%s\n" "$libc_cv_gnu_retain" >&6; } | |
6406 | if test $libc_cv_gnu_retain = yes; then | |
6407 | printf "%s\n" "#define HAVE_GNU_RETAIN 1" >>confdefs.h | |
6408 | ||
6409 | fi | |
6410 | config_vars="$config_vars | |
6411 | have-gnu-retain = $libc_cv_gnu_retain" | |
6412 | ||
6413 | # Check if gcc warns about alias for function with incompatible types. | |
6414 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler warns about alias for function with incompatible types" >&5 | |
6415 | printf %s "checking if compiler warns about alias for function with incompatible types... " >&6; } | |
6416 | if test ${libc_cv_gcc_incompatible_alias+y} | |
6417 | then : | |
6418 | printf %s "(cached) " >&6 | |
6419 | else case e in #( | |
6420 | e) cat > conftest.c <<EOF | |
6421 | int __redirect_foo (const void *s, int c); | |
6422 | ||
6423 | __typeof (__redirect_foo) *foo_impl (void) __asm__ ("foo"); | |
6424 | __typeof (__redirect_foo) *foo_impl (void) | |
6425 | { | |
6426 | return 0; | |
6427 | } | |
6428 | ||
6429 | extern __typeof (__redirect_foo) foo_alias __attribute__ ((alias ("foo"))); | |
6430 | EOF | |
6431 | libc_cv_gcc_incompatible_alias=yes | |
6432 | if ${CC-cc} -Werror -c conftest.c -o conftest.o 1>&5 2>&5 ; then | |
6433 | libc_cv_gcc_incompatible_alias=no | |
6434 | fi | |
6435 | rm -f conftest* ;; | |
6436 | esac | |
6437 | fi | |
6438 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_incompatible_alias" >&5 | |
6439 | printf "%s\n" "$libc_cv_gcc_incompatible_alias" >&6; } | |
6440 | ||
6441 | if test x"$libc_cv_ld_gnu_indirect_function" != xyes; then | |
6442 | if test x"$multi_arch" = xyes; then | |
6443 | as_fn_error $? "--enable-multi-arch support requires assembler and linker support" "$LINENO" 5 | |
6444 | else | |
6445 | multi_arch=no | |
6446 | fi | |
6447 | fi | |
6448 | if test x"$libc_cv_gcc_indirect_function" != xyes; then | |
6449 | # GCC 8+ emits a warning for alias with incompatible types and it might | |
6450 | # fail to build ifunc resolvers aliases to either weak or internal | |
6451 | # symbols. Disables multiarch build in this case. | |
6452 | if test x"$libc_cv_gcc_incompatible_alias" = xyes; then | |
6453 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: gcc emits a warning for alias between functions of incompatible types" >&5 | |
6454 | printf "%s\n" "$as_me: WARNING: gcc emits a warning for alias between functions of incompatible types" >&2;} | |
6455 | if test x"$multi_arch" = xyes; then | |
6456 | as_fn_error $? "--enable-multi-arch support requires a gcc with gnu-indirect-function support" "$LINENO" 5 | |
6457 | fi | |
6458 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Multi-arch is disabled." >&5 | |
6459 | printf "%s\n" "$as_me: WARNING: Multi-arch is disabled." >&2;} | |
6460 | multi_arch=no | |
6461 | elif test x"$multi_arch" = xyes; then | |
6462 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support. | |
6463 | Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&5 | |
6464 | printf "%s\n" "$as_me: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support. | |
6465 | Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&2;} | |
6466 | fi | |
6467 | fi | |
6468 | multi_arch_d= | |
6469 | if test x"$multi_arch" != xno; then | |
6470 | multi_arch_d=/multiarch | |
6471 | fi | |
6472 | ||
6473 | # Compute the list of sysdep directories for this configuration. | |
6474 | # This can take a while to compute. | |
6475 | sysdep_dir=$srcdir/sysdeps | |
6476 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sysdep dirs" >&5 | |
6477 | printf %s "checking sysdep dirs... " >&6; } | |
6478 | # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1. | |
6479 | os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`" | |
6480 | ||
6481 | test "x$base_os" != x || case "$os" in | |
6482 | gnu*) | |
6483 | base_os=mach/hurd ;; | |
6484 | linux*) | |
6485 | base_os=unix/sysv ;; | |
6486 | esac | |
6487 | ||
6488 | # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos. | |
6489 | tail=$os | |
6490 | ostry=$os | |
6491 | while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do | |
6492 | ostry="$ostry /$o" | |
6493 | tail=$o | |
6494 | done | |
6495 | o=`echo $tail | sed 's/[0-9]*$//'` | |
6496 | if test $o != $tail; then | |
6497 | ostry="$ostry /$o" | |
6498 | fi | |
6499 | # For linux-gnu, try linux-gnu, then linux. | |
6500 | o=`echo $tail | sed 's/-.*$//'` | |
6501 | if test $o != $tail; then | |
6502 | ostry="$ostry /$o" | |
6503 | fi | |
6504 | ||
6505 | # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix. | |
6506 | base= | |
6507 | tail=$base_os | |
6508 | while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do | |
6509 | set $b | |
6510 | base="$base /$1" | |
6511 | tail="$2" | |
6512 | done | |
6513 | ||
6514 | # For sparc/sparc32, try sparc/sparc32 and then sparc. | |
6515 | mach= | |
6516 | tail=$machine${submachine:+/$submachine} | |
6517 | while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do | |
6518 | set $m | |
6519 | # Prepend the machine's FPU directory unless the architecture specific | |
6520 | # preconfigure disables it. | |
6521 | if test "$libc_cv_with_fp" = yes; then | |
6522 | maybe_fpu=/fpu | |
6523 | else | |
6524 | maybe_fpu=/nofpu | |
6525 | fi | |
6526 | # For each machine term, try it with and then without /multiarch. | |
6527 | for try_fpu in $maybe_fpu ''; do | |
6528 | for try_multi in $multi_arch_d ''; do | |
6529 | mach="$mach /$1$try_fpu$try_multi" | |
6530 | done | |
6531 | done | |
6532 | tail="$2" | |
6533 | done | |
6534 | ||
6535 | ||
6536 | # Find what sysdep directories exist. | |
6537 | sysnames= | |
6538 | for b in $base ''; do | |
6539 | for m0 in $mach ''; do | |
6540 | for v in /$vendor ''; do | |
6541 | test "$v" = / && continue | |
6542 | for o in /$ostry ''; do | |
6543 | test "$o" = / && continue | |
6544 | for m in $mach ''; do | |
6545 | try_suffix="$m0$b$v$o$m" | |
6546 | if test -n "$try_suffix"; then | |
6547 | try_srcdir="${srcdir}/" | |
6548 | try="sysdeps$try_suffix" | |
6549 | test -n "$enable_debug_configure" && | |
6550 | echo "$0 DEBUG: try $try" >&2 | |
6551 | if test -d "$try_srcdir$try"; then | |
6552 | sysnames="$sysnames $try" | |
6553 | { test -n "$o" || test -n "$b"; } && os_used=t | |
6554 | { test -n "$m" || test -n "$m0"; } && machine_used=t | |
6555 | case x${m0:-$m} in | |
6556 | x*/$submachine) submachine_used=t ;; | |
6557 | esac | |
6558 | fi | |
6559 | fi | |
6560 | done | |
6561 | done | |
6562 | done | |
6563 | done | |
6564 | done | |
6565 | ||
6566 | # If the assembler supports gnu_indirect_function symbol type and the | |
6567 | # architecture supports multi-arch, we enable multi-arch by default. | |
6568 | case $sysnames in | |
6569 | *"$multi_arch_d"*) | |
6570 | ;; | |
6571 | *) | |
6572 | test x"$multi_arch" = xdefault && multi_arch=no | |
6573 | ;; | |
6574 | esac | |
6575 | if test x"$multi_arch" != xno; then | |
6576 | printf "%s\n" "#define USE_MULTIARCH 1" >>confdefs.h | |
6577 | ||
6578 | fi | |
6579 | ||
6580 | ||
6581 | if test -z "$os_used" && test "$os" != none; then | |
6582 | as_fn_error $? "Operating system $os is not supported." "$LINENO" 5 | |
6583 | fi | |
6584 | if test -z "$machine_used" && test "$machine" != none; then | |
6585 | as_fn_error $? "The $machine is not supported." "$LINENO" 5 | |
6586 | fi | |
6587 | if test -z "$submachine_used" && test -n "$submachine"; then | |
6588 | as_fn_error $? "The $submachine subspecies of $host_cpu is not supported." "$LINENO" 5 | |
6589 | fi | |
6590 | ||
6591 | ||
6592 | # We have now validated the configuration. | |
6593 | ||
6594 | # Expand the list of system names into a full list of directories | |
6595 | # from each element's parent name and Implies file (if present). | |
6596 | set $sysnames | |
6597 | names= | |
6598 | while test $# -gt 0; do | |
6599 | name=$1 | |
6600 | shift | |
6601 | ||
6602 | case " $names " in *" $name "*) | |
6603 | # Already in the list. | |
6604 | continue | |
6605 | esac | |
6606 | ||
6607 | # Report each name as we discover it, so there is no long pause in output. | |
6608 | echo $ECHO_N "$name $ECHO_C" >&6 | |
6609 | ||
6610 | name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'` | |
6611 | ||
6612 | case $name in | |
6613 | /*) xsrcdir= ;; | |
6614 | *) xsrcdir=$srcdir/ ;; | |
6615 | esac | |
6616 | test -n "$enable_debug_configure" && | |
6617 | echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2 | |
6618 | ||
6619 | for implies_file in Implies Implies-before Implies-after; do | |
6620 | implies_type=`echo $implies_file | sed s/-/_/` | |
6621 | eval ${implies_type}= | |
6622 | if test -f $xsrcdir$name/$implies_file; then | |
6623 | # Collect more names from the `Implies' file (removing comments). | |
6624 | implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/$implies_file`" | |
6625 | for x in $implied_candidate; do | |
6626 | found=no | |
6627 | if test -d $xsrcdir$name_base/$x; then | |
6628 | eval "${implies_type}=\"\$${implies_type} \$name_base/\$x\"" | |
6629 | found=yes | |
6630 | fi | |
6631 | try="sysdeps/$x" | |
6632 | try_srcdir=$srcdir/ | |
6633 | test -n "$enable_debug_configure" && | |
6634 | echo "DEBUG: $name $implies_file $x try() {$try_srcdir}$try" >&2 | |
6635 | if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try; | |
6636 | then | |
6637 | eval "${implies_type}=\"\$${implies_type} \$try\"" | |
6638 | found=yes | |
6639 | fi | |
6640 | if test $found = no; then | |
6641 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $name/$implies_file specifies nonexistent $x" >&5 | |
6642 | printf "%s\n" "$as_me: WARNING: $name/$implies_file specifies nonexistent $x" >&2;} | |
6643 | fi | |
6644 | done | |
6645 | fi | |
6646 | done | |
6647 | ||
6648 | # Add NAME to the list of names. | |
6649 | names="$names $name" | |
6650 | ||
6651 | # Find the parent of NAME, using the empty string if it has none. | |
6652 | parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`" | |
6653 | ||
6654 | test -n "$enable_debug_configure" && | |
6655 | echo "DEBUG: $name Implies='$Implies' rest='$*' parent='$parent' \ | |
6656 | Implies_before='$Implies_before' Implies_after='$Implies_after'" >&2 | |
6657 | ||
6658 | # Add the names implied by NAME, and NAME's parent (if it has one), to | |
6659 | # the list of names to be processed (the argument list). We prepend the | |
6660 | # implied names to the list and append the parent. We want implied | |
6661 | # directories to come before further directories inferred from the | |
6662 | # configuration components; this ensures that for sysv4, unix/common | |
6663 | # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*) | |
6664 | # after sysv4). | |
6665 | sysnames="`echo $Implies $* $Implies_before $parent $Implies_after`" | |
6666 | test -n "$sysnames" && set $sysnames | |
6667 | done | |
6668 | ||
6669 | # Add the default directories. | |
6670 | default_sysnames="sysdeps/generic" | |
6671 | sysnames="$names $default_sysnames" | |
6672 | ||
6673 | # The other names were emitted during the scan. | |
6674 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $default_sysnames" >&5 | |
6675 | printf "%s\n" "$default_sysnames" >&6; } | |
6676 | ||
6677 | # if using special system headers, find out the compiler's sekrit | |
6678 | # header directory and add that to the list. NOTE: Only does the right | |
6679 | # thing on a system that doesn't need fixincludes. (Not presently a problem.) | |
6680 | if test -n "$sysheaders"; then | |
6681 | SYSINCLUDES=-nostdinc | |
6682 | for d in include include-fixed; do | |
6683 | i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" && | |
6684 | SYSINCLUDES="$SYSINCLUDES -isystem $i" | |
6685 | done | |
6686 | SYSINCLUDES="$SYSINCLUDES \ | |
6687 | -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`" | |
6688 | if test -n "$CXX"; then | |
6689 | CXX_SYSINCLUDES= | |
6690 | for cxxheaders in `$CXX -v -S -x c++ /dev/null -o /dev/null 2>&1 \ | |
6691 | | sed -n -e '1,/#include/d' -e 's/^ \(\/.*\/[cg]++\)/\1/p'`; do | |
6692 | test "x$cxxheaders" != x && | |
6693 | CXX_SYSINCLUDES="$CXX_SYSINCLUDES -isystem $cxxheaders" | |
6694 | done | |
6695 | fi | |
6696 | fi | |
6697 | ||
6698 | ||
6699 | ||
6700 | # Obtain some C++ header file paths. This is used to make a local | |
6701 | # copy of those headers in Makerules. | |
6702 | if test -n "$TEST_CXX"; then | |
6703 | saved_CXX="$CXX" | |
6704 | CXX="$TEST_CXX" | |
6705 | find_cxx_header () { | |
6706 | echo "#include <$1>" | $CXX -H -fsyntax-only -x c++ - 2>&1 \ | |
6707 | | $AWK '$1 == "."{print $2}' | |
6708 | } | |
6709 | CXX_CSTDLIB_HEADER="$(find_cxx_header cstdlib)" | |
6710 | CXX_CMATH_HEADER="$(find_cxx_header cmath)" | |
6711 | CXX_BITS_STD_ABS_H="$(find_cxx_header bits/std_abs.h)" | |
6712 | CXX="$saved_CXX" | |
6713 | fi | |
6714 | ||
6715 | ||
6716 | ||
6717 | ||
6718 | # Test if LD_LIBRARY_PATH contains the notation for the current directory | |
6719 | # since this would lead to problems installing/building glibc. | |
6720 | # LD_LIBRARY_PATH contains the current directory if one of the following | |
6721 | # is true: | |
6722 | # - one of the terminals (":" and ";") is the first or last sign | |
6723 | # - two terminals occur directly after each other | |
6724 | # - the path contains an element with a dot in it | |
6725 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LD_LIBRARY_PATH variable" >&5 | |
6726 | printf %s "checking LD_LIBRARY_PATH variable... " >&6; } | |
6727 | case ${LD_LIBRARY_PATH} in | |
6728 | [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) | |
6729 | ld_library_path_setting="contains current directory" | |
6730 | ;; | |
6731 | *) | |
6732 | ld_library_path_setting="ok" | |
6733 | ;; | |
6734 | esac | |
6735 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_library_path_setting" >&5 | |
6736 | printf "%s\n" "$ld_library_path_setting" >&6; } | |
6737 | if test "$ld_library_path_setting" != "ok"; then | |
6738 | as_fn_error $? " | |
6739 | *** LD_LIBRARY_PATH shouldn't contain the current directory when | |
6740 | *** building glibc. Please change the environment variable | |
6741 | *** and run configure again." "$LINENO" 5 | |
6742 | fi | |
6743 | ||
6744 | # Extract the first word of "bash", so it can be a program name with args. | |
6745 | set dummy bash; ac_word=$2 | |
6746 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6747 | printf %s "checking for $ac_word... " >&6; } | |
6748 | if test ${ac_cv_path_BASH_SHELL+y} | |
6749 | then : | |
6750 | printf %s "(cached) " >&6 | |
6751 | else case e in #( | |
6752 | e) case $BASH_SHELL in | |
6753 | [\\/]* | ?:[\\/]*) | |
6754 | ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path. | |
6755 | ;; | |
6756 | *) | |
6757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6758 | for as_dir in $PATH | |
6759 | do | |
6760 | IFS=$as_save_IFS | |
6761 | case $as_dir in #((( | |
6762 | '') as_dir=./ ;; | |
6763 | */) ;; | |
6764 | *) as_dir=$as_dir/ ;; | |
6765 | esac | |
6766 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6767 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
6768 | ac_cv_path_BASH_SHELL="$as_dir$ac_word$ac_exec_ext" | |
6769 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
6770 | break 2 | |
6771 | fi | |
6772 | done | |
6773 | done | |
6774 | IFS=$as_save_IFS | |
6775 | ||
6776 | test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no" | |
6777 | ;; | |
6778 | esac ;; | |
6779 | esac | |
6780 | fi | |
6781 | BASH_SHELL=$ac_cv_path_BASH_SHELL | |
6782 | if test -n "$BASH_SHELL"; then | |
6783 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BASH_SHELL" >&5 | |
6784 | printf "%s\n" "$BASH_SHELL" >&6; } | |
6785 | else | |
6786 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6787 | printf "%s\n" "no" >&6; } | |
6788 | fi | |
6789 | ||
6790 | ||
6791 | ||
6792 | # Extract the first word of "perl", so it can be a program name with args. | |
6793 | set dummy perl; ac_word=$2 | |
6794 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6795 | printf %s "checking for $ac_word... " >&6; } | |
6796 | if test ${ac_cv_path_PERL+y} | |
6797 | then : | |
6798 | printf %s "(cached) " >&6 | |
6799 | else case e in #( | |
6800 | e) case $PERL in | |
6801 | [\\/]* | ?:[\\/]*) | |
6802 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | |
6803 | ;; | |
6804 | *) | |
6805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6806 | for as_dir in $PATH | |
6807 | do | |
6808 | IFS=$as_save_IFS | |
6809 | case $as_dir in #((( | |
6810 | '') as_dir=./ ;; | |
6811 | */) ;; | |
6812 | *) as_dir=$as_dir/ ;; | |
6813 | esac | |
6814 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6815 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
6816 | ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext" | |
6817 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
6818 | break 2 | |
6819 | fi | |
6820 | done | |
6821 | done | |
6822 | IFS=$as_save_IFS | |
6823 | ||
6824 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no" | |
6825 | ;; | |
6826 | esac ;; | |
6827 | esac | |
6828 | fi | |
6829 | PERL=$ac_cv_path_PERL | |
6830 | if test -n "$PERL"; then | |
6831 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 | |
6832 | printf "%s\n" "$PERL" >&6; } | |
6833 | else | |
6834 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6835 | printf "%s\n" "no" >&6; } | |
6836 | fi | |
6837 | ||
6838 | ||
6839 | if test "$PERL" != no && | |
6840 | (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then | |
6841 | PERL=no | |
6842 | fi | |
6843 | # Extract the first word of "install-info", so it can be a program name with args. | |
6844 | set dummy install-info; ac_word=$2 | |
6845 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6846 | printf %s "checking for $ac_word... " >&6; } | |
6847 | if test ${ac_cv_path_INSTALL_INFO+y} | |
6848 | then : | |
6849 | printf %s "(cached) " >&6 | |
6850 | else case e in #( | |
6851 | e) case $INSTALL_INFO in | |
6852 | [\\/]* | ?:[\\/]*) | |
6853 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | |
6854 | ;; | |
6855 | *) | |
6856 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6857 | as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin" | |
6858 | for as_dir in $as_dummy | |
6859 | do | |
6860 | IFS=$as_save_IFS | |
6861 | case $as_dir in #((( | |
6862 | '') as_dir=./ ;; | |
6863 | */) ;; | |
6864 | *) as_dir=$as_dir/ ;; | |
6865 | esac | |
6866 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6867 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
6868 | ac_cv_path_INSTALL_INFO="$as_dir$ac_word$ac_exec_ext" | |
6869 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
6870 | break 2 | |
6871 | fi | |
6872 | done | |
6873 | done | |
6874 | IFS=$as_save_IFS | |
6875 | ||
6876 | test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no" | |
6877 | ;; | |
6878 | esac ;; | |
6879 | esac | |
6880 | fi | |
6881 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO | |
6882 | if test -n "$INSTALL_INFO"; then | |
6883 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 | |
6884 | printf "%s\n" "$INSTALL_INFO" >&6; } | |
6885 | else | |
6886 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6887 | printf "%s\n" "no" >&6; } | |
6888 | fi | |
6889 | ||
6890 | ||
6891 | ||
6892 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for .set assembler directive" >&5 | |
6893 | printf %s "checking for .set assembler directive... " >&6; } | |
6894 | if test ${libc_cv_asm_set_directive+y} | |
6895 | then : | |
6896 | printf %s "(cached) " >&6 | |
6897 | else case e in #( | |
6898 | e) cat > conftest.s <<EOF | |
6899 | .text | |
6900 | foo: | |
6901 | .set glibc_conftest_frobozz,foo | |
6902 | .globl glibc_conftest_frobozz | |
6903 | EOF | |
6904 | # The alpha-dec-osf1 assembler gives only a warning for `.set' | |
6905 | # (but it doesn't work), so we must do a linking check to be sure. | |
6906 | cat > conftest1.c <<\EOF | |
6907 | extern int glibc_conftest_frobozz; | |
6908 | void _start() { glibc_conftest_frobozz = 1; } | |
6909 | EOF | |
6910 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ | |
6911 | -nostartfiles -nostdlib $no_ssp \ | |
6912 | -o conftest conftest.s conftest1.c 1>&5 2>&5; then | |
6913 | libc_cv_asm_set_directive=yes | |
6914 | else | |
6915 | libc_cv_asm_set_directive=no | |
6916 | fi | |
6917 | rm -f conftest* ;; | |
6918 | esac | |
6919 | fi | |
6920 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_set_directive" >&5 | |
6921 | printf "%s\n" "$libc_cv_asm_set_directive" >&6; } | |
6922 | if test $libc_cv_asm_set_directive = yes; then | |
6923 | printf "%s\n" "#define HAVE_ASM_SET_DIRECTIVE 1" >>confdefs.h | |
6924 | ||
6925 | fi | |
6926 | ||
6927 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking linker support for protected data symbol" >&5 | |
6928 | printf %s "checking linker support for protected data symbol... " >&6; } | |
6929 | if test ${libc_cv_protected_data+y} | |
6930 | then : | |
6931 | printf %s "(cached) " >&6 | |
6932 | else case e in #( | |
6933 | e) cat > conftest.c <<EOF | |
6934 | int bar __attribute__ ((visibility ("protected"))) = 1; | |
6935 | EOF | |
6936 | libc_cv_protected_data=no | |
6937 | if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp -fPIC -shared conftest.c -o conftest.so' | |
6938 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
6939 | (eval $ac_try) 2>&5 | |
6940 | ac_status=$? | |
6941 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6942 | test $ac_status = 0; }; }; then | |
6943 | cat > conftest.c <<EOF | |
6944 | extern int bar; | |
6945 | int main (void) { return bar; } | |
6946 | EOF | |
6947 | if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp conftest.c -o conftest conftest.so' | |
6948 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
6949 | (eval $ac_try) 2>&5 | |
6950 | ac_status=$? | |
6951 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6952 | test $ac_status = 0; }; }; then | |
6953 | libc_cv_protected_data=yes | |
6954 | fi | |
6955 | fi | |
6956 | rm -f conftest.* | |
6957 | ;; | |
6958 | esac | |
6959 | fi | |
6960 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_protected_data" >&5 | |
6961 | printf "%s\n" "$libc_cv_protected_data" >&6; } | |
6962 | ||
6963 | ||
6964 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking linker support for INSERT in linker script" >&5 | |
6965 | printf %s "checking linker support for INSERT in linker script... " >&6; } | |
6966 | if test ${libc_cv_insert+y} | |
6967 | then : | |
6968 | printf %s "(cached) " >&6 | |
6969 | else case e in #( | |
6970 | e) cat > conftest.c <<EOF | |
6971 | int __attribute__ ((section(".bar"))) bar = 0x12345678; | |
6972 | int test (void) { return bar; } | |
6973 | EOF | |
6974 | cat > conftest.t <<EOF | |
6975 | SECTIONS | |
6976 | { | |
6977 | .bar : { *(.bar) } | |
6978 | } | |
6979 | INSERT AFTER .rela.dyn; | |
6980 | EOF | |
6981 | libc_cv_insert=no | |
6982 | if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp -fPIC -shared conftest.c -Wl,-T,conftest.t -o conftest.so' | |
6983 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
6984 | (eval $ac_try) 2>&5 | |
6985 | ac_status=$? | |
6986 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6987 | test $ac_status = 0; }; }; then | |
6988 | libc_cv_insert=yes | |
6989 | fi | |
6990 | rm -f conftest.* | |
6991 | ;; | |
6992 | esac | |
6993 | fi | |
6994 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_insert" >&5 | |
6995 | printf "%s\n" "$libc_cv_insert" >&6; } | |
6996 | ||
6997 | ||
6998 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((alias()))" >&5 | |
6999 | printf %s "checking for broken __attribute__((alias()))... " >&6; } | |
7000 | if test ${libc_cv_broken_alias_attribute+y} | |
7001 | then : | |
7002 | printf %s "(cached) " >&6 | |
7003 | else case e in #( | |
7004 | e) cat > conftest.c <<EOF | |
7005 | extern int foo (int x) __asm ("xyzzy"); | |
7006 | int bar (int x) { return x; } | |
7007 | extern __typeof (bar) foo __attribute ((weak, alias ("bar"))); | |
7008 | extern int dfoo; | |
7009 | extern __typeof (dfoo) dfoo __asm ("abccb"); | |
7010 | int dfoo = 1; | |
7011 | EOF | |
7012 | libc_cv_broken_alias_attribute=yes | |
7013 | if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5' | |
7014 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
7015 | (eval $ac_try) 2>&5 | |
7016 | ac_status=$? | |
7017 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7018 | test $ac_status = 0; }; }; then | |
7019 | if grep 'xyzzy' conftest.s >/dev/null && | |
7020 | grep 'abccb' conftest.s >/dev/null; then | |
7021 | libc_cv_broken_alias_attribute=no | |
7022 | fi | |
7023 | fi | |
7024 | rm -f conftest.c conftest.s | |
7025 | ;; | |
7026 | esac | |
7027 | fi | |
7028 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_alias_attribute" >&5 | |
7029 | printf "%s\n" "$libc_cv_broken_alias_attribute" >&6; } | |
7030 | if test $libc_cv_broken_alias_attribute = yes; then | |
7031 | as_fn_error $? "working alias attribute support required" "$LINENO" 5 | |
7032 | fi | |
7033 | ||
7034 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to put _rtld_local into .sdata section" >&5 | |
7035 | printf %s "checking whether to put _rtld_local into .sdata section... " >&6; } | |
7036 | if test ${libc_cv_have_sdata_section+y} | |
7037 | then : | |
7038 | printf %s "(cached) " >&6 | |
7039 | else case e in #( | |
7040 | e) echo "int i;" > conftest.c | |
7041 | libc_cv_have_sdata_section=no | |
7042 | if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \ | |
7043 | | grep '\.sdata' >/dev/null; then | |
7044 | libc_cv_have_sdata_section=yes | |
7045 | fi | |
7046 | rm -f conftest.c conftest.so | |
7047 | ;; | |
7048 | esac | |
7049 | fi | |
7050 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_sdata_section" >&5 | |
7051 | printf "%s\n" "$libc_cv_have_sdata_section" >&6; } | |
7052 | if test $libc_cv_have_sdata_section = yes; then | |
7053 | printf "%s\n" "#define HAVE_SDATA_SECTION 1" >>confdefs.h | |
7054 | ||
7055 | fi | |
7056 | ||
7057 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libunwind-support in compiler" >&5 | |
7058 | printf %s "checking for libunwind-support in compiler... " >&6; } | |
7059 | if test ${libc_cv_cc_with_libunwind+y} | |
7060 | then : | |
7061 | printf %s "(cached) " >&6 | |
7062 | else case e in #( | |
7063 | e) | |
7064 | cat > conftest.c <<EOF | |
7065 | int main (void) { return 0; } | |
7066 | EOF | |
7067 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \ | |
7068 | conftest.c -v 2>&1 >/dev/null | grep ' -lunwind ' >/dev/null; then | |
7069 | libc_cv_cc_with_libunwind=yes | |
7070 | else | |
7071 | libc_cv_cc_with_libunwind=no | |
7072 | fi | |
7073 | rm -f conftest* ;; | |
7074 | esac | |
7075 | fi | |
7076 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_with_libunwind" >&5 | |
7077 | printf "%s\n" "$libc_cv_cc_with_libunwind" >&6; } | |
7078 | ||
7079 | if test $libc_cv_cc_with_libunwind = yes; then | |
7080 | printf "%s\n" "#define HAVE_CC_WITH_LIBUNWIND 1" >>confdefs.h | |
7081 | ||
7082 | fi | |
7083 | ||
7084 | ASFLAGS_config= | |
7085 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether --noexecstack is desirable for .S files" >&5 | |
7086 | printf %s "checking whether --noexecstack is desirable for .S files... " >&6; } | |
7087 | if test ${libc_cv_as_noexecstack+y} | |
7088 | then : | |
7089 | printf %s "(cached) " >&6 | |
7090 | else case e in #( | |
7091 | e) cat > conftest.c <<EOF | |
7092 | void foo (void) { } | |
7093 | EOF | |
7094 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS | |
7095 | -S -o conftest.s conftest.c 1>&5' | |
7096 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
7097 | (eval $ac_try) 2>&5 | |
7098 | ac_status=$? | |
7099 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7100 | test $ac_status = 0; }; } \ | |
7101 | && grep .note.GNU-stack conftest.s >/dev/null \ | |
7102 | && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack | |
7103 | -c -o conftest.o conftest.s 1>&5' | |
7104 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
7105 | (eval $ac_try) 2>&5 | |
7106 | ac_status=$? | |
7107 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7108 | test $ac_status = 0; }; } | |
7109 | then | |
7110 | libc_cv_as_noexecstack=yes | |
7111 | else | |
7112 | libc_cv_as_noexecstack=no | |
7113 | fi | |
7114 | rm -f conftest* ;; | |
7115 | esac | |
7116 | fi | |
7117 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_noexecstack" >&5 | |
7118 | printf "%s\n" "$libc_cv_as_noexecstack" >&6; } | |
7119 | if test $libc_cv_as_noexecstack = yes; then | |
7120 | ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack" | |
7121 | fi | |
7122 | ||
7123 | ||
7124 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports --no-error-execstack" >&5 | |
7125 | printf %s "checking for linker that supports --no-error-execstack... " >&6; } | |
7126 | libc_linker_feature=no | |
7127 | cat > conftest.c <<EOF | |
7128 | int _start (void) { return 42; } | |
7129 | EOF | |
7130 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp | |
7131 | -Wl,--no-error-execstack -nostdlib -nostartfiles | |
7132 | -fPIC -shared -o conftest.so conftest.c | |
7133 | 1>&5' | |
7134 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
7135 | (eval $ac_try) 2>&5 | |
7136 | ac_status=$? | |
7137 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7138 | test $ac_status = 0; }; } | |
7139 | then | |
7140 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--no-error-execstack -nostdlib \ | |
7141 | -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \ | |
7142 | | grep "warning: --no-error-execstack ignored" > /dev/null 2>&1; then | |
7143 | true | |
7144 | else | |
7145 | libc_linker_feature=yes | |
7146 | fi | |
7147 | fi | |
7148 | rm -f conftest* | |
7149 | if test $libc_linker_feature = yes; then | |
7150 | libc_cv_no_error_execstack=yes | |
7151 | else | |
7152 | libc_cv_no_error_execstack=no | |
7153 | fi | |
7154 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5 | |
7155 | printf "%s\n" "$libc_linker_feature" >&6; } | |
7156 | ||
7157 | ||
7158 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z execstack" >&5 | |
7159 | printf %s "checking for linker that supports -z execstack... " >&6; } | |
7160 | libc_linker_feature=no | |
7161 | cat > conftest.c <<EOF | |
7162 | int _start (void) { return 42; } | |
7163 | EOF | |
7164 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp | |
7165 | -Wl,-z,execstack -nostdlib -nostartfiles | |
7166 | -fPIC -shared -o conftest.so conftest.c | |
7167 | 1>&5' | |
7168 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
7169 | (eval $ac_try) 2>&5 | |
7170 | ac_status=$? | |
7171 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7172 | test $ac_status = 0; }; } | |
7173 | then | |
7174 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,execstack -nostdlib \ | |
7175 | -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \ | |
7176 | | grep "warning: -z execstack ignored" > /dev/null 2>&1; then | |
7177 | true | |
7178 | else | |
7179 | libc_linker_feature=yes | |
7180 | fi | |
7181 | fi | |
7182 | rm -f conftest* | |
7183 | if test $libc_linker_feature = yes; then | |
7184 | libc_cv_z_execstack=yes | |
7185 | else | |
7186 | libc_cv_z_execstack=no | |
7187 | fi | |
7188 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5 | |
7189 | printf "%s\n" "$libc_linker_feature" >&6; } | |
7190 | ||
7191 | ||
7192 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z start-stop-gc" >&5 | |
7193 | printf %s "checking for linker that supports -z start-stop-gc... " >&6; } | |
7194 | libc_linker_feature=no | |
7195 | cat > conftest.c <<EOF | |
7196 | int _start (void) { return 42; } | |
7197 | EOF | |
7198 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp | |
7199 | -Wl,-z,start-stop-gc -nostdlib -nostartfiles | |
7200 | -fPIC -shared -o conftest.so conftest.c | |
7201 | 1>&5' | |
7202 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
7203 | (eval $ac_try) 2>&5 | |
7204 | ac_status=$? | |
7205 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7206 | test $ac_status = 0; }; } | |
7207 | then | |
7208 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,start-stop-gc -nostdlib \ | |
7209 | -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \ | |
7210 | | grep "warning: -z start-stop-gc ignored" > /dev/null 2>&1; then | |
7211 | true | |
7212 | else | |
7213 | libc_linker_feature=yes | |
7214 | fi | |
7215 | fi | |
7216 | rm -f conftest* | |
7217 | if test $libc_linker_feature = yes; then | |
7218 | libc_cv_z_start_stop_gc=yes | |
7219 | else | |
7220 | libc_cv_z_start_stop_gc=no | |
7221 | fi | |
7222 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5 | |
7223 | printf "%s\n" "$libc_linker_feature" >&6; } | |
7224 | config_vars="$config_vars | |
7225 | have-z-start-stop-gc = $libc_cv_z_start_stop_gc" | |
7226 | ||
7227 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports --depaudit" >&5 | |
7228 | printf %s "checking for linker that supports --depaudit... " >&6; } | |
7229 | libc_linker_feature=no | |
7230 | cat > conftest.c <<EOF | |
7231 | int _start (void) { return 42; } | |
7232 | EOF | |
7233 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp | |
7234 | -Wl,--depaudit,x -nostdlib -nostartfiles | |
7235 | -fPIC -shared -o conftest.so conftest.c | |
7236 | 1>&5' | |
7237 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
7238 | (eval $ac_try) 2>&5 | |
7239 | ac_status=$? | |
7240 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7241 | test $ac_status = 0; }; } | |
7242 | then | |
7243 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--depaudit,x -nostdlib \ | |
7244 | -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \ | |
7245 | | grep "warning: --depaudit ignored" > /dev/null 2>&1; then | |
7246 | true | |
7247 | else | |
7248 | libc_linker_feature=yes | |
7249 | fi | |
7250 | fi | |
7251 | rm -f conftest* | |
7252 | if test $libc_linker_feature = yes; then | |
7253 | libc_cv_depaudit=yes | |
7254 | else | |
7255 | libc_cv_depaudit=no | |
7256 | fi | |
7257 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5 | |
7258 | printf "%s\n" "$libc_linker_feature" >&6; } | |
7259 | config_vars="$config_vars | |
7260 | have-depaudit = $libc_cv_depaudit" | |
7261 | ||
7262 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z pack-relative-relocs" >&5 | |
7263 | printf %s "checking for linker that supports -z pack-relative-relocs... " >&6; } | |
7264 | libc_linker_feature=no | |
7265 | cat > conftest.c <<EOF | |
7266 | int _start (void) { return 42; } | |
7267 | EOF | |
7268 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp | |
7269 | -Wl,-z,pack-relative-relocs -nostdlib -nostartfiles | |
7270 | -fPIC -shared -o conftest.so conftest.c | |
7271 | 1>&5' | |
7272 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
7273 | (eval $ac_try) 2>&5 | |
7274 | ac_status=$? | |
7275 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7276 | test $ac_status = 0; }; } | |
7277 | then | |
7278 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,pack-relative-relocs -nostdlib \ | |
7279 | -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \ | |
7280 | | grep "warning: -z pack-relative-relocs ignored" > /dev/null 2>&1; then | |
7281 | true | |
7282 | else | |
7283 | libc_linker_feature=yes | |
7284 | fi | |
7285 | fi | |
7286 | rm -f conftest* | |
7287 | if test $libc_linker_feature = yes; then | |
7288 | libc_cv_dt_relr=yes | |
7289 | else | |
7290 | libc_cv_dt_relr=no | |
7291 | fi | |
7292 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5 | |
7293 | printf "%s\n" "$libc_linker_feature" >&6; } | |
7294 | config_vars="$config_vars | |
7295 | have-dt-relr = $libc_cv_dt_relr" | |
7296 | ||
7297 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports --no-dynamic-linker" >&5 | |
7298 | printf %s "checking for linker that supports --no-dynamic-linker... " >&6; } | |
7299 | libc_linker_feature=no | |
7300 | cat > conftest.c <<EOF | |
7301 | int _start (void) { return 42; } | |
7302 | EOF | |
7303 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp | |
7304 | -Wl,--no-dynamic-linker -nostdlib -nostartfiles | |
7305 | -fPIC -shared -o conftest.so conftest.c | |
7306 | 1>&5' | |
7307 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
7308 | (eval $ac_try) 2>&5 | |
7309 | ac_status=$? | |
7310 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7311 | test $ac_status = 0; }; } | |
7312 | then | |
7313 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--no-dynamic-linker -nostdlib \ | |
7314 | -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \ | |
7315 | | grep "warning: --no-dynamic-linker ignored" > /dev/null 2>&1; then | |
7316 | true | |
7317 | else | |
7318 | libc_linker_feature=yes | |
7319 | fi | |
7320 | fi | |
7321 | rm -f conftest* | |
7322 | if test $libc_linker_feature = yes; then | |
7323 | libc_cv_no_dynamic_linker=yes | |
7324 | else | |
7325 | libc_cv_no_dynamic_linker=no | |
7326 | fi | |
7327 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5 | |
7328 | printf "%s\n" "$libc_linker_feature" >&6; } | |
7329 | config_vars="$config_vars | |
7330 | have-no-dynamic-linker = $libc_cv_no_dynamic_linker" | |
7331 | ||
7332 | ||
7333 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -static-pie" >&5 | |
7334 | printf %s "checking for -static-pie... " >&6; } | |
7335 | if test ${libc_cv_static_pie+y} | |
7336 | then : | |
7337 | printf %s "(cached) " >&6 | |
7338 | else case e in #( | |
7339 | e) if { ac_try='${CC-cc} -static-pie -xc /dev/null -S -o /dev/null' | |
7340 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
7341 | (eval $ac_try) 2>&5 | |
7342 | ac_status=$? | |
7343 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7344 | test $ac_status = 0; }; } | |
7345 | then : | |
7346 | libc_cv_static_pie=yes | |
7347 | else case e in #( | |
7348 | e) libc_cv_static_pie=no ;; | |
7349 | esac | |
7350 | fi ;; | |
7351 | esac | |
7352 | fi | |
7353 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie" >&5 | |
7354 | printf "%s\n" "$libc_cv_static_pie" >&6; } | |
7355 | if test "$TEST_CC" = "$CC"; then | |
7356 | libc_cv_test_static_pie=$libc_cv_static_pie | |
7357 | else | |
7358 | ||
7359 | saved_CC="$CC" | |
7360 | CC="$TEST_CC" | |
7361 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -static-pie in testing" >&5 | |
7362 | printf %s "checking for -static-pie in testing... " >&6; } | |
7363 | if test ${libc_cv_test_static_pie+y} | |
7364 | then : | |
7365 | printf %s "(cached) " >&6 | |
7366 | else case e in #( | |
7367 | e) if { ac_try='${CC-cc} -static-pie -xc /dev/null -S -o /dev/null' | |
7368 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
7369 | (eval $ac_try) 2>&5 | |
7370 | ac_status=$? | |
7371 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7372 | test $ac_status = 0; }; } | |
7373 | then : | |
7374 | libc_cv_test_static_pie=yes | |
7375 | else case e in #( | |
7376 | e) libc_cv_test_static_pie=no | |
7377 | ;; | |
7378 | esac | |
7379 | fi ;; | |
7380 | esac | |
7381 | fi | |
7382 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_static_pie" >&5 | |
7383 | printf "%s\n" "$libc_cv_test_static_pie" >&6; } | |
7384 | ||
7385 | CC="$saved_CC" | |
7386 | ||
7387 | fi | |
7388 | ||
7389 | config_vars="$config_vars | |
7390 | have-static-pie = $libc_cv_static_pie" | |
7391 | ||
7392 | ||
7393 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fpie" >&5 | |
7394 | printf %s "checking for -fpie... " >&6; } | |
7395 | if test ${libc_cv_fpie+y} | |
7396 | then : | |
7397 | printf %s "(cached) " >&6 | |
7398 | else case e in #( | |
7399 | e) if { ac_try='${CC-cc} -fpie -xc /dev/null -S -o /dev/null' | |
7400 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
7401 | (eval $ac_try) 2>&5 | |
7402 | ac_status=$? | |
7403 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7404 | test $ac_status = 0; }; } | |
7405 | then : | |
7406 | libc_cv_fpie=yes | |
7407 | else case e in #( | |
7408 | e) libc_cv_fpie=no ;; | |
7409 | esac | |
7410 | fi | |
7411 | ;; | |
7412 | esac | |
7413 | fi | |
7414 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fpie" >&5 | |
7415 | printf "%s\n" "$libc_cv_fpie" >&6; } | |
7416 | ||
7417 | ||
7418 | ||
7419 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLOB_DAT reloc" >&5 | |
7420 | printf %s "checking for GLOB_DAT reloc... " >&6; } | |
7421 | if test ${libc_cv_has_glob_dat+y} | |
7422 | then : | |
7423 | printf %s "(cached) " >&6 | |
7424 | else case e in #( | |
7425 | e) cat > conftest.c <<EOF | |
7426 | extern int mumble; | |
7427 | int foo (void) { return mumble; } | |
7428 | EOF | |
7429 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS | |
7430 | -fPIC -shared -o conftest.so conftest.c | |
7431 | -nostdlib -nostartfiles $no_ssp | |
7432 | 1>&5' | |
7433 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
7434 | (eval $ac_try) 2>&5 | |
7435 | ac_status=$? | |
7436 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7437 | test $ac_status = 0; }; } | |
7438 | then | |
7439 | if $READELF -rW conftest.so | grep '_GLOB_DAT' > /dev/null; then | |
7440 | libc_cv_has_glob_dat=yes | |
7441 | else | |
7442 | libc_cv_has_glob_dat=no | |
7443 | fi | |
7444 | else | |
7445 | libc_cv_has_glob_dat=no | |
7446 | fi | |
7447 | rm -f conftest* ;; | |
7448 | esac | |
7449 | fi | |
7450 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_has_glob_dat" >&5 | |
7451 | printf "%s\n" "$libc_cv_has_glob_dat" >&6; } | |
7452 | ||
7453 | ||
7454 | conftest_code=" | |
7455 | __thread int i; | |
7456 | void foo (void) | |
7457 | { | |
7458 | i = 10; | |
7459 | } | |
7460 | " | |
7461 | ||
7462 | cat > conftest.c <<EOF | |
7463 | $conftest_code | |
7464 | EOF | |
7465 | ||
7466 | saved_CC="$CC" | |
7467 | CC="$TEST_CC" | |
7468 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tls descriptor support in testing" >&5 | |
7469 | printf %s "checking for tls descriptor support in testing... " >&6; } | |
7470 | if test ${libc_cv_test_mtls_descriptor+y} | |
7471 | then : | |
7472 | printf %s "(cached) " >&6 | |
7473 | else case e in #( | |
7474 | e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -fPIC -mtls-dialect=$mtls_descriptor -nostdlib -nostartfiles -shared conftest.c -o conftest 1>&5' | |
7475 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
7476 | (eval $ac_try) 2>&5 | |
7477 | ac_status=$? | |
7478 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7479 | test $ac_status = 0; }; } | |
7480 | then | |
7481 | libc_cv_test_mtls_descriptor=$mtls_descriptor | |
7482 | else | |
7483 | libc_cv_test_mtls_descriptor=no | |
7484 | fi ;; | |
7485 | esac | |
7486 | fi | |
7487 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_mtls_descriptor" >&5 | |
7488 | printf "%s\n" "$libc_cv_test_mtls_descriptor" >&6; } | |
7489 | ||
7490 | CC="$saved_CC" | |
7491 | ||
7492 | rm -f conftest* | |
7493 | config_vars="$config_vars | |
7494 | have-test-mtls-descriptor = $libc_cv_test_mtls_descriptor" | |
7495 | ||
7496 | ||
7497 | cat > conftest.c <<EOF | |
7498 | $conftest_code | |
7499 | EOF | |
7500 | ||
7501 | saved_CC="$CC" | |
7502 | CC="$TEST_CC" | |
7503 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for traditional tls support in testing" >&5 | |
7504 | printf %s "checking for traditional tls support in testing... " >&6; } | |
7505 | if test ${libc_cv_test_mtls_traditional+y} | |
7506 | then : | |
7507 | printf %s "(cached) " >&6 | |
7508 | else case e in #( | |
7509 | e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -fPIC -mtls-dialect=$mtls_traditional -nostdlib -nostartfiles -shared conftest.c -o conftest 1>&5' | |
7510 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
7511 | (eval $ac_try) 2>&5 | |
7512 | ac_status=$? | |
7513 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7514 | test $ac_status = 0; }; } | |
7515 | then | |
7516 | libc_cv_test_mtls_traditional=$mtls_traditional | |
7517 | else | |
7518 | libc_cv_test_mtls_traditional=no | |
7519 | fi ;; | |
7520 | esac | |
7521 | fi | |
7522 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_mtls_traditional" >&5 | |
7523 | printf "%s\n" "$libc_cv_test_mtls_traditional" >&6; } | |
7524 | ||
7525 | CC="$saved_CC" | |
7526 | ||
7527 | rm -f conftest* | |
7528 | config_vars="$config_vars | |
7529 | have-test-mtls-traditional = $libc_cv_test_mtls_traditional" | |
7530 | ||
7531 | conftest_code=" | |
7532 | void __foo (void) | |
7533 | { | |
7534 | } | |
7535 | extern __typeof (__foo) foo __attribute__ ((weak, alias ("__foo"))); | |
7536 | extern __typeof (__foo) bar __attribute__ ((weak, alias ("foo"))); | |
7537 | " | |
7538 | ||
7539 | cat > conftest.c <<EOF | |
7540 | $conftest_code | |
7541 | EOF | |
7542 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -Wno-ignored-attributes is required for aliases" >&5 | |
7543 | printf %s "checking if -Wno-ignored-attributes is required for aliases... " >&6; } | |
7544 | if test ${libc_cv_wno_ignored_attributes+y} | |
7545 | then : | |
7546 | printf %s "(cached) " >&6 | |
7547 | else case e in #( | |
7548 | e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c -Werror -Wno-ignored-attributes conftest.c -o conftest 1>&5' | |
7549 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
7550 | (eval $ac_try) 2>&5 | |
7551 | ac_status=$? | |
7552 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7553 | test $ac_status = 0; }; } | |
7554 | then | |
7555 | libc_cv_wno_ignored_attributes="-Wno-ignored-attributes" | |
7556 | else | |
7557 | libc_cv_wno_ignored_attributes= | |
7558 | fi | |
7559 | ;; | |
7560 | esac | |
7561 | fi | |
7562 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_wno_ignored_attributes" >&5 | |
7563 | printf "%s\n" "$libc_cv_wno_ignored_attributes" >&6; } | |
7564 | if test "$TEST_CC" = "$CC"; then | |
7565 | libc_cv_test_wno_ignored_attributes=$libc_cv_wno_ignored_attributes | |
7566 | else | |
7567 | ||
7568 | saved_CC="$CC" | |
7569 | CC="$TEST_CC" | |
7570 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -Wno-ignored-attributes is required for aliases in testing" >&5 | |
7571 | printf %s "checking if -Wno-ignored-attributes is required for aliases in testing... " >&6; } | |
7572 | if test ${libc_cv_test_wno_ignored_attributes+y} | |
7573 | then : | |
7574 | printf %s "(cached) " >&6 | |
7575 | else case e in #( | |
7576 | e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c -Werror -Wno-ignored-attributes conftest.c -o conftest 1>&5' | |
7577 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
7578 | (eval $ac_try) 2>&5 | |
7579 | ac_status=$? | |
7580 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7581 | test $ac_status = 0; }; } | |
7582 | then | |
7583 | libc_cv_test_wno_ignored_attributes="-Wno-ignored-attributes" | |
7584 | else | |
7585 | libc_cv_test_wno_ignored_attributes= | |
7586 | fi ;; | |
7587 | esac | |
7588 | fi | |
7589 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_wno_ignored_attributes" >&5 | |
7590 | printf "%s\n" "$libc_cv_test_wno_ignored_attributes" >&6; } | |
7591 | ||
7592 | CC="$saved_CC" | |
7593 | ||
7594 | fi | |
7595 | rm -f conftest* | |
7596 | config_vars="$config_vars | |
7597 | config-cflags-wno-ignored-attributes = $libc_cv_wno_ignored_attributes" | |
7598 | ||
7599 | ||
7600 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether cc puts quotes around section names" >&5 | |
7601 | printf %s "checking whether cc puts quotes around section names... " >&6; } | |
7602 | if test ${libc_cv_have_section_quotes+y} | |
7603 | then : | |
7604 | printf %s "(cached) " >&6 | |
7605 | else case e in #( | |
7606 | e) cat > conftest.c <<EOF | |
7607 | static const int foo | |
7608 | __attribute__ ((section ("bar"))) = 1; | |
7609 | EOF | |
7610 | if ${CC-cc} -S conftest.c -o conftest.s; then | |
7611 | if grep '\.section.*"bar"' conftest.s >/dev/null; then | |
7612 | libc_cv_have_section_quotes=yes | |
7613 | else | |
7614 | libc_cv_have_section_quotes=no | |
7615 | fi | |
7616 | else | |
7617 | libc_cv_have_section_quotes=unknown | |
7618 | fi | |
7619 | rm -f conftest.{c,s} | |
7620 | ;; | |
7621 | esac | |
7622 | fi | |
7623 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_section_quotes" >&5 | |
7624 | printf "%s\n" "$libc_cv_have_section_quotes" >&6; } | |
7625 | if test $libc_cv_have_section_quotes = yes; then | |
7626 | printf "%s\n" "#define HAVE_SECTION_QUOTES 1" >>confdefs.h | |
7627 | ||
7628 | fi | |
7629 | ||
7630 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_memset" >&5 | |
7631 | printf %s "checking for __builtin_memset... " >&6; } | |
7632 | if test ${libc_cv_gcc_builtin_memset+y} | |
7633 | then : | |
7634 | printf %s "(cached) " >&6 | |
7635 | else case e in #( | |
7636 | e) cat > conftest.c <<\EOF | |
7637 | void zero (void *x) | |
7638 | { | |
7639 | __builtin_memset (x, 0, 1000); | |
7640 | } | |
7641 | EOF | |
7642 | if { ac_try='${CC-cc} -O3 -S conftest.c -o - | grep -F "memset" > /dev/null' | |
7643 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
7644 | (eval $ac_try) 2>&5 | |
7645 | ac_status=$? | |
7646 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7647 | test $ac_status = 0; }; }; | |
7648 | then | |
7649 | libc_cv_gcc_builtin_memset=no | |
7650 | else | |
7651 | libc_cv_gcc_builtin_memset=yes | |
7652 | fi | |
7653 | rm -f conftest* ;; | |
7654 | esac | |
7655 | fi | |
7656 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_memset" >&5 | |
7657 | printf "%s\n" "$libc_cv_gcc_builtin_memset" >&6; } | |
7658 | if test "$libc_cv_gcc_builtin_memset" = yes ; then | |
7659 | printf "%s\n" "#define HAVE_BUILTIN_MEMSET 1" >>confdefs.h | |
7660 | ||
7661 | fi | |
7662 | ||
7663 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for redirection of built-in functions" >&5 | |
7664 | printf %s "checking for redirection of built-in functions... " >&6; } | |
7665 | if test ${libc_cv_gcc_builtin_redirection+y} | |
7666 | then : | |
7667 | printf %s "(cached) " >&6 | |
7668 | else case e in #( | |
7669 | e) cat > conftest.c <<\EOF | |
7670 | extern char *strstr (const char *, const char *) __asm ("my_strstr"); | |
7671 | char *foo (const char *a, const char *b) | |
7672 | { | |
7673 | return __builtin_strstr (a, b); | |
7674 | } | |
7675 | EOF | |
7676 | if { ac_try='${CC-cc} -O3 -S conftest.c -o - | grep -F "my_strstr" > /dev/null' | |
7677 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
7678 | (eval $ac_try) 2>&5 | |
7679 | ac_status=$? | |
7680 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7681 | test $ac_status = 0; }; }; | |
7682 | then | |
7683 | libc_cv_gcc_builtin_redirection=yes | |
7684 | else | |
7685 | libc_cv_gcc_builtin_redirection=no | |
7686 | fi | |
7687 | rm -f conftest* ;; | |
7688 | esac | |
7689 | fi | |
7690 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_redirection" >&5 | |
7691 | printf "%s\n" "$libc_cv_gcc_builtin_redirection" >&6; } | |
7692 | if test "$libc_cv_gcc_builtin_redirection" = no; then | |
7693 | as_fn_error $? "support for the symbol redirection needed" "$LINENO" 5 | |
7694 | fi | |
7695 | ||
7696 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option to disable generation of FMA instructions" >&5 | |
7697 | printf %s "checking for compiler option to disable generation of FMA instructions... " >&6; } | |
7698 | if test ${libc_cv_cc_nofma+y} | |
7699 | then : | |
7700 | printf %s "(cached) " >&6 | |
7701 | else case e in #( | |
7702 | e) libc_cv_cc_nofma= | |
7703 | for opt in -ffp-contract=off -mno-fused-madd; do | |
7704 | if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null' | |
7705 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
7706 | (eval $ac_try) 2>&5 | |
7707 | ac_status=$? | |
7708 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7709 | test $ac_status = 0; }; } | |
7710 | then : | |
7711 | libc_cv_cc_nofma=$opt; break | |
7712 | fi | |
7713 | done ;; | |
7714 | esac | |
7715 | fi | |
7716 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_nofma" >&5 | |
7717 | printf "%s\n" "$libc_cv_cc_nofma" >&6; } | |
7718 | ||
7719 | ||
7720 | if test -n "$submachine"; then | |
7721 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option for CPU variant" >&5 | |
7722 | printf %s "checking for compiler option for CPU variant... " >&6; } | |
7723 | if test ${libc_cv_cc_submachine+y} | |
7724 | then : | |
7725 | printf %s "(cached) " >&6 | |
7726 | else case e in #( | |
7727 | e) libc_cv_cc_submachine=no | |
7728 | for opt in "-march=$submachine" "-mcpu=$submachine"; do | |
7729 | if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null' | |
7730 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
7731 | (eval $ac_try) 2>&5 | |
7732 | ac_status=$? | |
7733 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7734 | test $ac_status = 0; }; } | |
7735 | then : | |
7736 | ||
7737 | libc_cv_cc_submachine="$opt" | |
7738 | break | |
7739 | fi | |
7740 | done ;; | |
7741 | esac | |
7742 | fi | |
7743 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_submachine" >&5 | |
7744 | printf "%s\n" "$libc_cv_cc_submachine" >&6; } | |
7745 | if test "x$libc_cv_cc_submachine" = xno; then | |
7746 | as_fn_error $? "${CC-cc} does not support $submachine" "$LINENO" 5 | |
7747 | fi | |
7748 | fi | |
7749 | ||
7750 | ||
7751 | ||
7752 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option that -fsignaling-nans" >&5 | |
7753 | printf %s "checking for compiler option that -fsignaling-nans... " >&6; } | |
7754 | if test ${libc_cv_cc_signaling_nans+y} | |
7755 | then : | |
7756 | printf %s "(cached) " >&6 | |
7757 | else case e in #( | |
7758 | e) if { ac_try='${CC-cc} -Werror -fsignaling-nans -xc /dev/null -S -o /dev/null' | |
7759 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
7760 | (eval $ac_try) 2>&5 | |
7761 | ac_status=$? | |
7762 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7763 | test $ac_status = 0; }; } | |
7764 | then : | |
7765 | libc_cv_cc_signaling_nans=-fsignaling-nans | |
7766 | else case e in #( | |
7767 | e) libc_cv_cc_signaling_nans= ;; | |
7768 | esac | |
7769 | fi ;; | |
7770 | esac | |
7771 | fi | |
7772 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_signaling_nans" >&5 | |
7773 | printf "%s\n" "$libc_cv_cc_signaling_nans" >&6; } | |
7774 | if test "$TEST_CC" = "$CC"; then | |
7775 | libc_cv_test_cc_signaling_nans=$libc_cv_cc_signaling_nans | |
7776 | else | |
7777 | ||
7778 | saved_CC="$CC" | |
7779 | CC="$TEST_CC" | |
7780 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option that -fsignaling-nans in testing" >&5 | |
7781 | printf %s "checking for compiler option that -fsignaling-nans in testing... " >&6; } | |
7782 | if test ${libc_cv_test_cc_signaling_nans+y} | |
7783 | then : | |
7784 | printf %s "(cached) " >&6 | |
7785 | else case e in #( | |
7786 | e) if { ac_try='${CC-cc} -Werror -fsignaling-nans -xc /dev/null -S -o /dev/null' | |
7787 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
7788 | (eval $ac_try) 2>&5 | |
7789 | ac_status=$? | |
7790 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7791 | test $ac_status = 0; }; } | |
7792 | then : | |
7793 | libc_cv_test_cc_signaling_nans=-fsignaling-nans | |
7794 | else case e in #( | |
7795 | e) libc_cv_test_cc_signaling_nans= ;; | |
7796 | esac | |
7797 | fi ;; | |
7798 | esac | |
7799 | fi | |
7800 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cc_signaling_nans" >&5 | |
7801 | printf "%s\n" "$libc_cv_test_cc_signaling_nans" >&6; } | |
7802 | ||
7803 | CC="$saved_CC" | |
7804 | ||
7805 | fi | |
7806 | ||
7807 | config_vars="$config_vars | |
7808 | config-cflags-signaling-nans = $libc_cv_cc_signaling_nans" | |
7809 | ||
7810 | ||
7811 | ||
7812 | ||
7813 | saved_CC="$CC" | |
7814 | CC="$TEST_CC" | |
7815 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -fsemantic-interposition in testing" >&5 | |
7816 | printf %s "checking -fsemantic-interposition in testing... " >&6; } | |
7817 | if test ${libc_cv_test_cc_cflags_fsemantic_interposition+y} | |
7818 | then : | |
7819 | printf %s "(cached) " >&6 | |
7820 | else case e in #( | |
7821 | e) if { ac_try='${CC-cc} -c -Werror -fsemantic-interposition -xc /dev/null -S -o /dev/null' | |
7822 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
7823 | (eval $ac_try) 2>&5 | |
7824 | ac_status=$? | |
7825 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7826 | test $ac_status = 0; }; } | |
7827 | then : | |
7828 | libc_cv_test_cc_cflags_fsemantic_interposition=yes | |
7829 | else case e in #( | |
7830 | e) libc_cv_test_cc_cflags_fsemantic_interposition=no | |
7831 | ;; | |
7832 | esac | |
7833 | fi ;; | |
7834 | esac | |
7835 | fi | |
7836 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cc_cflags_fsemantic_interposition" >&5 | |
7837 | printf "%s\n" "$libc_cv_test_cc_cflags_fsemantic_interposition" >&6; } | |
7838 | ||
7839 | CC="$saved_CC" | |
7840 | ||
7841 | ||
7842 | config_vars="$config_vars | |
7843 | have-test-cc-cflags-fsemantic-interposition = $libc_cv_test_cc_cflags_fsemantic_interposition" | |
7844 | ||
7845 | ||
7846 | ||
7847 | saved_CC="$CC" | |
7848 | CC="$TEST_CC" | |
7849 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -ffloat-store in testing" >&5 | |
7850 | printf %s "checking for -ffloat-store in testing... " >&6; } | |
7851 | if test ${libc_cv_test_cc_float_store+y} | |
7852 | then : | |
7853 | printf %s "(cached) " >&6 | |
7854 | else case e in #( | |
7855 | e) if { ac_try='${CC-cc} -Werror -ffloat-store -xc /dev/null -S -o /dev/null' | |
7856 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
7857 | (eval $ac_try) 2>&5 | |
7858 | ac_status=$? | |
7859 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7860 | test $ac_status = 0; }; } | |
7861 | then : | |
7862 | libc_cv_test_cc_float_store="-ffloat-store" | |
7863 | else case e in #( | |
7864 | e) libc_cv_test_cc_float_store= ;; | |
7865 | esac | |
7866 | fi ;; | |
7867 | esac | |
7868 | fi | |
7869 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cc_float_store" >&5 | |
7870 | printf "%s\n" "$libc_cv_test_cc_float_store" >&6; } | |
7871 | ||
7872 | CC="$saved_CC" | |
7873 | ||
7874 | ||
7875 | config_vars="$config_vars | |
7876 | test-config-cflags-float-store = $libc_cv_test_cc_float_store" | |
7877 | ||
7878 | conftest_code=" | |
7879 | void | |
7880 | __attribute__ ((__optimize__ (\"-fno-tree-loop-distribute-patterns\"))) | |
7881 | foo (void) {} | |
7882 | " | |
7883 | ||
7884 | cat > conftest.c <<EOF | |
7885 | $conftest_code | |
7886 | EOF | |
7887 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if __attribute__ ((__optimize__(\"-fno-tree-loop-distribute-patterns\"))) works" >&5 | |
7888 | printf %s "checking if __attribute__ ((__optimize__(\"-fno-tree-loop-distribute-patterns\"))) works... " >&6; } | |
7889 | if test ${libc_cv_cc_loop_to_function+y} | |
7890 | then : | |
7891 | printf %s "(cached) " >&6 | |
7892 | else case e in #( | |
7893 | e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c -Werror conftest.c -o conftest 1>&5' | |
7894 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
7895 | (eval $ac_try) 2>&5 | |
7896 | ac_status=$? | |
7897 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7898 | test $ac_status = 0; }; } | |
7899 | then | |
7900 | libc_cv_cc_loop_to_function=yes | |
7901 | else | |
7902 | libc_cv_cc_loop_to_function=no | |
7903 | fi | |
7904 | ;; | |
7905 | esac | |
7906 | fi | |
7907 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_loop_to_function" >&5 | |
7908 | printf "%s\n" "$libc_cv_cc_loop_to_function" >&6; } | |
7909 | if test "$TEST_CC" = "$CC"; then | |
7910 | libc_cv_test_cc_loop_to_function=$libc_cv_cc_loop_to_function | |
7911 | else | |
7912 | ||
7913 | saved_CC="$CC" | |
7914 | CC="$TEST_CC" | |
7915 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if __attribute__ ((__optimize__(\"-fno-tree-loop-distribute-patterns\"))) works in testing" >&5 | |
7916 | printf %s "checking if __attribute__ ((__optimize__(\"-fno-tree-loop-distribute-patterns\"))) works in testing... " >&6; } | |
7917 | if test ${libc_cv_test_cc_loop_to_function+y} | |
7918 | then : | |
7919 | printf %s "(cached) " >&6 | |
7920 | else case e in #( | |
7921 | e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c -Werror conftest.c -o conftest 1>&5' | |
7922 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
7923 | (eval $ac_try) 2>&5 | |
7924 | ac_status=$? | |
7925 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7926 | test $ac_status = 0; }; } | |
7927 | then | |
7928 | libc_cv_test_cc_loop_to_function=yes | |
7929 | else | |
7930 | libc_cv_test_cc_loop_to_function=no | |
7931 | fi ;; | |
7932 | esac | |
7933 | fi | |
7934 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cc_loop_to_function" >&5 | |
7935 | printf "%s\n" "$libc_cv_test_cc_loop_to_function" >&6; } | |
7936 | ||
7937 | CC="$saved_CC" | |
7938 | ||
7939 | fi | |
7940 | rm -f conftest* | |
7941 | if test $libc_cv_cc_loop_to_function = yes; then | |
7942 | printf "%s\n" "#define HAVE_CC_INHIBIT_LOOP_TO_LIBCALL 1" >>confdefs.h | |
7943 | ||
7944 | fi | |
7945 | if test $libc_cv_test_cc_loop_to_function = yes; then | |
7946 | printf "%s\n" "#define HAVE_TEST_CC_INHIBIT_LOOP_TO_LIBCALL 1" >>confdefs.h | |
7947 | ||
7948 | fi | |
7949 | ||
7950 | ||
7951 | ||
7952 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wimplicit-fallthrough" >&5 | |
7953 | printf %s "checking for -Wimplicit-fallthrough... " >&6; } | |
7954 | if test ${libc_cv_cc_wimplicit_fallthrough+y} | |
7955 | then : | |
7956 | printf %s "(cached) " >&6 | |
7957 | else case e in #( | |
7958 | e) if { ac_try='${CC-cc} -Werror -Wimplicit-fallthrough -xc /dev/null -S -o /dev/null' | |
7959 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
7960 | (eval $ac_try) 2>&5 | |
7961 | ac_status=$? | |
7962 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7963 | test $ac_status = 0; }; } | |
7964 | then : | |
7965 | libc_cv_cc_wimplicit_fallthrough=-Wimplicit-fallthrough | |
7966 | else case e in #( | |
7967 | e) libc_cv_cc_wimplicit_fallthrough= ;; | |
7968 | esac | |
7969 | fi ;; | |
7970 | esac | |
7971 | fi | |
7972 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_wimplicit_fallthrough" >&5 | |
7973 | printf "%s\n" "$libc_cv_cc_wimplicit_fallthrough" >&6; } | |
7974 | if test "$TEST_CC" = "$CC"; then | |
7975 | libc_cv_test_cc_wimplicit_fallthrough=$libc_cv_cc_wimplicit_fallthrough | |
7976 | else | |
7977 | ||
7978 | saved_CC="$CC" | |
7979 | CC="$TEST_CC" | |
7980 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wimplicit-fallthrough in testing" >&5 | |
7981 | printf %s "checking for -Wimplicit-fallthrough in testing... " >&6; } | |
7982 | if test ${libc_cv_test_cc_wimplicit_fallthrough+y} | |
7983 | then : | |
7984 | printf %s "(cached) " >&6 | |
7985 | else case e in #( | |
7986 | e) if { ac_try='${CC-cc} -Werror -Wimplicit-fallthrough -xc /dev/null -S -o /dev/null' | |
7987 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
7988 | (eval $ac_try) 2>&5 | |
7989 | ac_status=$? | |
7990 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7991 | test $ac_status = 0; }; } | |
7992 | then : | |
7993 | libc_cv_test_cc_wimplicit_fallthrough=-Wimplicit-fallthrough | |
7994 | else case e in #( | |
7995 | e) libc_cv_test_cc_wimplicit_fallthrough= ;; | |
7996 | esac | |
7997 | fi ;; | |
7998 | esac | |
7999 | fi | |
8000 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cc_wimplicit_fallthrough" >&5 | |
8001 | printf "%s\n" "$libc_cv_test_cc_wimplicit_fallthrough" >&6; } | |
8002 | ||
8003 | CC="$saved_CC" | |
8004 | ||
8005 | fi | |
8006 | ||
8007 | config_vars="$config_vars | |
8008 | cc-option-wimplicit-fallthrough = $libc_cv_cc_wimplicit_fallthrough" | |
8009 | ||
8010 | ||
8011 | ||
8012 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wfree-labels" >&5 | |
8013 | printf %s "checking for -Wfree-labels... " >&6; } | |
8014 | if test ${libc_cv_cc_wfree_labels+y} | |
8015 | then : | |
8016 | printf %s "(cached) " >&6 | |
8017 | else case e in #( | |
8018 | e) if { ac_try='${CC-cc} -Werror -Wfree-labels -xc /dev/null -S -o /dev/null' | |
8019 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
8020 | (eval $ac_try) 2>&5 | |
8021 | ac_status=$? | |
8022 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8023 | test $ac_status = 0; }; } | |
8024 | then : | |
8025 | libc_cv_cc_wfree_labels=-Wfree-labels | |
8026 | else case e in #( | |
8027 | e) libc_cv_cc_wfree_labels= ;; | |
8028 | esac | |
8029 | fi ;; | |
8030 | esac | |
8031 | fi | |
8032 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_wfree_labels" >&5 | |
8033 | printf "%s\n" "$libc_cv_cc_wfree_labels" >&6; } | |
8034 | if test "$TEST_CC" = "$CC"; then | |
8035 | libc_cv_test_cc_wfree_labels=$libc_cv_cc_wfree_labels | |
8036 | else | |
8037 | ||
8038 | saved_CC="$CC" | |
8039 | CC="$TEST_CC" | |
8040 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wfree-labels in testing" >&5 | |
8041 | printf %s "checking for -Wfree-labels in testing... " >&6; } | |
8042 | if test ${libc_cv_test_cc_wfree_labels+y} | |
8043 | then : | |
8044 | printf %s "(cached) " >&6 | |
8045 | else case e in #( | |
8046 | e) if { ac_try='${CC-cc} -Werror -Wfree-labels -xc /dev/null -S -o /dev/null' | |
8047 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
8048 | (eval $ac_try) 2>&5 | |
8049 | ac_status=$? | |
8050 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8051 | test $ac_status = 0; }; } | |
8052 | then : | |
8053 | libc_cv_test_cc_wfree_labels=-Wfree-labels | |
8054 | else case e in #( | |
8055 | e) libc_cv_test_cc_wfree_labels= ;; | |
8056 | esac | |
8057 | fi ;; | |
8058 | esac | |
8059 | fi | |
8060 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cc_wfree_labels" >&5 | |
8061 | printf "%s\n" "$libc_cv_test_cc_wfree_labels" >&6; } | |
8062 | ||
8063 | CC="$saved_CC" | |
8064 | ||
8065 | fi | |
8066 | ||
8067 | config_vars="$config_vars | |
8068 | cc-option-wfree-labels = $libc_cv_cc_wfree_labels" | |
8069 | ||
8070 | ||
8071 | ||
8072 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wmissing-parameter-name" >&5 | |
8073 | printf %s "checking for -Wmissing-parameter-name... " >&6; } | |
8074 | if test ${libc_cv_cc_wmissing_parameter_name+y} | |
8075 | then : | |
8076 | printf %s "(cached) " >&6 | |
8077 | else case e in #( | |
8078 | e) if { ac_try='${CC-cc} -Werror -Wmissing-parameter-name -xc /dev/null -S -o /dev/null' | |
8079 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
8080 | (eval $ac_try) 2>&5 | |
8081 | ac_status=$? | |
8082 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8083 | test $ac_status = 0; }; } | |
8084 | then : | |
8085 | libc_cv_cc_wmissing_parameter_name=-Wmissing-parameter-name | |
8086 | else case e in #( | |
8087 | e) libc_cv_cc_wmissing_parameter_name= ;; | |
8088 | esac | |
8089 | fi ;; | |
8090 | esac | |
8091 | fi | |
8092 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_wmissing_parameter_name" >&5 | |
8093 | printf "%s\n" "$libc_cv_cc_wmissing_parameter_name" >&6; } | |
8094 | if test "$TEST_CC" = "$CC"; then | |
8095 | libc_cv_test_cc_wmissing_parameter_name=$libc_cv_cc_wmissing_parameter_name | |
8096 | else | |
8097 | ||
8098 | saved_CC="$CC" | |
8099 | CC="$TEST_CC" | |
8100 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wmissing-parameter-name in testing" >&5 | |
8101 | printf %s "checking for -Wmissing-parameter-name in testing... " >&6; } | |
8102 | if test ${libc_cv_test_cc_wmissing_parameter_name+y} | |
8103 | then : | |
8104 | printf %s "(cached) " >&6 | |
8105 | else case e in #( | |
8106 | e) if { ac_try='${CC-cc} -Werror -Wmissing-parameter-name -xc /dev/null -S -o /dev/null' | |
8107 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
8108 | (eval $ac_try) 2>&5 | |
8109 | ac_status=$? | |
8110 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8111 | test $ac_status = 0; }; } | |
8112 | then : | |
8113 | libc_cv_test_cc_wmissing_parameter_name=-Wmissing-parameter-name | |
8114 | else case e in #( | |
8115 | e) libc_cv_test_cc_wmissing_parameter_name= ;; | |
8116 | esac | |
8117 | fi ;; | |
8118 | esac | |
8119 | fi | |
8120 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cc_wmissing_parameter_name" >&5 | |
8121 | printf "%s\n" "$libc_cv_test_cc_wmissing_parameter_name" >&6; } | |
8122 | ||
8123 | CC="$saved_CC" | |
8124 | ||
8125 | fi | |
8126 | ||
8127 | config_vars="$config_vars | |
8128 | cc-option-wmissing-parameter-name = $libc_cv_cc_wmissing_parameter_name" | |
8129 | ||
8130 | ||
8131 | conftest_code=" | |
8132 | void bar (void (*callback) (void)); | |
8133 | int foo (void) | |
8134 | { | |
8135 | int var = 0; | |
8136 | void callback (void) { var = 1; } | |
8137 | bar (callback); | |
8138 | return var; | |
8139 | } | |
8140 | " | |
8141 | ||
8142 | ||
8143 | cat > conftest.c <<EOF | |
8144 | $conftest_code | |
8145 | EOF | |
8146 | ||
8147 | saved_CC="$CC" | |
8148 | CC="$TEST_CC" | |
8149 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for trampolines in testing" >&5 | |
8150 | printf %s "checking support for trampolines in testing... " >&6; } | |
8151 | if test ${libc_cv_test_cc_trampolines+y} | |
8152 | then : | |
8153 | printf %s "(cached) " >&6 | |
8154 | else case e in #( | |
8155 | e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c -Werror conftest.c -o conftest 1>&5' | |
8156 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
8157 | (eval $ac_try) 2>&5 | |
8158 | ac_status=$? | |
8159 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8160 | test $ac_status = 0; }; } | |
8161 | then | |
8162 | libc_cv_test_cc_trampolines=yes | |
8163 | else | |
8164 | libc_cv_test_cc_trampolines=no | |
8165 | ||
8166 | fi ;; | |
8167 | esac | |
8168 | fi | |
8169 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cc_trampolines" >&5 | |
8170 | printf "%s\n" "$libc_cv_test_cc_trampolines" >&6; } | |
8171 | ||
8172 | CC="$saved_CC" | |
8173 | ||
8174 | rm -f conftest* | |
8175 | config_vars="$config_vars | |
8176 | have-test-cc-trampoline = $libc_cv_test_cc_trampolines" | |
8177 | ||
8178 | ||
8179 | ||
8180 | saved_CC="$CC" | |
8181 | CC="$TEST_CC" | |
8182 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -Wno-restrict in testing" >&5 | |
8183 | printf %s "checking -Wno-restrict in testing... " >&6; } | |
8184 | if test ${libc_cv_test_cflags_wno_restrict+y} | |
8185 | then : | |
8186 | printf %s "(cached) " >&6 | |
8187 | else case e in #( | |
8188 | e) if { ac_try='${CC-cc} -c -Werror -Wno-restrict -xc /dev/null -S -o /dev/null' | |
8189 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
8190 | (eval $ac_try) 2>&5 | |
8191 | ac_status=$? | |
8192 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8193 | test $ac_status = 0; }; } | |
8194 | then : | |
8195 | libc_cv_test_cflags_wno_restrict=-Wno-restrict | |
8196 | else case e in #( | |
8197 | e) libc_cv_test_cflags_wno_restrict= | |
8198 | ;; | |
8199 | esac | |
8200 | fi ;; | |
8201 | esac | |
8202 | fi | |
8203 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cflags_wno_restrict" >&5 | |
8204 | printf "%s\n" "$libc_cv_test_cflags_wno_restrict" >&6; } | |
8205 | ||
8206 | CC="$saved_CC" | |
8207 | ||
8208 | ||
8209 | config_vars="$config_vars | |
8210 | test-config-cflags-wno-restrict = $libc_cv_test_cflags_wno_restrict" | |
8211 | ||
8212 | ||
8213 | ||
8214 | saved_CC="$CC" | |
8215 | CC="$TEST_CC" | |
8216 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -Wno-fortify-source in testing" >&5 | |
8217 | printf %s "checking -Wno-fortify-source in testing... " >&6; } | |
8218 | if test ${libc_cv_test_cflags_wno_fortify_source+y} | |
8219 | then : | |
8220 | printf %s "(cached) " >&6 | |
8221 | else case e in #( | |
8222 | e) if { ac_try='${CC-cc} -c -Werror -Wno-fortify-source -xc /dev/null -S -o /dev/null' | |
8223 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
8224 | (eval $ac_try) 2>&5 | |
8225 | ac_status=$? | |
8226 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8227 | test $ac_status = 0; }; } | |
8228 | then : | |
8229 | libc_cv_test_cflags_wno_fortify_source=-Wno-fortify-source | |
8230 | else case e in #( | |
8231 | e) libc_cv_test_cflags_wno_fortify_source= | |
8232 | ;; | |
8233 | esac | |
8234 | fi ;; | |
8235 | esac | |
8236 | fi | |
8237 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cflags_wno_fortify_source" >&5 | |
8238 | printf "%s\n" "$libc_cv_test_cflags_wno_fortify_source" >&6; } | |
8239 | ||
8240 | CC="$saved_CC" | |
8241 | ||
8242 | ||
8243 | config_vars="$config_vars | |
8244 | test-config-cflags-wno-fortify-source = $libc_cv_test_cflags_wno_fortify_source" | |
8245 | ||
8246 | ||
8247 | ||
8248 | saved_CC="$CC" | |
8249 | CC="$TEST_CC" | |
8250 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking -finput-charset=ascii in testing" >&5 | |
8251 | printf %s "checking -finput-charset=ascii in testing... " >&6; } | |
8252 | if test ${libc_cv_test_cflags_finput_charset_ascii+y} | |
8253 | then : | |
8254 | printf %s "(cached) " >&6 | |
8255 | else case e in #( | |
8256 | e) if { ac_try='${CC-cc} -c -Werror -finput-charset=ascii -xc /dev/null -S -o /dev/null' | |
8257 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
8258 | (eval $ac_try) 2>&5 | |
8259 | ac_status=$? | |
8260 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8261 | test $ac_status = 0; }; } | |
8262 | then : | |
8263 | libc_cv_test_cflags_finput_charset_ascii="-finput-charset=ascii" | |
8264 | else case e in #( | |
8265 | e) libc_cv_test_cflags_finput_charset_ascii= | |
8266 | ;; | |
8267 | esac | |
8268 | fi ;; | |
8269 | esac | |
8270 | fi | |
8271 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cflags_finput_charset_ascii" >&5 | |
8272 | printf "%s\n" "$libc_cv_test_cflags_finput_charset_ascii" >&6; } | |
8273 | ||
8274 | CC="$saved_CC" | |
8275 | ||
8276 | ||
8277 | config_vars="$config_vars | |
8278 | test-config-cflags-finput-charset-ascii = $libc_cv_test_cflags_finput_charset_ascii" | |
8279 | ||
8280 | ||
8281 | ||
8282 | saved_CXX="$CXX" | |
8283 | CXX="$TEST_CXX" | |
8284 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $CXX -finput-charset=ascii in testing" >&5 | |
8285 | printf %s "checking $CXX -finput-charset=ascii in testing... " >&6; } | |
8286 | if test ${libc_cv_test_cxxflags_finput_charset_ascii+y} | |
8287 | then : | |
8288 | printf %s "(cached) " >&6 | |
8289 | else case e in #( | |
8290 | e) if { ac_try='${CXX-c++} -c -Werror -finput-charset=ascii -xc++ /dev/null -S -o /dev/null' | |
8291 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
8292 | (eval $ac_try) 2>&5 | |
8293 | ac_status=$? | |
8294 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8295 | test $ac_status = 0; }; } | |
8296 | then : | |
8297 | libc_cv_test_cxxflags_finput_charset_ascii="-finput-charset=ascii" | |
8298 | else case e in #( | |
8299 | e) libc_cv_test_cxxflags_finput_charset_ascii= | |
8300 | ;; | |
8301 | esac | |
8302 | fi ;; | |
8303 | esac | |
8304 | fi | |
8305 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cxxflags_finput_charset_ascii" >&5 | |
8306 | printf "%s\n" "$libc_cv_test_cxxflags_finput_charset_ascii" >&6; } | |
8307 | ||
8308 | CXX="$saved_CXX" | |
8309 | ||
8310 | ||
8311 | config_vars="$config_vars | |
8312 | test-config-cxxflags-finput-charset-ascii = $libc_cv_test_cxxflags_finput_charset_ascii" | |
8313 | ||
8314 | conftest_code=" | |
8315 | extern int not_exist (void); | |
8316 | ||
8317 | inline int make_unique (void) | |
8318 | { | |
8319 | /* Static variables in inline functions and classes | |
8320 | generate STB_GNU_UNIQUE symbols. */ | |
8321 | static int unique; | |
8322 | return ++unique; | |
8323 | } | |
8324 | ||
8325 | int foo (void) | |
8326 | { | |
8327 | return make_unique () + not_exist (); | |
8328 | } | |
8329 | " | |
8330 | ||
8331 | ||
8332 | cat > conftest.cc <<EOF | |
8333 | $conftest_code | |
8334 | EOF | |
8335 | ||
8336 | saved_CXX="$CXX" | |
8337 | CXX="$TEST_CXX" | |
8338 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for STB_GNU_UNIQUE in testing" >&5 | |
8339 | printf %s "checking for STB_GNU_UNIQUE in testing... " >&6; } | |
8340 | if test ${libc_cv_test_stb_gnu_unique+y} | |
8341 | then : | |
8342 | printf %s "(cached) " >&6 | |
8343 | else case e in #( | |
8344 | e) if { ac_try='${CXX-c++} $CXXFLAGS $CPPFLAGS -c conftest.cc -o conftest 1>&5' | |
8345 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
8346 | (eval $ac_try) 2>&5 | |
8347 | ac_status=$? | |
8348 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
8349 | test $ac_status = 0; }; } | |
8350 | then | |
8351 | ||
8352 | if LC_ALL=C $READELF -sW conftest \ | |
8353 | | grep -q "UNIQUE.* _ZZ11make_uniquevE6unique"; then | |
8354 | libc_cv_test_stb_gnu_unique=yes | |
8355 | else | |
8356 | libc_cv_test_stb_gnu_unique=no | |
8357 | fi | |
8358 | ||
8359 | else | |
8360 | libc_cv_test_stb_gnu_unique=no | |
8361 | fi ;; | |
8362 | esac | |
8363 | fi | |
8364 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_stb_gnu_unique" >&5 | |
8365 | printf "%s\n" "$libc_cv_test_stb_gnu_unique" >&6; } | |
8366 | ||
8367 | CXX="$saved_CXX" | |
8368 | ||
8369 | rm -f conftest* | |
8370 | config_vars="$config_vars | |
8371 | have-test-stb-gnu-unique = $libc_cv_test_stb_gnu_unique" | |
8372 | ||
8373 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libgd" >&5 | |
8374 | printf %s "checking for libgd... " >&6; } | |
8375 | if test "$with_gd" != "no"; then | |
8376 | old_CFLAGS="$CFLAGS" | |
8377 | CFLAGS="$CFLAGS $libgd_include" | |
8378 | old_LDFLAGS="$LDFLAGS" | |
8379 | LDFLAGS="$LDFLAGS $libgd_ldflags" | |
8380 | old_LIBS="$LIBS" | |
8381 | LIBS="$LIBS -lgd -lpng -lz -lm" | |
8382 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8383 | /* end confdefs.h. */ | |
8384 | #include <gd.h> | |
8385 | int | |
8386 | main (void) | |
8387 | { | |
8388 | gdImagePng (0, 0) | |
8389 | ; | |
8390 | return 0; | |
8391 | } | |
8392 | _ACEOF | |
8393 | if ac_fn_c_try_link "$LINENO" | |
8394 | then : | |
8395 | LIBGD=yes | |
8396 | else case e in #( | |
8397 | e) LIBGD=no ;; | |
8398 | esac | |
8399 | fi | |
8400 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
8401 | conftest$ac_exeext conftest.$ac_ext | |
8402 | CFLAGS="$old_CFLAGS" | |
8403 | LDFLAGS="$old_LDFLAGS" | |
8404 | LIBS="$old_LIBS" | |
8405 | else | |
8406 | LIBGD=no | |
8407 | fi | |
8408 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBGD" >&5 | |
8409 | printf "%s\n" "$LIBGD" >&6; } | |
8410 | ||
8411 | ||
8412 | # SELinux detection | |
8413 | if test x$with_selinux = xno ; then | |
8414 | have_selinux=no; | |
8415 | else | |
8416 | # See if we have the SELinux library | |
8417 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5 | |
8418 | printf %s "checking for is_selinux_enabled in -lselinux... " >&6; } | |
8419 | if test ${ac_cv_lib_selinux_is_selinux_enabled+y} | |
8420 | then : | |
8421 | printf %s "(cached) " >&6 | |
8422 | else case e in #( | |
8423 | e) ac_check_lib_save_LIBS=$LIBS | |
8424 | LIBS="-lselinux $LIBS" | |
8425 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8426 | /* end confdefs.h. */ | |
8427 | ||
8428 | /* Override any GCC internal prototype to avoid an error. | |
8429 | Use char because int might match the return type of a GCC | |
8430 | builtin and then its argument prototype would still apply. | |
8431 | The 'extern "C"' is for builds by C++ compilers; | |
8432 | although this is not generally supported in C code supporting it here | |
8433 | has little cost and some practical benefit (sr 110532). */ | |
8434 | #ifdef __cplusplus | |
8435 | extern "C" | |
8436 | #endif | |
8437 | char is_selinux_enabled (void); | |
8438 | int | |
8439 | main (void) | |
8440 | { | |
8441 | return is_selinux_enabled (); | |
8442 | ; | |
8443 | return 0; | |
8444 | } | |
8445 | _ACEOF | |
8446 | if ac_fn_c_try_link "$LINENO" | |
8447 | then : | |
8448 | ac_cv_lib_selinux_is_selinux_enabled=yes | |
8449 | else case e in #( | |
8450 | e) ac_cv_lib_selinux_is_selinux_enabled=no ;; | |
8451 | esac | |
8452 | fi | |
8453 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
8454 | conftest$ac_exeext conftest.$ac_ext | |
8455 | LIBS=$ac_check_lib_save_LIBS ;; | |
8456 | esac | |
8457 | fi | |
8458 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 | |
8459 | printf "%s\n" "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
8460 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes | |
8461 | then : | |
8462 | have_selinux=yes | |
8463 | else case e in #( | |
8464 | e) have_selinux=no ;; | |
8465 | esac | |
8466 | fi | |
8467 | ||
8468 | if test x$with_selinux = xyes ; then | |
8469 | if test x$have_selinux = xno ; then | |
8470 | as_fn_error $? "SELinux explicitly required, but SELinux library not found" "$LINENO" 5 | |
8471 | fi | |
8472 | fi | |
8473 | fi | |
8474 | # Check if we're building with SELinux support. | |
8475 | if test "x$have_selinux" = xyes; then | |
8476 | ||
8477 | printf "%s\n" "#define HAVE_SELINUX 1" >>confdefs.h | |
8478 | ||
8479 | ||
8480 | # See if we have the libaudit library | |
8481 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for audit_log_user_avc_message in -laudit" >&5 | |
8482 | printf %s "checking for audit_log_user_avc_message in -laudit... " >&6; } | |
8483 | if test ${ac_cv_lib_audit_audit_log_user_avc_message+y} | |
8484 | then : | |
8485 | printf %s "(cached) " >&6 | |
8486 | else case e in #( | |
8487 | e) ac_check_lib_save_LIBS=$LIBS | |
8488 | LIBS="-laudit $LIBS" | |
8489 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8490 | /* end confdefs.h. */ | |
8491 | ||
8492 | /* Override any GCC internal prototype to avoid an error. | |
8493 | Use char because int might match the return type of a GCC | |
8494 | builtin and then its argument prototype would still apply. | |
8495 | The 'extern "C"' is for builds by C++ compilers; | |
8496 | although this is not generally supported in C code supporting it here | |
8497 | has little cost and some practical benefit (sr 110532). */ | |
8498 | #ifdef __cplusplus | |
8499 | extern "C" | |
8500 | #endif | |
8501 | char audit_log_user_avc_message (void); | |
8502 | int | |
8503 | main (void) | |
8504 | { | |
8505 | return audit_log_user_avc_message (); | |
8506 | ; | |
8507 | return 0; | |
8508 | } | |
8509 | _ACEOF | |
8510 | if ac_fn_c_try_link "$LINENO" | |
8511 | then : | |
8512 | ac_cv_lib_audit_audit_log_user_avc_message=yes | |
8513 | else case e in #( | |
8514 | e) ac_cv_lib_audit_audit_log_user_avc_message=no ;; | |
8515 | esac | |
8516 | fi | |
8517 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
8518 | conftest$ac_exeext conftest.$ac_ext | |
8519 | LIBS=$ac_check_lib_save_LIBS ;; | |
8520 | esac | |
8521 | fi | |
8522 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5 | |
8523 | printf "%s\n" "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; } | |
8524 | if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = xyes | |
8525 | then : | |
8526 | have_libaudit=yes | |
8527 | else case e in #( | |
8528 | e) have_libaudit=no ;; | |
8529 | esac | |
8530 | fi | |
8531 | ||
8532 | if test "x$have_libaudit" = xyes; then | |
8533 | ||
8534 | printf "%s\n" "#define HAVE_LIBAUDIT 1" >>confdefs.h | |
8535 | ||
8536 | fi | |
8537 | ||
8538 | ||
8539 | # See if we have the libcap library | |
8540 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5 | |
8541 | printf %s "checking for cap_init in -lcap... " >&6; } | |
8542 | if test ${ac_cv_lib_cap_cap_init+y} | |
8543 | then : | |
8544 | printf %s "(cached) " >&6 | |
8545 | else case e in #( | |
8546 | e) ac_check_lib_save_LIBS=$LIBS | |
8547 | LIBS="-lcap $LIBS" | |
8548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8549 | /* end confdefs.h. */ | |
8550 | ||
8551 | /* Override any GCC internal prototype to avoid an error. | |
8552 | Use char because int might match the return type of a GCC | |
8553 | builtin and then its argument prototype would still apply. | |
8554 | The 'extern "C"' is for builds by C++ compilers; | |
8555 | although this is not generally supported in C code supporting it here | |
8556 | has little cost and some practical benefit (sr 110532). */ | |
8557 | #ifdef __cplusplus | |
8558 | extern "C" | |
8559 | #endif | |
8560 | char cap_init (void); | |
8561 | int | |
8562 | main (void) | |
8563 | { | |
8564 | return cap_init (); | |
8565 | ; | |
8566 | return 0; | |
8567 | } | |
8568 | _ACEOF | |
8569 | if ac_fn_c_try_link "$LINENO" | |
8570 | then : | |
8571 | ac_cv_lib_cap_cap_init=yes | |
8572 | else case e in #( | |
8573 | e) ac_cv_lib_cap_cap_init=no ;; | |
8574 | esac | |
8575 | fi | |
8576 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
8577 | conftest$ac_exeext conftest.$ac_ext | |
8578 | LIBS=$ac_check_lib_save_LIBS ;; | |
8579 | esac | |
8580 | fi | |
8581 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5 | |
8582 | printf "%s\n" "$ac_cv_lib_cap_cap_init" >&6; } | |
8583 | if test "x$ac_cv_lib_cap_cap_init" = xyes | |
8584 | then : | |
8585 | have_libcap=yes | |
8586 | else case e in #( | |
8587 | e) have_libcap=no ;; | |
8588 | esac | |
8589 | fi | |
8590 | ||
8591 | if test "x$have_libcap" = xyes; then | |
8592 | ||
8593 | printf "%s\n" "#define HAVE_LIBCAP 1" >>confdefs.h | |
8594 | ||
8595 | fi | |
8596 | ||
8597 | fi | |
8598 | ||
8599 | ||
8600 | no_fortify_source="-U_FORTIFY_SOURCE" | |
8601 | fortify_source="${no_fortify_source}" | |
8602 | ||
8603 | ||
8604 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for maximum supported _FORTIFY_SOURCE level" >&5 | |
8605 | printf %s "checking for maximum supported _FORTIFY_SOURCE level... " >&6; } | |
8606 | if test ${libc_cv_supported_fortify_source+y} | |
8607 | then : | |
8608 | printf %s "(cached) " >&6 | |
8609 | else case e in #( | |
8610 | e) | |
8611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8612 | /* end confdefs.h. */ | |
8613 | ||
8614 | int | |
8615 | main (void) | |
8616 | { | |
8617 | __builtin_dynamic_object_size("", 0) | |
8618 | ; | |
8619 | return 0; | |
8620 | } | |
8621 | _ACEOF | |
8622 | if ac_fn_c_try_link "$LINENO" | |
8623 | then : | |
8624 | libc_cv_supported_fortify_source=3 | |
8625 | else case e in #( | |
8626 | e) libc_cv_supported_fortify_source=2 ;; | |
8627 | esac | |
8628 | fi | |
8629 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
8630 | conftest$ac_exeext conftest.$ac_ext | |
8631 | ;; | |
8632 | esac | |
8633 | fi | |
8634 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_supported_fortify_source" >&5 | |
8635 | printf "%s\n" "$libc_cv_supported_fortify_source" >&6; } | |
8636 | if test "$TEST_CC" = "$CC"; then | |
8637 | libc_cv_test_supported_fortify_source=$libc_cv_supported_fortify_source | |
8638 | else | |
8639 | ||
8640 | saved_CC="$CC" | |
8641 | CC="$TEST_CC" | |
8642 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for maximum supported _FORTIFY_SOURCE level in testing" >&5 | |
8643 | printf %s "checking for maximum supported _FORTIFY_SOURCE level in testing... " >&6; } | |
8644 | if test ${libc_cv_test_supported_fortify_source+y} | |
8645 | then : | |
8646 | printf %s "(cached) " >&6 | |
8647 | else case e in #( | |
8648 | e) | |
8649 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8650 | /* end confdefs.h. */ | |
8651 | ||
8652 | int | |
8653 | main (void) | |
8654 | { | |
8655 | __builtin_dynamic_object_size("", 0) | |
8656 | ; | |
8657 | return 0; | |
8658 | } | |
8659 | _ACEOF | |
8660 | if ac_fn_c_try_link "$LINENO" | |
8661 | then : | |
8662 | libc_cv_test_supported_fortify_source=3 | |
8663 | else case e in #( | |
8664 | e) libc_cv_test_supported_fortify_source=2 ;; | |
8665 | esac | |
8666 | fi | |
8667 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
8668 | conftest$ac_exeext conftest.$ac_ext | |
8669 | ;; | |
8670 | esac | |
8671 | fi | |
8672 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_supported_fortify_source" >&5 | |
8673 | printf "%s\n" "$libc_cv_test_supported_fortify_source" >&6; } | |
8674 | ||
8675 | CC="$saved_CC" | |
8676 | ||
8677 | fi | |
8678 | ||
8679 | ||
8680 | ||
8681 | case $enable_fortify_source in #( | |
8682 | yes) : | |
8683 | libc_cv_fortify_source=yes enable_fortify_source=$libc_cv_supported_fortify_source ;; #( | |
8684 | 1|2) : | |
8685 | libc_cv_fortify_source=yes ;; #( | |
8686 | 3) : | |
8687 | if test $libc_cv_supported_fortify_source = 3 | |
8688 | then : | |
8689 | libc_cv_fortify_source=yes | |
8690 | else case e in #( | |
8691 | e) as_fn_error $? "Compiler doesn't provide necessary support for _FORTIFY_SOURCE=3" "$LINENO" 5 ;; | |
8692 | esac | |
8693 | fi ;; #( | |
8694 | *) : | |
8695 | libc_cv_fortify_source=no ;; | |
8696 | esac | |
8697 | ||
8698 | if test "$libc_cv_fortify_source" = yes | |
8699 | then : | |
8700 | fortify_source="${fortify_source} -D_FORTIFY_SOURCE=${enable_fortify_source}" | |
8701 | ||
8702 | fi | |
8703 | ||
8704 | ||
8705 | ||
8706 | ||
8707 | ||
8708 | config_vars="$config_vars | |
8709 | supported-fortify = $libc_cv_supported_fortify_source" | |
8710 | ||
8711 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8712 | /* end confdefs.h. */ | |
8713 | ||
8714 | int | |
8715 | main (void) | |
8716 | { | |
8717 | ||
8718 | #ifndef _FILE_OFFSET_BITS | |
8719 | # error _FILE_OFFSET_BITS not defined | |
8720 | #endif | |
8721 | ; | |
8722 | return 0; | |
8723 | } | |
8724 | _ACEOF | |
8725 | if ac_fn_c_try_cpp "$LINENO" | |
8726 | then : | |
8727 | libc_cv_compiler_default_file_offset_bits=yes | |
8728 | else case e in #( | |
8729 | e) libc_cv_compiler_default_file_offset_bits=no ;; | |
8730 | esac | |
8731 | fi | |
8732 | rm -f conftest.err conftest.i conftest.$ac_ext | |
8733 | if test "$libc_cv_compiler_default_file_offset_bits" = yes | |
8734 | then : | |
8735 | no_file_offset_bits_source="-U_FILE_OFFSET_BITS" | |
8736 | fi | |
8737 | ||
8738 | config_vars="$config_vars | |
8739 | no-file-offset-bits-source = $no_file_offset_bits_source" | |
8740 | ||
8741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8742 | /* end confdefs.h. */ | |
8743 | ||
8744 | int | |
8745 | main (void) | |
8746 | { | |
8747 | ||
8748 | #ifndef _TIME_BITS | |
8749 | # error _TIME_BITS not defined | |
8750 | #endif | |
8751 | ; | |
8752 | return 0; | |
8753 | } | |
8754 | _ACEOF | |
8755 | if ac_fn_c_try_cpp "$LINENO" | |
8756 | then : | |
8757 | libc_cv_compiler_default_time_bits=yes | |
8758 | else case e in #( | |
8759 | e) libc_cv_compiler_default_time_bits=no ;; | |
8760 | esac | |
8761 | fi | |
8762 | rm -f conftest.err conftest.i conftest.$ac_ext | |
8763 | if test "$libc_cv_compiler_default_time_bits" = yes | |
8764 | then : | |
8765 | no_time_bits_source="-U_TIME_BITS" | |
8766 | fi | |
8767 | ||
8768 | config_vars="$config_vars | |
8769 | no-time-bits-source = $no_time_bits_source" | |
8770 | ||
8771 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the assembler requires one version per symbol" >&5 | |
8772 | printf %s "checking whether the assembler requires one version per symbol... " >&6; } | |
8773 | if test ${libc_cv_symver_needs_alias+y} | |
8774 | then : | |
8775 | printf %s "(cached) " >&6 | |
8776 | else case e in #( | |
8777 | e) cat > conftest.s <<EOF | |
8778 | .text | |
8779 | testfunc: | |
8780 | .globl testfunc | |
8781 | .symver testfunc, testfunc1@VERSION1 | |
8782 | .symver testfunc, testfunc1@VERSION2 | |
8783 | EOF | |
8784 | libc_cv_symver_needs_alias=no | |
8785 | if ${CC-cc} $ASFLAGS -c conftest.s 2>&5; then | |
8786 | libc_cv_symver_needs_alias=no | |
8787 | else | |
8788 | libc_cv_symver_needs_alias=yes | |
8789 | fi | |
8790 | rm conftest.* | |
8791 | ;; | |
8792 | esac | |
8793 | fi | |
8794 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_symver_needs_alias" >&5 | |
8795 | printf "%s\n" "$libc_cv_symver_needs_alias" >&6; } | |
8796 | if test "$libc_cv_symver_needs_alias" = yes; then | |
8797 | printf "%s\n" "#define SYMVER_NEEDS_ALIAS 1" >>confdefs.h | |
8798 | ||
8799 | fi | |
8800 | ||
8801 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_trap with no external dependencies" >&5 | |
8802 | printf %s "checking for __builtin_trap with no external dependencies... " >&6; } | |
8803 | if test ${libc_cv_builtin_trap+y} | |
8804 | then : | |
8805 | printf %s "(cached) " >&6 | |
8806 | else case e in #( | |
8807 | e) libc_cv_builtin_trap=no | |
8808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8809 | /* end confdefs.h. */ | |
8810 | ||
8811 | int | |
8812 | main (void) | |
8813 | { | |
8814 | __builtin_trap () | |
8815 | ; | |
8816 | return 0; | |
8817 | } | |
8818 | _ACEOF | |
8819 | if ac_fn_c_try_compile "$LINENO" | |
8820 | then : | |
8821 | ||
8822 | libc_undefs=`$NM -u conftest.o | | |
8823 | LC_ALL=C $AWK '$1 == "U" { print $2 | "sort -u"; next } { exit(1) }' \ | |
8824 | 2>&5` || { | |
8825 | as_fn_error $? "confusing output from $NM -u" "$LINENO" 5 | |
8826 | } | |
8827 | echo >&5 "libc_undefs='$libc_undefs'" | |
8828 | if test -z "$libc_undefs"; then | |
8829 | libc_cv_builtin_trap=yes | |
8830 | fi | |
8831 | fi | |
8832 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
8833 | esac | |
8834 | fi | |
8835 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_builtin_trap" >&5 | |
8836 | printf "%s\n" "$libc_cv_builtin_trap" >&6; } | |
8837 | if test $libc_cv_builtin_trap = yes; then | |
8838 | printf "%s\n" "#define HAVE_BUILTIN_TRAP 1" >>confdefs.h | |
8839 | ||
8840 | fi | |
8841 | ||
8842 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports __attribute__ ((aligned (65536)))" >&5 | |
8843 | printf %s "checking whether the compiler supports __attribute__ ((aligned (65536)))... " >&6; } | |
8844 | if test ${libc_cv_aligned_65536+y} | |
8845 | then : | |
8846 | printf %s "(cached) " >&6 | |
8847 | else case e in #( | |
8848 | e) | |
8849 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8850 | /* end confdefs.h. */ | |
8851 | ||
8852 | char bss0xb5dce8 __attribute__ ((aligned (65536))); | |
8853 | ||
8854 | _ACEOF | |
8855 | if ac_fn_c_try_compile "$LINENO" | |
8856 | then : | |
8857 | libc_cv_aligned_65536=yes | |
8858 | else case e in #( | |
8859 | e) libc_cv_aligned_65536=no ;; | |
8860 | esac | |
8861 | fi | |
8862 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
8863 | ;; | |
8864 | esac | |
8865 | fi | |
8866 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_aligned_65536" >&5 | |
8867 | printf "%s\n" "$libc_cv_aligned_65536" >&6; } | |
8868 | config_vars="$config_vars | |
8869 | aligned-65536 = $libc_cv_aligned_65536" | |
8870 | ||
8871 | ac_ext=cpp | |
8872 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8873 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8874 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8875 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8876 | ||
8877 | ||
8878 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports thread_local" >&5 | |
8879 | printf %s "checking whether the C++ compiler supports thread_local... " >&6; } | |
8880 | if test ${libc_cv_cxx_thread_local+y} | |
8881 | then : | |
8882 | printf %s "(cached) " >&6 | |
8883 | else case e in #( | |
8884 | e) | |
8885 | old_CXXFLAGS="$CXXFLAGS" | |
8886 | CXXFLAGS="$CXXFLAGS -std=gnu++11" | |
8887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8888 | /* end confdefs.h. */ | |
8889 | ||
8890 | #include <thread> | |
8891 | ||
8892 | // Compiler support. | |
8893 | struct S | |
8894 | { | |
8895 | S (); | |
8896 | ~S (); | |
8897 | }; | |
8898 | thread_local S s; | |
8899 | S * get () { return &s; } | |
8900 | ||
8901 | // libstdc++ support. | |
8902 | #ifndef _GLIBCXX_HAVE___CXA_THREAD_ATEXIT_IMPL | |
8903 | #error __cxa_thread_atexit_impl not supported | |
8904 | #endif | |
8905 | ||
8906 | _ACEOF | |
8907 | if ac_fn_cxx_try_compile "$LINENO" | |
8908 | then : | |
8909 | libc_cv_cxx_thread_local=yes | |
8910 | else case e in #( | |
8911 | e) libc_cv_cxx_thread_local=no ;; | |
8912 | esac | |
8913 | fi | |
8914 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
8915 | CXXFLAGS="$old_CXXFLAGS" | |
8916 | ;; | |
8917 | esac | |
8918 | fi | |
8919 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_thread_local" >&5 | |
8920 | printf "%s\n" "$libc_cv_cxx_thread_local" >&6; } | |
8921 | ||
8922 | ||
8923 | ac_ext=c | |
8924 | ac_cpp='$CPP $CPPFLAGS' | |
8925 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8926 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8927 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8928 | ||
8929 | ||
8930 | ### End of automated tests. | |
8931 | ### Now run sysdeps configure fragments. | |
8932 | ||
8933 | # They also can set these variables. | |
8934 | use_ldconfig=no | |
8935 | ldd_rewrite_script=no | |
8936 | libc_cv_sysconfdir=$sysconfdir | |
8937 | libc_cv_localstatedir=$localstatedir | |
8938 | libc_cv_gcc_unwind_find_fde=no | |
8939 | libc_cv_idn=no | |
8940 | pthread_in_libc=yes | |
8941 | ||
8942 | # Iterate over all the sysdep directories we will use, running their | |
8943 | # configure fragments. | |
8944 | for dir in $sysnames; do | |
8945 | case $dir in | |
8946 | /*) dest=$dir ;; | |
8947 | *) dest=$srcdir/$dir ;; | |
8948 | esac | |
8949 | if test -r $dest/configure; then | |
8950 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: running configure fragment for $dir" >&5 | |
8951 | printf "%s\n" "running configure fragment for $dir" >&6; } | |
8952 | . $dest/configure | |
8953 | fi | |
8954 | done | |
8955 | ||
8956 | if test x"$build_mathvec" = xnotset; then | |
8957 | build_mathvec=no | |
8958 | fi | |
8959 | config_vars="$config_vars | |
8960 | build-mathvec = $build_mathvec" | |
8961 | ||
8962 | ||
8963 | ||
8964 | ||
8965 | if test x$libc_cv_gcc_unwind_find_fde = xyes; then | |
8966 | printf "%s\n" "#define EXPORT_UNWIND_FIND_FDE 1" >>confdefs.h | |
8967 | ||
8968 | fi | |
8969 | ||
8970 | ||
8971 | # A sysdeps configure fragment can reset this if IFUNC is not actually | |
8972 | # usable even though the assembler knows how to generate the symbol type. | |
8973 | if test x"$libc_cv_ld_gnu_indirect_function" = xyes; then | |
8974 | printf "%s\n" "#define HAVE_IFUNC 1" >>confdefs.h | |
8975 | ||
8976 | fi | |
8977 | config_vars="$config_vars | |
8978 | have-ifunc = $libc_cv_ld_gnu_indirect_function" | |
8979 | ||
8980 | if test x"$libc_cv_gcc_indirect_function" = xyes; then | |
8981 | printf "%s\n" "#define HAVE_GCC_IFUNC 1" >>confdefs.h | |
8982 | ||
8983 | fi | |
8984 | config_vars="$config_vars | |
8985 | have-gcc-ifunc = $libc_cv_gcc_indirect_function" | |
8986 | ||
8987 | # This is far from the AC_ARG_ENABLE that sets it so that a sysdeps | |
8988 | # configure fragment can override the value to prevent this AC_DEFINE. | |
8989 | ||
8990 | if test "x$use_nscd" != xno; then | |
8991 | printf "%s\n" "#define USE_NSCD 1" >>confdefs.h | |
8992 | ||
8993 | fi | |
8994 | if test "x$build_nscd" = xdefault; then | |
8995 | build_nscd=$use_nscd | |
8996 | fi | |
8997 | ||
8998 | ||
8999 | ||
9000 | ||
9001 | ||
9002 | ||
9003 | ||
9004 | ||
9005 | if test x$use_ldconfig = xyes; then | |
9006 | printf "%s\n" "#define USE_LDCONFIG 1" >>confdefs.h | |
9007 | ||
9008 | fi | |
9009 | ||
9010 | ||
9011 | ||
9012 | ||
9013 | ||
9014 | ||
9015 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -fPIC is default" >&5 | |
9016 | printf %s "checking whether -fPIC is default... " >&6; } | |
9017 | if test ${libc_cv_pic_default+y} | |
9018 | then : | |
9019 | printf %s "(cached) " >&6 | |
9020 | else case e in #( | |
9021 | e) libc_cv_pic_default=yes | |
9022 | cat > conftest.c <<EOF | |
9023 | #if defined __PIC__ || defined __pic__ || defined PIC || defined pic | |
9024 | # error PIC is default. | |
9025 | #endif | |
9026 | EOF | |
9027 | if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then | |
9028 | libc_cv_pic_default=no | |
9029 | fi | |
9030 | rm -f conftest.* ;; | |
9031 | esac | |
9032 | fi | |
9033 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pic_default" >&5 | |
9034 | printf "%s\n" "$libc_cv_pic_default" >&6; } | |
9035 | config_vars="$config_vars | |
9036 | build-pic-default = $libc_cv_pic_default" | |
9037 | ||
9038 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -fPIE is default" >&5 | |
9039 | printf %s "checking whether -fPIE is default... " >&6; } | |
9040 | if test ${libc_cv_cc_pie_default+y} | |
9041 | then : | |
9042 | printf %s "(cached) " >&6 | |
9043 | else case e in #( | |
9044 | e) libc_cv_cc_pie_default=yes | |
9045 | cat > conftest.c <<EOF | |
9046 | #if defined __PIE__ || defined __pie__ || defined PIE || defined pie | |
9047 | # error PIE is default. | |
9048 | #endif | |
9049 | EOF | |
9050 | if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then | |
9051 | libc_cv_cc_pie_default=no | |
9052 | fi | |
9053 | rm -f conftest.* ;; | |
9054 | esac | |
9055 | fi | |
9056 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_pie_default" >&5 | |
9057 | printf "%s\n" "$libc_cv_cc_pie_default" >&6; } | |
9058 | config_vars="$config_vars | |
9059 | cc-pie-default = $libc_cv_cc_pie_default" | |
9060 | ||
9061 | # Get Position Dependent Executable (PDE) load address to be used to | |
9062 | # load static Position Independent Executable (PIE) at a known working | |
9063 | # non-zero load address. This is only used by glibc tests to verify | |
9064 | # that PIE and static PIE with non-zero load address work correctly. | |
9065 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking PDE load address" >&5 | |
9066 | printf %s "checking PDE load address... " >&6; } | |
9067 | if test ${libc_cv_pde_load_address+y} | |
9068 | then : | |
9069 | printf %s "(cached) " >&6 | |
9070 | else case e in #( | |
9071 | e) cat > conftest.S <<EOF | |
9072 | .globl _start | |
9073 | _start: | |
9074 | .globl __start | |
9075 | __start: | |
9076 | .byte 0 | |
9077 | EOF | |
9078 | if test $libc_cv_cc_pie_default = yes; then | |
9079 | pde_ld_flags="-no-pie" | |
9080 | fi | |
9081 | if ${CC-cc} $pde_ld_flags $CFLAGS $CPPFLAGS $LDFLAGS \ | |
9082 | -nostartfiles -nostdlib $no_ssp \ | |
9083 | -o conftest conftest.S 1>&5 2>&5; then | |
9084 | # Get the load address of the first PT_LOAD segment. | |
9085 | libc_cv_pde_load_address=$(LC_ALL=C $READELF -Wl conftest \ | |
9086 | | $AWK '/LOAD/ { print $3; exit 0; }') | |
9087 | else | |
9088 | as_fn_error $? "${CC-cc} can not create PDE" "$LINENO" 5 | |
9089 | fi | |
9090 | rm -f conftest* ;; | |
9091 | esac | |
9092 | fi | |
9093 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pde_load_address" >&5 | |
9094 | printf "%s\n" "$libc_cv_pde_load_address" >&6; } | |
9095 | config_vars="$config_vars | |
9096 | pde-load-address = $libc_cv_pde_load_address" | |
9097 | ||
9098 | # Get the linker command-line option to load executable at a non-zero | |
9099 | # load address. This is only used by glibc tests to verify that PIE and | |
9100 | # static PIE with non-zero load address work correctly. | |
9101 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports -Ttext-segment=$libc_cv_pde_load_address" >&5 | |
9102 | printf %s "checking for linker that supports -Ttext-segment=$libc_cv_pde_load_address... " >&6; } | |
9103 | libc_linker_feature=no | |
9104 | cat > conftest.c <<EOF | |
9105 | int _start (void) { return 42; } | |
9106 | EOF | |
9107 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp | |
9108 | -Wl,-Ttext-segment=$libc_cv_pde_load_address -nostdlib -nostartfiles | |
9109 | -fPIC -shared -o conftest.so conftest.c | |
9110 | 1>&5' | |
9111 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
9112 | (eval $ac_try) 2>&5 | |
9113 | ac_status=$? | |
9114 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9115 | test $ac_status = 0; }; } | |
9116 | then | |
9117 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-Ttext-segment=$libc_cv_pde_load_address -nostdlib \ | |
9118 | -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \ | |
9119 | | grep "warning: -Ttext-segment=$libc_cv_pde_load_address ignored" > /dev/null 2>&1; then | |
9120 | true | |
9121 | else | |
9122 | libc_linker_feature=yes | |
9123 | fi | |
9124 | fi | |
9125 | rm -f conftest* | |
9126 | if test $libc_linker_feature = yes; then | |
9127 | libc_cv_load_address_ldflag=-Wl,-Ttext-segment | |
9128 | else | |
9129 | libc_cv_load_address_ldflag= | |
9130 | fi | |
9131 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5 | |
9132 | printf "%s\n" "$libc_linker_feature" >&6; } | |
9133 | config_vars="$config_vars | |
9134 | load-address-ldflag = $libc_cv_load_address_ldflag" | |
9135 | ||
9136 | # Check if compilers support GCS in branch protection: | |
9137 | ||
9138 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports -mbranch-protection=gcs" >&5 | |
9139 | printf %s "checking if compiler supports -mbranch-protection=gcs... " >&6; } | |
9140 | if test ${libc_cv_cc_gcs+y} | |
9141 | then : | |
9142 | printf %s "(cached) " >&6 | |
9143 | else case e in #( | |
9144 | e) if { ac_try='${CC-cc} -Werror -mbranch-protection=gcs -xc /dev/null -S -o /dev/null' | |
9145 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
9146 | (eval $ac_try) 2>&5 | |
9147 | ac_status=$? | |
9148 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9149 | test $ac_status = 0; }; } | |
9150 | then : | |
9151 | libc_cv_cc_gcs=yes | |
9152 | else case e in #( | |
9153 | e) libc_cv_cc_gcs=no ;; | |
9154 | esac | |
9155 | fi ;; | |
9156 | esac | |
9157 | fi | |
9158 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_gcs" >&5 | |
9159 | printf "%s\n" "$libc_cv_cc_gcs" >&6; } | |
9160 | if test "$TEST_CC" = "$CC"; then | |
9161 | libc_cv_test_cc_gcs=$libc_cv_cc_gcs | |
9162 | else | |
9163 | ||
9164 | saved_CC="$CC" | |
9165 | CC="$TEST_CC" | |
9166 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports -mbranch-protection=gcs in testing" >&5 | |
9167 | printf %s "checking if compiler supports -mbranch-protection=gcs in testing... " >&6; } | |
9168 | if test ${libc_cv_test_cc_gcs+y} | |
9169 | then : | |
9170 | printf %s "(cached) " >&6 | |
9171 | else case e in #( | |
9172 | e) if { ac_try='${CC-cc} -Werror -mbranch-protection=gcs -xc /dev/null -S -o /dev/null' | |
9173 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
9174 | (eval $ac_try) 2>&5 | |
9175 | ac_status=$? | |
9176 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9177 | test $ac_status = 0; }; } | |
9178 | then : | |
9179 | libc_cv_test_cc_gcs=yes | |
9180 | else case e in #( | |
9181 | e) libc_cv_test_cc_gcs=no ;; | |
9182 | esac | |
9183 | fi ;; | |
9184 | esac | |
9185 | fi | |
9186 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_test_cc_gcs" >&5 | |
9187 | printf "%s\n" "$libc_cv_test_cc_gcs" >&6; } | |
9188 | ||
9189 | CC="$saved_CC" | |
9190 | ||
9191 | fi | |
9192 | ||
9193 | config_vars="$config_vars | |
9194 | have-cc-gcs = $libc_cv_cc_gcs" | |
9195 | config_vars="$config_vars | |
9196 | have-test-cc-gcs = $libc_cv_test_cc_gcs" | |
9197 | ||
9198 | # Check if linker supports GCS marking | |
9199 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z gcs=always" >&5 | |
9200 | printf %s "checking for linker that supports -z gcs=always... " >&6; } | |
9201 | libc_linker_feature=no | |
9202 | cat > conftest.c <<EOF | |
9203 | int _start (void) { return 42; } | |
9204 | EOF | |
9205 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp | |
9206 | -Wl,-z,gcs=always -nostdlib -nostartfiles | |
9207 | -fPIC -shared -o conftest.so conftest.c | |
9208 | 1>&5' | |
9209 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
9210 | (eval $ac_try) 2>&5 | |
9211 | ac_status=$? | |
9212 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9213 | test $ac_status = 0; }; } | |
9214 | then | |
9215 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,gcs=always -nostdlib \ | |
9216 | -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \ | |
9217 | | grep "warning: -z gcs=always ignored" > /dev/null 2>&1; then | |
9218 | true | |
9219 | else | |
9220 | libc_linker_feature=yes | |
9221 | fi | |
9222 | fi | |
9223 | rm -f conftest* | |
9224 | if test $libc_linker_feature = yes; then | |
9225 | libc_cv_ld_gcs=yes | |
9226 | else | |
9227 | libc_cv_ld_gcs=no | |
9228 | fi | |
9229 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5 | |
9230 | printf "%s\n" "$libc_linker_feature" >&6; } | |
9231 | config_vars="$config_vars | |
9232 | have-ld-gcs = $libc_cv_ld_gcs" | |
9233 | ||
9234 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can build programs as PIE" >&5 | |
9235 | printf %s "checking if we can build programs as PIE... " >&6; } | |
9236 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9237 | /* end confdefs.h. */ | |
9238 | #ifdef PIE_UNSUPPORTED | |
9239 | # error PIE is not supported | |
9240 | #endif | |
9241 | _ACEOF | |
9242 | if ac_fn_c_try_compile "$LINENO" | |
9243 | then : | |
9244 | libc_cv_pie_supported=yes | |
9245 | else case e in #( | |
9246 | e) libc_cv_pie_supported=no ;; | |
9247 | esac | |
9248 | fi | |
9249 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
9250 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pie_supported" >&5 | |
9251 | printf "%s\n" "$libc_cv_pie_supported" >&6; } | |
9252 | # Disable build-pie-default if target does not support it or glibc is | |
9253 | # configured with --disable-default-pie. | |
9254 | if test "x$default_pie" = xno; then | |
9255 | build_pie_default=no | |
9256 | else | |
9257 | build_pie_default=$libc_cv_pie_supported | |
9258 | fi | |
9259 | config_vars="$config_vars | |
9260 | build-pie-default = $build_pie_default" | |
9261 | ||
9262 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can build static PIE programs" >&5 | |
9263 | printf %s "checking if we can build static PIE programs... " >&6; } | |
9264 | libc_cv_static_pie_supported=$libc_cv_pie_supported | |
9265 | if test "x$libc_cv_pie_supported" != xno \ | |
9266 | -a "$libc_cv_no_dynamic_linker" = yes; then | |
9267 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9268 | /* end confdefs.h. */ | |
9269 | #ifndef SUPPORT_STATIC_PIE | |
9270 | # error static PIE is not supported | |
9271 | #endif | |
9272 | _ACEOF | |
9273 | if ac_fn_c_try_compile "$LINENO" | |
9274 | then : | |
9275 | libc_cv_static_pie_supported=yes | |
9276 | else case e in #( | |
9277 | e) libc_cv_static_pie_supported=no ;; | |
9278 | esac | |
9279 | fi | |
9280 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
9281 | fi | |
9282 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie_supported" >&5 | |
9283 | printf "%s\n" "$libc_cv_static_pie_supported" >&6; } | |
9284 | ||
9285 | # Enable static-pie only if it is available and glibc isn't configured | |
9286 | # with --disable-default-pie. | |
9287 | if test "x$default_pie" = xno; then | |
9288 | libc_cv_static_pie=no | |
9289 | else | |
9290 | libc_cv_static_pie=$libc_cv_static_pie_supported | |
9291 | fi | |
9292 | if test "$libc_cv_static_pie" = "yes"; then | |
9293 | printf "%s\n" "#define ENABLE_STATIC_PIE 1" >>confdefs.h | |
9294 | ||
9295 | fi | |
9296 | config_vars="$config_vars | |
9297 | enable-static-pie = $libc_cv_static_pie" | |
9298 | ||
9299 | # Check if we can link support functionality against libgcc_s. | |
9300 | # Must not be used for linking installed binaries, to produce the | |
9301 | # same binaries for bootstrapped and bootstrapping builds (the latter | |
9302 | # with a GCC that does not build libgcc_s). | |
9303 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC can link against -lgcc_s" >&5 | |
9304 | printf %s "checking whether $CC can link against -lgcc_s... " >&6; } | |
9305 | if test ${libc_cv_have_libgcc_s+y} | |
9306 | then : | |
9307 | printf %s "(cached) " >&6 | |
9308 | else case e in #( | |
9309 | e) old_LIBS="$LIBS" | |
9310 | LIBS="$LIBS -lgcc_s" | |
9311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9312 | /* end confdefs.h. */ | |
9313 | ||
9314 | int | |
9315 | main (void) | |
9316 | { | |
9317 | ||
9318 | ; | |
9319 | return 0; | |
9320 | } | |
9321 | _ACEOF | |
9322 | if ac_fn_c_try_link "$LINENO" | |
9323 | then : | |
9324 | libc_cv_have_libgcc_s=yes | |
9325 | else case e in #( | |
9326 | e) libc_cv_have_libgcc_s=no ;; | |
9327 | esac | |
9328 | fi | |
9329 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
9330 | conftest$ac_exeext conftest.$ac_ext | |
9331 | LIBS="$old_LIBS" ;; | |
9332 | esac | |
9333 | fi | |
9334 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_libgcc_s" >&5 | |
9335 | printf "%s\n" "$libc_cv_have_libgcc_s" >&6; } | |
9336 | config_vars="$config_vars | |
9337 | have-libgcc_s = $libc_cv_have_libgcc_s" | |
9338 | ||
9339 | # Support configure.ac under sysdeps. | |
9340 | ||
9341 | ||
9342 | ||
9343 | ||
9344 | # Set the `multidir' variable by grabbing the variable from the compiler. | |
9345 | # We do it once and save the result in a generated makefile. | |
9346 | libc_cv_multidir=`${CC-cc} $CFLAGS $CPPFLAGS -print-multi-directory` | |
9347 | ||
9348 | ||
9349 | ||
9350 | ||
9351 | ||
9352 | ||
9353 | ||
9354 | ||
9355 | ||
9356 | VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h` | |
9357 | RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h` | |
9358 | ||
9359 | ||
9360 | ||
9361 | if test "$pthread_in_libc" = yes; then | |
9362 | printf "%s\n" "#define PTHREAD_IN_LIBC 1" >>confdefs.h | |
9363 | ||
9364 | fi | |
9365 | ||
9366 | ||
9367 | ac_config_files="$ac_config_files config.make Makefile" | |
9368 | ||
9369 | ac_config_commands="$ac_config_commands default" | |
9370 | ||
9371 | cat >confcache <<\_ACEOF | |
9372 | # This file is a shell script that caches the results of configure | |
9373 | # tests run on this system so they can be shared between configure | |
9374 | # scripts and configure runs, see configure's option --config-cache. | |
9375 | # It is not useful on other systems. If it contains results you don't | |
9376 | # want to keep, you may remove or edit it. | |
9377 | # | |
9378 | # config.status only pays attention to the cache file if you give it | |
9379 | # the --recheck option to rerun configure. | |
9380 | # | |
9381 | # 'ac_cv_env_foo' variables (set or unset) will be overridden when | |
9382 | # loading this file, other *unset* 'ac_cv_foo' will be assigned the | |
9383 | # following values. | |
9384 | ||
9385 | _ACEOF | |
9386 | ||
9387 | # The following way of writing the cache mishandles newlines in values, | |
9388 | # but we know of no workaround that is simple, portable, and efficient. | |
9389 | # So, we kill variables containing newlines. | |
9390 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9391 | # and sets the high bit in the cache file unless we assign to the vars. | |
9392 | ( | |
9393 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
9394 | eval ac_val=\$$ac_var | |
9395 | case $ac_val in #( | |
9396 | *${as_nl}*) | |
9397 | case $ac_var in #( | |
9398 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
9399 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
9400 | esac | |
9401 | case $ac_var in #( | |
9402 | _ | IFS | as_nl) ;; #( | |
9403 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
9404 | *) { eval $ac_var=; unset $ac_var;} ;; | |
9405 | esac ;; | |
9406 | esac | |
9407 | done | |
9408 | ||
9409 | (set) 2>&1 | | |
9410 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
9411 | *${as_nl}ac_space=\ *) | |
9412 | # 'set' does not quote correctly, so add quotes: double-quote | |
9413 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
9414 | sed -n \ | |
9415 | "s/'/'\\\\''/g; | |
9416 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
9417 | ;; #( | |
9418 | *) | |
9419 | # 'set' quotes correctly as required by POSIX, so do not add quotes. | |
9420 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
9421 | ;; | |
9422 | esac | | |
9423 | sort | |
9424 | ) | | |
9425 | sed ' | |
9426 | /^ac_cv_env_/b end | |
9427 | t clear | |
9428 | :clear | |
9429 | s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ | |
9430 | t end | |
9431 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
9432 | :end' >>confcache | |
9433 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
9434 | if test -w "$cache_file"; then | |
9435 | if test "x$cache_file" != "x/dev/null"; then | |
9436 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
9437 | printf "%s\n" "$as_me: updating cache $cache_file" >&6;} | |
9438 | if test ! -f "$cache_file" || test -h "$cache_file"; then | |
9439 | cat confcache >"$cache_file" | |
9440 | else | |
9441 | case $cache_file in #( | |
9442 | */* | ?:*) | |
9443 | mv -f confcache "$cache_file"$$ && | |
9444 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
9445 | *) | |
9446 | mv -f confcache "$cache_file" ;; | |
9447 | esac | |
9448 | fi | |
9449 | fi | |
9450 | else | |
9451 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
9452 | printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} | |
9453 | fi | |
9454 | fi | |
9455 | rm -f confcache | |
9456 | ||
9457 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
9458 | # Let make expand exec_prefix. | |
9459 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9460 | ||
9461 | DEFS=-DHAVE_CONFIG_H | |
9462 | ||
9463 | ac_libobjs= | |
9464 | ac_ltlibobjs= | |
9465 | U= | |
9466 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
9467 | # 1. Remove the extension, and $U if already installed. | |
9468 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
9469 | ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` | |
9470 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
9471 | # will be set to the directory where LIBOBJS objects are built. | |
9472 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
9473 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
9474 | done | |
9475 | LIBOBJS=$ac_libobjs | |
9476 | ||
9477 | LTLIBOBJS=$ac_ltlibobjs | |
9478 | ||
9479 | ||
9480 | ||
9481 | : "${CONFIG_STATUS=./config.status}" | |
9482 | ac_write_fail=0 | |
9483 | ac_clean_files_save=$ac_clean_files | |
9484 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
9485 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
9486 | printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} | |
9487 | as_write_fail=0 | |
9488 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
9489 | #! $SHELL | |
9490 | # Generated by $as_me. | |
9491 | # Run this file to recreate the current configuration. | |
9492 | # Compiler output produced by configure, useful for debugging | |
9493 | # configure, is in config.log if it exists. | |
9494 | ||
9495 | debug=false | |
9496 | ac_cs_recheck=false | |
9497 | ac_cs_silent=false | |
9498 | ||
9499 | SHELL=\${CONFIG_SHELL-$SHELL} | |
9500 | export SHELL | |
9501 | _ASEOF | |
9502 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
9503 | ## -------------------- ## | |
9504 | ## M4sh Initialization. ## | |
9505 | ## -------------------- ## | |
9506 | ||
9507 | # Be more Bourne compatible | |
9508 | DUALCASE=1; export DUALCASE # for MKS sh | |
9509 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 | |
9510 | then : | |
9511 | emulate sh | |
9512 | NULLCMD=: | |
9513 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
9514 | # is contrary to our usage. Disable this feature. | |
9515 | alias -g '${1+"$@"}'='"$@"' | |
9516 | setopt NO_GLOB_SUBST | |
9517 | else case e in #( | |
9518 | e) case `(set -o) 2>/dev/null` in #( | |
9519 | *posix*) : | |
9520 | set -o posix ;; #( | |
9521 | *) : | |
9522 | ;; | |
9523 | esac ;; | |
9524 | esac | |
9525 | fi | |
9526 | ||
9527 | ||
9528 | ||
9529 | # Reset variables that may have inherited troublesome values from | |
9530 | # the environment. | |
9531 | ||
9532 | # IFS needs to be set, to space, tab, and newline, in precisely that order. | |
9533 | # (If _AS_PATH_WALK were called with IFS unset, it would have the | |
9534 | # side effect of setting IFS to empty, thus disabling word splitting.) | |
9535 | # Quoting is to prevent editors from complaining about space-tab. | |
9536 | as_nl=' | |
9537 | ' | |
9538 | export as_nl | |
9539 | IFS=" "" $as_nl" | |
9540 | ||
9541 | PS1='$ ' | |
9542 | PS2='> ' | |
9543 | PS4='+ ' | |
9544 | ||
9545 | # Ensure predictable behavior from utilities with locale-dependent output. | |
9546 | LC_ALL=C | |
9547 | export LC_ALL | |
9548 | LANGUAGE=C | |
9549 | export LANGUAGE | |
9550 | ||
9551 | # We cannot yet rely on "unset" to work, but we need these variables | |
9552 | # to be unset--not just set to an empty or harmless value--now, to | |
9553 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct | |
9554 | # also avoids known problems related to "unset" and subshell syntax | |
9555 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). | |
9556 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH | |
9557 | do eval test \${$as_var+y} \ | |
9558 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
9559 | done | |
9560 | ||
9561 | # Ensure that fds 0, 1, and 2 are open. | |
9562 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi | |
9563 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi | |
9564 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi | |
9565 | ||
9566 | # The user is always right. | |
9567 | if ${PATH_SEPARATOR+false} :; then | |
9568 | PATH_SEPARATOR=: | |
9569 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
9570 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
9571 | PATH_SEPARATOR=';' | |
9572 | } | |
9573 | fi | |
9574 | ||
9575 | ||
9576 | # Find who we are. Look in the path if we contain no directory separator. | |
9577 | as_myself= | |
9578 | case $0 in #(( | |
9579 | *[\\/]* ) as_myself=$0 ;; | |
9580 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9581 | for as_dir in $PATH | |
9582 | do | |
9583 | IFS=$as_save_IFS | |
9584 | case $as_dir in #((( | |
9585 | '') as_dir=./ ;; | |
9586 | */) ;; | |
9587 | *) as_dir=$as_dir/ ;; | |
9588 | esac | |
9589 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break | |
9590 | done | |
9591 | IFS=$as_save_IFS | |
9592 | ||
9593 | ;; | |
9594 | esac | |
9595 | # We did not find ourselves, most probably we were run as 'sh COMMAND' | |
9596 | # in which case we are not to be found in the path. | |
9597 | if test "x$as_myself" = x; then | |
9598 | as_myself=$0 | |
9599 | fi | |
9600 | if test ! -f "$as_myself"; then | |
9601 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
9602 | exit 1 | |
9603 | fi | |
9604 | ||
9605 | ||
9606 | ||
9607 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
9608 | # ---------------------------------------- | |
9609 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
9610 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
9611 | # script with STATUS, using 1 if that was 0. | |
9612 | as_fn_error () | |
9613 | { | |
9614 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
9615 | if test "$4"; then | |
9616 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
9617 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
9618 | fi | |
9619 | printf "%s\n" "$as_me: error: $2" >&2 | |
9620 | as_fn_exit $as_status | |
9621 | } # as_fn_error | |
9622 | ||
9623 | ||
9624 | # as_fn_set_status STATUS | |
9625 | # ----------------------- | |
9626 | # Set $? to STATUS, without forking. | |
9627 | as_fn_set_status () | |
9628 | { | |
9629 | return $1 | |
9630 | } # as_fn_set_status | |
9631 | ||
9632 | # as_fn_exit STATUS | |
9633 | # ----------------- | |
9634 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
9635 | as_fn_exit () | |
9636 | { | |
9637 | set +e | |
9638 | as_fn_set_status $1 | |
9639 | exit $1 | |
9640 | } # as_fn_exit | |
9641 | ||
9642 | # as_fn_unset VAR | |
9643 | # --------------- | |
9644 | # Portably unset VAR. | |
9645 | as_fn_unset () | |
9646 | { | |
9647 | { eval $1=; unset $1;} | |
9648 | } | |
9649 | as_unset=as_fn_unset | |
9650 | ||
9651 | # as_fn_append VAR VALUE | |
9652 | # ---------------------- | |
9653 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
9654 | # advantage of any shell optimizations that allow amortized linear growth over | |
9655 | # repeated appends, instead of the typical quadratic growth present in naive | |
9656 | # implementations. | |
9657 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null | |
9658 | then : | |
9659 | eval 'as_fn_append () | |
9660 | { | |
9661 | eval $1+=\$2 | |
9662 | }' | |
9663 | else case e in #( | |
9664 | e) as_fn_append () | |
9665 | { | |
9666 | eval $1=\$$1\$2 | |
9667 | } ;; | |
9668 | esac | |
9669 | fi # as_fn_append | |
9670 | ||
9671 | # as_fn_arith ARG... | |
9672 | # ------------------ | |
9673 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
9674 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
9675 | # must be portable across $(()) and expr. | |
9676 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null | |
9677 | then : | |
9678 | eval 'as_fn_arith () | |
9679 | { | |
9680 | as_val=$(( $* )) | |
9681 | }' | |
9682 | else case e in #( | |
9683 | e) as_fn_arith () | |
9684 | { | |
9685 | as_val=`expr "$@" || test $? -eq 1` | |
9686 | } ;; | |
9687 | esac | |
9688 | fi # as_fn_arith | |
9689 | ||
9690 | ||
9691 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
9692 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
9693 | as_expr=expr | |
9694 | else | |
9695 | as_expr=false | |
9696 | fi | |
9697 | ||
9698 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
9699 | as_basename=basename | |
9700 | else | |
9701 | as_basename=false | |
9702 | fi | |
9703 | ||
9704 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
9705 | as_dirname=dirname | |
9706 | else | |
9707 | as_dirname=false | |
9708 | fi | |
9709 | ||
9710 | as_me=`$as_basename -- "$0" || | |
9711 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
9712 | X"$0" : 'X\(//\)$' \| \ | |
9713 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
9714 | printf "%s\n" X/"$0" | | |
9715 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
9716 | s//\1/ | |
9717 | q | |
9718 | } | |
9719 | /^X\/\(\/\/\)$/{ | |
9720 | s//\1/ | |
9721 | q | |
9722 | } | |
9723 | /^X\/\(\/\).*/{ | |
9724 | s//\1/ | |
9725 | q | |
9726 | } | |
9727 | s/.*/./; q'` | |
9728 | ||
9729 | # Avoid depending upon Character Ranges. | |
9730 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
9731 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
9732 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
9733 | as_cr_digits='0123456789' | |
9734 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
9735 | ||
9736 | ||
9737 | # Determine whether it's possible to make 'echo' print without a newline. | |
9738 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed | |
9739 | # for compatibility with existing Makefiles. | |
9740 | ECHO_C= ECHO_N= ECHO_T= | |
9741 | case `echo -n x` in #((((( | |
9742 | -n*) | |
9743 | case `echo 'xy\c'` in | |
9744 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
9745 | xy) ECHO_C='\c';; | |
9746 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
9747 | ECHO_T=' ';; | |
9748 | esac;; | |
9749 | *) | |
9750 | ECHO_N='-n';; | |
9751 | esac | |
9752 | ||
9753 | # For backward compatibility with old third-party macros, we provide | |
9754 | # the shell variables $as_echo and $as_echo_n. New code should use | |
9755 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. | |
9756 | as_echo='printf %s\n' | |
9757 | as_echo_n='printf %s' | |
9758 | ||
9759 | rm -f conf$$ conf$$.exe conf$$.file | |
9760 | if test -d conf$$.dir; then | |
9761 | rm -f conf$$.dir/conf$$.file | |
9762 | else | |
9763 | rm -f conf$$.dir | |
9764 | mkdir conf$$.dir 2>/dev/null | |
9765 | fi | |
9766 | if (echo >conf$$.file) 2>/dev/null; then | |
9767 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
9768 | as_ln_s='ln -s' | |
9769 | # ... but there are two gotchas: | |
9770 | # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. | |
9771 | # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. | |
9772 | # In both cases, we have to default to 'cp -pR'. | |
9773 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
9774 | as_ln_s='cp -pR' | |
9775 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
9776 | as_ln_s=ln | |
9777 | else | |
9778 | as_ln_s='cp -pR' | |
9779 | fi | |
9780 | else | |
9781 | as_ln_s='cp -pR' | |
9782 | fi | |
9783 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
9784 | rmdir conf$$.dir 2>/dev/null | |
9785 | ||
9786 | ||
9787 | # as_fn_mkdir_p | |
9788 | # ------------- | |
9789 | # Create "$as_dir" as a directory, including parents if necessary. | |
9790 | as_fn_mkdir_p () | |
9791 | { | |
9792 | ||
9793 | case $as_dir in #( | |
9794 | -*) as_dir=./$as_dir;; | |
9795 | esac | |
9796 | test -d "$as_dir" || eval $as_mkdir_p || { | |
9797 | as_dirs= | |
9798 | while :; do | |
9799 | case $as_dir in #( | |
9800 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
9801 | *) as_qdir=$as_dir;; | |
9802 | esac | |
9803 | as_dirs="'$as_qdir' $as_dirs" | |
9804 | as_dir=`$as_dirname -- "$as_dir" || | |
9805 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9806 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
9807 | X"$as_dir" : 'X\(//\)$' \| \ | |
9808 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
9809 | printf "%s\n" X"$as_dir" | | |
9810 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
9811 | s//\1/ | |
9812 | q | |
9813 | } | |
9814 | /^X\(\/\/\)[^/].*/{ | |
9815 | s//\1/ | |
9816 | q | |
9817 | } | |
9818 | /^X\(\/\/\)$/{ | |
9819 | s//\1/ | |
9820 | q | |
9821 | } | |
9822 | /^X\(\/\).*/{ | |
9823 | s//\1/ | |
9824 | q | |
9825 | } | |
9826 | s/.*/./; q'` | |
9827 | test -d "$as_dir" && break | |
9828 | done | |
9829 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
9830 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
9831 | ||
9832 | ||
9833 | } # as_fn_mkdir_p | |
9834 | if mkdir -p . 2>/dev/null; then | |
9835 | as_mkdir_p='mkdir -p "$as_dir"' | |
9836 | else | |
9837 | test -d ./-p && rmdir ./-p | |
9838 | as_mkdir_p=false | |
9839 | fi | |
9840 | ||
9841 | ||
9842 | # as_fn_executable_p FILE | |
9843 | # ----------------------- | |
9844 | # Test if FILE is an executable regular file. | |
9845 | as_fn_executable_p () | |
9846 | { | |
9847 | test -f "$1" && test -x "$1" | |
9848 | } # as_fn_executable_p | |
9849 | as_test_x='test -x' | |
9850 | as_executable_p=as_fn_executable_p | |
9851 | ||
9852 | # Sed expression to map a string onto a valid CPP name. | |
9853 | as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
9854 | as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated | |
9855 | ||
9856 | # Sed expression to map a string onto a valid variable name. | |
9857 | as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
9858 | as_tr_sh="eval sed '$as_sed_sh'" # deprecated | |
9859 | ||
9860 | ||
9861 | exec 6>&1 | |
9862 | ## ----------------------------------- ## | |
9863 | ## Main body of $CONFIG_STATUS script. ## | |
9864 | ## ----------------------------------- ## | |
9865 | _ASEOF | |
9866 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
9867 | ||
9868 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
9869 | # Save the log message, to keep $0 and so on meaningful, and to | |
9870 | # report actual input values of CONFIG_FILES etc. instead of their | |
9871 | # values after options handling. | |
9872 | ac_log=" | |
9873 | This file was extended by GNU C Library $as_me (see version.h), which was | |
9874 | generated by GNU Autoconf 2.72. Invocation command line was | |
9875 | ||
9876 | CONFIG_FILES = $CONFIG_FILES | |
9877 | CONFIG_HEADERS = $CONFIG_HEADERS | |
9878 | CONFIG_LINKS = $CONFIG_LINKS | |
9879 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
9880 | $ $0 $@ | |
9881 | ||
9882 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
9883 | " | |
9884 | ||
9885 | _ACEOF | |
9886 | ||
9887 | case $ac_config_files in *" | |
9888 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
9889 | esac | |
9890 | ||
9891 | case $ac_config_headers in *" | |
9892 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
9893 | esac | |
9894 | ||
9895 | ||
9896 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
9897 | # Files that config.status was made for. | |
9898 | config_files="$ac_config_files" | |
9899 | config_headers="$ac_config_headers" | |
9900 | config_commands="$ac_config_commands" | |
9901 | ||
9902 | _ACEOF | |
9903 | ||
9904 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
9905 | ac_cs_usage="\ | |
9906 | '$as_me' instantiates files and other configuration actions | |
9907 | from templates according to the current configuration. Unless the files | |
9908 | and actions are specified as TAGs, all are instantiated by default. | |
9909 | ||
9910 | Usage: $0 [OPTION]... [TAG]... | |
9911 | ||
9912 | -h, --help print this help, then exit | |
9913 | -V, --version print version number and configuration settings, then exit | |
9914 | --config print configuration, then exit | |
9915 | -q, --quiet, --silent | |
9916 | do not print progress messages | |
9917 | -d, --debug don't remove temporary files | |
9918 | --recheck update $as_me by reconfiguring in the same conditions | |
9919 | --file=FILE[:TEMPLATE] | |
9920 | instantiate the configuration file FILE | |
9921 | --header=FILE[:TEMPLATE] | |
9922 | instantiate the configuration header FILE | |
9923 | ||
9924 | Configuration files: | |
9925 | $config_files | |
9926 | ||
9927 | Configuration headers: | |
9928 | $config_headers | |
9929 | ||
9930 | Configuration commands: | |
9931 | $config_commands | |
9932 | ||
9933 | Report bugs to <https://sourceware.org/bugzilla/>. | |
9934 | GNU C Library home page: <https://www.gnu.org/software/glibc/>. | |
9935 | General help using GNU software: <https://www.gnu.org/gethelp/>." | |
9936 | ||
9937 | _ACEOF | |
9938 | ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` | |
9939 | ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` | |
9940 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
9941 | ac_cs_config='$ac_cs_config_escaped' | |
9942 | ac_cs_version="\\ | |
9943 | GNU C Library config.status (see version.h) | |
9944 | configured by $0, generated by GNU Autoconf 2.72, | |
9945 | with options \\"\$ac_cs_config\\" | |
9946 | ||
9947 | Copyright (C) 2023 Free Software Foundation, Inc. | |
9948 | This config.status script is free software; the Free Software Foundation | |
9949 | gives unlimited permission to copy, distribute and modify it." | |
9950 | ||
9951 | ac_pwd='$ac_pwd' | |
9952 | srcdir='$srcdir' | |
9953 | INSTALL='$INSTALL' | |
9954 | test -n "\$AWK" || AWK=awk | |
9955 | _ACEOF | |
9956 | ||
9957 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
9958 | # The default lists apply if the user does not specify any file. | |
9959 | ac_need_defaults=: | |
9960 | while test $# != 0 | |
9961 | do | |
9962 | case $1 in | |
9963 | --*=?*) | |
9964 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
9965 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
9966 | ac_shift=: | |
9967 | ;; | |
9968 | --*=) | |
9969 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
9970 | ac_optarg= | |
9971 | ac_shift=: | |
9972 | ;; | |
9973 | *) | |
9974 | ac_option=$1 | |
9975 | ac_optarg=$2 | |
9976 | ac_shift=shift | |
9977 | ;; | |
9978 | esac | |
9979 | ||
9980 | case $ac_option in | |
9981 | # Handling of the options. | |
9982 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
9983 | ac_cs_recheck=: ;; | |
9984 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
9985 | printf "%s\n" "$ac_cs_version"; exit ;; | |
9986 | --config | --confi | --conf | --con | --co | --c ) | |
9987 | printf "%s\n" "$ac_cs_config"; exit ;; | |
9988 | --debug | --debu | --deb | --de | --d | -d ) | |
9989 | debug=: ;; | |
9990 | --file | --fil | --fi | --f ) | |
9991 | $ac_shift | |
9992 | case $ac_optarg in | |
9993 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
9994 | '') as_fn_error $? "missing file argument" ;; | |
9995 | esac | |
9996 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
9997 | ac_need_defaults=false;; | |
9998 | --header | --heade | --head | --hea ) | |
9999 | $ac_shift | |
10000 | case $ac_optarg in | |
10001 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10002 | esac | |
10003 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
10004 | ac_need_defaults=false;; | |
10005 | --he | --h) | |
10006 | # Conflict between --help and --header | |
10007 | as_fn_error $? "ambiguous option: '$1' | |
10008 | Try '$0 --help' for more information.";; | |
10009 | --help | --hel | -h ) | |
10010 | printf "%s\n" "$ac_cs_usage"; exit ;; | |
10011 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
10012 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
10013 | ac_cs_silent=: ;; | |
10014 | ||
10015 | # This is an error. | |
10016 | -*) as_fn_error $? "unrecognized option: '$1' | |
10017 | Try '$0 --help' for more information." ;; | |
10018 | ||
10019 | *) as_fn_append ac_config_targets " $1" | |
10020 | ac_need_defaults=false ;; | |
10021 | ||
10022 | esac | |
10023 | shift | |
10024 | done | |
10025 | ||
10026 | ac_configure_extra_args= | |
10027 | ||
10028 | if $ac_cs_silent; then | |
10029 | exec 6>/dev/null | |
10030 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
10031 | fi | |
10032 | ||
10033 | _ACEOF | |
10034 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10035 | if \$ac_cs_recheck; then | |
10036 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
10037 | shift | |
10038 | \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 | |
10039 | CONFIG_SHELL='$SHELL' | |
10040 | export CONFIG_SHELL | |
10041 | exec "\$@" | |
10042 | fi | |
10043 | ||
10044 | _ACEOF | |
10045 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
10046 | exec 5>>config.log | |
10047 | { | |
10048 | echo | |
10049 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
10050 | ## Running $as_me. ## | |
10051 | _ASBOX | |
10052 | printf "%s\n" "$ac_log" | |
10053 | } >&5 | |
10054 | ||
10055 | _ACEOF | |
10056 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10057 | # | |
10058 | # INIT-COMMANDS | |
10059 | # | |
10060 | config_vars='$config_vars' | |
10061 | ||
10062 | _ACEOF | |
10063 | ||
10064 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
10065 | ||
10066 | # Handling of arguments. | |
10067 | for ac_config_target in $ac_config_targets | |
10068 | do | |
10069 | case $ac_config_target in | |
10070 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
10071 | "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;; | |
10072 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
10073 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
10074 | ||
10075 | *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; | |
10076 | esac | |
10077 | done | |
10078 | ||
10079 | ||
10080 | # If the user did not use the arguments to specify the items to instantiate, | |
10081 | # then the envvar interface is used. Set only those that are not. | |
10082 | # We use the long form for the default assignment because of an extremely | |
10083 | # bizarre bug on SunOS 4.1.3. | |
10084 | if $ac_need_defaults; then | |
10085 | test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files | |
10086 | test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers | |
10087 | test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands | |
10088 | fi | |
10089 | ||
10090 | # Have a temporary directory for convenience. Make it in the build tree | |
10091 | # simply because there is no reason against having it here, and in addition, | |
10092 | # creating and moving files from /tmp can sometimes cause problems. | |
10093 | # Hook for its removal unless debugging. | |
10094 | # Note that there is a small window in which the directory will not be cleaned: | |
10095 | # after its creation but before its name has been assigned to '$tmp'. | |
10096 | $debug || | |
10097 | { | |
10098 | tmp= ac_tmp= | |
10099 | trap 'exit_status=$? | |
10100 | : "${ac_tmp:=$tmp}" | |
10101 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
10102 | ' 0 | |
10103 | trap 'as_fn_exit 1' 1 2 13 15 | |
10104 | } | |
10105 | # Create a (secure) tmp directory for tmp files. | |
10106 | ||
10107 | { | |
10108 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
10109 | test -d "$tmp" | |
10110 | } || | |
10111 | { | |
10112 | tmp=./conf$$-$RANDOM | |
10113 | (umask 077 && mkdir "$tmp") | |
10114 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
10115 | ac_tmp=$tmp | |
10116 | ||
10117 | # Set up the scripts for CONFIG_FILES section. | |
10118 | # No need to generate them if there are no CONFIG_FILES. | |
10119 | # This happens for instance with './config.status config.h'. | |
10120 | if test -n "$CONFIG_FILES"; then | |
10121 | ||
10122 | ||
10123 | ac_cr=`echo X | tr X '\015'` | |
10124 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
10125 | # But we know of no other shell where ac_cr would be empty at this | |
10126 | # point, so we can use a bashism as a fallback. | |
10127 | if test "x$ac_cr" = x; then | |
10128 | eval ac_cr=\$\'\\r\' | |
10129 | fi | |
10130 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
10131 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
10132 | ac_cs_awk_cr='\\r' | |
10133 | else | |
10134 | ac_cs_awk_cr=$ac_cr | |
10135 | fi | |
10136 | ||
10137 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
10138 | _ACEOF | |
10139 | ||
10140 | ||
10141 | { | |
10142 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
10143 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
10144 | echo "_ACEOF" | |
10145 | } >conf$$subs.sh || | |
10146 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
10147 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
10148 | ac_delim='%!_!# ' | |
10149 | for ac_last_try in false false false false false :; do | |
10150 | . ./conf$$subs.sh || | |
10151 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
10152 | ||
10153 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
10154 | if test $ac_delim_n = $ac_delim_num; then | |
10155 | break | |
10156 | elif $ac_last_try; then | |
10157 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
10158 | else | |
10159 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
10160 | fi | |
10161 | done | |
10162 | rm -f conf$$subs.sh | |
10163 | ||
10164 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10165 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
10166 | _ACEOF | |
10167 | sed -n ' | |
10168 | h | |
10169 | s/^/S["/; s/!.*/"]=/ | |
10170 | p | |
10171 | g | |
10172 | s/^[^!]*!// | |
10173 | :repl | |
10174 | t repl | |
10175 | s/'"$ac_delim"'$// | |
10176 | t delim | |
10177 | :nl | |
10178 | h | |
10179 | s/\(.\{148\}\)..*/\1/ | |
10180 | t more1 | |
10181 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
10182 | p | |
10183 | n | |
10184 | b repl | |
10185 | :more1 | |
10186 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
10187 | p | |
10188 | g | |
10189 | s/.\{148\}// | |
10190 | t nl | |
10191 | :delim | |
10192 | h | |
10193 | s/\(.\{148\}\)..*/\1/ | |
10194 | t more2 | |
10195 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
10196 | p | |
10197 | b | |
10198 | :more2 | |
10199 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
10200 | p | |
10201 | g | |
10202 | s/.\{148\}// | |
10203 | t delim | |
10204 | ' <conf$$subs.awk | sed ' | |
10205 | /^[^""]/{ | |
10206 | N | |
10207 | s/\n// | |
10208 | } | |
10209 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
10210 | rm -f conf$$subs.awk | |
10211 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10212 | _ACAWK | |
10213 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
10214 | for (key in S) S_is_set[key] = 1 | |
10215 | FS = "\a" | |
10216 | ||
10217 | } | |
10218 | { | |
10219 | line = $ 0 | |
10220 | nfields = split(line, field, "@") | |
10221 | substed = 0 | |
10222 | len = length(field[1]) | |
10223 | for (i = 2; i < nfields; i++) { | |
10224 | key = field[i] | |
10225 | keylen = length(key) | |
10226 | if (S_is_set[key]) { | |
10227 | value = S[key] | |
10228 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
10229 | len += length(value) + length(field[++i]) | |
10230 | substed = 1 | |
10231 | } else | |
10232 | len += 1 + keylen | |
10233 | } | |
10234 | ||
10235 | print line | |
10236 | } | |
10237 | ||
10238 | _ACAWK | |
10239 | _ACEOF | |
10240 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
10241 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
10242 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
10243 | else | |
10244 | cat | |
10245 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
10246 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
10247 | _ACEOF | |
10248 | ||
10249 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
10250 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
10251 | # trailing colons and then remove the whole line if VPATH becomes empty | |
10252 | # (actually we leave an empty line to preserve line numbers). | |
10253 | if test "x$srcdir" = x.; then | |
10254 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
10255 | h | |
10256 | s/// | |
10257 | s/^/:/ | |
10258 | s/[ ]*$/:/ | |
10259 | s/:\$(srcdir):/:/g | |
10260 | s/:\${srcdir}:/:/g | |
10261 | s/:@srcdir@:/:/g | |
10262 | s/^:*// | |
10263 | s/:*$// | |
10264 | x | |
10265 | s/\(=[ ]*\).*/\1/ | |
10266 | G | |
10267 | s/\n// | |
10268 | s/^[^=]*=[ ]*$// | |
10269 | }' | |
10270 | fi | |
10271 | ||
10272 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
10273 | fi # test -n "$CONFIG_FILES" | |
10274 | ||
10275 | # Set up the scripts for CONFIG_HEADERS section. | |
10276 | # No need to generate them if there are no CONFIG_HEADERS. | |
10277 | # This happens for instance with './config.status Makefile'. | |
10278 | if test -n "$CONFIG_HEADERS"; then | |
10279 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
10280 | BEGIN { | |
10281 | _ACEOF | |
10282 | ||
10283 | # Transform confdefs.h into an awk script 'defines.awk', embedded as | |
10284 | # here-document in config.status, that substitutes the proper values into | |
10285 | # config.h.in to produce config.h. | |
10286 | ||
10287 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
10288 | # handling of long lines. | |
10289 | ac_delim='%!_!# ' | |
10290 | for ac_last_try in false false :; do | |
10291 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
10292 | if test -z "$ac_tt"; then | |
10293 | break | |
10294 | elif $ac_last_try; then | |
10295 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
10296 | else | |
10297 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
10298 | fi | |
10299 | done | |
10300 | ||
10301 | # For the awk script, D is an array of macro values keyed by name, | |
10302 | # likewise P contains macro parameters if any. Preserve backslash | |
10303 | # newline sequences. | |
10304 | ||
10305 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
10306 | sed -n ' | |
10307 | s/.\{148\}/&'"$ac_delim"'/g | |
10308 | t rset | |
10309 | :rset | |
10310 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
10311 | t def | |
10312 | d | |
10313 | :def | |
10314 | s/\\$// | |
10315 | t bsnl | |
10316 | s/["\\]/\\&/g | |
10317 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
10318 | D["\1"]=" \3"/p | |
10319 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
10320 | d | |
10321 | :bsnl | |
10322 | s/["\\]/\\&/g | |
10323 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
10324 | D["\1"]=" \3\\\\\\n"\\/p | |
10325 | t cont | |
10326 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
10327 | t cont | |
10328 | d | |
10329 | :cont | |
10330 | n | |
10331 | s/.\{148\}/&'"$ac_delim"'/g | |
10332 | t clear | |
10333 | :clear | |
10334 | s/\\$// | |
10335 | t bsnlc | |
10336 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
10337 | d | |
10338 | :bsnlc | |
10339 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
10340 | b cont | |
10341 | ' <confdefs.h | sed ' | |
10342 | s/'"$ac_delim"'/"\\\ | |
10343 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
10344 | ||
10345 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10346 | for (key in D) D_is_set[key] = 1 | |
10347 | FS = "\a" | |
10348 | } | |
10349 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
10350 | line = \$ 0 | |
10351 | split(line, arg, " ") | |
10352 | if (arg[1] == "#") { | |
10353 | defundef = arg[2] | |
10354 | mac1 = arg[3] | |
10355 | } else { | |
10356 | defundef = substr(arg[1], 2) | |
10357 | mac1 = arg[2] | |
10358 | } | |
10359 | split(mac1, mac2, "(") #) | |
10360 | macro = mac2[1] | |
10361 | prefix = substr(line, 1, index(line, defundef) - 1) | |
10362 | if (D_is_set[macro]) { | |
10363 | # Preserve the white space surrounding the "#". | |
10364 | print prefix "define", macro P[macro] D[macro] | |
10365 | next | |
10366 | } else { | |
10367 | # Replace #undef with comments. This is necessary, for example, | |
10368 | # in the case of _POSIX_SOURCE, which is predefined and required | |
10369 | # on some systems where configure will not decide to define it. | |
10370 | if (defundef == "undef") { | |
10371 | print "/*", prefix defundef, macro, "*/" | |
10372 | next | |
10373 | } | |
10374 | } | |
10375 | } | |
10376 | { print } | |
10377 | _ACAWK | |
10378 | _ACEOF | |
10379 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
10380 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
10381 | fi # test -n "$CONFIG_HEADERS" | |
10382 | ||
10383 | ||
10384 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
10385 | shift | |
10386 | for ac_tag | |
10387 | do | |
10388 | case $ac_tag in | |
10389 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
10390 | esac | |
10391 | case $ac_mode$ac_tag in | |
10392 | :[FHL]*:*);; | |
10393 | :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; | |
10394 | :[FH]-) ac_tag=-:-;; | |
10395 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
10396 | esac | |
10397 | ac_save_IFS=$IFS | |
10398 | IFS=: | |
10399 | set x $ac_tag | |
10400 | IFS=$ac_save_IFS | |
10401 | shift | |
10402 | ac_file=$1 | |
10403 | shift | |
10404 | ||
10405 | case $ac_mode in | |
10406 | :L) ac_source=$1;; | |
10407 | :[FH]) | |
10408 | ac_file_inputs= | |
10409 | for ac_f | |
10410 | do | |
10411 | case $ac_f in | |
10412 | -) ac_f="$ac_tmp/stdin";; | |
10413 | *) # Look for the file first in the build tree, then in the source tree | |
10414 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
10415 | # because $ac_f cannot contain ':'. | |
10416 | test -f "$ac_f" || | |
10417 | case $ac_f in | |
10418 | [\\/$]*) false;; | |
10419 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
10420 | esac || | |
10421 | as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; | |
10422 | esac | |
10423 | case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
10424 | as_fn_append ac_file_inputs " '$ac_f'" | |
10425 | done | |
10426 | ||
10427 | # Let's still pretend it is 'configure' which instantiates (i.e., don't | |
10428 | # use $as_me), people would be surprised to read: | |
10429 | # /* config.h. Generated by config.status. */ | |
10430 | configure_input='Generated from '` | |
10431 | printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
10432 | `' by configure.' | |
10433 | if test x"$ac_file" != x-; then | |
10434 | configure_input="$ac_file. $configure_input" | |
10435 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
10436 | printf "%s\n" "$as_me: creating $ac_file" >&6;} | |
10437 | fi | |
10438 | # Neutralize special characters interpreted by sed in replacement strings. | |
10439 | case $configure_input in #( | |
10440 | *\&* | *\|* | *\\* ) | |
10441 | ac_sed_conf_input=`printf "%s\n" "$configure_input" | | |
10442 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
10443 | *) ac_sed_conf_input=$configure_input;; | |
10444 | esac | |
10445 | ||
10446 | case $ac_tag in | |
10447 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
10448 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
10449 | esac | |
10450 | ;; | |
10451 | esac | |
10452 | ||
10453 | ac_dir=`$as_dirname -- "$ac_file" || | |
10454 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
10455 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
10456 | X"$ac_file" : 'X\(//\)$' \| \ | |
10457 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
10458 | printf "%s\n" X"$ac_file" | | |
10459 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
10460 | s//\1/ | |
10461 | q | |
10462 | } | |
10463 | /^X\(\/\/\)[^/].*/{ | |
10464 | s//\1/ | |
10465 | q | |
10466 | } | |
10467 | /^X\(\/\/\)$/{ | |
10468 | s//\1/ | |
10469 | q | |
10470 | } | |
10471 | /^X\(\/\).*/{ | |
10472 | s//\1/ | |
10473 | q | |
10474 | } | |
10475 | s/.*/./; q'` | |
10476 | as_dir="$ac_dir"; as_fn_mkdir_p | |
10477 | ac_builddir=. | |
10478 | ||
10479 | case "$ac_dir" in | |
10480 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
10481 | *) | |
10482 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` | |
10483 | # A ".." for each directory in $ac_dir_suffix. | |
10484 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
10485 | case $ac_top_builddir_sub in | |
10486 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
10487 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
10488 | esac ;; | |
10489 | esac | |
10490 | ac_abs_top_builddir=$ac_pwd | |
10491 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
10492 | # for backward compatibility: | |
10493 | ac_top_builddir=$ac_top_build_prefix | |
10494 | ||
10495 | case $srcdir in | |
10496 | .) # We are building in place. | |
10497 | ac_srcdir=. | |
10498 | ac_top_srcdir=$ac_top_builddir_sub | |
10499 | ac_abs_top_srcdir=$ac_pwd ;; | |
10500 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
10501 | ac_srcdir=$srcdir$ac_dir_suffix; | |
10502 | ac_top_srcdir=$srcdir | |
10503 | ac_abs_top_srcdir=$srcdir ;; | |
10504 | *) # Relative name. | |
10505 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
10506 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
10507 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
10508 | esac | |
10509 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
10510 | ||
10511 | ||
10512 | case $ac_mode in | |
10513 | :F) | |
10514 | # | |
10515 | # CONFIG_FILE | |
10516 | # | |
10517 | ||
10518 | case $INSTALL in | |
10519 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
10520 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
10521 | esac | |
10522 | _ACEOF | |
10523 | ||
10524 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
10525 | # If the template does not know about datarootdir, expand it. | |
10526 | # FIXME: This hack should be removed a few years after 2.60. | |
10527 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
10528 | ac_sed_dataroot=' | |
10529 | /datarootdir/ { | |
10530 | p | |
10531 | q | |
10532 | } | |
10533 | /@datadir@/p | |
10534 | /@docdir@/p | |
10535 | /@infodir@/p | |
10536 | /@localedir@/p | |
10537 | /@mandir@/p' | |
10538 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
10539 | *datarootdir*) ac_datarootdir_seen=yes;; | |
10540 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
10541 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
10542 | printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
10543 | _ACEOF | |
10544 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10545 | ac_datarootdir_hack=' | |
10546 | s&@datadir@&$datadir&g | |
10547 | s&@docdir@&$docdir&g | |
10548 | s&@infodir@&$infodir&g | |
10549 | s&@localedir@&$localedir&g | |
10550 | s&@mandir@&$mandir&g | |
10551 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
10552 | esac | |
10553 | _ACEOF | |
10554 | ||
10555 | # Neutralize VPATH when '$srcdir' = '.'. | |
10556 | # Shell code in configure.ac might set extrasub. | |
10557 | # FIXME: do we really want to maintain this feature? | |
10558 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10559 | ac_sed_extra="$ac_vpsub | |
10560 | $extrasub | |
10561 | _ACEOF | |
10562 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
10563 | :t | |
10564 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
10565 | s|@configure_input@|$ac_sed_conf_input|;t t | |
10566 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
10567 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
10568 | s&@srcdir@&$ac_srcdir&;t t | |
10569 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
10570 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
10571 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
10572 | s&@builddir@&$ac_builddir&;t t | |
10573 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
10574 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
10575 | s&@INSTALL@&$ac_INSTALL&;t t | |
10576 | $ac_datarootdir_hack | |
10577 | " | |
10578 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
10579 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
10580 | ||
10581 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
10582 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
10583 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
10584 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
10585 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' | |
10586 | which seems to be undefined. Please make sure it is defined" >&5 | |
10587 | printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' | |
10588 | which seems to be undefined. Please make sure it is defined" >&2;} | |
10589 | ||
10590 | rm -f "$ac_tmp/stdin" | |
10591 | case $ac_file in | |
10592 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
10593 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
10594 | esac \ | |
10595 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
10596 | ;; | |
10597 | :H) | |
10598 | # | |
10599 | # CONFIG_HEADER | |
10600 | # | |
10601 | if test x"$ac_file" != x-; then | |
10602 | { | |
10603 | printf "%s\n" "/* $configure_input */" >&1 \ | |
10604 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
10605 | } >"$ac_tmp/config.h" \ | |
10606 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
10607 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
10608 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
10609 | printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} | |
10610 | else | |
10611 | rm -f "$ac_file" | |
10612 | mv "$ac_tmp/config.h" "$ac_file" \ | |
10613 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
10614 | fi | |
10615 | else | |
10616 | printf "%s\n" "/* $configure_input */" >&1 \ | |
10617 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
10618 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
10619 | fi | |
10620 | ;; | |
10621 | ||
10622 | :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
10623 | printf "%s\n" "$as_me: executing $ac_file commands" >&6;} | |
10624 | ;; | |
10625 | esac | |
10626 | ||
10627 | ||
10628 | case $ac_file$ac_mode in | |
10629 | "default":C) | |
10630 | case $CONFIG_FILES in *config.make*) | |
10631 | echo "$config_vars" >> config.make;; | |
10632 | esac | |
10633 | test -d bits || mkdir bits ;; | |
10634 | ||
10635 | esac | |
10636 | done # for ac_tag | |
10637 | ||
10638 | ||
10639 | as_fn_exit 0 | |
10640 | _ACEOF | |
10641 | ac_clean_files=$ac_clean_files_save | |
10642 | ||
10643 | test $ac_write_fail = 0 || | |
10644 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
10645 | ||
10646 | ||
10647 | # configure is writing to config.log, and then calls config.status. | |
10648 | # config.status does its own redirection, appending to config.log. | |
10649 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
10650 | # by configure, so config.status won't be able to write to it; its | |
10651 | # output is simply discarded. So we exec the FD to /dev/null, | |
10652 | # effectively closing config.log, so it can be properly (re)opened and | |
10653 | # appended to by config.status. When coming back to configure, we | |
10654 | # need to make the FD available again. | |
10655 | if test "$no_create" != yes; then | |
10656 | ac_cs_success=: | |
10657 | ac_config_status_args= | |
10658 | test "$silent" = yes && | |
10659 | ac_config_status_args="$ac_config_status_args --quiet" | |
10660 | exec 5>/dev/null | |
10661 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
10662 | exec 5>>config.log | |
10663 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
10664 | # would make configure fail if this is the last instruction. | |
10665 | $ac_cs_success || as_fn_exit 1 | |
10666 | fi | |
10667 | ||
10668 | # | |
10669 | # CONFIG_SUBDIRS section. | |
10670 | # | |
10671 | if test "$no_recursion" != yes; then | |
10672 | ||
10673 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments | |
10674 | # so they do not pile up. | |
10675 | ac_sub_configure_args= | |
10676 | ac_prev= | |
10677 | eval "set x $ac_configure_args" | |
10678 | shift | |
10679 | for ac_arg | |
10680 | do | |
10681 | if test -n "$ac_prev"; then | |
10682 | ac_prev= | |
10683 | continue | |
10684 | fi | |
10685 | case $ac_arg in | |
10686 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
10687 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
10688 | ac_prev=cache_file ;; | |
10689 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
10690 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
10691 | | --c=*) | |
10692 | ;; | |
10693 | --config-cache | -C) | |
10694 | ;; | |
10695 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
10696 | ac_prev=srcdir ;; | |
10697 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
10698 | ;; | |
10699 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
10700 | ac_prev=prefix ;; | |
10701 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
10702 | ;; | |
10703 | --disable-option-checking) | |
10704 | ;; | |
10705 | *) | |
10706 | case $ac_arg in | |
10707 | *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10708 | esac | |
10709 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; | |
10710 | esac | |
10711 | done | |
10712 | ||
10713 | # Always prepend --prefix to ensure using the same prefix | |
10714 | # in subdir configurations. | |
10715 | ac_arg="--prefix=$prefix" | |
10716 | case $ac_arg in | |
10717 | *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10718 | esac | |
10719 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
10720 | ||
10721 | # Pass --silent | |
10722 | if test "$silent" = yes; then | |
10723 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
10724 | fi | |
10725 | ||
10726 | # Always prepend --disable-option-checking to silence warnings, since | |
10727 | # different subdirs can have different --enable and --with options. | |
10728 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
10729 | ||
10730 | ac_popdir=`pwd` | |
10731 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
10732 | ||
10733 | # Do not complain, so a configure script can configure whichever | |
10734 | # parts of a large source tree are present. | |
10735 | test -d "$srcdir/$ac_dir" || continue | |
10736 | ||
10737 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
10738 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 | |
10739 | printf "%s\n" "$ac_msg" >&6 | |
10740 | as_dir="$ac_dir"; as_fn_mkdir_p | |
10741 | ac_builddir=. | |
10742 | ||
10743 | case "$ac_dir" in | |
10744 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
10745 | *) | |
10746 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` | |
10747 | # A ".." for each directory in $ac_dir_suffix. | |
10748 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
10749 | case $ac_top_builddir_sub in | |
10750 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
10751 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
10752 | esac ;; | |
10753 | esac | |
10754 | ac_abs_top_builddir=$ac_pwd | |
10755 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
10756 | # for backward compatibility: | |
10757 | ac_top_builddir=$ac_top_build_prefix | |
10758 | ||
10759 | case $srcdir in | |
10760 | .) # We are building in place. | |
10761 | ac_srcdir=. | |
10762 | ac_top_srcdir=$ac_top_builddir_sub | |
10763 | ac_abs_top_srcdir=$ac_pwd ;; | |
10764 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
10765 | ac_srcdir=$srcdir$ac_dir_suffix; | |
10766 | ac_top_srcdir=$srcdir | |
10767 | ac_abs_top_srcdir=$srcdir ;; | |
10768 | *) # Relative name. | |
10769 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
10770 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
10771 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
10772 | esac | |
10773 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
10774 | ||
10775 | ||
10776 | cd "$ac_dir" | |
10777 | ||
10778 | # Check for configure.gnu first; this name is used for a wrapper for | |
10779 | # Metaconfig's "Configure" on case-insensitive file systems. | |
10780 | if test -f "$ac_srcdir/configure.gnu"; then | |
10781 | ac_sub_configure=$ac_srcdir/configure.gnu | |
10782 | elif test -f "$ac_srcdir/configure"; then | |
10783 | ac_sub_configure=$ac_srcdir/configure | |
10784 | else | |
10785 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 | |
10786 | printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
10787 | ac_sub_configure= | |
10788 | fi | |
10789 | ||
10790 | # The recursion is here. | |
10791 | if test -n "$ac_sub_configure"; then | |
10792 | # Make the cache file name correct relative to the subdirectory. | |
10793 | case $cache_file in | |
10794 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
10795 | *) # Relative name. | |
10796 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
10797 | esac | |
10798 | ||
10799 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
10800 | printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
10801 | # The eval makes quoting arguments work. | |
10802 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ | |
10803 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
10804 | as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 | |
10805 | fi | |
10806 | ||
10807 | cd "$ac_popdir" | |
10808 | done | |
10809 | fi | |
10810 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
10811 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
10812 | printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
10813 | fi | |
10814 | ||
10815 |