]>
Commit | Line | Data |
---|---|---|
cd6ede75 | 1 | #! /bin/sh |
3a12e572 | 2 | # Guess values for system-dependent variables and create Makefiles. |
98ffc1bf | 3 | # Generated by GNU Autoconf 2.72 for GNU C Library (see version.h). |
f4b07664 | 4 | # |
a306c790 | 5 | # Report bugs to <https://sourceware.org/bugzilla/>. |
3a12e572 | 6 | # |
b08c89d9 | 7 | # |
98ffc1bf | 8 | # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, |
c6cb8783 | 9 | # Inc. |
b08c89d9 UD |
10 | # |
11 | # | |
3a12e572 UD |
12 | # This configure script is free software; the Free Software Foundation |
13 | # gives unlimited permission to copy, distribute and modify it. | |
b08c89d9 UD |
14 | ## -------------------- ## |
15 | ## M4sh Initialization. ## | |
16 | ## -------------------- ## | |
cd6ede75 | 17 | |
26f56c1c UD |
18 | # Be more Bourne compatible |
19 | DUALCASE=1; export DUALCASE # for MKS sh | |
c6cb8783 SP |
20 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
21 | then : | |
3a12e572 UD |
22 | emulate sh |
23 | NULLCMD=: | |
322e23db | 24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
f4b07664 RM |
25 | # is contrary to our usage. Disable this feature. |
26 | alias -g '${1+"$@"}'='"$@"' | |
26f56c1c | 27 | setopt NO_GLOB_SUBST |
98ffc1bf AH |
28 | else case e in #( |
29 | e) case `(set -o) 2>/dev/null` in #( | |
b08c89d9 UD |
30 | *posix*) : |
31 | set -o posix ;; #( | |
32 | *) : | |
33 | ;; | |
98ffc1bf | 34 | esac ;; |
26f56c1c | 35 | esac |
26f56c1c UD |
36 | fi |
37 | ||
38 | ||
c6cb8783 SP |
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. | |
322e23db UD |
47 | as_nl=' |
48 | ' | |
49 | export as_nl | |
c6cb8783 SP |
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 | |
322e23db UD |
76 | |
77 | # The user is always right. | |
c6cb8783 | 78 | if ${PATH_SEPARATOR+false} :; then |
322e23db UD |
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 | } | |
3a12e572 | 84 | fi |
cd6ede75 | 85 | |
f4b07664 | 86 | |
26f56c1c | 87 | # Find who we are. Look in the path if we contain no directory separator. |
f318beb8 | 88 | as_myself= |
b08c89d9 | 89 | case $0 in #(( |
26f56c1c UD |
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 | |
c6cb8783 SP |
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 | |
b08c89d9 | 101 | done |
26f56c1c UD |
102 | IFS=$as_save_IFS |
103 | ||
104 | ;; | |
105 | esac | |
98ffc1bf | 106 | # We did not find ourselves, most probably we were run as 'sh COMMAND' |
26f56c1c UD |
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 | |
c6cb8783 | 112 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
b08c89d9 | 113 | exit 1 |
26f56c1c UD |
114 | fi |
115 | ||
b08c89d9 | 116 | |
f4a58f0d L |
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 | |
98ffc1bf | 136 | # out after a failed 'exec'. |
c6cb8783 SP |
137 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
138 | exit 255 | |
f4a58f0d L |
139 | fi |
140 | # We don't want this to propagate to other subprocesses. | |
141 | { _as_can_reexec=; unset _as_can_reexec;} | |
b08c89d9 | 142 | if test "x$CONFIG_SHELL" = x; then |
98ffc1bf | 143 | as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
c6cb8783 | 144 | then : |
b08c89d9 UD |
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 | |
98ffc1bf AH |
151 | else case e in #( |
152 | e) case \`(set -o) 2>/dev/null\` in #( | |
b08c89d9 UD |
153 | *posix*) : |
154 | set -o posix ;; #( | |
155 | *) : | |
156 | ;; | |
98ffc1bf | 157 | esac ;; |
b08c89d9 UD |
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.; } | |
c6cb8783 SP |
172 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ) |
173 | then : | |
b08c89d9 | 174 | |
98ffc1bf AH |
175 | else case e in #( |
176 | e) exitcode=1; echo positional parameters were not saved. ;; | |
177 | esac | |
b08c89d9 | 178 | fi |
f4a58f0d | 179 | test x\$exitcode = x0 || exit 1 |
c6cb8783 SP |
180 | blah=\$(echo \$(echo blah)) |
181 | test x\"\$blah\" = xblah || exit 1 | |
f4a58f0d | 182 | test -x / || exit 1" |
b08c89d9 UD |
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'\" && | |
3d0dbdc4 | 186 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" |
c6cb8783 SP |
187 | if (eval "$as_required") 2>/dev/null |
188 | then : | |
b08c89d9 | 189 | as_have_required=yes |
98ffc1bf AH |
190 | else case e in #( |
191 | e) as_have_required=no ;; | |
192 | esac | |
b08c89d9 | 193 | fi |
c6cb8783 SP |
194 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null |
195 | then : | |
b08c89d9 | 196 | |
98ffc1bf AH |
197 | else case e in #( |
198 | e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
b08c89d9 UD |
199 | as_found=false |
200 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
201 | do | |
202 | IFS=$as_save_IFS | |
c6cb8783 SP |
203 | case $as_dir in #((( |
204 | '') as_dir=./ ;; | |
205 | */) ;; | |
206 | *) as_dir=$as_dir/ ;; | |
207 | esac | |
b08c89d9 UD |
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. | |
c6cb8783 | 213 | as_shell=$as_dir$as_base |
b08c89d9 | 214 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
c6cb8783 SP |
215 | as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
216 | then : | |
b08c89d9 | 217 | CONFIG_SHELL=$as_shell as_have_required=yes |
c6cb8783 SP |
218 | if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null |
219 | then : | |
b08c89d9 UD |
220 | break 2 |
221 | fi | |
222 | fi | |
223 | done;; | |
224 | esac | |
225 | as_found=false | |
226 | done | |
b08c89d9 | 227 | IFS=$as_save_IFS |
c6cb8783 SP |
228 | if $as_found |
229 | then : | |
b08c89d9 | 230 | |
98ffc1bf AH |
231 | else case e in #( |
232 | e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
c6cb8783 SP |
233 | as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
234 | then : | |
235 | CONFIG_SHELL=$SHELL as_have_required=yes | |
98ffc1bf AH |
236 | fi ;; |
237 | esac | |
c6cb8783 | 238 | fi |
b08c89d9 | 239 | |
c6cb8783 SP |
240 | |
241 | if test "x$CONFIG_SHELL" != x | |
242 | then : | |
f4a58f0d L |
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 | |
98ffc1bf | 259 | # out after a failed 'exec'. |
c6cb8783 | 260 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
f4a58f0d | 261 | exit 255 |
b08c89d9 UD |
262 | fi |
263 | ||
c6cb8783 SP |
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." | |
b08c89d9 | 271 | else |
c6cb8783 | 272 | printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and |
a306c790 | 273 | $0: https://sourceware.org/bugzilla/ about your system, |
f318beb8 | 274 | $0: including any error possibly output before this |
b08c89d9 UD |
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 | |
98ffc1bf AH |
279 | fi ;; |
280 | esac | |
b08c89d9 UD |
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 | ||
c6cb8783 | 301 | |
b08c89d9 UD |
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 #( | |
c6cb8783 | 333 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
b08c89d9 UD |
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 || | |
c6cb8783 | 342 | printf "%s\n" X"$as_dir" | |
b08c89d9 UD |
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" | |
4a531bb0 | 363 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
b08c89d9 UD |
364 | |
365 | ||
366 | } # as_fn_mkdir_p | |
f4a58f0d L |
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 | |
b08c89d9 UD |
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. | |
c6cb8783 SP |
381 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
382 | then : | |
b08c89d9 UD |
383 | eval 'as_fn_append () |
384 | { | |
385 | eval $1+=\$2 | |
386 | }' | |
98ffc1bf AH |
387 | else case e in #( |
388 | e) as_fn_append () | |
b08c89d9 UD |
389 | { |
390 | eval $1=\$$1\$2 | |
98ffc1bf AH |
391 | } ;; |
392 | esac | |
b08c89d9 UD |
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. | |
c6cb8783 SP |
400 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
401 | then : | |
b08c89d9 UD |
402 | eval 'as_fn_arith () |
403 | { | |
404 | as_val=$(( $* )) | |
405 | }' | |
98ffc1bf AH |
406 | else case e in #( |
407 | e) as_fn_arith () | |
b08c89d9 UD |
408 | { |
409 | as_val=`expr "$@" || test $? -eq 1` | |
98ffc1bf AH |
410 | } ;; |
411 | esac | |
b08c89d9 UD |
412 | fi # as_fn_arith |
413 | ||
414 | ||
4a531bb0 L |
415 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
416 | # ---------------------------------------- | |
b08c89d9 UD |
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 | |
4a531bb0 | 419 | # script with STATUS, using 1 if that was 0. |
b08c89d9 UD |
420 | as_fn_error () |
421 | { | |
4a531bb0 L |
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 | |
c6cb8783 | 425 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
b08c89d9 | 426 | fi |
c6cb8783 | 427 | printf "%s\n" "$as_me: error: $2" >&2 |
b08c89d9 UD |
428 | as_fn_exit $as_status |
429 | } # as_fn_error | |
430 | ||
26f56c1c UD |
431 | if expr a : '\(a\)' >/dev/null 2>&1 && |
432 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
f4b07664 RM |
433 | as_expr=expr |
434 | else | |
435 | as_expr=false | |
436 | fi | |
437 | ||
26f56c1c | 438 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
f4b07664 RM |
439 | as_basename=basename |
440 | else | |
441 | as_basename=false | |
442 | fi | |
3a12e572 | 443 | |
b08c89d9 UD |
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 | |
3a12e572 | 449 | |
26f56c1c | 450 | as_me=`$as_basename -- "$0" || |
3a12e572 UD |
451 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
452 | X"$0" : 'X\(//\)$' \| \ | |
26f56c1c | 453 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
c6cb8783 | 454 | printf "%s\n" X/"$0" | |
26f56c1c UD |
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'` | |
3a12e572 | 468 | |
b08c89d9 UD |
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 | |
f4b07664 | 475 | |
3a12e572 | 476 | |
b08c89d9 UD |
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 ' | |
98ffc1bf AH |
487 | t clear |
488 | :clear | |
b08c89d9 UD |
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" || | |
c6cb8783 | 500 | { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
cd6ede75 | 501 | |
f4a58f0d L |
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 | |
b08c89d9 UD |
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 | |
26f56c1c | 512 | } |
cd6ede75 | 513 | |
c6cb8783 SP |
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. | |
b08c89d9 UD |
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 | |
650425ce | 530 | |
c6cb8783 SP |
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 | ||
b08c89d9 UD |
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 | |
26f56c1c | 543 | fi |
b08c89d9 UD |
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: | |
98ffc1bf AH |
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'. | |
b08c89d9 | 551 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
f4a58f0d | 552 | as_ln_s='cp -pR' |
b08c89d9 UD |
553 | elif ln conf$$.file conf$$ 2>/dev/null; then |
554 | as_ln_s=ln | |
555 | else | |
f4a58f0d | 556 | as_ln_s='cp -pR' |
b08c89d9 | 557 | fi |
26f56c1c | 558 | else |
f4a58f0d | 559 | as_ln_s='cp -pR' |
26f56c1c | 560 | fi |
b08c89d9 UD |
561 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
562 | rmdir conf$$.dir 2>/dev/null | |
26f56c1c | 563 | |
b08c89d9 UD |
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 | |
26f56c1c UD |
569 | fi |
570 | ||
f4a58f0d L |
571 | as_test_x='test -x' |
572 | as_executable_p=as_fn_executable_p | |
26f56c1c | 573 | |
b08c89d9 | 574 | # Sed expression to map a string onto a valid CPP name. |
98ffc1bf AH |
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 | |
26f56c1c | 577 | |
b08c89d9 | 578 | # Sed expression to map a string onto a valid variable name. |
98ffc1bf AH |
579 | as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
580 | as_tr_sh="eval sed '$as_sed_sh'" # deprecated | |
26f56c1c UD |
581 | |
582 | ||
b08c89d9 UD |
583 | test -n "$DJDIR" || exec 7<&0 </dev/null |
584 | exec 6>&1 | |
cd6ede75 | 585 | |
3a12e572 | 586 | # Name of the host. |
4a531bb0 | 587 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
3a12e572 UD |
588 | # so uname gets run too. |
589 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
590 | ||
3a12e572 UD |
591 | # |
592 | # Initializations. | |
593 | # | |
cd6ede75 | 594 | ac_default_prefix=/usr/local |
26f56c1c | 595 | ac_clean_files= |
f4b07664 | 596 | ac_config_libobj_dir=. |
26f56c1c | 597 | LIBOBJS= |
3a12e572 UD |
598 | cross_compiling=no |
599 | subdirs= | |
600 | MFLAGS= | |
601 | MAKEFLAGS= | |
3a12e572 | 602 | |
3a12e572 | 603 | # Identity of this package. |
f4b07664 | 604 | PACKAGE_NAME='GNU C Library' |
f318beb8 | 605 | PACKAGE_TARNAME='glibc' |
f4b07664 RM |
606 | PACKAGE_VERSION='(see version.h)' |
607 | PACKAGE_STRING='GNU C Library (see version.h)' | |
a306c790 | 608 | PACKAGE_BUGREPORT='https://sourceware.org/bugzilla/' |
02d35f06 | 609 | PACKAGE_URL='https://www.gnu.org/software/glibc/' |
3a12e572 UD |
610 | |
611 | ac_unique_file="include/features.h" | |
322e23db | 612 | enable_option_checking=no |
322e23db | 613 | ac_subst_vars='LTLIBOBJS |
a152f366 | 614 | LIBOBJS |
ad201afe | 615 | pthread_in_libc |
322e23db UD |
616 | RELEASE |
617 | VERSION | |
618 | mach_interface_list | |
619 | DEFINES | |
322e23db | 620 | static_nss |
322e23db | 621 | profile |
abcb584d | 622 | libc_cv_multidir |
b79f2575 L |
623 | libc_cv_test_x86_have_amx_tile |
624 | test_enable_cet | |
625 | libc_cv_test_cc_mprefer_vector_width | |
322e23db UD |
626 | shared |
627 | static | |
322e23db UD |
628 | ldd_rewrite_script |
629 | use_ldconfig | |
322e23db | 630 | libc_cv_rootsbindir |
4248b1b1 | 631 | libc_cv_localstatedir |
322e23db | 632 | libc_cv_sysconfdir |
90fe682d | 633 | libc_cv_complocaledir |
aaa8cb4b | 634 | libc_cv_rtlddir |
322e23db | 635 | libc_cv_slibdir |
3cc3ef96 | 636 | use_nscd |
322e23db | 637 | libc_cv_gcc_unwind_find_fde |
7ffa9423 | 638 | libc_extra_cppflags |
30b99d79 | 639 | libc_extra_cflags |
99e1dc0a | 640 | libc_cv_cxx_thread_local |
4d8965f1 | 641 | no_time_bits_source |
3f1932ed | 642 | no_file_offset_bits_source |
64d9580c FB |
643 | fortify_source |
644 | no_fortify_source | |
645 | libc_cv_fortify_source | |
646 | enable_fortify_source | |
b79f2575 | 647 | libc_cv_test_supported_fortify_source |
322e23db UD |
648 | have_selinux |
649 | have_libcap | |
650 | have_libaudit | |
651 | LIBGD | |
03da41d4 | 652 | libc_cv_test_cc_wmissing_parameter_name |
4f4c4fcd | 653 | libc_cv_test_cc_wfree_labels |
b79f2575 | 654 | libc_cv_test_cc_wimplicit_fallthrough |
85c2e611 | 655 | libc_cv_cc_loop_to_function |
b79f2575 | 656 | libc_cv_test_cc_signaling_nans |
322e23db | 657 | libc_cv_cc_submachine |
bef0b507 | 658 | libc_cv_cc_nofma |
b79f2575 | 659 | libc_cv_test_wno_ignored_attributes |
89569c8b | 660 | libc_cv_has_glob_dat |
322e23db | 661 | libc_cv_fpie |
b79f2575 | 662 | libc_cv_test_static_pie |
322e23db | 663 | libc_cv_z_execstack |
a2bd5008 | 664 | libc_cv_no_error_execstack |
322e23db | 665 | ASFLAGS_config |
322e23db | 666 | libc_cv_cc_with_libunwind |
19f1a11e | 667 | libc_cv_insert |
83569fb8 | 668 | libc_cv_protected_data |
322e23db UD |
669 | INSTALL_INFO |
670 | PERL | |
322e23db | 671 | BASH_SHELL |
a65ea28d | 672 | CXX_BITS_STD_ABS_H |
fc3e1337 FW |
673 | CXX_CMATH_HEADER |
674 | CXX_CSTDLIB_HEADER | |
322e23db UD |
675 | CXX_SYSINCLUDES |
676 | SYSINCLUDES | |
43ecc41d AZ |
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 | |
8ce8299f SP |
685 | PYTHON |
686 | PYTHON_PROG | |
322e23db | 687 | AUTOCONF |
1faaf703 | 688 | BISON |
0786794f | 689 | AWK |
322e23db UD |
690 | SED |
691 | MAKEINFO | |
692 | MSGFMT | |
693 | MAKE | |
322e23db | 694 | LD |
02abdab0 AZ |
695 | NM |
696 | OBJDUMP | |
697 | READELF | |
6014c65d | 698 | GPROF |
1b74661a | 699 | OBJCOPY |
322e23db UD |
700 | AR |
701 | LN_S | |
702 | INSTALL_DATA | |
703 | INSTALL_SCRIPT | |
704 | INSTALL_PROGRAM | |
322e23db | 705 | base_machine |
e4608715 | 706 | build_pt_chown |
c53d909c | 707 | build_nscd |
33784089 | 708 | memory_tagging |
a4ecc9eb | 709 | enable_werror |
322e23db UD |
710 | force_install |
711 | bindnow | |
740b3dbe | 712 | hardcoded_path_in_tests |
1cba4036 | 713 | enable_timezone_tools |
6c0be743 | 714 | man_pages_version |
9ba202c7 | 715 | rtld_early_cflags |
6413fcde | 716 | extra_nonshared_cflags |
c91c505f | 717 | sysheaders |
b79f2575 | 718 | TEST_CXX |
322e23db UD |
719 | ac_ct_CXX |
720 | CXXFLAGS | |
721 | CXX | |
722 | CPP | |
723 | cross_compiling | |
724 | BUILD_CC | |
b79f2575 | 725 | TEST_CC |
322e23db UD |
726 | OBJEXT |
727 | ac_ct_CC | |
728 | CPPFLAGS | |
729 | LDFLAGS | |
730 | CFLAGS | |
731 | CC | |
c16a054d AS |
732 | host_os |
733 | host_vendor | |
734 | host_cpu | |
735 | host | |
736 | build_os | |
737 | build_vendor | |
738 | build_cpu | |
739 | build | |
7967983f | 740 | subdirs |
8b748aed JM |
741 | REPORT_BUGS_TEXI |
742 | REPORT_BUGS_TO | |
743 | PKGVERSION_TEXI | |
744 | PKGVERSION | |
322e23db UD |
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 | |
c6cb8783 | 764 | runstatedir |
322e23db UD |
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 | |
b08c89d9 | 776 | PACKAGE_URL |
322e23db UD |
777 | PACKAGE_BUGREPORT |
778 | PACKAGE_STRING | |
779 | PACKAGE_VERSION | |
780 | PACKAGE_TARNAME | |
781 | PACKAGE_NAME | |
782 | PATH_SEPARATOR | |
783 | SHELL' | |
a152f366 | 784 | ac_subst_files='' |
322e23db UD |
785 | ac_user_opts=' |
786 | enable_option_checking | |
8b748aed JM |
787 | with_pkgversion |
788 | with_bugurl | |
ba144c17 | 789 | enable_static_c___tests |
23f12e6e | 790 | enable_static_c___link_check |
322e23db UD |
791 | with_gd |
792 | with_gd_include | |
793 | with_gd_lib | |
322e23db | 794 | with_binutils |
322e23db | 795 | with_selinux |
322e23db | 796 | with_headers |
6413fcde | 797 | with_nonshared_cflags |
9ba202c7 | 798 | with_rtld_early_cflags |
bada2e31 | 799 | with_timeoutfactor |
6c0be743 | 800 | with_man_pages |
322e23db | 801 | enable_sanity_checks |
322e23db UD |
802 | enable_shared |
803 | enable_profile | |
23645707 | 804 | enable_default_pie |
1cba4036 | 805 | enable_timezone_tools |
740b3dbe | 806 | enable_hardcoded_path_in_tests |
322e23db UD |
807 | enable_hidden_plt |
808 | enable_bind_now | |
03baef1c | 809 | enable_stack_protector |
322e23db UD |
810 | enable_static_nss |
811 | enable_force_install | |
8894bad3 | 812 | enable_maintainer_mode |
322e23db | 813 | enable_kernel |
a4ecc9eb | 814 | enable_werror |
322e23db | 815 | enable_multi_arch |
33784089 | 816 | enable_memory_tagging |
3a097cc7 | 817 | enable_systemtap |
c53d909c | 818 | enable_build_nscd |
3cc3ef96 | 819 | enable_nscd |
e4608715 | 820 | enable_pt_chown |
5695d46f | 821 | enable_mathvec |
f753fa7d | 822 | enable_cet |
ebae2f5a | 823 | enable_scv |
64d9580c | 824 | enable_fortify_source |
322e23db UD |
825 | with_cpu |
826 | ' | |
a152f366 UD |
827 | ac_precious_vars='build_alias |
828 | host_alias | |
829 | target_alias | |
830 | CC | |
831 | CFLAGS | |
832 | LDFLAGS | |
833 | LIBS | |
834 | CPPFLAGS | |
b79f2575 | 835 | TEST_CC |
a152f366 UD |
836 | CPP |
837 | CXX | |
838 | CXXFLAGS | |
b79f2575 L |
839 | CCC |
840 | TEST_CXX' | |
644d3857 | 841 | ac_subdirs_all='' |
a152f366 UD |
842 | |
843 | # Initialize some variables set by options. | |
844 | ac_init_help= | |
845 | ac_init_version=false | |
322e23db UD |
846 | ac_unrecognized_opts= |
847 | ac_unrecognized_sep= | |
a152f366 UD |
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' | |
c6cb8783 | 879 | runstatedir='${localstatedir}/run' |
a152f366 UD |
880 | includedir='${prefix}/include' |
881 | oldincludedir='/usr/include' | |
882 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
883 | infodir='${datarootdir}/info' | |
884 | htmldir='${docdir}' | |
26f56c1c UD |
885 | dvidir='${docdir}' |
886 | pdfdir='${docdir}' | |
887 | psdir='${docdir}' | |
888 | libdir='${exec_prefix}/lib' | |
889 | localedir='${datarootdir}/locale' | |
890 | mandir='${datarootdir}/man' | |
cd6ede75 | 891 | |
cd6ede75 | 892 | ac_prev= |
26f56c1c | 893 | ac_dashdash= |
cd6ede75 UD |
894 | for ac_option |
895 | do | |
cd6ede75 UD |
896 | # If the previous option needs an argument, assign it. |
897 | if test -n "$ac_prev"; then | |
26f56c1c | 898 | eval $ac_prev=\$ac_option |
cd6ede75 UD |
899 | ac_prev= |
900 | continue | |
901 | fi | |
902 | ||
26f56c1c | 903 | case $ac_option in |
f318beb8 UD |
904 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
905 | *=) ac_optarg= ;; | |
906 | *) ac_optarg=yes ;; | |
26f56c1c | 907 | esac |
cd6ede75 | 908 | |
26f56c1c UD |
909 | case $ac_dashdash$ac_option in |
910 | --) | |
911 | ac_dashdash=yes ;; | |
cd6ede75 UD |
912 | |
913 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
914 | ac_prev=bindir ;; | |
915 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
3a12e572 | 916 | bindir=$ac_optarg ;; |
cd6ede75 UD |
917 | |
918 | -build | --build | --buil | --bui | --bu) | |
3a12e572 | 919 | ac_prev=build_alias ;; |
cd6ede75 | 920 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
3a12e572 | 921 | build_alias=$ac_optarg ;; |
cd6ede75 UD |
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=*) | |
3a12e572 UD |
928 | cache_file=$ac_optarg ;; |
929 | ||
930 | --config-cache | -C) | |
931 | cache_file=config.cache ;; | |
cd6ede75 | 932 | |
26f56c1c | 933 | -datadir | --datadir | --datadi | --datad) |
cd6ede75 | 934 | ac_prev=datadir ;; |
26f56c1c | 935 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
3a12e572 | 936 | datadir=$ac_optarg ;; |
cd6ede75 | 937 | |
26f56c1c UD |
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 | ||
cd6ede75 | 945 | -disable-* | --disable-*) |
322e23db | 946 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
cd6ede75 | 947 | # Reject names that are not valid shell variable names. |
322e23db | 948 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
98ffc1bf | 949 | as_fn_error $? "invalid feature name: '$ac_useropt'" |
322e23db | 950 | ac_useropt_orig=$ac_useropt |
c6cb8783 | 951 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
322e23db UD |
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 ;; | |
26f56c1c UD |
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 ;; | |
cd6ede75 UD |
970 | |
971 | -enable-* | --enable-*) | |
322e23db | 972 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
cd6ede75 | 973 | # Reject names that are not valid shell variable names. |
322e23db | 974 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
98ffc1bf | 975 | as_fn_error $? "invalid feature name: '$ac_useropt'" |
322e23db | 976 | ac_useropt_orig=$ac_useropt |
c6cb8783 | 977 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
322e23db UD |
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 ;; | |
cd6ede75 UD |
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=*) | |
3a12e572 | 994 | exec_prefix=$ac_optarg ;; |
cd6ede75 UD |
995 | |
996 | -gas | --gas | --ga | --g) | |
997 | # Obsolete; use --with-gas. | |
998 | with_gas=yes ;; | |
999 | ||
3a12e572 UD |
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 ;; | |
cd6ede75 UD |
1006 | |
1007 | -host | --host | --hos | --ho) | |
3a12e572 | 1008 | ac_prev=host_alias ;; |
cd6ede75 | 1009 | -host=* | --host=* | --hos=* | --ho=*) |
3a12e572 | 1010 | host_alias=$ac_optarg ;; |
cd6ede75 | 1011 | |
26f56c1c UD |
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 | ||
cd6ede75 UD |
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=*) | |
3a12e572 | 1023 | includedir=$ac_optarg ;; |
cd6ede75 UD |
1024 | |
1025 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1026 | ac_prev=infodir ;; | |
1027 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
3a12e572 | 1028 | infodir=$ac_optarg ;; |
cd6ede75 UD |
1029 | |
1030 | -libdir | --libdir | --libdi | --libd) | |
1031 | ac_prev=libdir ;; | |
1032 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
3a12e572 | 1033 | libdir=$ac_optarg ;; |
cd6ede75 UD |
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=*) | |
3a12e572 | 1040 | libexecdir=$ac_optarg ;; |
cd6ede75 | 1041 | |
26f56c1c UD |
1042 | -localedir | --localedir | --localedi | --localed | --locale) |
1043 | ac_prev=localedir ;; | |
1044 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1045 | localedir=$ac_optarg ;; | |
1046 | ||
cd6ede75 | 1047 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
26f56c1c | 1048 | | --localstate | --localstat | --localsta | --localst | --locals) |
cd6ede75 UD |
1049 | ac_prev=localstatedir ;; |
1050 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
26f56c1c | 1051 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
3a12e572 | 1052 | localstatedir=$ac_optarg ;; |
cd6ede75 UD |
1053 | |
1054 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1055 | ac_prev=mandir ;; | |
1056 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
3a12e572 | 1057 | mandir=$ac_optarg ;; |
cd6ede75 UD |
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 \ | |
3a12e572 | 1064 | | --no-cr | --no-c | -n) |
cd6ede75 UD |
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=*) | |
3a12e572 | 1078 | oldincludedir=$ac_optarg ;; |
cd6ede75 UD |
1079 | |
1080 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1081 | ac_prev=prefix ;; | |
1082 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
3a12e572 | 1083 | prefix=$ac_optarg ;; |
cd6ede75 UD |
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=*) | |
3a12e572 | 1090 | program_prefix=$ac_optarg ;; |
cd6ede75 UD |
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=*) | |
3a12e572 | 1097 | program_suffix=$ac_optarg ;; |
cd6ede75 UD |
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=*) | |
3a12e572 | 1114 | program_transform_name=$ac_optarg ;; |
cd6ede75 | 1115 | |
26f56c1c UD |
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 | ||
cd6ede75 UD |
1126 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1127 | | -silent | --silent | --silen | --sile | --sil) | |
1128 | silent=yes ;; | |
1129 | ||
c6cb8783 SP |
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 | ||
cd6ede75 UD |
1139 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1140 | ac_prev=sbindir ;; | |
1141 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1142 | | --sbi=* | --sb=*) | |
3a12e572 | 1143 | sbindir=$ac_optarg ;; |
cd6ede75 UD |
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=*) | |
3a12e572 | 1154 | sharedstatedir=$ac_optarg ;; |
cd6ede75 UD |
1155 | |
1156 | -site | --site | --sit) | |
1157 | ac_prev=site ;; | |
1158 | -site=* | --site=* | --sit=*) | |
3a12e572 | 1159 | site=$ac_optarg ;; |
cd6ede75 UD |
1160 | |
1161 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1162 | ac_prev=srcdir ;; | |
1163 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
3a12e572 | 1164 | srcdir=$ac_optarg ;; |
cd6ede75 UD |
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=*) | |
3a12e572 | 1171 | sysconfdir=$ac_optarg ;; |
cd6ede75 UD |
1172 | |
1173 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
3a12e572 | 1174 | ac_prev=target_alias ;; |
cd6ede75 | 1175 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
3a12e572 | 1176 | target_alias=$ac_optarg ;; |
cd6ede75 UD |
1177 | |
1178 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1179 | verbose=yes ;; | |
1180 | ||
3a12e572 UD |
1181 | -version | --version | --versio | --versi | --vers | -V) |
1182 | ac_init_version=: ;; | |
cd6ede75 UD |
1183 | |
1184 | -with-* | --with-*) | |
322e23db | 1185 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
cd6ede75 | 1186 | # Reject names that are not valid shell variable names. |
322e23db | 1187 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
98ffc1bf | 1188 | as_fn_error $? "invalid package name: '$ac_useropt'" |
322e23db | 1189 | ac_useropt_orig=$ac_useropt |
c6cb8783 | 1190 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
322e23db UD |
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 ;; | |
cd6ede75 UD |
1199 | |
1200 | -without-* | --without-*) | |
322e23db | 1201 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
cd6ede75 | 1202 | # Reject names that are not valid shell variable names. |
322e23db | 1203 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
98ffc1bf | 1204 | as_fn_error $? "invalid package name: '$ac_useropt'" |
322e23db | 1205 | ac_useropt_orig=$ac_useropt |
c6cb8783 | 1206 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
322e23db UD |
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 ;; | |
cd6ede75 UD |
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=*) | |
3a12e572 | 1225 | x_includes=$ac_optarg ;; |
cd6ede75 UD |
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=*) | |
3a12e572 | 1232 | x_libraries=$ac_optarg ;; |
cd6ede75 | 1233 | |
98ffc1bf AH |
1234 | -*) as_fn_error $? "unrecognized option: '$ac_option' |
1235 | Try '$0 --help' for more information" | |
cd6ede75 UD |
1236 | ;; |
1237 | ||
3a12e572 UD |
1238 | *=*) |
1239 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1240 | # Reject names that are not valid shell variable names. | |
b08c89d9 UD |
1241 | case $ac_envvar in #( |
1242 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
98ffc1bf | 1243 | as_fn_error $? "invalid variable name: '$ac_envvar'" ;; |
b08c89d9 | 1244 | esac |
26f56c1c | 1245 | eval $ac_envvar=\$ac_optarg |
3a12e572 UD |
1246 | export $ac_envvar ;; |
1247 | ||
cd6ede75 | 1248 | *) |
3a12e572 | 1249 | # FIXME: should be removed in autoconf 3.0. |
c6cb8783 | 1250 | printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 |
3a12e572 | 1251 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
c6cb8783 | 1252 | printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 |
f318beb8 | 1253 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
cd6ede75 UD |
1254 | ;; |
1255 | ||
1256 | esac | |
1257 | done | |
1258 | ||
1259 | if test -n "$ac_prev"; then | |
3a12e572 | 1260 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
4a531bb0 | 1261 | as_fn_error $? "missing argument to $ac_option" |
cd6ede75 | 1262 | fi |
cd6ede75 | 1263 | |
322e23db UD |
1264 | if test -n "$ac_unrecognized_opts"; then |
1265 | case $enable_option_checking in | |
1266 | no) ;; | |
4a531bb0 | 1267 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
c6cb8783 | 1268 | *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
322e23db UD |
1269 | esac |
1270 | fi | |
1271 | ||
1272 | # Check all directory arguments for consistency. | |
26f56c1c UD |
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 \ | |
c6cb8783 | 1276 | libdir localedir mandir runstatedir |
cd6ede75 | 1277 | do |
26f56c1c | 1278 | eval ac_val=\$$ac_var |
322e23db UD |
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. | |
3a12e572 | 1286 | case $ac_val in |
26f56c1c UD |
1287 | [\\/$]* | ?:[\\/]* ) continue;; |
1288 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
cd6ede75 | 1289 | esac |
4a531bb0 | 1290 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
cd6ede75 UD |
1291 | done |
1292 | ||
98ffc1bf | 1293 | # There might be people who depend on the old broken behavior: '$host' |
3a12e572 UD |
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 | |
3a12e572 UD |
1304 | elif test "x$build_alias" != "x$host_alias"; then |
1305 | cross_compiling=yes | |
1306 | fi | |
1307 | fi | |
cd6ede75 | 1308 | |
3a12e572 UD |
1309 | ac_tool_prefix= |
1310 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1311 | ||
1312 | test "$silent" = yes && exec 6>/dev/null | |
cd6ede75 | 1313 | |
cd6ede75 | 1314 | |
26f56c1c UD |
1315 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1316 | ac_ls_di=`ls -di .` && | |
1317 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
4a531bb0 | 1318 | as_fn_error $? "working directory cannot be determined" |
26f56c1c | 1319 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
4a531bb0 | 1320 | as_fn_error $? "pwd does not report name of working directory" |
26f56c1c UD |
1321 | |
1322 | ||
cd6ede75 UD |
1323 | # Find the source files, if location was not specified. |
1324 | if test -z "$srcdir"; then | |
1325 | ac_srcdir_defaulted=yes | |
26f56c1c | 1326 | # Try the directory containing this script, then the parent directory. |
322e23db UD |
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 || | |
c6cb8783 | 1332 | printf "%s\n" X"$as_myself" | |
26f56c1c UD |
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'` | |
cd6ede75 | 1350 | srcdir=$ac_confdir |
26f56c1c | 1351 | if test ! -r "$srcdir/$ac_unique_file"; then |
cd6ede75 UD |
1352 | srcdir=.. |
1353 | fi | |
1354 | else | |
1355 | ac_srcdir_defaulted=no | |
1356 | fi | |
26f56c1c UD |
1357 | if test ! -r "$srcdir/$ac_unique_file"; then |
1358 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
4a531bb0 | 1359 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
cd6ede75 | 1360 | fi |
98ffc1bf | 1361 | ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" |
26f56c1c | 1362 | ac_abs_confdir=`( |
4a531bb0 | 1363 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
26f56c1c UD |
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 | |
3a12e572 UD |
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 | |
98ffc1bf | 1389 | 'configure' configures GNU C Library (see version.h) to adapt to many kinds of systems. |
3a12e572 UD |
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 | |
98ffc1bf | 1403 | -q, --quiet, --silent do not print 'checking ...' messages |
3a12e572 | 1404 | --cache-file=FILE cache test results in FILE [disabled] |
98ffc1bf | 1405 | -C, --config-cache alias for '--cache-file=config.cache' |
3a12e572 | 1406 | -n, --no-create do not create output files |
98ffc1bf | 1407 | --srcdir=DIR find the sources in DIR [configure dir or '..'] |
3a12e572 | 1408 | |
3a12e572 UD |
1409 | Installation directories: |
1410 | --prefix=PREFIX install architecture-independent files in PREFIX | |
322e23db | 1411 | [$ac_default_prefix] |
3a12e572 | 1412 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
322e23db | 1413 | [PREFIX] |
3a12e572 | 1414 | |
98ffc1bf AH |
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'. | |
3a12e572 UD |
1419 | |
1420 | For better control, use the options below. | |
1421 | ||
1422 | Fine tuning of the installation directories: | |
322e23db UD |
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] | |
c6cb8783 | 1429 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
322e23db UD |
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] | |
f318beb8 | 1438 | --docdir=DIR documentation root [DATAROOTDIR/doc/glibc] |
322e23db UD |
1439 | --htmldir=DIR html documentation [DOCDIR] |
1440 | --dvidir=DIR dvi documentation [DOCDIR] | |
1441 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1442 | --psdir=DIR ps documentation [DOCDIR] | |
3a12e572 UD |
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 | |
cd6ede75 | 1452 | |
3a12e572 | 1453 | if test -n "$ac_init_help"; then |
f4b07664 RM |
1454 | case $ac_init_help in |
1455 | short | recursive ) echo "Configuration of GNU C Library (see version.h):";; | |
1456 | esac | |
3a12e572 UD |
1457 | cat <<\_ACEOF |
1458 | ||
1459 | Optional Features: | |
322e23db | 1460 | --disable-option-checking ignore unrecognized --enable/--with options |
3a12e572 UD |
1461 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1462 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
ba144c17 L |
1463 | --disable-static-c++-tests |
1464 | disable static C++ tests[default=no] | |
23f12e6e L |
1465 | --disable-static-c++-link-check |
1466 | disable static C++ link check [default=no] | |
6b7f6183 RM |
1467 | --disable-sanity-checks really do not use threads (should not be used except |
1468 | in special situations) [default=yes] | |
a0da5fe1 | 1469 | --enable-shared build shared library [default=yes if GNU ld] |
11bf311e | 1470 | --enable-profile build profiled library [default=no] |
23645707 SP |
1471 | --disable-default-pie Do not build glibc programs and the testsuite as PIE |
1472 | [default=no] | |
1cba4036 | 1473 | --disable-timezone-tools |
44f826e3 | 1474 | do not install timezone tools [default=install] |
740b3dbe L |
1475 | --enable-hardcoded-path-in-tests |
1476 | hardcode newly built glibc path in tests | |
1477 | [default=no] | |
3a12e572 | 1478 | --disable-hidden-plt do not hide internal function calls to avoid PLT |
4df8c11d | 1479 | --enable-bind-now disable lazy relocations in DSOs |
03baef1c NA |
1480 | --enable-stack-protector=[yes|no|all|strong] |
1481 | Use -fstack-protector[-all|-strong] to detect glibc | |
1482 | buffer overflows | |
6b7f6183 | 1483 | --enable-static-nss build static NSS modules [default=no] |
3a12e572 | 1484 | --disable-force-install don't force installation of files from this package, |
6b7f6183 | 1485 | even if they are older than the installed files |
8894bad3 AM |
1486 | --enable-maintainer-mode |
1487 | enable make rules and dependencies not useful (and | |
1488 | sometimes confusing) to the casual installer | |
6b7f6183 RM |
1489 | --enable-kernel=VERSION compile for compatibility with kernel not older than |
1490 | VERSION | |
a4ecc9eb | 1491 | --disable-werror do not build with -Werror |
425ce2ed UD |
1492 | --enable-multi-arch enable single DSO with optimizations for multiple |
1493 | architectures | |
33784089 RE |
1494 | --enable-memory-tagging enable memory tagging if supported by the |
1495 | architecture [default=no] | |
3a097cc7 | 1496 | --enable-systemtap enable systemtap static probe points [default=no] |
c53d909c | 1497 | --disable-build-nscd disable building and installing the nscd daemon |
3cc3ef96 | 1498 | --disable-nscd library functions will not contact the nscd daemon |
e4608715 | 1499 | --enable-pt_chown Enable building and installing pt_chown |
5695d46f AS |
1500 | --enable-mathvec Enable building and installing mathvec [default |
1501 | depends on architecture] | |
f753fa7d L |
1502 | --enable-cet enable Intel Control-flow Enforcement Technology |
1503 | (CET), x86 only | |
ebae2f5a MC |
1504 | --disable-scv syscalls will not use scv instruction, even if the |
1505 | kernel supports it, powerpc only | |
64d9580c FB |
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. | |
3a12e572 UD |
1510 | |
1511 | Optional Packages: | |
1512 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1513 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
8b748aed JM |
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 | |
3a12e572 UD |
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 | |
6b7f6183 | 1519 | --with-binutils=PATH specify location of binutils (as and ld) |
74a30a58 | 1520 | --with-selinux if building with SELinux support |
6b7f6183 | 1521 | --with-headers=PATH location of system headers to use (for example |
26f56c1c | 1522 | /usr/src/linux/include) [default=compiler default] |
6413fcde FW |
1523 | --with-nonshared-cflags=CFLAGS |
1524 | build nonshared libraries with additional CFLAGS | |
9ba202c7 FW |
1525 | --with-rtld-early-cflags=CFLAGS |
1526 | build early initialization with additional CFLAGS | |
bada2e31 L |
1527 | --with-timeoutfactor=NUM |
1528 | specify an integer to scale the timeout | |
6c0be743 DD |
1529 | --with-man-pages=VERSION |
1530 | tie manual to a specific man-pages version | |
2ceaa76a | 1531 | --with-cpu=CPU select code for CPU variant |
3a12e572 UD |
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> | |
26f56c1c | 1538 | LIBS libraries to pass to the linker, e.g. -l<library> |
b08c89d9 | 1539 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
26f56c1c | 1540 | you have headers in a nonstandard directory <include dir> |
b79f2575 | 1541 | TEST_CC C compiler for testing |
3a12e572 | 1542 | CPP C preprocessor |
925c3c5c UD |
1543 | CXX C++ compiler command |
1544 | CXXFLAGS C++ compiler flags | |
b79f2575 | 1545 | TEST_CXX C++ compiler for testing |
3a12e572 | 1546 | |
98ffc1bf | 1547 | Use these variables to override the choices made by 'configure' or to help |
3a12e572 UD |
1548 | it to find libraries and programs with nonstandard names/locations. |
1549 | ||
a306c790 | 1550 | Report bugs to <https://sourceware.org/bugzilla/>. |
02d35f06 | 1551 | GNU C Library home page: <https://www.gnu.org/software/glibc/>. |
c6cb8783 | 1552 | General help using GNU software: <https://www.gnu.org/gethelp/>. |
3a12e572 | 1553 | _ACEOF |
26f56c1c | 1554 | ac_status=$? |
3a12e572 UD |
1555 | fi |
1556 | ||
1557 | if test "$ac_init_help" = "recursive"; then | |
1558 | # If there are subdirs, report their specific --help. | |
3a12e572 | 1559 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
322e23db UD |
1560 | test -d "$ac_dir" || |
1561 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1562 | continue | |
3a12e572 UD |
1563 | ac_builddir=. |
1564 | ||
26f56c1c UD |
1565 | case "$ac_dir" in |
1566 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1567 | *) | |
c6cb8783 | 1568 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
26f56c1c | 1569 | # A ".." for each directory in $ac_dir_suffix. |
c6cb8783 | 1570 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
26f56c1c UD |
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 | |
3a12e572 UD |
1580 | |
1581 | case $srcdir in | |
26f56c1c | 1582 | .) # We are building in place. |
3a12e572 | 1583 | ac_srcdir=. |
26f56c1c UD |
1584 | ac_top_srcdir=$ac_top_builddir_sub |
1585 | ac_abs_top_srcdir=$ac_pwd ;; | |
1586 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
3a12e572 | 1587 | ac_srcdir=$srcdir$ac_dir_suffix; |
26f56c1c UD |
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 ;; | |
3a12e572 | 1594 | esac |
26f56c1c UD |
1595 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1596 | ||
1597 | cd "$ac_dir" || { ac_status=$?; continue; } | |
c6cb8783 SP |
1598 | # Check for configure.gnu first; this name is used for a wrapper for |
1599 | # Metaconfig's "Configure" on case-insensitive file systems. | |
26f56c1c UD |
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 | |
3a12e572 | 1606 | else |
c6cb8783 | 1607 | printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
26f56c1c UD |
1608 | fi || ac_status=$? |
1609 | cd "$ac_pwd" || { ac_status=$?; break; } | |
3a12e572 UD |
1610 | done |
1611 | fi | |
1612 | ||
26f56c1c | 1613 | test -n "$ac_init_help" && exit $ac_status |
3a12e572 UD |
1614 | if $ac_init_version; then |
1615 | cat <<\_ACEOF | |
f4b07664 | 1616 | GNU C Library configure (see version.h) |
98ffc1bf | 1617 | generated by GNU Autoconf 2.72 |
3a12e572 | 1618 | |
98ffc1bf | 1619 | Copyright (C) 2023 Free Software Foundation, Inc. |
3a12e572 UD |
1620 | This configure script is free software; the Free Software Foundation |
1621 | gives unlimited permission to copy, distribute and modify it. | |
1622 | _ACEOF | |
26f56c1c | 1623 | exit |
3a12e572 | 1624 | fi |
3a12e572 | 1625 | |
b08c89d9 UD |
1626 | ## ------------------------ ## |
1627 | ## Autoconf initialization. ## | |
1628 | ## ------------------------ ## | |
3a12e572 | 1629 | |
b08c89d9 UD |
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 () | |
3a12e572 | 1634 | { |
b08c89d9 | 1635 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
c6cb8783 | 1636 | rm -f conftest.$ac_objext conftest.beam |
b08c89d9 UD |
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\"" | |
c6cb8783 | 1643 | printf "%s\n" "$ac_try_echo"; } >&5 |
b08c89d9 UD |
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 | |
c6cb8783 | 1651 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
b08c89d9 UD |
1652 | test $ac_status = 0; } && { |
1653 | test -z "$ac_c_werror_flag" || | |
1654 | test ! -s conftest.err | |
c6cb8783 SP |
1655 | } && test -s conftest.$ac_objext |
1656 | then : | |
b08c89d9 | 1657 | ac_retval=0 |
98ffc1bf AH |
1658 | else case e in #( |
1659 | e) printf "%s\n" "$as_me: failed program was:" >&5 | |
b08c89d9 | 1660 | sed 's/^/| /' conftest.$ac_ext >&5 |
3a12e572 | 1661 | |
98ffc1bf AH |
1662 | ac_retval=1 ;; |
1663 | esac | |
b08c89d9 | 1664 | fi |
f318beb8 | 1665 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
b08c89d9 | 1666 | as_fn_set_status $ac_retval |
3a12e572 | 1667 | |
b08c89d9 | 1668 | } # ac_fn_c_try_compile |
3a12e572 | 1669 | |
b08c89d9 UD |
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 | |
c6cb8783 | 1676 | rm -f conftest.$ac_objext conftest.beam |
b08c89d9 UD |
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\"" | |
c6cb8783 | 1683 | printf "%s\n" "$ac_try_echo"; } >&5 |
b08c89d9 UD |
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 | |
c6cb8783 | 1691 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
b08c89d9 UD |
1692 | test $ac_status = 0; } && { |
1693 | test -z "$ac_cxx_werror_flag" || | |
1694 | test ! -s conftest.err | |
c6cb8783 SP |
1695 | } && test -s conftest.$ac_objext |
1696 | then : | |
b08c89d9 | 1697 | ac_retval=0 |
98ffc1bf AH |
1698 | else case e in #( |
1699 | e) printf "%s\n" "$as_me: failed program was:" >&5 | |
b08c89d9 UD |
1700 | sed 's/^/| /' conftest.$ac_ext >&5 |
1701 | ||
98ffc1bf AH |
1702 | ac_retval=1 ;; |
1703 | esac | |
b08c89d9 | 1704 | fi |
f318beb8 | 1705 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
b08c89d9 UD |
1706 | as_fn_set_status $ac_retval |
1707 | ||
1708 | } # ac_fn_cxx_try_compile | |
1709 | ||
e4693aa7 RM |
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 | |
c6cb8783 | 1716 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
e4693aa7 RM |
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\"" | |
c6cb8783 | 1723 | printf "%s\n" "$ac_try_echo"; } >&5 |
e4693aa7 RM |
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 | |
c6cb8783 | 1731 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
e4693aa7 RM |
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 | |
c6cb8783 SP |
1738 | } |
1739 | then : | |
e4693aa7 | 1740 | ac_retval=0 |
98ffc1bf AH |
1741 | else case e in #( |
1742 | e) printf "%s\n" "$as_me: failed program was:" >&5 | |
e4693aa7 RM |
1743 | sed 's/^/| /' conftest.$ac_ext >&5 |
1744 | ||
98ffc1bf AH |
1745 | ac_retval=1 ;; |
1746 | esac | |
e4693aa7 RM |
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 | ||
dff8da6b PE |
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 () | |
b08c89d9 UD |
1762 | { |
1763 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
dff8da6b | 1764 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
b08c89d9 UD |
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\"" | |
c6cb8783 | 1770 | printf "%s\n" "$ac_try_echo"; } >&5 |
dff8da6b | 1771 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
b08c89d9 UD |
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 | |
c6cb8783 | 1778 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
dff8da6b PE |
1779 | test $ac_status = 0; } > conftest.i && { |
1780 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
b08c89d9 | 1781 | test ! -s conftest.err |
c6cb8783 SP |
1782 | } |
1783 | then : | |
b08c89d9 | 1784 | ac_retval=0 |
98ffc1bf AH |
1785 | else case e in #( |
1786 | e) printf "%s\n" "$as_me: failed program was:" >&5 | |
b08c89d9 UD |
1787 | sed 's/^/| /' conftest.$ac_ext >&5 |
1788 | ||
98ffc1bf AH |
1789 | ac_retval=1 ;; |
1790 | esac | |
b08c89d9 | 1791 | fi |
f318beb8 | 1792 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
b08c89d9 UD |
1793 | as_fn_set_status $ac_retval |
1794 | ||
dff8da6b | 1795 | } # ac_fn_c_try_cpp |
b190bccc | 1796 | |
dff8da6b PE |
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 () | |
b190bccc NT |
1801 | { |
1802 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
dff8da6b PE |
1803 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
1804 | if { { ac_try="$ac_link" | |
b190bccc NT |
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\"" | |
c6cb8783 | 1810 | printf "%s\n" "$ac_try_echo"; } >&5 |
dff8da6b | 1811 | (eval "$ac_link") 2>conftest.err |
b190bccc NT |
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 | |
c6cb8783 | 1818 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
dff8da6b PE |
1819 | test $ac_status = 0; } && { |
1820 | test -z "$ac_c_werror_flag" || | |
b190bccc | 1821 | test ! -s conftest.err |
dff8da6b PE |
1822 | } && test -s conftest$ac_exeext && { |
1823 | test "$cross_compiling" = yes || | |
1824 | test -x conftest$ac_exeext | |
c6cb8783 SP |
1825 | } |
1826 | then : | |
b190bccc | 1827 | ac_retval=0 |
98ffc1bf AH |
1828 | else case e in #( |
1829 | e) printf "%s\n" "$as_me: failed program was:" >&5 | |
b190bccc NT |
1830 | sed 's/^/| /' conftest.$ac_ext >&5 |
1831 | ||
98ffc1bf AH |
1832 | ac_retval=1 ;; |
1833 | esac | |
b190bccc | 1834 | fi |
dff8da6b PE |
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 | |
b190bccc NT |
1840 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1841 | as_fn_set_status $ac_retval | |
1842 | ||
dff8da6b | 1843 | } # ac_fn_c_try_link |
c6cb8783 SP |
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 | ||
b08c89d9 UD |
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 | |
98ffc1bf | 1869 | generated by GNU Autoconf 2.72. Invocation command line was |
b08c89d9 | 1870 | |
c6cb8783 | 1871 | $ $0$ac_configure_args_raw |
b08c89d9 UD |
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 | |
3a12e572 UD |
1899 | |
1900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1901 | for as_dir in $PATH | |
1902 | do | |
1903 | IFS=$as_save_IFS | |
c6cb8783 SP |
1904 | case $as_dir in #((( |
1905 | '') as_dir=./ ;; | |
1906 | */) ;; | |
1907 | *) as_dir=$as_dir/ ;; | |
1908 | esac | |
1909 | printf "%s\n" "PATH: $as_dir" | |
b08c89d9 | 1910 | done |
26f56c1c | 1911 | IFS=$as_save_IFS |
3a12e572 UD |
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. | |
2abf9ff1 | 1927 | # Strip out --silent because we don't want to record it for future runs. |
3a12e572 | 1928 | # Also quote any args containing shell meta-characters. |
2abf9ff1 | 1929 | # Make two passes to allow for proper duplicate-argument suppression. |
3a12e572 | 1930 | ac_configure_args= |
2abf9ff1 RM |
1931 | ac_configure_args0= |
1932 | ac_configure_args1= | |
2abf9ff1 RM |
1933 | ac_must_keep_next=false |
1934 | for ac_pass in 1 2 | |
3a12e572 | 1935 | do |
2abf9ff1 RM |
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 ;; | |
26f56c1c | 1943 | *\'*) |
c6cb8783 | 1944 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
2abf9ff1 RM |
1945 | esac |
1946 | case $ac_pass in | |
b08c89d9 | 1947 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
2abf9ff1 | 1948 | 2) |
b08c89d9 | 1949 | as_fn_append ac_configure_args1 " '$ac_arg'" |
2abf9ff1 | 1950 | if test $ac_must_keep_next = true; then |
9382fcee | 1951 | ac_must_keep_next=false # Got value, back to normal. |
2abf9ff1 | 1952 | else |
9382fcee RM |
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 | |
2abf9ff1 | 1964 | fi |
b08c89d9 | 1965 | as_fn_append ac_configure_args " '$ac_arg'" |
2abf9ff1 RM |
1966 | ;; |
1967 | esac | |
1968 | done | |
3a12e572 | 1969 | done |
b08c89d9 UD |
1970 | { ac_configure_args0=; unset ac_configure_args0;} |
1971 | { ac_configure_args1=; unset ac_configure_args1;} | |
3a12e572 UD |
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. | |
26f56c1c UD |
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. | |
3a12e572 | 1978 | trap 'exit_status=$? |
c6cb8783 SP |
1979 | # Sanitize IFS. |
1980 | IFS=" "" $as_nl" | |
3a12e572 UD |
1981 | # Save into config.log some information that might help in debugging. |
1982 | { | |
1983 | echo | |
f4b07664 | 1984 | |
c6cb8783 | 1985 | printf "%s\n" "## ---------------- ## |
3a12e572 | 1986 | ## Cache variables. ## |
4a531bb0 | 1987 | ## ---------------- ##" |
3a12e572 UD |
1988 | echo |
1989 | # The following way of writing the cache mishandles newlines in values, | |
26f56c1c UD |
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 #( | |
c6cb8783 SP |
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;} ;; | |
26f56c1c UD |
1998 | esac |
1999 | case $ac_var in #( | |
2000 | _ | IFS | as_nl) ;; #( | |
322e23db | 2001 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
b08c89d9 | 2002 | *) { eval $ac_var=; unset $ac_var;} ;; |
26f56c1c UD |
2003 | esac ;; |
2004 | esac | |
2005 | done | |
3a12e572 | 2006 | (set) 2>&1 | |
26f56c1c UD |
2007 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2008 | *${as_nl}ac_space=\ *) | |
3a12e572 | 2009 | sed -n \ |
26f56c1c UD |
2010 | "s/'\''/'\''\\\\'\'''\''/g; |
2011 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2012 | ;; #( | |
3a12e572 | 2013 | *) |
26f56c1c | 2014 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
3a12e572 | 2015 | ;; |
26f56c1c UD |
2016 | esac | |
2017 | sort | |
2018 | ) | |
3a12e572 | 2019 | echo |
f4b07664 | 2020 | |
c6cb8783 | 2021 | printf "%s\n" "## ----------------- ## |
f4b07664 | 2022 | ## Output variables. ## |
4a531bb0 | 2023 | ## ----------------- ##" |
f4b07664 RM |
2024 | echo |
2025 | for ac_var in $ac_subst_vars | |
2026 | do | |
26f56c1c UD |
2027 | eval ac_val=\$$ac_var |
2028 | case $ac_val in | |
c6cb8783 | 2029 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
26f56c1c | 2030 | esac |
c6cb8783 | 2031 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
f4b07664 RM |
2032 | done | sort |
2033 | echo | |
2034 | ||
2035 | if test -n "$ac_subst_files"; then | |
c6cb8783 | 2036 | printf "%s\n" "## ------------------- ## |
26f56c1c | 2037 | ## File substitutions. ## |
4a531bb0 | 2038 | ## ------------------- ##" |
f4b07664 RM |
2039 | echo |
2040 | for ac_var in $ac_subst_files | |
2041 | do | |
26f56c1c UD |
2042 | eval ac_val=\$$ac_var |
2043 | case $ac_val in | |
c6cb8783 | 2044 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
26f56c1c | 2045 | esac |
c6cb8783 | 2046 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
f4b07664 RM |
2047 | done | sort |
2048 | echo | |
2049 | fi | |
2050 | ||
3a12e572 | 2051 | if test -s confdefs.h; then |
c6cb8783 | 2052 | printf "%s\n" "## ----------- ## |
3a12e572 | 2053 | ## confdefs.h. ## |
4a531bb0 | 2054 | ## ----------- ##" |
3a12e572 | 2055 | echo |
26f56c1c | 2056 | cat confdefs.h |
3a12e572 UD |
2057 | echo |
2058 | fi | |
2059 | test "$ac_signal" != 0 && | |
c6cb8783 SP |
2060 | printf "%s\n" "$as_me: caught signal $ac_signal" |
2061 | printf "%s\n" "$as_me: exit $exit_status" | |
3a12e572 | 2062 | } >&5 |
26f56c1c UD |
2063 | rm -f core *.core core.conftest.* && |
2064 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
3a12e572 | 2065 | exit $exit_status |
26f56c1c | 2066 | ' 0 |
3a12e572 | 2067 | for ac_signal in 1 2 13 15; do |
b08c89d9 | 2068 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
3a12e572 UD |
2069 | done |
2070 | ac_signal=0 | |
2071 | ||
2072 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
26f56c1c | 2073 | rm -f -r conftest* confdefs.h |
3a12e572 | 2074 | |
c6cb8783 | 2075 | printf "%s\n" "/* confdefs.h */" > confdefs.h |
b08c89d9 | 2076 | |
3a12e572 UD |
2077 | # Predefined preprocessor variables. |
2078 | ||
c6cb8783 | 2079 | printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
3a12e572 | 2080 | |
c6cb8783 | 2081 | printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
3a12e572 | 2082 | |
c6cb8783 | 2083 | printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
3a12e572 | 2084 | |
c6cb8783 | 2085 | printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
3a12e572 | 2086 | |
c6cb8783 | 2087 | printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
3a12e572 | 2088 | |
c6cb8783 | 2089 | printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h |
b08c89d9 | 2090 | |
3a12e572 UD |
2091 | |
2092 | # Let the site file select an alternate cache file if it wants to. | |
322e23db | 2093 | # Prefer an explicitly selected file to automatically selected ones. |
26f56c1c | 2094 | if test -n "$CONFIG_SITE"; then |
c6cb8783 | 2095 | ac_site_files="$CONFIG_SITE" |
26f56c1c | 2096 | elif test "x$prefix" != xNONE; then |
c6cb8783 | 2097 | ac_site_files="$prefix/share/config.site $prefix/etc/config.site" |
26f56c1c | 2098 | else |
c6cb8783 | 2099 | ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
cd6ede75 | 2100 | fi |
c6cb8783 SP |
2101 | |
2102 | for ac_site_file in $ac_site_files | |
26f56c1c | 2103 | do |
c6cb8783 SP |
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;} | |
3a12e572 | 2113 | sed 's/^/| /' "$ac_site_file" >&5 |
4a531bb0 | 2114 | . "$ac_site_file" \ |
98ffc1bf AH |
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;} | |
4a531bb0 | 2117 | as_fn_error $? "failed to load site script $ac_site_file |
98ffc1bf | 2118 | See 'config.log' for more details" "$LINENO" 5; } |
cd6ede75 UD |
2119 | fi |
2120 | done | |
2121 | ||
2122 | if test -r "$cache_file"; then | |
b08c89d9 UD |
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 | |
c6cb8783 SP |
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;} | |
3a12e572 | 2128 | case $cache_file in |
26f56c1c UD |
2129 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2130 | *) . "./$cache_file";; | |
3a12e572 UD |
2131 | esac |
2132 | fi | |
cd6ede75 | 2133 | else |
c6cb8783 SP |
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;} | |
3a12e572 UD |
2136 | >$cache_file |
2137 | fi | |
2138 | ||
c6cb8783 SP |
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); | |
98ffc1bf | 2154 | static char *e (char **p, int i) |
c6cb8783 SP |
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 | ||
98ffc1bf AH |
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 | ||
c6cb8783 SP |
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=' | |
98ffc1bf | 2210 | /* Does the compiler advertise C99 conformance? */ |
c6cb8783 SP |
2211 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
2212 | # error "Compiler does not advertise C99 conformance" | |
2213 | #endif | |
2214 | ||
98ffc1bf AH |
2215 | // See if C++-style comments work. |
2216 | ||
c6cb8783 SP |
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); | |
98ffc1bf | 2222 | extern void free (void *); |
c6cb8783 SP |
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 | { | |
c6cb8783 SP |
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; | |
98ffc1bf AH |
2337 | // Work around memory leak warnings. |
2338 | free (ia); | |
c6cb8783 SP |
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=' | |
98ffc1bf | 2360 | /* Does the compiler advertise C11 conformance? */ |
c6cb8783 SP |
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 | ||
98ffc1bf AH |
2759 | else case e in #( |
2760 | e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; | |
2761 | esac | |
c6cb8783 SP |
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 | ||
3a12e572 UD |
2779 | # Check that the precious variables saved in the cache have kept the same |
2780 | # value. | |
2781 | ac_cache_corrupted=false | |
26f56c1c | 2782 | for ac_var in $ac_precious_vars; do |
3a12e572 UD |
2783 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2784 | eval ac_new_set=\$ac_env_${ac_var}_set | |
26f56c1c UD |
2785 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2786 | eval ac_new_val=\$ac_env_${ac_var}_value | |
3a12e572 UD |
2787 | case $ac_old_set,$ac_new_set in |
2788 | set,) | |
98ffc1bf AH |
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;} | |
3a12e572 UD |
2791 | ac_cache_corrupted=: ;; |
2792 | ,set) | |
98ffc1bf AH |
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;} | |
3a12e572 UD |
2795 | ac_cache_corrupted=: ;; |
2796 | ,);; | |
2797 | *) | |
2798 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
322e23db UD |
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 | |
98ffc1bf AH |
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;} | |
322e23db UD |
2805 | ac_cache_corrupted=: |
2806 | else | |
98ffc1bf AH |
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;} | |
322e23db UD |
2809 | eval $ac_var=\$ac_old_val |
2810 | fi | |
98ffc1bf AH |
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;} | |
3a12e572 UD |
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 | |
c6cb8783 | 2820 | *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
3a12e572 UD |
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. | |
b08c89d9 | 2825 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
3a12e572 UD |
2826 | esac |
2827 | fi | |
2828 | done | |
2829 | if $ac_cache_corrupted; then | |
98ffc1bf AH |
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;} | |
c6cb8783 SP |
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;} | |
98ffc1bf | 2834 | as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' |
c6cb8783 | 2835 | and start over" "$LINENO" 5 |
cd6ede75 | 2836 | fi |
b08c89d9 UD |
2837 | ## -------------------- ## |
2838 | ## Main body of script. ## | |
2839 | ## -------------------- ## | |
cd6ede75 | 2840 | |
b08c89d9 UD |
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 | |
3a12e572 UD |
2846 | |
2847 | ||
cd6ede75 | 2848 | |
b08c89d9 | 2849 | ac_config_headers="$ac_config_headers config.h" |
63bda0c1 | 2850 | |
444518fe | 2851 | |
cd6ede75 | 2852 | |
8b748aed JM |
2853 | |
2854 | ||
2855 | # Check whether --with-pkgversion was given. | |
c6cb8783 SP |
2856 | if test ${with_pkgversion+y} |
2857 | then : | |
8b748aed JM |
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 | |
98ffc1bf AH |
2863 | else case e in #( |
2864 | e) PKGVERSION="(GNU libc) " | |
2865 | ;; | |
2866 | esac | |
8b748aed JM |
2867 | fi |
2868 | ||
2869 | PKGVERSION_TEXI=`echo "$PKGVERSION" | sed 's/@/@@/g'` | |
2870 | ||
2871 | ||
2872 | ||
2873 | ||
2874 | ||
2875 | # Check whether --with-bugurl was given. | |
c6cb8783 SP |
2876 | if test ${with_bugurl+y} |
2877 | then : | |
8b748aed JM |
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 | |
98ffc1bf AH |
2885 | else case e in #( |
2886 | e) BUGURL="https://www.gnu.org/software/libc/bugs.html" | |
2887 | ;; | |
2888 | esac | |
8b748aed JM |
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 | ||
c6cb8783 | 2905 | printf "%s\n" "#define PKGVERSION \"$PKGVERSION\"" >>confdefs.h |
8b748aed JM |
2906 | |
2907 | ||
c6cb8783 | 2908 | printf "%s\n" "#define REPORT_BUGS_TO \"$REPORT_BUGS_TO\"" >>confdefs.h |
8b748aed JM |
2909 | |
2910 | ||
918b5606 L |
2911 | # Glibc should not depend on any header files |
2912 | ||
2913 | ||
bb931195 TS |
2914 | # We require GCC, and by default use its preprocessor. Override AC_PROG_CPP |
2915 | # here to work around the Autoconf issue discussed in | |
a306c790 | 2916 | # <https://sourceware.org/ml/libc-alpha/2013-01/msg00721.html>. |
bb931195 TS |
2917 | # AC_PROG_CPP |
2918 | ||
b5a5da23 TS |
2919 | # We require GCC. Override _AC_PROG_CC_C89 here to work around the Autoconf |
2920 | # issue discussed in | |
a306c790 | 2921 | # <https://sourceware.org/ml/libc-alpha/2013-01/msg00757.html>. |
b5a5da23 TS |
2922 | |
2923 | ||
7967983f RM |
2924 | |
2925 | ||
2926 | subdirs="$subdirs " | |
2927 | ||
2928 | ||
c16a054d | 2929 | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
2941 | else case e in #( |
2942 | e) ac_build_alias=$build_alias | |
c16a054d | 2943 | test "x$ac_build_alias" = x && |
c6cb8783 | 2944 | ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` |
c16a054d | 2945 | test "x$ac_build_alias" = x && |
4a531bb0 | 2946 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
c6cb8783 SP |
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 | |
98ffc1bf AH |
2949 | ;; |
2950 | esac | |
c16a054d | 2951 | fi |
c6cb8783 SP |
2952 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
2953 | printf "%s\n" "$ac_cv_build" >&6; } | |
c16a054d AS |
2954 | case $ac_cv_build in |
2955 | *-*-*) ;; | |
4a531bb0 | 2956 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
c16a054d AS |
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 | ||
c6cb8783 SP |
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 | |
98ffc1bf AH |
2977 | else case e in #( |
2978 | e) if test "x$host_alias" = x; then | |
c16a054d AS |
2979 | ac_cv_host=$ac_cv_build |
2980 | else | |
c6cb8783 SP |
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 | |
c16a054d | 2983 | fi |
98ffc1bf AH |
2984 | ;; |
2985 | esac | |
c16a054d | 2986 | fi |
c6cb8783 SP |
2987 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2988 | printf "%s\n" "$ac_cv_host" >&6; } | |
c16a054d AS |
2989 | case $ac_cv_host in |
2990 | *-*-*) ;; | |
4a531bb0 | 2991 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
c16a054d AS |
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 | ||
c6cb8783 SP |
3008 | |
3009 | ||
3010 | ||
3011 | ||
3012 | ||
3013 | ||
3014 | ||
3015 | ||
3016 | ||
a152f366 UD |
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 | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
3030 | else case e in #( |
3031 | e) if test -n "$CC"; then | |
a152f366 UD |
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 | |
c6cb8783 SP |
3038 | case $as_dir in #((( |
3039 | '') as_dir=./ ;; | |
3040 | */) ;; | |
3041 | *) as_dir=$as_dir/ ;; | |
3042 | esac | |
b08c89d9 | 3043 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 3044 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
a152f366 | 3045 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
c6cb8783 | 3046 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
3047 | break 2 |
3048 | fi | |
3049 | done | |
b08c89d9 | 3050 | done |
a152f366 | 3051 | IFS=$as_save_IFS |
c8f3e6db | 3052 | |
98ffc1bf AH |
3053 | fi ;; |
3054 | esac | |
26f56c1c | 3055 | fi |
a152f366 UD |
3056 | CC=$ac_cv_prog_CC |
3057 | if test -n "$CC"; then | |
c6cb8783 SP |
3058 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3059 | printf "%s\n" "$CC" >&6; } | |
a152f366 | 3060 | else |
c6cb8783 SP |
3061 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3062 | printf "%s\n" "no" >&6; } | |
26f56c1c UD |
3063 | fi |
3064 | ||
e41db95b | 3065 | |
e41db95b | 3066 | fi |
a152f366 UD |
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 | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
3076 | else case e in #( |
3077 | e) if test -n "$ac_ct_CC"; then | |
a152f366 | 3078 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
a5a0310d | 3079 | else |
a152f366 UD |
3080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3081 | for as_dir in $PATH | |
3082 | do | |
3083 | IFS=$as_save_IFS | |
c6cb8783 SP |
3084 | case $as_dir in #((( |
3085 | '') as_dir=./ ;; | |
3086 | */) ;; | |
3087 | *) as_dir=$as_dir/ ;; | |
3088 | esac | |
b08c89d9 | 3089 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 3090 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
a152f366 | 3091 | ac_cv_prog_ac_ct_CC="gcc" |
c6cb8783 | 3092 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
3093 | break 2 |
3094 | fi | |
3095 | done | |
b08c89d9 | 3096 | done |
a152f366 | 3097 | IFS=$as_save_IFS |
cd6ede75 | 3098 | |
98ffc1bf AH |
3099 | fi ;; |
3100 | esac | |
a152f366 UD |
3101 | fi |
3102 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3103 | if test -n "$ac_ct_CC"; then | |
c6cb8783 SP |
3104 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3105 | printf "%s\n" "$ac_ct_CC" >&6; } | |
cd6ede75 | 3106 | else |
c6cb8783 SP |
3107 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3108 | printf "%s\n" "no" >&6; } | |
26f56c1c UD |
3109 | fi |
3110 | ||
a152f366 UD |
3111 | if test "x$ac_ct_CC" = x; then |
3112 | CC="" | |
3113 | else | |
3114 | case $cross_compiling:$ac_tool_warned in | |
3115 | yes:) | |
c6cb8783 SP |
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;} | |
a152f366 UD |
3118 | ac_tool_warned=yes ;; |
3119 | esac | |
3120 | CC=$ac_ct_CC | |
3121 | fi | |
74a30a58 | 3122 | else |
a152f366 | 3123 | CC="$ac_cv_prog_CC" |
26f56c1c UD |
3124 | fi |
3125 | ||
a152f366 UD |
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 | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
3135 | else case e in #( |
3136 | e) if test -n "$CC"; then | |
a152f366 UD |
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 | |
c6cb8783 SP |
3143 | case $as_dir in #((( |
3144 | '') as_dir=./ ;; | |
3145 | */) ;; | |
3146 | *) as_dir=$as_dir/ ;; | |
3147 | esac | |
b08c89d9 | 3148 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 3149 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
a152f366 | 3150 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
c6cb8783 | 3151 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
3152 | break 2 |
3153 | fi | |
3154 | done | |
b08c89d9 | 3155 | done |
a152f366 | 3156 | IFS=$as_save_IFS |
74a30a58 | 3157 | |
98ffc1bf AH |
3158 | fi ;; |
3159 | esac | |
a152f366 UD |
3160 | fi |
3161 | CC=$ac_cv_prog_CC | |
3162 | if test -n "$CC"; then | |
c6cb8783 SP |
3163 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3164 | printf "%s\n" "$CC" >&6; } | |
5af3245a | 3165 | else |
c6cb8783 SP |
3166 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3167 | printf "%s\n" "no" >&6; } | |
26f56c1c UD |
3168 | fi |
3169 | ||
5af3245a | 3170 | |
a152f366 | 3171 | fi |
26f56c1c | 3172 | fi |
a152f366 UD |
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 | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
3181 | else case e in #( |
3182 | e) if test -n "$CC"; then | |
a152f366 UD |
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 | |
c6cb8783 SP |
3190 | case $as_dir in #((( |
3191 | '') as_dir=./ ;; | |
3192 | */) ;; | |
3193 | *) as_dir=$as_dir/ ;; | |
3194 | esac | |
b08c89d9 | 3195 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 SP |
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 | |
a152f366 UD |
3198 | ac_prog_rejected=yes |
3199 | continue | |
3200 | fi | |
3201 | ac_cv_prog_CC="cc" | |
c6cb8783 | 3202 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
3203 | break 2 |
3204 | fi | |
3205 | done | |
b08c89d9 | 3206 | done |
a152f366 | 3207 | IFS=$as_save_IFS |
26f56c1c | 3208 | |
a152f366 UD |
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 | |
c6cb8783 | 3218 | ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
6b3f2b3d | 3219 | fi |
4442d7e8 | 3220 | fi |
98ffc1bf AH |
3221 | fi ;; |
3222 | esac | |
26f56c1c | 3223 | fi |
a152f366 UD |
3224 | CC=$ac_cv_prog_CC |
3225 | if test -n "$CC"; then | |
c6cb8783 SP |
3226 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3227 | printf "%s\n" "$CC" >&6; } | |
7dbde9db | 3228 | else |
c6cb8783 SP |
3229 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3230 | printf "%s\n" "no" >&6; } | |
26f56c1c UD |
3231 | fi |
3232 | ||
7dbde9db | 3233 | |
26f56c1c | 3234 | fi |
a152f366 UD |
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 | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
3246 | else case e in #( |
3247 | e) if test -n "$CC"; then | |
a152f366 | 3248 | ac_cv_prog_CC="$CC" # Let the user override the test. |
cd6ede75 | 3249 | else |
a152f366 UD |
3250 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3251 | for as_dir in $PATH | |
3252 | do | |
3253 | IFS=$as_save_IFS | |
c6cb8783 SP |
3254 | case $as_dir in #((( |
3255 | '') as_dir=./ ;; | |
3256 | */) ;; | |
3257 | *) as_dir=$as_dir/ ;; | |
3258 | esac | |
b08c89d9 | 3259 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 3260 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
a152f366 | 3261 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
c6cb8783 | 3262 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
3263 | break 2 |
3264 | fi | |
3265 | done | |
b08c89d9 | 3266 | done |
a152f366 | 3267 | IFS=$as_save_IFS |
26f56c1c | 3268 | |
98ffc1bf AH |
3269 | fi ;; |
3270 | esac | |
a152f366 UD |
3271 | fi |
3272 | CC=$ac_cv_prog_CC | |
3273 | if test -n "$CC"; then | |
c6cb8783 SP |
3274 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3275 | printf "%s\n" "$CC" >&6; } | |
650425ce | 3276 | else |
c6cb8783 SP |
3277 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3278 | printf "%s\n" "no" >&6; } | |
26f56c1c UD |
3279 | fi |
3280 | ||
cd6ede75 | 3281 | |
a152f366 UD |
3282 | test -n "$CC" && break |
3283 | done | |
26f56c1c | 3284 | fi |
a152f366 UD |
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 | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
3296 | else case e in #( |
3297 | e) if test -n "$ac_ct_CC"; then | |
a152f366 UD |
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 | |
c6cb8783 SP |
3304 | case $as_dir in #((( |
3305 | '') as_dir=./ ;; | |
3306 | */) ;; | |
3307 | *) as_dir=$as_dir/ ;; | |
3308 | esac | |
b08c89d9 | 3309 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 3310 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
a152f366 | 3311 | ac_cv_prog_ac_ct_CC="$ac_prog" |
c6cb8783 | 3312 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
3313 | break 2 |
3314 | fi | |
3315 | done | |
b08c89d9 | 3316 | done |
a152f366 | 3317 | IFS=$as_save_IFS |
62ab42d6 | 3318 | |
98ffc1bf AH |
3319 | fi ;; |
3320 | esac | |
a152f366 UD |
3321 | fi |
3322 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3323 | if test -n "$ac_ct_CC"; then | |
c6cb8783 SP |
3324 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3325 | printf "%s\n" "$ac_ct_CC" >&6; } | |
35f1e827 | 3326 | else |
c6cb8783 SP |
3327 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3328 | printf "%s\n" "no" >&6; } | |
26f56c1c UD |
3329 | fi |
3330 | ||
35f1e827 | 3331 | |
a152f366 UD |
3332 | test -n "$ac_ct_CC" && break |
3333 | done | |
35f1e827 | 3334 | |
a152f366 UD |
3335 | if test "x$ac_ct_CC" = x; then |
3336 | CC="" | |
3337 | else | |
3338 | case $cross_compiling:$ac_tool_warned in | |
3339 | yes:) | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
3358 | else case e in #( |
3359 | e) if test -n "$CC"; then | |
c6cb8783 SP |
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 | ||
98ffc1bf AH |
3381 | fi ;; |
3382 | esac | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
3404 | else case e in #( |
3405 | e) if test -n "$ac_ct_CC"; then | |
c6cb8783 SP |
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 | ||
98ffc1bf AH |
3427 | fi ;; |
3428 | esac | |
c6cb8783 SP |
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;} | |
a152f366 UD |
3446 | ac_tool_warned=yes ;; |
3447 | esac | |
3448 | CC=$ac_ct_CC | |
3449 | fi | |
c6cb8783 SP |
3450 | else |
3451 | CC="$ac_cv_prog_CC" | |
26f56c1c | 3452 | fi |
cd6ede75 | 3453 | |
26f56c1c | 3454 | fi |
8d4b5a8a UD |
3455 | |
3456 | ||
98ffc1bf AH |
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;} | |
4a531bb0 | 3459 | as_fn_error $? "no acceptable C compiler found in \$PATH |
98ffc1bf | 3460 | See 'config.log' for more details" "$LINENO" 5; } |
26f56c1c | 3461 | |
a152f366 | 3462 | # Provide some information about the compiler. |
c6cb8783 | 3463 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
322e23db UD |
3464 | set X $ac_compile |
3465 | ac_compiler=$2 | |
c6cb8783 | 3466 | for ac_option in --version -v -V -qversion -version; do |
b08c89d9 | 3467 | { { ac_try="$ac_compiler $ac_option >&5" |
a152f366 UD |
3468 | case "(($ac_try" in |
3469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3470 | *) ac_try_echo=$ac_try;; | |
3471 | esac | |
b08c89d9 | 3472 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
c6cb8783 | 3473 | printf "%s\n" "$ac_try_echo"; } >&5 |
b08c89d9 | 3474 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
a152f366 | 3475 | ac_status=$? |
b08c89d9 UD |
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 | |
c6cb8783 | 3483 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
b08c89d9 UD |
3484 | test $ac_status = 0; } |
3485 | done | |
26f56c1c | 3486 | |
a152f366 | 3487 | EXEEXT= |
c6cb8783 SP |
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 | |
98ffc1bf AH |
3493 | else case e in #( |
3494 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a152f366 | 3495 | /* end confdefs.h. */ |
749a9a4f | 3496 | |
a152f366 | 3497 | int |
c6cb8783 | 3498 | main (void) |
a152f366 | 3499 | { |
749a9a4f | 3500 | |
a152f366 UD |
3501 | ; |
3502 | return 0; | |
3503 | } | |
3504 | _ACEOF | |
3505 | rm -f conftest.o conftest.obj | |
b08c89d9 | 3506 | if { { ac_try="$ac_compile" |
a152f366 UD |
3507 | case "(($ac_try" in |
3508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3509 | *) ac_try_echo=$ac_try;; | |
3510 | esac | |
b08c89d9 | 3511 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
c6cb8783 | 3512 | printf "%s\n" "$ac_try_echo"; } >&5 |
a152f366 UD |
3513 | (eval "$ac_compile") 2>&5 |
3514 | ac_status=$? | |
c6cb8783 SP |
3515 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3516 | test $ac_status = 0; } | |
3517 | then : | |
a152f366 UD |
3518 | for ac_file in conftest.o conftest.obj conftest.*; do |
3519 | test -f "$ac_file" || continue; | |
3520 | case $ac_file in | |
322e23db | 3521 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
a152f366 UD |
3522 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3523 | break;; | |
3524 | esac | |
3525 | done | |
98ffc1bf AH |
3526 | else case e in #( |
3527 | e) printf "%s\n" "$as_me: failed program was:" >&5 | |
a152f366 | 3528 | sed 's/^/| /' conftest.$ac_ext >&5 |
26f56c1c | 3529 | |
98ffc1bf AH |
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;} | |
4a531bb0 | 3532 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
98ffc1bf AH |
3533 | See 'config.log' for more details" "$LINENO" 5; } ;; |
3534 | esac | |
26f56c1c | 3535 | fi |
98ffc1bf AH |
3536 | rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; |
3537 | esac | |
cd6ede75 | 3538 | fi |
c6cb8783 SP |
3539 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3540 | printf "%s\n" "$ac_cv_objext" >&6; } | |
a152f366 UD |
3541 | OBJEXT=$ac_cv_objext |
3542 | ac_objext=$OBJEXT | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
3548 | else case e in #( |
3549 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a152f366 | 3550 | /* end confdefs.h. */ |
73237de3 | 3551 | |
a152f366 | 3552 | int |
c6cb8783 | 3553 | main (void) |
a152f366 UD |
3554 | { |
3555 | #ifndef __GNUC__ | |
3556 | choke me | |
3557 | #endif | |
73237de3 | 3558 | |
a152f366 UD |
3559 | ; |
3560 | return 0; | |
3561 | } | |
3562 | _ACEOF | |
c6cb8783 SP |
3563 | if ac_fn_c_try_compile "$LINENO" |
3564 | then : | |
a152f366 | 3565 | ac_compiler_gnu=yes |
98ffc1bf AH |
3566 | else case e in #( |
3567 | e) ac_compiler_gnu=no ;; | |
3568 | esac | |
26f56c1c | 3569 | fi |
c6cb8783 | 3570 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
a152f366 | 3571 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
98ffc1bf AH |
3572 | ;; |
3573 | esac | |
26f56c1c | 3574 | fi |
c6cb8783 SP |
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 | ||
322e23db UD |
3579 | if test $ac_compiler_gnu = yes; then |
3580 | GCC=yes | |
3581 | else | |
3582 | GCC= | |
3583 | fi | |
c6cb8783 | 3584 | ac_test_CFLAGS=${CFLAGS+y} |
a152f366 | 3585 | ac_save_CFLAGS=$CFLAGS |
c6cb8783 SP |
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 | |
98ffc1bf AH |
3591 | else case e in #( |
3592 | e) ac_save_c_werror_flag=$ac_c_werror_flag | |
a152f366 UD |
3593 | ac_c_werror_flag=yes |
3594 | ac_cv_prog_cc_g=no | |
3595 | CFLAGS="-g" | |
b08c89d9 | 3596 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a152f366 | 3597 | /* end confdefs.h. */ |
26f56c1c | 3598 | |
a152f366 | 3599 | int |
c6cb8783 | 3600 | main (void) |
a152f366 | 3601 | { |
958f238f | 3602 | |
a152f366 UD |
3603 | ; |
3604 | return 0; | |
3605 | } | |
3606 | _ACEOF | |
c6cb8783 SP |
3607 | if ac_fn_c_try_compile "$LINENO" |
3608 | then : | |
a152f366 | 3609 | ac_cv_prog_cc_g=yes |
98ffc1bf AH |
3610 | else case e in #( |
3611 | e) CFLAGS="" | |
b08c89d9 | 3612 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a152f366 | 3613 | /* end confdefs.h. */ |
425ce2ed | 3614 | |
a152f366 | 3615 | int |
c6cb8783 | 3616 | main (void) |
a152f366 | 3617 | { |
425ce2ed | 3618 | |
a152f366 UD |
3619 | ; |
3620 | return 0; | |
3621 | } | |
3622 | _ACEOF | |
c6cb8783 SP |
3623 | if ac_fn_c_try_compile "$LINENO" |
3624 | then : | |
425ce2ed | 3625 | |
98ffc1bf AH |
3626 | else case e in #( |
3627 | e) ac_c_werror_flag=$ac_save_c_werror_flag | |
a152f366 | 3628 | CFLAGS="-g" |
b08c89d9 | 3629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a152f366 | 3630 | /* end confdefs.h. */ |
425ce2ed | 3631 | |
a152f366 | 3632 | int |
c6cb8783 | 3633 | main (void) |
a152f366 | 3634 | { |
425ce2ed | 3635 | |
a152f366 UD |
3636 | ; |
3637 | return 0; | |
3638 | } | |
3639 | _ACEOF | |
c6cb8783 SP |
3640 | if ac_fn_c_try_compile "$LINENO" |
3641 | then : | |
a152f366 | 3642 | ac_cv_prog_cc_g=yes |
ff886b82 | 3643 | fi |
98ffc1bf AH |
3644 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
3645 | esac | |
ff886b82 | 3646 | fi |
98ffc1bf AH |
3647 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
3648 | esac | |
a152f366 | 3649 | fi |
c6cb8783 | 3650 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
98ffc1bf AH |
3651 | ac_c_werror_flag=$ac_save_c_werror_flag ;; |
3652 | esac | |
ff886b82 | 3653 | fi |
c6cb8783 SP |
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 | |
a152f366 UD |
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 | |
ff886b82 | 3664 | else |
a152f366 UD |
3665 | if test "$GCC" = yes; then |
3666 | CFLAGS="-O2" | |
3667 | else | |
3668 | CFLAGS= | |
ff886b82 | 3669 | fi |
ff886b82 | 3670 | fi |
c6cb8783 SP |
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 | |
98ffc1bf AH |
3679 | else case e in #( |
3680 | e) ac_cv_prog_cc_c11=no | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
3697 | CC=$ac_save_CC ;; |
3698 | esac | |
c6cb8783 SP |
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; } | |
98ffc1bf AH |
3705 | else case e in #( |
3706 | e) if test "x$ac_cv_prog_cc_c11" = x | |
c6cb8783 SP |
3707 | then : |
3708 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3709 | printf "%s\n" "none needed" >&6; } | |
98ffc1bf AH |
3710 | else case e in #( |
3711 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 | |
c6cb8783 | 3712 | printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } |
98ffc1bf AH |
3713 | CC="$CC $ac_cv_prog_cc_c11" ;; |
3714 | esac | |
c6cb8783 SP |
3715 | fi |
3716 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 | |
98ffc1bf AH |
3717 | ac_prog_cc_stdc=c11 ;; |
3718 | esac | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
3728 | else case e in #( |
3729 | e) ac_cv_prog_cc_c99=no | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
3746 | CC=$ac_save_CC ;; |
3747 | esac | |
c6cb8783 SP |
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; } | |
98ffc1bf AH |
3754 | else case e in #( |
3755 | e) if test "x$ac_cv_prog_cc_c99" = x | |
c6cb8783 SP |
3756 | then : |
3757 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3758 | printf "%s\n" "none needed" >&6; } | |
98ffc1bf AH |
3759 | else case e in #( |
3760 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
c6cb8783 | 3761 | printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } |
98ffc1bf AH |
3762 | CC="$CC $ac_cv_prog_cc_c99" ;; |
3763 | esac | |
c6cb8783 SP |
3764 | fi |
3765 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 | |
98ffc1bf AH |
3766 | ac_prog_cc_stdc=c99 ;; |
3767 | esac | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
3777 | else case e in #( |
3778 | e) ac_cv_prog_cc_c89=no | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
3795 | CC=$ac_save_CC ;; |
3796 | esac | |
c6cb8783 SP |
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; } | |
98ffc1bf AH |
3803 | else case e in #( |
3804 | e) if test "x$ac_cv_prog_cc_c89" = x | |
c6cb8783 SP |
3805 | then : |
3806 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3807 | printf "%s\n" "none needed" >&6; } | |
98ffc1bf AH |
3808 | else case e in #( |
3809 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
c6cb8783 | 3810 | printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } |
98ffc1bf AH |
3811 | CC="$CC $ac_cv_prog_cc_c89" ;; |
3812 | esac | |
c6cb8783 SP |
3813 | fi |
3814 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 | |
98ffc1bf AH |
3815 | ac_prog_cc_stdc=c89 ;; |
3816 | esac | |
c6cb8783 SP |
3817 | fi |
3818 | fi | |
a152f366 UD |
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 | ||
b79f2575 L |
3826 | |
3827 | if test -z "$TEST_CC"; then | |
3828 | TEST_CC="$CC" | |
3829 | fi | |
a152f366 UD |
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 | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
3840 | else case e in #( |
3841 | e) if test -n "$BUILD_CC"; then | |
a152f366 | 3842 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
ff886b82 UD |
3843 | else |
3844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3845 | for as_dir in $PATH | |
3846 | do | |
3847 | IFS=$as_save_IFS | |
c6cb8783 SP |
3848 | case $as_dir in #((( |
3849 | '') as_dir=./ ;; | |
3850 | */) ;; | |
3851 | *) as_dir=$as_dir/ ;; | |
3852 | esac | |
b08c89d9 | 3853 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 3854 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
a152f366 | 3855 | ac_cv_prog_BUILD_CC="$ac_prog" |
c6cb8783 | 3856 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
ff886b82 UD |
3857 | break 2 |
3858 | fi | |
3859 | done | |
b08c89d9 | 3860 | done |
ff886b82 UD |
3861 | IFS=$as_save_IFS |
3862 | ||
98ffc1bf AH |
3863 | fi ;; |
3864 | esac | |
ff886b82 | 3865 | fi |
a152f366 UD |
3866 | BUILD_CC=$ac_cv_prog_BUILD_CC |
3867 | if test -n "$BUILD_CC"; then | |
c6cb8783 SP |
3868 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 |
3869 | printf "%s\n" "$BUILD_CC" >&6; } | |
ff886b82 | 3870 | else |
c6cb8783 SP |
3871 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3872 | printf "%s\n" "no" >&6; } | |
ff886b82 UD |
3873 | fi |
3874 | ||
3875 | ||
a152f366 | 3876 | test -n "$BUILD_CC" && break |
ff886b82 | 3877 | done |
ff886b82 UD |
3878 | |
3879 | fi | |
ff886b82 | 3880 | |
a152f366 UD |
3881 | # On Suns, sometimes $CPP names a directory. |
3882 | if test -n "$CPP" && test -d "$CPP"; then | |
3883 | CPP= | |
ff886b82 | 3884 | fi |
a152f366 | 3885 | if test -z "$CPP"; then |
bb931195 | 3886 | CPP="$CC -E" |
ff886b82 | 3887 | fi |
a152f366 | 3888 | |
e4693aa7 | 3889 | |
ba144c17 L |
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 | |
6c0be743 DD |
3897 | else case e in #( |
3898 | e) static_cxx_tests=yes ;; | |
3899 | esac | |
ba144c17 L |
3900 | fi |
3901 | ||
3902 | config_vars="$config_vars | |
3903 | static-cxx-tests = $static_cxx_tests" | |
3904 | ||
23f12e6e L |
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 | |
6c0be743 DD |
3909 | else case e in #( |
3910 | e) static_cxx_link_check=yes ;; | |
3911 | esac | |
23f12e6e L |
3912 | fi |
3913 | ||
3914 | ||
ad36038c | 3915 | # We need the C++ compiler for testing and libsupport. |
c6cb8783 SP |
3916 | |
3917 | ||
3918 | ||
3919 | ||
3920 | ||
3921 | ||
a152f366 UD |
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 | |
c6cb8783 | 3932 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ |
a152f366 UD |
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 | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
3941 | else case e in #( |
3942 | e) if test -n "$CXX"; then | |
a152f366 UD |
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 | |
c6cb8783 SP |
3949 | case $as_dir in #((( |
3950 | '') as_dir=./ ;; | |
3951 | */) ;; | |
3952 | *) as_dir=$as_dir/ ;; | |
3953 | esac | |
b08c89d9 | 3954 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 3955 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
a152f366 | 3956 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
c6cb8783 | 3957 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
3958 | break 2 |
3959 | fi | |
3960 | done | |
b08c89d9 | 3961 | done |
a152f366 UD |
3962 | IFS=$as_save_IFS |
3963 | ||
98ffc1bf AH |
3964 | fi ;; |
3965 | esac | |
a152f366 UD |
3966 | fi |
3967 | CXX=$ac_cv_prog_CXX | |
3968 | if test -n "$CXX"; then | |
c6cb8783 SP |
3969 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
3970 | printf "%s\n" "$CXX" >&6; } | |
a152f366 | 3971 | else |
c6cb8783 SP |
3972 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3973 | printf "%s\n" "no" >&6; } | |
a152f366 UD |
3974 | fi |
3975 | ||
3976 | ||
3977 | test -n "$CXX" && break | |
3978 | done | |
3979 | fi | |
3980 | if test -z "$CXX"; then | |
3981 | ac_ct_CXX=$CXX | |
c6cb8783 | 3982 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ |
a152f366 UD |
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 | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
3991 | else case e in #( |
3992 | e) if test -n "$ac_ct_CXX"; then | |
a152f366 UD |
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 | |
c6cb8783 SP |
3999 | case $as_dir in #((( |
4000 | '') as_dir=./ ;; | |
4001 | */) ;; | |
4002 | *) as_dir=$as_dir/ ;; | |
4003 | esac | |
b08c89d9 | 4004 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 4005 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
a152f366 | 4006 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
c6cb8783 | 4007 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
4008 | break 2 |
4009 | fi | |
4010 | done | |
b08c89d9 | 4011 | done |
a152f366 UD |
4012 | IFS=$as_save_IFS |
4013 | ||
98ffc1bf AH |
4014 | fi ;; |
4015 | esac | |
a152f366 UD |
4016 | fi |
4017 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4018 | if test -n "$ac_ct_CXX"; then | |
c6cb8783 SP |
4019 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4020 | printf "%s\n" "$ac_ct_CXX" >&6; } | |
a152f366 | 4021 | else |
c6cb8783 SP |
4022 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4023 | printf "%s\n" "no" >&6; } | |
a152f366 UD |
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:) | |
c6cb8783 SP |
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;} | |
a152f366 UD |
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. | |
c6cb8783 | 4046 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
322e23db UD |
4047 | set X $ac_compile |
4048 | ac_compiler=$2 | |
b08c89d9 UD |
4049 | for ac_option in --version -v -V -qversion; do |
4050 | { { ac_try="$ac_compiler $ac_option >&5" | |
a152f366 UD |
4051 | case "(($ac_try" in |
4052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4053 | *) ac_try_echo=$ac_try;; | |
4054 | esac | |
b08c89d9 | 4055 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
c6cb8783 | 4056 | printf "%s\n" "$ac_try_echo"; } >&5 |
b08c89d9 | 4057 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
a152f366 | 4058 | ac_status=$? |
b08c89d9 UD |
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 | |
c6cb8783 | 4066 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
b08c89d9 UD |
4067 | test $ac_status = 0; } |
4068 | done | |
a152f366 | 4069 | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
4075 | else case e in #( |
4076 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ff886b82 UD |
4077 | /* end confdefs.h. */ |
4078 | ||
4079 | int | |
c6cb8783 | 4080 | main (void) |
ff886b82 | 4081 | { |
a152f366 UD |
4082 | #ifndef __GNUC__ |
4083 | choke me | |
4084 | #endif | |
ff886b82 UD |
4085 | |
4086 | ; | |
4087 | return 0; | |
4088 | } | |
4089 | _ACEOF | |
c6cb8783 SP |
4090 | if ac_fn_cxx_try_compile "$LINENO" |
4091 | then : | |
a152f366 | 4092 | ac_compiler_gnu=yes |
98ffc1bf AH |
4093 | else case e in #( |
4094 | e) ac_compiler_gnu=no ;; | |
4095 | esac | |
ff886b82 | 4096 | fi |
c6cb8783 | 4097 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
a152f366 | 4098 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
98ffc1bf AH |
4099 | ;; |
4100 | esac | |
ff886b82 | 4101 | fi |
c6cb8783 SP |
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 | ||
322e23db UD |
4106 | if test $ac_compiler_gnu = yes; then |
4107 | GXX=yes | |
4108 | else | |
4109 | GXX= | |
4110 | fi | |
c6cb8783 | 4111 | ac_test_CXXFLAGS=${CXXFLAGS+y} |
a152f366 | 4112 | ac_save_CXXFLAGS=$CXXFLAGS |
c6cb8783 SP |
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 | |
98ffc1bf AH |
4118 | else case e in #( |
4119 | e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
a152f366 UD |
4120 | ac_cxx_werror_flag=yes |
4121 | ac_cv_prog_cxx_g=no | |
4122 | CXXFLAGS="-g" | |
b08c89d9 | 4123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ff886b82 | 4124 | /* end confdefs.h. */ |
ff886b82 | 4125 | |
ff886b82 | 4126 | int |
c6cb8783 | 4127 | main (void) |
ff886b82 | 4128 | { |
a152f366 | 4129 | |
ff886b82 UD |
4130 | ; |
4131 | return 0; | |
4132 | } | |
4133 | _ACEOF | |
c6cb8783 SP |
4134 | if ac_fn_cxx_try_compile "$LINENO" |
4135 | then : | |
a152f366 | 4136 | ac_cv_prog_cxx_g=yes |
98ffc1bf AH |
4137 | else case e in #( |
4138 | e) CXXFLAGS="" | |
b08c89d9 | 4139 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a152f366 | 4140 | /* end confdefs.h. */ |
ff886b82 | 4141 | |
a152f366 | 4142 | int |
c6cb8783 | 4143 | main (void) |
a152f366 | 4144 | { |
ff886b82 | 4145 | |
a152f366 UD |
4146 | ; |
4147 | return 0; | |
4148 | } | |
ff886b82 | 4149 | _ACEOF |
c6cb8783 SP |
4150 | if ac_fn_cxx_try_compile "$LINENO" |
4151 | then : | |
ff886b82 | 4152 | |
98ffc1bf AH |
4153 | else case e in #( |
4154 | e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
a152f366 | 4155 | CXXFLAGS="-g" |
b08c89d9 | 4156 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ff886b82 | 4157 | /* end confdefs.h. */ |
a152f366 | 4158 | |
ff886b82 | 4159 | int |
c6cb8783 | 4160 | main (void) |
ff886b82 | 4161 | { |
a152f366 | 4162 | |
ff886b82 UD |
4163 | ; |
4164 | return 0; | |
4165 | } | |
4166 | _ACEOF | |
c6cb8783 SP |
4167 | if ac_fn_cxx_try_compile "$LINENO" |
4168 | then : | |
a152f366 | 4169 | ac_cv_prog_cxx_g=yes |
ff886b82 | 4170 | fi |
98ffc1bf AH |
4171 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
4172 | esac | |
a152f366 | 4173 | fi |
98ffc1bf AH |
4174 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
4175 | esac | |
a152f366 | 4176 | fi |
c6cb8783 | 4177 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
98ffc1bf AH |
4178 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;; |
4179 | esac | |
a152f366 | 4180 | fi |
c6cb8783 SP |
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 | |
a152f366 UD |
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 | |
3a12e572 | 4191 | else |
a152f366 UD |
4192 | if test "$GXX" = yes; then |
4193 | CXXFLAGS="-O2" | |
4194 | else | |
4195 | CXXFLAGS= | |
4196 | fi | |
3a12e572 | 4197 | fi |
c6cb8783 SP |
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 | |
98ffc1bf AH |
4206 | else case e in #( |
4207 | e) ac_cv_prog_cxx_cxx11=no | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
4224 | CXX=$ac_save_CXX ;; |
4225 | esac | |
c6cb8783 SP |
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; } | |
98ffc1bf AH |
4232 | else case e in #( |
4233 | e) if test "x$ac_cv_prog_cxx_cxx11" = x | |
c6cb8783 SP |
4234 | then : |
4235 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4236 | printf "%s\n" "none needed" >&6; } | |
98ffc1bf AH |
4237 | else case e in #( |
4238 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 | |
c6cb8783 | 4239 | printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } |
98ffc1bf AH |
4240 | CXX="$CXX $ac_cv_prog_cxx_cxx11" ;; |
4241 | esac | |
c6cb8783 SP |
4242 | fi |
4243 | ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 | |
98ffc1bf AH |
4244 | ac_prog_cxx_stdcxx=cxx11 ;; |
4245 | esac | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
4255 | else case e in #( |
4256 | e) ac_cv_prog_cxx_cxx98=no | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
4273 | CXX=$ac_save_CXX ;; |
4274 | esac | |
c6cb8783 SP |
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; } | |
98ffc1bf AH |
4281 | else case e in #( |
4282 | e) if test "x$ac_cv_prog_cxx_cxx98" = x | |
c6cb8783 SP |
4283 | then : |
4284 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4285 | printf "%s\n" "none needed" >&6; } | |
98ffc1bf AH |
4286 | else case e in #( |
4287 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 | |
c6cb8783 | 4288 | printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } |
98ffc1bf AH |
4289 | CXX="$CXX $ac_cv_prog_cxx_cxx98" ;; |
4290 | esac | |
c6cb8783 SP |
4291 | fi |
4292 | ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 | |
98ffc1bf AH |
4293 | ac_prog_cxx_stdcxx=cxx98 ;; |
4294 | esac | |
c6cb8783 SP |
4295 | fi |
4296 | fi | |
4297 | ||
a152f366 UD |
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 | |
26f56c1c | 4303 | |
b79f2575 | 4304 | |
ad36038c | 4305 | saved_CXX="$CXX" |
b79f2575 | 4306 | if test -z "$TEST_CXX"; then |
b79f2575 L |
4307 | TEST_CXX="$CXX" |
4308 | else | |
b79f2575 L |
4309 | CXX="$TEST_CXX" |
4310 | fi | |
e4693aa7 | 4311 | # It's useless to us if it can't link programs (e.g. missing -lstdc++). |
0cae3f4b | 4312 | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
4318 | else case e in #( |
4319 | e) ac_ext=cpp | |
e4693aa7 RM |
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 | |
0cae3f4b | 4324 | |
d337ceb7 | 4325 | # Default, dynamic case. |
e4693aa7 RM |
4326 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4327 | /* end confdefs.h. */ | |
0cae3f4b | 4328 | |
e4693aa7 | 4329 | int |
c6cb8783 | 4330 | main (void) |
e4693aa7 | 4331 | { |
0cae3f4b | 4332 | |
e4693aa7 RM |
4333 | ; |
4334 | return 0; | |
4335 | } | |
4336 | _ACEOF | |
c6cb8783 SP |
4337 | if ac_fn_cxx_try_link "$LINENO" |
4338 | then : | |
e4693aa7 | 4339 | libc_cv_cxx_link_ok=yes |
98ffc1bf AH |
4340 | else case e in #( |
4341 | e) libc_cv_cxx_link_ok=no ;; | |
4342 | esac | |
0cae3f4b | 4343 | fi |
c6cb8783 | 4344 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
e4693aa7 | 4345 | conftest$ac_exeext conftest.$ac_ext |
ba144c17 | 4346 | if test $static_cxx_link_check$static_cxx_tests = yesyes; then |
23f12e6e L |
4347 | # Static case. |
4348 | old_LDFLAGS="$LDFLAGS" | |
4349 | LDFLAGS="$LDFLAGS -static" | |
4350 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d337ceb7 FW |
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 | |
c6cb8783 SP |
4363 | if ac_fn_cxx_try_link "$LINENO" |
4364 | then : | |
d337ceb7 | 4365 | |
98ffc1bf AH |
4366 | else case e in #( |
4367 | e) libc_cv_cxx_link_ok=no ;; | |
4368 | esac | |
d337ceb7 | 4369 | fi |
c6cb8783 | 4370 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
d337ceb7 | 4371 | conftest$ac_exeext conftest.$ac_ext |
23f12e6e L |
4372 | LDFLAGS="$old_LDFLAGS" |
4373 | fi | |
e4693aa7 RM |
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 | |
98ffc1bf AH |
4379 | ;; |
4380 | esac | |
0cae3f4b | 4381 | fi |
c6cb8783 SP |
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; } | |
ad36038c | 4384 | CXX="$saved_CXX" |
c6cb8783 SP |
4385 | if test $libc_cv_cxx_link_ok != yes |
4386 | then : | |
3ac826b0 | 4387 | CXX=; TEST_CXX= |
b79f2575 | 4388 | fi |
26f56c1c | 4389 | |
db340c90 | 4390 | if test "`cd $srcdir; pwd -P`" = "`pwd -P`"; then |
4a531bb0 | 4391 | as_fn_error $? "you must configure in a separate build directory" "$LINENO" 5 |
26f56c1c | 4392 | fi |
3a12e572 | 4393 | |
a152f366 UD |
4394 | # Check for a --with-gd argument and set libgd-LDFLAGS in config.make. |
4395 | ||
4396 | # Check whether --with-gd was given. | |
c6cb8783 SP |
4397 | if test ${with_gd+y} |
4398 | then : | |
a152f366 UD |
4399 | withval=$with_gd; case "$with_gd" in |
4400 | yes|''|no) ;; | |
4401 | *) libgd_include="-I$withval/include" | |
4402 | libgd_ldflags="-L$withval/lib" ;; | |
26f56c1c | 4403 | esac |
cd6ede75 | 4404 | |
a152f366 | 4405 | fi |
cd6ede75 UD |
4406 | |
4407 | ||
a152f366 | 4408 | # Check whether --with-gd-include was given. |
c6cb8783 SP |
4409 | if test ${with_gd_include+y} |
4410 | then : | |
a152f366 UD |
4411 | withval=$with_gd_include; case "$with_gd_include" in |
4412 | ''|no) ;; | |
4413 | *) libgd_include="-I$withval" ;; | |
cd6ede75 UD |
4414 | esac |
4415 | ||
a152f366 | 4416 | fi |
cd6ede75 | 4417 | |
0816838f | 4418 | |
a152f366 | 4419 | # Check whether --with-gd-lib was given. |
c6cb8783 SP |
4420 | if test ${with_gd_lib+y} |
4421 | then : | |
a152f366 UD |
4422 | withval=$with_gd_lib; case "$with_gd_lib" in |
4423 | ''|no) ;; | |
4424 | *) libgd_ldflags="-L$withval" ;; | |
cd6ede75 UD |
4425 | esac |
4426 | ||
a808d541 UD |
4427 | fi |
4428 | ||
f4b07664 | 4429 | |
a152f366 UD |
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 | |
2ceaa76a | 4438 | |
2ceaa76a | 4439 | |
a152f366 | 4440 | # Check whether --with-binutils was given. |
c6cb8783 SP |
4441 | if test ${with_binutils+y} |
4442 | then : | |
a152f366 | 4443 | withval=$with_binutils; path_binutils=$withval |
98ffc1bf AH |
4444 | else case e in #( |
4445 | e) path_binutils='' ;; | |
4446 | esac | |
a152f366 | 4447 | fi |
ff886b82 UD |
4448 | |
4449 | ||
a152f366 | 4450 | # Check whether --with-selinux was given. |
c6cb8783 SP |
4451 | if test ${with_selinux+y} |
4452 | then : | |
a152f366 | 4453 | withval=$with_selinux; with_selinux=$withval |
98ffc1bf AH |
4454 | else case e in #( |
4455 | e) with_selinux=auto ;; | |
4456 | esac | |
a152f366 | 4457 | fi |
e0a3ed4f | 4458 | |
8f73811b | 4459 | |
e0a3ed4f | 4460 | |
a152f366 | 4461 | # Check whether --with-headers was given. |
c6cb8783 SP |
4462 | if test ${with_headers+y} |
4463 | then : | |
a152f366 | 4464 | withval=$with_headers; sysheaders=$withval |
98ffc1bf AH |
4465 | else case e in #( |
4466 | e) sysheaders='' ;; | |
4467 | esac | |
7efb9bd1 UD |
4468 | fi |
4469 | ||
dfd2257a | 4470 | |
f781ef40 RM |
4471 | |
4472 | ||
6413fcde | 4473 | # Check whether --with-nonshared-cflags was given. |
c6cb8783 SP |
4474 | if test ${with_nonshared_cflags+y} |
4475 | then : | |
6413fcde | 4476 | withval=$with_nonshared_cflags; extra_nonshared_cflags=$withval |
98ffc1bf AH |
4477 | else case e in #( |
4478 | e) extra_nonshared_cflags= ;; | |
4479 | esac | |
6413fcde FW |
4480 | fi |
4481 | ||
4482 | ||
4483 | ||
9ba202c7 | 4484 | # Check whether --with-rtld-early-cflags was given. |
c6cb8783 SP |
4485 | if test ${with_rtld_early_cflags+y} |
4486 | then : | |
9ba202c7 | 4487 | withval=$with_rtld_early_cflags; rtld_early_cflags=$withval |
98ffc1bf AH |
4488 | else case e in #( |
4489 | e) rtld_early_cflags= ;; | |
4490 | esac | |
9ba202c7 FW |
4491 | fi |
4492 | ||
4493 | ||
4494 | ||
bada2e31 L |
4495 | |
4496 | # Check whether --with-timeoutfactor was given. | |
c6cb8783 SP |
4497 | if test ${with_timeoutfactor+y} |
4498 | then : | |
bada2e31 | 4499 | withval=$with_timeoutfactor; timeoutfactor=$withval |
98ffc1bf AH |
4500 | else case e in #( |
4501 | e) timeoutfactor=1 ;; | |
4502 | esac | |
bada2e31 L |
4503 | fi |
4504 | ||
c6cb8783 | 4505 | printf "%s\n" "#define TIMEOUTFACTOR $timeoutfactor" >>confdefs.h |
bada2e31 L |
4506 | |
4507 | ||
6c0be743 DD |
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 | ||
a152f366 | 4519 | # Check whether --enable-sanity-checks was given. |
c6cb8783 SP |
4520 | if test ${enable_sanity_checks+y} |
4521 | then : | |
a152f366 | 4522 | enableval=$enable_sanity_checks; enable_sanity=$enableval |
98ffc1bf AH |
4523 | else case e in #( |
4524 | e) enable_sanity=yes ;; | |
4525 | esac | |
dfd2257a UD |
4526 | fi |
4527 | ||
cd6ede75 | 4528 | |
a152f366 | 4529 | # Check whether --enable-shared was given. |
c6cb8783 SP |
4530 | if test ${enable_shared+y} |
4531 | then : | |
a152f366 | 4532 | enableval=$enable_shared; shared=$enableval |
98ffc1bf AH |
4533 | else case e in #( |
4534 | e) shared=yes ;; | |
4535 | esac | |
a152f366 | 4536 | fi |
cd6ede75 | 4537 | |
a152f366 | 4538 | # Check whether --enable-profile was given. |
c6cb8783 SP |
4539 | if test ${enable_profile+y} |
4540 | then : | |
a152f366 | 4541 | enableval=$enable_profile; profile=$enableval |
98ffc1bf AH |
4542 | else case e in #( |
4543 | e) profile=no ;; | |
4544 | esac | |
a152f366 | 4545 | fi |
cd6ede75 | 4546 | |
23645707 | 4547 | # Check whether --enable-default-pie was given. |
c6cb8783 SP |
4548 | if test ${enable_default_pie+y} |
4549 | then : | |
23645707 | 4550 | enableval=$enable_default_pie; default_pie=$enableval |
98ffc1bf AH |
4551 | else case e in #( |
4552 | e) default_pie=yes ;; | |
4553 | esac | |
9d7a3741 L |
4554 | fi |
4555 | ||
1cba4036 | 4556 | # Check whether --enable-timezone-tools was given. |
c6cb8783 SP |
4557 | if test ${enable_timezone_tools+y} |
4558 | then : | |
1cba4036 | 4559 | enableval=$enable_timezone_tools; enable_timezone_tools=$enableval |
98ffc1bf AH |
4560 | else case e in #( |
4561 | e) enable_timezone_tools=yes ;; | |
4562 | esac | |
1cba4036 MF |
4563 | fi |
4564 | ||
4565 | ||
a152f366 | 4566 | |
740b3dbe | 4567 | # Check whether --enable-hardcoded-path-in-tests was given. |
c6cb8783 SP |
4568 | if test ${enable_hardcoded_path_in_tests+y} |
4569 | then : | |
740b3dbe | 4570 | enableval=$enable_hardcoded_path_in_tests; hardcoded_path_in_tests=$enableval |
98ffc1bf AH |
4571 | else case e in #( |
4572 | e) hardcoded_path_in_tests=no ;; | |
4573 | esac | |
740b3dbe L |
4574 | fi |
4575 | ||
4576 | ||
4577 | ||
a152f366 | 4578 | # Check whether --enable-hidden-plt was given. |
c6cb8783 SP |
4579 | if test ${enable_hidden_plt+y} |
4580 | then : | |
a152f366 | 4581 | enableval=$enable_hidden_plt; hidden=$enableval |
98ffc1bf AH |
4582 | else case e in #( |
4583 | e) hidden=yes ;; | |
4584 | esac | |
2de7874e | 4585 | fi |
cd6ede75 | 4586 | |
a152f366 | 4587 | if test "x$hidden" = xno; then |
c6cb8783 | 4588 | printf "%s\n" "#define NO_HIDDEN 1" >>confdefs.h |
cd6ede75 | 4589 | |
a152f366 | 4590 | fi |
e0a3ed4f | 4591 | |
a152f366 | 4592 | # Check whether --enable-bind-now was given. |
c6cb8783 SP |
4593 | if test ${enable_bind_now+y} |
4594 | then : | |
a152f366 | 4595 | enableval=$enable_bind_now; bindnow=$enableval |
98ffc1bf AH |
4596 | else case e in #( |
4597 | e) bindnow=no ;; | |
4598 | esac | |
a152f366 | 4599 | fi |
e0a3ed4f | 4600 | |
e0a3ed4f | 4601 | |
6901def6 | 4602 | if test "x$bindnow" = xyes; then |
c6cb8783 | 4603 | printf "%s\n" "#define BIND_NOW 1" >>confdefs.h |
6901def6 L |
4604 | |
4605 | fi | |
e0a3ed4f | 4606 | |
03baef1c | 4607 | # Check whether --enable-stack-protector was given. |
c6cb8783 SP |
4608 | if test ${enable_stack_protector+y} |
4609 | then : | |
03baef1c | 4610 | enableval=$enable_stack_protector; enable_stack_protector=$enableval |
98ffc1bf AH |
4611 | else case e in #( |
4612 | e) enable_stack_protector=no ;; | |
4613 | esac | |
03baef1c NA |
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 | ||
a152f366 | 4621 | # Check whether --enable-static-nss was given. |
c6cb8783 SP |
4622 | if test ${enable_static_nss+y} |
4623 | then : | |
a152f366 | 4624 | enableval=$enable_static_nss; static_nss=$enableval |
98ffc1bf AH |
4625 | else case e in #( |
4626 | e) static_nss=no ;; | |
4627 | esac | |
a152f366 | 4628 | fi |
e0a3ed4f | 4629 | |
a152f366 UD |
4630 | if test x"$static_nss" = xyes || test x"$shared" = xno; then |
4631 | static_nss=yes | |
c6cb8783 | 4632 | printf "%s\n" "#define DO_STATIC_NSS 1" >>confdefs.h |
cd6ede75 | 4633 | |
a152f366 | 4634 | fi |
cd6ede75 | 4635 | |
a152f366 | 4636 | # Check whether --enable-force-install was given. |
c6cb8783 SP |
4637 | if test ${enable_force_install+y} |
4638 | then : | |
a152f366 | 4639 | enableval=$enable_force_install; force_install=$enableval |
98ffc1bf AH |
4640 | else case e in #( |
4641 | e) force_install=yes ;; | |
4642 | esac | |
a152f366 | 4643 | fi |
ff886b82 | 4644 | |
3a12e572 | 4645 | |
cd6ede75 | 4646 | |
8894bad3 | 4647 | # Check whether --enable-maintainer-mode was given. |
c6cb8783 SP |
4648 | if test ${enable_maintainer_mode+y} |
4649 | then : | |
8894bad3 | 4650 | enableval=$enable_maintainer_mode; maintainer=$enableval |
98ffc1bf AH |
4651 | else case e in #( |
4652 | e) maintainer=no ;; | |
4653 | esac | |
8894bad3 AM |
4654 | fi |
4655 | ||
4656 | ||
a152f366 | 4657 | # Check whether --enable-kernel was given. |
c6cb8783 SP |
4658 | if test ${enable_kernel+y} |
4659 | then : | |
a152f366 | 4660 | enableval=$enable_kernel; minimum_kernel=$enableval |
cd6ede75 | 4661 | fi |
a152f366 UD |
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= | |
cd6ede75 UD |
4669 | fi |
4670 | fi | |
cd6ede75 | 4671 | |
a4ecc9eb | 4672 | # Check whether --enable-werror was given. |
c6cb8783 SP |
4673 | if test ${enable_werror+y} |
4674 | then : | |
a4ecc9eb | 4675 | enableval=$enable_werror; enable_werror=$enableval |
98ffc1bf AH |
4676 | else case e in #( |
4677 | e) enable_werror=yes ;; | |
4678 | esac | |
a4ecc9eb JM |
4679 | fi |
4680 | ||
4681 | ||
4682 | ||
a152f366 | 4683 | # Check whether --enable-multi-arch was given. |
c6cb8783 SP |
4684 | if test ${enable_multi_arch+y} |
4685 | then : | |
a152f366 | 4686 | enableval=$enable_multi_arch; multi_arch=$enableval |
98ffc1bf AH |
4687 | else case e in #( |
4688 | e) multi_arch=default ;; | |
4689 | esac | |
cd6ede75 UD |
4690 | fi |
4691 | ||
4bca4c17 | 4692 | |
33784089 | 4693 | # Check whether --enable-memory-tagging was given. |
c6cb8783 SP |
4694 | if test ${enable_memory_tagging+y} |
4695 | then : | |
33784089 | 4696 | enableval=$enable_memory_tagging; memory_tagging=$enableval |
98ffc1bf AH |
4697 | else case e in #( |
4698 | e) memory_tagging=no ;; | |
4699 | esac | |
33784089 RE |
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) | |
c6cb8783 | 4706 | printf "%s\n" "#define USE_MTAG 1" >>confdefs.h |
33784089 RE |
4707 | |
4708 | ;; | |
4709 | esac | |
4710 | fi | |
4711 | ||
4712 | ||
3a097cc7 | 4713 | # Check whether --enable-systemtap was given. |
c6cb8783 SP |
4714 | if test ${enable_systemtap+y} |
4715 | then : | |
3a097cc7 | 4716 | enableval=$enable_systemtap; systemtap=$enableval |
98ffc1bf AH |
4717 | else case e in #( |
4718 | e) systemtap=no ;; | |
4719 | esac | |
3a097cc7 RM |
4720 | fi |
4721 | ||
4722 | if test "x$systemtap" != xno; then | |
dff8da6b PE |
4723 | |
4724 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemtap static probe support" >&5 | |
c6cb8783 SP |
4725 | printf %s "checking for systemtap static probe support... " >&6; } |
4726 | if test ${libc_cv_sdt+y} | |
4727 | then : | |
4728 | printf %s "(cached) " >&6 | |
98ffc1bf AH |
4729 | else case e in #( |
4730 | e) old_CFLAGS="$CFLAGS" | |
783dd2d3 | 4731 | CFLAGS="-std=gnu11 $CFLAGS" |
3a097cc7 RM |
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 | |
c6cb8783 SP |
4741 | if ac_fn_c_try_compile "$LINENO" |
4742 | then : | |
3a097cc7 | 4743 | libc_cv_sdt=yes |
98ffc1bf AH |
4744 | else case e in #( |
4745 | e) libc_cv_sdt=no ;; | |
4746 | esac | |
3a097cc7 | 4747 | fi |
c6cb8783 | 4748 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
98ffc1bf AH |
4749 | CFLAGS="$old_CFLAGS" ;; |
4750 | esac | |
3a097cc7 | 4751 | fi |
c6cb8783 SP |
4752 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sdt" >&5 |
4753 | printf "%s\n" "$libc_cv_sdt" >&6; } | |
3a097cc7 | 4754 | if test $libc_cv_sdt = yes; then |
c6cb8783 | 4755 | printf "%s\n" "#define USE_STAP_PROBE 1" >>confdefs.h |
3a097cc7 RM |
4756 | |
4757 | elif test "x$systemtap" != xauto; then | |
98ffc1bf AH |
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;} | |
3a097cc7 | 4760 | as_fn_error $? "systemtap support needs sys/sdt.h with asm support |
98ffc1bf | 4761 | See 'config.log' for more details" "$LINENO" 5; } |
3a097cc7 RM |
4762 | fi |
4763 | fi | |
4764 | ||
c53d909c | 4765 | # Check whether --enable-build-nscd was given. |
c6cb8783 SP |
4766 | if test ${enable_build_nscd+y} |
4767 | then : | |
c53d909c | 4768 | enableval=$enable_build_nscd; build_nscd=$enableval |
98ffc1bf AH |
4769 | else case e in #( |
4770 | e) build_nscd=default ;; | |
4771 | esac | |
c53d909c RM |
4772 | fi |
4773 | ||
4774 | ||
4775 | ||
3cc3ef96 RM |
4776 | # Note the use of $use_nscd is near the bottom of the file. |
4777 | # Check whether --enable-nscd was given. | |
c6cb8783 SP |
4778 | if test ${enable_nscd+y} |
4779 | then : | |
3cc3ef96 | 4780 | enableval=$enable_nscd; use_nscd=$enableval |
98ffc1bf AH |
4781 | else case e in #( |
4782 | e) use_nscd=yes ;; | |
4783 | esac | |
3cc3ef96 RM |
4784 | fi |
4785 | ||
4786 | ||
e4608715 | 4787 | # Check whether --enable-pt_chown was given. |
c6cb8783 SP |
4788 | if test ${enable_pt_chown+y} |
4789 | then : | |
e4608715 | 4790 | enableval=$enable_pt_chown; build_pt_chown=$enableval |
98ffc1bf AH |
4791 | else case e in #( |
4792 | e) build_pt_chown=no ;; | |
4793 | esac | |
e4608715 CD |
4794 | fi |
4795 | ||
4796 | ||
8c12f01d | 4797 | if test "$build_pt_chown" = yes; then |
c6cb8783 | 4798 | printf "%s\n" "#define HAVE_PT_CHOWN 1" >>confdefs.h |
e4608715 CD |
4799 | |
4800 | fi | |
4801 | ||
ebf27d12 ST |
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 | ||
5695d46f | 4814 | # Check whether --enable-mathvec was given. |
c6cb8783 SP |
4815 | if test ${enable_mathvec+y} |
4816 | then : | |
5695d46f | 4817 | enableval=$enable_mathvec; build_mathvec=$enableval |
98ffc1bf AH |
4818 | else case e in #( |
4819 | e) build_mathvec=notset ;; | |
4820 | esac | |
5695d46f AS |
4821 | fi |
4822 | ||
4823 | ||
b190bccc | 4824 | |
9fb81390 FW |
4825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4826 | /* end confdefs.h. */ | |
4827 | ||
4828 | int | |
c6cb8783 | 4829 | main (void) |
9fb81390 FW |
4830 | { |
4831 | ||
4832 | #ifndef __CET__ | |
ae7a94e5 | 4833 | # error no CET compiler support |
9fb81390 FW |
4834 | #endif |
4835 | ; | |
4836 | return 0; | |
4837 | } | |
4838 | _ACEOF | |
c6cb8783 SP |
4839 | if ac_fn_c_try_cpp "$LINENO" |
4840 | then : | |
9fb81390 | 4841 | libc_cv_compiler_default_cet=yes |
98ffc1bf AH |
4842 | else case e in #( |
4843 | e) libc_cv_compiler_default_cet=no ;; | |
4844 | esac | |
9fb81390 | 4845 | fi |
b190bccc | 4846 | rm -f conftest.err conftest.i conftest.$ac_ext |
9fb81390 | 4847 | |
f753fa7d | 4848 | # Check whether --enable-cet was given. |
c6cb8783 SP |
4849 | if test ${enable_cet+y} |
4850 | then : | |
f753fa7d | 4851 | enableval=$enable_cet; enable_cet=$enableval |
98ffc1bf AH |
4852 | else case e in #( |
4853 | e) enable_cet=$libc_cv_compiler_default_cet ;; | |
4854 | esac | |
f753fa7d L |
4855 | fi |
4856 | ||
4857 | ||
ebae2f5a | 4858 | # Check whether --enable-scv was given. |
c6cb8783 SP |
4859 | if test ${enable_scv+y} |
4860 | then : | |
ebae2f5a | 4861 | enableval=$enable_scv; use_scv=$enableval |
98ffc1bf AH |
4862 | else case e in #( |
4863 | e) use_scv=yes ;; | |
4864 | esac | |
ebae2f5a MC |
4865 | fi |
4866 | ||
4867 | ||
c6cb8783 SP |
4868 | if test "$use_scv" != "no" |
4869 | then : | |
4870 | printf "%s\n" "#define USE_PPC_SCV 1" >>confdefs.h | |
ebae2f5a MC |
4871 | |
4872 | fi | |
4873 | ||
64d9580c | 4874 | # Check whether --enable-fortify-source was given. |
c6cb8783 SP |
4875 | if test ${enable_fortify_source+y} |
4876 | then : | |
64d9580c | 4877 | enableval=$enable_fortify_source; enable_fortify_source=$enableval |
98ffc1bf AH |
4878 | else case e in #( |
4879 | e) enable_fortify_source=no ;; | |
4880 | esac | |
64d9580c FB |
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 | ||
a152f366 UD |
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 | |
3a12e572 | 4892 | |
a152f366 UD |
4893 | # Don't allow vendor == "unknown" |
4894 | test "$config_vendor" = unknown && config_vendor= | |
4895 | config_os="`echo $config_os | sed 's/^unknown-//'`" | |
3a12e572 | 4896 | |
a152f366 | 4897 | # Some configurations imply other options. |
0269750c | 4898 | elf=yes |
3a12e572 | 4899 | |
644d3857 | 4900 | # The configure fragment of a port can modify these to supplement |
a152f366 UD |
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='' | |
3a12e572 | 4907 | |
a152f366 | 4908 | submachine= |
26f56c1c | 4909 | |
a152f366 | 4910 | # Check whether --with-cpu was given. |
c6cb8783 SP |
4911 | if test ${with_cpu+y} |
4912 | then : | |
a152f366 | 4913 | withval=$with_cpu; case "$withval" in |
4a531bb0 | 4914 | yes|'') as_fn_error $? "--with-cpu requires an argument" "$LINENO" 5 ;; |
a152f366 UD |
4915 | no) ;; |
4916 | *) submachine="$withval" ;; | |
4917 | esac | |
3a12e572 UD |
4918 | |
4919 | fi | |
3a12e572 | 4920 | |
3a12e572 | 4921 | |
05439291 RM |
4922 | # An preconfigure script can set this when it wants to disable the sanity |
4923 | # check below. | |
4924 | libc_config_ok=no | |
4925 | ||
8df5d347 JM |
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 | ||
3d53d18f AZ |
4931 | # A preconfigure script may define another name to TLS descriptor variant |
4932 | mtls_descriptor=gnu2 | |
4933 | ||
848f0e46 L |
4934 | # A preconfigure script may define another name to traditional TLS variant |
4935 | mtls_traditional=gnu | |
4936 | ||
10a803e0 RM |
4937 | if frags=`ls -d $srcdir/sysdeps/*/preconfigure 2> /dev/null` |
4938 | then | |
c6cb8783 SP |
4939 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysdeps preconfigure fragments" >&5 |
4940 | printf %s "checking for sysdeps preconfigure fragments... " >&6; } | |
10a803e0 RM |
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 | |
c6cb8783 SP |
4946 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5 |
4947 | printf "%s\n" "" >&6; } | |
10a803e0 RM |
4948 | fi |
4949 | ||
3a12e572 | 4950 | |
a152f366 UD |
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 | |
2ce4f015 | 4958 | *-linux* | *-gnu*) |
a152f366 UD |
4959 | ;; |
4960 | *) | |
4e58b648 MF |
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: | |
656ee792 | 4965 | *** https://sourceware.org/glibc/wiki/#Development |
4e58b648 | 4966 | *** and join the community!" "$LINENO" 5 |
a152f366 UD |
4967 | ;; |
4968 | esac | |
3a12e572 | 4969 | fi |
2abf9ff1 | 4970 | |
3e239be6 JM |
4971 | # Set base_machine if not set by a preconfigure fragment. |
4972 | test -n "$base_machine" || base_machine=$machine | |
26f56c1c | 4973 | |
3a12e572 | 4974 | |
43ecc41d AZ |
4975 | ### Locate tools. |
4976 | ||
c6cb8783 SP |
4977 | |
4978 | # Find a good install program. We prefer a C program (faster), | |
43ecc41d AZ |
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. | |
c6cb8783 SP |
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; } | |
43ecc41d | 4994 | if test -z "$INSTALL"; then |
c6cb8783 SP |
4995 | if test ${ac_cv_path_install+y} |
4996 | then : | |
4997 | printf %s "(cached) " >&6 | |
98ffc1bf AH |
4998 | else case e in #( |
4999 | e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43ecc41d AZ |
5000 | for as_dir in $PATH |
5001 | do | |
5002 | IFS=$as_save_IFS | |
c6cb8783 SP |
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]/* | \ | |
43ecc41d AZ |
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 | |
c6cb8783 | 5020 | if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then |
43ecc41d | 5021 | if test $ac_prog = install && |
c6cb8783 | 5022 | grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
43ecc41d AZ |
5023 | # AIX install. It has an incompatible calling convention. |
5024 | : | |
5025 | elif test $ac_prog = install && | |
c6cb8783 | 5026 | grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
43ecc41d AZ |
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 | |
c6cb8783 | 5034 | if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && |
43ecc41d AZ |
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 | |
c6cb8783 | 5039 | ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" |
43ecc41d AZ |
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 | |
98ffc1bf AH |
5053 | ;; |
5054 | esac | |
8df5d347 | 5055 | fi |
c6cb8783 | 5056 | if test ${ac_cv_path_install+y}; then |
43ecc41d AZ |
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 | |
8df5d347 | 5065 | fi |
c6cb8783 SP |
5066 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
5067 | printf "%s\n" "$INSTALL" >&6; } | |
8df5d347 | 5068 | |
43ecc41d AZ |
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}' | |
8df5d347 | 5072 | |
43ecc41d AZ |
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 | |
c6cb8783 SP |
5081 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
5082 | printf %s "checking whether ln -s works... " >&6; } | |
43ecc41d AZ |
5083 | LN_S=$as_ln_s |
5084 | if test "$LN_S" = "ln -s"; then | |
c6cb8783 SP |
5085 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5086 | printf "%s\n" "yes" >&6; } | |
03baef1c | 5087 | else |
c6cb8783 SP |
5088 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
5089 | printf "%s\n" "no, using $LN_S" >&6; } | |
03baef1c NA |
5090 | fi |
5091 | ||
43ecc41d AZ |
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" | |
03baef1c | 5098 | fi |
43ecc41d AZ |
5099 | case "$CC" in |
5100 | *fuse-ld=lld*) LDNAME=ld.lld;; | |
5101 | *) LDNAME=ld;; | |
5102 | esac | |
2d2d7e1a AZ |
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 | |
03baef1c | 5109 | |
2d2d7e1a AZ |
5110 | if test -z "$OBJCOPY"; then |
5111 | OBJCOPY=`$CC -print-prog-name=objcopy` | |
5112 | fi | |
43ecc41d | 5113 | |
2d2d7e1a AZ |
5114 | if test -z "$GPROF"; then |
5115 | GPROF=`$CC -print-prog-name=gprof` | |
5116 | fi | |
43ecc41d | 5117 | |
02abdab0 AZ |
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 | ||
43ecc41d | 5130 | |
03baef1c | 5131 | |
e53ab208 | 5132 | # Accept binutils 2.39 or newer. |
43ecc41d AZ |
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 | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
5146 | else case e in #( |
5147 | e) if test -n "$LD"; then | |
43ecc41d AZ |
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 | |
c6cb8783 SP |
5154 | case $as_dir in #((( |
5155 | '') as_dir=./ ;; | |
5156 | */) ;; | |
5157 | *) as_dir=$as_dir/ ;; | |
5158 | esac | |
43ecc41d | 5159 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 5160 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
43ecc41d | 5161 | ac_cv_prog_LD="$ac_prog" |
c6cb8783 | 5162 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
43ecc41d AZ |
5163 | break 2 |
5164 | fi | |
5165 | done | |
5166 | done | |
5167 | IFS=$as_save_IFS | |
5168 | ||
98ffc1bf AH |
5169 | fi ;; |
5170 | esac | |
cd6ae7ea | 5171 | fi |
43ecc41d AZ |
5172 | LD=$ac_cv_prog_LD |
5173 | if test -n "$LD"; then | |
c6cb8783 SP |
5174 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
5175 | printf "%s\n" "$LD" >&6; } | |
43ecc41d | 5176 | else |
c6cb8783 SP |
5177 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5178 | printf "%s\n" "no" >&6; } | |
cd6ae7ea | 5179 | fi |
cd6ae7ea | 5180 | |
8f6f5362 | 5181 | |
43ecc41d AZ |
5182 | test -n "$LD" && break |
5183 | done | |
8f6f5362 | 5184 | |
43ecc41d AZ |
5185 | if test -z "$LD"; then |
5186 | ac_verc_fail=yes | |
5187 | else | |
5188 | # Found it, now check the version. | |
c6cb8783 SP |
5189 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5 |
5190 | printf %s "checking version of $LD... " >&6; } | |
43ecc41d AZ |
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 | |
c6cb8783 SP |
5199 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
5200 | printf "%s\n" "$ac_prog_version" >&6; } | |
8f6f5362 | 5201 | fi |
43ecc41d AZ |
5202 | if test $ac_verc_fail = yes; then |
5203 | LD=: critic_missing="$critic_missing GNU gold" | |
8f6f5362 | 5204 | fi |
8f6f5362 | 5205 | |
43ecc41d AZ |
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 | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
5218 | else case e in #( |
5219 | e) if test -n "$LD"; then | |
43ecc41d AZ |
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 | |
c6cb8783 SP |
5226 | case $as_dir in #((( |
5227 | '') as_dir=./ ;; | |
5228 | */) ;; | |
5229 | *) as_dir=$as_dir/ ;; | |
5230 | esac | |
43ecc41d | 5231 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 5232 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
43ecc41d | 5233 | ac_cv_prog_LD="$ac_prog" |
c6cb8783 | 5234 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
43ecc41d | 5235 | break 2 |
8f6f5362 | 5236 | fi |
43ecc41d AZ |
5237 | done |
5238 | done | |
5239 | IFS=$as_save_IFS | |
5240 | ||
98ffc1bf AH |
5241 | fi ;; |
5242 | esac | |
43ecc41d AZ |
5243 | fi |
5244 | LD=$ac_cv_prog_LD | |
5245 | if test -n "$LD"; then | |
c6cb8783 SP |
5246 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
5247 | printf "%s\n" "$LD" >&6; } | |
43ecc41d | 5248 | else |
c6cb8783 SP |
5249 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5250 | printf "%s\n" "no" >&6; } | |
84b9230c MF |
5251 | fi |
5252 | ||
3a12e572 | 5253 | |
43ecc41d | 5254 | test -n "$LD" && break |
3a12e572 | 5255 | done |
43ecc41d AZ |
5256 | |
5257 | if test -z "$LD"; then | |
5258 | ac_verc_fail=yes | |
5259 | else | |
5260 | # Found it, now check the version. | |
c6cb8783 SP |
5261 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5 |
5262 | printf %s "checking version of $LD... " >&6; } | |
43ecc41d AZ |
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 | |
c6cb8783 SP |
5271 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
5272 | printf "%s\n" "$ac_prog_version" >&6; } | |
a152f366 | 5273 | fi |
43ecc41d AZ |
5274 | if test $ac_verc_fail = yes; then |
5275 | LD=: critic_missing="$critic_missing LLD" | |
cd6ede75 | 5276 | fi |
3a12e572 | 5277 | |
43ecc41d AZ |
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 | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
5290 | else case e in #( |
5291 | e) if test -n "$LD"; then | |
43ecc41d AZ |
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 | |
c6cb8783 SP |
5298 | case $as_dir in #((( |
5299 | '') as_dir=./ ;; | |
5300 | */) ;; | |
5301 | *) as_dir=$as_dir/ ;; | |
5302 | esac | |
43ecc41d | 5303 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 5304 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
43ecc41d | 5305 | ac_cv_prog_LD="$ac_prog" |
c6cb8783 | 5306 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
43ecc41d | 5307 | break 2 |
925c3c5c UD |
5308 | fi |
5309 | done | |
a152f366 | 5310 | done |
43ecc41d | 5311 | IFS=$as_save_IFS |
6f89d2f3 | 5312 | |
98ffc1bf AH |
5313 | fi ;; |
5314 | esac | |
925c3c5c | 5315 | fi |
43ecc41d AZ |
5316 | LD=$ac_cv_prog_LD |
5317 | if test -n "$LD"; then | |
c6cb8783 SP |
5318 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
5319 | printf "%s\n" "$LD" >&6; } | |
43ecc41d | 5320 | else |
c6cb8783 SP |
5321 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5322 | printf "%s\n" "no" >&6; } | |
925c3c5c UD |
5323 | fi |
5324 | ||
26f56c1c | 5325 | |
43ecc41d AZ |
5326 | test -n "$LD" && break |
5327 | done | |
a152f366 | 5328 | |
43ecc41d AZ |
5329 | if test -z "$LD"; then |
5330 | ac_verc_fail=yes | |
5331 | else | |
5332 | # Found it, now check the version. | |
c6cb8783 SP |
5333 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5 |
5334 | printf %s "checking version of $LD... " >&6; } | |
43ecc41d AZ |
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;; | |
e53ab208 | 5338 | 2.[1-9][0-9][0-9]*|2.39*|2.[4-9][0-9]*|[3-9].*|[1-9][0-9]*) |
43ecc41d AZ |
5339 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
5340 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
26f56c1c | 5341 | |
a152f366 | 5342 | esac |
c6cb8783 SP |
5343 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
5344 | printf "%s\n" "$ac_prog_version" >&6; } | |
43ecc41d AZ |
5345 | fi |
5346 | if test $ac_verc_fail = yes; then | |
5347 | LD=: critic_missing="$critic_missing GNU ld" | |
5348 | fi | |
925c3c5c | 5349 | |
43ecc41d AZ |
5350 | ;; |
5351 | esac | |
5352 | config_vars="$config_vars | |
5353 | with-lld = $libc_cv_with_lld" | |
a152f366 | 5354 | |
43ecc41d AZ |
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 | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
5365 | else case e in #( |
5366 | e) if test -n "$MAKE"; then | |
43ecc41d AZ |
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 | |
c6cb8783 SP |
5373 | case $as_dir in #((( |
5374 | '') as_dir=./ ;; | |
5375 | */) ;; | |
5376 | *) as_dir=$as_dir/ ;; | |
5377 | esac | |
43ecc41d | 5378 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 5379 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
43ecc41d | 5380 | ac_cv_prog_MAKE="$ac_prog" |
c6cb8783 | 5381 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
43ecc41d AZ |
5382 | break 2 |
5383 | fi | |
5384 | done | |
ba75122d | 5385 | done |
43ecc41d | 5386 | IFS=$as_save_IFS |
925c3c5c | 5387 | |
98ffc1bf AH |
5388 | fi ;; |
5389 | esac | |
43ecc41d AZ |
5390 | fi |
5391 | MAKE=$ac_cv_prog_MAKE | |
5392 | if test -n "$MAKE"; then | |
c6cb8783 SP |
5393 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 |
5394 | printf "%s\n" "$MAKE" >&6; } | |
43ecc41d | 5395 | else |
c6cb8783 SP |
5396 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5397 | printf "%s\n" "no" >&6; } | |
43ecc41d | 5398 | fi |
925c3c5c | 5399 | |
ba75122d | 5400 | |
43ecc41d | 5401 | test -n "$MAKE" && break |
a152f366 | 5402 | done |
2abf9ff1 | 5403 | |
43ecc41d AZ |
5404 | if test -z "$MAKE"; then |
5405 | ac_verc_fail=yes | |
5406 | else | |
5407 | # Found it, now check the version. | |
c6cb8783 SP |
5408 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $MAKE" >&5 |
5409 | printf %s "checking version of $MAKE... " >&6; } | |
43ecc41d AZ |
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;; | |
925c3c5c | 5416 | |
43ecc41d | 5417 | esac |
c6cb8783 SP |
5418 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
5419 | printf "%s\n" "$ac_prog_version" >&6; } | |
43ecc41d AZ |
5420 | fi |
5421 | if test $ac_verc_fail = yes; then | |
5422 | critic_missing="$critic_missing make" | |
5423 | fi | |
26f56c1c | 5424 | |
26f56c1c | 5425 | |
43ecc41d AZ |
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 | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
5435 | else case e in #( |
5436 | e) if test -n "$MSGFMT"; then | |
43ecc41d AZ |
5437 | ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. |
5438 | else | |
5439 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
a152f366 UD |
5440 | for as_dir in $PATH |
5441 | do | |
5442 | IFS=$as_save_IFS | |
c6cb8783 SP |
5443 | case $as_dir in #((( |
5444 | '') as_dir=./ ;; | |
5445 | */) ;; | |
5446 | *) as_dir=$as_dir/ ;; | |
5447 | esac | |
43ecc41d | 5448 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 5449 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
43ecc41d | 5450 | ac_cv_prog_MSGFMT="$ac_prog" |
c6cb8783 | 5451 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
43ecc41d AZ |
5452 | break 2 |
5453 | fi | |
5454 | done | |
b08c89d9 | 5455 | done |
a152f366 | 5456 | IFS=$as_save_IFS |
2abf9ff1 | 5457 | |
98ffc1bf AH |
5458 | fi ;; |
5459 | esac | |
26f56c1c | 5460 | fi |
43ecc41d AZ |
5461 | MSGFMT=$ac_cv_prog_MSGFMT |
5462 | if test -n "$MSGFMT"; then | |
c6cb8783 SP |
5463 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
5464 | printf "%s\n" "$MSGFMT" >&6; } | |
26f56c1c | 5465 | else |
c6cb8783 SP |
5466 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5467 | printf "%s\n" "no" >&6; } | |
26f56c1c | 5468 | fi |
a152f366 | 5469 | |
925c3c5c | 5470 | |
43ecc41d AZ |
5471 | test -n "$MSGFMT" && break |
5472 | done | |
1b74661a | 5473 | |
43ecc41d AZ |
5474 | if test -z "$MSGFMT"; then |
5475 | ac_verc_fail=yes | |
5476 | else | |
5477 | # Found it, now check the version. | |
c6cb8783 SP |
5478 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $MSGFMT" >&5 |
5479 | printf %s "checking version of $MSGFMT... " >&6; } | |
43ecc41d AZ |
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;; | |
6014c65d | 5486 | |
43ecc41d | 5487 | esac |
c6cb8783 SP |
5488 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
5489 | printf "%s\n" "$ac_prog_version" >&6; } | |
43ecc41d AZ |
5490 | fi |
5491 | if test $ac_verc_fail = yes; then | |
5492 | MSGFMT=: aux_missing="$aux_missing msgfmt" | |
5493 | fi | |
4baa087a | 5494 | |
43ecc41d AZ |
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 | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
5504 | else case e in #( |
5505 | e) if test -n "$MAKEINFO"; then | |
43ecc41d | 5506 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. |
4baa087a | 5507 | else |
43ecc41d AZ |
5508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5509 | for as_dir in $PATH | |
5510 | do | |
5511 | IFS=$as_save_IFS | |
c6cb8783 SP |
5512 | case $as_dir in #((( |
5513 | '') as_dir=./ ;; | |
5514 | */) ;; | |
5515 | *) as_dir=$as_dir/ ;; | |
5516 | esac | |
43ecc41d | 5517 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 5518 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
43ecc41d | 5519 | ac_cv_prog_MAKEINFO="$ac_prog" |
c6cb8783 | 5520 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
43ecc41d AZ |
5521 | break 2 |
5522 | fi | |
5523 | done | |
5524 | done | |
5525 | IFS=$as_save_IFS | |
5526 | ||
98ffc1bf AH |
5527 | fi ;; |
5528 | esac | |
4baa087a | 5529 | fi |
43ecc41d AZ |
5530 | MAKEINFO=$ac_cv_prog_MAKEINFO |
5531 | if test -n "$MAKEINFO"; then | |
c6cb8783 SP |
5532 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
5533 | printf "%s\n" "$MAKEINFO" >&6; } | |
4baa087a | 5534 | else |
c6cb8783 SP |
5535 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5536 | printf "%s\n" "no" >&6; } | |
43ecc41d AZ |
5537 | fi |
5538 | ||
5539 | ||
5540 | test -n "$MAKEINFO" && break | |
5541 | done | |
5542 | ||
5543 | if test -z "$MAKEINFO"; then | |
5544 | ac_verc_fail=yes | |
4baa087a | 5545 | else |
43ecc41d | 5546 | # Found it, now check the version. |
c6cb8783 SP |
5547 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $MAKEINFO" >&5 |
5548 | printf %s "checking version of $MAKEINFO... " >&6; } | |
43ecc41d AZ |
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 | |
c6cb8783 SP |
5557 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
5558 | printf "%s\n" "$ac_prog_version" >&6; } | |
4baa087a | 5559 | fi |
43ecc41d AZ |
5560 | if test $ac_verc_fail = yes; then |
5561 | MAKEINFO=: aux_missing="$aux_missing makeinfo" | |
4baa087a | 5562 | fi |
4baa087a | 5563 | |
43ecc41d | 5564 | for ac_prog in sed |
4baa087a RM |
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 | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
5573 | else case e in #( |
5574 | e) if test -n "$SED"; then | |
43ecc41d | 5575 | ac_cv_prog_SED="$SED" # Let the user override the test. |
4baa087a RM |
5576 | else |
5577 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5578 | for as_dir in $PATH | |
5579 | do | |
5580 | IFS=$as_save_IFS | |
c6cb8783 SP |
5581 | case $as_dir in #((( |
5582 | '') as_dir=./ ;; | |
5583 | */) ;; | |
5584 | *) as_dir=$as_dir/ ;; | |
5585 | esac | |
b08c89d9 | 5586 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 5587 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
43ecc41d | 5588 | ac_cv_prog_SED="$ac_prog" |
c6cb8783 | 5589 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
4baa087a RM |
5590 | break 2 |
5591 | fi | |
5592 | done | |
b08c89d9 | 5593 | done |
26f56c1c | 5594 | IFS=$as_save_IFS |
4baa087a | 5595 | |
98ffc1bf AH |
5596 | fi ;; |
5597 | esac | |
4baa087a | 5598 | fi |
43ecc41d AZ |
5599 | SED=$ac_cv_prog_SED |
5600 | if test -n "$SED"; then | |
c6cb8783 SP |
5601 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 |
5602 | printf "%s\n" "$SED" >&6; } | |
4baa087a | 5603 | else |
c6cb8783 SP |
5604 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5605 | printf "%s\n" "no" >&6; } | |
4baa087a RM |
5606 | fi |
5607 | ||
26f56c1c | 5608 | |
43ecc41d | 5609 | test -n "$SED" && break |
4baa087a RM |
5610 | done |
5611 | ||
43ecc41d | 5612 | if test -z "$SED"; then |
4baa087a RM |
5613 | ac_verc_fail=yes |
5614 | else | |
5615 | # Found it, now check the version. | |
c6cb8783 SP |
5616 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $SED" >&5 |
5617 | printf %s "checking version of $SED... " >&6; } | |
43ecc41d | 5618 | ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed[^0-9]* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
4baa087a RM |
5619 | case $ac_prog_version in |
5620 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
43ecc41d | 5621 | 3.0[2-9]*|3.[1-9]*|[4-9]*) |
4baa087a RM |
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 | |
c6cb8783 SP |
5626 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
5627 | printf "%s\n" "$ac_prog_version" >&6; } | |
4baa087a RM |
5628 | fi |
5629 | if test $ac_verc_fail = yes; then | |
43ecc41d | 5630 | SED=: aux_missing="$aux_missing sed" |
4baa087a RM |
5631 | fi |
5632 | ||
43ecc41d | 5633 | for ac_prog in gawk |
f300dc73 L |
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 | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
5642 | else case e in #( |
5643 | e) if test -n "$AWK"; then | |
43ecc41d | 5644 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
f300dc73 L |
5645 | else |
5646 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5647 | for as_dir in $PATH | |
5648 | do | |
5649 | IFS=$as_save_IFS | |
c6cb8783 SP |
5650 | case $as_dir in #((( |
5651 | '') as_dir=./ ;; | |
5652 | */) ;; | |
5653 | *) as_dir=$as_dir/ ;; | |
5654 | esac | |
f300dc73 | 5655 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 5656 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
43ecc41d | 5657 | ac_cv_prog_AWK="$ac_prog" |
c6cb8783 | 5658 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
f300dc73 L |
5659 | break 2 |
5660 | fi | |
5661 | done | |
5662 | done | |
5663 | IFS=$as_save_IFS | |
5664 | ||
98ffc1bf AH |
5665 | fi ;; |
5666 | esac | |
f300dc73 | 5667 | fi |
43ecc41d AZ |
5668 | AWK=$ac_cv_prog_AWK |
5669 | if test -n "$AWK"; then | |
c6cb8783 SP |
5670 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
5671 | printf "%s\n" "$AWK" >&6; } | |
f300dc73 | 5672 | else |
c6cb8783 SP |
5673 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5674 | printf "%s\n" "no" >&6; } | |
f300dc73 L |
5675 | fi |
5676 | ||
5677 | ||
43ecc41d | 5678 | test -n "$AWK" && break |
f300dc73 L |
5679 | done |
5680 | ||
43ecc41d | 5681 | if test -z "$AWK"; then |
f300dc73 L |
5682 | ac_verc_fail=yes |
5683 | else | |
5684 | # Found it, now check the version. | |
c6cb8783 SP |
5685 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $AWK" >&5 |
5686 | printf %s "checking version of $AWK... " >&6; } | |
43ecc41d | 5687 | ac_prog_version=`$AWK --version 2>&1 | sed -n 's/^.*GNU Awk[^0-9]*\([0-9][0-9.]*\).*$/\1/p'` |
f300dc73 L |
5688 | case $ac_prog_version in |
5689 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
43ecc41d | 5690 | 3.1.[2-9]*|3.[2-9]*|[4-9]*) |
f300dc73 L |
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 | |
c6cb8783 SP |
5695 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
5696 | printf "%s\n" "$ac_prog_version" >&6; } | |
f300dc73 L |
5697 | fi |
5698 | if test $ac_verc_fail = yes; then | |
43ecc41d | 5699 | critic_missing="$critic_missing gawk" |
f300dc73 L |
5700 | fi |
5701 | ||
43ecc41d | 5702 | for ac_prog in bison |
224edada FS |
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 | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
5711 | else case e in #( |
5712 | e) if test -n "$BISON"; then | |
43ecc41d | 5713 | ac_cv_prog_BISON="$BISON" # Let the user override the test. |
224edada FS |
5714 | else |
5715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5716 | for as_dir in $PATH | |
5717 | do | |
5718 | IFS=$as_save_IFS | |
c6cb8783 SP |
5719 | case $as_dir in #((( |
5720 | '') as_dir=./ ;; | |
5721 | */) ;; | |
5722 | *) as_dir=$as_dir/ ;; | |
5723 | esac | |
224edada | 5724 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 5725 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
43ecc41d | 5726 | ac_cv_prog_BISON="$ac_prog" |
c6cb8783 | 5727 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
224edada FS |
5728 | break 2 |
5729 | fi | |
5730 | done | |
5731 | done | |
5732 | IFS=$as_save_IFS | |
5733 | ||
98ffc1bf AH |
5734 | fi ;; |
5735 | esac | |
224edada | 5736 | fi |
43ecc41d AZ |
5737 | BISON=$ac_cv_prog_BISON |
5738 | if test -n "$BISON"; then | |
c6cb8783 SP |
5739 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
5740 | printf "%s\n" "$BISON" >&6; } | |
224edada | 5741 | else |
c6cb8783 SP |
5742 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5743 | printf "%s\n" "no" >&6; } | |
224edada FS |
5744 | fi |
5745 | ||
5746 | ||
43ecc41d | 5747 | test -n "$BISON" && break |
224edada FS |
5748 | done |
5749 | ||
43ecc41d | 5750 | if test -z "$BISON"; then |
224edada FS |
5751 | ac_verc_fail=yes |
5752 | else | |
5753 | # Found it, now check the version. | |
c6cb8783 SP |
5754 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $BISON" >&5 |
5755 | printf %s "checking version of $BISON... " >&6; } | |
43ecc41d | 5756 | ac_prog_version=`$BISON --version 2>&1 | sed -n 's/^.*bison (GNU Bison) \([0-9]*\.[0-9.]*\).*$/\1/p'` |
224edada FS |
5757 | case $ac_prog_version in |
5758 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
43ecc41d | 5759 | 2.7*|[3-9].*|[1-9][0-9]*) |
224edada FS |
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 | |
c6cb8783 SP |
5764 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
5765 | printf "%s\n" "$ac_prog_version" >&6; } | |
224edada FS |
5766 | fi |
5767 | if test $ac_verc_fail = yes; then | |
43ecc41d | 5768 | critic_missing="$critic_missing bison" |
224edada FS |
5769 | fi |
5770 | ||
43ecc41d | 5771 | |
27b96e06 | 5772 | # Require GCC 12.1 to build. |
c6cb8783 SP |
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 | |
98ffc1bf AH |
5778 | else case e in #( |
5779 | e) | |
43ecc41d AZ |
5780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5781 | /* end confdefs.h. */ | |
5782 | ||
5783 | int | |
c6cb8783 | 5784 | main (void) |
43ecc41d AZ |
5785 | { |
5786 | ||
27b96e06 | 5787 | #if !defined __GNUC__ || __GNUC__ < 12 || (__GNUC__ == 12 && __GNUC_MINOR__ < 1) |
43ecc41d AZ |
5788 | #error insufficient compiler |
5789 | #endif | |
5790 | ; | |
5791 | return 0; | |
5792 | } | |
5793 | _ACEOF | |
c6cb8783 SP |
5794 | if ac_fn_c_try_cpp "$LINENO" |
5795 | then : | |
43ecc41d | 5796 | libc_cv_compiler_ok=yes |
98ffc1bf AH |
5797 | else case e in #( |
5798 | e) libc_cv_compiler_ok=no ;; | |
5799 | esac | |
43ecc41d | 5800 | fi |
98ffc1bf AH |
5801 | rm -f conftest.err conftest.i conftest.$ac_ext ;; |
5802 | esac | |
43ecc41d | 5803 | fi |
c6cb8783 SP |
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 : | |
43ecc41d AZ |
5808 | critic_missing="$critic_missing compiler" |
5809 | fi | |
5810 | ||
43ecc41d AZ |
5811 | if test "x$maintainer" = "xyes"; then |
5812 | for ac_prog in autoconf | |
4baa087a RM |
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 | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
5821 | else case e in #( |
5822 | e) if test -n "$AUTOCONF"; then | |
43ecc41d | 5823 | ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test. |
cd6ede75 | 5824 | else |
3a12e572 UD |
5825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5826 | for as_dir in $PATH | |
5827 | do | |
5828 | IFS=$as_save_IFS | |
c6cb8783 SP |
5829 | case $as_dir in #((( |
5830 | '') as_dir=./ ;; | |
5831 | */) ;; | |
5832 | *) as_dir=$as_dir/ ;; | |
5833 | esac | |
b08c89d9 | 5834 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 5835 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
43ecc41d | 5836 | ac_cv_prog_AUTOCONF="$ac_prog" |
c6cb8783 | 5837 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
3a12e572 UD |
5838 | break 2 |
5839 | fi | |
5840 | done | |
b08c89d9 | 5841 | done |
26f56c1c | 5842 | IFS=$as_save_IFS |
3a12e572 | 5843 | |
98ffc1bf AH |
5844 | fi ;; |
5845 | esac | |
cd6ede75 | 5846 | fi |
43ecc41d AZ |
5847 | AUTOCONF=$ac_cv_prog_AUTOCONF |
5848 | if test -n "$AUTOCONF"; then | |
c6cb8783 SP |
5849 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5 |
5850 | printf "%s\n" "$AUTOCONF" >&6; } | |
cd6ede75 | 5851 | else |
c6cb8783 SP |
5852 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5853 | printf "%s\n" "no" >&6; } | |
cd6ede75 UD |
5854 | fi |
5855 | ||
26f56c1c | 5856 | |
43ecc41d | 5857 | test -n "$AUTOCONF" && break |
4baa087a | 5858 | done |
43ecc41d | 5859 | test -n "$AUTOCONF" || AUTOCONF="no" |
4baa087a | 5860 | |
43ecc41d AZ |
5861 | case "x$AUTOCONF" in |
5862 | xno|x|x:) AUTOCONF=no ;; | |
5863 | *) | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
5869 | else case e in #( |
5870 | e) if (cd $srcdir; $AUTOCONF $ACFLAGS configure.ac > /dev/null 2>&1); then | |
43ecc41d AZ |
5871 | libc_cv_autoconf_works=yes |
5872 | else | |
5873 | libc_cv_autoconf_works=no | |
98ffc1bf AH |
5874 | fi ;; |
5875 | esac | |
3a12e572 | 5876 | fi |
c6cb8783 SP |
5877 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_autoconf_works" >&5 |
5878 | printf "%s\n" "$libc_cv_autoconf_works" >&6; } | |
43ecc41d AZ |
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 | |
4baa087a RM |
5887 | fi |
5888 | ||
43ecc41d AZ |
5889 | # Check for python3 if available, or else python. |
5890 | for ac_prog in python3 python | |
4baa087a RM |
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 | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
5899 | else case e in #( |
5900 | e) if test -n "$PYTHON_PROG"; then | |
43ecc41d | 5901 | ac_cv_prog_PYTHON_PROG="$PYTHON_PROG" # Let the user override the test. |
cd6ede75 | 5902 | else |
3a12e572 UD |
5903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5904 | for as_dir in $PATH | |
5905 | do | |
5906 | IFS=$as_save_IFS | |
c6cb8783 SP |
5907 | case $as_dir in #((( |
5908 | '') as_dir=./ ;; | |
5909 | */) ;; | |
5910 | *) as_dir=$as_dir/ ;; | |
5911 | esac | |
b08c89d9 | 5912 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 5913 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
43ecc41d | 5914 | ac_cv_prog_PYTHON_PROG="$ac_prog" |
c6cb8783 | 5915 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
3a12e572 UD |
5916 | break 2 |
5917 | fi | |
5918 | done | |
b08c89d9 | 5919 | done |
26f56c1c | 5920 | IFS=$as_save_IFS |
3a12e572 | 5921 | |
98ffc1bf AH |
5922 | fi ;; |
5923 | esac | |
cd6ede75 | 5924 | fi |
43ecc41d AZ |
5925 | PYTHON_PROG=$ac_cv_prog_PYTHON_PROG |
5926 | if test -n "$PYTHON_PROG"; then | |
c6cb8783 SP |
5927 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_PROG" >&5 |
5928 | printf "%s\n" "$PYTHON_PROG" >&6; } | |
cd6ede75 | 5929 | else |
c6cb8783 SP |
5930 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5931 | printf "%s\n" "no" >&6; } | |
cd6ede75 UD |
5932 | fi |
5933 | ||
26f56c1c | 5934 | |
43ecc41d | 5935 | test -n "$PYTHON_PROG" && break |
4baa087a | 5936 | done |
5edb9387 | 5937 | |
43ecc41d | 5938 | if test -z "$PYTHON_PROG"; then |
4baa087a | 5939 | ac_verc_fail=yes |
5edb9387 | 5940 | else |
4baa087a | 5941 | # Found it, now check the version. |
c6cb8783 SP |
5942 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $PYTHON_PROG" >&5 |
5943 | printf %s "checking version of $PYTHON_PROG... " >&6; } | |
43ecc41d | 5944 | ac_prog_version=`$PYTHON_PROG --version 2>&1 | sed -n 's/^.*Python \([0-9][0-9.]*\).*$/\1/p'` |
4baa087a RM |
5945 | case $ac_prog_version in |
5946 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
43ecc41d | 5947 | 3.[4-9]*|3.[1-9][0-9]*|[4-9].*|[1-9][0-9]*) |
4baa087a RM |
5948 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
5949 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
5edb9387 | 5950 | |
4baa087a | 5951 | esac |
c6cb8783 SP |
5952 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
5953 | printf "%s\n" "$ac_prog_version" >&6; } | |
5edb9387 | 5954 | fi |
4baa087a | 5955 | if test $ac_verc_fail = yes; then |
43ecc41d | 5956 | critic_missing="$critic_missing python" |
5edb9387 | 5957 | fi |
cd6ede75 | 5958 | |
43ecc41d AZ |
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 | ||
c6cb8783 | 5966 | test -n "$aux_missing" && { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: |
43ecc41d AZ |
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 | |
c6cb8783 | 5970 | printf "%s\n" "$as_me: WARNING: |
43ecc41d AZ |
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. | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
5982 | else case e in #( |
5983 | e) cat > conftest.c <<EOF | |
43ecc41d AZ |
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 | |
c4d23330 | 5994 | fi |
98ffc1bf AH |
5995 | rm -f conftest* ;; |
5996 | esac | |
c4d23330 | 5997 | fi |
c6cb8783 SP |
5998 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_with_fp" >&5 |
5999 | printf "%s\n" "$libc_cv_with_fp" >&6; } | |
43ecc41d AZ |
6000 | |
6001 | ||
eb02fb77 L |
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 | ||
5a96da21 DC |
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 | ||
494eb254 | 6120 | |
c6cb8783 SP |
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 | |
98ffc1bf | 6126 | else case e in #( |
494eb254 | 6127 | e) if { ac_try='${CC-cc} -Werror -fstack-protector -xc /dev/null -S -o /dev/null' |
43ecc41d AZ |
6128 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
6129 | (eval $ac_try) 2>&5 | |
6130 | ac_status=$? | |
c6cb8783 SP |
6131 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6132 | test $ac_status = 0; }; } | |
6133 | then : | |
43ecc41d | 6134 | libc_cv_ssp=yes |
98ffc1bf AH |
6135 | else case e in #( |
6136 | e) libc_cv_ssp=no ;; | |
6137 | esac | |
494eb254 | 6138 | fi ;; |
98ffc1bf | 6139 | esac |
43ecc41d | 6140 | fi |
c6cb8783 SP |
6141 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp" >&5 |
6142 | printf "%s\n" "$libc_cv_ssp" >&6; } | |
494eb254 L |
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 | ||
26f56c1c | 6176 | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
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' | |
43ecc41d AZ |
6184 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
6185 | (eval $ac_try) 2>&5 | |
6186 | ac_status=$? | |
c6cb8783 SP |
6187 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6188 | test $ac_status = 0; }; } | |
6189 | then : | |
43ecc41d | 6190 | libc_cv_ssp_strong=yes |
98ffc1bf AH |
6191 | else case e in #( |
6192 | e) libc_cv_ssp_strong=no ;; | |
6193 | esac | |
c4d23330 | 6194 | fi |
98ffc1bf AH |
6195 | ;; |
6196 | esac | |
c4d23330 | 6197 | fi |
c6cb8783 SP |
6198 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_strong" >&5 |
6199 | printf "%s\n" "$libc_cv_ssp_strong" >&6; } | |
c4d23330 | 6200 | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
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' | |
43ecc41d AZ |
6208 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
6209 | (eval $ac_try) 2>&5 | |
6210 | ac_status=$? | |
c6cb8783 SP |
6211 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6212 | test $ac_status = 0; }; } | |
6213 | then : | |
43ecc41d | 6214 | libc_cv_ssp_all=yes |
98ffc1bf AH |
6215 | else case e in #( |
6216 | e) libc_cv_ssp_all=no ;; | |
6217 | esac | |
43ecc41d | 6218 | fi |
98ffc1bf AH |
6219 | ;; |
6220 | esac | |
0786794f | 6221 | fi |
c6cb8783 SP |
6222 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_all" >&5 |
6223 | printf "%s\n" "$libc_cv_ssp_all" >&6; } | |
43ecc41d AZ |
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" | |
c6cb8783 | 6229 | printf "%s\n" "#define HAVE_CC_NO_STACK_PROTECTOR 1" >>confdefs.h |
43ecc41d | 6230 | |
0786794f | 6231 | fi |
494eb254 L |
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 | ||
43ecc41d AZ |
6237 | |
6238 | if test "$enable_stack_protector" = yes && test "$libc_cv_ssp" = yes; then | |
6239 | stack_protector="-fstack-protector" | |
c6cb8783 | 6240 | printf "%s\n" "#define STACK_PROTECTOR_LEVEL 1" >>confdefs.h |
43ecc41d AZ |
6241 | |
6242 | elif test "$enable_stack_protector" = all && test "$libc_cv_ssp_all" = yes; then | |
6243 | stack_protector="-fstack-protector-all" | |
c6cb8783 | 6244 | printf "%s\n" "#define STACK_PROTECTOR_LEVEL 2" >>confdefs.h |
43ecc41d AZ |
6245 | |
6246 | elif test "$enable_stack_protector" = strong && test "$libc_cv_ssp_strong" = yes; then | |
6247 | stack_protector="-fstack-protector-strong" | |
c6cb8783 | 6248 | printf "%s\n" "#define STACK_PROTECTOR_LEVEL 3" >>confdefs.h |
43ecc41d | 6249 | |
0786794f | 6250 | else |
43ecc41d | 6251 | stack_protector="-fno-stack-protector" |
c6cb8783 | 6252 | printf "%s\n" "#define STACK_PROTECTOR_LEVEL 0" >>confdefs.h |
43ecc41d | 6253 | |
0786794f AM |
6254 | fi |
6255 | ||
6256 | ||
0786794f | 6257 | |
43ecc41d AZ |
6258 | |
6259 | if test -n "$stack_protector"; then | |
6260 | no_ssp=-fno-stack-protector | |
0786794f | 6261 | else |
43ecc41d | 6262 | no_ssp= |
0786794f | 6263 | |
43ecc41d AZ |
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 | |
0786794f AM |
6267 | fi |
6268 | ||
43ecc41d | 6269 | # For the multi-arch option we need support in the assembler & linker. |
c6cb8783 SP |
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 | |
98ffc1bf AH |
6275 | else case e in #( |
6276 | e) cat > conftest.S <<EOF | |
43ecc41d AZ |
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 | |
98ffc1bf AH |
6300 | rm -f conftest* ;; |
6301 | esac | |
43ecc41d | 6302 | fi |
c6cb8783 SP |
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; } | |
43ecc41d AZ |
6305 | |
6306 | # Check if gcc supports attribute ifunc as it is used in libc_ifunc macro. | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
6312 | else case e in #( |
6313 | e) cat > conftest.c <<EOF | |
43ecc41d AZ |
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 | |
1faaf703 | 6330 | fi |
1faaf703 | 6331 | fi |
98ffc1bf AH |
6332 | rm -f conftest* ;; |
6333 | esac | |
43ecc41d | 6334 | fi |
c6cb8783 SP |
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; } | |
43ecc41d AZ |
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. | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
6345 | else case e in #( |
6346 | e) cat > conftest.S <<EOF | |
43ecc41d AZ |
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=$? | |
c6cb8783 | 6374 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
43ecc41d AZ |
6375 | test $ac_status = 0; }; }; then |
6376 | libc_cv_textrel_ifunc=yes | |
6377 | fi | |
1faaf703 | 6378 | fi |
98ffc1bf AH |
6379 | rm -f conftest* ;; |
6380 | esac | |
1faaf703 | 6381 | fi |
c6cb8783 SP |
6382 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_textrel_ifunc" >&5 |
6383 | printf "%s\n" "$libc_cv_textrel_ifunc" >&6; } | |
1faaf703 JB |
6384 | |
6385 | ||
43ecc41d | 6386 | # Check if CC supports attribute retain as it is used in attribute_used_retain macro. |
c6cb8783 SP |
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 | |
98ffc1bf AH |
6392 | else case e in #( |
6393 | e) cat > conftest.c <<EOF | |
43ecc41d AZ |
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 | |
1faaf703 | 6400 | fi |
98ffc1bf AH |
6401 | rm -f conftest* ;; |
6402 | esac | |
1faaf703 | 6403 | fi |
c6cb8783 SP |
6404 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gnu_retain" >&5 |
6405 | printf "%s\n" "$libc_cv_gnu_retain" >&6; } | |
43ecc41d | 6406 | if test $libc_cv_gnu_retain = yes; then |
c6cb8783 | 6407 | printf "%s\n" "#define HAVE_GNU_RETAIN 1" >>confdefs.h |
1faaf703 | 6408 | |
43ecc41d AZ |
6409 | fi |
6410 | config_vars="$config_vars | |
6411 | have-gnu-retain = $libc_cv_gnu_retain" | |
4baa087a | 6412 | |
43ecc41d | 6413 | # Check if gcc warns about alias for function with incompatible types. |
c6cb8783 SP |
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 | |
98ffc1bf AH |
6419 | else case e in #( |
6420 | e) cat > conftest.c <<EOF | |
43ecc41d | 6421 | int __redirect_foo (const void *s, int c); |
461a7b1e | 6422 | |
43ecc41d AZ |
6423 | __typeof (__redirect_foo) *foo_impl (void) __asm__ ("foo"); |
6424 | __typeof (__redirect_foo) *foo_impl (void) | |
461a7b1e | 6425 | { |
461a7b1e RM |
6426 | return 0; |
6427 | } | |
43ecc41d AZ |
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 | |
461a7b1e | 6434 | fi |
98ffc1bf AH |
6435 | rm -f conftest* ;; |
6436 | esac | |
461a7b1e | 6437 | fi |
c6cb8783 SP |
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; } | |
461a7b1e | 6440 | |
43ecc41d AZ |
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 | |
30b99d79 | 6446 | fi |
30b99d79 | 6447 | fi |
43ecc41d AZ |
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 | |
c6cb8783 SP |
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;} | |
43ecc41d AZ |
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 | |
c6cb8783 SP |
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;} | |
43ecc41d AZ |
6460 | multi_arch=no |
6461 | elif test x"$multi_arch" = xyes; then | |
c6cb8783 | 6462 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support. |
43ecc41d | 6463 | Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&5 |
c6cb8783 | 6464 | printf "%s\n" "$as_me: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support. |
43ecc41d AZ |
6465 | Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&2;} |
6466 | fi | |
30b99d79 | 6467 | fi |
43ecc41d AZ |
6468 | multi_arch_d= |
6469 | if test x"$multi_arch" != xno; then | |
6470 | multi_arch_d=/multiarch | |
30b99d79 RM |
6471 | fi |
6472 | ||
43ecc41d AZ |
6473 | # Compute the list of sysdep directories for this configuration. |
6474 | # This can take a while to compute. | |
6475 | sysdep_dir=$srcdir/sysdeps | |
c6cb8783 SP |
6476 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sysdep dirs" >&5 |
6477 | printf %s "checking sysdep dirs... " >&6; } | |
43ecc41d AZ |
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 | |
30b99d79 | 6487 | |
43ecc41d AZ |
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" | |
30b99d79 | 6498 | fi |
43ecc41d AZ |
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 | |
30b99d79 | 6525 | fi |
43ecc41d AZ |
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" | |
30b99d79 | 6533 | done |
43ecc41d AZ |
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 | |
30b99d79 | 6563 | done |
43ecc41d | 6564 | done |
30b99d79 | 6565 | |
43ecc41d AZ |
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 | ;; | |
30b99d79 | 6574 | esac |
43ecc41d | 6575 | if test x"$multi_arch" != xno; then |
c6cb8783 | 6576 | printf "%s\n" "#define USE_MULTIARCH 1" >>confdefs.h |
30b99d79 | 6577 | |
43ecc41d | 6578 | fi |
d30cf5bb | 6579 | |
c4d23330 | 6580 | |
43ecc41d AZ |
6581 | if test -z "$os_used" && test "$os" != none; then |
6582 | as_fn_error $? "Operating system $os is not supported." "$LINENO" 5 | |
c4d23330 | 6583 | fi |
43ecc41d AZ |
6584 | if test -z "$machine_used" && test "$machine" != none; then |
6585 | as_fn_error $? "The $machine is not supported." "$LINENO" 5 | |
c4d23330 | 6586 | fi |
43ecc41d AZ |
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 | |
c4d23330 RM |
6589 | fi |
6590 | ||
26f56c1c | 6591 | |
43ecc41d | 6592 | # We have now validated the configuration. |
c4d23330 | 6593 | |
43ecc41d AZ |
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 | |
8894bad3 | 6605 | esac |
c4d23330 | 6606 | |
43ecc41d AZ |
6607 | # Report each name as we discover it, so there is no long pause in output. |
6608 | echo $ECHO_N "$name $ECHO_C" >&6 | |
8ce8299f | 6609 | |
43ecc41d | 6610 | name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'` |
8ce8299f | 6611 | |
43ecc41d AZ |
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 | |
8ce8299f | 6618 | |
43ecc41d AZ |
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 | |
c6cb8783 SP |
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;} | |
43ecc41d AZ |
6643 | fi |
6644 | done | |
6645 | fi | |
6646 | done | |
8ce8299f | 6647 | |
43ecc41d AZ |
6648 | # Add NAME to the list of names. |
6649 | names="$names $name" | |
8ce8299f | 6650 | |
43ecc41d AZ |
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`" | |
c6982f7e | 6653 | |
43ecc41d AZ |
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 | |
c6982f7e | 6657 | |
43ecc41d AZ |
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 | |
8ce8299f | 6668 | |
43ecc41d AZ |
6669 | # Add the default directories. |
6670 | default_sysnames="sysdeps/generic" | |
6671 | sysnames="$names $default_sysnames" | |
32a448ed | 6672 | |
43ecc41d | 6673 | # The other names were emitted during the scan. |
c6cb8783 SP |
6674 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $default_sysnames" >&5 |
6675 | printf "%s\n" "$default_sysnames" >&6; } | |
ea9f119b | 6676 | |
3c720987 UD |
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 | |
67fbfa5c RM |
6681 | SYSINCLUDES=-nostdinc |
6682 | for d in include include-fixed; do | |
22dca1ea | 6683 | i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" && |
67fbfa5c RM |
6684 | SYSINCLUDES="$SYSINCLUDES -isystem $i" |
6685 | done | |
6686 | SYSINCLUDES="$SYSINCLUDES \ | |
3d6ce23a | 6687 | -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`" |
ef226fec | 6688 | if test -n "$CXX"; then |
7872cfb0 | 6689 | CXX_SYSINCLUDES= |
67060746 AC |
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 | |
ef226fec | 6695 | fi |
3c720987 UD |
6696 | fi |
6697 | ||
6698 | ||
ef226fec | 6699 | |
fc3e1337 FW |
6700 | # Obtain some C++ header file paths. This is used to make a local |
6701 | # copy of those headers in Makerules. | |
ad36038c L |
6702 | if test -n "$TEST_CXX"; then |
6703 | saved_CXX="$CXX" | |
6704 | CXX="$TEST_CXX" | |
fc3e1337 | 6705 | find_cxx_header () { |
596183a1 AZ |
6706 | echo "#include <$1>" | $CXX -H -fsyntax-only -x c++ - 2>&1 \ |
6707 | | $AWK '$1 == "."{print $2}' | |
fc3e1337 FW |
6708 | } |
6709 | CXX_CSTDLIB_HEADER="$(find_cxx_header cstdlib)" | |
6710 | CXX_CMATH_HEADER="$(find_cxx_header cmath)" | |
a65ea28d | 6711 | CXX_BITS_STD_ABS_H="$(find_cxx_header bits/std_abs.h)" |
ad36038c | 6712 | CXX="$saved_CXX" |
fc3e1337 FW |
6713 | fi |
6714 | ||
6715 | ||
6716 | ||
a65ea28d | 6717 | |
3911660e UD |
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 | |
c6cb8783 SP |
6725 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LD_LIBRARY_PATH variable" >&5 |
6726 | printf %s "checking LD_LIBRARY_PATH variable... " >&6; } | |
3911660e UD |
6727 | case ${LD_LIBRARY_PATH} in |
6728 | [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) | |
b3a86ae1 | 6729 | ld_library_path_setting="contains current directory" |
3911660e UD |
6730 | ;; |
6731 | *) | |
6732 | ld_library_path_setting="ok" | |
6733 | ;; | |
6734 | esac | |
c6cb8783 SP |
6735 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_library_path_setting" >&5 |
6736 | printf "%s\n" "$ld_library_path_setting" >&6; } | |
3911660e | 6737 | if test "$ld_library_path_setting" != "ok"; then |
4a531bb0 | 6738 | as_fn_error $? " |
3a12e572 UD |
6739 | *** LD_LIBRARY_PATH shouldn't contain the current directory when |
6740 | *** building glibc. Please change the environment variable | |
b08c89d9 | 6741 | *** and run configure again." "$LINENO" 5 |
3911660e UD |
6742 | fi |
6743 | ||
cd6ede75 UD |
6744 | # Extract the first word of "bash", so it can be a program name with args. |
6745 | set dummy bash; ac_word=$2 | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
6751 | else case e in #( |
6752 | e) case $BASH_SHELL in | |
3a12e572 | 6753 | [\\/]* | ?:[\\/]*) |
26f56c1c | 6754 | ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path. |
cd6ede75 UD |
6755 | ;; |
6756 | *) | |
3a12e572 UD |
6757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6758 | for as_dir in $PATH | |
6759 | do | |
6760 | IFS=$as_save_IFS | |
c6cb8783 SP |
6761 | case $as_dir in #((( |
6762 | '') as_dir=./ ;; | |
6763 | */) ;; | |
6764 | *) as_dir=$as_dir/ ;; | |
6765 | esac | |
b08c89d9 | 6766 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 SP |
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 | |
3a12e572 UD |
6770 | break 2 |
6771 | fi | |
6772 | done | |
b08c89d9 | 6773 | done |
26f56c1c | 6774 | IFS=$as_save_IFS |
3a12e572 | 6775 | |
26f56c1c | 6776 | test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no" |
cd6ede75 | 6777 | ;; |
98ffc1bf | 6778 | esac ;; |
cd6ede75 UD |
6779 | esac |
6780 | fi | |
26f56c1c UD |
6781 | BASH_SHELL=$ac_cv_path_BASH_SHELL |
6782 | if test -n "$BASH_SHELL"; then | |
c6cb8783 SP |
6783 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BASH_SHELL" >&5 |
6784 | printf "%s\n" "$BASH_SHELL" >&6; } | |
cd6ede75 | 6785 | else |
c6cb8783 SP |
6786 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6787 | printf "%s\n" "no" >&6; } | |
cd6ede75 UD |
6788 | fi |
6789 | ||
26f56c1c | 6790 | |
cd6ede75 | 6791 | |
c0016081 UD |
6792 | # Extract the first word of "perl", so it can be a program name with args. |
6793 | set dummy perl; ac_word=$2 | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
6799 | else case e in #( |
6800 | e) case $PERL in | |
3a12e572 | 6801 | [\\/]* | ?:[\\/]*) |
a2b08ee5 UD |
6802 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
6803 | ;; | |
6804 | *) | |
3a12e572 UD |
6805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6806 | for as_dir in $PATH | |
6807 | do | |
6808 | IFS=$as_save_IFS | |
c6cb8783 SP |
6809 | case $as_dir in #((( |
6810 | '') as_dir=./ ;; | |
6811 | */) ;; | |
6812 | *) as_dir=$as_dir/ ;; | |
6813 | esac | |
b08c89d9 | 6814 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 SP |
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 | |
3a12e572 UD |
6818 | break 2 |
6819 | fi | |
6820 | done | |
b08c89d9 | 6821 | done |
26f56c1c | 6822 | IFS=$as_save_IFS |
3a12e572 | 6823 | |
c0016081 | 6824 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no" |
a2b08ee5 | 6825 | ;; |
98ffc1bf | 6826 | esac ;; |
a2b08ee5 UD |
6827 | esac |
6828 | fi | |
3a12e572 | 6829 | PERL=$ac_cv_path_PERL |
a2b08ee5 | 6830 | if test -n "$PERL"; then |
c6cb8783 SP |
6831 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
6832 | printf "%s\n" "$PERL" >&6; } | |
a2b08ee5 | 6833 | else |
c6cb8783 SP |
6834 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6835 | printf "%s\n" "no" >&6; } | |
a2b08ee5 UD |
6836 | fi |
6837 | ||
26f56c1c | 6838 | |
2fd5d029 RM |
6839 | if test "$PERL" != no && |
6840 | (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then | |
6841 | PERL=no | |
fc304e02 | 6842 | fi |
c0016081 UD |
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 | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
6850 | else case e in #( |
6851 | e) case $INSTALL_INFO in | |
3a12e572 | 6852 | [\\/]* | ?:[\\/]*) |
c0016081 UD |
6853 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. |
6854 | ;; | |
6855 | *) | |
3a12e572 | 6856 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
f4b07664 RM |
6857 | as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin" |
6858 | for as_dir in $as_dummy | |
3a12e572 UD |
6859 | do |
6860 | IFS=$as_save_IFS | |
c6cb8783 SP |
6861 | case $as_dir in #((( |
6862 | '') as_dir=./ ;; | |
6863 | */) ;; | |
6864 | *) as_dir=$as_dir/ ;; | |
6865 | esac | |
b08c89d9 | 6866 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 SP |
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 | |
3a12e572 UD |
6870 | break 2 |
6871 | fi | |
6872 | done | |
b08c89d9 | 6873 | done |
26f56c1c | 6874 | IFS=$as_save_IFS |
3a12e572 | 6875 | |
c0016081 UD |
6876 | test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no" |
6877 | ;; | |
98ffc1bf | 6878 | esac ;; |
c0016081 UD |
6879 | esac |
6880 | fi | |
3a12e572 | 6881 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO |
c0016081 | 6882 | if test -n "$INSTALL_INFO"; then |
c6cb8783 SP |
6883 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 |
6884 | printf "%s\n" "$INSTALL_INFO" >&6; } | |
c0016081 | 6885 | else |
c6cb8783 SP |
6886 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6887 | printf "%s\n" "no" >&6; } | |
c0016081 UD |
6888 | fi |
6889 | ||
26f56c1c | 6890 | |
26f56c1c | 6891 | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
6897 | else case e in #( |
6898 | e) cat > conftest.s <<EOF | |
8c0c01db | 6899 | .text |
cd6ede75 UD |
6900 | foo: |
6901 | .set glibc_conftest_frobozz,foo | |
7b8e0d49 | 6902 | .globl glibc_conftest_frobozz |
cd6ede75 UD |
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; | |
640f0119 | 6908 | void _start() { glibc_conftest_frobozz = 1; } |
cd6ede75 UD |
6909 | EOF |
6910 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ | |
66a704c4 | 6911 | -nostartfiles -nostdlib $no_ssp \ |
cd6ede75 UD |
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 | |
98ffc1bf AH |
6917 | rm -f conftest* ;; |
6918 | esac | |
cd6ede75 | 6919 | fi |
c6cb8783 SP |
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; } | |
cd6ede75 | 6922 | if test $libc_cv_asm_set_directive = yes; then |
c6cb8783 | 6923 | printf "%s\n" "#define HAVE_ASM_SET_DIRECTIVE 1" >>confdefs.h |
cd6ede75 UD |
6924 | |
6925 | fi | |
6926 | ||
c6cb8783 SP |
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 | |
98ffc1bf AH |
6932 | else case e in #( |
6933 | e) cat > conftest.c <<EOF | |
2a723ff6 | 6934 | int bar __attribute__ ((visibility ("protected"))) = 1; |
83569fb8 | 6935 | EOF |
2a723ff6 | 6936 | libc_cv_protected_data=no |
66a704c4 | 6937 | if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp -fPIC -shared conftest.c -o conftest.so' |
83569fb8 L |
6938 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
6939 | (eval $ac_try) 2>&5 | |
6940 | ac_status=$? | |
c6cb8783 | 6941 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
83569fb8 | 6942 | test $ac_status = 0; }; }; then |
2a723ff6 JM |
6943 | cat > conftest.c <<EOF |
6944 | extern int bar; | |
6945 | int main (void) { return bar; } | |
83569fb8 | 6946 | EOF |
66a704c4 | 6947 | if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp conftest.c -o conftest conftest.so' |
83569fb8 L |
6948 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
6949 | (eval $ac_try) 2>&5 | |
6950 | ac_status=$? | |
c6cb8783 | 6951 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
83569fb8 | 6952 | test $ac_status = 0; }; }; then |
2a723ff6 | 6953 | libc_cv_protected_data=yes |
83569fb8 | 6954 | fi |
2a723ff6 JM |
6955 | fi |
6956 | rm -f conftest.* | |
98ffc1bf AH |
6957 | ;; |
6958 | esac | |
83569fb8 | 6959 | fi |
c6cb8783 SP |
6960 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_protected_data" >&5 |
6961 | printf "%s\n" "$libc_cv_protected_data" >&6; } | |
83569fb8 L |
6962 | |
6963 | ||
c6cb8783 SP |
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 | |
98ffc1bf AH |
6969 | else case e in #( |
6970 | e) cat > conftest.c <<EOF | |
5f07d47e | 6971 | int __attribute__ ((section(".bar"))) bar = 0x12345678; |
19f1a11e L |
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=$? | |
c6cb8783 | 6986 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
19f1a11e L |
6987 | test $ac_status = 0; }; }; then |
6988 | libc_cv_insert=yes | |
6989 | fi | |
6990 | rm -f conftest.* | |
98ffc1bf AH |
6991 | ;; |
6992 | esac | |
19f1a11e | 6993 | fi |
c6cb8783 SP |
6994 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_insert" >&5 |
6995 | printf "%s\n" "$libc_cv_insert" >&6; } | |
19f1a11e L |
6996 | |
6997 | ||
c6cb8783 SP |
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 | |
98ffc1bf AH |
7003 | else case e in #( |
7004 | e) cat > conftest.c <<EOF | |
a0da5fe1 UD |
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; | |
37ba7d66 | 7011 | EOF |
a0da5fe1 UD |
7012 | libc_cv_broken_alias_attribute=yes |
7013 | if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5' | |
b08c89d9 | 7014 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
61cea1c3 RM |
7015 | (eval $ac_try) 2>&5 |
7016 | ac_status=$? | |
c6cb8783 | 7017 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
b08c89d9 | 7018 | test $ac_status = 0; }; }; then |
a0da5fe1 UD |
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 | |
98ffc1bf AH |
7025 | ;; |
7026 | esac | |
3a12e572 | 7027 | fi |
c6cb8783 SP |
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; } | |
a0da5fe1 UD |
7030 | if test $libc_cv_broken_alias_attribute = yes; then |
7031 | as_fn_error $? "working alias attribute support required" "$LINENO" 5 | |
7032 | fi | |
37ba7d66 | 7033 | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
7039 | else case e in #( |
7040 | e) echo "int i;" > conftest.c | |
2a723ff6 JM |
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 | |
98ffc1bf AH |
7047 | ;; |
7048 | esac | |
3a12e572 | 7049 | fi |
c6cb8783 SP |
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; } | |
2a723ff6 | 7052 | if test $libc_cv_have_sdata_section = yes; then |
c6cb8783 | 7053 | printf "%s\n" "#define HAVE_SDATA_SECTION 1" >>confdefs.h |
0d01dace | 7054 | |
a0da5fe1 | 7055 | fi |
0d01dace | 7056 | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
7062 | else case e in #( |
7063 | e) | |
a0da5fe1 | 7064 | cat > conftest.c <<EOF |
cbdb12de UD |
7065 | int main (void) { return 0; } |
7066 | EOF | |
a0da5fe1 | 7067 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \ |
8175a253 | 7068 | conftest.c -v 2>&1 >/dev/null | grep ' -lunwind ' >/dev/null; then |
a0da5fe1 UD |
7069 | libc_cv_cc_with_libunwind=yes |
7070 | else | |
7071 | libc_cv_cc_with_libunwind=no | |
7072 | fi | |
98ffc1bf AH |
7073 | rm -f conftest* ;; |
7074 | esac | |
c776b3d7 | 7075 | fi |
c6cb8783 SP |
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; } | |
c776b3d7 | 7078 | |
a0da5fe1 | 7079 | if test $libc_cv_cc_with_libunwind = yes; then |
c6cb8783 | 7080 | printf "%s\n" "#define HAVE_CC_WITH_LIBUNWIND 1" >>confdefs.h |
c776b3d7 | 7081 | |
a0da5fe1 | 7082 | fi |
c776b3d7 | 7083 | |
a0da5fe1 | 7084 | ASFLAGS_config= |
c6cb8783 SP |
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 | |
98ffc1bf AH |
7090 | else case e in #( |
7091 | e) cat > conftest.c <<EOF | |
35915ec8 UD |
7092 | void foo (void) { } |
7093 | EOF | |
a0da5fe1 UD |
7094 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS |
7095 | -S -o conftest.s conftest.c 1>&5' | |
b08c89d9 | 7096 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
35915ec8 UD |
7097 | (eval $ac_try) 2>&5 |
7098 | ac_status=$? | |
c6cb8783 | 7099 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
b08c89d9 | 7100 | test $ac_status = 0; }; } \ |
8175a253 | 7101 | && grep .note.GNU-stack conftest.s >/dev/null \ |
a0da5fe1 UD |
7102 | && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack |
7103 | -c -o conftest.o conftest.s 1>&5' | |
b08c89d9 | 7104 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
35915ec8 UD |
7105 | (eval $ac_try) 2>&5 |
7106 | ac_status=$? | |
c6cb8783 | 7107 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
b08c89d9 | 7108 | test $ac_status = 0; }; } |
a0da5fe1 UD |
7109 | then |
7110 | libc_cv_as_noexecstack=yes | |
7111 | else | |
7112 | libc_cv_as_noexecstack=no | |
7113 | fi | |
98ffc1bf AH |
7114 | rm -f conftest* ;; |
7115 | esac | |
35915ec8 | 7116 | fi |
c6cb8783 SP |
7117 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_noexecstack" >&5 |
7118 | printf "%s\n" "$libc_cv_as_noexecstack" >&6; } | |
a0da5fe1 UD |
7119 | if test $libc_cv_as_noexecstack = yes; then |
7120 | ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack" | |
7121 | fi | |
35915ec8 | 7122 | |
2abf9ff1 | 7123 | |
a2bd5008 SJ |
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 | |
59dc232d | 7131 | -Wl,--no-error-execstack -nostdlib -nostartfiles |
a2bd5008 SJ |
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 | |
59dc232d | 7140 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--no-error-execstack -nostdlib \ |
a2bd5008 SJ |
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 | ||
c6cb8783 SP |
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; } | |
6bfea974 | 7160 | libc_linker_feature=no |
6cfc50f4 | 7161 | cat > conftest.c <<EOF |
2abf9ff1 RM |
7162 | int _start (void) { return 42; } |
7163 | EOF | |
6cfc50f4 AZ |
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' | |
b08c89d9 | 7168 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
2abf9ff1 RM |
7169 | (eval $ac_try) 2>&5 |
7170 | ac_status=$? | |
c6cb8783 | 7171 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
b08c89d9 | 7172 | test $ac_status = 0; }; } |
6cfc50f4 AZ |
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 | |
6bfea974 L |
7180 | fi |
7181 | fi | |
6cfc50f4 | 7182 | rm -f conftest* |
6bfea974 | 7183 | if test $libc_linker_feature = yes; then |
a0da5fe1 UD |
7184 | libc_cv_z_execstack=yes |
7185 | else | |
7186 | libc_cv_z_execstack=no | |
7187 | fi | |
c6cb8783 SP |
7188 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5 |
7189 | printf "%s\n" "$libc_linker_feature" >&6; } | |
cd6ede75 | 7190 | |
0f124303 | 7191 | |
c6cb8783 SP |
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; } | |
cd6ae7ea | 7194 | libc_linker_feature=no |
6cfc50f4 | 7195 | cat > conftest.c <<EOF |
cd6ae7ea FS |
7196 | int _start (void) { return 42; } |
7197 | EOF | |
6cfc50f4 AZ |
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' | |
cd6ae7ea FS |
7202 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
7203 | (eval $ac_try) 2>&5 | |
7204 | ac_status=$? | |
c6cb8783 | 7205 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
cd6ae7ea | 7206 | test $ac_status = 0; }; } |
6cfc50f4 AZ |
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 | |
cd6ae7ea FS |
7214 | fi |
7215 | fi | |
6cfc50f4 | 7216 | rm -f conftest* |
cd6ae7ea FS |
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 | |
c6cb8783 SP |
7222 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5 |
7223 | printf "%s\n" "$libc_linker_feature" >&6; } | |
cd6ae7ea FS |
7224 | config_vars="$config_vars |
7225 | have-z-start-stop-gc = $libc_cv_z_start_stop_gc" | |
7226 | ||
c6cb8783 SP |
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; } | |
9926f6e2 | 7229 | libc_linker_feature=no |
6cfc50f4 | 7230 | cat > conftest.c <<EOF |
9926f6e2 FS |
7231 | int _start (void) { return 42; } |
7232 | EOF | |
6cfc50f4 AZ |
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' | |
9926f6e2 FS |
7237 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
7238 | (eval $ac_try) 2>&5 | |
7239 | ac_status=$? | |
c6cb8783 | 7240 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9926f6e2 | 7241 | test $ac_status = 0; }; } |
6cfc50f4 AZ |
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 | |
9926f6e2 FS |
7249 | fi |
7250 | fi | |
6cfc50f4 | 7251 | rm -f conftest* |
9926f6e2 FS |
7252 | if test $libc_linker_feature = yes; then |
7253 | libc_cv_depaudit=yes | |
7254 | else | |
7255 | libc_cv_depaudit=no | |
7256 | fi | |
c6cb8783 SP |
7257 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5 |
7258 | printf "%s\n" "$libc_linker_feature" >&6; } | |
9926f6e2 FS |
7259 | config_vars="$config_vars |
7260 | have-depaudit = $libc_cv_depaudit" | |
7261 | ||
c6cb8783 SP |
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; } | |
e895cff5 | 7264 | libc_linker_feature=no |
6cfc50f4 | 7265 | cat > conftest.c <<EOF |
e895cff5 FS |
7266 | int _start (void) { return 42; } |
7267 | EOF | |
6cfc50f4 AZ |
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' | |
e895cff5 FS |
7272 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
7273 | (eval $ac_try) 2>&5 | |
7274 | ac_status=$? | |
c6cb8783 | 7275 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
e895cff5 | 7276 | test $ac_status = 0; }; } |
6cfc50f4 AZ |
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 | |
e895cff5 | 7284 | fi |
e895cff5 | 7285 | fi |
6cfc50f4 | 7286 | rm -f conftest* |
e895cff5 FS |
7287 | if test $libc_linker_feature = yes; then |
7288 | libc_cv_dt_relr=yes | |
7289 | else | |
7290 | libc_cv_dt_relr=no | |
7291 | fi | |
c6cb8783 SP |
7292 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5 |
7293 | printf "%s\n" "$libc_linker_feature" >&6; } | |
e895cff5 FS |
7294 | config_vars="$config_vars |
7295 | have-dt-relr = $libc_cv_dt_relr" | |
7296 | ||
c6cb8783 SP |
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; } | |
9d7a3741 | 7299 | libc_linker_feature=no |
6cfc50f4 | 7300 | cat > conftest.c <<EOF |
9d7a3741 L |
7301 | int _start (void) { return 42; } |
7302 | EOF | |
6cfc50f4 AZ |
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' | |
9d7a3741 L |
7307 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
7308 | (eval $ac_try) 2>&5 | |
7309 | ac_status=$? | |
c6cb8783 | 7310 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9d7a3741 | 7311 | test $ac_status = 0; }; } |
6cfc50f4 AZ |
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 | |
9d7a3741 L |
7319 | fi |
7320 | fi | |
6cfc50f4 | 7321 | rm -f conftest* |
9d7a3741 L |
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 | |
c6cb8783 SP |
7327 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5 |
7328 | printf "%s\n" "$libc_linker_feature" >&6; } | |
9d7a3741 L |
7329 | config_vars="$config_vars |
7330 | have-no-dynamic-linker = $libc_cv_no_dynamic_linker" | |
7331 | ||
b79f2575 | 7332 | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
7338 | else case e in #( |
7339 | e) if { ac_try='${CC-cc} -static-pie -xc /dev/null -S -o /dev/null' | |
9d7a3741 L |
7340 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
7341 | (eval $ac_try) 2>&5 | |
7342 | ac_status=$? | |
c6cb8783 SP |
7343 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7344 | test $ac_status = 0; }; } | |
7345 | then : | |
9d7a3741 | 7346 | libc_cv_static_pie=yes |
98ffc1bf AH |
7347 | else case e in #( |
7348 | e) libc_cv_static_pie=no ;; | |
7349 | esac | |
b79f2575 | 7350 | fi ;; |
98ffc1bf | 7351 | esac |
9d7a3741 | 7352 | fi |
c6cb8783 SP |
7353 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie" >&5 |
7354 | printf "%s\n" "$libc_cv_static_pie" >&6; } | |
b79f2575 L |
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 | ||
9d7a3741 L |
7389 | config_vars="$config_vars |
7390 | have-static-pie = $libc_cv_static_pie" | |
7391 | ||
b79f2575 | 7392 | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
7398 | else case e in #( |
7399 | e) if { ac_try='${CC-cc} -fpie -xc /dev/null -S -o /dev/null' | |
b08c89d9 | 7400 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
0f124303 UD |
7401 | (eval $ac_try) 2>&5 |
7402 | ac_status=$? | |
c6cb8783 SP |
7403 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7404 | test $ac_status = 0; }; } | |
7405 | then : | |
a0da5fe1 | 7406 | libc_cv_fpie=yes |
98ffc1bf AH |
7407 | else case e in #( |
7408 | e) libc_cv_fpie=no ;; | |
7409 | esac | |
a0da5fe1 | 7410 | fi |
98ffc1bf AH |
7411 | ;; |
7412 | esac | |
0f124303 | 7413 | fi |
c6cb8783 SP |
7414 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fpie" >&5 |
7415 | printf "%s\n" "$libc_cv_fpie" >&6; } | |
0f124303 UD |
7416 | |
7417 | ||
871b9158 | 7418 | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
7424 | else case e in #( |
7425 | e) cat > conftest.c <<EOF | |
89569c8b L |
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 | |
66a704c4 | 7431 | -nostdlib -nostartfiles $no_ssp |
89569c8b L |
7432 | 1>&5' |
7433 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
7434 | (eval $ac_try) 2>&5 | |
7435 | ac_status=$? | |
c6cb8783 | 7436 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
89569c8b L |
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 | |
98ffc1bf AH |
7447 | rm -f conftest* ;; |
7448 | esac | |
89569c8b | 7449 | fi |
c6cb8783 SP |
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; } | |
89569c8b L |
7452 | |
7453 | ||
b79f2575 | 7454 | conftest_code=" |
61655555 L |
7455 | __thread int i; |
7456 | void foo (void) | |
7457 | { | |
7458 | i = 10; | |
7459 | } | |
b79f2575 L |
7460 | " |
7461 | ||
7462 | cat > conftest.c <<EOF | |
7463 | $conftest_code | |
61655555 | 7464 | EOF |
61655555 | 7465 | |
b79f2575 L |
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} | |
c6cb8783 SP |
7471 | then : |
7472 | printf %s "(cached) " >&6 | |
98ffc1bf | 7473 | else case e in #( |
1294926d | 7474 | e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -fPIC -mtls-dialect=$mtls_descriptor -nostdlib -nostartfiles -shared conftest.c -o conftest 1>&5' |
b79f2575 L |
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; }; } | |
1294926d L |
7480 | then |
7481 | libc_cv_test_mtls_descriptor=$mtls_descriptor | |
7482 | else | |
7483 | libc_cv_test_mtls_descriptor=no | |
7484 | fi ;; | |
b79f2575 L |
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 | ||
b79f2575 L |
7492 | rm -f conftest* |
7493 | config_vars="$config_vars | |
1294926d | 7494 | have-test-mtls-descriptor = $libc_cv_test_mtls_descriptor" |
b79f2575 | 7495 | |
848f0e46 L |
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 | ||
b79f2575 | 7531 | conftest_code=" |
8d98c7c0 AZ |
7532 | void __foo (void) |
7533 | { | |
7534 | } | |
7535 | extern __typeof (__foo) foo __attribute__ ((weak, alias ("__foo"))); | |
7536 | extern __typeof (__foo) bar __attribute__ ((weak, alias ("foo"))); | |
b79f2575 L |
7537 | " |
7538 | ||
7539 | cat > conftest.c <<EOF | |
7540 | $conftest_code | |
8d98c7c0 | 7541 | EOF |
b79f2575 L |
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' | |
8d98c7c0 AZ |
7549 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
7550 | (eval $ac_try) 2>&5 | |
7551 | ac_status=$? | |
c6cb8783 | 7552 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8d98c7c0 | 7553 | test $ac_status = 0; }; } |
b79f2575 L |
7554 | then |
7555 | libc_cv_wno_ignored_attributes="-Wno-ignored-attributes" | |
7556 | else | |
7557 | libc_cv_wno_ignored_attributes= | |
7558 | fi | |
7559 | ;; | |
98ffc1bf | 7560 | esac |
8d98c7c0 | 7561 | fi |
c6cb8783 SP |
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; } | |
b79f2575 L |
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* | |
8d98c7c0 AZ |
7596 | config_vars="$config_vars |
7597 | config-cflags-wno-ignored-attributes = $libc_cv_wno_ignored_attributes" | |
7598 | ||
b79f2575 | 7599 | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
7605 | else case e in #( |
7606 | e) cat > conftest.c <<EOF | |
a0da5fe1 UD |
7607 | static const int foo |
7608 | __attribute__ ((section ("bar"))) = 1; | |
e26dd47f | 7609 | EOF |
a0da5fe1 UD |
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 | |
e26dd47f | 7613 | else |
a0da5fe1 | 7614 | libc_cv_have_section_quotes=no |
e26dd47f | 7615 | fi |
a0da5fe1 UD |
7616 | else |
7617 | libc_cv_have_section_quotes=unknown | |
7618 | fi | |
7619 | rm -f conftest.{c,s} | |
98ffc1bf AH |
7620 | ;; |
7621 | esac | |
3a12e572 | 7622 | fi |
c6cb8783 SP |
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; } | |
a0da5fe1 | 7625 | if test $libc_cv_have_section_quotes = yes; then |
c6cb8783 | 7626 | printf "%s\n" "#define HAVE_SECTION_QUOTES 1" >>confdefs.h |
cd6ede75 | 7627 | |
9a97d1f7 UD |
7628 | fi |
7629 | ||
c6cb8783 SP |
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 | |
98ffc1bf AH |
7635 | else case e in #( |
7636 | e) cat > conftest.c <<\EOF | |
d555194c UD |
7637 | void zero (void *x) |
7638 | { | |
a52d1562 | 7639 | __builtin_memset (x, 0, 1000); |
d555194c UD |
7640 | } |
7641 | EOF | |
e37fc4aa | 7642 | if { ac_try='${CC-cc} -O3 -S conftest.c -o - | grep -F "memset" > /dev/null' |
b08c89d9 | 7643 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
3a12e572 UD |
7644 | (eval $ac_try) 2>&5 |
7645 | ac_status=$? | |
c6cb8783 | 7646 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
b08c89d9 | 7647 | test $ac_status = 0; }; }; |
d555194c UD |
7648 | then |
7649 | libc_cv_gcc_builtin_memset=no | |
7650 | else | |
7651 | libc_cv_gcc_builtin_memset=yes | |
7652 | fi | |
98ffc1bf AH |
7653 | rm -f conftest* ;; |
7654 | esac | |
d555194c | 7655 | fi |
c6cb8783 SP |
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; } | |
d555194c | 7658 | if test "$libc_cv_gcc_builtin_memset" = yes ; then |
c6cb8783 | 7659 | printf "%s\n" "#define HAVE_BUILTIN_MEMSET 1" >>confdefs.h |
d555194c UD |
7660 | |
7661 | fi | |
7662 | ||
c6cb8783 SP |
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 | |
98ffc1bf AH |
7668 | else case e in #( |
7669 | e) cat > conftest.c <<\EOF | |
85dd1003 UD |
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 | |
e37fc4aa | 7676 | if { ac_try='${CC-cc} -O3 -S conftest.c -o - | grep -F "my_strstr" > /dev/null' |
b08c89d9 | 7677 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
85dd1003 UD |
7678 | (eval $ac_try) 2>&5 |
7679 | ac_status=$? | |
c6cb8783 | 7680 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
b08c89d9 | 7681 | test $ac_status = 0; }; }; |
85dd1003 UD |
7682 | then |
7683 | libc_cv_gcc_builtin_redirection=yes | |
7684 | else | |
7685 | libc_cv_gcc_builtin_redirection=no | |
7686 | fi | |
98ffc1bf AH |
7687 | rm -f conftest* ;; |
7688 | esac | |
85dd1003 | 7689 | fi |
c6cb8783 SP |
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; } | |
3ce1f295 UD |
7692 | if test "$libc_cv_gcc_builtin_redirection" = no; then |
7693 | as_fn_error $? "support for the symbol redirection needed" "$LINENO" 5 | |
85dd1003 UD |
7694 | fi |
7695 | ||
c6cb8783 SP |
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 | |
98ffc1bf AH |
7701 | else case e in #( |
7702 | e) libc_cv_cc_nofma= | |
7998fa78 AS |
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=$? | |
c6cb8783 SP |
7708 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7709 | test $ac_status = 0; }; } | |
7710 | then : | |
7998fa78 AS |
7711 | libc_cv_cc_nofma=$opt; break |
7712 | fi | |
98ffc1bf AH |
7713 | done ;; |
7714 | esac | |
7998fa78 | 7715 | fi |
c6cb8783 SP |
7716 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_nofma" >&5 |
7717 | printf "%s\n" "$libc_cv_cc_nofma" >&6; } | |
7998fa78 | 7718 | |
bef0b507 | 7719 | |
2cf9ad57 | 7720 | if test -n "$submachine"; then |
c6cb8783 SP |
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 | |
98ffc1bf AH |
7726 | else case e in #( |
7727 | e) libc_cv_cc_submachine=no | |
2cf9ad57 RM |
7728 | for opt in "-march=$submachine" "-mcpu=$submachine"; do |
7729 | if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null' | |
b08c89d9 | 7730 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
2cf9ad57 RM |
7731 | (eval $ac_try) 2>&5 |
7732 | ac_status=$? | |
c6cb8783 SP |
7733 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7734 | test $ac_status = 0; }; } | |
7735 | then : | |
40b601fb | 7736 | |
2cf9ad57 RM |
7737 | libc_cv_cc_submachine="$opt" |
7738 | break | |
40b601fb | 7739 | fi |
98ffc1bf AH |
7740 | done ;; |
7741 | esac | |
2cf9ad57 | 7742 | fi |
c6cb8783 SP |
7743 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_submachine" >&5 |
7744 | printf "%s\n" "$libc_cv_cc_submachine" >&6; } | |
2cf9ad57 | 7745 | if test "x$libc_cv_cc_submachine" = xno; then |
4a531bb0 | 7746 | as_fn_error $? "${CC-cc} does not support $submachine" "$LINENO" 5 |
2cf9ad57 RM |
7747 | fi |
7748 | fi | |
7749 | ||
7750 | ||
b79f2575 | 7751 | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
7757 | else case e in #( |
7758 | e) if { ac_try='${CC-cc} -Werror -fsignaling-nans -xc /dev/null -S -o /dev/null' | |
5c5a8b99 AZ |
7759 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
7760 | (eval $ac_try) 2>&5 | |
7761 | ac_status=$? | |
c6cb8783 SP |
7762 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7763 | test $ac_status = 0; }; } | |
7764 | then : | |
5c5a8b99 | 7765 | libc_cv_cc_signaling_nans=-fsignaling-nans |
98ffc1bf AH |
7766 | else case e in #( |
7767 | e) libc_cv_cc_signaling_nans= ;; | |
7768 | esac | |
b79f2575 | 7769 | fi ;; |
98ffc1bf | 7770 | esac |
5c5a8b99 | 7771 | fi |
c6cb8783 SP |
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; } | |
b79f2575 L |
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 | ||
5c5a8b99 AZ |
7807 | config_vars="$config_vars |
7808 | config-cflags-signaling-nans = $libc_cv_cc_signaling_nans" | |
7809 | ||
b79f2575 | 7810 | |
56cdc529 L |
7811 | |
7812 | ||
03feea74 L |
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 | ||
56cdc529 L |
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 | ||
494eb254 L |
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; } | |
c6cb8783 SP |
7889 | if test ${libc_cv_cc_loop_to_function+y} |
7890 | then : | |
7891 | printf %s "(cached) " >&6 | |
98ffc1bf | 7892 | else case e in #( |
494eb254 | 7893 | e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c -Werror conftest.c -o conftest 1>&5' |
85c2e611 AZ |
7894 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
7895 | (eval $ac_try) 2>&5 | |
7896 | ac_status=$? | |
c6cb8783 | 7897 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
85c2e611 | 7898 | test $ac_status = 0; }; } |
494eb254 L |
7899 | then |
7900 | libc_cv_cc_loop_to_function=yes | |
7901 | else | |
7902 | libc_cv_cc_loop_to_function=no | |
7903 | fi | |
7904 | ;; | |
98ffc1bf | 7905 | esac |
85c2e611 | 7906 | fi |
c6cb8783 SP |
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; } | |
494eb254 L |
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* | |
85c2e611 | 7941 | if test $libc_cv_cc_loop_to_function = yes; then |
c6cb8783 | 7942 | printf "%s\n" "#define HAVE_CC_INHIBIT_LOOP_TO_LIBCALL 1" >>confdefs.h |
85c2e611 AZ |
7943 | |
7944 | fi | |
494eb254 L |
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 | |
85c2e611 AZ |
7949 | |
7950 | ||
b79f2575 | 7951 | |
4331769c FW |
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 #( | |
dad44389 | 7967 | e) libc_cv_cc_wimplicit_fallthrough= ;; |
4331769c | 7968 | esac |
b79f2575 | 7969 | fi ;; |
4331769c FW |
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; } | |
b79f2575 L |
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 | ||
4331769c FW |
8007 | config_vars="$config_vars |
8008 | cc-option-wimplicit-fallthrough = $libc_cv_cc_wimplicit_fallthrough" | |
8009 | ||
b79f2575 | 8010 | |
4f4c4fcd FW |
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 | ||
03da41d4 FW |
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 | ||
d9d30f6c L |
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 | ||
a0704d9f L |
8178 | |
8179 | ||
2271e0d2 AZ |
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 | ||
31c47126 L |
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 | ||
a0704d9f L |
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" | |
15ab68bf L |
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; } | |
a0704d9f L |
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 | ||
8d25b9f2 L |
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 | ||
c6cb8783 SP |
8373 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libgd" >&5 |
8374 | printf %s "checking for libgd... " >&6; } | |
6dab8688 UD |
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" | |
b08c89d9 | 8382 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2abf9ff1 | 8383 | /* end confdefs.h. */ |
c8f3e6db | 8384 | #include <gd.h> |
3a12e572 | 8385 | int |
c6cb8783 | 8386 | main (void) |
3a12e572 | 8387 | { |
c8f3e6db | 8388 | gdImagePng (0, 0) |
3a12e572 UD |
8389 | ; |
8390 | return 0; | |
8391 | } | |
8392 | _ACEOF | |
c6cb8783 SP |
8393 | if ac_fn_c_try_link "$LINENO" |
8394 | then : | |
c8f3e6db | 8395 | LIBGD=yes |
98ffc1bf AH |
8396 | else case e in #( |
8397 | e) LIBGD=no ;; | |
8398 | esac | |
c8f3e6db | 8399 | fi |
c6cb8783 | 8400 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
b08c89d9 | 8401 | conftest$ac_exeext conftest.$ac_ext |
6dab8688 UD |
8402 | CFLAGS="$old_CFLAGS" |
8403 | LDFLAGS="$old_LDFLAGS" | |
8404 | LIBS="$old_LIBS" | |
8405 | else | |
8406 | LIBGD=no | |
8407 | fi | |
c6cb8783 SP |
8408 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBGD" >&5 |
8409 | printf "%s\n" "$LIBGD" >&6; } | |
3a12e572 UD |
8410 | |
8411 | ||
74a30a58 UD |
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 | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
8422 | else case e in #( |
8423 | e) ac_check_lib_save_LIBS=$LIBS | |
74a30a58 | 8424 | LIBS="-lselinux $LIBS" |
b08c89d9 | 8425 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
74a30a58 UD |
8426 | /* end confdefs.h. */ |
8427 | ||
26f56c1c UD |
8428 | /* Override any GCC internal prototype to avoid an error. |
8429 | Use char because int might match the return type of a GCC | |
98ffc1bf AH |
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); | |
74a30a58 | 8438 | int |
c6cb8783 | 8439 | main (void) |
74a30a58 | 8440 | { |
26f56c1c | 8441 | return is_selinux_enabled (); |
74a30a58 UD |
8442 | ; |
8443 | return 0; | |
8444 | } | |
8445 | _ACEOF | |
c6cb8783 SP |
8446 | if ac_fn_c_try_link "$LINENO" |
8447 | then : | |
74a30a58 | 8448 | ac_cv_lib_selinux_is_selinux_enabled=yes |
98ffc1bf AH |
8449 | else case e in #( |
8450 | e) ac_cv_lib_selinux_is_selinux_enabled=no ;; | |
8451 | esac | |
74a30a58 | 8452 | fi |
c6cb8783 | 8453 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
b08c89d9 | 8454 | conftest$ac_exeext conftest.$ac_ext |
98ffc1bf AH |
8455 | LIBS=$ac_check_lib_save_LIBS ;; |
8456 | esac | |
74a30a58 | 8457 | fi |
c6cb8783 SP |
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 : | |
74a30a58 | 8462 | have_selinux=yes |
98ffc1bf AH |
8463 | else case e in #( |
8464 | e) have_selinux=no ;; | |
8465 | esac | |
74a30a58 UD |
8466 | fi |
8467 | ||
8f1913a9 | 8468 | if test x$with_selinux = xyes ; then |
74a30a58 | 8469 | if test x$have_selinux = xno ; then |
0699f766 | 8470 | as_fn_error $? "SELinux explicitly required, but SELinux library not found" "$LINENO" 5 |
74a30a58 UD |
8471 | fi |
8472 | fi | |
8473 | fi | |
8474 | # Check if we're building with SELinux support. | |
8475 | if test "x$have_selinux" = xyes; then | |
8476 | ||
c6cb8783 | 8477 | printf "%s\n" "#define HAVE_SELINUX 1" >>confdefs.h |
74a30a58 | 8478 | |
b399a0c2 UD |
8479 | |
8480 | # See if we have the libaudit library | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
8486 | else case e in #( |
8487 | e) ac_check_lib_save_LIBS=$LIBS | |
b399a0c2 | 8488 | LIBS="-laudit $LIBS" |
b08c89d9 | 8489 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b399a0c2 UD |
8490 | /* end confdefs.h. */ |
8491 | ||
26f56c1c UD |
8492 | /* Override any GCC internal prototype to avoid an error. |
8493 | Use char because int might match the return type of a GCC | |
98ffc1bf AH |
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); | |
b399a0c2 | 8502 | int |
c6cb8783 | 8503 | main (void) |
b399a0c2 | 8504 | { |
26f56c1c | 8505 | return audit_log_user_avc_message (); |
b399a0c2 UD |
8506 | ; |
8507 | return 0; | |
8508 | } | |
8509 | _ACEOF | |
c6cb8783 SP |
8510 | if ac_fn_c_try_link "$LINENO" |
8511 | then : | |
b2f97341 | 8512 | ac_cv_lib_audit_audit_log_user_avc_message=yes |
98ffc1bf AH |
8513 | else case e in #( |
8514 | e) ac_cv_lib_audit_audit_log_user_avc_message=no ;; | |
8515 | esac | |
b399a0c2 | 8516 | fi |
c6cb8783 | 8517 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
b08c89d9 | 8518 | conftest$ac_exeext conftest.$ac_ext |
98ffc1bf AH |
8519 | LIBS=$ac_check_lib_save_LIBS ;; |
8520 | esac | |
b399a0c2 | 8521 | fi |
c6cb8783 SP |
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 : | |
b399a0c2 | 8526 | have_libaudit=yes |
98ffc1bf AH |
8527 | else case e in #( |
8528 | e) have_libaudit=no ;; | |
8529 | esac | |
b399a0c2 UD |
8530 | fi |
8531 | ||
8532 | if test "x$have_libaudit" = xyes; then | |
8533 | ||
c6cb8783 | 8534 | printf "%s\n" "#define HAVE_LIBAUDIT 1" >>confdefs.h |
b399a0c2 UD |
8535 | |
8536 | fi | |
8537 | ||
1f063dca UD |
8538 | |
8539 | # See if we have the libcap library | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
8545 | else case e in #( |
8546 | e) ac_check_lib_save_LIBS=$LIBS | |
1f063dca | 8547 | LIBS="-lcap $LIBS" |
b08c89d9 | 8548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1f063dca UD |
8549 | /* end confdefs.h. */ |
8550 | ||
26f56c1c UD |
8551 | /* Override any GCC internal prototype to avoid an error. |
8552 | Use char because int might match the return type of a GCC | |
98ffc1bf AH |
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); | |
1f063dca | 8561 | int |
c6cb8783 | 8562 | main (void) |
1f063dca | 8563 | { |
26f56c1c | 8564 | return cap_init (); |
1f063dca UD |
8565 | ; |
8566 | return 0; | |
8567 | } | |
8568 | _ACEOF | |
c6cb8783 SP |
8569 | if ac_fn_c_try_link "$LINENO" |
8570 | then : | |
1f063dca | 8571 | ac_cv_lib_cap_cap_init=yes |
98ffc1bf AH |
8572 | else case e in #( |
8573 | e) ac_cv_lib_cap_cap_init=no ;; | |
8574 | esac | |
1f063dca | 8575 | fi |
c6cb8783 | 8576 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
b08c89d9 | 8577 | conftest$ac_exeext conftest.$ac_ext |
98ffc1bf AH |
8578 | LIBS=$ac_check_lib_save_LIBS ;; |
8579 | esac | |
1f063dca | 8580 | fi |
c6cb8783 SP |
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 : | |
1f063dca | 8585 | have_libcap=yes |
98ffc1bf AH |
8586 | else case e in #( |
8587 | e) have_libcap=no ;; | |
8588 | esac | |
1f063dca UD |
8589 | fi |
8590 | ||
8591 | if test "x$have_libcap" = xyes; then | |
8592 | ||
c6cb8783 | 8593 | printf "%s\n" "#define HAVE_LIBCAP 1" >>confdefs.h |
1f063dca UD |
8594 | |
8595 | fi | |
8596 | ||
74a30a58 UD |
8597 | fi |
8598 | ||
8599 | ||
127cefd8 | 8600 | no_fortify_source="-U_FORTIFY_SOURCE" |
64d9580c FB |
8601 | fortify_source="${no_fortify_source}" |
8602 | ||
b79f2575 | 8603 | |
a3090c2c AZ |
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} | |
c6cb8783 SP |
8607 | then : |
8608 | printf %s "(cached) " >&6 | |
98ffc1bf AH |
8609 | else case e in #( |
8610 | e) | |
b79f2575 | 8611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
61653dfb RM |
8612 | /* end confdefs.h. */ |
8613 | ||
8614 | int | |
c6cb8783 | 8615 | main (void) |
61653dfb | 8616 | { |
64d9580c | 8617 | __builtin_dynamic_object_size("", 0) |
61653dfb RM |
8618 | ; |
8619 | return 0; | |
8620 | } | |
8621 | _ACEOF | |
c6cb8783 SP |
8622 | if ac_fn_c_try_link "$LINENO" |
8623 | then : | |
a3090c2c | 8624 | libc_cv_supported_fortify_source=3 |
98ffc1bf AH |
8625 | else case e in #( |
8626 | e) libc_cv_supported_fortify_source=2 ;; | |
8627 | esac | |
61653dfb | 8628 | fi |
c6cb8783 | 8629 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
64d9580c | 8630 | conftest$ac_exeext conftest.$ac_ext |
98ffc1bf AH |
8631 | ;; |
8632 | esac | |
64d9580c | 8633 | fi |
a3090c2c AZ |
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; } | |
b79f2575 L |
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 | ||
64d9580c FB |
8680 | |
8681 | case $enable_fortify_source in #( | |
a3090c2c AZ |
8682 | yes) : |
8683 | libc_cv_fortify_source=yes enable_fortify_source=$libc_cv_supported_fortify_source ;; #( | |
64d9580c FB |
8684 | 1|2) : |
8685 | libc_cv_fortify_source=yes ;; #( | |
8686 | 3) : | |
a3090c2c | 8687 | if test $libc_cv_supported_fortify_source = 3 |
c6cb8783 | 8688 | then : |
64d9580c | 8689 | libc_cv_fortify_source=yes |
98ffc1bf AH |
8690 | else case e in #( |
8691 | e) as_fn_error $? "Compiler doesn't provide necessary support for _FORTIFY_SOURCE=3" "$LINENO" 5 ;; | |
8692 | esac | |
64d9580c FB |
8693 | fi ;; #( |
8694 | *) : | |
8695 | libc_cv_fortify_source=no ;; | |
8696 | esac | |
8697 | ||
c6cb8783 SP |
8698 | if test "$libc_cv_fortify_source" = yes |
8699 | then : | |
127cefd8 | 8700 | fortify_source="${fortify_source} -D_FORTIFY_SOURCE=${enable_fortify_source}" |
64d9580c | 8701 | |
61653dfb RM |
8702 | fi |
8703 | ||
8704 | ||
64d9580c FB |
8705 | |
8706 | ||
8707 | ||
a3090c2c AZ |
8708 | config_vars="$config_vars |
8709 | supported-fortify = $libc_cv_supported_fortify_source" | |
64d9580c | 8710 | |
3f1932ed AZ |
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 | ||
4d8965f1 AZ |
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" | |
3f1932ed | 8770 | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
8776 | else case e in #( |
8777 | e) cat > conftest.s <<EOF | |
0923f74a FW |
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.* | |
98ffc1bf AH |
8791 | ;; |
8792 | esac | |
0923f74a | 8793 | fi |
c6cb8783 SP |
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; } | |
0923f74a | 8796 | if test "$libc_cv_symver_needs_alias" = yes; then |
c6cb8783 | 8797 | printf "%s\n" "#define SYMVER_NEEDS_ALIAS 1" >>confdefs.h |
0923f74a FW |
8798 | |
8799 | fi | |
8800 | ||
c6cb8783 SP |
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 | |
98ffc1bf AH |
8806 | else case e in #( |
8807 | e) libc_cv_builtin_trap=no | |
9fe7e787 RM |
8808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8809 | /* end confdefs.h. */ | |
8810 | ||
8811 | int | |
c6cb8783 | 8812 | main (void) |
9fe7e787 RM |
8813 | { |
8814 | __builtin_trap () | |
8815 | ; | |
8816 | return 0; | |
8817 | } | |
8818 | _ACEOF | |
c6cb8783 SP |
8819 | if ac_fn_c_try_compile "$LINENO" |
8820 | then : | |
9fe7e787 RM |
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 | |
98ffc1bf AH |
8832 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
8833 | esac | |
9fe7e787 | 8834 | fi |
c6cb8783 SP |
8835 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_builtin_trap" >&5 |
8836 | printf "%s\n" "$libc_cv_builtin_trap" >&6; } | |
9fe7e787 | 8837 | if test $libc_cv_builtin_trap = yes; then |
c6cb8783 | 8838 | printf "%s\n" "#define HAVE_BUILTIN_TRAP 1" >>confdefs.h |
9fe7e787 RM |
8839 | |
8840 | fi | |
8841 | ||
9b91484b L |
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 | ||
99e1dc0a FW |
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 | ||
c6cb8783 SP |
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 | |
98ffc1bf AH |
8883 | else case e in #( |
8884 | e) | |
99e1dc0a FW |
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 | |
c6cb8783 SP |
8907 | if ac_fn_cxx_try_compile "$LINENO" |
8908 | then : | |
99e1dc0a | 8909 | libc_cv_cxx_thread_local=yes |
98ffc1bf AH |
8910 | else case e in #( |
8911 | e) libc_cv_cxx_thread_local=no ;; | |
8912 | esac | |
99e1dc0a | 8913 | fi |
c6cb8783 | 8914 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
99e1dc0a | 8915 | CXXFLAGS="$old_CXXFLAGS" |
98ffc1bf AH |
8916 | ;; |
8917 | esac | |
99e1dc0a | 8918 | fi |
c6cb8783 SP |
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; } | |
99e1dc0a FW |
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 | ||
cd6ede75 UD |
8930 | ### End of automated tests. |
8931 | ### Now run sysdeps configure fragments. | |
8932 | ||
cb343854 | 8933 | # They also can set these variables. |
b43b13ac | 8934 | use_ldconfig=no |
cb343854 | 8935 | ldd_rewrite_script=no |
77259608 | 8936 | libc_cv_sysconfdir=$sysconfdir |
4248b1b1 | 8937 | libc_cv_localstatedir=$localstatedir |
74bd2300 | 8938 | libc_cv_gcc_unwind_find_fde=no |
e2fd3cbe | 8939 | libc_cv_idn=no |
ad201afe | 8940 | pthread_in_libc=yes |
cb343854 | 8941 | |
cd6ede75 | 8942 | # Iterate over all the sysdep directories we will use, running their |
09055553 | 8943 | # configure fragments. |
cd6ede75 UD |
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 | |
c6cb8783 SP |
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; } | |
cd6ede75 UD |
8952 | . $dest/configure |
8953 | fi | |
cd6ede75 UD |
8954 | done |
8955 | ||
5695d46f AS |
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 | ||
7ffa9423 AZ |
8962 | |
8963 | ||
8964 | ||
74bd2300 | 8965 | if test x$libc_cv_gcc_unwind_find_fde = xyes; then |
c6cb8783 | 8966 | printf "%s\n" "#define EXPORT_UNWIND_FIND_FDE 1" >>confdefs.h |
74bd2300 UD |
8967 | |
8968 | fi | |
8969 | ||
8970 | ||
6e6249d0 RM |
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 | |
c6cb8783 | 8974 | printf "%s\n" "#define HAVE_IFUNC 1" >>confdefs.h |
6e6249d0 RM |
8975 | |
8976 | fi | |
92ad88fe L |
8977 | config_vars="$config_vars |
8978 | have-ifunc = $libc_cv_ld_gnu_indirect_function" | |
6e6249d0 | 8979 | |
022dfdce | 8980 | if test x"$libc_cv_gcc_indirect_function" = xyes; then |
c6cb8783 | 8981 | printf "%s\n" "#define HAVE_GCC_IFUNC 1" >>confdefs.h |
022dfdce SL |
8982 | |
8983 | fi | |
16b59780 ST |
8984 | config_vars="$config_vars |
8985 | have-gcc-ifunc = $libc_cv_gcc_indirect_function" | |
022dfdce | 8986 | |
3cc3ef96 RM |
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 | |
c6cb8783 | 8991 | printf "%s\n" "#define USE_NSCD 1" >>confdefs.h |
3cc3ef96 RM |
8992 | |
8993 | fi | |
c53d909c RM |
8994 | if test "x$build_nscd" = xdefault; then |
8995 | build_nscd=$use_nscd | |
8996 | fi | |
3cc3ef96 | 8997 | |
cd6ede75 UD |
8998 | |
8999 | ||
9000 | ||
9001 | ||
9002 | ||
cb343854 | 9003 | |
dff14448 | 9004 | |
f57f8055 | 9005 | if test x$use_ldconfig = xyes; then |
c6cb8783 | 9006 | printf "%s\n" "#define USE_LDCONFIG 1" >>confdefs.h |
f57f8055 RM |
9007 | |
9008 | fi | |
af968f62 | 9009 | |
3b100462 | 9010 | |
eae47a36 | 9011 | |
7998fa78 | 9012 | |
650425ce | 9013 | |
a334319f | 9014 | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
9020 | else case e in #( |
9021 | e) libc_cv_pic_default=yes | |
cc3fa755 | 9022 | cat > conftest.c <<EOF |
9756dfe1 | 9023 | #if defined __PIC__ || defined __pic__ || defined PIC || defined pic |
cc3fa755 UD |
9024 | # error PIC is default. |
9025 | #endif | |
9026 | EOF | |
9027 | if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then | |
ff886b82 | 9028 | libc_cv_pic_default=no |
cc3fa755 | 9029 | fi |
98ffc1bf AH |
9030 | rm -f conftest.* ;; |
9031 | esac | |
cc3fa755 | 9032 | fi |
c6cb8783 SP |
9033 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pic_default" >&5 |
9034 | printf "%s\n" "$libc_cv_pic_default" >&6; } | |
23645707 SP |
9035 | config_vars="$config_vars |
9036 | build-pic-default = $libc_cv_pic_default" | |
cc3fa755 | 9037 | |
c6cb8783 SP |
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 | |
98ffc1bf AH |
9043 | else case e in #( |
9044 | e) libc_cv_cc_pie_default=yes | |
cc08749b L |
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 | |
00c714df | 9051 | libc_cv_cc_pie_default=no |
cc08749b | 9052 | fi |
98ffc1bf AH |
9053 | rm -f conftest.* ;; |
9054 | esac | |
cc08749b | 9055 | fi |
c6cb8783 SP |
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; } | |
23645707 SP |
9058 | config_vars="$config_vars |
9059 | cc-pie-default = $libc_cv_cc_pie_default" | |
abcb584d | 9060 | |
e7b55327 L |
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: | |
bce70034 | 9076 | .byte 0 |
e7b55327 L |
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 | ||
c05086d9 YK |
9136 | # Check if compilers support GCS in branch protection: |
9137 | ||
c05086d9 YK |
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 | ||
c6cb8783 SP |
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; } | |
ded3aeb2 | 9236 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
23645707 SP |
9237 | /* end confdefs.h. */ |
9238 | #ifdef PIE_UNSUPPORTED | |
9239 | # error PIE is not supported | |
9240 | #endif | |
9241 | _ACEOF | |
c6cb8783 SP |
9242 | if ac_fn_c_try_compile "$LINENO" |
9243 | then : | |
ded3aeb2 | 9244 | libc_cv_pie_supported=yes |
98ffc1bf AH |
9245 | else case e in #( |
9246 | e) libc_cv_pie_supported=no ;; | |
9247 | esac | |
23645707 | 9248 | fi |
c6cb8783 SP |
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; } | |
ded3aeb2 L |
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 | |
23645707 | 9258 | fi |
23645707 | 9259 | config_vars="$config_vars |
ded3aeb2 | 9260 | build-pie-default = $build_pie_default" |
23645707 | 9261 | |
c6cb8783 SP |
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; } | |
ded3aeb2 L |
9264 | libc_cv_static_pie_supported=$libc_cv_pie_supported |
9265 | if test "x$libc_cv_pie_supported" != xno \ | |
23645707 | 9266 | -a "$libc_cv_no_dynamic_linker" = yes; then |
374cef32 SN |
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 | |
c6cb8783 SP |
9273 | if ac_fn_c_try_compile "$LINENO" |
9274 | then : | |
ded3aeb2 | 9275 | libc_cv_static_pie_supported=yes |
98ffc1bf AH |
9276 | else case e in #( |
9277 | e) libc_cv_static_pie_supported=no ;; | |
9278 | esac | |
374cef32 | 9279 | fi |
c6cb8783 | 9280 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
ded3aeb2 | 9281 | fi |
c6cb8783 SP |
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; } | |
ded3aeb2 L |
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 | |
c6cb8783 | 9293 | printf "%s\n" "#define ENABLE_STATIC_PIE 1" >>confdefs.h |
9d7a3741 L |
9294 | |
9295 | fi | |
9296 | config_vars="$config_vars | |
23645707 SP |
9297 | enable-static-pie = $libc_cv_static_pie" |
9298 | ||
5dfbc3c4 FW |
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 | ||
b79f2575 L |
9339 | # Support configure.ac under sysdeps. |
9340 | ||
9341 | ||
9342 | ||
9343 | ||
23645707 SP |
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 | ||
9d7a3741 | 9348 | |
2103c260 | 9349 | |
2103c260 | 9350 | |
2103c260 | 9351 | |
cc3fa755 | 9352 | |
cd6ede75 UD |
9353 | |
9354 | ||
9355 | ||
ee74a442 UD |
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 | ||
cd6ede75 UD |
9359 | |
9360 | ||
ad201afe | 9361 | if test "$pthread_in_libc" = yes; then |
c6cb8783 | 9362 | printf "%s\n" "#define PTHREAD_IN_LIBC 1" >>confdefs.h |
ad201afe FW |
9363 | |
9364 | fi | |
9365 | ||
9366 | ||
728e272a | 9367 | ac_config_files="$ac_config_files config.make Makefile" |
f4b07664 | 9368 | |
26f56c1c | 9369 | ac_config_commands="$ac_config_commands default" |
f4b07664 | 9370 | |
3a12e572 | 9371 | cat >confcache <<\_ACEOF |
cd6ede75 UD |
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 | |
3a12e572 UD |
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. | |
cd6ede75 | 9377 | # |
3a12e572 UD |
9378 | # config.status only pays attention to the cache file if you give it |
9379 | # the --recheck option to rerun configure. | |
cd6ede75 | 9380 | # |
98ffc1bf AH |
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 | |
3a12e572 UD |
9383 | # following values. |
9384 | ||
9385 | _ACEOF | |
9386 | ||
cd6ede75 UD |
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. | |
26f56c1c | 9389 | # So, we kill variables containing newlines. |
cd6ede75 UD |
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. | |
26f56c1c UD |
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 #( | |
c6cb8783 SP |
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;} ;; | |
26f56c1c UD |
9400 | esac |
9401 | case $ac_var in #( | |
9402 | _ | IFS | as_nl) ;; #( | |
322e23db | 9403 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
b08c89d9 | 9404 | *) { eval $ac_var=; unset $ac_var;} ;; |
26f56c1c UD |
9405 | esac ;; |
9406 | esac | |
9407 | done | |
9408 | ||
3a12e572 | 9409 | (set) 2>&1 | |
26f56c1c UD |
9410 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
9411 | *${as_nl}ac_space=\ *) | |
98ffc1bf | 9412 | # 'set' does not quote correctly, so add quotes: double-quote |
b08c89d9 | 9413 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
3a12e572 | 9414 | sed -n \ |
9382fcee RM |
9415 | "s/'/'\\\\''/g; |
9416 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
26f56c1c | 9417 | ;; #( |
3a12e572 | 9418 | *) |
98ffc1bf | 9419 | # 'set' quotes correctly as required by POSIX, so do not add quotes. |
26f56c1c | 9420 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
3a12e572 | 9421 | ;; |
26f56c1c UD |
9422 | esac | |
9423 | sort | |
9424 | ) | | |
3a12e572 | 9425 | sed ' |
26f56c1c | 9426 | /^ac_cv_env_/b end |
3a12e572 | 9427 | t clear |
26f56c1c | 9428 | :clear |
c6cb8783 | 9429 | s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
3a12e572 | 9430 | t end |
26f56c1c UD |
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 | |
f318beb8 | 9435 | if test "x$cache_file" != "x/dev/null"; then |
c6cb8783 SP |
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;} | |
f318beb8 UD |
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 | |
cd6ede75 | 9450 | else |
c6cb8783 SP |
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;} | |
cd6ede75 UD |
9453 | fi |
9454 | fi | |
9455 | rm -f confcache | |
9456 | ||
cd6ede75 UD |
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 | ||
cd6ede75 UD |
9461 | DEFS=-DHAVE_CONFIG_H |
9462 | ||
f4b07664 RM |
9463 | ac_libobjs= |
9464 | ac_ltlibobjs= | |
4a531bb0 | 9465 | U= |
f4b07664 RM |
9466 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
9467 | # 1. Remove the extension, and $U if already installed. | |
26f56c1c | 9468 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
c6cb8783 | 9469 | ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` |
26f56c1c UD |
9470 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
9471 | # will be set to the directory where LIBOBJS objects are built. | |
b08c89d9 UD |
9472 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
9473 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
f4b07664 RM |
9474 | done |
9475 | LIBOBJS=$ac_libobjs | |
9476 | ||
9477 | LTLIBOBJS=$ac_ltlibobjs | |
9478 | ||
9479 | ||
cd6ede75 | 9480 | |
f318beb8 | 9481 | : "${CONFIG_STATUS=./config.status}" |
322e23db | 9482 | ac_write_fail=0 |
3a12e572 UD |
9483 | ac_clean_files_save=$ac_clean_files |
9484 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
c6cb8783 SP |
9485 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
9486 | printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} | |
b08c89d9 UD |
9487 | as_write_fail=0 |
9488 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
3a12e572 UD |
9489 | #! $SHELL |
9490 | # Generated by $as_me. | |
cd6ede75 | 9491 | # Run this file to recreate the current configuration. |
cd6ede75 | 9492 | # Compiler output produced by configure, useful for debugging |
3a12e572 | 9493 | # configure, is in config.log if it exists. |
cd6ede75 | 9494 | |
3a12e572 | 9495 | debug=false |
2abf9ff1 RM |
9496 | ac_cs_recheck=false |
9497 | ac_cs_silent=false | |
3a12e572 | 9498 | |
b08c89d9 UD |
9499 | SHELL=\${CONFIG_SHELL-$SHELL} |
9500 | export SHELL | |
9501 | _ASEOF | |
9502 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
9503 | ## -------------------- ## | |
9504 | ## M4sh Initialization. ## | |
9505 | ## -------------------- ## | |
3a12e572 | 9506 | |
26f56c1c UD |
9507 | # Be more Bourne compatible |
9508 | DUALCASE=1; export DUALCASE # for MKS sh | |
c6cb8783 SP |
9509 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
9510 | then : | |
3a12e572 UD |
9511 | emulate sh |
9512 | NULLCMD=: | |
322e23db | 9513 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
f4b07664 RM |
9514 | # is contrary to our usage. Disable this feature. |
9515 | alias -g '${1+"$@"}'='"$@"' | |
26f56c1c | 9516 | setopt NO_GLOB_SUBST |
98ffc1bf AH |
9517 | else case e in #( |
9518 | e) case `(set -o) 2>/dev/null` in #( | |
b08c89d9 UD |
9519 | *posix*) : |
9520 | set -o posix ;; #( | |
9521 | *) : | |
9522 | ;; | |
98ffc1bf | 9523 | esac ;; |
26f56c1c | 9524 | esac |
26f56c1c UD |
9525 | fi |
9526 | ||
9527 | ||
c6cb8783 SP |
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. | |
322e23db UD |
9536 | as_nl=' |
9537 | ' | |
9538 | export as_nl | |
c6cb8783 SP |
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 | |
322e23db UD |
9565 | |
9566 | # The user is always right. | |
c6cb8783 | 9567 | if ${PATH_SEPARATOR+false} :; then |
322e23db UD |
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 | } | |
3a12e572 UD |
9573 | fi |
9574 | ||
f4b07664 | 9575 | |
26f56c1c | 9576 | # Find who we are. Look in the path if we contain no directory separator. |
f318beb8 | 9577 | as_myself= |
b08c89d9 | 9578 | case $0 in #(( |
26f56c1c UD |
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 | |
c6cb8783 SP |
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 | |
b08c89d9 | 9590 | done |
26f56c1c UD |
9591 | IFS=$as_save_IFS |
9592 | ||
9593 | ;; | |
9594 | esac | |
98ffc1bf | 9595 | # We did not find ourselves, most probably we were run as 'sh COMMAND' |
26f56c1c UD |
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 | |
c6cb8783 | 9601 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
b08c89d9 | 9602 | exit 1 |
26f56c1c UD |
9603 | fi |
9604 | ||
b08c89d9 UD |
9605 | |
9606 | ||
4a531bb0 L |
9607 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
9608 | # ---------------------------------------- | |
b08c89d9 UD |
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 | |
4a531bb0 | 9611 | # script with STATUS, using 1 if that was 0. |
b08c89d9 UD |
9612 | as_fn_error () |
9613 | { | |
4a531bb0 L |
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 | |
c6cb8783 | 9617 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
b08c89d9 | 9618 | fi |
c6cb8783 | 9619 | printf "%s\n" "$as_me: error: $2" >&2 |
b08c89d9 UD |
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 | |
c6cb8783 | 9650 | |
b08c89d9 UD |
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. | |
c6cb8783 SP |
9657 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
9658 | then : | |
b08c89d9 UD |
9659 | eval 'as_fn_append () |
9660 | { | |
9661 | eval $1+=\$2 | |
9662 | }' | |
98ffc1bf AH |
9663 | else case e in #( |
9664 | e) as_fn_append () | |
b08c89d9 UD |
9665 | { |
9666 | eval $1=\$$1\$2 | |
98ffc1bf AH |
9667 | } ;; |
9668 | esac | |
b08c89d9 UD |
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. | |
c6cb8783 SP |
9676 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
9677 | then : | |
b08c89d9 UD |
9678 | eval 'as_fn_arith () |
9679 | { | |
9680 | as_val=$(( $* )) | |
9681 | }' | |
98ffc1bf AH |
9682 | else case e in #( |
9683 | e) as_fn_arith () | |
b08c89d9 UD |
9684 | { |
9685 | as_val=`expr "$@" || test $? -eq 1` | |
98ffc1bf AH |
9686 | } ;; |
9687 | esac | |
b08c89d9 UD |
9688 | fi # as_fn_arith |
9689 | ||
9690 | ||
26f56c1c UD |
9691 | if expr a : '\(a\)' >/dev/null 2>&1 && |
9692 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
f4b07664 RM |
9693 | as_expr=expr |
9694 | else | |
9695 | as_expr=false | |
9696 | fi | |
9697 | ||
26f56c1c | 9698 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
f4b07664 RM |
9699 | as_basename=basename |
9700 | else | |
9701 | as_basename=false | |
9702 | fi | |
3a12e572 | 9703 | |
b08c89d9 UD |
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 | |
3a12e572 | 9709 | |
26f56c1c | 9710 | as_me=`$as_basename -- "$0" || |
3a12e572 UD |
9711 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
9712 | X"$0" : 'X\(//\)$' \| \ | |
26f56c1c | 9713 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
c6cb8783 | 9714 | printf "%s\n" X/"$0" | |
26f56c1c UD |
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'` | |
3a12e572 | 9728 | |
b08c89d9 UD |
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 | |
26f56c1c | 9735 | |
c6cb8783 SP |
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. | |
26f56c1c | 9740 | ECHO_C= ECHO_N= ECHO_T= |
b08c89d9 | 9741 | case `echo -n x` in #((((( |
26f56c1c | 9742 | -n*) |
b08c89d9 | 9743 | case `echo 'xy\c'` in |
26f56c1c | 9744 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
b08c89d9 UD |
9745 | xy) ECHO_C='\c';; |
9746 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
9747 | ECHO_T=' ';; | |
26f56c1c UD |
9748 | esac;; |
9749 | *) | |
9750 | ECHO_N='-n';; | |
3a12e572 | 9751 | esac |
cd6ede75 | 9752 | |
c6cb8783 SP |
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 | ||
3a12e572 | 9759 | rm -f conf$$ conf$$.exe conf$$.file |
26f56c1c UD |
9760 | if test -d conf$$.dir; then |
9761 | rm -f conf$$.dir/conf$$.file | |
9762 | else | |
9763 | rm -f conf$$.dir | |
322e23db UD |
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: | |
98ffc1bf AH |
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'. | |
322e23db | 9773 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
f4a58f0d | 9774 | as_ln_s='cp -pR' |
322e23db UD |
9775 | elif ln conf$$.file conf$$ 2>/dev/null; then |
9776 | as_ln_s=ln | |
9777 | else | |
f4a58f0d | 9778 | as_ln_s='cp -pR' |
322e23db | 9779 | fi |
3a12e572 | 9780 | else |
f4a58f0d | 9781 | as_ln_s='cp -pR' |
cd6ede75 | 9782 | fi |
26f56c1c UD |
9783 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
9784 | rmdir conf$$.dir 2>/dev/null | |
cd6ede75 | 9785 | |
b08c89d9 UD |
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 #( | |
c6cb8783 | 9800 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
b08c89d9 UD |
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 || | |
c6cb8783 | 9809 | printf "%s\n" X"$as_dir" | |
b08c89d9 UD |
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" | |
4a531bb0 | 9830 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
b08c89d9 UD |
9831 | |
9832 | ||
9833 | } # as_fn_mkdir_p | |
f4b07664 | 9834 | if mkdir -p . 2>/dev/null; then |
b08c89d9 | 9835 | as_mkdir_p='mkdir -p "$as_dir"' |
f4b07664 | 9836 | else |
9382fcee | 9837 | test -d ./-p && rmdir ./-p |
f4b07664 RM |
9838 | as_mkdir_p=false |
9839 | fi | |
9840 | ||
f4a58f0d L |
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 | |
cd6ede75 | 9851 | |
3a12e572 | 9852 | # Sed expression to map a string onto a valid CPP name. |
98ffc1bf AH |
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 | |
3a12e572 UD |
9855 | |
9856 | # Sed expression to map a string onto a valid variable name. | |
98ffc1bf AH |
9857 | as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
9858 | as_tr_sh="eval sed '$as_sed_sh'" # deprecated | |
3a12e572 UD |
9859 | |
9860 | ||
3a12e572 | 9861 | exec 6>&1 |
b08c89d9 UD |
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 | |
3a12e572 | 9867 | |
b08c89d9 UD |
9868 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9869 | # Save the log message, to keep $0 and so on meaningful, and to | |
3a12e572 | 9870 | # report actual input values of CONFIG_FILES etc. instead of their |
26f56c1c UD |
9871 | # values after options handling. |
9872 | ac_log=" | |
f4b07664 | 9873 | This file was extended by GNU C Library $as_me (see version.h), which was |
98ffc1bf | 9874 | generated by GNU Autoconf 2.72. Invocation command line was |
3a12e572 UD |
9875 | |
9876 | CONFIG_FILES = $CONFIG_FILES | |
9877 | CONFIG_HEADERS = $CONFIG_HEADERS | |
9878 | CONFIG_LINKS = $CONFIG_LINKS | |
9879 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
9880 | $ $0 $@ | |
9881 | ||
26f56c1c UD |
9882 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
9883 | " | |
9884 | ||
3a12e572 UD |
9885 | _ACEOF |
9886 | ||
322e23db UD |
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 | |
3a12e572 | 9897 | # Files that config.status was made for. |
26f56c1c UD |
9898 | config_files="$ac_config_files" |
9899 | config_headers="$ac_config_headers" | |
9900 | config_commands="$ac_config_commands" | |
3a12e572 | 9901 | |
26f56c1c | 9902 | _ACEOF |
3a12e572 | 9903 | |
322e23db | 9904 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
3a12e572 | 9905 | ac_cs_usage="\ |
98ffc1bf | 9906 | '$as_me' instantiates files and other configuration actions |
b08c89d9 UD |
9907 | from templates according to the current configuration. Unless the files |
9908 | and actions are specified as TAGs, all are instantiated by default. | |
3a12e572 | 9909 | |
b08c89d9 | 9910 | Usage: $0 [OPTION]... [TAG]... |
3a12e572 UD |
9911 | |
9912 | -h, --help print this help, then exit | |
26f56c1c | 9913 | -V, --version print version number and configuration settings, then exit |
b08c89d9 | 9914 | --config print configuration, then exit |
322e23db UD |
9915 | -q, --quiet, --silent |
9916 | do not print progress messages | |
3a12e572 UD |
9917 | -d, --debug don't remove temporary files |
9918 | --recheck update $as_me by reconfiguring in the same conditions | |
322e23db UD |
9919 | --file=FILE[:TEMPLATE] |
9920 | instantiate the configuration file FILE | |
9921 | --header=FILE[:TEMPLATE] | |
9922 | instantiate the configuration header FILE | |
3a12e572 UD |
9923 | |
9924 | Configuration files: | |
9925 | $config_files | |
9926 | ||
9927 | Configuration headers: | |
9928 | $config_headers | |
9929 | ||
3a12e572 UD |
9930 | Configuration commands: |
9931 | $config_commands | |
9932 | ||
a306c790 | 9933 | Report bugs to <https://sourceware.org/bugzilla/>. |
02d35f06 | 9934 | GNU C Library home page: <https://www.gnu.org/software/glibc/>. |
c6cb8783 | 9935 | General help using GNU software: <https://www.gnu.org/gethelp/>." |
3a12e572 | 9936 | |
26f56c1c | 9937 | _ACEOF |
c6cb8783 SP |
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"` | |
322e23db | 9940 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
c6cb8783 | 9941 | ac_cs_config='$ac_cs_config_escaped' |
3a12e572 | 9942 | ac_cs_version="\\ |
f4b07664 | 9943 | GNU C Library config.status (see version.h) |
98ffc1bf | 9944 | configured by $0, generated by GNU Autoconf 2.72, |
b08c89d9 | 9945 | with options \\"\$ac_cs_config\\" |
3a12e572 | 9946 | |
98ffc1bf | 9947 | Copyright (C) 2023 Free Software Foundation, Inc. |
3a12e572 UD |
9948 | This config.status script is free software; the Free Software Foundation |
9949 | gives unlimited permission to copy, distribute and modify it." | |
26f56c1c UD |
9950 | |
9951 | ac_pwd='$ac_pwd' | |
9952 | srcdir='$srcdir' | |
9953 | INSTALL='$INSTALL' | |
322e23db | 9954 | test -n "\$AWK" || AWK=awk |
3a12e572 UD |
9955 | _ACEOF |
9956 | ||
322e23db UD |
9957 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
9958 | # The default lists apply if the user does not specify any file. | |
3a12e572 UD |
9959 | ac_need_defaults=: |
9960 | while test $# != 0 | |
9961 | do | |
9962 | case $1 in | |
f318beb8 | 9963 | --*=?*) |
26f56c1c UD |
9964 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
9965 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
f4b07664 RM |
9966 | ac_shift=: |
9967 | ;; | |
f318beb8 UD |
9968 | --*=) |
9969 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
9970 | ac_optarg= | |
9971 | ac_shift=: | |
9972 | ;; | |
26f56c1c | 9973 | *) |
f4b07664 RM |
9974 | ac_option=$1 |
9975 | ac_optarg=$2 | |
9976 | ac_shift=shift | |
3a12e572 | 9977 | ;; |
cd6ede75 UD |
9978 | esac |
9979 | ||
f4b07664 | 9980 | case $ac_option in |
3a12e572 | 9981 | # Handling of the options. |
2abf9ff1 RM |
9982 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
9983 | ac_cs_recheck=: ;; | |
26f56c1c | 9984 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
c6cb8783 | 9985 | printf "%s\n" "$ac_cs_version"; exit ;; |
b08c89d9 | 9986 | --config | --confi | --conf | --con | --co | --c ) |
c6cb8783 | 9987 | printf "%s\n" "$ac_cs_config"; exit ;; |
26f56c1c | 9988 | --debug | --debu | --deb | --de | --d | -d ) |
3a12e572 UD |
9989 | debug=: ;; |
9990 | --file | --fil | --fi | --f ) | |
f4b07664 | 9991 | $ac_shift |
322e23db | 9992 | case $ac_optarg in |
c6cb8783 | 9993 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
f318beb8 | 9994 | '') as_fn_error $? "missing file argument" ;; |
322e23db | 9995 | esac |
b08c89d9 | 9996 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
3a12e572 UD |
9997 | ac_need_defaults=false;; |
9998 | --header | --heade | --head | --hea ) | |
f4b07664 | 9999 | $ac_shift |
322e23db | 10000 | case $ac_optarg in |
c6cb8783 | 10001 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
322e23db | 10002 | esac |
b08c89d9 | 10003 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
3a12e572 | 10004 | ac_need_defaults=false;; |
26f56c1c UD |
10005 | --he | --h) |
10006 | # Conflict between --help and --header | |
98ffc1bf AH |
10007 | as_fn_error $? "ambiguous option: '$1' |
10008 | Try '$0 --help' for more information.";; | |
26f56c1c | 10009 | --help | --hel | -h ) |
c6cb8783 | 10010 | printf "%s\n" "$ac_cs_usage"; exit ;; |
2abf9ff1 RM |
10011 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
10012 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
10013 | ac_cs_silent=: ;; | |
3a12e572 UD |
10014 | |
10015 | # This is an error. | |
98ffc1bf AH |
10016 | -*) as_fn_error $? "unrecognized option: '$1' |
10017 | Try '$0 --help' for more information." ;; | |
3a12e572 | 10018 | |
b08c89d9 | 10019 | *) as_fn_append ac_config_targets " $1" |
26f56c1c | 10020 | ac_need_defaults=false ;; |
cd6ede75 | 10021 | |
3a12e572 UD |
10022 | esac |
10023 | shift | |
10024 | done | |
10025 | ||
2abf9ff1 RM |
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 | |
322e23db | 10034 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
2abf9ff1 | 10035 | if \$ac_cs_recheck; then |
f4a58f0d | 10036 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
322e23db | 10037 | shift |
c6cb8783 | 10038 | \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 |
322e23db | 10039 | CONFIG_SHELL='$SHELL' |
26f56c1c | 10040 | export CONFIG_SHELL |
322e23db | 10041 | exec "\$@" |
2abf9ff1 RM |
10042 | fi |
10043 | ||
3a12e572 | 10044 | _ACEOF |
322e23db | 10045 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
26f56c1c UD |
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 | |
c6cb8783 | 10052 | printf "%s\n" "$ac_log" |
26f56c1c | 10053 | } >&5 |
3a12e572 | 10054 | |
26f56c1c | 10055 | _ACEOF |
322e23db | 10056 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
3a12e572 | 10057 | # |
26f56c1c | 10058 | # INIT-COMMANDS |
3a12e572 | 10059 | # |
3a12e572 UD |
10060 | config_vars='$config_vars' |
10061 | ||
10062 | _ACEOF | |
10063 | ||
322e23db | 10064 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
26f56c1c UD |
10065 | |
10066 | # Handling of arguments. | |
3a12e572 UD |
10067 | for ac_config_target in $ac_config_targets |
10068 | do | |
26f56c1c UD |
10069 | case $ac_config_target in |
10070 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
10071 | "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;; | |
728e272a | 10072 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
26f56c1c UD |
10073 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
10074 | ||
98ffc1bf | 10075 | *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; |
3a12e572 UD |
10076 | esac |
10077 | done | |
10078 | ||
26f56c1c | 10079 | |
3a12e572 UD |
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 | |
c6cb8783 SP |
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 | |
3a12e572 UD |
10088 | fi |
10089 | ||
2abf9ff1 | 10090 | # Have a temporary directory for convenience. Make it in the build tree |
26f56c1c | 10091 | # simply because there is no reason against having it here, and in addition, |
2abf9ff1 | 10092 | # creating and moving files from /tmp can sometimes cause problems. |
26f56c1c UD |
10093 | # Hook for its removal unless debugging. |
10094 | # Note that there is a small window in which the directory will not be cleaned: | |
98ffc1bf | 10095 | # after its creation but before its name has been assigned to '$tmp'. |
3a12e572 UD |
10096 | $debug || |
10097 | { | |
f318beb8 | 10098 | tmp= ac_tmp= |
26f56c1c | 10099 | trap 'exit_status=$? |
f318beb8 UD |
10100 | : "${ac_tmp:=$tmp}" |
10101 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
26f56c1c | 10102 | ' 0 |
b08c89d9 | 10103 | trap 'as_fn_exit 1' 1 2 13 15 |
3a12e572 | 10104 | } |
3a12e572 | 10105 | # Create a (secure) tmp directory for tmp files. |
2abf9ff1 | 10106 | |
3a12e572 | 10107 | { |
26f56c1c | 10108 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
f318beb8 | 10109 | test -d "$tmp" |
3a12e572 UD |
10110 | } || |
10111 | { | |
26f56c1c UD |
10112 | tmp=./conf$$-$RANDOM |
10113 | (umask 077 && mkdir "$tmp") | |
4a531bb0 | 10114 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
f318beb8 | 10115 | ac_tmp=$tmp |
3a12e572 | 10116 | |
322e23db UD |
10117 | # Set up the scripts for CONFIG_FILES section. |
10118 | # No need to generate them if there are no CONFIG_FILES. | |
98ffc1bf | 10119 | # This happens for instance with './config.status config.h'. |
26f56c1c UD |
10120 | if test -n "$CONFIG_FILES"; then |
10121 | ||
a152f366 | 10122 | |
b08c89d9 UD |
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 | |
322e23db UD |
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 | |
4a531bb0 | 10132 | ac_cs_awk_cr='\\r' |
322e23db UD |
10133 | else |
10134 | ac_cs_awk_cr=$ac_cr | |
26f56c1c UD |
10135 | fi |
10136 | ||
f318beb8 | 10137 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
26f56c1c UD |
10138 | _ACEOF |
10139 | ||
10140 | ||
322e23db UD |
10141 | { |
10142 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
10143 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
10144 | echo "_ACEOF" | |
10145 | } >conf$$subs.sh || | |
4a531bb0 L |
10146 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
10147 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
26f56c1c UD |
10148 | ac_delim='%!_!# ' |
10149 | for ac_last_try in false false false false false :; do | |
322e23db | 10150 | . ./conf$$subs.sh || |
4a531bb0 | 10151 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
322e23db UD |
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 | |
26f56c1c UD |
10155 | break |
10156 | elif $ac_last_try; then | |
4a531bb0 | 10157 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
26f56c1c UD |
10158 | else |
10159 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
10160 | fi | |
10161 | done | |
322e23db UD |
10162 | rm -f conf$$subs.sh |
10163 | ||
10164 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
f318beb8 | 10165 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
322e23db UD |
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 | |
b08c89d9 | 10179 | s/\(.\{148\}\)..*/\1/ |
322e23db UD |
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 | |
b08c89d9 | 10193 | s/\(.\{148\}\)..*/\1/ |
322e23db UD |
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 | |
f318beb8 | 10213 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
322e23db UD |
10214 | for (key in S) S_is_set[key] = 1 |
10215 | FS = "\a" | |
ff886b82 | 10216 | |
322e23db UD |
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 | } | |
cd6ede75 | 10237 | |
322e23db | 10238 | _ACAWK |
26f56c1c | 10239 | _ACEOF |
322e23db UD |
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 | |
f318beb8 | 10245 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
4a531bb0 | 10246 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
3a12e572 | 10247 | _ACEOF |
26f56c1c | 10248 | |
4a531bb0 L |
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 | |
26f56c1c UD |
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 | |
4a531bb0 L |
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/^:*// | |
26f56c1c | 10263 | s/:*$// |
4a531bb0 L |
10264 | x |
10265 | s/\(=[ ]*\).*/\1/ | |
10266 | G | |
10267 | s/\n// | |
26f56c1c UD |
10268 | s/^[^=]*=[ ]*$// |
10269 | }' | |
10270 | fi | |
10271 | ||
322e23db | 10272 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
26f56c1c UD |
10273 | fi # test -n "$CONFIG_FILES" |
10274 | ||
322e23db UD |
10275 | # Set up the scripts for CONFIG_HEADERS section. |
10276 | # No need to generate them if there are no CONFIG_HEADERS. | |
98ffc1bf | 10277 | # This happens for instance with './config.status Makefile'. |
322e23db | 10278 | if test -n "$CONFIG_HEADERS"; then |
f318beb8 | 10279 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
322e23db UD |
10280 | BEGIN { |
10281 | _ACEOF | |
10282 | ||
98ffc1bf | 10283 | # Transform confdefs.h into an awk script 'defines.awk', embedded as |
322e23db UD |
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 | |
f318beb8 UD |
10291 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
10292 | if test -z "$ac_tt"; then | |
322e23db UD |
10293 | break |
10294 | elif $ac_last_try; then | |
4a531bb0 | 10295 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
322e23db UD |
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 | |
4a531bb0 | 10380 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
322e23db UD |
10381 | fi # test -n "$CONFIG_HEADERS" |
10382 | ||
26f56c1c | 10383 | |
322e23db UD |
10384 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
10385 | shift | |
10386 | for ac_tag | |
26f56c1c UD |
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]*:*);; | |
98ffc1bf | 10393 | :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; |
26f56c1c UD |
10394 | :[FH]-) ac_tag=-:-;; |
10395 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
cd6ede75 | 10396 | esac |
26f56c1c UD |
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 | |
f318beb8 | 10412 | -) ac_f="$ac_tmp/stdin";; |
26f56c1c UD |
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, | |
98ffc1bf | 10415 | # because $ac_f cannot contain ':'. |
26f56c1c UD |
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 || | |
98ffc1bf | 10421 | as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; |
26f56c1c | 10422 | esac |
c6cb8783 | 10423 | case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
b08c89d9 | 10424 | as_fn_append ac_file_inputs " '$ac_f'" |
26f56c1c | 10425 | done |
cd6ede75 | 10426 | |
98ffc1bf | 10427 | # Let's still pretend it is 'configure' which instantiates (i.e., don't |
26f56c1c UD |
10428 | # use $as_me), people would be surprised to read: |
10429 | # /* config.h. Generated by config.status. */ | |
322e23db | 10430 | configure_input='Generated from '` |
c6cb8783 | 10431 | printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
322e23db | 10432 | `' by configure.' |
26f56c1c UD |
10433 | if test x"$ac_file" != x-; then |
10434 | configure_input="$ac_file. $configure_input" | |
c6cb8783 SP |
10435 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
10436 | printf "%s\n" "$as_me: creating $ac_file" >&6;} | |
26f56c1c | 10437 | fi |
322e23db UD |
10438 | # Neutralize special characters interpreted by sed in replacement strings. |
10439 | case $configure_input in #( | |
10440 | *\&* | *\|* | *\\* ) | |
c6cb8783 | 10441 | ac_sed_conf_input=`printf "%s\n" "$configure_input" | |
322e23db UD |
10442 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
10443 | *) ac_sed_conf_input=$configure_input;; | |
10444 | esac | |
26f56c1c UD |
10445 | |
10446 | case $ac_tag in | |
f318beb8 | 10447 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
4a531bb0 | 10448 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
26f56c1c UD |
10449 | esac |
10450 | ;; | |
10451 | esac | |
10452 | ||
10453 | ac_dir=`$as_dirname -- "$ac_file" || | |
3a12e572 | 10454 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9382fcee RM |
10455 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
10456 | X"$ac_file" : 'X\(//\)$' \| \ | |
26f56c1c | 10457 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
c6cb8783 | 10458 | printf "%s\n" X"$ac_file" | |
26f56c1c UD |
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'` | |
b08c89d9 | 10476 | as_dir="$ac_dir"; as_fn_mkdir_p |
3a12e572 UD |
10477 | ac_builddir=. |
10478 | ||
26f56c1c UD |
10479 | case "$ac_dir" in |
10480 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
10481 | *) | |
c6cb8783 | 10482 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
26f56c1c | 10483 | # A ".." for each directory in $ac_dir_suffix. |
c6cb8783 | 10484 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
26f56c1c UD |
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 | |
3a12e572 UD |
10494 | |
10495 | case $srcdir in | |
26f56c1c | 10496 | .) # We are building in place. |
3a12e572 | 10497 | ac_srcdir=. |
26f56c1c UD |
10498 | ac_top_srcdir=$ac_top_builddir_sub |
10499 | ac_abs_top_srcdir=$ac_pwd ;; | |
10500 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
3a12e572 | 10501 | ac_srcdir=$srcdir$ac_dir_suffix; |
26f56c1c UD |
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 ;; | |
3a12e572 | 10508 | esac |
26f56c1c | 10509 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
9382fcee | 10510 | |
cd6ede75 | 10511 | |
26f56c1c UD |
10512 | case $ac_mode in |
10513 | :F) | |
10514 | # | |
10515 | # CONFIG_FILE | |
10516 | # | |
3a12e572 UD |
10517 | |
10518 | case $INSTALL in | |
10519 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
26f56c1c | 10520 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
cd6ede75 | 10521 | esac |
26f56c1c | 10522 | _ACEOF |
cd6ede75 | 10523 | |
322e23db | 10524 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
26f56c1c UD |
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= | |
322e23db UD |
10528 | ac_sed_dataroot=' |
10529 | /datarootdir/ { | |
26f56c1c UD |
10530 | p |
10531 | q | |
10532 | } | |
10533 | /@datadir@/p | |
10534 | /@docdir@/p | |
10535 | /@infodir@/p | |
10536 | /@localedir@/p | |
b08c89d9 | 10537 | /@mandir@/p' |
322e23db | 10538 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
26f56c1c UD |
10539 | *datarootdir*) ac_datarootdir_seen=yes;; |
10540 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
c6cb8783 SP |
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;} | |
26f56c1c | 10543 | _ACEOF |
322e23db | 10544 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
26f56c1c UD |
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 | |
b08c89d9 | 10551 | s&\\\${datarootdir}&$datarootdir&g' ;; |
26f56c1c | 10552 | esac |
3a12e572 | 10553 | _ACEOF |
26f56c1c | 10554 | |
98ffc1bf | 10555 | # Neutralize VPATH when '$srcdir' = '.'. |
26f56c1c UD |
10556 | # Shell code in configure.ac might set extrasub. |
10557 | # FIXME: do we really want to maintain this feature? | |
322e23db UD |
10558 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
10559 | ac_sed_extra="$ac_vpsub | |
3a12e572 UD |
10560 | $extrasub |
10561 | _ACEOF | |
322e23db | 10562 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
3a12e572 UD |
10563 | :t |
10564 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
322e23db | 10565 | s|@configure_input@|$ac_sed_conf_input|;t t |
26f56c1c | 10566 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
322e23db | 10567 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
26f56c1c UD |
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 | |
322e23db | 10577 | " |
f318beb8 UD |
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 | |
26f56c1c UD |
10580 | |
10581 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
f318beb8 UD |
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"; } && | |
98ffc1bf | 10585 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' |
4a531bb0 | 10586 | which seems to be undefined. Please make sure it is defined" >&5 |
98ffc1bf | 10587 | printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' |
4a531bb0 | 10588 | which seems to be undefined. Please make sure it is defined" >&2;} |
26f56c1c | 10589 | |
f318beb8 | 10590 | rm -f "$ac_tmp/stdin" |
3a12e572 | 10591 | case $ac_file in |
f318beb8 UD |
10592 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
10593 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
322e23db | 10594 | esac \ |
4a531bb0 | 10595 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
26f56c1c UD |
10596 | ;; |
10597 | :H) | |
10598 | # | |
10599 | # CONFIG_HEADER | |
10600 | # | |
3a12e572 | 10601 | if test x"$ac_file" != x-; then |
322e23db | 10602 | { |
c6cb8783 | 10603 | printf "%s\n" "/* $configure_input */" >&1 \ |
f318beb8 UD |
10604 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
10605 | } >"$ac_tmp/config.h" \ | |
4a531bb0 | 10606 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
f318beb8 | 10607 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
c6cb8783 SP |
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;} | |
3a12e572 | 10610 | else |
322e23db | 10611 | rm -f "$ac_file" |
f318beb8 | 10612 | mv "$ac_tmp/config.h" "$ac_file" \ |
4a531bb0 | 10613 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
f4b07664 RM |
10614 | fi |
10615 | else | |
c6cb8783 | 10616 | printf "%s\n" "/* $configure_input */" >&1 \ |
f318beb8 | 10617 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
4a531bb0 | 10618 | || as_fn_error $? "could not create -" "$LINENO" 5 |
f4b07664 | 10619 | fi |
26f56c1c | 10620 | ;; |
9382fcee | 10621 | |
c6cb8783 SP |
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;} | |
26f56c1c UD |
10624 | ;; |
10625 | esac | |
3a12e572 UD |
10626 | |
10627 | ||
26f56c1c UD |
10628 | case $ac_file$ac_mode in |
10629 | "default":C) | |
c0fb8a56 UD |
10630 | case $CONFIG_FILES in *config.make*) |
10631 | echo "$config_vars" >> config.make;; | |
10632 | esac | |
3a12e572 | 10633 | test -d bits || mkdir bits ;; |
26f56c1c | 10634 | |
3a12e572 | 10635 | esac |
26f56c1c | 10636 | done # for ac_tag |
3a12e572 | 10637 | |
3a12e572 | 10638 | |
b08c89d9 | 10639 | as_fn_exit 0 |
3a12e572 | 10640 | _ACEOF |
3a12e572 UD |
10641 | ac_clean_files=$ac_clean_files_save |
10642 | ||
322e23db | 10643 | test $ac_write_fail = 0 || |
4a531bb0 | 10644 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
322e23db | 10645 | |
3a12e572 UD |
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=: | |
2abf9ff1 RM |
10657 | ac_config_status_args= |
10658 | test "$silent" = yes && | |
10659 | ac_config_status_args="$ac_config_status_args --quiet" | |
3a12e572 | 10660 | exec 5>/dev/null |
2abf9ff1 | 10661 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
3a12e572 UD |
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. | |
4a531bb0 | 10665 | $ac_cs_success || as_fn_exit 1 |
3a12e572 | 10666 | fi |
cd6ede75 | 10667 | |
3a12e572 UD |
10668 | # |
10669 | # CONFIG_SUBDIRS section. | |
10670 | # | |
cd6ede75 UD |
10671 | if test "$no_recursion" != yes; then |
10672 | ||
322e23db UD |
10673 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments |
10674 | # so they do not pile up. | |
cd6ede75 UD |
10675 | ac_sub_configure_args= |
10676 | ac_prev= | |
26f56c1c UD |
10677 | eval "set x $ac_configure_args" |
10678 | shift | |
10679 | for ac_arg | |
10680 | do | |
cd6ede75 UD |
10681 | if test -n "$ac_prev"; then |
10682 | ac_prev= | |
10683 | continue | |
10684 | fi | |
3a12e572 | 10685 | case $ac_arg in |
cd6ede75 UD |
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=* \ | |
3a12e572 UD |
10690 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
10691 | | --c=*) | |
10692 | ;; | |
10693 | --config-cache | -C) | |
cd6ede75 UD |
10694 | ;; |
10695 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
10696 | ac_prev=srcdir ;; | |
10697 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
10698 | ;; | |
3a12e572 UD |
10699 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
10700 | ac_prev=prefix ;; | |
10701 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
10702 | ;; | |
322e23db UD |
10703 | --disable-option-checking) |
10704 | ;; | |
26f56c1c UD |
10705 | *) |
10706 | case $ac_arg in | |
c6cb8783 | 10707 | *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
26f56c1c | 10708 | esac |
b08c89d9 | 10709 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; |
cd6ede75 UD |
10710 | esac |
10711 | done | |
10712 | ||
3a12e572 UD |
10713 | # Always prepend --prefix to ensure using the same prefix |
10714 | # in subdir configurations. | |
26f56c1c UD |
10715 | ac_arg="--prefix=$prefix" |
10716 | case $ac_arg in | |
c6cb8783 | 10717 | *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
26f56c1c UD |
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 | |
3a12e572 | 10725 | |
322e23db UD |
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 | ||
3a12e572 UD |
10730 | ac_popdir=`pwd` |
10731 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
cd6ede75 UD |
10732 | |
10733 | # Do not complain, so a configure script can configure whichever | |
10734 | # parts of a large source tree are present. | |
26f56c1c UD |
10735 | test -d "$srcdir/$ac_dir" || continue |
10736 | ||
10737 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
c6cb8783 SP |
10738 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 |
10739 | printf "%s\n" "$ac_msg" >&6 | |
b08c89d9 | 10740 | as_dir="$ac_dir"; as_fn_mkdir_p |
3a12e572 | 10741 | ac_builddir=. |
cd6ede75 | 10742 | |
26f56c1c UD |
10743 | case "$ac_dir" in |
10744 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
10745 | *) | |
c6cb8783 | 10746 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
26f56c1c | 10747 | # A ".." for each directory in $ac_dir_suffix. |
c6cb8783 | 10748 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
26f56c1c UD |
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 | |
cd6ede75 | 10758 | |
3a12e572 | 10759 | case $srcdir in |
26f56c1c | 10760 | .) # We are building in place. |
3a12e572 | 10761 | ac_srcdir=. |
26f56c1c UD |
10762 | ac_top_srcdir=$ac_top_builddir_sub |
10763 | ac_abs_top_srcdir=$ac_pwd ;; | |
10764 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
3a12e572 | 10765 | ac_srcdir=$srcdir$ac_dir_suffix; |
26f56c1c UD |
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 ;; | |
9382fcee | 10772 | esac |
26f56c1c | 10773 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
3a12e572 UD |
10774 | |
10775 | ||
26f56c1c | 10776 | cd "$ac_dir" |
cd6ede75 | 10777 | |
c6cb8783 SP |
10778 | # Check for configure.gnu first; this name is used for a wrapper for |
10779 | # Metaconfig's "Configure" on case-insensitive file systems. | |
26f56c1c UD |
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 | |
cd6ede75 | 10784 | else |
c6cb8783 SP |
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;} | |
cd6ede75 UD |
10787 | ac_sub_configure= |
10788 | fi | |
10789 | ||
10790 | # The recursion is here. | |
10791 | if test -n "$ac_sub_configure"; then | |
cd6ede75 | 10792 | # Make the cache file name correct relative to the subdirectory. |
3a12e572 UD |
10793 | case $cache_file in |
10794 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
26f56c1c UD |
10795 | *) # Relative name. |
10796 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
cd6ede75 | 10797 | esac |
cd6ede75 | 10798 | |
c6cb8783 SP |
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;} | |
cd6ede75 | 10801 | # The eval makes quoting arguments work. |
26f56c1c UD |
10802 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
10803 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
4a531bb0 | 10804 | as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 |
cd6ede75 UD |
10805 | fi |
10806 | ||
26f56c1c | 10807 | cd "$ac_popdir" |
cd6ede75 UD |
10808 | done |
10809 | fi | |
322e23db | 10810 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
c6cb8783 SP |
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;} | |
322e23db | 10813 | fi |
cd6ede75 | 10814 | |
c6cb8783 | 10815 |