]>
Commit | Line | Data |
---|---|---|
cd6ede75 | 1 | #! /bin/sh |
3a12e572 | 2 | # Guess values for system-dependent variables and create Makefiles. |
c6cb8783 | 3 | # Generated by GNU Autoconf 2.71 for GNU C Library (see version.h). |
f4b07664 | 4 | # |
a306c790 | 5 | # Report bugs to <https://sourceware.org/bugzilla/>. |
3a12e572 | 6 | # |
b08c89d9 | 7 | # |
c6cb8783 SP |
8 | # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, |
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 | as_nop=: |
21 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 | |
22 | then : | |
3a12e572 UD |
23 | emulate sh |
24 | NULLCMD=: | |
322e23db | 25 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
f4b07664 RM |
26 | # is contrary to our usage. Disable this feature. |
27 | alias -g '${1+"$@"}'='"$@"' | |
26f56c1c | 28 | setopt NO_GLOB_SUBST |
c6cb8783 | 29 | else $as_nop |
b08c89d9 UD |
30 | case `(set -o) 2>/dev/null` in #( |
31 | *posix*) : | |
32 | set -o posix ;; #( | |
33 | *) : | |
34 | ;; | |
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 | |
106 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
107 | # in which case we are not to be found in the path. | |
108 | if test "x$as_myself" = x; then | |
109 | as_myself=$0 | |
110 | fi | |
111 | if test ! -f "$as_myself"; then | |
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 | |
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 |
c6cb8783 SP |
143 | as_bourne_compatible="as_nop=: |
144 | if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 | |
145 | then : | |
b08c89d9 UD |
146 | emulate sh |
147 | NULLCMD=: | |
148 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
149 | # is contrary to our usage. Disable this feature. | |
150 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
151 | setopt NO_GLOB_SUBST | |
c6cb8783 | 152 | else \$as_nop |
b08c89d9 UD |
153 | case \`(set -o) 2>/dev/null\` in #( |
154 | *posix*) : | |
155 | set -o posix ;; #( | |
156 | *) : | |
157 | ;; | |
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 | |
c6cb8783 | 175 | else \$as_nop |
b08c89d9 UD |
176 | exitcode=1; echo positional parameters were not saved. |
177 | fi | |
f4a58f0d | 178 | test x\$exitcode = x0 || exit 1 |
c6cb8783 SP |
179 | blah=\$(echo \$(echo blah)) |
180 | test x\"\$blah\" = xblah || exit 1 | |
f4a58f0d | 181 | test -x / || exit 1" |
b08c89d9 UD |
182 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
183 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
184 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
3d0dbdc4 | 185 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" |
c6cb8783 SP |
186 | if (eval "$as_required") 2>/dev/null |
187 | then : | |
b08c89d9 | 188 | as_have_required=yes |
c6cb8783 | 189 | else $as_nop |
b08c89d9 UD |
190 | as_have_required=no |
191 | fi | |
c6cb8783 SP |
192 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null |
193 | then : | |
b08c89d9 | 194 | |
c6cb8783 | 195 | else $as_nop |
b08c89d9 UD |
196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
197 | as_found=false | |
198 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
199 | do | |
200 | IFS=$as_save_IFS | |
c6cb8783 SP |
201 | case $as_dir in #((( |
202 | '') as_dir=./ ;; | |
203 | */) ;; | |
204 | *) as_dir=$as_dir/ ;; | |
205 | esac | |
b08c89d9 UD |
206 | as_found=: |
207 | case $as_dir in #( | |
208 | /*) | |
209 | for as_base in sh bash ksh sh5; do | |
210 | # Try only shells that exist, to save several forks. | |
c6cb8783 | 211 | as_shell=$as_dir$as_base |
b08c89d9 | 212 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
c6cb8783 SP |
213 | as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
214 | then : | |
b08c89d9 | 215 | CONFIG_SHELL=$as_shell as_have_required=yes |
c6cb8783 SP |
216 | if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null |
217 | then : | |
b08c89d9 UD |
218 | break 2 |
219 | fi | |
220 | fi | |
221 | done;; | |
222 | esac | |
223 | as_found=false | |
224 | done | |
b08c89d9 | 225 | IFS=$as_save_IFS |
c6cb8783 SP |
226 | if $as_found |
227 | then : | |
b08c89d9 | 228 | |
c6cb8783 SP |
229 | else $as_nop |
230 | if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
231 | as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null | |
232 | then : | |
233 | CONFIG_SHELL=$SHELL as_have_required=yes | |
234 | fi | |
235 | fi | |
b08c89d9 | 236 | |
c6cb8783 SP |
237 | |
238 | if test "x$CONFIG_SHELL" != x | |
239 | then : | |
f4a58f0d L |
240 | export CONFIG_SHELL |
241 | # We cannot yet assume a decent shell, so we have to provide a | |
242 | # neutralization value for shells without unset; and this also | |
243 | # works around shells that cannot unset nonexistent variables. | |
244 | # Preserve -v and -x to the replacement shell. | |
245 | BASH_ENV=/dev/null | |
246 | ENV=/dev/null | |
247 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
248 | case $- in # (((( | |
249 | *v*x* | *x*v* ) as_opts=-vx ;; | |
250 | *v* ) as_opts=-v ;; | |
251 | *x* ) as_opts=-x ;; | |
252 | * ) as_opts= ;; | |
253 | esac | |
254 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
255 | # Admittedly, this is quite paranoid, since all the known shells bail | |
256 | # out after a failed `exec'. | |
c6cb8783 | 257 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
f4a58f0d | 258 | exit 255 |
b08c89d9 UD |
259 | fi |
260 | ||
c6cb8783 SP |
261 | if test x$as_have_required = xno |
262 | then : | |
263 | printf "%s\n" "$0: This script requires a shell more modern than all" | |
264 | printf "%s\n" "$0: the shells that I found on your system." | |
265 | if test ${ZSH_VERSION+y} ; then | |
266 | printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
267 | printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." | |
b08c89d9 | 268 | else |
c6cb8783 | 269 | printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and |
a306c790 | 270 | $0: https://sourceware.org/bugzilla/ about your system, |
f318beb8 | 271 | $0: including any error possibly output before this |
b08c89d9 UD |
272 | $0: message. Then install a modern shell, or manually run |
273 | $0: the script under such a shell if you do have one." | |
274 | fi | |
275 | exit 1 | |
276 | fi | |
277 | fi | |
278 | fi | |
279 | SHELL=${CONFIG_SHELL-/bin/sh} | |
280 | export SHELL | |
281 | # Unset more variables known to interfere with behavior of common tools. | |
282 | CLICOLOR_FORCE= GREP_OPTIONS= | |
283 | unset CLICOLOR_FORCE GREP_OPTIONS | |
284 | ||
285 | ## --------------------- ## | |
286 | ## M4sh Shell Functions. ## | |
287 | ## --------------------- ## | |
288 | # as_fn_unset VAR | |
289 | # --------------- | |
290 | # Portably unset VAR. | |
291 | as_fn_unset () | |
292 | { | |
293 | { eval $1=; unset $1;} | |
294 | } | |
295 | as_unset=as_fn_unset | |
296 | ||
c6cb8783 | 297 | |
b08c89d9 UD |
298 | # as_fn_set_status STATUS |
299 | # ----------------------- | |
300 | # Set $? to STATUS, without forking. | |
301 | as_fn_set_status () | |
302 | { | |
303 | return $1 | |
304 | } # as_fn_set_status | |
305 | ||
306 | # as_fn_exit STATUS | |
307 | # ----------------- | |
308 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
309 | as_fn_exit () | |
310 | { | |
311 | set +e | |
312 | as_fn_set_status $1 | |
313 | exit $1 | |
314 | } # as_fn_exit | |
c6cb8783 SP |
315 | # as_fn_nop |
316 | # --------- | |
317 | # Do nothing but, unlike ":", preserve the value of $?. | |
318 | as_fn_nop () | |
319 | { | |
320 | return $? | |
321 | } | |
322 | as_nop=as_fn_nop | |
b08c89d9 UD |
323 | |
324 | # as_fn_mkdir_p | |
325 | # ------------- | |
326 | # Create "$as_dir" as a directory, including parents if necessary. | |
327 | as_fn_mkdir_p () | |
328 | { | |
329 | ||
330 | case $as_dir in #( | |
331 | -*) as_dir=./$as_dir;; | |
332 | esac | |
333 | test -d "$as_dir" || eval $as_mkdir_p || { | |
334 | as_dirs= | |
335 | while :; do | |
336 | case $as_dir in #( | |
c6cb8783 | 337 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
b08c89d9 UD |
338 | *) as_qdir=$as_dir;; |
339 | esac | |
340 | as_dirs="'$as_qdir' $as_dirs" | |
341 | as_dir=`$as_dirname -- "$as_dir" || | |
342 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
343 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
344 | X"$as_dir" : 'X\(//\)$' \| \ | |
345 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
c6cb8783 | 346 | printf "%s\n" X"$as_dir" | |
b08c89d9 UD |
347 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | /^X\(\/\/\)[^/].*/{ | |
352 | s//\1/ | |
353 | q | |
354 | } | |
355 | /^X\(\/\/\)$/{ | |
356 | s//\1/ | |
357 | q | |
358 | } | |
359 | /^X\(\/\).*/{ | |
360 | s//\1/ | |
361 | q | |
362 | } | |
363 | s/.*/./; q'` | |
364 | test -d "$as_dir" && break | |
365 | done | |
366 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
4a531bb0 | 367 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
b08c89d9 UD |
368 | |
369 | ||
370 | } # as_fn_mkdir_p | |
f4a58f0d L |
371 | |
372 | # as_fn_executable_p FILE | |
373 | # ----------------------- | |
374 | # Test if FILE is an executable regular file. | |
375 | as_fn_executable_p () | |
376 | { | |
377 | test -f "$1" && test -x "$1" | |
378 | } # as_fn_executable_p | |
b08c89d9 UD |
379 | # as_fn_append VAR VALUE |
380 | # ---------------------- | |
381 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
382 | # advantage of any shell optimizations that allow amortized linear growth over | |
383 | # repeated appends, instead of the typical quadratic growth present in naive | |
384 | # implementations. | |
c6cb8783 SP |
385 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
386 | then : | |
b08c89d9 UD |
387 | eval 'as_fn_append () |
388 | { | |
389 | eval $1+=\$2 | |
390 | }' | |
c6cb8783 | 391 | else $as_nop |
b08c89d9 UD |
392 | as_fn_append () |
393 | { | |
394 | eval $1=\$$1\$2 | |
395 | } | |
396 | fi # as_fn_append | |
397 | ||
398 | # as_fn_arith ARG... | |
399 | # ------------------ | |
400 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
401 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
402 | # must be portable across $(()) and expr. | |
c6cb8783 SP |
403 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
404 | then : | |
b08c89d9 UD |
405 | eval 'as_fn_arith () |
406 | { | |
407 | as_val=$(( $* )) | |
408 | }' | |
c6cb8783 | 409 | else $as_nop |
b08c89d9 UD |
410 | as_fn_arith () |
411 | { | |
412 | as_val=`expr "$@" || test $? -eq 1` | |
413 | } | |
414 | fi # as_fn_arith | |
415 | ||
c6cb8783 SP |
416 | # as_fn_nop |
417 | # --------- | |
418 | # Do nothing but, unlike ":", preserve the value of $?. | |
419 | as_fn_nop () | |
420 | { | |
421 | return $? | |
422 | } | |
423 | as_nop=as_fn_nop | |
b08c89d9 | 424 | |
4a531bb0 L |
425 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
426 | # ---------------------------------------- | |
b08c89d9 UD |
427 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
428 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
4a531bb0 | 429 | # script with STATUS, using 1 if that was 0. |
b08c89d9 UD |
430 | as_fn_error () |
431 | { | |
4a531bb0 L |
432 | as_status=$1; test $as_status -eq 0 && as_status=1 |
433 | if test "$4"; then | |
434 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
c6cb8783 | 435 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
b08c89d9 | 436 | fi |
c6cb8783 | 437 | printf "%s\n" "$as_me: error: $2" >&2 |
b08c89d9 UD |
438 | as_fn_exit $as_status |
439 | } # as_fn_error | |
440 | ||
26f56c1c UD |
441 | if expr a : '\(a\)' >/dev/null 2>&1 && |
442 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
f4b07664 RM |
443 | as_expr=expr |
444 | else | |
445 | as_expr=false | |
446 | fi | |
447 | ||
26f56c1c | 448 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
f4b07664 RM |
449 | as_basename=basename |
450 | else | |
451 | as_basename=false | |
452 | fi | |
3a12e572 | 453 | |
b08c89d9 UD |
454 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
455 | as_dirname=dirname | |
456 | else | |
457 | as_dirname=false | |
458 | fi | |
3a12e572 | 459 | |
26f56c1c | 460 | as_me=`$as_basename -- "$0" || |
3a12e572 UD |
461 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
462 | X"$0" : 'X\(//\)$' \| \ | |
26f56c1c | 463 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
c6cb8783 | 464 | printf "%s\n" X/"$0" | |
26f56c1c UD |
465 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
466 | s//\1/ | |
467 | q | |
468 | } | |
469 | /^X\/\(\/\/\)$/{ | |
470 | s//\1/ | |
471 | q | |
472 | } | |
473 | /^X\/\(\/\).*/{ | |
474 | s//\1/ | |
475 | q | |
476 | } | |
477 | s/.*/./; q'` | |
3a12e572 | 478 | |
b08c89d9 UD |
479 | # Avoid depending upon Character Ranges. |
480 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
481 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
482 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
483 | as_cr_digits='0123456789' | |
484 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
f4b07664 | 485 | |
3a12e572 | 486 | |
b08c89d9 UD |
487 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
488 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
489 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
490 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
491 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
492 | sed -n ' | |
493 | p | |
494 | /[$]LINENO/= | |
495 | ' <$as_myself | | |
496 | sed ' | |
497 | s/[$]LINENO.*/&-/ | |
498 | t lineno | |
499 | b | |
500 | :lineno | |
501 | N | |
502 | :loop | |
503 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
504 | t loop | |
505 | s/-\n.*// | |
506 | ' >$as_me.lineno && | |
507 | chmod +x "$as_me.lineno" || | |
c6cb8783 | 508 | { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
cd6ede75 | 509 | |
f4a58f0d L |
510 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
511 | # already done that, so ensure we don't try to do so again and fall | |
512 | # in an infinite loop. This has already happened in practice. | |
513 | _as_can_reexec=no; export _as_can_reexec | |
b08c89d9 UD |
514 | # Don't try to exec as it changes $[0], causing all sort of problems |
515 | # (the dirname of $[0] is not the place where we might find the | |
516 | # original and so on. Autoconf is especially sensitive to this). | |
517 | . "./$as_me.lineno" | |
518 | # Exit status is that of the last command. | |
519 | exit | |
26f56c1c | 520 | } |
cd6ede75 | 521 | |
c6cb8783 SP |
522 | |
523 | # Determine whether it's possible to make 'echo' print without a newline. | |
524 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed | |
525 | # for compatibility with existing Makefiles. | |
b08c89d9 UD |
526 | ECHO_C= ECHO_N= ECHO_T= |
527 | case `echo -n x` in #((((( | |
528 | -n*) | |
529 | case `echo 'xy\c'` in | |
530 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
531 | xy) ECHO_C='\c';; | |
532 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
533 | ECHO_T=' ';; | |
534 | esac;; | |
535 | *) | |
536 | ECHO_N='-n';; | |
537 | esac | |
650425ce | 538 | |
c6cb8783 SP |
539 | # For backward compatibility with old third-party macros, we provide |
540 | # the shell variables $as_echo and $as_echo_n. New code should use | |
541 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. | |
542 | as_echo='printf %s\n' | |
543 | as_echo_n='printf %s' | |
544 | ||
545 | ||
b08c89d9 UD |
546 | rm -f conf$$ conf$$.exe conf$$.file |
547 | if test -d conf$$.dir; then | |
548 | rm -f conf$$.dir/conf$$.file | |
549 | else | |
550 | rm -f conf$$.dir | |
551 | mkdir conf$$.dir 2>/dev/null | |
26f56c1c | 552 | fi |
b08c89d9 UD |
553 | if (echo >conf$$.file) 2>/dev/null; then |
554 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
555 | as_ln_s='ln -s' | |
556 | # ... but there are two gotchas: | |
557 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
558 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
f4a58f0d | 559 | # In both cases, we have to default to `cp -pR'. |
b08c89d9 | 560 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
f4a58f0d | 561 | as_ln_s='cp -pR' |
b08c89d9 UD |
562 | elif ln conf$$.file conf$$ 2>/dev/null; then |
563 | as_ln_s=ln | |
564 | else | |
f4a58f0d | 565 | as_ln_s='cp -pR' |
b08c89d9 | 566 | fi |
26f56c1c | 567 | else |
f4a58f0d | 568 | as_ln_s='cp -pR' |
26f56c1c | 569 | fi |
b08c89d9 UD |
570 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
571 | rmdir conf$$.dir 2>/dev/null | |
26f56c1c | 572 | |
b08c89d9 UD |
573 | if mkdir -p . 2>/dev/null; then |
574 | as_mkdir_p='mkdir -p "$as_dir"' | |
575 | else | |
576 | test -d ./-p && rmdir ./-p | |
577 | as_mkdir_p=false | |
26f56c1c UD |
578 | fi |
579 | ||
f4a58f0d L |
580 | as_test_x='test -x' |
581 | as_executable_p=as_fn_executable_p | |
26f56c1c | 582 | |
b08c89d9 UD |
583 | # Sed expression to map a string onto a valid CPP name. |
584 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
26f56c1c | 585 | |
b08c89d9 UD |
586 | # Sed expression to map a string onto a valid variable name. |
587 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
26f56c1c UD |
588 | |
589 | ||
b08c89d9 UD |
590 | test -n "$DJDIR" || exec 7<&0 </dev/null |
591 | exec 6>&1 | |
cd6ede75 | 592 | |
3a12e572 | 593 | # Name of the host. |
4a531bb0 | 594 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
3a12e572 UD |
595 | # so uname gets run too. |
596 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
597 | ||
3a12e572 UD |
598 | # |
599 | # Initializations. | |
600 | # | |
cd6ede75 | 601 | ac_default_prefix=/usr/local |
26f56c1c | 602 | ac_clean_files= |
f4b07664 | 603 | ac_config_libobj_dir=. |
26f56c1c | 604 | LIBOBJS= |
3a12e572 UD |
605 | cross_compiling=no |
606 | subdirs= | |
607 | MFLAGS= | |
608 | MAKEFLAGS= | |
3a12e572 | 609 | |
3a12e572 | 610 | # Identity of this package. |
f4b07664 | 611 | PACKAGE_NAME='GNU C Library' |
f318beb8 | 612 | PACKAGE_TARNAME='glibc' |
f4b07664 RM |
613 | PACKAGE_VERSION='(see version.h)' |
614 | PACKAGE_STRING='GNU C Library (see version.h)' | |
a306c790 | 615 | PACKAGE_BUGREPORT='https://sourceware.org/bugzilla/' |
02d35f06 | 616 | PACKAGE_URL='https://www.gnu.org/software/glibc/' |
3a12e572 UD |
617 | |
618 | ac_unique_file="include/features.h" | |
322e23db | 619 | enable_option_checking=no |
322e23db | 620 | ac_subst_vars='LTLIBOBJS |
a152f366 | 621 | LIBOBJS |
ad201afe | 622 | pthread_in_libc |
322e23db UD |
623 | RELEASE |
624 | VERSION | |
625 | mach_interface_list | |
626 | DEFINES | |
322e23db | 627 | static_nss |
322e23db | 628 | profile |
abcb584d | 629 | libc_cv_multidir |
322e23db UD |
630 | shared |
631 | static | |
322e23db UD |
632 | ldd_rewrite_script |
633 | use_ldconfig | |
322e23db | 634 | libc_cv_rootsbindir |
4248b1b1 | 635 | libc_cv_localstatedir |
322e23db | 636 | libc_cv_sysconfdir |
90fe682d | 637 | libc_cv_complocaledir |
aaa8cb4b | 638 | libc_cv_rtlddir |
322e23db | 639 | libc_cv_slibdir |
3cc3ef96 | 640 | use_nscd |
322e23db | 641 | libc_cv_gcc_unwind_find_fde |
7ffa9423 | 642 | libc_extra_cppflags |
30b99d79 | 643 | libc_extra_cflags |
99e1dc0a | 644 | libc_cv_cxx_thread_local |
64d9580c FB |
645 | fortify_source |
646 | no_fortify_source | |
647 | libc_cv_fortify_source | |
648 | enable_fortify_source | |
322e23db UD |
649 | have_selinux |
650 | have_libcap | |
651 | have_libaudit | |
652 | LIBGD | |
85c2e611 | 653 | libc_cv_cc_loop_to_function |
322e23db | 654 | libc_cv_cc_submachine |
bef0b507 | 655 | libc_cv_cc_nofma |
61655555 | 656 | libc_cv_mtls_dialect_gnu2 |
89569c8b | 657 | libc_cv_has_glob_dat |
322e23db UD |
658 | libc_cv_fpie |
659 | libc_cv_z_execstack | |
322e23db | 660 | ASFLAGS_config |
322e23db | 661 | libc_cv_cc_with_libunwind |
19f1a11e | 662 | libc_cv_insert |
83569fb8 | 663 | libc_cv_protected_data |
322e23db UD |
664 | INSTALL_INFO |
665 | PERL | |
322e23db | 666 | BASH_SHELL |
a65ea28d | 667 | CXX_BITS_STD_ABS_H |
fc3e1337 FW |
668 | CXX_CMATH_HEADER |
669 | CXX_CSTDLIB_HEADER | |
322e23db UD |
670 | CXX_SYSINCLUDES |
671 | SYSINCLUDES | |
43ecc41d AZ |
672 | sysnames |
673 | submachine | |
674 | multi_arch | |
675 | libc_cv_textrel_ifunc | |
676 | no_stack_protector | |
677 | stack_protector | |
678 | libc_cv_ssp | |
679 | libc_cv_with_fp | |
8ce8299f SP |
680 | PYTHON |
681 | PYTHON_PROG | |
322e23db | 682 | AUTOCONF |
1faaf703 | 683 | BISON |
0786794f | 684 | AWK |
322e23db UD |
685 | SED |
686 | MAKEINFO | |
687 | MSGFMT | |
688 | MAKE | |
322e23db | 689 | LD |
02abdab0 AZ |
690 | NM |
691 | OBJDUMP | |
692 | READELF | |
6014c65d | 693 | GPROF |
1b74661a | 694 | OBJCOPY |
322e23db UD |
695 | AR |
696 | LN_S | |
697 | INSTALL_DATA | |
698 | INSTALL_SCRIPT | |
699 | INSTALL_PROGRAM | |
322e23db | 700 | base_machine |
e4608715 | 701 | build_pt_chown |
c53d909c | 702 | build_nscd |
33784089 | 703 | memory_tagging |
a4ecc9eb | 704 | enable_werror |
322e23db UD |
705 | force_install |
706 | bindnow | |
740b3dbe | 707 | hardcoded_path_in_tests |
1cba4036 | 708 | enable_timezone_tools |
9ba202c7 | 709 | rtld_early_cflags |
6413fcde | 710 | extra_nonshared_cflags |
c91c505f | 711 | sysheaders |
322e23db UD |
712 | ac_ct_CXX |
713 | CXXFLAGS | |
714 | CXX | |
715 | CPP | |
716 | cross_compiling | |
717 | BUILD_CC | |
718 | OBJEXT | |
719 | ac_ct_CC | |
720 | CPPFLAGS | |
721 | LDFLAGS | |
722 | CFLAGS | |
723 | CC | |
c16a054d AS |
724 | host_os |
725 | host_vendor | |
726 | host_cpu | |
727 | host | |
728 | build_os | |
729 | build_vendor | |
730 | build_cpu | |
731 | build | |
7967983f | 732 | subdirs |
8b748aed JM |
733 | REPORT_BUGS_TEXI |
734 | REPORT_BUGS_TO | |
735 | PKGVERSION_TEXI | |
736 | PKGVERSION | |
322e23db UD |
737 | target_alias |
738 | host_alias | |
739 | build_alias | |
740 | LIBS | |
741 | ECHO_T | |
742 | ECHO_N | |
743 | ECHO_C | |
744 | DEFS | |
745 | mandir | |
746 | localedir | |
747 | libdir | |
748 | psdir | |
749 | pdfdir | |
750 | dvidir | |
751 | htmldir | |
752 | infodir | |
753 | docdir | |
754 | oldincludedir | |
755 | includedir | |
c6cb8783 | 756 | runstatedir |
322e23db UD |
757 | localstatedir |
758 | sharedstatedir | |
759 | sysconfdir | |
760 | datadir | |
761 | datarootdir | |
762 | libexecdir | |
763 | sbindir | |
764 | bindir | |
765 | program_transform_name | |
766 | prefix | |
767 | exec_prefix | |
b08c89d9 | 768 | PACKAGE_URL |
322e23db UD |
769 | PACKAGE_BUGREPORT |
770 | PACKAGE_STRING | |
771 | PACKAGE_VERSION | |
772 | PACKAGE_TARNAME | |
773 | PACKAGE_NAME | |
774 | PATH_SEPARATOR | |
775 | SHELL' | |
a152f366 | 776 | ac_subst_files='' |
322e23db UD |
777 | ac_user_opts=' |
778 | enable_option_checking | |
8b748aed JM |
779 | with_pkgversion |
780 | with_bugurl | |
322e23db UD |
781 | with_gd |
782 | with_gd_include | |
783 | with_gd_lib | |
322e23db | 784 | with_binutils |
322e23db | 785 | with_selinux |
322e23db | 786 | with_headers |
6413fcde | 787 | with_nonshared_cflags |
9ba202c7 | 788 | with_rtld_early_cflags |
bada2e31 | 789 | with_timeoutfactor |
322e23db | 790 | enable_sanity_checks |
322e23db UD |
791 | enable_shared |
792 | enable_profile | |
23645707 | 793 | enable_default_pie |
1cba4036 | 794 | enable_timezone_tools |
740b3dbe | 795 | enable_hardcoded_path_in_tests |
322e23db UD |
796 | enable_hidden_plt |
797 | enable_bind_now | |
03baef1c | 798 | enable_stack_protector |
322e23db UD |
799 | enable_static_nss |
800 | enable_force_install | |
8894bad3 | 801 | enable_maintainer_mode |
322e23db | 802 | enable_kernel |
a4ecc9eb | 803 | enable_werror |
322e23db | 804 | enable_multi_arch |
33784089 | 805 | enable_memory_tagging |
3a097cc7 | 806 | enable_systemtap |
c53d909c | 807 | enable_build_nscd |
3cc3ef96 | 808 | enable_nscd |
e4608715 | 809 | enable_pt_chown |
5695d46f | 810 | enable_mathvec |
f753fa7d | 811 | enable_cet |
ebae2f5a | 812 | enable_scv |
64d9580c | 813 | enable_fortify_source |
322e23db UD |
814 | with_cpu |
815 | ' | |
a152f366 UD |
816 | ac_precious_vars='build_alias |
817 | host_alias | |
818 | target_alias | |
819 | CC | |
820 | CFLAGS | |
821 | LDFLAGS | |
822 | LIBS | |
823 | CPPFLAGS | |
824 | CPP | |
825 | CXX | |
826 | CXXFLAGS | |
827 | CCC' | |
644d3857 | 828 | ac_subdirs_all='' |
a152f366 UD |
829 | |
830 | # Initialize some variables set by options. | |
831 | ac_init_help= | |
832 | ac_init_version=false | |
322e23db UD |
833 | ac_unrecognized_opts= |
834 | ac_unrecognized_sep= | |
a152f366 UD |
835 | # The variables have the same names as the options, with |
836 | # dashes changed to underlines. | |
837 | cache_file=/dev/null | |
838 | exec_prefix=NONE | |
839 | no_create= | |
840 | no_recursion= | |
841 | prefix=NONE | |
842 | program_prefix=NONE | |
843 | program_suffix=NONE | |
844 | program_transform_name=s,x,x, | |
845 | silent= | |
846 | site= | |
847 | srcdir= | |
848 | verbose= | |
849 | x_includes=NONE | |
850 | x_libraries=NONE | |
851 | ||
852 | # Installation directory options. | |
853 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
854 | # and all the variables that are supposed to be based on exec_prefix | |
855 | # by default will actually change. | |
856 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
857 | # (The list follows the same order as the GNU Coding Standards.) | |
858 | bindir='${exec_prefix}/bin' | |
859 | sbindir='${exec_prefix}/sbin' | |
860 | libexecdir='${exec_prefix}/libexec' | |
861 | datarootdir='${prefix}/share' | |
862 | datadir='${datarootdir}' | |
863 | sysconfdir='${prefix}/etc' | |
864 | sharedstatedir='${prefix}/com' | |
865 | localstatedir='${prefix}/var' | |
c6cb8783 | 866 | runstatedir='${localstatedir}/run' |
a152f366 UD |
867 | includedir='${prefix}/include' |
868 | oldincludedir='/usr/include' | |
869 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
870 | infodir='${datarootdir}/info' | |
871 | htmldir='${docdir}' | |
26f56c1c UD |
872 | dvidir='${docdir}' |
873 | pdfdir='${docdir}' | |
874 | psdir='${docdir}' | |
875 | libdir='${exec_prefix}/lib' | |
876 | localedir='${datarootdir}/locale' | |
877 | mandir='${datarootdir}/man' | |
cd6ede75 | 878 | |
cd6ede75 | 879 | ac_prev= |
26f56c1c | 880 | ac_dashdash= |
cd6ede75 UD |
881 | for ac_option |
882 | do | |
cd6ede75 UD |
883 | # If the previous option needs an argument, assign it. |
884 | if test -n "$ac_prev"; then | |
26f56c1c | 885 | eval $ac_prev=\$ac_option |
cd6ede75 UD |
886 | ac_prev= |
887 | continue | |
888 | fi | |
889 | ||
26f56c1c | 890 | case $ac_option in |
f318beb8 UD |
891 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
892 | *=) ac_optarg= ;; | |
893 | *) ac_optarg=yes ;; | |
26f56c1c | 894 | esac |
cd6ede75 | 895 | |
26f56c1c UD |
896 | case $ac_dashdash$ac_option in |
897 | --) | |
898 | ac_dashdash=yes ;; | |
cd6ede75 UD |
899 | |
900 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
901 | ac_prev=bindir ;; | |
902 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
3a12e572 | 903 | bindir=$ac_optarg ;; |
cd6ede75 UD |
904 | |
905 | -build | --build | --buil | --bui | --bu) | |
3a12e572 | 906 | ac_prev=build_alias ;; |
cd6ede75 | 907 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
3a12e572 | 908 | build_alias=$ac_optarg ;; |
cd6ede75 UD |
909 | |
910 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
911 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
912 | ac_prev=cache_file ;; | |
913 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
914 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
3a12e572 UD |
915 | cache_file=$ac_optarg ;; |
916 | ||
917 | --config-cache | -C) | |
918 | cache_file=config.cache ;; | |
cd6ede75 | 919 | |
26f56c1c | 920 | -datadir | --datadir | --datadi | --datad) |
cd6ede75 | 921 | ac_prev=datadir ;; |
26f56c1c | 922 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
3a12e572 | 923 | datadir=$ac_optarg ;; |
cd6ede75 | 924 | |
26f56c1c UD |
925 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
926 | | --dataroo | --dataro | --datar) | |
927 | ac_prev=datarootdir ;; | |
928 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
929 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
930 | datarootdir=$ac_optarg ;; | |
931 | ||
cd6ede75 | 932 | -disable-* | --disable-*) |
322e23db | 933 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
cd6ede75 | 934 | # Reject names that are not valid shell variable names. |
322e23db | 935 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
c6cb8783 | 936 | as_fn_error $? "invalid feature name: \`$ac_useropt'" |
322e23db | 937 | ac_useropt_orig=$ac_useropt |
c6cb8783 | 938 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
322e23db UD |
939 | case $ac_user_opts in |
940 | *" | |
941 | "enable_$ac_useropt" | |
942 | "*) ;; | |
943 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
944 | ac_unrecognized_sep=', ';; | |
945 | esac | |
946 | eval enable_$ac_useropt=no ;; | |
26f56c1c UD |
947 | |
948 | -docdir | --docdir | --docdi | --doc | --do) | |
949 | ac_prev=docdir ;; | |
950 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
951 | docdir=$ac_optarg ;; | |
952 | ||
953 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
954 | ac_prev=dvidir ;; | |
955 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
956 | dvidir=$ac_optarg ;; | |
cd6ede75 UD |
957 | |
958 | -enable-* | --enable-*) | |
322e23db | 959 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
cd6ede75 | 960 | # Reject names that are not valid shell variable names. |
322e23db | 961 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
c6cb8783 | 962 | as_fn_error $? "invalid feature name: \`$ac_useropt'" |
322e23db | 963 | ac_useropt_orig=$ac_useropt |
c6cb8783 | 964 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
322e23db UD |
965 | case $ac_user_opts in |
966 | *" | |
967 | "enable_$ac_useropt" | |
968 | "*) ;; | |
969 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
970 | ac_unrecognized_sep=', ';; | |
971 | esac | |
972 | eval enable_$ac_useropt=\$ac_optarg ;; | |
cd6ede75 UD |
973 | |
974 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
975 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
976 | | --exec | --exe | --ex) | |
977 | ac_prev=exec_prefix ;; | |
978 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
979 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
980 | | --exec=* | --exe=* | --ex=*) | |
3a12e572 | 981 | exec_prefix=$ac_optarg ;; |
cd6ede75 UD |
982 | |
983 | -gas | --gas | --ga | --g) | |
984 | # Obsolete; use --with-gas. | |
985 | with_gas=yes ;; | |
986 | ||
3a12e572 UD |
987 | -help | --help | --hel | --he | -h) |
988 | ac_init_help=long ;; | |
989 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
990 | ac_init_help=recursive ;; | |
991 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
992 | ac_init_help=short ;; | |
cd6ede75 UD |
993 | |
994 | -host | --host | --hos | --ho) | |
3a12e572 | 995 | ac_prev=host_alias ;; |
cd6ede75 | 996 | -host=* | --host=* | --hos=* | --ho=*) |
3a12e572 | 997 | host_alias=$ac_optarg ;; |
cd6ede75 | 998 | |
26f56c1c UD |
999 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1000 | ac_prev=htmldir ;; | |
1001 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1002 | | --ht=*) | |
1003 | htmldir=$ac_optarg ;; | |
1004 | ||
cd6ede75 UD |
1005 | -includedir | --includedir | --includedi | --included | --include \ |
1006 | | --includ | --inclu | --incl | --inc) | |
1007 | ac_prev=includedir ;; | |
1008 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1009 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
3a12e572 | 1010 | includedir=$ac_optarg ;; |
cd6ede75 UD |
1011 | |
1012 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1013 | ac_prev=infodir ;; | |
1014 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
3a12e572 | 1015 | infodir=$ac_optarg ;; |
cd6ede75 UD |
1016 | |
1017 | -libdir | --libdir | --libdi | --libd) | |
1018 | ac_prev=libdir ;; | |
1019 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
3a12e572 | 1020 | libdir=$ac_optarg ;; |
cd6ede75 UD |
1021 | |
1022 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1023 | | --libexe | --libex | --libe) | |
1024 | ac_prev=libexecdir ;; | |
1025 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1026 | | --libexe=* | --libex=* | --libe=*) | |
3a12e572 | 1027 | libexecdir=$ac_optarg ;; |
cd6ede75 | 1028 | |
26f56c1c UD |
1029 | -localedir | --localedir | --localedi | --localed | --locale) |
1030 | ac_prev=localedir ;; | |
1031 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1032 | localedir=$ac_optarg ;; | |
1033 | ||
cd6ede75 | 1034 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
26f56c1c | 1035 | | --localstate | --localstat | --localsta | --localst | --locals) |
cd6ede75 UD |
1036 | ac_prev=localstatedir ;; |
1037 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
26f56c1c | 1038 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
3a12e572 | 1039 | localstatedir=$ac_optarg ;; |
cd6ede75 UD |
1040 | |
1041 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1042 | ac_prev=mandir ;; | |
1043 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
3a12e572 | 1044 | mandir=$ac_optarg ;; |
cd6ede75 UD |
1045 | |
1046 | -nfp | --nfp | --nf) | |
1047 | # Obsolete; use --without-fp. | |
1048 | with_fp=no ;; | |
1049 | ||
1050 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
3a12e572 | 1051 | | --no-cr | --no-c | -n) |
cd6ede75 UD |
1052 | no_create=yes ;; |
1053 | ||
1054 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1055 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1056 | no_recursion=yes ;; | |
1057 | ||
1058 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1059 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1060 | | --oldin | --oldi | --old | --ol | --o) | |
1061 | ac_prev=oldincludedir ;; | |
1062 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1063 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1064 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
3a12e572 | 1065 | oldincludedir=$ac_optarg ;; |
cd6ede75 UD |
1066 | |
1067 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1068 | ac_prev=prefix ;; | |
1069 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
3a12e572 | 1070 | prefix=$ac_optarg ;; |
cd6ede75 UD |
1071 | |
1072 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1073 | | --program-pre | --program-pr | --program-p) | |
1074 | ac_prev=program_prefix ;; | |
1075 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1076 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
3a12e572 | 1077 | program_prefix=$ac_optarg ;; |
cd6ede75 UD |
1078 | |
1079 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1080 | | --program-suf | --program-su | --program-s) | |
1081 | ac_prev=program_suffix ;; | |
1082 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1083 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
3a12e572 | 1084 | program_suffix=$ac_optarg ;; |
cd6ede75 UD |
1085 | |
1086 | -program-transform-name | --program-transform-name \ | |
1087 | | --program-transform-nam | --program-transform-na \ | |
1088 | | --program-transform-n | --program-transform- \ | |
1089 | | --program-transform | --program-transfor \ | |
1090 | | --program-transfo | --program-transf \ | |
1091 | | --program-trans | --program-tran \ | |
1092 | | --progr-tra | --program-tr | --program-t) | |
1093 | ac_prev=program_transform_name ;; | |
1094 | -program-transform-name=* | --program-transform-name=* \ | |
1095 | | --program-transform-nam=* | --program-transform-na=* \ | |
1096 | | --program-transform-n=* | --program-transform-=* \ | |
1097 | | --program-transform=* | --program-transfor=* \ | |
1098 | | --program-transfo=* | --program-transf=* \ | |
1099 | | --program-trans=* | --program-tran=* \ | |
1100 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
3a12e572 | 1101 | program_transform_name=$ac_optarg ;; |
cd6ede75 | 1102 | |
26f56c1c UD |
1103 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1104 | ac_prev=pdfdir ;; | |
1105 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1106 | pdfdir=$ac_optarg ;; | |
1107 | ||
1108 | -psdir | --psdir | --psdi | --psd | --ps) | |
1109 | ac_prev=psdir ;; | |
1110 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1111 | psdir=$ac_optarg ;; | |
1112 | ||
cd6ede75 UD |
1113 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1114 | | -silent | --silent | --silen | --sile | --sil) | |
1115 | silent=yes ;; | |
1116 | ||
c6cb8783 SP |
1117 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
1118 | | --runstate | --runstat | --runsta | --runst | --runs \ | |
1119 | | --run | --ru | --r) | |
1120 | ac_prev=runstatedir ;; | |
1121 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | |
1122 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | |
1123 | | --run=* | --ru=* | --r=*) | |
1124 | runstatedir=$ac_optarg ;; | |
1125 | ||
cd6ede75 UD |
1126 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1127 | ac_prev=sbindir ;; | |
1128 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1129 | | --sbi=* | --sb=*) | |
3a12e572 | 1130 | sbindir=$ac_optarg ;; |
cd6ede75 UD |
1131 | |
1132 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1133 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1134 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1135 | | --sha | --sh) | |
1136 | ac_prev=sharedstatedir ;; | |
1137 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1138 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1139 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1140 | | --sha=* | --sh=*) | |
3a12e572 | 1141 | sharedstatedir=$ac_optarg ;; |
cd6ede75 UD |
1142 | |
1143 | -site | --site | --sit) | |
1144 | ac_prev=site ;; | |
1145 | -site=* | --site=* | --sit=*) | |
3a12e572 | 1146 | site=$ac_optarg ;; |
cd6ede75 UD |
1147 | |
1148 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1149 | ac_prev=srcdir ;; | |
1150 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
3a12e572 | 1151 | srcdir=$ac_optarg ;; |
cd6ede75 UD |
1152 | |
1153 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1154 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1155 | ac_prev=sysconfdir ;; | |
1156 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1157 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
3a12e572 | 1158 | sysconfdir=$ac_optarg ;; |
cd6ede75 UD |
1159 | |
1160 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
3a12e572 | 1161 | ac_prev=target_alias ;; |
cd6ede75 | 1162 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
3a12e572 | 1163 | target_alias=$ac_optarg ;; |
cd6ede75 UD |
1164 | |
1165 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1166 | verbose=yes ;; | |
1167 | ||
3a12e572 UD |
1168 | -version | --version | --versio | --versi | --vers | -V) |
1169 | ac_init_version=: ;; | |
cd6ede75 UD |
1170 | |
1171 | -with-* | --with-*) | |
322e23db | 1172 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
cd6ede75 | 1173 | # Reject names that are not valid shell variable names. |
322e23db | 1174 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
c6cb8783 | 1175 | as_fn_error $? "invalid package name: \`$ac_useropt'" |
322e23db | 1176 | ac_useropt_orig=$ac_useropt |
c6cb8783 | 1177 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
322e23db UD |
1178 | case $ac_user_opts in |
1179 | *" | |
1180 | "with_$ac_useropt" | |
1181 | "*) ;; | |
1182 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1183 | ac_unrecognized_sep=', ';; | |
1184 | esac | |
1185 | eval with_$ac_useropt=\$ac_optarg ;; | |
cd6ede75 UD |
1186 | |
1187 | -without-* | --without-*) | |
322e23db | 1188 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
cd6ede75 | 1189 | # Reject names that are not valid shell variable names. |
322e23db | 1190 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
c6cb8783 | 1191 | as_fn_error $? "invalid package name: \`$ac_useropt'" |
322e23db | 1192 | ac_useropt_orig=$ac_useropt |
c6cb8783 | 1193 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
322e23db UD |
1194 | case $ac_user_opts in |
1195 | *" | |
1196 | "with_$ac_useropt" | |
1197 | "*) ;; | |
1198 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1199 | ac_unrecognized_sep=', ';; | |
1200 | esac | |
1201 | eval with_$ac_useropt=no ;; | |
cd6ede75 UD |
1202 | |
1203 | --x) | |
1204 | # Obsolete; use --with-x. | |
1205 | with_x=yes ;; | |
1206 | ||
1207 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1208 | | --x-incl | --x-inc | --x-in | --x-i) | |
1209 | ac_prev=x_includes ;; | |
1210 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1211 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
3a12e572 | 1212 | x_includes=$ac_optarg ;; |
cd6ede75 UD |
1213 | |
1214 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1215 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1216 | ac_prev=x_libraries ;; | |
1217 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1218 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
3a12e572 | 1219 | x_libraries=$ac_optarg ;; |
cd6ede75 | 1220 | |
4a531bb0 L |
1221 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1222 | Try \`$0 --help' for more information" | |
cd6ede75 UD |
1223 | ;; |
1224 | ||
3a12e572 UD |
1225 | *=*) |
1226 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1227 | # Reject names that are not valid shell variable names. | |
b08c89d9 UD |
1228 | case $ac_envvar in #( |
1229 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
4a531bb0 | 1230 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
b08c89d9 | 1231 | esac |
26f56c1c | 1232 | eval $ac_envvar=\$ac_optarg |
3a12e572 UD |
1233 | export $ac_envvar ;; |
1234 | ||
cd6ede75 | 1235 | *) |
3a12e572 | 1236 | # FIXME: should be removed in autoconf 3.0. |
c6cb8783 | 1237 | printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 |
3a12e572 | 1238 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
c6cb8783 | 1239 | printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 |
f318beb8 | 1240 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
cd6ede75 UD |
1241 | ;; |
1242 | ||
1243 | esac | |
1244 | done | |
1245 | ||
1246 | if test -n "$ac_prev"; then | |
3a12e572 | 1247 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
4a531bb0 | 1248 | as_fn_error $? "missing argument to $ac_option" |
cd6ede75 | 1249 | fi |
cd6ede75 | 1250 | |
322e23db UD |
1251 | if test -n "$ac_unrecognized_opts"; then |
1252 | case $enable_option_checking in | |
1253 | no) ;; | |
4a531bb0 | 1254 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
c6cb8783 | 1255 | *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
322e23db UD |
1256 | esac |
1257 | fi | |
1258 | ||
1259 | # Check all directory arguments for consistency. | |
26f56c1c UD |
1260 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1261 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1262 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
c6cb8783 | 1263 | libdir localedir mandir runstatedir |
cd6ede75 | 1264 | do |
26f56c1c | 1265 | eval ac_val=\$$ac_var |
322e23db UD |
1266 | # Remove trailing slashes. |
1267 | case $ac_val in | |
1268 | */ ) | |
1269 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1270 | eval $ac_var=\$ac_val;; | |
1271 | esac | |
1272 | # Be sure to have absolute directory names. | |
3a12e572 | 1273 | case $ac_val in |
26f56c1c UD |
1274 | [\\/$]* | ?:[\\/]* ) continue;; |
1275 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
cd6ede75 | 1276 | esac |
4a531bb0 | 1277 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
cd6ede75 UD |
1278 | done |
1279 | ||
3a12e572 UD |
1280 | # There might be people who depend on the old broken behavior: `$host' |
1281 | # used to hold the argument of --host etc. | |
1282 | # FIXME: To remove some day. | |
1283 | build=$build_alias | |
1284 | host=$host_alias | |
1285 | target=$target_alias | |
1286 | ||
1287 | # FIXME: To remove some day. | |
1288 | if test "x$host_alias" != x; then | |
1289 | if test "x$build_alias" = x; then | |
1290 | cross_compiling=maybe | |
3a12e572 UD |
1291 | elif test "x$build_alias" != "x$host_alias"; then |
1292 | cross_compiling=yes | |
1293 | fi | |
1294 | fi | |
cd6ede75 | 1295 | |
3a12e572 UD |
1296 | ac_tool_prefix= |
1297 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1298 | ||
1299 | test "$silent" = yes && exec 6>/dev/null | |
cd6ede75 | 1300 | |
cd6ede75 | 1301 | |
26f56c1c UD |
1302 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1303 | ac_ls_di=`ls -di .` && | |
1304 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
4a531bb0 | 1305 | as_fn_error $? "working directory cannot be determined" |
26f56c1c | 1306 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
4a531bb0 | 1307 | as_fn_error $? "pwd does not report name of working directory" |
26f56c1c UD |
1308 | |
1309 | ||
cd6ede75 UD |
1310 | # Find the source files, if location was not specified. |
1311 | if test -z "$srcdir"; then | |
1312 | ac_srcdir_defaulted=yes | |
26f56c1c | 1313 | # Try the directory containing this script, then the parent directory. |
322e23db UD |
1314 | ac_confdir=`$as_dirname -- "$as_myself" || |
1315 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1316 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1317 | X"$as_myself" : 'X\(//\)$' \| \ | |
1318 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
c6cb8783 | 1319 | printf "%s\n" X"$as_myself" | |
26f56c1c UD |
1320 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1321 | s//\1/ | |
1322 | q | |
1323 | } | |
1324 | /^X\(\/\/\)[^/].*/{ | |
1325 | s//\1/ | |
1326 | q | |
1327 | } | |
1328 | /^X\(\/\/\)$/{ | |
1329 | s//\1/ | |
1330 | q | |
1331 | } | |
1332 | /^X\(\/\).*/{ | |
1333 | s//\1/ | |
1334 | q | |
1335 | } | |
1336 | s/.*/./; q'` | |
cd6ede75 | 1337 | srcdir=$ac_confdir |
26f56c1c | 1338 | if test ! -r "$srcdir/$ac_unique_file"; then |
cd6ede75 UD |
1339 | srcdir=.. |
1340 | fi | |
1341 | else | |
1342 | ac_srcdir_defaulted=no | |
1343 | fi | |
26f56c1c UD |
1344 | if test ! -r "$srcdir/$ac_unique_file"; then |
1345 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
4a531bb0 | 1346 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
cd6ede75 | 1347 | fi |
26f56c1c UD |
1348 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1349 | ac_abs_confdir=`( | |
4a531bb0 | 1350 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
26f56c1c UD |
1351 | pwd)` |
1352 | # When building in place, set srcdir=. | |
1353 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1354 | srcdir=. | |
1355 | fi | |
1356 | # Remove unnecessary trailing slashes from srcdir. | |
1357 | # Double slashes in file names in object file debugging info | |
1358 | # mess up M-x gdb in Emacs. | |
1359 | case $srcdir in | |
1360 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1361 | esac | |
1362 | for ac_var in $ac_precious_vars; do | |
1363 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1364 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1365 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1366 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1367 | done | |
3a12e572 UD |
1368 | |
1369 | # | |
1370 | # Report the --help message. | |
1371 | # | |
1372 | if test "$ac_init_help" = "long"; then | |
1373 | # Omit some internal or obsolete options to make the list less imposing. | |
1374 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1375 | cat <<_ACEOF | |
f4b07664 | 1376 | \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems. |
3a12e572 UD |
1377 | |
1378 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1379 | ||
1380 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1381 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1382 | ||
1383 | Defaults for the options are specified in brackets. | |
1384 | ||
1385 | Configuration: | |
1386 | -h, --help display this help and exit | |
1387 | --help=short display options specific to this package | |
1388 | --help=recursive display the short help of all the included packages | |
1389 | -V, --version display version information and exit | |
4a531bb0 | 1390 | -q, --quiet, --silent do not print \`checking ...' messages |
3a12e572 UD |
1391 | --cache-file=FILE cache test results in FILE [disabled] |
1392 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1393 | -n, --no-create do not create output files | |
1394 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1395 | ||
3a12e572 UD |
1396 | Installation directories: |
1397 | --prefix=PREFIX install architecture-independent files in PREFIX | |
322e23db | 1398 | [$ac_default_prefix] |
3a12e572 | 1399 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
322e23db | 1400 | [PREFIX] |
3a12e572 UD |
1401 | |
1402 | By default, \`make install' will install all the files in | |
1403 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1404 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1405 | for instance \`--prefix=\$HOME'. | |
1406 | ||
1407 | For better control, use the options below. | |
1408 | ||
1409 | Fine tuning of the installation directories: | |
322e23db UD |
1410 | --bindir=DIR user executables [EPREFIX/bin] |
1411 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1412 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1413 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1414 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1415 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
c6cb8783 | 1416 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
322e23db UD |
1417 | --libdir=DIR object code libraries [EPREFIX/lib] |
1418 | --includedir=DIR C header files [PREFIX/include] | |
1419 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1420 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1421 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1422 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1423 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1424 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
f318beb8 | 1425 | --docdir=DIR documentation root [DATAROOTDIR/doc/glibc] |
322e23db UD |
1426 | --htmldir=DIR html documentation [DOCDIR] |
1427 | --dvidir=DIR dvi documentation [DOCDIR] | |
1428 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1429 | --psdir=DIR ps documentation [DOCDIR] | |
3a12e572 UD |
1430 | _ACEOF |
1431 | ||
1432 | cat <<\_ACEOF | |
1433 | ||
1434 | System types: | |
1435 | --build=BUILD configure for building on BUILD [guessed] | |
1436 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1437 | _ACEOF | |
1438 | fi | |
cd6ede75 | 1439 | |
3a12e572 | 1440 | if test -n "$ac_init_help"; then |
f4b07664 RM |
1441 | case $ac_init_help in |
1442 | short | recursive ) echo "Configuration of GNU C Library (see version.h):";; | |
1443 | esac | |
3a12e572 UD |
1444 | cat <<\_ACEOF |
1445 | ||
1446 | Optional Features: | |
322e23db | 1447 | --disable-option-checking ignore unrecognized --enable/--with options |
3a12e572 UD |
1448 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1449 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
6b7f6183 RM |
1450 | --disable-sanity-checks really do not use threads (should not be used except |
1451 | in special situations) [default=yes] | |
a0da5fe1 | 1452 | --enable-shared build shared library [default=yes if GNU ld] |
11bf311e | 1453 | --enable-profile build profiled library [default=no] |
23645707 SP |
1454 | --disable-default-pie Do not build glibc programs and the testsuite as PIE |
1455 | [default=no] | |
1cba4036 | 1456 | --disable-timezone-tools |
44f826e3 | 1457 | do not install timezone tools [default=install] |
740b3dbe L |
1458 | --enable-hardcoded-path-in-tests |
1459 | hardcode newly built glibc path in tests | |
1460 | [default=no] | |
3a12e572 | 1461 | --disable-hidden-plt do not hide internal function calls to avoid PLT |
4df8c11d | 1462 | --enable-bind-now disable lazy relocations in DSOs |
03baef1c NA |
1463 | --enable-stack-protector=[yes|no|all|strong] |
1464 | Use -fstack-protector[-all|-strong] to detect glibc | |
1465 | buffer overflows | |
6b7f6183 | 1466 | --enable-static-nss build static NSS modules [default=no] |
3a12e572 | 1467 | --disable-force-install don't force installation of files from this package, |
6b7f6183 | 1468 | even if they are older than the installed files |
8894bad3 AM |
1469 | --enable-maintainer-mode |
1470 | enable make rules and dependencies not useful (and | |
1471 | sometimes confusing) to the casual installer | |
6b7f6183 RM |
1472 | --enable-kernel=VERSION compile for compatibility with kernel not older than |
1473 | VERSION | |
a4ecc9eb | 1474 | --disable-werror do not build with -Werror |
425ce2ed UD |
1475 | --enable-multi-arch enable single DSO with optimizations for multiple |
1476 | architectures | |
33784089 RE |
1477 | --enable-memory-tagging enable memory tagging if supported by the |
1478 | architecture [default=no] | |
3a097cc7 | 1479 | --enable-systemtap enable systemtap static probe points [default=no] |
c53d909c | 1480 | --disable-build-nscd disable building and installing the nscd daemon |
3cc3ef96 | 1481 | --disable-nscd library functions will not contact the nscd daemon |
e4608715 | 1482 | --enable-pt_chown Enable building and installing pt_chown |
5695d46f AS |
1483 | --enable-mathvec Enable building and installing mathvec [default |
1484 | depends on architecture] | |
f753fa7d L |
1485 | --enable-cet enable Intel Control-flow Enforcement Technology |
1486 | (CET), x86 only | |
ebae2f5a MC |
1487 | --disable-scv syscalls will not use scv instruction, even if the |
1488 | kernel supports it, powerpc only | |
64d9580c FB |
1489 | --enable-fortify-source[=1|2|3] |
1490 | Use -D_FORTIFY_SOURCE=[1|2|3] to control code | |
1491 | hardening, defaults to highest possible value | |
1492 | supported by the build compiler. | |
3a12e572 UD |
1493 | |
1494 | Optional Packages: | |
1495 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1496 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
8b748aed JM |
1497 | --with-pkgversion=PKG Use PKG in the version string in place of "GNU libc" |
1498 | --with-bugurl=URL Direct users to URL to report a bug | |
3a12e572 UD |
1499 | --with-gd=DIR find libgd include dir and library with prefix DIR |
1500 | --with-gd-include=DIR find libgd include files in DIR | |
1501 | --with-gd-lib=DIR find libgd library files in DIR | |
6b7f6183 | 1502 | --with-binutils=PATH specify location of binutils (as and ld) |
74a30a58 | 1503 | --with-selinux if building with SELinux support |
6b7f6183 | 1504 | --with-headers=PATH location of system headers to use (for example |
26f56c1c | 1505 | /usr/src/linux/include) [default=compiler default] |
6413fcde FW |
1506 | --with-nonshared-cflags=CFLAGS |
1507 | build nonshared libraries with additional CFLAGS | |
9ba202c7 FW |
1508 | --with-rtld-early-cflags=CFLAGS |
1509 | build early initialization with additional CFLAGS | |
bada2e31 L |
1510 | --with-timeoutfactor=NUM |
1511 | specify an integer to scale the timeout | |
2ceaa76a | 1512 | --with-cpu=CPU select code for CPU variant |
3a12e572 UD |
1513 | |
1514 | Some influential environment variables: | |
1515 | CC C compiler command | |
1516 | CFLAGS C compiler flags | |
1517 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1518 | nonstandard directory <lib dir> | |
26f56c1c | 1519 | LIBS libraries to pass to the linker, e.g. -l<library> |
b08c89d9 | 1520 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
26f56c1c | 1521 | you have headers in a nonstandard directory <include dir> |
3a12e572 | 1522 | CPP C preprocessor |
925c3c5c UD |
1523 | CXX C++ compiler command |
1524 | CXXFLAGS C++ compiler flags | |
3a12e572 UD |
1525 | |
1526 | Use these variables to override the choices made by `configure' or to help | |
1527 | it to find libraries and programs with nonstandard names/locations. | |
1528 | ||
a306c790 | 1529 | Report bugs to <https://sourceware.org/bugzilla/>. |
02d35f06 | 1530 | GNU C Library home page: <https://www.gnu.org/software/glibc/>. |
c6cb8783 | 1531 | General help using GNU software: <https://www.gnu.org/gethelp/>. |
3a12e572 | 1532 | _ACEOF |
26f56c1c | 1533 | ac_status=$? |
3a12e572 UD |
1534 | fi |
1535 | ||
1536 | if test "$ac_init_help" = "recursive"; then | |
1537 | # If there are subdirs, report their specific --help. | |
3a12e572 | 1538 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
322e23db UD |
1539 | test -d "$ac_dir" || |
1540 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1541 | continue | |
3a12e572 UD |
1542 | ac_builddir=. |
1543 | ||
26f56c1c UD |
1544 | case "$ac_dir" in |
1545 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1546 | *) | |
c6cb8783 | 1547 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
26f56c1c | 1548 | # A ".." for each directory in $ac_dir_suffix. |
c6cb8783 | 1549 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
26f56c1c UD |
1550 | case $ac_top_builddir_sub in |
1551 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1552 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1553 | esac ;; | |
1554 | esac | |
1555 | ac_abs_top_builddir=$ac_pwd | |
1556 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1557 | # for backward compatibility: | |
1558 | ac_top_builddir=$ac_top_build_prefix | |
3a12e572 UD |
1559 | |
1560 | case $srcdir in | |
26f56c1c | 1561 | .) # We are building in place. |
3a12e572 | 1562 | ac_srcdir=. |
26f56c1c UD |
1563 | ac_top_srcdir=$ac_top_builddir_sub |
1564 | ac_abs_top_srcdir=$ac_pwd ;; | |
1565 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
3a12e572 | 1566 | ac_srcdir=$srcdir$ac_dir_suffix; |
26f56c1c UD |
1567 | ac_top_srcdir=$srcdir |
1568 | ac_abs_top_srcdir=$srcdir ;; | |
1569 | *) # Relative name. | |
1570 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1571 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1572 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
3a12e572 | 1573 | esac |
26f56c1c UD |
1574 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1575 | ||
1576 | cd "$ac_dir" || { ac_status=$?; continue; } | |
c6cb8783 SP |
1577 | # Check for configure.gnu first; this name is used for a wrapper for |
1578 | # Metaconfig's "Configure" on case-insensitive file systems. | |
26f56c1c UD |
1579 | if test -f "$ac_srcdir/configure.gnu"; then |
1580 | echo && | |
1581 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1582 | elif test -f "$ac_srcdir/configure"; then | |
1583 | echo && | |
1584 | $SHELL "$ac_srcdir/configure" --help=recursive | |
3a12e572 | 1585 | else |
c6cb8783 | 1586 | printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
26f56c1c UD |
1587 | fi || ac_status=$? |
1588 | cd "$ac_pwd" || { ac_status=$?; break; } | |
3a12e572 UD |
1589 | done |
1590 | fi | |
1591 | ||
26f56c1c | 1592 | test -n "$ac_init_help" && exit $ac_status |
3a12e572 UD |
1593 | if $ac_init_version; then |
1594 | cat <<\_ACEOF | |
f4b07664 | 1595 | GNU C Library configure (see version.h) |
c6cb8783 | 1596 | generated by GNU Autoconf 2.71 |
3a12e572 | 1597 | |
c6cb8783 | 1598 | Copyright (C) 2021 Free Software Foundation, Inc. |
3a12e572 UD |
1599 | This configure script is free software; the Free Software Foundation |
1600 | gives unlimited permission to copy, distribute and modify it. | |
1601 | _ACEOF | |
26f56c1c | 1602 | exit |
3a12e572 | 1603 | fi |
3a12e572 | 1604 | |
b08c89d9 UD |
1605 | ## ------------------------ ## |
1606 | ## Autoconf initialization. ## | |
1607 | ## ------------------------ ## | |
3a12e572 | 1608 | |
b08c89d9 UD |
1609 | # ac_fn_c_try_compile LINENO |
1610 | # -------------------------- | |
1611 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1612 | ac_fn_c_try_compile () | |
3a12e572 | 1613 | { |
b08c89d9 | 1614 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
c6cb8783 | 1615 | rm -f conftest.$ac_objext conftest.beam |
b08c89d9 UD |
1616 | if { { ac_try="$ac_compile" |
1617 | case "(($ac_try" in | |
1618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1619 | *) ac_try_echo=$ac_try;; | |
1620 | esac | |
1621 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
c6cb8783 | 1622 | printf "%s\n" "$ac_try_echo"; } >&5 |
b08c89d9 UD |
1623 | (eval "$ac_compile") 2>conftest.err |
1624 | ac_status=$? | |
1625 | if test -s conftest.err; then | |
1626 | grep -v '^ *+' conftest.err >conftest.er1 | |
1627 | cat conftest.er1 >&5 | |
1628 | mv -f conftest.er1 conftest.err | |
1629 | fi | |
c6cb8783 | 1630 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
b08c89d9 UD |
1631 | test $ac_status = 0; } && { |
1632 | test -z "$ac_c_werror_flag" || | |
1633 | test ! -s conftest.err | |
c6cb8783 SP |
1634 | } && test -s conftest.$ac_objext |
1635 | then : | |
b08c89d9 | 1636 | ac_retval=0 |
c6cb8783 SP |
1637 | else $as_nop |
1638 | printf "%s\n" "$as_me: failed program was:" >&5 | |
b08c89d9 | 1639 | sed 's/^/| /' conftest.$ac_ext >&5 |
3a12e572 | 1640 | |
b08c89d9 UD |
1641 | ac_retval=1 |
1642 | fi | |
f318beb8 | 1643 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
b08c89d9 | 1644 | as_fn_set_status $ac_retval |
3a12e572 | 1645 | |
b08c89d9 | 1646 | } # ac_fn_c_try_compile |
3a12e572 | 1647 | |
b08c89d9 UD |
1648 | # ac_fn_cxx_try_compile LINENO |
1649 | # ---------------------------- | |
1650 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1651 | ac_fn_cxx_try_compile () | |
1652 | { | |
1653 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
c6cb8783 | 1654 | rm -f conftest.$ac_objext conftest.beam |
b08c89d9 UD |
1655 | if { { ac_try="$ac_compile" |
1656 | case "(($ac_try" in | |
1657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1658 | *) ac_try_echo=$ac_try;; | |
1659 | esac | |
1660 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
c6cb8783 | 1661 | printf "%s\n" "$ac_try_echo"; } >&5 |
b08c89d9 UD |
1662 | (eval "$ac_compile") 2>conftest.err |
1663 | ac_status=$? | |
1664 | if test -s conftest.err; then | |
1665 | grep -v '^ *+' conftest.err >conftest.er1 | |
1666 | cat conftest.er1 >&5 | |
1667 | mv -f conftest.er1 conftest.err | |
1668 | fi | |
c6cb8783 | 1669 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
b08c89d9 UD |
1670 | test $ac_status = 0; } && { |
1671 | test -z "$ac_cxx_werror_flag" || | |
1672 | test ! -s conftest.err | |
c6cb8783 SP |
1673 | } && test -s conftest.$ac_objext |
1674 | then : | |
b08c89d9 | 1675 | ac_retval=0 |
c6cb8783 SP |
1676 | else $as_nop |
1677 | printf "%s\n" "$as_me: failed program was:" >&5 | |
b08c89d9 UD |
1678 | sed 's/^/| /' conftest.$ac_ext >&5 |
1679 | ||
1680 | ac_retval=1 | |
1681 | fi | |
f318beb8 | 1682 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
b08c89d9 UD |
1683 | as_fn_set_status $ac_retval |
1684 | ||
1685 | } # ac_fn_cxx_try_compile | |
1686 | ||
e4693aa7 RM |
1687 | # ac_fn_cxx_try_link LINENO |
1688 | # ------------------------- | |
1689 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1690 | ac_fn_cxx_try_link () | |
1691 | { | |
1692 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
c6cb8783 | 1693 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
e4693aa7 RM |
1694 | if { { ac_try="$ac_link" |
1695 | case "(($ac_try" in | |
1696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1697 | *) ac_try_echo=$ac_try;; | |
1698 | esac | |
1699 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
c6cb8783 | 1700 | printf "%s\n" "$ac_try_echo"; } >&5 |
e4693aa7 RM |
1701 | (eval "$ac_link") 2>conftest.err |
1702 | ac_status=$? | |
1703 | if test -s conftest.err; then | |
1704 | grep -v '^ *+' conftest.err >conftest.er1 | |
1705 | cat conftest.er1 >&5 | |
1706 | mv -f conftest.er1 conftest.err | |
1707 | fi | |
c6cb8783 | 1708 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
e4693aa7 RM |
1709 | test $ac_status = 0; } && { |
1710 | test -z "$ac_cxx_werror_flag" || | |
1711 | test ! -s conftest.err | |
1712 | } && test -s conftest$ac_exeext && { | |
1713 | test "$cross_compiling" = yes || | |
1714 | test -x conftest$ac_exeext | |
c6cb8783 SP |
1715 | } |
1716 | then : | |
e4693aa7 | 1717 | ac_retval=0 |
c6cb8783 SP |
1718 | else $as_nop |
1719 | printf "%s\n" "$as_me: failed program was:" >&5 | |
e4693aa7 RM |
1720 | sed 's/^/| /' conftest.$ac_ext >&5 |
1721 | ||
1722 | ac_retval=1 | |
1723 | fi | |
1724 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1725 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1726 | # interfere with the next link command; also delete a directory that is | |
1727 | # left behind by Apple's compiler. We do this before executing the actions. | |
1728 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1729 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1730 | as_fn_set_status $ac_retval | |
1731 | ||
1732 | } # ac_fn_cxx_try_link | |
1733 | ||
b08c89d9 UD |
1734 | # ac_fn_c_try_link LINENO |
1735 | # ----------------------- | |
1736 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1737 | ac_fn_c_try_link () | |
1738 | { | |
1739 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
c6cb8783 | 1740 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
b08c89d9 UD |
1741 | if { { ac_try="$ac_link" |
1742 | case "(($ac_try" in | |
1743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1744 | *) ac_try_echo=$ac_try;; | |
1745 | esac | |
1746 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
c6cb8783 | 1747 | printf "%s\n" "$ac_try_echo"; } >&5 |
b08c89d9 UD |
1748 | (eval "$ac_link") 2>conftest.err |
1749 | ac_status=$? | |
1750 | if test -s conftest.err; then | |
1751 | grep -v '^ *+' conftest.err >conftest.er1 | |
1752 | cat conftest.er1 >&5 | |
1753 | mv -f conftest.er1 conftest.err | |
1754 | fi | |
c6cb8783 | 1755 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
b08c89d9 UD |
1756 | test $ac_status = 0; } && { |
1757 | test -z "$ac_c_werror_flag" || | |
1758 | test ! -s conftest.err | |
1759 | } && test -s conftest$ac_exeext && { | |
1760 | test "$cross_compiling" = yes || | |
f4a58f0d | 1761 | test -x conftest$ac_exeext |
c6cb8783 SP |
1762 | } |
1763 | then : | |
b08c89d9 | 1764 | ac_retval=0 |
c6cb8783 SP |
1765 | else $as_nop |
1766 | printf "%s\n" "$as_me: failed program was:" >&5 | |
b08c89d9 UD |
1767 | sed 's/^/| /' conftest.$ac_ext >&5 |
1768 | ||
1769 | ac_retval=1 | |
1770 | fi | |
1771 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1772 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1773 | # interfere with the next link command; also delete a directory that is | |
1774 | # left behind by Apple's compiler. We do this before executing the actions. | |
1775 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
f318beb8 | 1776 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
b08c89d9 UD |
1777 | as_fn_set_status $ac_retval |
1778 | ||
1779 | } # ac_fn_c_try_link | |
b190bccc NT |
1780 | |
1781 | # ac_fn_c_try_cpp LINENO | |
1782 | # ---------------------- | |
1783 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1784 | ac_fn_c_try_cpp () | |
1785 | { | |
1786 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1787 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1788 | case "(($ac_try" in | |
1789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1790 | *) ac_try_echo=$ac_try;; | |
1791 | esac | |
1792 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
c6cb8783 | 1793 | printf "%s\n" "$ac_try_echo"; } >&5 |
b190bccc NT |
1794 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
1795 | ac_status=$? | |
1796 | if test -s conftest.err; then | |
1797 | grep -v '^ *+' conftest.err >conftest.er1 | |
1798 | cat conftest.er1 >&5 | |
1799 | mv -f conftest.er1 conftest.err | |
1800 | fi | |
c6cb8783 | 1801 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
b190bccc NT |
1802 | test $ac_status = 0; } > conftest.i && { |
1803 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1804 | test ! -s conftest.err | |
c6cb8783 SP |
1805 | } |
1806 | then : | |
b190bccc | 1807 | ac_retval=0 |
c6cb8783 SP |
1808 | else $as_nop |
1809 | printf "%s\n" "$as_me: failed program was:" >&5 | |
b190bccc NT |
1810 | sed 's/^/| /' conftest.$ac_ext >&5 |
1811 | ||
1812 | ac_retval=1 | |
1813 | fi | |
1814 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1815 | as_fn_set_status $ac_retval | |
1816 | ||
1817 | } # ac_fn_c_try_cpp | |
c6cb8783 SP |
1818 | ac_configure_args_raw= |
1819 | for ac_arg | |
1820 | do | |
1821 | case $ac_arg in | |
1822 | *\'*) | |
1823 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1824 | esac | |
1825 | as_fn_append ac_configure_args_raw " '$ac_arg'" | |
1826 | done | |
1827 | ||
1828 | case $ac_configure_args_raw in | |
1829 | *$as_nl*) | |
1830 | ac_safe_unquote= ;; | |
1831 | *) | |
1832 | ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. | |
1833 | ac_unsafe_a="$ac_unsafe_z#~" | |
1834 | ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" | |
1835 | ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; | |
1836 | esac | |
1837 | ||
b08c89d9 UD |
1838 | cat >config.log <<_ACEOF |
1839 | This file contains any messages produced by compilers while | |
1840 | running configure, to aid debugging if configure makes a mistake. | |
1841 | ||
1842 | It was created by GNU C Library $as_me (see version.h), which was | |
c6cb8783 | 1843 | generated by GNU Autoconf 2.71. Invocation command line was |
b08c89d9 | 1844 | |
c6cb8783 | 1845 | $ $0$ac_configure_args_raw |
b08c89d9 UD |
1846 | |
1847 | _ACEOF | |
1848 | exec 5>>config.log | |
1849 | { | |
1850 | cat <<_ASUNAME | |
1851 | ## --------- ## | |
1852 | ## Platform. ## | |
1853 | ## --------- ## | |
1854 | ||
1855 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1856 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1857 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1858 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1859 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1860 | ||
1861 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1862 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1863 | ||
1864 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1865 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1866 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1867 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1868 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1869 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1870 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1871 | ||
1872 | _ASUNAME | |
3a12e572 UD |
1873 | |
1874 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1875 | for as_dir in $PATH | |
1876 | do | |
1877 | IFS=$as_save_IFS | |
c6cb8783 SP |
1878 | case $as_dir in #((( |
1879 | '') as_dir=./ ;; | |
1880 | */) ;; | |
1881 | *) as_dir=$as_dir/ ;; | |
1882 | esac | |
1883 | printf "%s\n" "PATH: $as_dir" | |
b08c89d9 | 1884 | done |
26f56c1c | 1885 | IFS=$as_save_IFS |
3a12e572 UD |
1886 | |
1887 | } >&5 | |
1888 | ||
1889 | cat >&5 <<_ACEOF | |
1890 | ||
1891 | ||
1892 | ## ----------- ## | |
1893 | ## Core tests. ## | |
1894 | ## ----------- ## | |
1895 | ||
1896 | _ACEOF | |
1897 | ||
1898 | ||
1899 | # Keep a trace of the command line. | |
1900 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2abf9ff1 | 1901 | # Strip out --silent because we don't want to record it for future runs. |
3a12e572 | 1902 | # Also quote any args containing shell meta-characters. |
2abf9ff1 | 1903 | # Make two passes to allow for proper duplicate-argument suppression. |
3a12e572 | 1904 | ac_configure_args= |
2abf9ff1 RM |
1905 | ac_configure_args0= |
1906 | ac_configure_args1= | |
2abf9ff1 RM |
1907 | ac_must_keep_next=false |
1908 | for ac_pass in 1 2 | |
3a12e572 | 1909 | do |
2abf9ff1 RM |
1910 | for ac_arg |
1911 | do | |
1912 | case $ac_arg in | |
1913 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1914 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1915 | | -silent | --silent | --silen | --sile | --sil) | |
1916 | continue ;; | |
26f56c1c | 1917 | *\'*) |
c6cb8783 | 1918 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
2abf9ff1 RM |
1919 | esac |
1920 | case $ac_pass in | |
b08c89d9 | 1921 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
2abf9ff1 | 1922 | 2) |
b08c89d9 | 1923 | as_fn_append ac_configure_args1 " '$ac_arg'" |
2abf9ff1 | 1924 | if test $ac_must_keep_next = true; then |
9382fcee | 1925 | ac_must_keep_next=false # Got value, back to normal. |
2abf9ff1 | 1926 | else |
9382fcee RM |
1927 | case $ac_arg in |
1928 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1929 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1930 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1931 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1932 | case "$ac_configure_args0 " in | |
1933 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1934 | esac | |
1935 | ;; | |
1936 | -* ) ac_must_keep_next=true ;; | |
1937 | esac | |
2abf9ff1 | 1938 | fi |
b08c89d9 | 1939 | as_fn_append ac_configure_args " '$ac_arg'" |
2abf9ff1 RM |
1940 | ;; |
1941 | esac | |
1942 | done | |
3a12e572 | 1943 | done |
b08c89d9 UD |
1944 | { ac_configure_args0=; unset ac_configure_args0;} |
1945 | { ac_configure_args1=; unset ac_configure_args1;} | |
3a12e572 UD |
1946 | |
1947 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1948 | # config.log. We remove comments because anyway the quotes in there | |
1949 | # would cause problems or look ugly. | |
26f56c1c UD |
1950 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1951 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
3a12e572 | 1952 | trap 'exit_status=$? |
c6cb8783 SP |
1953 | # Sanitize IFS. |
1954 | IFS=" "" $as_nl" | |
3a12e572 UD |
1955 | # Save into config.log some information that might help in debugging. |
1956 | { | |
1957 | echo | |
f4b07664 | 1958 | |
c6cb8783 | 1959 | printf "%s\n" "## ---------------- ## |
3a12e572 | 1960 | ## Cache variables. ## |
4a531bb0 | 1961 | ## ---------------- ##" |
3a12e572 UD |
1962 | echo |
1963 | # The following way of writing the cache mishandles newlines in values, | |
26f56c1c UD |
1964 | ( |
1965 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1966 | eval ac_val=\$$ac_var | |
1967 | case $ac_val in #( | |
1968 | *${as_nl}*) | |
1969 | case $ac_var in #( | |
c6cb8783 SP |
1970 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
1971 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
26f56c1c UD |
1972 | esac |
1973 | case $ac_var in #( | |
1974 | _ | IFS | as_nl) ;; #( | |
322e23db | 1975 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
b08c89d9 | 1976 | *) { eval $ac_var=; unset $ac_var;} ;; |
26f56c1c UD |
1977 | esac ;; |
1978 | esac | |
1979 | done | |
3a12e572 | 1980 | (set) 2>&1 | |
26f56c1c UD |
1981 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1982 | *${as_nl}ac_space=\ *) | |
3a12e572 | 1983 | sed -n \ |
26f56c1c UD |
1984 | "s/'\''/'\''\\\\'\'''\''/g; |
1985 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1986 | ;; #( | |
3a12e572 | 1987 | *) |
26f56c1c | 1988 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
3a12e572 | 1989 | ;; |
26f56c1c UD |
1990 | esac | |
1991 | sort | |
1992 | ) | |
3a12e572 | 1993 | echo |
f4b07664 | 1994 | |
c6cb8783 | 1995 | printf "%s\n" "## ----------------- ## |
f4b07664 | 1996 | ## Output variables. ## |
4a531bb0 | 1997 | ## ----------------- ##" |
f4b07664 RM |
1998 | echo |
1999 | for ac_var in $ac_subst_vars | |
2000 | do | |
26f56c1c UD |
2001 | eval ac_val=\$$ac_var |
2002 | case $ac_val in | |
c6cb8783 | 2003 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
26f56c1c | 2004 | esac |
c6cb8783 | 2005 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
f4b07664 RM |
2006 | done | sort |
2007 | echo | |
2008 | ||
2009 | if test -n "$ac_subst_files"; then | |
c6cb8783 | 2010 | printf "%s\n" "## ------------------- ## |
26f56c1c | 2011 | ## File substitutions. ## |
4a531bb0 | 2012 | ## ------------------- ##" |
f4b07664 RM |
2013 | echo |
2014 | for ac_var in $ac_subst_files | |
2015 | do | |
26f56c1c UD |
2016 | eval ac_val=\$$ac_var |
2017 | case $ac_val in | |
c6cb8783 | 2018 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
26f56c1c | 2019 | esac |
c6cb8783 | 2020 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
f4b07664 RM |
2021 | done | sort |
2022 | echo | |
2023 | fi | |
2024 | ||
3a12e572 | 2025 | if test -s confdefs.h; then |
c6cb8783 | 2026 | printf "%s\n" "## ----------- ## |
3a12e572 | 2027 | ## confdefs.h. ## |
4a531bb0 | 2028 | ## ----------- ##" |
3a12e572 | 2029 | echo |
26f56c1c | 2030 | cat confdefs.h |
3a12e572 UD |
2031 | echo |
2032 | fi | |
2033 | test "$ac_signal" != 0 && | |
c6cb8783 SP |
2034 | printf "%s\n" "$as_me: caught signal $ac_signal" |
2035 | printf "%s\n" "$as_me: exit $exit_status" | |
3a12e572 | 2036 | } >&5 |
26f56c1c UD |
2037 | rm -f core *.core core.conftest.* && |
2038 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
3a12e572 | 2039 | exit $exit_status |
26f56c1c | 2040 | ' 0 |
3a12e572 | 2041 | for ac_signal in 1 2 13 15; do |
b08c89d9 | 2042 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
3a12e572 UD |
2043 | done |
2044 | ac_signal=0 | |
2045 | ||
2046 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
26f56c1c | 2047 | rm -f -r conftest* confdefs.h |
3a12e572 | 2048 | |
c6cb8783 | 2049 | printf "%s\n" "/* confdefs.h */" > confdefs.h |
b08c89d9 | 2050 | |
3a12e572 UD |
2051 | # Predefined preprocessor variables. |
2052 | ||
c6cb8783 | 2053 | printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
3a12e572 | 2054 | |
c6cb8783 | 2055 | printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
3a12e572 | 2056 | |
c6cb8783 | 2057 | printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
3a12e572 | 2058 | |
c6cb8783 | 2059 | printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
3a12e572 | 2060 | |
c6cb8783 | 2061 | printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
3a12e572 | 2062 | |
c6cb8783 | 2063 | printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h |
b08c89d9 | 2064 | |
3a12e572 UD |
2065 | |
2066 | # Let the site file select an alternate cache file if it wants to. | |
322e23db | 2067 | # Prefer an explicitly selected file to automatically selected ones. |
26f56c1c | 2068 | if test -n "$CONFIG_SITE"; then |
c6cb8783 | 2069 | ac_site_files="$CONFIG_SITE" |
26f56c1c | 2070 | elif test "x$prefix" != xNONE; then |
c6cb8783 | 2071 | ac_site_files="$prefix/share/config.site $prefix/etc/config.site" |
26f56c1c | 2072 | else |
c6cb8783 | 2073 | ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
cd6ede75 | 2074 | fi |
c6cb8783 SP |
2075 | |
2076 | for ac_site_file in $ac_site_files | |
26f56c1c | 2077 | do |
c6cb8783 SP |
2078 | case $ac_site_file in #( |
2079 | */*) : | |
2080 | ;; #( | |
2081 | *) : | |
2082 | ac_site_file=./$ac_site_file ;; | |
2083 | esac | |
2084 | if test -f "$ac_site_file" && test -r "$ac_site_file"; then | |
2085 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2086 | printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} | |
3a12e572 | 2087 | sed 's/^/| /' "$ac_site_file" >&5 |
4a531bb0 | 2088 | . "$ac_site_file" \ |
c6cb8783 SP |
2089 | || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2090 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
4a531bb0 L |
2091 | as_fn_error $? "failed to load site script $ac_site_file |
2092 | See \`config.log' for more details" "$LINENO" 5; } | |
cd6ede75 UD |
2093 | fi |
2094 | done | |
2095 | ||
2096 | if test -r "$cache_file"; then | |
b08c89d9 UD |
2097 | # Some versions of bash will fail to source /dev/null (special files |
2098 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2099 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
c6cb8783 SP |
2100 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2101 | printf "%s\n" "$as_me: loading cache $cache_file" >&6;} | |
3a12e572 | 2102 | case $cache_file in |
26f56c1c UD |
2103 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2104 | *) . "./$cache_file";; | |
3a12e572 UD |
2105 | esac |
2106 | fi | |
cd6ede75 | 2107 | else |
c6cb8783 SP |
2108 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2109 | printf "%s\n" "$as_me: creating cache $cache_file" >&6;} | |
3a12e572 UD |
2110 | >$cache_file |
2111 | fi | |
2112 | ||
c6cb8783 SP |
2113 | # Test code for whether the C compiler supports C89 (global declarations) |
2114 | ac_c_conftest_c89_globals=' | |
2115 | /* Does the compiler advertise C89 conformance? | |
2116 | Do not test the value of __STDC__, because some compilers set it to 0 | |
2117 | while being otherwise adequately conformant. */ | |
2118 | #if !defined __STDC__ | |
2119 | # error "Compiler does not advertise C89 conformance" | |
2120 | #endif | |
2121 | ||
2122 | #include <stddef.h> | |
2123 | #include <stdarg.h> | |
2124 | struct stat; | |
2125 | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ | |
2126 | struct buf { int x; }; | |
2127 | struct buf * (*rcsopen) (struct buf *, struct stat *, int); | |
2128 | static char *e (p, i) | |
2129 | char **p; | |
2130 | int i; | |
2131 | { | |
2132 | return p[i]; | |
2133 | } | |
2134 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2135 | { | |
2136 | char *s; | |
2137 | va_list v; | |
2138 | va_start (v,p); | |
2139 | s = g (p, va_arg (v,int)); | |
2140 | va_end (v); | |
2141 | return s; | |
2142 | } | |
2143 | ||
2144 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2145 | function prototypes and stuff, but not \xHH hex character constants. | |
2146 | These do not provoke an error unfortunately, instead are silently treated | |
2147 | as an "x". The following induces an error, until -std is added to get | |
2148 | proper ANSI mode. Curiously \x00 != x always comes out true, for an | |
2149 | array size at least. It is necessary to write \x00 == 0 to get something | |
2150 | that is true only with -std. */ | |
2151 | int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; | |
2152 | ||
2153 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
2154 | inside strings and character constants. */ | |
2155 | #define FOO(x) '\''x'\'' | |
2156 | int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; | |
2157 | ||
2158 | int test (int i, double x); | |
2159 | struct s1 {int (*f) (int a);}; | |
2160 | struct s2 {int (*f) (double a);}; | |
2161 | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), | |
2162 | int, int);' | |
2163 | ||
2164 | # Test code for whether the C compiler supports C89 (body of main). | |
2165 | ac_c_conftest_c89_main=' | |
2166 | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); | |
2167 | ' | |
2168 | ||
2169 | # Test code for whether the C compiler supports C99 (global declarations) | |
2170 | ac_c_conftest_c99_globals=' | |
2171 | // Does the compiler advertise C99 conformance? | |
2172 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L | |
2173 | # error "Compiler does not advertise C99 conformance" | |
2174 | #endif | |
2175 | ||
2176 | #include <stdbool.h> | |
2177 | extern int puts (const char *); | |
2178 | extern int printf (const char *, ...); | |
2179 | extern int dprintf (int, const char *, ...); | |
2180 | extern void *malloc (size_t); | |
2181 | ||
2182 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | |
2183 | // dprintf is used instead of fprintf to avoid needing to declare | |
2184 | // FILE and stderr. | |
2185 | #define debug(...) dprintf (2, __VA_ARGS__) | |
2186 | #define showlist(...) puts (#__VA_ARGS__) | |
2187 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
2188 | static void | |
2189 | test_varargs_macros (void) | |
2190 | { | |
2191 | int x = 1234; | |
2192 | int y = 5678; | |
2193 | debug ("Flag"); | |
2194 | debug ("X = %d\n", x); | |
2195 | showlist (The first, second, and third items.); | |
2196 | report (x>y, "x is %d but y is %d", x, y); | |
2197 | } | |
2198 | ||
2199 | // Check long long types. | |
2200 | #define BIG64 18446744073709551615ull | |
2201 | #define BIG32 4294967295ul | |
2202 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
2203 | #if !BIG_OK | |
2204 | #error "your preprocessor is broken" | |
2205 | #endif | |
2206 | #if BIG_OK | |
2207 | #else | |
2208 | #error "your preprocessor is broken" | |
2209 | #endif | |
2210 | static long long int bignum = -9223372036854775807LL; | |
2211 | static unsigned long long int ubignum = BIG64; | |
2212 | ||
2213 | struct incomplete_array | |
2214 | { | |
2215 | int datasize; | |
2216 | double data[]; | |
2217 | }; | |
2218 | ||
2219 | struct named_init { | |
2220 | int number; | |
2221 | const wchar_t *name; | |
2222 | double average; | |
2223 | }; | |
2224 | ||
2225 | typedef const char *ccp; | |
2226 | ||
2227 | static inline int | |
2228 | test_restrict (ccp restrict text) | |
2229 | { | |
2230 | // See if C++-style comments work. | |
2231 | // Iterate through items via the restricted pointer. | |
2232 | // Also check for declarations in for loops. | |
2233 | for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) | |
2234 | continue; | |
2235 | return 0; | |
2236 | } | |
2237 | ||
2238 | // Check varargs and va_copy. | |
2239 | static bool | |
2240 | test_varargs (const char *format, ...) | |
2241 | { | |
2242 | va_list args; | |
2243 | va_start (args, format); | |
2244 | va_list args_copy; | |
2245 | va_copy (args_copy, args); | |
2246 | ||
2247 | const char *str = ""; | |
2248 | int number = 0; | |
2249 | float fnumber = 0; | |
2250 | ||
2251 | while (*format) | |
2252 | { | |
2253 | switch (*format++) | |
2254 | { | |
2255 | case '\''s'\'': // string | |
2256 | str = va_arg (args_copy, const char *); | |
2257 | break; | |
2258 | case '\''d'\'': // int | |
2259 | number = va_arg (args_copy, int); | |
2260 | break; | |
2261 | case '\''f'\'': // float | |
2262 | fnumber = va_arg (args_copy, double); | |
2263 | break; | |
2264 | default: | |
2265 | break; | |
2266 | } | |
2267 | } | |
2268 | va_end (args_copy); | |
2269 | va_end (args); | |
2270 | ||
2271 | return *str && number && fnumber; | |
2272 | } | |
2273 | ' | |
2274 | ||
2275 | # Test code for whether the C compiler supports C99 (body of main). | |
2276 | ac_c_conftest_c99_main=' | |
2277 | // Check bool. | |
2278 | _Bool success = false; | |
2279 | success |= (argc != 0); | |
2280 | ||
2281 | // Check restrict. | |
2282 | if (test_restrict ("String literal") == 0) | |
2283 | success = true; | |
2284 | char *restrict newvar = "Another string"; | |
2285 | ||
2286 | // Check varargs. | |
2287 | success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); | |
2288 | test_varargs_macros (); | |
2289 | ||
2290 | // Check flexible array members. | |
2291 | struct incomplete_array *ia = | |
2292 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
2293 | ia->datasize = 10; | |
2294 | for (int i = 0; i < ia->datasize; ++i) | |
2295 | ia->data[i] = i * 1.234; | |
2296 | ||
2297 | // Check named initializers. | |
2298 | struct named_init ni = { | |
2299 | .number = 34, | |
2300 | .name = L"Test wide string", | |
2301 | .average = 543.34343, | |
2302 | }; | |
2303 | ||
2304 | ni.number = 58; | |
2305 | ||
2306 | int dynamic_array[ni.number]; | |
2307 | dynamic_array[0] = argv[0][0]; | |
2308 | dynamic_array[ni.number - 1] = 543; | |
2309 | ||
2310 | // work around unused variable warnings | |
2311 | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' | |
2312 | || dynamic_array[ni.number - 1] != 543); | |
2313 | ' | |
2314 | ||
2315 | # Test code for whether the C compiler supports C11 (global declarations) | |
2316 | ac_c_conftest_c11_globals=' | |
2317 | // Does the compiler advertise C11 conformance? | |
2318 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L | |
2319 | # error "Compiler does not advertise C11 conformance" | |
2320 | #endif | |
2321 | ||
2322 | // Check _Alignas. | |
2323 | char _Alignas (double) aligned_as_double; | |
2324 | char _Alignas (0) no_special_alignment; | |
2325 | extern char aligned_as_int; | |
2326 | char _Alignas (0) _Alignas (int) aligned_as_int; | |
2327 | ||
2328 | // Check _Alignof. | |
2329 | enum | |
2330 | { | |
2331 | int_alignment = _Alignof (int), | |
2332 | int_array_alignment = _Alignof (int[100]), | |
2333 | char_alignment = _Alignof (char) | |
2334 | }; | |
2335 | _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); | |
2336 | ||
2337 | // Check _Noreturn. | |
2338 | int _Noreturn does_not_return (void) { for (;;) continue; } | |
2339 | ||
2340 | // Check _Static_assert. | |
2341 | struct test_static_assert | |
2342 | { | |
2343 | int x; | |
2344 | _Static_assert (sizeof (int) <= sizeof (long int), | |
2345 | "_Static_assert does not work in struct"); | |
2346 | long int y; | |
2347 | }; | |
2348 | ||
2349 | // Check UTF-8 literals. | |
2350 | #define u8 syntax error! | |
2351 | char const utf8_literal[] = u8"happens to be ASCII" "another string"; | |
2352 | ||
2353 | // Check duplicate typedefs. | |
2354 | typedef long *long_ptr; | |
2355 | typedef long int *long_ptr; | |
2356 | typedef long_ptr long_ptr; | |
2357 | ||
2358 | // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. | |
2359 | struct anonymous | |
2360 | { | |
2361 | union { | |
2362 | struct { int i; int j; }; | |
2363 | struct { int k; long int l; } w; | |
2364 | }; | |
2365 | int m; | |
2366 | } v1; | |
2367 | ' | |
2368 | ||
2369 | # Test code for whether the C compiler supports C11 (body of main). | |
2370 | ac_c_conftest_c11_main=' | |
2371 | _Static_assert ((offsetof (struct anonymous, i) | |
2372 | == offsetof (struct anonymous, w.k)), | |
2373 | "Anonymous union alignment botch"); | |
2374 | v1.i = 2; | |
2375 | v1.w.k = 5; | |
2376 | ok |= v1.i != 5; | |
2377 | ' | |
2378 | ||
2379 | # Test code for whether the C compiler supports C11 (complete). | |
2380 | ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} | |
2381 | ${ac_c_conftest_c99_globals} | |
2382 | ${ac_c_conftest_c11_globals} | |
2383 | ||
2384 | int | |
2385 | main (int argc, char **argv) | |
2386 | { | |
2387 | int ok = 0; | |
2388 | ${ac_c_conftest_c89_main} | |
2389 | ${ac_c_conftest_c99_main} | |
2390 | ${ac_c_conftest_c11_main} | |
2391 | return ok; | |
2392 | } | |
2393 | " | |
2394 | ||
2395 | # Test code for whether the C compiler supports C99 (complete). | |
2396 | ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} | |
2397 | ${ac_c_conftest_c99_globals} | |
2398 | ||
2399 | int | |
2400 | main (int argc, char **argv) | |
2401 | { | |
2402 | int ok = 0; | |
2403 | ${ac_c_conftest_c89_main} | |
2404 | ${ac_c_conftest_c99_main} | |
2405 | return ok; | |
2406 | } | |
2407 | " | |
2408 | ||
2409 | # Test code for whether the C compiler supports C89 (complete). | |
2410 | ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} | |
2411 | ||
2412 | int | |
2413 | main (int argc, char **argv) | |
2414 | { | |
2415 | int ok = 0; | |
2416 | ${ac_c_conftest_c89_main} | |
2417 | return ok; | |
2418 | } | |
2419 | " | |
2420 | ||
2421 | # Test code for whether the C++ compiler supports C++98 (global declarations) | |
2422 | ac_cxx_conftest_cxx98_globals=' | |
2423 | // Does the compiler advertise C++98 conformance? | |
2424 | #if !defined __cplusplus || __cplusplus < 199711L | |
2425 | # error "Compiler does not advertise C++98 conformance" | |
2426 | #endif | |
2427 | ||
2428 | // These inclusions are to reject old compilers that | |
2429 | // lack the unsuffixed header files. | |
2430 | #include <cstdlib> | |
2431 | #include <exception> | |
2432 | ||
2433 | // <cassert> and <cstring> are *not* freestanding headers in C++98. | |
2434 | extern void assert (int); | |
2435 | namespace std { | |
2436 | extern int strcmp (const char *, const char *); | |
2437 | } | |
2438 | ||
2439 | // Namespaces, exceptions, and templates were all added after "C++ 2.0". | |
2440 | using std::exception; | |
2441 | using std::strcmp; | |
2442 | ||
2443 | namespace { | |
2444 | ||
2445 | void test_exception_syntax() | |
2446 | { | |
2447 | try { | |
2448 | throw "test"; | |
2449 | } catch (const char *s) { | |
2450 | // Extra parentheses suppress a warning when building autoconf itself, | |
2451 | // due to lint rules shared with more typical C programs. | |
2452 | assert (!(strcmp) (s, "test")); | |
2453 | } | |
2454 | } | |
2455 | ||
2456 | template <typename T> struct test_template | |
2457 | { | |
2458 | T const val; | |
2459 | explicit test_template(T t) : val(t) {} | |
2460 | template <typename U> T add(U u) { return static_cast<T>(u) + val; } | |
2461 | }; | |
2462 | ||
2463 | } // anonymous namespace | |
2464 | ' | |
2465 | ||
2466 | # Test code for whether the C++ compiler supports C++98 (body of main) | |
2467 | ac_cxx_conftest_cxx98_main=' | |
2468 | assert (argc); | |
2469 | assert (! argv[0]); | |
2470 | { | |
2471 | test_exception_syntax (); | |
2472 | test_template<double> tt (2.0); | |
2473 | assert (tt.add (4) == 6.0); | |
2474 | assert (true && !false); | |
2475 | } | |
2476 | ' | |
2477 | ||
2478 | # Test code for whether the C++ compiler supports C++11 (global declarations) | |
2479 | ac_cxx_conftest_cxx11_globals=' | |
2480 | // Does the compiler advertise C++ 2011 conformance? | |
2481 | #if !defined __cplusplus || __cplusplus < 201103L | |
2482 | # error "Compiler does not advertise C++11 conformance" | |
2483 | #endif | |
2484 | ||
2485 | namespace cxx11test | |
2486 | { | |
2487 | constexpr int get_val() { return 20; } | |
2488 | ||
2489 | struct testinit | |
2490 | { | |
2491 | int i; | |
2492 | double d; | |
2493 | }; | |
2494 | ||
2495 | class delegate | |
2496 | { | |
2497 | public: | |
2498 | delegate(int n) : n(n) {} | |
2499 | delegate(): delegate(2354) {} | |
2500 | ||
2501 | virtual int getval() { return this->n; }; | |
2502 | protected: | |
2503 | int n; | |
2504 | }; | |
2505 | ||
2506 | class overridden : public delegate | |
2507 | { | |
2508 | public: | |
2509 | overridden(int n): delegate(n) {} | |
2510 | virtual int getval() override final { return this->n * 2; } | |
2511 | }; | |
2512 | ||
2513 | class nocopy | |
2514 | { | |
2515 | public: | |
2516 | nocopy(int i): i(i) {} | |
2517 | nocopy() = default; | |
2518 | nocopy(const nocopy&) = delete; | |
2519 | nocopy & operator=(const nocopy&) = delete; | |
2520 | private: | |
2521 | int i; | |
2522 | }; | |
2523 | ||
2524 | // for testing lambda expressions | |
2525 | template <typename Ret, typename Fn> Ret eval(Fn f, Ret v) | |
2526 | { | |
2527 | return f(v); | |
2528 | } | |
2529 | ||
2530 | // for testing variadic templates and trailing return types | |
2531 | template <typename V> auto sum(V first) -> V | |
2532 | { | |
2533 | return first; | |
2534 | } | |
2535 | template <typename V, typename... Args> auto sum(V first, Args... rest) -> V | |
2536 | { | |
2537 | return first + sum(rest...); | |
2538 | } | |
2539 | } | |
2540 | ' | |
2541 | ||
2542 | # Test code for whether the C++ compiler supports C++11 (body of main) | |
2543 | ac_cxx_conftest_cxx11_main=' | |
2544 | { | |
2545 | // Test auto and decltype | |
2546 | auto a1 = 6538; | |
2547 | auto a2 = 48573953.4; | |
2548 | auto a3 = "String literal"; | |
2549 | ||
2550 | int total = 0; | |
2551 | for (auto i = a3; *i; ++i) { total += *i; } | |
2552 | ||
2553 | decltype(a2) a4 = 34895.034; | |
2554 | } | |
2555 | { | |
2556 | // Test constexpr | |
2557 | short sa[cxx11test::get_val()] = { 0 }; | |
2558 | } | |
2559 | { | |
2560 | // Test initializer lists | |
2561 | cxx11test::testinit il = { 4323, 435234.23544 }; | |
2562 | } | |
2563 | { | |
2564 | // Test range-based for | |
2565 | int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, | |
2566 | 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; | |
2567 | for (auto &x : array) { x += 23; } | |
2568 | } | |
2569 | { | |
2570 | // Test lambda expressions | |
2571 | using cxx11test::eval; | |
2572 | assert (eval ([](int x) { return x*2; }, 21) == 42); | |
2573 | double d = 2.0; | |
2574 | assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); | |
2575 | assert (d == 5.0); | |
2576 | assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); | |
2577 | assert (d == 5.0); | |
2578 | } | |
2579 | { | |
2580 | // Test use of variadic templates | |
2581 | using cxx11test::sum; | |
2582 | auto a = sum(1); | |
2583 | auto b = sum(1, 2); | |
2584 | auto c = sum(1.0, 2.0, 3.0); | |
2585 | } | |
2586 | { | |
2587 | // Test constructor delegation | |
2588 | cxx11test::delegate d1; | |
2589 | cxx11test::delegate d2(); | |
2590 | cxx11test::delegate d3(45); | |
2591 | } | |
2592 | { | |
2593 | // Test override and final | |
2594 | cxx11test::overridden o1(55464); | |
2595 | } | |
2596 | { | |
2597 | // Test nullptr | |
2598 | char *c = nullptr; | |
2599 | } | |
2600 | { | |
2601 | // Test template brackets | |
2602 | test_template<::test_template<int>> v(test_template<int>(12)); | |
2603 | } | |
2604 | { | |
2605 | // Unicode literals | |
2606 | char const *utf8 = u8"UTF-8 string \u2500"; | |
2607 | char16_t const *utf16 = u"UTF-8 string \u2500"; | |
2608 | char32_t const *utf32 = U"UTF-32 string \u2500"; | |
2609 | } | |
2610 | ' | |
2611 | ||
2612 | # Test code for whether the C compiler supports C++11 (complete). | |
2613 | ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} | |
2614 | ${ac_cxx_conftest_cxx11_globals} | |
2615 | ||
2616 | int | |
2617 | main (int argc, char **argv) | |
2618 | { | |
2619 | int ok = 0; | |
2620 | ${ac_cxx_conftest_cxx98_main} | |
2621 | ${ac_cxx_conftest_cxx11_main} | |
2622 | return ok; | |
2623 | } | |
2624 | " | |
2625 | ||
2626 | # Test code for whether the C compiler supports C++98 (complete). | |
2627 | ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} | |
2628 | int | |
2629 | main (int argc, char **argv) | |
2630 | { | |
2631 | int ok = 0; | |
2632 | ${ac_cxx_conftest_cxx98_main} | |
2633 | return ok; | |
2634 | } | |
2635 | " | |
2636 | ||
2637 | ||
2638 | # Auxiliary files required by this configure script. | |
2639 | ac_aux_files="install-sh config.guess config.sub" | |
2640 | ||
2641 | # Locations in which to look for auxiliary files. | |
2642 | ac_aux_dir_candidates="${srcdir}/scripts" | |
2643 | ||
2644 | # Search for a directory containing all of the required auxiliary files, | |
2645 | # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. | |
2646 | # If we don't find one directory that contains all the files we need, | |
2647 | # we report the set of missing files from the *first* directory in | |
2648 | # $ac_aux_dir_candidates and give up. | |
2649 | ac_missing_aux_files="" | |
2650 | ac_first_candidate=: | |
2651 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 | |
2652 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2653 | as_found=false | |
2654 | for as_dir in $ac_aux_dir_candidates | |
2655 | do | |
2656 | IFS=$as_save_IFS | |
2657 | case $as_dir in #((( | |
2658 | '') as_dir=./ ;; | |
2659 | */) ;; | |
2660 | *) as_dir=$as_dir/ ;; | |
2661 | esac | |
2662 | as_found=: | |
2663 | ||
2664 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 | |
2665 | ac_aux_dir_found=yes | |
2666 | ac_install_sh= | |
2667 | for ac_aux in $ac_aux_files | |
2668 | do | |
2669 | # As a special case, if "install-sh" is required, that requirement | |
2670 | # can be satisfied by any of "install-sh", "install.sh", or "shtool", | |
2671 | # and $ac_install_sh is set appropriately for whichever one is found. | |
2672 | if test x"$ac_aux" = x"install-sh" | |
2673 | then | |
2674 | if test -f "${as_dir}install-sh"; then | |
2675 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 | |
2676 | ac_install_sh="${as_dir}install-sh -c" | |
2677 | elif test -f "${as_dir}install.sh"; then | |
2678 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 | |
2679 | ac_install_sh="${as_dir}install.sh -c" | |
2680 | elif test -f "${as_dir}shtool"; then | |
2681 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 | |
2682 | ac_install_sh="${as_dir}shtool install -c" | |
2683 | else | |
2684 | ac_aux_dir_found=no | |
2685 | if $ac_first_candidate; then | |
2686 | ac_missing_aux_files="${ac_missing_aux_files} install-sh" | |
2687 | else | |
2688 | break | |
2689 | fi | |
2690 | fi | |
2691 | else | |
2692 | if test -f "${as_dir}${ac_aux}"; then | |
2693 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 | |
2694 | else | |
2695 | ac_aux_dir_found=no | |
2696 | if $ac_first_candidate; then | |
2697 | ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" | |
2698 | else | |
2699 | break | |
2700 | fi | |
2701 | fi | |
2702 | fi | |
2703 | done | |
2704 | if test "$ac_aux_dir_found" = yes; then | |
2705 | ac_aux_dir="$as_dir" | |
2706 | break | |
2707 | fi | |
2708 | ac_first_candidate=false | |
2709 | ||
2710 | as_found=false | |
2711 | done | |
2712 | IFS=$as_save_IFS | |
2713 | if $as_found | |
2714 | then : | |
2715 | ||
2716 | else $as_nop | |
2717 | as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 | |
2718 | fi | |
2719 | ||
2720 | ||
2721 | # These three variables are undocumented and unsupported, | |
2722 | # and are intended to be withdrawn in a future Autoconf release. | |
2723 | # They can cause serious problems if a builder's source tree is in a directory | |
2724 | # whose full name contains unusual characters. | |
2725 | if test -f "${ac_aux_dir}config.guess"; then | |
2726 | ac_config_guess="$SHELL ${ac_aux_dir}config.guess" | |
2727 | fi | |
2728 | if test -f "${ac_aux_dir}config.sub"; then | |
2729 | ac_config_sub="$SHELL ${ac_aux_dir}config.sub" | |
2730 | fi | |
2731 | if test -f "$ac_aux_dir/configure"; then | |
2732 | ac_configure="$SHELL ${ac_aux_dir}configure" | |
2733 | fi | |
2734 | ||
3a12e572 UD |
2735 | # Check that the precious variables saved in the cache have kept the same |
2736 | # value. | |
2737 | ac_cache_corrupted=false | |
26f56c1c | 2738 | for ac_var in $ac_precious_vars; do |
3a12e572 UD |
2739 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2740 | eval ac_new_set=\$ac_env_${ac_var}_set | |
26f56c1c UD |
2741 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2742 | eval ac_new_val=\$ac_env_${ac_var}_value | |
3a12e572 UD |
2743 | case $ac_old_set,$ac_new_set in |
2744 | set,) | |
c6cb8783 SP |
2745 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2746 | printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
3a12e572 UD |
2747 | ac_cache_corrupted=: ;; |
2748 | ,set) | |
c6cb8783 SP |
2749 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2750 | printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
3a12e572 UD |
2751 | ac_cache_corrupted=: ;; |
2752 | ,);; | |
2753 | *) | |
2754 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
322e23db UD |
2755 | # differences in whitespace do not lead to failure. |
2756 | ac_old_val_w=`echo x $ac_old_val` | |
2757 | ac_new_val_w=`echo x $ac_new_val` | |
2758 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
c6cb8783 SP |
2759 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
2760 | printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
322e23db UD |
2761 | ac_cache_corrupted=: |
2762 | else | |
c6cb8783 SP |
2763 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
2764 | printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
322e23db UD |
2765 | eval $ac_var=\$ac_old_val |
2766 | fi | |
c6cb8783 SP |
2767 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
2768 | printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} | |
2769 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2770 | printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} | |
3a12e572 UD |
2771 | fi;; |
2772 | esac | |
2773 | # Pass precious variables to config.status. | |
2774 | if test "$ac_new_set" = set; then | |
2775 | case $ac_new_val in | |
c6cb8783 | 2776 | *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
3a12e572 UD |
2777 | *) ac_arg=$ac_var=$ac_new_val ;; |
2778 | esac | |
2779 | case " $ac_configure_args " in | |
2780 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
b08c89d9 | 2781 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
3a12e572 UD |
2782 | esac |
2783 | fi | |
2784 | done | |
2785 | if $ac_cache_corrupted; then | |
c6cb8783 SP |
2786 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2787 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
2788 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2789 | printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2790 | as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' | |
2791 | and start over" "$LINENO" 5 | |
cd6ede75 | 2792 | fi |
b08c89d9 UD |
2793 | ## -------------------- ## |
2794 | ## Main body of script. ## | |
2795 | ## -------------------- ## | |
cd6ede75 | 2796 | |
b08c89d9 UD |
2797 | ac_ext=c |
2798 | ac_cpp='$CPP $CPPFLAGS' | |
2799 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2800 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2801 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3a12e572 UD |
2802 | |
2803 | ||
cd6ede75 | 2804 | |
b08c89d9 | 2805 | ac_config_headers="$ac_config_headers config.h" |
63bda0c1 | 2806 | |
444518fe | 2807 | |
cd6ede75 | 2808 | |
8b748aed JM |
2809 | |
2810 | ||
2811 | # Check whether --with-pkgversion was given. | |
c6cb8783 SP |
2812 | if test ${with_pkgversion+y} |
2813 | then : | |
8b748aed JM |
2814 | withval=$with_pkgversion; case "$withval" in |
2815 | yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;; | |
2816 | no) PKGVERSION= ;; | |
2817 | *) PKGVERSION="($withval) " ;; | |
2818 | esac | |
c6cb8783 | 2819 | else $as_nop |
8b748aed JM |
2820 | PKGVERSION="(GNU libc) " |
2821 | ||
2822 | fi | |
2823 | ||
2824 | PKGVERSION_TEXI=`echo "$PKGVERSION" | sed 's/@/@@/g'` | |
2825 | ||
2826 | ||
2827 | ||
2828 | ||
2829 | ||
2830 | # Check whether --with-bugurl was given. | |
c6cb8783 SP |
2831 | if test ${with_bugurl+y} |
2832 | then : | |
8b748aed JM |
2833 | withval=$with_bugurl; case "$withval" in |
2834 | yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;; | |
2835 | no) BUGURL= | |
2836 | ;; | |
2837 | *) BUGURL="$withval" | |
2838 | ;; | |
2839 | esac | |
c6cb8783 | 2840 | else $as_nop |
5a82c748 | 2841 | BUGURL="https://www.gnu.org/software/libc/bugs.html" |
8b748aed JM |
2842 | |
2843 | fi | |
2844 | ||
2845 | case ${BUGURL} in | |
2846 | "") | |
2847 | REPORT_BUGS_TO= | |
2848 | REPORT_BUGS_TEXI= | |
2849 | ;; | |
2850 | *) | |
2851 | REPORT_BUGS_TO="<$BUGURL>" | |
2852 | REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} | |
2853 | ;; | |
2854 | esac; | |
2855 | ||
2856 | ||
2857 | ||
2858 | ||
c6cb8783 | 2859 | printf "%s\n" "#define PKGVERSION \"$PKGVERSION\"" >>confdefs.h |
8b748aed JM |
2860 | |
2861 | ||
c6cb8783 | 2862 | printf "%s\n" "#define REPORT_BUGS_TO \"$REPORT_BUGS_TO\"" >>confdefs.h |
8b748aed JM |
2863 | |
2864 | ||
918b5606 L |
2865 | # Glibc should not depend on any header files |
2866 | ||
2867 | ||
bb931195 TS |
2868 | # We require GCC, and by default use its preprocessor. Override AC_PROG_CPP |
2869 | # here to work around the Autoconf issue discussed in | |
a306c790 | 2870 | # <https://sourceware.org/ml/libc-alpha/2013-01/msg00721.html>. |
bb931195 TS |
2871 | # AC_PROG_CPP |
2872 | ||
b5a5da23 TS |
2873 | # We require GCC. Override _AC_PROG_CC_C89 here to work around the Autoconf |
2874 | # issue discussed in | |
a306c790 | 2875 | # <https://sourceware.org/ml/libc-alpha/2013-01/msg00757.html>. |
b5a5da23 TS |
2876 | |
2877 | ||
7967983f RM |
2878 | |
2879 | ||
2880 | subdirs="$subdirs " | |
2881 | ||
2882 | ||
c16a054d | 2883 | |
c6cb8783 SP |
2884 | |
2885 | ||
2886 | # Make sure we can run config.sub. | |
2887 | $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || | |
2888 | as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 | |
2889 | ||
2890 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2891 | printf %s "checking build system type... " >&6; } | |
2892 | if test ${ac_cv_build+y} | |
2893 | then : | |
2894 | printf %s "(cached) " >&6 | |
2895 | else $as_nop | |
c16a054d AS |
2896 | ac_build_alias=$build_alias |
2897 | test "x$ac_build_alias" = x && | |
c6cb8783 | 2898 | ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` |
c16a054d | 2899 | test "x$ac_build_alias" = x && |
4a531bb0 | 2900 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
c6cb8783 SP |
2901 | ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || |
2902 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 | |
c16a054d AS |
2903 | |
2904 | fi | |
c6cb8783 SP |
2905 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
2906 | printf "%s\n" "$ac_cv_build" >&6; } | |
c16a054d AS |
2907 | case $ac_cv_build in |
2908 | *-*-*) ;; | |
4a531bb0 | 2909 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
c16a054d AS |
2910 | esac |
2911 | build=$ac_cv_build | |
2912 | ac_save_IFS=$IFS; IFS='-' | |
2913 | set x $ac_cv_build | |
2914 | shift | |
2915 | build_cpu=$1 | |
2916 | build_vendor=$2 | |
2917 | shift; shift | |
2918 | # Remember, the first character of IFS is used to create $*, | |
2919 | # except with old shells: | |
2920 | build_os=$* | |
2921 | IFS=$ac_save_IFS | |
2922 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2923 | ||
2924 | ||
c6cb8783 SP |
2925 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2926 | printf %s "checking host system type... " >&6; } | |
2927 | if test ${ac_cv_host+y} | |
2928 | then : | |
2929 | printf %s "(cached) " >&6 | |
2930 | else $as_nop | |
c16a054d AS |
2931 | if test "x$host_alias" = x; then |
2932 | ac_cv_host=$ac_cv_build | |
2933 | else | |
c6cb8783 SP |
2934 | ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || |
2935 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 | |
c16a054d AS |
2936 | fi |
2937 | ||
2938 | fi | |
c6cb8783 SP |
2939 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2940 | printf "%s\n" "$ac_cv_host" >&6; } | |
c16a054d AS |
2941 | case $ac_cv_host in |
2942 | *-*-*) ;; | |
4a531bb0 | 2943 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
c16a054d AS |
2944 | esac |
2945 | host=$ac_cv_host | |
2946 | ac_save_IFS=$IFS; IFS='-' | |
2947 | set x $ac_cv_host | |
2948 | shift | |
2949 | host_cpu=$1 | |
2950 | host_vendor=$2 | |
2951 | shift; shift | |
2952 | # Remember, the first character of IFS is used to create $*, | |
2953 | # except with old shells: | |
2954 | host_os=$* | |
2955 | IFS=$ac_save_IFS | |
2956 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2957 | ||
2958 | ||
2959 | ||
c6cb8783 SP |
2960 | |
2961 | ||
2962 | ||
2963 | ||
2964 | ||
2965 | ||
2966 | ||
2967 | ||
2968 | ||
a152f366 UD |
2969 | ac_ext=c |
2970 | ac_cpp='$CPP $CPPFLAGS' | |
2971 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2972 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2973 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2974 | if test -n "$ac_tool_prefix"; then | |
2975 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2976 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
c6cb8783 SP |
2977 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2978 | printf %s "checking for $ac_word... " >&6; } | |
2979 | if test ${ac_cv_prog_CC+y} | |
2980 | then : | |
2981 | printf %s "(cached) " >&6 | |
2982 | else $as_nop | |
a152f366 UD |
2983 | if test -n "$CC"; then |
2984 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2985 | else | |
2986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2987 | for as_dir in $PATH | |
2988 | do | |
2989 | IFS=$as_save_IFS | |
c6cb8783 SP |
2990 | case $as_dir in #((( |
2991 | '') as_dir=./ ;; | |
2992 | */) ;; | |
2993 | *) as_dir=$as_dir/ ;; | |
2994 | esac | |
b08c89d9 | 2995 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 2996 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
a152f366 | 2997 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
c6cb8783 | 2998 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
2999 | break 2 |
3000 | fi | |
3001 | done | |
b08c89d9 | 3002 | done |
a152f366 | 3003 | IFS=$as_save_IFS |
c8f3e6db | 3004 | |
26f56c1c | 3005 | fi |
26f56c1c | 3006 | fi |
a152f366 UD |
3007 | CC=$ac_cv_prog_CC |
3008 | if test -n "$CC"; then | |
c6cb8783 SP |
3009 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3010 | printf "%s\n" "$CC" >&6; } | |
a152f366 | 3011 | else |
c6cb8783 SP |
3012 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3013 | printf "%s\n" "no" >&6; } | |
26f56c1c UD |
3014 | fi |
3015 | ||
e41db95b | 3016 | |
e41db95b | 3017 | fi |
a152f366 UD |
3018 | if test -z "$ac_cv_prog_CC"; then |
3019 | ac_ct_CC=$CC | |
3020 | # Extract the first word of "gcc", so it can be a program name with args. | |
3021 | set dummy gcc; ac_word=$2 | |
c6cb8783 SP |
3022 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3023 | printf %s "checking for $ac_word... " >&6; } | |
3024 | if test ${ac_cv_prog_ac_ct_CC+y} | |
3025 | then : | |
3026 | printf %s "(cached) " >&6 | |
3027 | else $as_nop | |
a152f366 UD |
3028 | if test -n "$ac_ct_CC"; then |
3029 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
a5a0310d | 3030 | else |
a152f366 UD |
3031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3032 | for as_dir in $PATH | |
3033 | do | |
3034 | IFS=$as_save_IFS | |
c6cb8783 SP |
3035 | case $as_dir in #((( |
3036 | '') as_dir=./ ;; | |
3037 | */) ;; | |
3038 | *) as_dir=$as_dir/ ;; | |
3039 | esac | |
b08c89d9 | 3040 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 3041 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
a152f366 | 3042 | ac_cv_prog_ac_ct_CC="gcc" |
c6cb8783 | 3043 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
3044 | break 2 |
3045 | fi | |
3046 | done | |
b08c89d9 | 3047 | done |
a152f366 | 3048 | IFS=$as_save_IFS |
cd6ede75 | 3049 | |
a152f366 UD |
3050 | fi |
3051 | fi | |
3052 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3053 | if test -n "$ac_ct_CC"; then | |
c6cb8783 SP |
3054 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3055 | printf "%s\n" "$ac_ct_CC" >&6; } | |
cd6ede75 | 3056 | else |
c6cb8783 SP |
3057 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3058 | printf "%s\n" "no" >&6; } | |
26f56c1c UD |
3059 | fi |
3060 | ||
a152f366 UD |
3061 | if test "x$ac_ct_CC" = x; then |
3062 | CC="" | |
3063 | else | |
3064 | case $cross_compiling:$ac_tool_warned in | |
3065 | yes:) | |
c6cb8783 SP |
3066 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3067 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
a152f366 UD |
3068 | ac_tool_warned=yes ;; |
3069 | esac | |
3070 | CC=$ac_ct_CC | |
3071 | fi | |
74a30a58 | 3072 | else |
a152f366 | 3073 | CC="$ac_cv_prog_CC" |
26f56c1c UD |
3074 | fi |
3075 | ||
a152f366 UD |
3076 | if test -z "$CC"; then |
3077 | if test -n "$ac_tool_prefix"; then | |
3078 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3079 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
c6cb8783 SP |
3080 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3081 | printf %s "checking for $ac_word... " >&6; } | |
3082 | if test ${ac_cv_prog_CC+y} | |
3083 | then : | |
3084 | printf %s "(cached) " >&6 | |
3085 | else $as_nop | |
a152f366 UD |
3086 | if test -n "$CC"; then |
3087 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3088 | else | |
3089 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3090 | for as_dir in $PATH | |
3091 | do | |
3092 | IFS=$as_save_IFS | |
c6cb8783 SP |
3093 | case $as_dir in #((( |
3094 | '') as_dir=./ ;; | |
3095 | */) ;; | |
3096 | *) as_dir=$as_dir/ ;; | |
3097 | esac | |
b08c89d9 | 3098 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 3099 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
a152f366 | 3100 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
c6cb8783 | 3101 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
3102 | break 2 |
3103 | fi | |
3104 | done | |
b08c89d9 | 3105 | done |
a152f366 | 3106 | IFS=$as_save_IFS |
74a30a58 | 3107 | |
a152f366 UD |
3108 | fi |
3109 | fi | |
3110 | CC=$ac_cv_prog_CC | |
3111 | if test -n "$CC"; then | |
c6cb8783 SP |
3112 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3113 | printf "%s\n" "$CC" >&6; } | |
5af3245a | 3114 | else |
c6cb8783 SP |
3115 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3116 | printf "%s\n" "no" >&6; } | |
26f56c1c UD |
3117 | fi |
3118 | ||
5af3245a | 3119 | |
a152f366 | 3120 | fi |
26f56c1c | 3121 | fi |
a152f366 UD |
3122 | if test -z "$CC"; then |
3123 | # Extract the first word of "cc", so it can be a program name with args. | |
3124 | set dummy cc; ac_word=$2 | |
c6cb8783 SP |
3125 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3126 | printf %s "checking for $ac_word... " >&6; } | |
3127 | if test ${ac_cv_prog_CC+y} | |
3128 | then : | |
3129 | printf %s "(cached) " >&6 | |
3130 | else $as_nop | |
a152f366 UD |
3131 | if test -n "$CC"; then |
3132 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3133 | else | |
3134 | ac_prog_rejected=no | |
3135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3136 | for as_dir in $PATH | |
3137 | do | |
3138 | IFS=$as_save_IFS | |
c6cb8783 SP |
3139 | case $as_dir in #((( |
3140 | '') as_dir=./ ;; | |
3141 | */) ;; | |
3142 | *) as_dir=$as_dir/ ;; | |
3143 | esac | |
b08c89d9 | 3144 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 SP |
3145 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
3146 | if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
a152f366 UD |
3147 | ac_prog_rejected=yes |
3148 | continue | |
3149 | fi | |
3150 | ac_cv_prog_CC="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 |
26f56c1c | 3157 | |
a152f366 UD |
3158 | if test $ac_prog_rejected = yes; then |
3159 | # We found a bogon in the path, so make sure we never use it. | |
3160 | set dummy $ac_cv_prog_CC | |
3161 | shift | |
3162 | if test $# != 0; then | |
3163 | # We chose a different compiler from the bogus one. | |
3164 | # However, it has the same basename, so the bogon will be chosen | |
3165 | # first if we set CC to just the basename; use the full file name. | |
3166 | shift | |
c6cb8783 | 3167 | ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
6b3f2b3d | 3168 | fi |
4442d7e8 | 3169 | fi |
26f56c1c | 3170 | fi |
26f56c1c | 3171 | fi |
a152f366 UD |
3172 | CC=$ac_cv_prog_CC |
3173 | if test -n "$CC"; then | |
c6cb8783 SP |
3174 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3175 | printf "%s\n" "$CC" >&6; } | |
7dbde9db | 3176 | else |
c6cb8783 SP |
3177 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3178 | printf "%s\n" "no" >&6; } | |
26f56c1c UD |
3179 | fi |
3180 | ||
7dbde9db | 3181 | |
26f56c1c | 3182 | fi |
a152f366 UD |
3183 | if test -z "$CC"; then |
3184 | if test -n "$ac_tool_prefix"; then | |
3185 | for ac_prog in cl.exe | |
3186 | do | |
3187 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3188 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
c6cb8783 SP |
3189 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3190 | printf %s "checking for $ac_word... " >&6; } | |
3191 | if test ${ac_cv_prog_CC+y} | |
3192 | then : | |
3193 | printf %s "(cached) " >&6 | |
3194 | else $as_nop | |
a152f366 UD |
3195 | if test -n "$CC"; then |
3196 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
cd6ede75 | 3197 | else |
a152f366 UD |
3198 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3199 | for as_dir in $PATH | |
3200 | do | |
3201 | IFS=$as_save_IFS | |
c6cb8783 SP |
3202 | case $as_dir in #((( |
3203 | '') as_dir=./ ;; | |
3204 | */) ;; | |
3205 | *) as_dir=$as_dir/ ;; | |
3206 | esac | |
b08c89d9 | 3207 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 3208 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
a152f366 | 3209 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
c6cb8783 | 3210 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
3211 | break 2 |
3212 | fi | |
3213 | done | |
b08c89d9 | 3214 | done |
a152f366 | 3215 | IFS=$as_save_IFS |
26f56c1c | 3216 | |
26f56c1c | 3217 | fi |
a152f366 UD |
3218 | fi |
3219 | CC=$ac_cv_prog_CC | |
3220 | if test -n "$CC"; then | |
c6cb8783 SP |
3221 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3222 | printf "%s\n" "$CC" >&6; } | |
650425ce | 3223 | else |
c6cb8783 SP |
3224 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3225 | printf "%s\n" "no" >&6; } | |
26f56c1c UD |
3226 | fi |
3227 | ||
cd6ede75 | 3228 | |
a152f366 UD |
3229 | test -n "$CC" && break |
3230 | done | |
26f56c1c | 3231 | fi |
a152f366 UD |
3232 | if test -z "$CC"; then |
3233 | ac_ct_CC=$CC | |
3234 | for ac_prog in cl.exe | |
3235 | do | |
3236 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3237 | set dummy $ac_prog; ac_word=$2 | |
c6cb8783 SP |
3238 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3239 | printf %s "checking for $ac_word... " >&6; } | |
3240 | if test ${ac_cv_prog_ac_ct_CC+y} | |
3241 | then : | |
3242 | printf %s "(cached) " >&6 | |
3243 | else $as_nop | |
a152f366 UD |
3244 | if test -n "$ac_ct_CC"; then |
3245 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3246 | else | |
3247 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3248 | for as_dir in $PATH | |
3249 | do | |
3250 | IFS=$as_save_IFS | |
c6cb8783 SP |
3251 | case $as_dir in #((( |
3252 | '') as_dir=./ ;; | |
3253 | */) ;; | |
3254 | *) as_dir=$as_dir/ ;; | |
3255 | esac | |
b08c89d9 | 3256 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 3257 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
a152f366 | 3258 | ac_cv_prog_ac_ct_CC="$ac_prog" |
c6cb8783 | 3259 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
3260 | break 2 |
3261 | fi | |
3262 | done | |
b08c89d9 | 3263 | done |
a152f366 | 3264 | IFS=$as_save_IFS |
62ab42d6 UD |
3265 | |
3266 | fi | |
a152f366 UD |
3267 | fi |
3268 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3269 | if test -n "$ac_ct_CC"; then | |
c6cb8783 SP |
3270 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3271 | printf "%s\n" "$ac_ct_CC" >&6; } | |
35f1e827 | 3272 | else |
c6cb8783 SP |
3273 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3274 | printf "%s\n" "no" >&6; } | |
26f56c1c UD |
3275 | fi |
3276 | ||
35f1e827 | 3277 | |
a152f366 UD |
3278 | test -n "$ac_ct_CC" && break |
3279 | done | |
35f1e827 | 3280 | |
a152f366 UD |
3281 | if test "x$ac_ct_CC" = x; then |
3282 | CC="" | |
3283 | else | |
3284 | case $cross_compiling:$ac_tool_warned in | |
3285 | yes:) | |
c6cb8783 SP |
3286 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3287 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3288 | ac_tool_warned=yes ;; | |
3289 | esac | |
3290 | CC=$ac_ct_CC | |
3291 | fi | |
3292 | fi | |
3293 | ||
3294 | fi | |
3295 | if test -z "$CC"; then | |
3296 | if test -n "$ac_tool_prefix"; then | |
3297 | # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. | |
3298 | set dummy ${ac_tool_prefix}clang; ac_word=$2 | |
3299 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3300 | printf %s "checking for $ac_word... " >&6; } | |
3301 | if test ${ac_cv_prog_CC+y} | |
3302 | then : | |
3303 | printf %s "(cached) " >&6 | |
3304 | else $as_nop | |
3305 | if test -n "$CC"; then | |
3306 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3307 | else | |
3308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3309 | for as_dir in $PATH | |
3310 | do | |
3311 | IFS=$as_save_IFS | |
3312 | case $as_dir in #((( | |
3313 | '') as_dir=./ ;; | |
3314 | */) ;; | |
3315 | *) as_dir=$as_dir/ ;; | |
3316 | esac | |
3317 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3318 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3319 | ac_cv_prog_CC="${ac_tool_prefix}clang" | |
3320 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3321 | break 2 | |
3322 | fi | |
3323 | done | |
3324 | done | |
3325 | IFS=$as_save_IFS | |
3326 | ||
3327 | fi | |
3328 | fi | |
3329 | CC=$ac_cv_prog_CC | |
3330 | if test -n "$CC"; then | |
3331 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3332 | printf "%s\n" "$CC" >&6; } | |
3333 | else | |
3334 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3335 | printf "%s\n" "no" >&6; } | |
3336 | fi | |
3337 | ||
3338 | ||
3339 | fi | |
3340 | if test -z "$ac_cv_prog_CC"; then | |
3341 | ac_ct_CC=$CC | |
3342 | # Extract the first word of "clang", so it can be a program name with args. | |
3343 | set dummy clang; ac_word=$2 | |
3344 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3345 | printf %s "checking for $ac_word... " >&6; } | |
3346 | if test ${ac_cv_prog_ac_ct_CC+y} | |
3347 | then : | |
3348 | printf %s "(cached) " >&6 | |
3349 | else $as_nop | |
3350 | if test -n "$ac_ct_CC"; then | |
3351 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3352 | else | |
3353 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3354 | for as_dir in $PATH | |
3355 | do | |
3356 | IFS=$as_save_IFS | |
3357 | case $as_dir in #((( | |
3358 | '') as_dir=./ ;; | |
3359 | */) ;; | |
3360 | *) as_dir=$as_dir/ ;; | |
3361 | esac | |
3362 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3363 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3364 | ac_cv_prog_ac_ct_CC="clang" | |
3365 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3366 | break 2 | |
3367 | fi | |
3368 | done | |
3369 | done | |
3370 | IFS=$as_save_IFS | |
3371 | ||
3372 | fi | |
3373 | fi | |
3374 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3375 | if test -n "$ac_ct_CC"; then | |
3376 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3377 | printf "%s\n" "$ac_ct_CC" >&6; } | |
3378 | else | |
3379 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3380 | printf "%s\n" "no" >&6; } | |
3381 | fi | |
3382 | ||
3383 | if test "x$ac_ct_CC" = x; then | |
3384 | CC="" | |
3385 | else | |
3386 | case $cross_compiling:$ac_tool_warned in | |
3387 | yes:) | |
3388 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3389 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
a152f366 UD |
3390 | ac_tool_warned=yes ;; |
3391 | esac | |
3392 | CC=$ac_ct_CC | |
3393 | fi | |
c6cb8783 SP |
3394 | else |
3395 | CC="$ac_cv_prog_CC" | |
26f56c1c | 3396 | fi |
cd6ede75 | 3397 | |
26f56c1c | 3398 | fi |
8d4b5a8a UD |
3399 | |
3400 | ||
c6cb8783 SP |
3401 | test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3402 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
4a531bb0 L |
3403 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3404 | See \`config.log' for more details" "$LINENO" 5; } | |
26f56c1c | 3405 | |
a152f366 | 3406 | # Provide some information about the compiler. |
c6cb8783 | 3407 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
322e23db UD |
3408 | set X $ac_compile |
3409 | ac_compiler=$2 | |
c6cb8783 | 3410 | for ac_option in --version -v -V -qversion -version; do |
b08c89d9 | 3411 | { { ac_try="$ac_compiler $ac_option >&5" |
a152f366 UD |
3412 | case "(($ac_try" in |
3413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3414 | *) ac_try_echo=$ac_try;; | |
3415 | esac | |
b08c89d9 | 3416 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
c6cb8783 | 3417 | printf "%s\n" "$ac_try_echo"; } >&5 |
b08c89d9 | 3418 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
a152f366 | 3419 | ac_status=$? |
b08c89d9 UD |
3420 | if test -s conftest.err; then |
3421 | sed '10a\ | |
3422 | ... rest of stderr output deleted ... | |
3423 | 10q' conftest.err >conftest.er1 | |
3424 | cat conftest.er1 >&5 | |
3425 | fi | |
3426 | rm -f conftest.er1 conftest.err | |
c6cb8783 | 3427 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
b08c89d9 UD |
3428 | test $ac_status = 0; } |
3429 | done | |
26f56c1c | 3430 | |
a152f366 | 3431 | EXEEXT= |
c6cb8783 SP |
3432 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3433 | printf %s "checking for suffix of object files... " >&6; } | |
3434 | if test ${ac_cv_objext+y} | |
3435 | then : | |
3436 | printf %s "(cached) " >&6 | |
3437 | else $as_nop | |
b08c89d9 | 3438 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a152f366 | 3439 | /* end confdefs.h. */ |
749a9a4f | 3440 | |
a152f366 | 3441 | int |
c6cb8783 | 3442 | main (void) |
a152f366 | 3443 | { |
749a9a4f | 3444 | |
a152f366 UD |
3445 | ; |
3446 | return 0; | |
3447 | } | |
3448 | _ACEOF | |
3449 | rm -f conftest.o conftest.obj | |
b08c89d9 | 3450 | if { { ac_try="$ac_compile" |
a152f366 UD |
3451 | case "(($ac_try" in |
3452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3453 | *) ac_try_echo=$ac_try;; | |
3454 | esac | |
b08c89d9 | 3455 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
c6cb8783 | 3456 | printf "%s\n" "$ac_try_echo"; } >&5 |
a152f366 UD |
3457 | (eval "$ac_compile") 2>&5 |
3458 | ac_status=$? | |
c6cb8783 SP |
3459 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3460 | test $ac_status = 0; } | |
3461 | then : | |
a152f366 UD |
3462 | for ac_file in conftest.o conftest.obj conftest.*; do |
3463 | test -f "$ac_file" || continue; | |
3464 | case $ac_file in | |
322e23db | 3465 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
a152f366 UD |
3466 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3467 | break;; | |
3468 | esac | |
3469 | done | |
c6cb8783 SP |
3470 | else $as_nop |
3471 | printf "%s\n" "$as_me: failed program was:" >&5 | |
a152f366 | 3472 | sed 's/^/| /' conftest.$ac_ext >&5 |
26f56c1c | 3473 | |
c6cb8783 SP |
3474 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3475 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
4a531bb0 L |
3476 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3477 | See \`config.log' for more details" "$LINENO" 5; } | |
26f56c1c | 3478 | fi |
a152f366 | 3479 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
cd6ede75 | 3480 | fi |
c6cb8783 SP |
3481 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3482 | printf "%s\n" "$ac_cv_objext" >&6; } | |
a152f366 UD |
3483 | OBJEXT=$ac_cv_objext |
3484 | ac_objext=$OBJEXT | |
c6cb8783 SP |
3485 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
3486 | printf %s "checking whether the compiler supports GNU C... " >&6; } | |
3487 | if test ${ac_cv_c_compiler_gnu+y} | |
3488 | then : | |
3489 | printf %s "(cached) " >&6 | |
3490 | else $as_nop | |
b08c89d9 | 3491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a152f366 | 3492 | /* end confdefs.h. */ |
73237de3 | 3493 | |
a152f366 | 3494 | int |
c6cb8783 | 3495 | main (void) |
a152f366 UD |
3496 | { |
3497 | #ifndef __GNUC__ | |
3498 | choke me | |
3499 | #endif | |
73237de3 | 3500 | |
a152f366 UD |
3501 | ; |
3502 | return 0; | |
3503 | } | |
3504 | _ACEOF | |
c6cb8783 SP |
3505 | if ac_fn_c_try_compile "$LINENO" |
3506 | then : | |
a152f366 | 3507 | ac_compiler_gnu=yes |
c6cb8783 | 3508 | else $as_nop |
b08c89d9 | 3509 | ac_compiler_gnu=no |
26f56c1c | 3510 | fi |
c6cb8783 | 3511 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
a152f366 | 3512 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
958f238f | 3513 | |
26f56c1c | 3514 | fi |
c6cb8783 SP |
3515 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3516 | printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } | |
3517 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3518 | ||
322e23db UD |
3519 | if test $ac_compiler_gnu = yes; then |
3520 | GCC=yes | |
3521 | else | |
3522 | GCC= | |
3523 | fi | |
c6cb8783 | 3524 | ac_test_CFLAGS=${CFLAGS+y} |
a152f366 | 3525 | ac_save_CFLAGS=$CFLAGS |
c6cb8783 SP |
3526 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3527 | printf %s "checking whether $CC accepts -g... " >&6; } | |
3528 | if test ${ac_cv_prog_cc_g+y} | |
3529 | then : | |
3530 | printf %s "(cached) " >&6 | |
3531 | else $as_nop | |
a152f366 UD |
3532 | ac_save_c_werror_flag=$ac_c_werror_flag |
3533 | ac_c_werror_flag=yes | |
3534 | ac_cv_prog_cc_g=no | |
3535 | CFLAGS="-g" | |
b08c89d9 | 3536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a152f366 | 3537 | /* end confdefs.h. */ |
26f56c1c | 3538 | |
a152f366 | 3539 | int |
c6cb8783 | 3540 | main (void) |
a152f366 | 3541 | { |
958f238f | 3542 | |
a152f366 UD |
3543 | ; |
3544 | return 0; | |
3545 | } | |
3546 | _ACEOF | |
c6cb8783 SP |
3547 | if ac_fn_c_try_compile "$LINENO" |
3548 | then : | |
a152f366 | 3549 | ac_cv_prog_cc_g=yes |
c6cb8783 | 3550 | else $as_nop |
b08c89d9 UD |
3551 | CFLAGS="" |
3552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a152f366 | 3553 | /* end confdefs.h. */ |
425ce2ed | 3554 | |
a152f366 | 3555 | int |
c6cb8783 | 3556 | main (void) |
a152f366 | 3557 | { |
425ce2ed | 3558 | |
a152f366 UD |
3559 | ; |
3560 | return 0; | |
3561 | } | |
3562 | _ACEOF | |
c6cb8783 SP |
3563 | if ac_fn_c_try_compile "$LINENO" |
3564 | then : | |
425ce2ed | 3565 | |
c6cb8783 | 3566 | else $as_nop |
b08c89d9 | 3567 | ac_c_werror_flag=$ac_save_c_werror_flag |
a152f366 | 3568 | CFLAGS="-g" |
b08c89d9 | 3569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a152f366 | 3570 | /* end confdefs.h. */ |
425ce2ed | 3571 | |
a152f366 | 3572 | int |
c6cb8783 | 3573 | main (void) |
a152f366 | 3574 | { |
425ce2ed | 3575 | |
a152f366 UD |
3576 | ; |
3577 | return 0; | |
3578 | } | |
3579 | _ACEOF | |
c6cb8783 SP |
3580 | if ac_fn_c_try_compile "$LINENO" |
3581 | then : | |
a152f366 | 3582 | ac_cv_prog_cc_g=yes |
ff886b82 | 3583 | fi |
c6cb8783 | 3584 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
ff886b82 | 3585 | fi |
c6cb8783 | 3586 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
a152f366 | 3587 | fi |
c6cb8783 | 3588 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
a152f366 | 3589 | ac_c_werror_flag=$ac_save_c_werror_flag |
ff886b82 | 3590 | fi |
c6cb8783 SP |
3591 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3592 | printf "%s\n" "$ac_cv_prog_cc_g" >&6; } | |
3593 | if test $ac_test_CFLAGS; then | |
a152f366 UD |
3594 | CFLAGS=$ac_save_CFLAGS |
3595 | elif test $ac_cv_prog_cc_g = yes; then | |
3596 | if test "$GCC" = yes; then | |
3597 | CFLAGS="-g -O2" | |
3598 | else | |
3599 | CFLAGS="-g" | |
3600 | fi | |
ff886b82 | 3601 | else |
a152f366 UD |
3602 | if test "$GCC" = yes; then |
3603 | CFLAGS="-O2" | |
3604 | else | |
3605 | CFLAGS= | |
ff886b82 | 3606 | fi |
ff886b82 | 3607 | fi |
c6cb8783 SP |
3608 | ac_prog_cc_stdc=no |
3609 | if test x$ac_prog_cc_stdc = xno | |
3610 | then : | |
3611 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 | |
3612 | printf %s "checking for $CC option to enable C11 features... " >&6; } | |
3613 | if test ${ac_cv_prog_cc_c11+y} | |
3614 | then : | |
3615 | printf %s "(cached) " >&6 | |
3616 | else $as_nop | |
3617 | ac_cv_prog_cc_c11=no | |
3618 | ac_save_CC=$CC | |
3619 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3620 | /* end confdefs.h. */ | |
3621 | $ac_c_conftest_c11_program | |
3622 | _ACEOF | |
3623 | for ac_arg in '' -std=gnu11 | |
3624 | do | |
3625 | CC="$ac_save_CC $ac_arg" | |
3626 | if ac_fn_c_try_compile "$LINENO" | |
3627 | then : | |
3628 | ac_cv_prog_cc_c11=$ac_arg | |
3629 | fi | |
3630 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
3631 | test "x$ac_cv_prog_cc_c11" != "xno" && break | |
3632 | done | |
3633 | rm -f conftest.$ac_ext | |
3634 | CC=$ac_save_CC | |
3635 | fi | |
3636 | ||
3637 | if test "x$ac_cv_prog_cc_c11" = xno | |
3638 | then : | |
3639 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3640 | printf "%s\n" "unsupported" >&6; } | |
3641 | else $as_nop | |
3642 | if test "x$ac_cv_prog_cc_c11" = x | |
3643 | then : | |
3644 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3645 | printf "%s\n" "none needed" >&6; } | |
3646 | else $as_nop | |
3647 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 | |
3648 | printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } | |
3649 | CC="$CC $ac_cv_prog_cc_c11" | |
3650 | fi | |
3651 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 | |
3652 | ac_prog_cc_stdc=c11 | |
3653 | fi | |
3654 | fi | |
3655 | if test x$ac_prog_cc_stdc = xno | |
3656 | then : | |
3657 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 | |
3658 | printf %s "checking for $CC option to enable C99 features... " >&6; } | |
3659 | if test ${ac_cv_prog_cc_c99+y} | |
3660 | then : | |
3661 | printf %s "(cached) " >&6 | |
3662 | else $as_nop | |
3663 | ac_cv_prog_cc_c99=no | |
3664 | ac_save_CC=$CC | |
3665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3666 | /* end confdefs.h. */ | |
3667 | $ac_c_conftest_c99_program | |
3668 | _ACEOF | |
3669 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= | |
3670 | do | |
3671 | CC="$ac_save_CC $ac_arg" | |
3672 | if ac_fn_c_try_compile "$LINENO" | |
3673 | then : | |
3674 | ac_cv_prog_cc_c99=$ac_arg | |
3675 | fi | |
3676 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
3677 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
3678 | done | |
3679 | rm -f conftest.$ac_ext | |
3680 | CC=$ac_save_CC | |
3681 | fi | |
3682 | ||
3683 | if test "x$ac_cv_prog_cc_c99" = xno | |
3684 | then : | |
3685 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3686 | printf "%s\n" "unsupported" >&6; } | |
3687 | else $as_nop | |
3688 | if test "x$ac_cv_prog_cc_c99" = x | |
3689 | then : | |
3690 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3691 | printf "%s\n" "none needed" >&6; } | |
3692 | else $as_nop | |
3693 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
3694 | printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } | |
3695 | CC="$CC $ac_cv_prog_cc_c99" | |
3696 | fi | |
3697 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 | |
3698 | ac_prog_cc_stdc=c99 | |
3699 | fi | |
3700 | fi | |
3701 | if test x$ac_prog_cc_stdc = xno | |
3702 | then : | |
3703 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 | |
3704 | printf %s "checking for $CC option to enable C89 features... " >&6; } | |
3705 | if test ${ac_cv_prog_cc_c89+y} | |
3706 | then : | |
3707 | printf %s "(cached) " >&6 | |
3708 | else $as_nop | |
3709 | ac_cv_prog_cc_c89=no | |
3710 | ac_save_CC=$CC | |
3711 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3712 | /* end confdefs.h. */ | |
3713 | $ac_c_conftest_c89_program | |
3714 | _ACEOF | |
3715 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3716 | do | |
3717 | CC="$ac_save_CC $ac_arg" | |
3718 | if ac_fn_c_try_compile "$LINENO" | |
3719 | then : | |
3720 | ac_cv_prog_cc_c89=$ac_arg | |
3721 | fi | |
3722 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
3723 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3724 | done | |
3725 | rm -f conftest.$ac_ext | |
3726 | CC=$ac_save_CC | |
3727 | fi | |
3728 | ||
3729 | if test "x$ac_cv_prog_cc_c89" = xno | |
3730 | then : | |
3731 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3732 | printf "%s\n" "unsupported" >&6; } | |
3733 | else $as_nop | |
3734 | if test "x$ac_cv_prog_cc_c89" = x | |
3735 | then : | |
3736 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3737 | printf "%s\n" "none needed" >&6; } | |
3738 | else $as_nop | |
3739 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3740 | printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } | |
3741 | CC="$CC $ac_cv_prog_cc_c89" | |
3742 | fi | |
3743 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 | |
3744 | ac_prog_cc_stdc=c89 | |
3745 | fi | |
3746 | fi | |
a152f366 UD |
3747 | |
3748 | ac_ext=c | |
3749 | ac_cpp='$CPP $CPPFLAGS' | |
3750 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3751 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3752 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3753 | ||
3754 | if test $host != $build; then | |
3755 | for ac_prog in gcc cc | |
3756 | do | |
3757 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3758 | set dummy $ac_prog; ac_word=$2 | |
c6cb8783 SP |
3759 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3760 | printf %s "checking for $ac_word... " >&6; } | |
3761 | if test ${ac_cv_prog_BUILD_CC+y} | |
3762 | then : | |
3763 | printf %s "(cached) " >&6 | |
3764 | else $as_nop | |
a152f366 UD |
3765 | if test -n "$BUILD_CC"; then |
3766 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. | |
ff886b82 UD |
3767 | else |
3768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3769 | for as_dir in $PATH | |
3770 | do | |
3771 | IFS=$as_save_IFS | |
c6cb8783 SP |
3772 | case $as_dir in #((( |
3773 | '') as_dir=./ ;; | |
3774 | */) ;; | |
3775 | *) as_dir=$as_dir/ ;; | |
3776 | esac | |
b08c89d9 | 3777 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 3778 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
a152f366 | 3779 | ac_cv_prog_BUILD_CC="$ac_prog" |
c6cb8783 | 3780 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
ff886b82 UD |
3781 | break 2 |
3782 | fi | |
3783 | done | |
b08c89d9 | 3784 | done |
ff886b82 UD |
3785 | IFS=$as_save_IFS |
3786 | ||
3787 | fi | |
3788 | fi | |
a152f366 UD |
3789 | BUILD_CC=$ac_cv_prog_BUILD_CC |
3790 | if test -n "$BUILD_CC"; then | |
c6cb8783 SP |
3791 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 |
3792 | printf "%s\n" "$BUILD_CC" >&6; } | |
ff886b82 | 3793 | else |
c6cb8783 SP |
3794 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3795 | printf "%s\n" "no" >&6; } | |
ff886b82 UD |
3796 | fi |
3797 | ||
3798 | ||
a152f366 | 3799 | test -n "$BUILD_CC" && break |
ff886b82 | 3800 | done |
ff886b82 UD |
3801 | |
3802 | fi | |
ff886b82 | 3803 | |
a152f366 UD |
3804 | # On Suns, sometimes $CPP names a directory. |
3805 | if test -n "$CPP" && test -d "$CPP"; then | |
3806 | CPP= | |
ff886b82 | 3807 | fi |
a152f366 | 3808 | if test -z "$CPP"; then |
bb931195 | 3809 | CPP="$CC -E" |
ff886b82 | 3810 | fi |
a152f366 | 3811 | |
e4693aa7 | 3812 | |
a152f366 | 3813 | # We need the C++ compiler only for testing. |
c6cb8783 SP |
3814 | |
3815 | ||
3816 | ||
3817 | ||
3818 | ||
3819 | ||
a152f366 UD |
3820 | ac_ext=cpp |
3821 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3822 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3823 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3824 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3825 | if test -z "$CXX"; then | |
3826 | if test -n "$CCC"; then | |
3827 | CXX=$CCC | |
3828 | else | |
3829 | if test -n "$ac_tool_prefix"; then | |
c6cb8783 | 3830 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ |
a152f366 UD |
3831 | do |
3832 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3833 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
c6cb8783 SP |
3834 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3835 | printf %s "checking for $ac_word... " >&6; } | |
3836 | if test ${ac_cv_prog_CXX+y} | |
3837 | then : | |
3838 | printf %s "(cached) " >&6 | |
3839 | else $as_nop | |
a152f366 UD |
3840 | if test -n "$CXX"; then |
3841 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
3842 | else | |
3843 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3844 | for as_dir in $PATH | |
3845 | do | |
3846 | IFS=$as_save_IFS | |
c6cb8783 SP |
3847 | case $as_dir in #((( |
3848 | '') as_dir=./ ;; | |
3849 | */) ;; | |
3850 | *) as_dir=$as_dir/ ;; | |
3851 | esac | |
b08c89d9 | 3852 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 3853 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
a152f366 | 3854 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
c6cb8783 | 3855 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
3856 | break 2 |
3857 | fi | |
3858 | done | |
b08c89d9 | 3859 | done |
a152f366 UD |
3860 | IFS=$as_save_IFS |
3861 | ||
3862 | fi | |
3863 | fi | |
3864 | CXX=$ac_cv_prog_CXX | |
3865 | if test -n "$CXX"; then | |
c6cb8783 SP |
3866 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
3867 | printf "%s\n" "$CXX" >&6; } | |
a152f366 | 3868 | else |
c6cb8783 SP |
3869 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3870 | printf "%s\n" "no" >&6; } | |
a152f366 UD |
3871 | fi |
3872 | ||
3873 | ||
3874 | test -n "$CXX" && break | |
3875 | done | |
3876 | fi | |
3877 | if test -z "$CXX"; then | |
3878 | ac_ct_CXX=$CXX | |
c6cb8783 | 3879 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ |
a152f366 UD |
3880 | do |
3881 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3882 | set dummy $ac_prog; ac_word=$2 | |
c6cb8783 SP |
3883 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3884 | printf %s "checking for $ac_word... " >&6; } | |
3885 | if test ${ac_cv_prog_ac_ct_CXX+y} | |
3886 | then : | |
3887 | printf %s "(cached) " >&6 | |
3888 | else $as_nop | |
a152f366 UD |
3889 | if test -n "$ac_ct_CXX"; then |
3890 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
3891 | else | |
3892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3893 | for as_dir in $PATH | |
3894 | do | |
3895 | IFS=$as_save_IFS | |
c6cb8783 SP |
3896 | case $as_dir in #((( |
3897 | '') as_dir=./ ;; | |
3898 | */) ;; | |
3899 | *) as_dir=$as_dir/ ;; | |
3900 | esac | |
b08c89d9 | 3901 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 3902 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
a152f366 | 3903 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
c6cb8783 | 3904 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
3905 | break 2 |
3906 | fi | |
3907 | done | |
b08c89d9 | 3908 | done |
a152f366 UD |
3909 | IFS=$as_save_IFS |
3910 | ||
3911 | fi | |
3912 | fi | |
3913 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
3914 | if test -n "$ac_ct_CXX"; then | |
c6cb8783 SP |
3915 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
3916 | printf "%s\n" "$ac_ct_CXX" >&6; } | |
a152f366 | 3917 | else |
c6cb8783 SP |
3918 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3919 | printf "%s\n" "no" >&6; } | |
a152f366 UD |
3920 | fi |
3921 | ||
3922 | ||
3923 | test -n "$ac_ct_CXX" && break | |
3924 | done | |
3925 | ||
3926 | if test "x$ac_ct_CXX" = x; then | |
3927 | CXX="g++" | |
3928 | else | |
3929 | case $cross_compiling:$ac_tool_warned in | |
3930 | yes:) | |
c6cb8783 SP |
3931 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3932 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
a152f366 UD |
3933 | ac_tool_warned=yes ;; |
3934 | esac | |
3935 | CXX=$ac_ct_CXX | |
3936 | fi | |
3937 | fi | |
3938 | ||
3939 | fi | |
3940 | fi | |
3941 | # Provide some information about the compiler. | |
c6cb8783 | 3942 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
322e23db UD |
3943 | set X $ac_compile |
3944 | ac_compiler=$2 | |
b08c89d9 UD |
3945 | for ac_option in --version -v -V -qversion; do |
3946 | { { ac_try="$ac_compiler $ac_option >&5" | |
a152f366 UD |
3947 | case "(($ac_try" in |
3948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3949 | *) ac_try_echo=$ac_try;; | |
3950 | esac | |
b08c89d9 | 3951 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
c6cb8783 | 3952 | printf "%s\n" "$ac_try_echo"; } >&5 |
b08c89d9 | 3953 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
a152f366 | 3954 | ac_status=$? |
b08c89d9 UD |
3955 | if test -s conftest.err; then |
3956 | sed '10a\ | |
3957 | ... rest of stderr output deleted ... | |
3958 | 10q' conftest.err >conftest.er1 | |
3959 | cat conftest.er1 >&5 | |
3960 | fi | |
3961 | rm -f conftest.er1 conftest.err | |
c6cb8783 | 3962 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
b08c89d9 UD |
3963 | test $ac_status = 0; } |
3964 | done | |
a152f366 | 3965 | |
c6cb8783 SP |
3966 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 |
3967 | printf %s "checking whether the compiler supports GNU C++... " >&6; } | |
3968 | if test ${ac_cv_cxx_compiler_gnu+y} | |
3969 | then : | |
3970 | printf %s "(cached) " >&6 | |
3971 | else $as_nop | |
b08c89d9 | 3972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ff886b82 UD |
3973 | /* end confdefs.h. */ |
3974 | ||
3975 | int | |
c6cb8783 | 3976 | main (void) |
ff886b82 | 3977 | { |
a152f366 UD |
3978 | #ifndef __GNUC__ |
3979 | choke me | |
3980 | #endif | |
ff886b82 UD |
3981 | |
3982 | ; | |
3983 | return 0; | |
3984 | } | |
3985 | _ACEOF | |
c6cb8783 SP |
3986 | if ac_fn_cxx_try_compile "$LINENO" |
3987 | then : | |
a152f366 | 3988 | ac_compiler_gnu=yes |
c6cb8783 | 3989 | else $as_nop |
b08c89d9 | 3990 | ac_compiler_gnu=no |
ff886b82 | 3991 | fi |
c6cb8783 | 3992 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
a152f366 | 3993 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
ff886b82 | 3994 | |
ff886b82 | 3995 | fi |
c6cb8783 SP |
3996 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
3997 | printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } | |
3998 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3999 | ||
322e23db UD |
4000 | if test $ac_compiler_gnu = yes; then |
4001 | GXX=yes | |
4002 | else | |
4003 | GXX= | |
4004 | fi | |
c6cb8783 | 4005 | ac_test_CXXFLAGS=${CXXFLAGS+y} |
a152f366 | 4006 | ac_save_CXXFLAGS=$CXXFLAGS |
c6cb8783 SP |
4007 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
4008 | printf %s "checking whether $CXX accepts -g... " >&6; } | |
4009 | if test ${ac_cv_prog_cxx_g+y} | |
4010 | then : | |
4011 | printf %s "(cached) " >&6 | |
4012 | else $as_nop | |
a152f366 UD |
4013 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
4014 | ac_cxx_werror_flag=yes | |
4015 | ac_cv_prog_cxx_g=no | |
4016 | CXXFLAGS="-g" | |
b08c89d9 | 4017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ff886b82 | 4018 | /* end confdefs.h. */ |
ff886b82 | 4019 | |
ff886b82 | 4020 | int |
c6cb8783 | 4021 | main (void) |
ff886b82 | 4022 | { |
a152f366 | 4023 | |
ff886b82 UD |
4024 | ; |
4025 | return 0; | |
4026 | } | |
4027 | _ACEOF | |
c6cb8783 SP |
4028 | if ac_fn_cxx_try_compile "$LINENO" |
4029 | then : | |
a152f366 | 4030 | ac_cv_prog_cxx_g=yes |
c6cb8783 | 4031 | else $as_nop |
b08c89d9 UD |
4032 | CXXFLAGS="" |
4033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a152f366 | 4034 | /* end confdefs.h. */ |
ff886b82 | 4035 | |
a152f366 | 4036 | int |
c6cb8783 | 4037 | main (void) |
a152f366 | 4038 | { |
ff886b82 | 4039 | |
a152f366 UD |
4040 | ; |
4041 | return 0; | |
4042 | } | |
ff886b82 | 4043 | _ACEOF |
c6cb8783 SP |
4044 | if ac_fn_cxx_try_compile "$LINENO" |
4045 | then : | |
ff886b82 | 4046 | |
c6cb8783 | 4047 | else $as_nop |
b08c89d9 | 4048 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
a152f366 | 4049 | CXXFLAGS="-g" |
b08c89d9 | 4050 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ff886b82 | 4051 | /* end confdefs.h. */ |
a152f366 | 4052 | |
ff886b82 | 4053 | int |
c6cb8783 | 4054 | main (void) |
ff886b82 | 4055 | { |
a152f366 | 4056 | |
ff886b82 UD |
4057 | ; |
4058 | return 0; | |
4059 | } | |
4060 | _ACEOF | |
c6cb8783 SP |
4061 | if ac_fn_cxx_try_compile "$LINENO" |
4062 | then : | |
a152f366 | 4063 | ac_cv_prog_cxx_g=yes |
ff886b82 | 4064 | fi |
c6cb8783 | 4065 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
a152f366 | 4066 | fi |
c6cb8783 | 4067 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
a152f366 | 4068 | fi |
c6cb8783 | 4069 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
a152f366 UD |
4070 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
4071 | fi | |
c6cb8783 SP |
4072 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
4073 | printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } | |
4074 | if test $ac_test_CXXFLAGS; then | |
a152f366 UD |
4075 | CXXFLAGS=$ac_save_CXXFLAGS |
4076 | elif test $ac_cv_prog_cxx_g = yes; then | |
4077 | if test "$GXX" = yes; then | |
4078 | CXXFLAGS="-g -O2" | |
4079 | else | |
4080 | CXXFLAGS="-g" | |
4081 | fi | |
3a12e572 | 4082 | else |
a152f366 UD |
4083 | if test "$GXX" = yes; then |
4084 | CXXFLAGS="-O2" | |
4085 | else | |
4086 | CXXFLAGS= | |
4087 | fi | |
3a12e572 | 4088 | fi |
c6cb8783 SP |
4089 | ac_prog_cxx_stdcxx=no |
4090 | if test x$ac_prog_cxx_stdcxx = xno | |
4091 | then : | |
4092 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 | |
4093 | printf %s "checking for $CXX option to enable C++11 features... " >&6; } | |
4094 | if test ${ac_cv_prog_cxx_cxx11+y} | |
4095 | then : | |
4096 | printf %s "(cached) " >&6 | |
4097 | else $as_nop | |
4098 | ac_cv_prog_cxx_cxx11=no | |
4099 | ac_save_CXX=$CXX | |
4100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4101 | /* end confdefs.h. */ | |
4102 | $ac_cxx_conftest_cxx11_program | |
4103 | _ACEOF | |
4104 | for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA | |
4105 | do | |
4106 | CXX="$ac_save_CXX $ac_arg" | |
4107 | if ac_fn_cxx_try_compile "$LINENO" | |
4108 | then : | |
4109 | ac_cv_prog_cxx_cxx11=$ac_arg | |
4110 | fi | |
4111 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
4112 | test "x$ac_cv_prog_cxx_cxx11" != "xno" && break | |
4113 | done | |
4114 | rm -f conftest.$ac_ext | |
4115 | CXX=$ac_save_CXX | |
4116 | fi | |
4117 | ||
4118 | if test "x$ac_cv_prog_cxx_cxx11" = xno | |
4119 | then : | |
4120 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4121 | printf "%s\n" "unsupported" >&6; } | |
4122 | else $as_nop | |
4123 | if test "x$ac_cv_prog_cxx_cxx11" = x | |
4124 | then : | |
4125 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4126 | printf "%s\n" "none needed" >&6; } | |
4127 | else $as_nop | |
4128 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 | |
4129 | printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } | |
4130 | CXX="$CXX $ac_cv_prog_cxx_cxx11" | |
4131 | fi | |
4132 | ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 | |
4133 | ac_prog_cxx_stdcxx=cxx11 | |
4134 | fi | |
4135 | fi | |
4136 | if test x$ac_prog_cxx_stdcxx = xno | |
4137 | then : | |
4138 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 | |
4139 | printf %s "checking for $CXX option to enable C++98 features... " >&6; } | |
4140 | if test ${ac_cv_prog_cxx_cxx98+y} | |
4141 | then : | |
4142 | printf %s "(cached) " >&6 | |
4143 | else $as_nop | |
4144 | ac_cv_prog_cxx_cxx98=no | |
4145 | ac_save_CXX=$CXX | |
4146 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4147 | /* end confdefs.h. */ | |
4148 | $ac_cxx_conftest_cxx98_program | |
4149 | _ACEOF | |
4150 | for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA | |
4151 | do | |
4152 | CXX="$ac_save_CXX $ac_arg" | |
4153 | if ac_fn_cxx_try_compile "$LINENO" | |
4154 | then : | |
4155 | ac_cv_prog_cxx_cxx98=$ac_arg | |
4156 | fi | |
4157 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
4158 | test "x$ac_cv_prog_cxx_cxx98" != "xno" && break | |
4159 | done | |
4160 | rm -f conftest.$ac_ext | |
4161 | CXX=$ac_save_CXX | |
4162 | fi | |
4163 | ||
4164 | if test "x$ac_cv_prog_cxx_cxx98" = xno | |
4165 | then : | |
4166 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4167 | printf "%s\n" "unsupported" >&6; } | |
4168 | else $as_nop | |
4169 | if test "x$ac_cv_prog_cxx_cxx98" = x | |
4170 | then : | |
4171 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4172 | printf "%s\n" "none needed" >&6; } | |
4173 | else $as_nop | |
4174 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 | |
4175 | printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } | |
4176 | CXX="$CXX $ac_cv_prog_cxx_cxx98" | |
4177 | fi | |
4178 | ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 | |
4179 | ac_prog_cxx_stdcxx=cxx98 | |
4180 | fi | |
4181 | fi | |
4182 | ||
a152f366 UD |
4183 | ac_ext=c |
4184 | ac_cpp='$CPP $CPPFLAGS' | |
4185 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4186 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4187 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
26f56c1c | 4188 | |
e4693aa7 | 4189 | # It's useless to us if it can't link programs (e.g. missing -lstdc++). |
0cae3f4b | 4190 | |
c6cb8783 SP |
4191 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX can link programs" >&5 |
4192 | printf %s "checking whether $CXX can link programs... " >&6; } | |
4193 | if test ${libc_cv_cxx_link_ok+y} | |
4194 | then : | |
4195 | printf %s "(cached) " >&6 | |
4196 | else $as_nop | |
e4693aa7 RM |
4197 | ac_ext=cpp |
4198 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4199 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4200 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4201 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
0cae3f4b | 4202 | |
d337ceb7 | 4203 | # Default, dynamic case. |
e4693aa7 RM |
4204 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4205 | /* end confdefs.h. */ | |
0cae3f4b | 4206 | |
e4693aa7 | 4207 | int |
c6cb8783 | 4208 | main (void) |
e4693aa7 | 4209 | { |
0cae3f4b | 4210 | |
e4693aa7 RM |
4211 | ; |
4212 | return 0; | |
4213 | } | |
4214 | _ACEOF | |
c6cb8783 SP |
4215 | if ac_fn_cxx_try_link "$LINENO" |
4216 | then : | |
e4693aa7 | 4217 | libc_cv_cxx_link_ok=yes |
c6cb8783 | 4218 | else $as_nop |
e4693aa7 | 4219 | libc_cv_cxx_link_ok=no |
0cae3f4b | 4220 | fi |
c6cb8783 | 4221 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
e4693aa7 | 4222 | conftest$ac_exeext conftest.$ac_ext |
d337ceb7 FW |
4223 | # Static case. |
4224 | old_LDFLAGS="$LDFLAGS" | |
4225 | LDFLAGS="$LDFLAGS -static" | |
4226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4227 | /* end confdefs.h. */ | |
4228 | ||
4229 | #include <iostream> | |
4230 | ||
4231 | int | |
4232 | main() | |
4233 | { | |
4234 | std::cout << "Hello, world!"; | |
4235 | return 0; | |
4236 | } | |
4237 | ||
4238 | _ACEOF | |
c6cb8783 SP |
4239 | if ac_fn_cxx_try_link "$LINENO" |
4240 | then : | |
d337ceb7 | 4241 | |
c6cb8783 | 4242 | else $as_nop |
d337ceb7 FW |
4243 | libc_cv_cxx_link_ok=no |
4244 | fi | |
c6cb8783 | 4245 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
d337ceb7 FW |
4246 | conftest$ac_exeext conftest.$ac_ext |
4247 | LDFLAGS="$old_LDFLAGS" | |
e4693aa7 RM |
4248 | ac_ext=c |
4249 | ac_cpp='$CPP $CPPFLAGS' | |
4250 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4251 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4252 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
0cae3f4b | 4253 | |
0cae3f4b | 4254 | fi |
c6cb8783 SP |
4255 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_link_ok" >&5 |
4256 | printf "%s\n" "$libc_cv_cxx_link_ok" >&6; } | |
4257 | if test $libc_cv_cxx_link_ok != yes | |
4258 | then : | |
e4693aa7 RM |
4259 | CXX= |
4260 | fi | |
26f56c1c | 4261 | |
db340c90 | 4262 | if test "`cd $srcdir; pwd -P`" = "`pwd -P`"; then |
4a531bb0 | 4263 | as_fn_error $? "you must configure in a separate build directory" "$LINENO" 5 |
26f56c1c | 4264 | fi |
3a12e572 | 4265 | |
a152f366 UD |
4266 | # This will get text that should go into config.make. |
4267 | config_vars= | |
4268 | ||
4269 | # Check for a --with-gd argument and set libgd-LDFLAGS in config.make. | |
4270 | ||
4271 | # Check whether --with-gd was given. | |
c6cb8783 SP |
4272 | if test ${with_gd+y} |
4273 | then : | |
a152f366 UD |
4274 | withval=$with_gd; case "$with_gd" in |
4275 | yes|''|no) ;; | |
4276 | *) libgd_include="-I$withval/include" | |
4277 | libgd_ldflags="-L$withval/lib" ;; | |
26f56c1c | 4278 | esac |
cd6ede75 | 4279 | |
a152f366 | 4280 | fi |
cd6ede75 UD |
4281 | |
4282 | ||
a152f366 | 4283 | # Check whether --with-gd-include was given. |
c6cb8783 SP |
4284 | if test ${with_gd_include+y} |
4285 | then : | |
a152f366 UD |
4286 | withval=$with_gd_include; case "$with_gd_include" in |
4287 | ''|no) ;; | |
4288 | *) libgd_include="-I$withval" ;; | |
cd6ede75 UD |
4289 | esac |
4290 | ||
a152f366 | 4291 | fi |
cd6ede75 | 4292 | |
0816838f | 4293 | |
a152f366 | 4294 | # Check whether --with-gd-lib was given. |
c6cb8783 SP |
4295 | if test ${with_gd_lib+y} |
4296 | then : | |
a152f366 UD |
4297 | withval=$with_gd_lib; case "$with_gd_lib" in |
4298 | ''|no) ;; | |
4299 | *) libgd_ldflags="-L$withval" ;; | |
cd6ede75 UD |
4300 | esac |
4301 | ||
a808d541 UD |
4302 | fi |
4303 | ||
f4b07664 | 4304 | |
a152f366 UD |
4305 | if test -n "$libgd_include"; then |
4306 | config_vars="$config_vars | |
4307 | CFLAGS-memusagestat.c = $libgd_include" | |
4308 | fi | |
4309 | if test -n "$libgd_ldflags"; then | |
4310 | config_vars="$config_vars | |
4311 | libgd-LDFLAGS = $libgd_ldflags" | |
4312 | fi | |
2ceaa76a | 4313 | |
2ceaa76a | 4314 | |
a152f366 | 4315 | # Check whether --with-binutils was given. |
c6cb8783 SP |
4316 | if test ${with_binutils+y} |
4317 | then : | |
a152f366 | 4318 | withval=$with_binutils; path_binutils=$withval |
c6cb8783 | 4319 | else $as_nop |
a152f366 UD |
4320 | path_binutils='' |
4321 | fi | |
ff886b82 UD |
4322 | |
4323 | ||
a152f366 | 4324 | # Check whether --with-selinux was given. |
c6cb8783 SP |
4325 | if test ${with_selinux+y} |
4326 | then : | |
a152f366 | 4327 | withval=$with_selinux; with_selinux=$withval |
c6cb8783 | 4328 | else $as_nop |
a152f366 UD |
4329 | with_selinux=auto |
4330 | fi | |
e0a3ed4f | 4331 | |
8f73811b | 4332 | |
e0a3ed4f | 4333 | |
a152f366 | 4334 | # Check whether --with-headers was given. |
c6cb8783 SP |
4335 | if test ${with_headers+y} |
4336 | then : | |
a152f366 | 4337 | withval=$with_headers; sysheaders=$withval |
c6cb8783 | 4338 | else $as_nop |
a152f366 | 4339 | sysheaders='' |
7efb9bd1 UD |
4340 | fi |
4341 | ||
dfd2257a | 4342 | |
f781ef40 RM |
4343 | |
4344 | ||
6413fcde | 4345 | # Check whether --with-nonshared-cflags was given. |
c6cb8783 SP |
4346 | if test ${with_nonshared_cflags+y} |
4347 | then : | |
6413fcde | 4348 | withval=$with_nonshared_cflags; extra_nonshared_cflags=$withval |
c6cb8783 | 4349 | else $as_nop |
6413fcde FW |
4350 | extra_nonshared_cflags= |
4351 | fi | |
4352 | ||
4353 | ||
4354 | ||
9ba202c7 | 4355 | # Check whether --with-rtld-early-cflags was given. |
c6cb8783 SP |
4356 | if test ${with_rtld_early_cflags+y} |
4357 | then : | |
9ba202c7 | 4358 | withval=$with_rtld_early_cflags; rtld_early_cflags=$withval |
c6cb8783 | 4359 | else $as_nop |
9ba202c7 FW |
4360 | rtld_early_cflags= |
4361 | fi | |
4362 | ||
4363 | ||
4364 | ||
bada2e31 L |
4365 | |
4366 | # Check whether --with-timeoutfactor was given. | |
c6cb8783 SP |
4367 | if test ${with_timeoutfactor+y} |
4368 | then : | |
bada2e31 | 4369 | withval=$with_timeoutfactor; timeoutfactor=$withval |
c6cb8783 | 4370 | else $as_nop |
bada2e31 L |
4371 | timeoutfactor=1 |
4372 | fi | |
4373 | ||
c6cb8783 | 4374 | printf "%s\n" "#define TIMEOUTFACTOR $timeoutfactor" >>confdefs.h |
bada2e31 L |
4375 | |
4376 | ||
a152f366 | 4377 | # Check whether --enable-sanity-checks was given. |
c6cb8783 SP |
4378 | if test ${enable_sanity_checks+y} |
4379 | then : | |
a152f366 | 4380 | enableval=$enable_sanity_checks; enable_sanity=$enableval |
c6cb8783 | 4381 | else $as_nop |
a152f366 | 4382 | enable_sanity=yes |
dfd2257a UD |
4383 | fi |
4384 | ||
cd6ede75 | 4385 | |
a152f366 | 4386 | # Check whether --enable-shared was given. |
c6cb8783 SP |
4387 | if test ${enable_shared+y} |
4388 | then : | |
a152f366 | 4389 | enableval=$enable_shared; shared=$enableval |
c6cb8783 | 4390 | else $as_nop |
a0da5fe1 | 4391 | shared=yes |
a152f366 | 4392 | fi |
cd6ede75 | 4393 | |
a152f366 | 4394 | # Check whether --enable-profile was given. |
c6cb8783 SP |
4395 | if test ${enable_profile+y} |
4396 | then : | |
a152f366 | 4397 | enableval=$enable_profile; profile=$enableval |
c6cb8783 | 4398 | else $as_nop |
a152f366 UD |
4399 | profile=no |
4400 | fi | |
cd6ede75 | 4401 | |
23645707 | 4402 | # Check whether --enable-default-pie was given. |
c6cb8783 SP |
4403 | if test ${enable_default_pie+y} |
4404 | then : | |
23645707 | 4405 | enableval=$enable_default_pie; default_pie=$enableval |
c6cb8783 | 4406 | else $as_nop |
23645707 | 4407 | default_pie=yes |
9d7a3741 L |
4408 | fi |
4409 | ||
1cba4036 | 4410 | # Check whether --enable-timezone-tools was given. |
c6cb8783 SP |
4411 | if test ${enable_timezone_tools+y} |
4412 | then : | |
1cba4036 | 4413 | enableval=$enable_timezone_tools; enable_timezone_tools=$enableval |
c6cb8783 | 4414 | else $as_nop |
1cba4036 MF |
4415 | enable_timezone_tools=yes |
4416 | fi | |
4417 | ||
4418 | ||
a152f366 | 4419 | |
740b3dbe | 4420 | # Check whether --enable-hardcoded-path-in-tests was given. |
c6cb8783 SP |
4421 | if test ${enable_hardcoded_path_in_tests+y} |
4422 | then : | |
740b3dbe | 4423 | enableval=$enable_hardcoded_path_in_tests; hardcoded_path_in_tests=$enableval |
c6cb8783 | 4424 | else $as_nop |
740b3dbe L |
4425 | hardcoded_path_in_tests=no |
4426 | fi | |
4427 | ||
4428 | ||
4429 | ||
a152f366 | 4430 | # Check whether --enable-hidden-plt was given. |
c6cb8783 SP |
4431 | if test ${enable_hidden_plt+y} |
4432 | then : | |
a152f366 | 4433 | enableval=$enable_hidden_plt; hidden=$enableval |
c6cb8783 | 4434 | else $as_nop |
a152f366 | 4435 | hidden=yes |
2de7874e | 4436 | fi |
cd6ede75 | 4437 | |
a152f366 | 4438 | if test "x$hidden" = xno; then |
c6cb8783 | 4439 | printf "%s\n" "#define NO_HIDDEN 1" >>confdefs.h |
cd6ede75 | 4440 | |
a152f366 | 4441 | fi |
e0a3ed4f | 4442 | |
a152f366 | 4443 | # Check whether --enable-bind-now was given. |
c6cb8783 SP |
4444 | if test ${enable_bind_now+y} |
4445 | then : | |
a152f366 | 4446 | enableval=$enable_bind_now; bindnow=$enableval |
c6cb8783 | 4447 | else $as_nop |
a152f366 UD |
4448 | bindnow=no |
4449 | fi | |
e0a3ed4f | 4450 | |
e0a3ed4f | 4451 | |
6901def6 | 4452 | if test "x$bindnow" = xyes; then |
c6cb8783 | 4453 | printf "%s\n" "#define BIND_NOW 1" >>confdefs.h |
6901def6 L |
4454 | |
4455 | fi | |
e0a3ed4f | 4456 | |
03baef1c | 4457 | # Check whether --enable-stack-protector was given. |
c6cb8783 SP |
4458 | if test ${enable_stack_protector+y} |
4459 | then : | |
03baef1c | 4460 | enableval=$enable_stack_protector; enable_stack_protector=$enableval |
c6cb8783 | 4461 | else $as_nop |
03baef1c NA |
4462 | enable_stack_protector=no |
4463 | fi | |
4464 | ||
4465 | case "$enable_stack_protector" in | |
4466 | all|yes|no|strong) ;; | |
4467 | *) as_fn_error $? "Not a valid argument for --enable-stack-protector: \"$enable_stack_protector\"" "$LINENO" 5;; | |
4468 | esac | |
4469 | ||
a152f366 | 4470 | # Check whether --enable-static-nss was given. |
c6cb8783 SP |
4471 | if test ${enable_static_nss+y} |
4472 | then : | |
a152f366 | 4473 | enableval=$enable_static_nss; static_nss=$enableval |
c6cb8783 | 4474 | else $as_nop |
a152f366 UD |
4475 | static_nss=no |
4476 | fi | |
e0a3ed4f | 4477 | |
a152f366 UD |
4478 | if test x"$static_nss" = xyes || test x"$shared" = xno; then |
4479 | static_nss=yes | |
c6cb8783 | 4480 | printf "%s\n" "#define DO_STATIC_NSS 1" >>confdefs.h |
cd6ede75 | 4481 | |
a152f366 | 4482 | fi |
cd6ede75 | 4483 | |
a152f366 | 4484 | # Check whether --enable-force-install was given. |
c6cb8783 SP |
4485 | if test ${enable_force_install+y} |
4486 | then : | |
a152f366 | 4487 | enableval=$enable_force_install; force_install=$enableval |
c6cb8783 | 4488 | else $as_nop |
a152f366 UD |
4489 | force_install=yes |
4490 | fi | |
ff886b82 | 4491 | |
3a12e572 | 4492 | |
cd6ede75 | 4493 | |
8894bad3 | 4494 | # Check whether --enable-maintainer-mode was given. |
c6cb8783 SP |
4495 | if test ${enable_maintainer_mode+y} |
4496 | then : | |
8894bad3 | 4497 | enableval=$enable_maintainer_mode; maintainer=$enableval |
c6cb8783 | 4498 | else $as_nop |
8894bad3 AM |
4499 | maintainer=no |
4500 | fi | |
4501 | ||
4502 | ||
a152f366 | 4503 | # Check whether --enable-kernel was given. |
c6cb8783 SP |
4504 | if test ${enable_kernel+y} |
4505 | then : | |
a152f366 | 4506 | enableval=$enable_kernel; minimum_kernel=$enableval |
cd6ede75 | 4507 | fi |
a152f366 UD |
4508 | |
4509 | if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then | |
4510 | # Better nothing than this. | |
4511 | minimum_kernel="" | |
4512 | else | |
4513 | if test "$minimum_kernel" = current; then | |
4514 | minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel= | |
cd6ede75 UD |
4515 | fi |
4516 | fi | |
cd6ede75 | 4517 | |
a4ecc9eb | 4518 | # Check whether --enable-werror was given. |
c6cb8783 SP |
4519 | if test ${enable_werror+y} |
4520 | then : | |
a4ecc9eb | 4521 | enableval=$enable_werror; enable_werror=$enableval |
c6cb8783 | 4522 | else $as_nop |
a4ecc9eb JM |
4523 | enable_werror=yes |
4524 | fi | |
4525 | ||
4526 | ||
4527 | ||
a152f366 | 4528 | # Check whether --enable-multi-arch was given. |
c6cb8783 SP |
4529 | if test ${enable_multi_arch+y} |
4530 | then : | |
a152f366 | 4531 | enableval=$enable_multi_arch; multi_arch=$enableval |
c6cb8783 | 4532 | else $as_nop |
6f89d2f3 | 4533 | multi_arch=default |
cd6ede75 UD |
4534 | fi |
4535 | ||
4bca4c17 | 4536 | |
33784089 | 4537 | # Check whether --enable-memory-tagging was given. |
c6cb8783 SP |
4538 | if test ${enable_memory_tagging+y} |
4539 | then : | |
33784089 | 4540 | enableval=$enable_memory_tagging; memory_tagging=$enableval |
c6cb8783 | 4541 | else $as_nop |
33784089 RE |
4542 | memory_tagging=no |
4543 | fi | |
4544 | ||
4545 | if test "$memory_tagging" = yes; then | |
4546 | # Only enable this on architectures that support it. | |
4547 | case $host_cpu in | |
4548 | aarch64) | |
c6cb8783 | 4549 | printf "%s\n" "#define USE_MTAG 1" >>confdefs.h |
33784089 RE |
4550 | |
4551 | ;; | |
4552 | esac | |
4553 | fi | |
4554 | ||
4555 | ||
3a097cc7 | 4556 | # Check whether --enable-systemtap was given. |
c6cb8783 SP |
4557 | if test ${enable_systemtap+y} |
4558 | then : | |
3a097cc7 | 4559 | enableval=$enable_systemtap; systemtap=$enableval |
c6cb8783 | 4560 | else $as_nop |
3a097cc7 RM |
4561 | systemtap=no |
4562 | fi | |
4563 | ||
4564 | if test "x$systemtap" != xno; then | |
c6cb8783 SP |
4565 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemtap static probe support" >&5 |
4566 | printf %s "checking for systemtap static probe support... " >&6; } | |
4567 | if test ${libc_cv_sdt+y} | |
4568 | then : | |
4569 | printf %s "(cached) " >&6 | |
4570 | else $as_nop | |
3a097cc7 | 4571 | old_CFLAGS="$CFLAGS" |
783dd2d3 | 4572 | CFLAGS="-std=gnu11 $CFLAGS" |
3a097cc7 RM |
4573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4574 | /* end confdefs.h. */ | |
4575 | #include <sys/sdt.h> | |
4576 | void foo (int i, void *p) | |
4577 | { | |
4578 | asm ("" STAP_PROBE_ASM (foo, bar, STAP_PROBE_ASM_TEMPLATE (2)) "" | |
4579 | :: STAP_PROBE_ASM_OPERANDS (2, i, p)); | |
4580 | } | |
4581 | _ACEOF | |
c6cb8783 SP |
4582 | if ac_fn_c_try_compile "$LINENO" |
4583 | then : | |
3a097cc7 | 4584 | libc_cv_sdt=yes |
c6cb8783 | 4585 | else $as_nop |
3a097cc7 RM |
4586 | libc_cv_sdt=no |
4587 | fi | |
c6cb8783 | 4588 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
3a097cc7 RM |
4589 | CFLAGS="$old_CFLAGS" |
4590 | fi | |
c6cb8783 SP |
4591 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sdt" >&5 |
4592 | printf "%s\n" "$libc_cv_sdt" >&6; } | |
3a097cc7 | 4593 | if test $libc_cv_sdt = yes; then |
c6cb8783 | 4594 | printf "%s\n" "#define USE_STAP_PROBE 1" >>confdefs.h |
3a097cc7 RM |
4595 | |
4596 | elif test "x$systemtap" != xauto; then | |
c6cb8783 SP |
4597 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4598 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
3a097cc7 RM |
4599 | as_fn_error $? "systemtap support needs sys/sdt.h with asm support |
4600 | See \`config.log' for more details" "$LINENO" 5; } | |
4601 | fi | |
4602 | fi | |
4603 | ||
c53d909c | 4604 | # Check whether --enable-build-nscd was given. |
c6cb8783 SP |
4605 | if test ${enable_build_nscd+y} |
4606 | then : | |
c53d909c | 4607 | enableval=$enable_build_nscd; build_nscd=$enableval |
c6cb8783 | 4608 | else $as_nop |
c53d909c RM |
4609 | build_nscd=default |
4610 | fi | |
4611 | ||
4612 | ||
4613 | ||
3cc3ef96 RM |
4614 | # Note the use of $use_nscd is near the bottom of the file. |
4615 | # Check whether --enable-nscd was given. | |
c6cb8783 SP |
4616 | if test ${enable_nscd+y} |
4617 | then : | |
3cc3ef96 | 4618 | enableval=$enable_nscd; use_nscd=$enableval |
c6cb8783 | 4619 | else $as_nop |
3cc3ef96 RM |
4620 | use_nscd=yes |
4621 | fi | |
4622 | ||
4623 | ||
e4608715 | 4624 | # Check whether --enable-pt_chown was given. |
c6cb8783 SP |
4625 | if test ${enable_pt_chown+y} |
4626 | then : | |
e4608715 | 4627 | enableval=$enable_pt_chown; build_pt_chown=$enableval |
c6cb8783 | 4628 | else $as_nop |
e4608715 CD |
4629 | build_pt_chown=no |
4630 | fi | |
4631 | ||
4632 | ||
8c12f01d | 4633 | if test "$build_pt_chown" = yes; then |
c6cb8783 | 4634 | printf "%s\n" "#define HAVE_PT_CHOWN 1" >>confdefs.h |
e4608715 CD |
4635 | |
4636 | fi | |
4637 | ||
ebf27d12 ST |
4638 | # The abi-tags file uses a fairly simplistic model for name recognition that |
4639 | # can't distinguish i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a | |
4640 | # $host_os of `gnu*' here to be `gnu-gnu*' just so that it can tell. | |
4641 | # This doesn't get used much beyond that, so it's fairly safe. | |
4642 | case "$host_os" in | |
4643 | linux*) | |
4644 | ;; | |
4645 | gnu*) | |
4646 | host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'` | |
4647 | ;; | |
4648 | esac | |
4649 | ||
5695d46f | 4650 | # Check whether --enable-mathvec was given. |
c6cb8783 SP |
4651 | if test ${enable_mathvec+y} |
4652 | then : | |
5695d46f | 4653 | enableval=$enable_mathvec; build_mathvec=$enableval |
c6cb8783 | 4654 | else $as_nop |
5695d46f AS |
4655 | build_mathvec=notset |
4656 | fi | |
4657 | ||
4658 | ||
b190bccc | 4659 | |
9fb81390 FW |
4660 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4661 | /* end confdefs.h. */ | |
4662 | ||
4663 | int | |
c6cb8783 | 4664 | main (void) |
9fb81390 FW |
4665 | { |
4666 | ||
4667 | #ifndef __CET__ | |
ae7a94e5 | 4668 | # error no CET compiler support |
9fb81390 FW |
4669 | #endif |
4670 | ; | |
4671 | return 0; | |
4672 | } | |
4673 | _ACEOF | |
c6cb8783 SP |
4674 | if ac_fn_c_try_cpp "$LINENO" |
4675 | then : | |
9fb81390 | 4676 | libc_cv_compiler_default_cet=yes |
c6cb8783 | 4677 | else $as_nop |
9fb81390 FW |
4678 | libc_cv_compiler_default_cet=no |
4679 | fi | |
b190bccc | 4680 | rm -f conftest.err conftest.i conftest.$ac_ext |
9fb81390 | 4681 | |
f753fa7d | 4682 | # Check whether --enable-cet was given. |
c6cb8783 SP |
4683 | if test ${enable_cet+y} |
4684 | then : | |
f753fa7d | 4685 | enableval=$enable_cet; enable_cet=$enableval |
c6cb8783 | 4686 | else $as_nop |
9fb81390 | 4687 | enable_cet=$libc_cv_compiler_default_cet |
f753fa7d L |
4688 | fi |
4689 | ||
4690 | ||
ebae2f5a | 4691 | # Check whether --enable-scv was given. |
c6cb8783 SP |
4692 | if test ${enable_scv+y} |
4693 | then : | |
ebae2f5a | 4694 | enableval=$enable_scv; use_scv=$enableval |
c6cb8783 | 4695 | else $as_nop |
ebae2f5a MC |
4696 | use_scv=yes |
4697 | fi | |
4698 | ||
4699 | ||
c6cb8783 SP |
4700 | if test "$use_scv" != "no" |
4701 | then : | |
4702 | printf "%s\n" "#define USE_PPC_SCV 1" >>confdefs.h | |
ebae2f5a MC |
4703 | |
4704 | fi | |
4705 | ||
64d9580c | 4706 | # Check whether --enable-fortify-source was given. |
c6cb8783 SP |
4707 | if test ${enable_fortify_source+y} |
4708 | then : | |
64d9580c | 4709 | enableval=$enable_fortify_source; enable_fortify_source=$enableval |
c6cb8783 | 4710 | else $as_nop |
64d9580c FB |
4711 | enable_fortify_source=no |
4712 | fi | |
4713 | ||
4714 | case "$enable_fortify_source" in | |
4715 | 1|2|3|no|yes) ;; | |
4716 | *) as_fn_error $? "Not a valid argument for --enable-fortify-source: \"$enable_fortify_source\"" "$LINENO" 5;; | |
4717 | esac | |
4718 | ||
a152f366 UD |
4719 | # We keep the original values in `$config_*' and never modify them, so we |
4720 | # can write them unchanged into config.make. Everything else uses | |
4721 | # $machine, $vendor, and $os, and changes them whenever convenient. | |
4722 | config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os | |
3a12e572 | 4723 | |
a152f366 UD |
4724 | # Don't allow vendor == "unknown" |
4725 | test "$config_vendor" = unknown && config_vendor= | |
4726 | config_os="`echo $config_os | sed 's/^unknown-//'`" | |
3a12e572 | 4727 | |
a152f366 | 4728 | # Some configurations imply other options. |
0269750c | 4729 | elf=yes |
3a12e572 | 4730 | |
644d3857 | 4731 | # The configure fragment of a port can modify these to supplement |
a152f366 UD |
4732 | # or override the table in the case statement below. No fragment should |
4733 | # ever change the config_* variables, however. | |
4734 | machine=$config_machine | |
4735 | vendor=$config_vendor | |
4736 | os=$config_os | |
4737 | base_os='' | |
3a12e572 | 4738 | |
a152f366 | 4739 | submachine= |
26f56c1c | 4740 | |
a152f366 | 4741 | # Check whether --with-cpu was given. |
c6cb8783 SP |
4742 | if test ${with_cpu+y} |
4743 | then : | |
a152f366 | 4744 | withval=$with_cpu; case "$withval" in |
4a531bb0 | 4745 | yes|'') as_fn_error $? "--with-cpu requires an argument" "$LINENO" 5 ;; |
a152f366 UD |
4746 | no) ;; |
4747 | *) submachine="$withval" ;; | |
4748 | esac | |
3a12e572 UD |
4749 | |
4750 | fi | |
3a12e572 | 4751 | |
3a12e572 | 4752 | |
05439291 RM |
4753 | # An preconfigure script can set this when it wants to disable the sanity |
4754 | # check below. | |
4755 | libc_config_ok=no | |
4756 | ||
8df5d347 JM |
4757 | # A preconfigure script for a system that may or may not use fpu |
4758 | # sysdeps directories sets this to a preprocessor conditional for | |
4759 | # whether to use such directories. | |
4760 | with_fp_cond=1 | |
4761 | ||
10a803e0 RM |
4762 | if frags=`ls -d $srcdir/sysdeps/*/preconfigure 2> /dev/null` |
4763 | then | |
c6cb8783 SP |
4764 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysdeps preconfigure fragments" >&5 |
4765 | printf %s "checking for sysdeps preconfigure fragments... " >&6; } | |
10a803e0 RM |
4766 | for frag in $frags; do |
4767 | name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'` | |
4768 | echo $ECHO_N "$name $ECHO_C" >&6 | |
4769 | . "$frag" | |
4770 | done | |
c6cb8783 SP |
4771 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5 |
4772 | printf "%s\n" "" >&6; } | |
10a803e0 RM |
4773 | fi |
4774 | ||
3a12e572 | 4775 | |
a152f366 UD |
4776 | ### |
4777 | ### By using the undocumented --enable-hacker-mode option for configure | |
4778 | ### one can skip this test to make the configuration not fail for unsupported | |
4779 | ### platforms. | |
4780 | ### | |
4781 | if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then | |
4782 | case "$machine-$host_os" in | |
2ce4f015 | 4783 | *-linux* | *-gnu*) |
a152f366 UD |
4784 | ;; |
4785 | *) | |
4e58b648 MF |
4786 | as_fn_error $? " |
4787 | *** The GNU C library is currently unavailable for this platform. | |
4788 | *** If you are interested in seeing glibc on this platform visit | |
4789 | *** the \"How to submit a new port\" in the wiki: | |
656ee792 | 4790 | *** https://sourceware.org/glibc/wiki/#Development |
4e58b648 | 4791 | *** and join the community!" "$LINENO" 5 |
a152f366 UD |
4792 | ;; |
4793 | esac | |
3a12e572 | 4794 | fi |
2abf9ff1 | 4795 | |
3e239be6 JM |
4796 | # Set base_machine if not set by a preconfigure fragment. |
4797 | test -n "$base_machine" || base_machine=$machine | |
26f56c1c | 4798 | |
3a12e572 | 4799 | |
43ecc41d AZ |
4800 | ### Locate tools. |
4801 | ||
c6cb8783 SP |
4802 | |
4803 | # Find a good install program. We prefer a C program (faster), | |
43ecc41d AZ |
4804 | # so one script is as good as another. But avoid the broken or |
4805 | # incompatible versions: | |
4806 | # SysV /etc/install, /usr/sbin/install | |
4807 | # SunOS /usr/etc/install | |
4808 | # IRIX /sbin/install | |
4809 | # AIX /bin/install | |
4810 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4811 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4812 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4813 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4814 | # OS/2's system install, which has a completely different semantic | |
4815 | # ./install, which can be erroneously created by make from ./install.sh. | |
4816 | # Reject install programs that cannot install multiple files. | |
c6cb8783 SP |
4817 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
4818 | printf %s "checking for a BSD-compatible install... " >&6; } | |
43ecc41d | 4819 | if test -z "$INSTALL"; then |
c6cb8783 SP |
4820 | if test ${ac_cv_path_install+y} |
4821 | then : | |
4822 | printf %s "(cached) " >&6 | |
4823 | else $as_nop | |
43ecc41d AZ |
4824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4825 | for as_dir in $PATH | |
4826 | do | |
4827 | IFS=$as_save_IFS | |
c6cb8783 SP |
4828 | case $as_dir in #((( |
4829 | '') as_dir=./ ;; | |
4830 | */) ;; | |
4831 | *) as_dir=$as_dir/ ;; | |
4832 | esac | |
4833 | # Account for fact that we put trailing slashes in our PATH walk. | |
4834 | case $as_dir in #(( | |
4835 | ./ | /[cC]/* | \ | |
43ecc41d AZ |
4836 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
4837 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
4838 | /usr/ucb/* ) ;; | |
4839 | *) | |
4840 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4841 | # Don't use installbsd from OSF since it installs stuff as root | |
4842 | # by default. | |
4843 | for ac_prog in ginstall scoinst install; do | |
4844 | for ac_exec_ext in '' $ac_executable_extensions; do | |
c6cb8783 | 4845 | if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then |
43ecc41d | 4846 | if test $ac_prog = install && |
c6cb8783 | 4847 | grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
43ecc41d AZ |
4848 | # AIX install. It has an incompatible calling convention. |
4849 | : | |
4850 | elif test $ac_prog = install && | |
c6cb8783 | 4851 | grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
43ecc41d AZ |
4852 | # program-specific install script used by HP pwplus--don't use. |
4853 | : | |
4854 | else | |
4855 | rm -rf conftest.one conftest.two conftest.dir | |
4856 | echo one > conftest.one | |
4857 | echo two > conftest.two | |
4858 | mkdir conftest.dir | |
c6cb8783 | 4859 | if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && |
43ecc41d AZ |
4860 | test -s conftest.one && test -s conftest.two && |
4861 | test -s conftest.dir/conftest.one && | |
4862 | test -s conftest.dir/conftest.two | |
4863 | then | |
c6cb8783 | 4864 | ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" |
43ecc41d AZ |
4865 | break 3 |
4866 | fi | |
4867 | fi | |
4868 | fi | |
4869 | done | |
4870 | done | |
4871 | ;; | |
4872 | esac | |
4873 | ||
4874 | done | |
4875 | IFS=$as_save_IFS | |
4876 | ||
4877 | rm -rf conftest.one conftest.two conftest.dir | |
4878 | ||
8df5d347 | 4879 | fi |
c6cb8783 | 4880 | if test ${ac_cv_path_install+y}; then |
43ecc41d AZ |
4881 | INSTALL=$ac_cv_path_install |
4882 | else | |
4883 | # As a last resort, use the slow shell script. Don't cache a | |
4884 | # value for INSTALL within a source directory, because that will | |
4885 | # break other packages using the cache if that directory is | |
4886 | # removed, or if the value is a relative name. | |
4887 | INSTALL=$ac_install_sh | |
4888 | fi | |
8df5d347 | 4889 | fi |
c6cb8783 SP |
4890 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
4891 | printf "%s\n" "$INSTALL" >&6; } | |
8df5d347 | 4892 | |
43ecc41d AZ |
4893 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
4894 | # It thinks the first close brace ends the variable substitution. | |
4895 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
8df5d347 | 4896 | |
43ecc41d AZ |
4897 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
4898 | ||
4899 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4900 | ||
4901 | if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then | |
4902 | # The makefiles need to use a different form to find it in $srcdir. | |
4903 | INSTALL='\$(..)./scripts/install-sh -c' | |
4904 | fi | |
c6cb8783 SP |
4905 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
4906 | printf %s "checking whether ln -s works... " >&6; } | |
43ecc41d AZ |
4907 | LN_S=$as_ln_s |
4908 | if test "$LN_S" = "ln -s"; then | |
c6cb8783 SP |
4909 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4910 | printf "%s\n" "yes" >&6; } | |
03baef1c | 4911 | else |
c6cb8783 SP |
4912 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
4913 | printf "%s\n" "no, using $LN_S" >&6; } | |
03baef1c NA |
4914 | fi |
4915 | ||
43ecc41d AZ |
4916 | |
4917 | # Was a --with-binutils option given? | |
4918 | if test -n "$path_binutils"; then | |
4919 | # Make absolute; ensure a single trailing slash. | |
4920 | path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'` | |
4921 | CC="$CC -B$path_binutils" | |
03baef1c | 4922 | fi |
43ecc41d AZ |
4923 | case "$CC" in |
4924 | *fuse-ld=lld*) LDNAME=ld.lld;; | |
4925 | *) LDNAME=ld;; | |
4926 | esac | |
2d2d7e1a AZ |
4927 | if test -z "$LD"; then |
4928 | LD=`$CC -print-prog-name=$LDNAME` | |
4929 | fi | |
4930 | if test -z "$AR"; then | |
4931 | AR=`$CC -print-prog-name=ar` | |
4932 | fi | |
03baef1c | 4933 | |
2d2d7e1a AZ |
4934 | if test -z "$OBJCOPY"; then |
4935 | OBJCOPY=`$CC -print-prog-name=objcopy` | |
4936 | fi | |
43ecc41d | 4937 | |
2d2d7e1a AZ |
4938 | if test -z "$GPROF"; then |
4939 | GPROF=`$CC -print-prog-name=gprof` | |
4940 | fi | |
43ecc41d | 4941 | |
02abdab0 AZ |
4942 | if test -z "$READELF"; then |
4943 | READELF=`$CC -print-prog-name=readelf` | |
4944 | fi | |
4945 | ||
4946 | if test -z "$OBJDUMP"; then | |
4947 | OBJDUMP=`$CC -print-prog-name=objdump` | |
4948 | fi | |
4949 | ||
4950 | if test -z "$NM"; then | |
4951 | NM=`$CC -print-prog-name=nm` | |
4952 | fi | |
4953 | ||
43ecc41d | 4954 | |
03baef1c | 4955 | |
43ecc41d | 4956 | # Accept binutils 2.25 or newer. |
43ecc41d AZ |
4957 | libc_cv_with_lld=no |
4958 | case $($LD --version) in | |
4959 | "GNU gold"*) | |
4960 | # Accept gold 1.14 or higher | |
4961 | for ac_prog in $LD | |
4962 | do | |
4963 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4964 | set dummy $ac_prog; ac_word=$2 | |
c6cb8783 SP |
4965 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4966 | printf %s "checking for $ac_word... " >&6; } | |
4967 | if test ${ac_cv_prog_LD+y} | |
4968 | then : | |
4969 | printf %s "(cached) " >&6 | |
4970 | else $as_nop | |
43ecc41d AZ |
4971 | if test -n "$LD"; then |
4972 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
4973 | else | |
4974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4975 | for as_dir in $PATH | |
4976 | do | |
4977 | IFS=$as_save_IFS | |
c6cb8783 SP |
4978 | case $as_dir in #((( |
4979 | '') as_dir=./ ;; | |
4980 | */) ;; | |
4981 | *) as_dir=$as_dir/ ;; | |
4982 | esac | |
43ecc41d | 4983 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 4984 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
43ecc41d | 4985 | ac_cv_prog_LD="$ac_prog" |
c6cb8783 | 4986 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
43ecc41d AZ |
4987 | break 2 |
4988 | fi | |
4989 | done | |
4990 | done | |
4991 | IFS=$as_save_IFS | |
4992 | ||
cd6ae7ea | 4993 | fi |
cd6ae7ea | 4994 | fi |
43ecc41d AZ |
4995 | LD=$ac_cv_prog_LD |
4996 | if test -n "$LD"; then | |
c6cb8783 SP |
4997 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
4998 | printf "%s\n" "$LD" >&6; } | |
43ecc41d | 4999 | else |
c6cb8783 SP |
5000 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5001 | printf "%s\n" "no" >&6; } | |
cd6ae7ea | 5002 | fi |
cd6ae7ea | 5003 | |
8f6f5362 | 5004 | |
43ecc41d AZ |
5005 | test -n "$LD" && break |
5006 | done | |
8f6f5362 | 5007 | |
43ecc41d AZ |
5008 | if test -z "$LD"; then |
5009 | ac_verc_fail=yes | |
5010 | else | |
5011 | # Found it, now check the version. | |
c6cb8783 SP |
5012 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5 |
5013 | printf %s "checking version of $LD... " >&6; } | |
43ecc41d AZ |
5014 | ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU gold.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'` |
5015 | case $ac_prog_version in | |
5016 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
5017 | 1.1[4-9]*|1.[2-9][0-9]*|1.1[0-9][0-9]*|[2-9].*|[1-9][0-9]*) | |
5018 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
5019 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
5020 | ||
5021 | esac | |
c6cb8783 SP |
5022 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
5023 | printf "%s\n" "$ac_prog_version" >&6; } | |
8f6f5362 | 5024 | fi |
43ecc41d AZ |
5025 | if test $ac_verc_fail = yes; then |
5026 | LD=: critic_missing="$critic_missing GNU gold" | |
8f6f5362 | 5027 | fi |
8f6f5362 | 5028 | |
43ecc41d AZ |
5029 | ;; |
5030 | "LLD"*) | |
5031 | # Accept LLD 13.0.0 or higher | |
5032 | for ac_prog in $LD | |
5033 | do | |
5034 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5035 | set dummy $ac_prog; ac_word=$2 | |
c6cb8783 SP |
5036 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5037 | printf %s "checking for $ac_word... " >&6; } | |
5038 | if test ${ac_cv_prog_LD+y} | |
5039 | then : | |
5040 | printf %s "(cached) " >&6 | |
5041 | else $as_nop | |
43ecc41d AZ |
5042 | if test -n "$LD"; then |
5043 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
5044 | else | |
5045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5046 | for as_dir in $PATH | |
5047 | do | |
5048 | IFS=$as_save_IFS | |
c6cb8783 SP |
5049 | case $as_dir in #((( |
5050 | '') as_dir=./ ;; | |
5051 | */) ;; | |
5052 | *) as_dir=$as_dir/ ;; | |
5053 | esac | |
43ecc41d | 5054 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 5055 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
43ecc41d | 5056 | ac_cv_prog_LD="$ac_prog" |
c6cb8783 | 5057 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
43ecc41d | 5058 | break 2 |
8f6f5362 | 5059 | fi |
43ecc41d AZ |
5060 | done |
5061 | done | |
5062 | IFS=$as_save_IFS | |
5063 | ||
022dfdce | 5064 | fi |
43ecc41d AZ |
5065 | fi |
5066 | LD=$ac_cv_prog_LD | |
5067 | if test -n "$LD"; then | |
c6cb8783 SP |
5068 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
5069 | printf "%s\n" "$LD" >&6; } | |
43ecc41d | 5070 | else |
c6cb8783 SP |
5071 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5072 | printf "%s\n" "no" >&6; } | |
84b9230c MF |
5073 | fi |
5074 | ||
3a12e572 | 5075 | |
43ecc41d | 5076 | test -n "$LD" && break |
3a12e572 | 5077 | done |
43ecc41d AZ |
5078 | |
5079 | if test -z "$LD"; then | |
5080 | ac_verc_fail=yes | |
5081 | else | |
5082 | # Found it, now check the version. | |
c6cb8783 SP |
5083 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5 |
5084 | printf %s "checking version of $LD... " >&6; } | |
43ecc41d AZ |
5085 | ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*LLD.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'` |
5086 | case $ac_prog_version in | |
5087 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
5088 | 1[3-9].*|[2-9][0-9].*) | |
5089 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
5090 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
5091 | ||
5092 | esac | |
c6cb8783 SP |
5093 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
5094 | printf "%s\n" "$ac_prog_version" >&6; } | |
a152f366 | 5095 | fi |
43ecc41d AZ |
5096 | if test $ac_verc_fail = yes; then |
5097 | LD=: critic_missing="$critic_missing LLD" | |
cd6ede75 | 5098 | fi |
3a12e572 | 5099 | |
43ecc41d AZ |
5100 | libc_cv_with_lld=yes |
5101 | ;; | |
5102 | *) | |
5103 | for ac_prog in $LD | |
5104 | do | |
5105 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5106 | set dummy $ac_prog; ac_word=$2 | |
c6cb8783 SP |
5107 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5108 | printf %s "checking for $ac_word... " >&6; } | |
5109 | if test ${ac_cv_prog_LD+y} | |
5110 | then : | |
5111 | printf %s "(cached) " >&6 | |
5112 | else $as_nop | |
43ecc41d AZ |
5113 | if test -n "$LD"; then |
5114 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
5115 | else | |
5116 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5117 | for as_dir in $PATH | |
5118 | do | |
5119 | IFS=$as_save_IFS | |
c6cb8783 SP |
5120 | case $as_dir in #((( |
5121 | '') as_dir=./ ;; | |
5122 | */) ;; | |
5123 | *) as_dir=$as_dir/ ;; | |
5124 | esac | |
43ecc41d | 5125 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 5126 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
43ecc41d | 5127 | ac_cv_prog_LD="$ac_prog" |
c6cb8783 | 5128 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
43ecc41d | 5129 | break 2 |
925c3c5c UD |
5130 | fi |
5131 | done | |
a152f366 | 5132 | done |
43ecc41d | 5133 | IFS=$as_save_IFS |
6f89d2f3 | 5134 | |
925c3c5c UD |
5135 | fi |
5136 | fi | |
43ecc41d AZ |
5137 | LD=$ac_cv_prog_LD |
5138 | if test -n "$LD"; then | |
c6cb8783 SP |
5139 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
5140 | printf "%s\n" "$LD" >&6; } | |
43ecc41d | 5141 | else |
c6cb8783 SP |
5142 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5143 | printf "%s\n" "no" >&6; } | |
925c3c5c UD |
5144 | fi |
5145 | ||
26f56c1c | 5146 | |
43ecc41d AZ |
5147 | test -n "$LD" && break |
5148 | done | |
a152f366 | 5149 | |
43ecc41d AZ |
5150 | if test -z "$LD"; then |
5151 | ac_verc_fail=yes | |
5152 | else | |
5153 | # Found it, now check the version. | |
c6cb8783 SP |
5154 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5 |
5155 | printf %s "checking version of $LD... " >&6; } | |
43ecc41d AZ |
5156 | ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'` |
5157 | case $ac_prog_version in | |
5158 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
5159 | 2.1[0-9][0-9]*|2.2[5-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*) | |
5160 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
5161 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
26f56c1c | 5162 | |
a152f366 | 5163 | esac |
c6cb8783 SP |
5164 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
5165 | printf "%s\n" "$ac_prog_version" >&6; } | |
43ecc41d AZ |
5166 | fi |
5167 | if test $ac_verc_fail = yes; then | |
5168 | LD=: critic_missing="$critic_missing GNU ld" | |
5169 | fi | |
925c3c5c | 5170 | |
43ecc41d AZ |
5171 | ;; |
5172 | esac | |
5173 | config_vars="$config_vars | |
5174 | with-lld = $libc_cv_with_lld" | |
a152f366 | 5175 | |
43ecc41d AZ |
5176 | # These programs are version sensitive. |
5177 | for ac_prog in gnumake gmake make | |
5178 | do | |
5179 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5180 | set dummy $ac_prog; ac_word=$2 | |
c6cb8783 SP |
5181 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5182 | printf %s "checking for $ac_word... " >&6; } | |
5183 | if test ${ac_cv_prog_MAKE+y} | |
5184 | then : | |
5185 | printf %s "(cached) " >&6 | |
5186 | else $as_nop | |
43ecc41d AZ |
5187 | if test -n "$MAKE"; then |
5188 | ac_cv_prog_MAKE="$MAKE" # Let the user override the test. | |
5189 | else | |
5190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5191 | for as_dir in $PATH | |
5192 | do | |
5193 | IFS=$as_save_IFS | |
c6cb8783 SP |
5194 | case $as_dir in #((( |
5195 | '') as_dir=./ ;; | |
5196 | */) ;; | |
5197 | *) as_dir=$as_dir/ ;; | |
5198 | esac | |
43ecc41d | 5199 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 5200 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
43ecc41d | 5201 | ac_cv_prog_MAKE="$ac_prog" |
c6cb8783 | 5202 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
43ecc41d AZ |
5203 | break 2 |
5204 | fi | |
5205 | done | |
ba75122d | 5206 | done |
43ecc41d | 5207 | IFS=$as_save_IFS |
925c3c5c | 5208 | |
43ecc41d AZ |
5209 | fi |
5210 | fi | |
5211 | MAKE=$ac_cv_prog_MAKE | |
5212 | if test -n "$MAKE"; then | |
c6cb8783 SP |
5213 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 |
5214 | printf "%s\n" "$MAKE" >&6; } | |
43ecc41d | 5215 | else |
c6cb8783 SP |
5216 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5217 | printf "%s\n" "no" >&6; } | |
43ecc41d | 5218 | fi |
925c3c5c | 5219 | |
ba75122d | 5220 | |
43ecc41d | 5221 | test -n "$MAKE" && break |
a152f366 | 5222 | done |
2abf9ff1 | 5223 | |
43ecc41d AZ |
5224 | if test -z "$MAKE"; then |
5225 | ac_verc_fail=yes | |
5226 | else | |
5227 | # Found it, now check the version. | |
c6cb8783 SP |
5228 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $MAKE" >&5 |
5229 | printf %s "checking version of $MAKE... " >&6; } | |
43ecc41d AZ |
5230 | ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'` |
5231 | case $ac_prog_version in | |
5232 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
5233 | [4-9].* | [1-9][0-9]*) | |
5234 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
5235 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
925c3c5c | 5236 | |
43ecc41d | 5237 | esac |
c6cb8783 SP |
5238 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
5239 | printf "%s\n" "$ac_prog_version" >&6; } | |
43ecc41d AZ |
5240 | fi |
5241 | if test $ac_verc_fail = yes; then | |
5242 | critic_missing="$critic_missing make" | |
5243 | fi | |
26f56c1c | 5244 | |
26f56c1c | 5245 | |
43ecc41d AZ |
5246 | for ac_prog in gnumsgfmt gmsgfmt msgfmt |
5247 | do | |
5248 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5249 | set dummy $ac_prog; ac_word=$2 | |
c6cb8783 SP |
5250 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5251 | printf %s "checking for $ac_word... " >&6; } | |
5252 | if test ${ac_cv_prog_MSGFMT+y} | |
5253 | then : | |
5254 | printf %s "(cached) " >&6 | |
5255 | else $as_nop | |
43ecc41d AZ |
5256 | if test -n "$MSGFMT"; then |
5257 | ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. | |
5258 | else | |
5259 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
a152f366 UD |
5260 | for as_dir in $PATH |
5261 | do | |
5262 | IFS=$as_save_IFS | |
c6cb8783 SP |
5263 | case $as_dir in #((( |
5264 | '') as_dir=./ ;; | |
5265 | */) ;; | |
5266 | *) as_dir=$as_dir/ ;; | |
5267 | esac | |
43ecc41d | 5268 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 5269 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
43ecc41d | 5270 | ac_cv_prog_MSGFMT="$ac_prog" |
c6cb8783 | 5271 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
43ecc41d AZ |
5272 | break 2 |
5273 | fi | |
5274 | done | |
b08c89d9 | 5275 | done |
a152f366 | 5276 | IFS=$as_save_IFS |
2abf9ff1 | 5277 | |
925c3c5c | 5278 | fi |
26f56c1c | 5279 | fi |
43ecc41d AZ |
5280 | MSGFMT=$ac_cv_prog_MSGFMT |
5281 | if test -n "$MSGFMT"; then | |
c6cb8783 SP |
5282 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
5283 | printf "%s\n" "$MSGFMT" >&6; } | |
26f56c1c | 5284 | else |
c6cb8783 SP |
5285 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5286 | printf "%s\n" "no" >&6; } | |
26f56c1c | 5287 | fi |
a152f366 | 5288 | |
925c3c5c | 5289 | |
43ecc41d AZ |
5290 | test -n "$MSGFMT" && break |
5291 | done | |
1b74661a | 5292 | |
43ecc41d AZ |
5293 | if test -z "$MSGFMT"; then |
5294 | ac_verc_fail=yes | |
5295 | else | |
5296 | # Found it, now check the version. | |
c6cb8783 SP |
5297 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $MSGFMT" >&5 |
5298 | printf %s "checking version of $MSGFMT... " >&6; } | |
43ecc41d AZ |
5299 | ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
5300 | case $ac_prog_version in | |
5301 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
5302 | 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*) | |
5303 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
5304 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
6014c65d | 5305 | |
43ecc41d | 5306 | esac |
c6cb8783 SP |
5307 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
5308 | printf "%s\n" "$ac_prog_version" >&6; } | |
43ecc41d AZ |
5309 | fi |
5310 | if test $ac_verc_fail = yes; then | |
5311 | MSGFMT=: aux_missing="$aux_missing msgfmt" | |
5312 | fi | |
4baa087a | 5313 | |
43ecc41d AZ |
5314 | for ac_prog in makeinfo |
5315 | do | |
5316 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5317 | set dummy $ac_prog; ac_word=$2 | |
c6cb8783 SP |
5318 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5319 | printf %s "checking for $ac_word... " >&6; } | |
5320 | if test ${ac_cv_prog_MAKEINFO+y} | |
5321 | then : | |
5322 | printf %s "(cached) " >&6 | |
5323 | else $as_nop | |
43ecc41d AZ |
5324 | if test -n "$MAKEINFO"; then |
5325 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
4baa087a | 5326 | else |
43ecc41d AZ |
5327 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5328 | for as_dir in $PATH | |
5329 | do | |
5330 | IFS=$as_save_IFS | |
c6cb8783 SP |
5331 | case $as_dir in #((( |
5332 | '') as_dir=./ ;; | |
5333 | */) ;; | |
5334 | *) as_dir=$as_dir/ ;; | |
5335 | esac | |
43ecc41d | 5336 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 5337 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
43ecc41d | 5338 | ac_cv_prog_MAKEINFO="$ac_prog" |
c6cb8783 | 5339 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
43ecc41d AZ |
5340 | break 2 |
5341 | fi | |
5342 | done | |
5343 | done | |
5344 | IFS=$as_save_IFS | |
5345 | ||
4baa087a | 5346 | fi |
4baa087a | 5347 | fi |
43ecc41d AZ |
5348 | MAKEINFO=$ac_cv_prog_MAKEINFO |
5349 | if test -n "$MAKEINFO"; then | |
c6cb8783 SP |
5350 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
5351 | printf "%s\n" "$MAKEINFO" >&6; } | |
4baa087a | 5352 | else |
c6cb8783 SP |
5353 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5354 | printf "%s\n" "no" >&6; } | |
43ecc41d AZ |
5355 | fi |
5356 | ||
5357 | ||
5358 | test -n "$MAKEINFO" && break | |
5359 | done | |
5360 | ||
5361 | if test -z "$MAKEINFO"; then | |
5362 | ac_verc_fail=yes | |
4baa087a | 5363 | else |
43ecc41d | 5364 | # Found it, now check the version. |
c6cb8783 SP |
5365 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $MAKEINFO" >&5 |
5366 | printf %s "checking version of $MAKEINFO... " >&6; } | |
43ecc41d AZ |
5367 | ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'` |
5368 | case $ac_prog_version in | |
5369 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
5370 | 4.[7-9]*|4.[1-9][0-9]*|[5-9].*) | |
5371 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
5372 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
5373 | ||
5374 | esac | |
c6cb8783 SP |
5375 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
5376 | printf "%s\n" "$ac_prog_version" >&6; } | |
4baa087a | 5377 | fi |
43ecc41d AZ |
5378 | if test $ac_verc_fail = yes; then |
5379 | MAKEINFO=: aux_missing="$aux_missing makeinfo" | |
4baa087a | 5380 | fi |
4baa087a | 5381 | |
43ecc41d | 5382 | for ac_prog in sed |
4baa087a RM |
5383 | do |
5384 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5385 | set dummy $ac_prog; ac_word=$2 | |
c6cb8783 SP |
5386 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5387 | printf %s "checking for $ac_word... " >&6; } | |
5388 | if test ${ac_cv_prog_SED+y} | |
5389 | then : | |
5390 | printf %s "(cached) " >&6 | |
5391 | else $as_nop | |
43ecc41d AZ |
5392 | if test -n "$SED"; then |
5393 | ac_cv_prog_SED="$SED" # Let the user override the test. | |
4baa087a RM |
5394 | else |
5395 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5396 | for as_dir in $PATH | |
5397 | do | |
5398 | IFS=$as_save_IFS | |
c6cb8783 SP |
5399 | case $as_dir in #((( |
5400 | '') as_dir=./ ;; | |
5401 | */) ;; | |
5402 | *) as_dir=$as_dir/ ;; | |
5403 | esac | |
b08c89d9 | 5404 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 5405 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
43ecc41d | 5406 | ac_cv_prog_SED="$ac_prog" |
c6cb8783 | 5407 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
4baa087a RM |
5408 | break 2 |
5409 | fi | |
5410 | done | |
b08c89d9 | 5411 | done |
26f56c1c | 5412 | IFS=$as_save_IFS |
4baa087a RM |
5413 | |
5414 | fi | |
5415 | fi | |
43ecc41d AZ |
5416 | SED=$ac_cv_prog_SED |
5417 | if test -n "$SED"; then | |
c6cb8783 SP |
5418 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 |
5419 | printf "%s\n" "$SED" >&6; } | |
4baa087a | 5420 | else |
c6cb8783 SP |
5421 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5422 | printf "%s\n" "no" >&6; } | |
4baa087a RM |
5423 | fi |
5424 | ||
26f56c1c | 5425 | |
43ecc41d | 5426 | test -n "$SED" && break |
4baa087a RM |
5427 | done |
5428 | ||
43ecc41d | 5429 | if test -z "$SED"; then |
4baa087a RM |
5430 | ac_verc_fail=yes |
5431 | else | |
5432 | # Found it, now check the version. | |
c6cb8783 SP |
5433 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $SED" >&5 |
5434 | printf %s "checking version of $SED... " >&6; } | |
43ecc41d | 5435 | ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed[^0-9]* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
4baa087a RM |
5436 | case $ac_prog_version in |
5437 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
43ecc41d | 5438 | 3.0[2-9]*|3.[1-9]*|[4-9]*) |
4baa087a RM |
5439 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
5440 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
5441 | ||
5442 | esac | |
c6cb8783 SP |
5443 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
5444 | printf "%s\n" "$ac_prog_version" >&6; } | |
4baa087a RM |
5445 | fi |
5446 | if test $ac_verc_fail = yes; then | |
43ecc41d | 5447 | SED=: aux_missing="$aux_missing sed" |
4baa087a RM |
5448 | fi |
5449 | ||
43ecc41d | 5450 | for ac_prog in gawk |
f300dc73 L |
5451 | do |
5452 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5453 | set dummy $ac_prog; ac_word=$2 | |
c6cb8783 SP |
5454 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5455 | printf %s "checking for $ac_word... " >&6; } | |
5456 | if test ${ac_cv_prog_AWK+y} | |
5457 | then : | |
5458 | printf %s "(cached) " >&6 | |
5459 | else $as_nop | |
43ecc41d AZ |
5460 | if test -n "$AWK"; then |
5461 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
f300dc73 L |
5462 | else |
5463 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5464 | for as_dir in $PATH | |
5465 | do | |
5466 | IFS=$as_save_IFS | |
c6cb8783 SP |
5467 | case $as_dir in #((( |
5468 | '') as_dir=./ ;; | |
5469 | */) ;; | |
5470 | *) as_dir=$as_dir/ ;; | |
5471 | esac | |
f300dc73 | 5472 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 5473 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
43ecc41d | 5474 | ac_cv_prog_AWK="$ac_prog" |
c6cb8783 | 5475 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
f300dc73 L |
5476 | break 2 |
5477 | fi | |
5478 | done | |
5479 | done | |
5480 | IFS=$as_save_IFS | |
5481 | ||
5482 | fi | |
5483 | fi | |
43ecc41d AZ |
5484 | AWK=$ac_cv_prog_AWK |
5485 | if test -n "$AWK"; then | |
c6cb8783 SP |
5486 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
5487 | printf "%s\n" "$AWK" >&6; } | |
f300dc73 | 5488 | else |
c6cb8783 SP |
5489 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5490 | printf "%s\n" "no" >&6; } | |
f300dc73 L |
5491 | fi |
5492 | ||
5493 | ||
43ecc41d | 5494 | test -n "$AWK" && break |
f300dc73 L |
5495 | done |
5496 | ||
43ecc41d | 5497 | if test -z "$AWK"; then |
f300dc73 L |
5498 | ac_verc_fail=yes |
5499 | else | |
5500 | # Found it, now check the version. | |
c6cb8783 SP |
5501 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $AWK" >&5 |
5502 | printf %s "checking version of $AWK... " >&6; } | |
43ecc41d | 5503 | ac_prog_version=`$AWK --version 2>&1 | sed -n 's/^.*GNU Awk[^0-9]*\([0-9][0-9.]*\).*$/\1/p'` |
f300dc73 L |
5504 | case $ac_prog_version in |
5505 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
43ecc41d | 5506 | 3.1.[2-9]*|3.[2-9]*|[4-9]*) |
f300dc73 L |
5507 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
5508 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
5509 | ||
5510 | esac | |
c6cb8783 SP |
5511 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
5512 | printf "%s\n" "$ac_prog_version" >&6; } | |
f300dc73 L |
5513 | fi |
5514 | if test $ac_verc_fail = yes; then | |
43ecc41d | 5515 | critic_missing="$critic_missing gawk" |
f300dc73 L |
5516 | fi |
5517 | ||
43ecc41d | 5518 | for ac_prog in bison |
224edada FS |
5519 | do |
5520 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5521 | set dummy $ac_prog; ac_word=$2 | |
c6cb8783 SP |
5522 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5523 | printf %s "checking for $ac_word... " >&6; } | |
5524 | if test ${ac_cv_prog_BISON+y} | |
5525 | then : | |
5526 | printf %s "(cached) " >&6 | |
5527 | else $as_nop | |
43ecc41d AZ |
5528 | if test -n "$BISON"; then |
5529 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
224edada FS |
5530 | else |
5531 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5532 | for as_dir in $PATH | |
5533 | do | |
5534 | IFS=$as_save_IFS | |
c6cb8783 SP |
5535 | case $as_dir in #((( |
5536 | '') as_dir=./ ;; | |
5537 | */) ;; | |
5538 | *) as_dir=$as_dir/ ;; | |
5539 | esac | |
224edada | 5540 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 5541 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
43ecc41d | 5542 | ac_cv_prog_BISON="$ac_prog" |
c6cb8783 | 5543 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
224edada FS |
5544 | break 2 |
5545 | fi | |
5546 | done | |
5547 | done | |
5548 | IFS=$as_save_IFS | |
5549 | ||
5550 | fi | |
5551 | fi | |
43ecc41d AZ |
5552 | BISON=$ac_cv_prog_BISON |
5553 | if test -n "$BISON"; then | |
c6cb8783 SP |
5554 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
5555 | printf "%s\n" "$BISON" >&6; } | |
224edada | 5556 | else |
c6cb8783 SP |
5557 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5558 | printf "%s\n" "no" >&6; } | |
224edada FS |
5559 | fi |
5560 | ||
5561 | ||
43ecc41d | 5562 | test -n "$BISON" && break |
224edada FS |
5563 | done |
5564 | ||
43ecc41d | 5565 | if test -z "$BISON"; then |
224edada FS |
5566 | ac_verc_fail=yes |
5567 | else | |
5568 | # Found it, now check the version. | |
c6cb8783 SP |
5569 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $BISON" >&5 |
5570 | printf %s "checking version of $BISON... " >&6; } | |
43ecc41d | 5571 | ac_prog_version=`$BISON --version 2>&1 | sed -n 's/^.*bison (GNU Bison) \([0-9]*\.[0-9.]*\).*$/\1/p'` |
224edada FS |
5572 | case $ac_prog_version in |
5573 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
43ecc41d | 5574 | 2.7*|[3-9].*|[1-9][0-9]*) |
224edada FS |
5575 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
5576 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
5577 | ||
5578 | esac | |
c6cb8783 SP |
5579 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
5580 | printf "%s\n" "$ac_prog_version" >&6; } | |
224edada FS |
5581 | fi |
5582 | if test $ac_verc_fail = yes; then | |
43ecc41d | 5583 | critic_missing="$critic_missing bison" |
224edada FS |
5584 | fi |
5585 | ||
43ecc41d | 5586 | |
c6cb8783 SP |
5587 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC is sufficient to build libc" >&5 |
5588 | printf %s "checking if $CC is sufficient to build libc... " >&6; } | |
5589 | if test ${libc_cv_compiler_ok+y} | |
5590 | then : | |
5591 | printf %s "(cached) " >&6 | |
5592 | else $as_nop | |
43ecc41d AZ |
5593 | |
5594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5595 | /* end confdefs.h. */ | |
5596 | ||
5597 | int | |
c6cb8783 | 5598 | main (void) |
43ecc41d AZ |
5599 | { |
5600 | ||
5601 | #if !defined __GNUC__ || __GNUC__ < 6 || (__GNUC__ == 6 && __GNUC_MINOR__ < 2) | |
5602 | #error insufficient compiler | |
5603 | #endif | |
5604 | ; | |
5605 | return 0; | |
5606 | } | |
5607 | _ACEOF | |
c6cb8783 SP |
5608 | if ac_fn_c_try_cpp "$LINENO" |
5609 | then : | |
43ecc41d | 5610 | libc_cv_compiler_ok=yes |
c6cb8783 | 5611 | else $as_nop |
43ecc41d AZ |
5612 | libc_cv_compiler_ok=no |
5613 | fi | |
5614 | rm -f conftest.err conftest.i conftest.$ac_ext | |
5615 | fi | |
c6cb8783 SP |
5616 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_ok" >&5 |
5617 | printf "%s\n" "$libc_cv_compiler_ok" >&6; } | |
5618 | if test $libc_cv_compiler_ok != yes | |
5619 | then : | |
43ecc41d AZ |
5620 | critic_missing="$critic_missing compiler" |
5621 | fi | |
5622 | ||
43ecc41d AZ |
5623 | if test "x$maintainer" = "xyes"; then |
5624 | for ac_prog in autoconf | |
4baa087a RM |
5625 | do |
5626 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5627 | set dummy $ac_prog; ac_word=$2 | |
c6cb8783 SP |
5628 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5629 | printf %s "checking for $ac_word... " >&6; } | |
5630 | if test ${ac_cv_prog_AUTOCONF+y} | |
5631 | then : | |
5632 | printf %s "(cached) " >&6 | |
5633 | else $as_nop | |
43ecc41d AZ |
5634 | if test -n "$AUTOCONF"; then |
5635 | ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test. | |
cd6ede75 | 5636 | else |
3a12e572 UD |
5637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5638 | for as_dir in $PATH | |
5639 | do | |
5640 | IFS=$as_save_IFS | |
c6cb8783 SP |
5641 | case $as_dir in #((( |
5642 | '') as_dir=./ ;; | |
5643 | */) ;; | |
5644 | *) as_dir=$as_dir/ ;; | |
5645 | esac | |
b08c89d9 | 5646 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 5647 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
43ecc41d | 5648 | ac_cv_prog_AUTOCONF="$ac_prog" |
c6cb8783 | 5649 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
3a12e572 UD |
5650 | break 2 |
5651 | fi | |
5652 | done | |
b08c89d9 | 5653 | done |
26f56c1c | 5654 | IFS=$as_save_IFS |
3a12e572 | 5655 | |
cd6ede75 UD |
5656 | fi |
5657 | fi | |
43ecc41d AZ |
5658 | AUTOCONF=$ac_cv_prog_AUTOCONF |
5659 | if test -n "$AUTOCONF"; then | |
c6cb8783 SP |
5660 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5 |
5661 | printf "%s\n" "$AUTOCONF" >&6; } | |
cd6ede75 | 5662 | else |
c6cb8783 SP |
5663 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5664 | printf "%s\n" "no" >&6; } | |
cd6ede75 UD |
5665 | fi |
5666 | ||
26f56c1c | 5667 | |
43ecc41d | 5668 | test -n "$AUTOCONF" && break |
4baa087a | 5669 | done |
43ecc41d | 5670 | test -n "$AUTOCONF" || AUTOCONF="no" |
4baa087a | 5671 | |
43ecc41d AZ |
5672 | case "x$AUTOCONF" in |
5673 | xno|x|x:) AUTOCONF=no ;; | |
5674 | *) | |
c6cb8783 SP |
5675 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5 |
5676 | printf %s "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; } | |
5677 | if test ${libc_cv_autoconf_works+y} | |
5678 | then : | |
5679 | printf %s "(cached) " >&6 | |
5680 | else $as_nop | |
43ecc41d AZ |
5681 | if (cd $srcdir; $AUTOCONF $ACFLAGS configure.ac > /dev/null 2>&1); then |
5682 | libc_cv_autoconf_works=yes | |
5683 | else | |
5684 | libc_cv_autoconf_works=no | |
5685 | fi | |
3a12e572 | 5686 | fi |
c6cb8783 SP |
5687 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_autoconf_works" >&5 |
5688 | printf "%s\n" "$libc_cv_autoconf_works" >&6; } | |
43ecc41d AZ |
5689 | test $libc_cv_autoconf_works = yes || AUTOCONF=no |
5690 | ;; | |
5691 | esac | |
5692 | if test "x$AUTOCONF" = xno; then | |
5693 | aux_missing="$aux_missing autoconf" | |
5694 | fi | |
5695 | else | |
5696 | AUTOCONF=no | |
4baa087a RM |
5697 | fi |
5698 | ||
43ecc41d AZ |
5699 | # Check for python3 if available, or else python. |
5700 | for ac_prog in python3 python | |
4baa087a RM |
5701 | do |
5702 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5703 | set dummy $ac_prog; ac_word=$2 | |
c6cb8783 SP |
5704 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5705 | printf %s "checking for $ac_word... " >&6; } | |
5706 | if test ${ac_cv_prog_PYTHON_PROG+y} | |
5707 | then : | |
5708 | printf %s "(cached) " >&6 | |
5709 | else $as_nop | |
43ecc41d AZ |
5710 | if test -n "$PYTHON_PROG"; then |
5711 | ac_cv_prog_PYTHON_PROG="$PYTHON_PROG" # Let the user override the test. | |
cd6ede75 | 5712 | else |
3a12e572 UD |
5713 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5714 | for as_dir in $PATH | |
5715 | do | |
5716 | IFS=$as_save_IFS | |
c6cb8783 SP |
5717 | case $as_dir in #((( |
5718 | '') as_dir=./ ;; | |
5719 | */) ;; | |
5720 | *) as_dir=$as_dir/ ;; | |
5721 | esac | |
b08c89d9 | 5722 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 5723 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
43ecc41d | 5724 | ac_cv_prog_PYTHON_PROG="$ac_prog" |
c6cb8783 | 5725 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
3a12e572 UD |
5726 | break 2 |
5727 | fi | |
5728 | done | |
b08c89d9 | 5729 | done |
26f56c1c | 5730 | IFS=$as_save_IFS |
3a12e572 | 5731 | |
cd6ede75 UD |
5732 | fi |
5733 | fi | |
43ecc41d AZ |
5734 | PYTHON_PROG=$ac_cv_prog_PYTHON_PROG |
5735 | if test -n "$PYTHON_PROG"; then | |
c6cb8783 SP |
5736 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_PROG" >&5 |
5737 | printf "%s\n" "$PYTHON_PROG" >&6; } | |
cd6ede75 | 5738 | else |
c6cb8783 SP |
5739 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5740 | printf "%s\n" "no" >&6; } | |
cd6ede75 UD |
5741 | fi |
5742 | ||
26f56c1c | 5743 | |
43ecc41d | 5744 | test -n "$PYTHON_PROG" && break |
4baa087a | 5745 | done |
5edb9387 | 5746 | |
43ecc41d | 5747 | if test -z "$PYTHON_PROG"; then |
4baa087a | 5748 | ac_verc_fail=yes |
5edb9387 | 5749 | else |
4baa087a | 5750 | # Found it, now check the version. |
c6cb8783 SP |
5751 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $PYTHON_PROG" >&5 |
5752 | printf %s "checking version of $PYTHON_PROG... " >&6; } | |
43ecc41d | 5753 | ac_prog_version=`$PYTHON_PROG --version 2>&1 | sed -n 's/^.*Python \([0-9][0-9.]*\).*$/\1/p'` |
4baa087a RM |
5754 | case $ac_prog_version in |
5755 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
43ecc41d | 5756 | 3.[4-9]*|3.[1-9][0-9]*|[4-9].*|[1-9][0-9]*) |
4baa087a RM |
5757 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
5758 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
5edb9387 | 5759 | |
4baa087a | 5760 | esac |
c6cb8783 SP |
5761 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
5762 | printf "%s\n" "$ac_prog_version" >&6; } | |
5edb9387 | 5763 | fi |
4baa087a | 5764 | if test $ac_verc_fail = yes; then |
43ecc41d | 5765 | critic_missing="$critic_missing python" |
5edb9387 | 5766 | fi |
cd6ede75 | 5767 | |
43ecc41d AZ |
5768 | PYTHON="$PYTHON_PROG -B" |
5769 | ||
5770 | ||
5771 | test -n "$critic_missing" && as_fn_error $? " | |
5772 | *** These critical programs are missing or too old:$critic_missing | |
5773 | *** Check the INSTALL file for required versions." "$LINENO" 5 | |
5774 | ||
c6cb8783 | 5775 | test -n "$aux_missing" && { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: |
43ecc41d AZ |
5776 | *** These auxiliary programs are missing or incompatible versions:$aux_missing |
5777 | *** some features or tests will be disabled. | |
5778 | *** Check the INSTALL file for required versions." >&5 | |
c6cb8783 | 5779 | printf "%s\n" "$as_me: WARNING: |
43ecc41d AZ |
5780 | *** These auxiliary programs are missing or incompatible versions:$aux_missing |
5781 | *** some features or tests will be disabled. | |
5782 | *** Check the INSTALL file for required versions." >&2;} | |
5783 | ||
5784 | ||
5785 | # Determine whether to use fpu or nofpu sysdeps directories. | |
c6cb8783 SP |
5786 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for use of fpu sysdeps directories" >&5 |
5787 | printf %s "checking for use of fpu sysdeps directories... " >&6; } | |
5788 | if test ${libc_cv_with_fp+y} | |
5789 | then : | |
5790 | printf %s "(cached) " >&6 | |
5791 | else $as_nop | |
43ecc41d AZ |
5792 | cat > conftest.c <<EOF |
5793 | #if $with_fp_cond | |
5794 | int dummy; | |
5795 | #else | |
5796 | # error "no hardware floating point" | |
5797 | #endif | |
5798 | EOF | |
5799 | libc_cv_with_fp=no | |
5800 | if ${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c -o conftest.s \ | |
5801 | 1>&5 2>&5 ; then | |
5802 | libc_cv_with_fp=yes | |
c4d23330 | 5803 | fi |
43ecc41d | 5804 | rm -f conftest* |
c4d23330 | 5805 | fi |
c6cb8783 SP |
5806 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_with_fp" >&5 |
5807 | printf "%s\n" "$libc_cv_with_fp" >&6; } | |
43ecc41d AZ |
5808 | |
5809 | ||
c6cb8783 SP |
5810 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector" >&5 |
5811 | printf %s "checking for -fstack-protector... " >&6; } | |
5812 | if test ${libc_cv_ssp+y} | |
5813 | then : | |
5814 | printf %s "(cached) " >&6 | |
5815 | else $as_nop | |
43ecc41d AZ |
5816 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector -xc /dev/null -S -o /dev/null' |
5817 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
5818 | (eval $ac_try) 2>&5 | |
5819 | ac_status=$? | |
c6cb8783 SP |
5820 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5821 | test $ac_status = 0; }; } | |
5822 | then : | |
43ecc41d | 5823 | libc_cv_ssp=yes |
c6cb8783 | 5824 | else $as_nop |
43ecc41d | 5825 | libc_cv_ssp=no |
c4d23330 RM |
5826 | fi |
5827 | ||
43ecc41d | 5828 | fi |
c6cb8783 SP |
5829 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp" >&5 |
5830 | printf "%s\n" "$libc_cv_ssp" >&6; } | |
26f56c1c | 5831 | |
c6cb8783 SP |
5832 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector-strong" >&5 |
5833 | printf %s "checking for -fstack-protector-strong... " >&6; } | |
5834 | if test ${libc_cv_ssp_strong+y} | |
5835 | then : | |
5836 | printf %s "(cached) " >&6 | |
5837 | else $as_nop | |
43ecc41d AZ |
5838 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-strong -xc /dev/null -S -o /dev/null' |
5839 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
5840 | (eval $ac_try) 2>&5 | |
5841 | ac_status=$? | |
c6cb8783 SP |
5842 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5843 | test $ac_status = 0; }; } | |
5844 | then : | |
43ecc41d | 5845 | libc_cv_ssp_strong=yes |
c6cb8783 | 5846 | else $as_nop |
43ecc41d | 5847 | libc_cv_ssp_strong=no |
c4d23330 | 5848 | fi |
43ecc41d | 5849 | |
c4d23330 | 5850 | fi |
c6cb8783 SP |
5851 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_strong" >&5 |
5852 | printf "%s\n" "$libc_cv_ssp_strong" >&6; } | |
c4d23330 | 5853 | |
c6cb8783 SP |
5854 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector-all" >&5 |
5855 | printf %s "checking for -fstack-protector-all... " >&6; } | |
5856 | if test ${libc_cv_ssp_all+y} | |
5857 | then : | |
5858 | printf %s "(cached) " >&6 | |
5859 | else $as_nop | |
43ecc41d AZ |
5860 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-all -xc /dev/null -S -o /dev/null' |
5861 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
5862 | (eval $ac_try) 2>&5 | |
5863 | ac_status=$? | |
c6cb8783 SP |
5864 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5865 | test $ac_status = 0; }; } | |
5866 | then : | |
43ecc41d | 5867 | libc_cv_ssp_all=yes |
c6cb8783 | 5868 | else $as_nop |
43ecc41d AZ |
5869 | libc_cv_ssp_all=no |
5870 | fi | |
0786794f AM |
5871 | |
5872 | fi | |
c6cb8783 SP |
5873 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_all" >&5 |
5874 | printf "%s\n" "$libc_cv_ssp_all" >&6; } | |
43ecc41d AZ |
5875 | |
5876 | stack_protector= | |
5877 | no_stack_protector= | |
5878 | if test "$libc_cv_ssp" = yes; then | |
5879 | no_stack_protector="-fno-stack-protector -DSTACK_PROTECTOR_LEVEL=0" | |
c6cb8783 | 5880 | printf "%s\n" "#define HAVE_CC_NO_STACK_PROTECTOR 1" >>confdefs.h |
43ecc41d | 5881 | |
0786794f | 5882 | fi |
43ecc41d AZ |
5883 | |
5884 | if test "$enable_stack_protector" = yes && test "$libc_cv_ssp" = yes; then | |
5885 | stack_protector="-fstack-protector" | |
c6cb8783 | 5886 | printf "%s\n" "#define STACK_PROTECTOR_LEVEL 1" >>confdefs.h |
43ecc41d AZ |
5887 | |
5888 | elif test "$enable_stack_protector" = all && test "$libc_cv_ssp_all" = yes; then | |
5889 | stack_protector="-fstack-protector-all" | |
c6cb8783 | 5890 | printf "%s\n" "#define STACK_PROTECTOR_LEVEL 2" >>confdefs.h |
43ecc41d AZ |
5891 | |
5892 | elif test "$enable_stack_protector" = strong && test "$libc_cv_ssp_strong" = yes; then | |
5893 | stack_protector="-fstack-protector-strong" | |
c6cb8783 | 5894 | printf "%s\n" "#define STACK_PROTECTOR_LEVEL 3" >>confdefs.h |
43ecc41d | 5895 | |
0786794f | 5896 | else |
43ecc41d | 5897 | stack_protector="-fno-stack-protector" |
c6cb8783 | 5898 | printf "%s\n" "#define STACK_PROTECTOR_LEVEL 0" >>confdefs.h |
43ecc41d | 5899 | |
0786794f AM |
5900 | fi |
5901 | ||
5902 | ||
0786794f | 5903 | |
43ecc41d AZ |
5904 | |
5905 | if test -n "$stack_protector"; then | |
5906 | no_ssp=-fno-stack-protector | |
0786794f | 5907 | else |
43ecc41d | 5908 | no_ssp= |
0786794f | 5909 | |
43ecc41d AZ |
5910 | if test "$enable_stack_protector" != no; then |
5911 | as_fn_error $? "--enable-stack-protector=$enable_stack_protector specified, but specified level of stack protection is not supported by the compiler." "$LINENO" 5 | |
5912 | fi | |
0786794f AM |
5913 | fi |
5914 | ||
43ecc41d | 5915 | # For the multi-arch option we need support in the assembler & linker. |
c6cb8783 SP |
5916 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for assembler and linker STT_GNU_IFUNC support" >&5 |
5917 | printf %s "checking for assembler and linker STT_GNU_IFUNC support... " >&6; } | |
5918 | if test ${libc_cv_ld_gnu_indirect_function+y} | |
5919 | then : | |
5920 | printf %s "(cached) " >&6 | |
5921 | else $as_nop | |
43ecc41d AZ |
5922 | cat > conftest.S <<EOF |
5923 | .type foo,%gnu_indirect_function | |
5924 | foo: | |
5925 | .globl _start | |
5926 | _start: | |
5927 | .globl __start | |
5928 | __start: | |
5929 | .data | |
5930 | #ifdef _LP64 | |
5931 | .quad foo | |
5932 | #else | |
5933 | .long foo | |
5934 | #endif | |
5935 | EOF | |
5936 | libc_cv_ld_gnu_indirect_function=no | |
5937 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ | |
5938 | -nostartfiles -nostdlib $no_ssp \ | |
5939 | -o conftest conftest.S 1>&5 2>&5; then | |
5940 | # Do a link to see if the backend supports IFUNC relocs. | |
5941 | $READELF -r conftest 1>&5 | |
5942 | LC_ALL=C $READELF -Wr conftest | grep -q 'IRELATIVE\|R_SPARC_JMP_IREL' && { | |
5943 | libc_cv_ld_gnu_indirect_function=yes | |
5944 | } | |
5945 | fi | |
5946 | rm -f conftest* | |
5947 | fi | |
c6cb8783 SP |
5948 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_gnu_indirect_function" >&5 |
5949 | printf "%s\n" "$libc_cv_ld_gnu_indirect_function" >&6; } | |
43ecc41d AZ |
5950 | |
5951 | # Check if gcc supports attribute ifunc as it is used in libc_ifunc macro. | |
c6cb8783 SP |
5952 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc attribute ifunc support" >&5 |
5953 | printf %s "checking for gcc attribute ifunc support... " >&6; } | |
5954 | if test ${libc_cv_gcc_indirect_function+y} | |
5955 | then : | |
5956 | printf %s "(cached) " >&6 | |
5957 | else $as_nop | |
43ecc41d AZ |
5958 | cat > conftest.c <<EOF |
5959 | extern int func (int); | |
5960 | int used_func (int a) | |
5961 | { | |
5962 | return a; | |
5963 | } | |
5964 | static void *resolver () | |
5965 | { | |
5966 | return &used_func; | |
5967 | } | |
5968 | extern __typeof (func) func __attribute__ ((ifunc ("resolver"))); | |
5969 | EOF | |
5970 | libc_cv_gcc_indirect_function=no | |
5971 | if ${CC-cc} -c conftest.c -o conftest.o 1>&5 \ | |
5972 | 2>&5 ; then | |
5973 | if $READELF -s conftest.o | grep IFUNC >/dev/null 2>&5; then | |
5974 | libc_cv_gcc_indirect_function=yes | |
1faaf703 | 5975 | fi |
1faaf703 | 5976 | fi |
43ecc41d AZ |
5977 | rm -f conftest* |
5978 | fi | |
c6cb8783 SP |
5979 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_indirect_function" >&5 |
5980 | printf "%s\n" "$libc_cv_gcc_indirect_function" >&6; } | |
43ecc41d AZ |
5981 | |
5982 | # Check if linker supports textrel relocation with ifunc (used on elf/tests). | |
5983 | # Note that it relies on libc_cv_ld_gnu_indirect_function test above. | |
c6cb8783 SP |
5984 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker supports textrels along with ifunc" >&5 |
5985 | printf %s "checking whether the linker supports textrels along with ifunc... " >&6; } | |
5986 | if test ${libc_cv_textrel_ifunc+y} | |
5987 | then : | |
5988 | printf %s "(cached) " >&6 | |
5989 | else $as_nop | |
43ecc41d AZ |
5990 | cat > conftest.S <<EOF |
5991 | .type foo,%gnu_indirect_function | |
5992 | foo: | |
5993 | .globl _start | |
5994 | _start: | |
5995 | .globl __start | |
5996 | __start: | |
5997 | .data | |
5998 | #ifdef _LP64 | |
5999 | .quad foo | |
6000 | #else | |
6001 | .long foo | |
6002 | #endif | |
6003 | .text | |
6004 | .globl address | |
6005 | address: | |
6006 | #ifdef _LP64 | |
6007 | .quad address | |
6008 | #else | |
6009 | .long address | |
6010 | #endif | |
6011 | EOF | |
6012 | libc_cv_textrel_ifunc=no | |
6013 | if test $libc_cv_ld_gnu_indirect_function = yes; then | |
6014 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostartfiles -nostdlib $no_ssp -pie -o conftest conftest.S' | |
6015 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
6016 | (eval $ac_try) 2>&5 | |
6017 | ac_status=$? | |
c6cb8783 | 6018 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
43ecc41d AZ |
6019 | test $ac_status = 0; }; }; then |
6020 | libc_cv_textrel_ifunc=yes | |
6021 | fi | |
1faaf703 | 6022 | fi |
43ecc41d | 6023 | rm -f conftest* |
1faaf703 | 6024 | fi |
c6cb8783 SP |
6025 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_textrel_ifunc" >&5 |
6026 | printf "%s\n" "$libc_cv_textrel_ifunc" >&6; } | |
1faaf703 JB |
6027 | |
6028 | ||
43ecc41d | 6029 | # Check if CC supports attribute retain as it is used in attribute_used_retain macro. |
c6cb8783 SP |
6030 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU attribute retain support" >&5 |
6031 | printf %s "checking for GNU attribute retain support... " >&6; } | |
6032 | if test ${libc_cv_gnu_retain+y} | |
6033 | then : | |
6034 | printf %s "(cached) " >&6 | |
6035 | else $as_nop | |
43ecc41d AZ |
6036 | cat > conftest.c <<EOF |
6037 | static int var __attribute__ ((used, retain, section ("__libc_atexit"))); | |
6038 | EOF | |
6039 | libc_cv_gnu_retain=no | |
6040 | if ${CC-cc} -Werror -c conftest.c -o /dev/null 1>&5 \ | |
6041 | 2>&5 ; then | |
6042 | libc_cv_gnu_retain=yes | |
1faaf703 | 6043 | fi |
43ecc41d | 6044 | rm -f conftest* |
1faaf703 | 6045 | fi |
c6cb8783 SP |
6046 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gnu_retain" >&5 |
6047 | printf "%s\n" "$libc_cv_gnu_retain" >&6; } | |
43ecc41d | 6048 | if test $libc_cv_gnu_retain = yes; then |
c6cb8783 | 6049 | printf "%s\n" "#define HAVE_GNU_RETAIN 1" >>confdefs.h |
1faaf703 | 6050 | |
43ecc41d AZ |
6051 | fi |
6052 | config_vars="$config_vars | |
6053 | have-gnu-retain = $libc_cv_gnu_retain" | |
4baa087a | 6054 | |
43ecc41d | 6055 | # Check if gcc warns about alias for function with incompatible types. |
c6cb8783 SP |
6056 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler warns about alias for function with incompatible types" >&5 |
6057 | printf %s "checking if compiler warns about alias for function with incompatible types... " >&6; } | |
6058 | if test ${libc_cv_gcc_incompatible_alias+y} | |
6059 | then : | |
6060 | printf %s "(cached) " >&6 | |
6061 | else $as_nop | |
43ecc41d AZ |
6062 | cat > conftest.c <<EOF |
6063 | int __redirect_foo (const void *s, int c); | |
461a7b1e | 6064 | |
43ecc41d AZ |
6065 | __typeof (__redirect_foo) *foo_impl (void) __asm__ ("foo"); |
6066 | __typeof (__redirect_foo) *foo_impl (void) | |
461a7b1e | 6067 | { |
461a7b1e RM |
6068 | return 0; |
6069 | } | |
43ecc41d AZ |
6070 | |
6071 | extern __typeof (__redirect_foo) foo_alias __attribute__ ((alias ("foo"))); | |
6072 | EOF | |
6073 | libc_cv_gcc_incompatible_alias=yes | |
6074 | if ${CC-cc} -Werror -c conftest.c -o conftest.o 1>&5 2>&5 ; then | |
6075 | libc_cv_gcc_incompatible_alias=no | |
461a7b1e | 6076 | fi |
43ecc41d | 6077 | rm -f conftest* |
461a7b1e | 6078 | fi |
c6cb8783 SP |
6079 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_incompatible_alias" >&5 |
6080 | printf "%s\n" "$libc_cv_gcc_incompatible_alias" >&6; } | |
461a7b1e | 6081 | |
43ecc41d AZ |
6082 | if test x"$libc_cv_ld_gnu_indirect_function" != xyes; then |
6083 | if test x"$multi_arch" = xyes; then | |
6084 | as_fn_error $? "--enable-multi-arch support requires assembler and linker support" "$LINENO" 5 | |
6085 | else | |
6086 | multi_arch=no | |
30b99d79 | 6087 | fi |
30b99d79 | 6088 | fi |
43ecc41d AZ |
6089 | if test x"$libc_cv_gcc_indirect_function" != xyes; then |
6090 | # GCC 8+ emits a warning for alias with incompatible types and it might | |
6091 | # fail to build ifunc resolvers aliases to either weak or internal | |
6092 | # symbols. Disables multiarch build in this case. | |
6093 | if test x"$libc_cv_gcc_incompatible_alias" = xyes; then | |
c6cb8783 SP |
6094 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: gcc emits a warning for alias between functions of incompatible types" >&5 |
6095 | printf "%s\n" "$as_me: WARNING: gcc emits a warning for alias between functions of incompatible types" >&2;} | |
43ecc41d AZ |
6096 | if test x"$multi_arch" = xyes; then |
6097 | as_fn_error $? "--enable-multi-arch support requires a gcc with gnu-indirect-function support" "$LINENO" 5 | |
6098 | fi | |
c6cb8783 SP |
6099 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Multi-arch is disabled." >&5 |
6100 | printf "%s\n" "$as_me: WARNING: Multi-arch is disabled." >&2;} | |
43ecc41d AZ |
6101 | multi_arch=no |
6102 | elif test x"$multi_arch" = xyes; then | |
c6cb8783 | 6103 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support. |
43ecc41d | 6104 | Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&5 |
c6cb8783 | 6105 | printf "%s\n" "$as_me: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support. |
43ecc41d AZ |
6106 | Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&2;} |
6107 | fi | |
30b99d79 | 6108 | fi |
43ecc41d AZ |
6109 | multi_arch_d= |
6110 | if test x"$multi_arch" != xno; then | |
6111 | multi_arch_d=/multiarch | |
30b99d79 RM |
6112 | fi |
6113 | ||
43ecc41d AZ |
6114 | # Compute the list of sysdep directories for this configuration. |
6115 | # This can take a while to compute. | |
6116 | sysdep_dir=$srcdir/sysdeps | |
c6cb8783 SP |
6117 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sysdep dirs" >&5 |
6118 | printf %s "checking sysdep dirs... " >&6; } | |
43ecc41d AZ |
6119 | # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1. |
6120 | os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`" | |
6121 | ||
6122 | test "x$base_os" != x || case "$os" in | |
6123 | gnu*) | |
6124 | base_os=mach/hurd ;; | |
6125 | linux*) | |
6126 | base_os=unix/sysv ;; | |
6127 | esac | |
30b99d79 | 6128 | |
43ecc41d AZ |
6129 | # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos. |
6130 | tail=$os | |
6131 | ostry=$os | |
6132 | while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do | |
6133 | ostry="$ostry /$o" | |
6134 | tail=$o | |
6135 | done | |
6136 | o=`echo $tail | sed 's/[0-9]*$//'` | |
6137 | if test $o != $tail; then | |
6138 | ostry="$ostry /$o" | |
30b99d79 | 6139 | fi |
43ecc41d AZ |
6140 | # For linux-gnu, try linux-gnu, then linux. |
6141 | o=`echo $tail | sed 's/-.*$//'` | |
6142 | if test $o != $tail; then | |
6143 | ostry="$ostry /$o" | |
6144 | fi | |
6145 | ||
6146 | # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix. | |
6147 | base= | |
6148 | tail=$base_os | |
6149 | while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do | |
6150 | set $b | |
6151 | base="$base /$1" | |
6152 | tail="$2" | |
6153 | done | |
6154 | ||
6155 | # For sparc/sparc32, try sparc/sparc32 and then sparc. | |
6156 | mach= | |
6157 | tail=$machine${submachine:+/$submachine} | |
6158 | while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do | |
6159 | set $m | |
6160 | # Prepend the machine's FPU directory unless the architecture specific | |
6161 | # preconfigure disables it. | |
6162 | if test "$libc_cv_with_fp" = yes; then | |
6163 | maybe_fpu=/fpu | |
6164 | else | |
6165 | maybe_fpu=/nofpu | |
30b99d79 | 6166 | fi |
43ecc41d AZ |
6167 | # For each machine term, try it with and then without /multiarch. |
6168 | for try_fpu in $maybe_fpu ''; do | |
6169 | for try_multi in $multi_arch_d ''; do | |
6170 | mach="$mach /$1$try_fpu$try_multi" | |
6171 | done | |
6172 | done | |
6173 | tail="$2" | |
30b99d79 | 6174 | done |
43ecc41d AZ |
6175 | |
6176 | ||
6177 | # Find what sysdep directories exist. | |
6178 | sysnames= | |
6179 | for b in $base ''; do | |
6180 | for m0 in $mach ''; do | |
6181 | for v in /$vendor ''; do | |
6182 | test "$v" = / && continue | |
6183 | for o in /$ostry ''; do | |
6184 | test "$o" = / && continue | |
6185 | for m in $mach ''; do | |
6186 | try_suffix="$m0$b$v$o$m" | |
6187 | if test -n "$try_suffix"; then | |
6188 | try_srcdir="${srcdir}/" | |
6189 | try="sysdeps$try_suffix" | |
6190 | test -n "$enable_debug_configure" && | |
6191 | echo "$0 DEBUG: try $try" >&2 | |
6192 | if test -d "$try_srcdir$try"; then | |
6193 | sysnames="$sysnames $try" | |
6194 | { test -n "$o" || test -n "$b"; } && os_used=t | |
6195 | { test -n "$m" || test -n "$m0"; } && machine_used=t | |
6196 | case x${m0:-$m} in | |
6197 | x*/$submachine) submachine_used=t ;; | |
6198 | esac | |
6199 | fi | |
6200 | fi | |
6201 | done | |
6202 | done | |
6203 | done | |
30b99d79 | 6204 | done |
43ecc41d | 6205 | done |
30b99d79 | 6206 | |
43ecc41d AZ |
6207 | # If the assembler supports gnu_indirect_function symbol type and the |
6208 | # architecture supports multi-arch, we enable multi-arch by default. | |
6209 | case $sysnames in | |
6210 | *"$multi_arch_d"*) | |
6211 | ;; | |
6212 | *) | |
6213 | test x"$multi_arch" = xdefault && multi_arch=no | |
6214 | ;; | |
30b99d79 | 6215 | esac |
43ecc41d | 6216 | if test x"$multi_arch" != xno; then |
c6cb8783 | 6217 | printf "%s\n" "#define USE_MULTIARCH 1" >>confdefs.h |
30b99d79 | 6218 | |
43ecc41d | 6219 | fi |
d30cf5bb | 6220 | |
c4d23330 | 6221 | |
43ecc41d AZ |
6222 | if test -z "$os_used" && test "$os" != none; then |
6223 | as_fn_error $? "Operating system $os is not supported." "$LINENO" 5 | |
c4d23330 | 6224 | fi |
43ecc41d AZ |
6225 | if test -z "$machine_used" && test "$machine" != none; then |
6226 | as_fn_error $? "The $machine is not supported." "$LINENO" 5 | |
c4d23330 | 6227 | fi |
43ecc41d AZ |
6228 | if test -z "$submachine_used" && test -n "$submachine"; then |
6229 | as_fn_error $? "The $submachine subspecies of $host_cpu is not supported." "$LINENO" 5 | |
c4d23330 RM |
6230 | fi |
6231 | ||
26f56c1c | 6232 | |
43ecc41d | 6233 | # We have now validated the configuration. |
c4d23330 | 6234 | |
43ecc41d AZ |
6235 | # Expand the list of system names into a full list of directories |
6236 | # from each element's parent name and Implies file (if present). | |
6237 | set $sysnames | |
6238 | names= | |
6239 | while test $# -gt 0; do | |
6240 | name=$1 | |
6241 | shift | |
6242 | ||
6243 | case " $names " in *" $name "*) | |
6244 | # Already in the list. | |
6245 | continue | |
8894bad3 | 6246 | esac |
c4d23330 | 6247 | |
43ecc41d AZ |
6248 | # Report each name as we discover it, so there is no long pause in output. |
6249 | echo $ECHO_N "$name $ECHO_C" >&6 | |
8ce8299f | 6250 | |
43ecc41d | 6251 | name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'` |
8ce8299f | 6252 | |
43ecc41d AZ |
6253 | case $name in |
6254 | /*) xsrcdir= ;; | |
6255 | *) xsrcdir=$srcdir/ ;; | |
6256 | esac | |
6257 | test -n "$enable_debug_configure" && | |
6258 | echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2 | |
8ce8299f | 6259 | |
43ecc41d AZ |
6260 | for implies_file in Implies Implies-before Implies-after; do |
6261 | implies_type=`echo $implies_file | sed s/-/_/` | |
6262 | eval ${implies_type}= | |
6263 | if test -f $xsrcdir$name/$implies_file; then | |
6264 | # Collect more names from the `Implies' file (removing comments). | |
6265 | implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/$implies_file`" | |
6266 | for x in $implied_candidate; do | |
6267 | found=no | |
6268 | if test -d $xsrcdir$name_base/$x; then | |
6269 | eval "${implies_type}=\"\$${implies_type} \$name_base/\$x\"" | |
6270 | found=yes | |
6271 | fi | |
6272 | try="sysdeps/$x" | |
6273 | try_srcdir=$srcdir/ | |
6274 | test -n "$enable_debug_configure" && | |
6275 | echo "DEBUG: $name $implies_file $x try() {$try_srcdir}$try" >&2 | |
6276 | if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try; | |
6277 | then | |
6278 | eval "${implies_type}=\"\$${implies_type} \$try\"" | |
6279 | found=yes | |
6280 | fi | |
6281 | if test $found = no; then | |
c6cb8783 SP |
6282 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $name/$implies_file specifies nonexistent $x" >&5 |
6283 | printf "%s\n" "$as_me: WARNING: $name/$implies_file specifies nonexistent $x" >&2;} | |
43ecc41d AZ |
6284 | fi |
6285 | done | |
6286 | fi | |
6287 | done | |
8ce8299f | 6288 | |
43ecc41d AZ |
6289 | # Add NAME to the list of names. |
6290 | names="$names $name" | |
8ce8299f | 6291 | |
43ecc41d AZ |
6292 | # Find the parent of NAME, using the empty string if it has none. |
6293 | parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`" | |
c6982f7e | 6294 | |
43ecc41d AZ |
6295 | test -n "$enable_debug_configure" && |
6296 | echo "DEBUG: $name Implies='$Implies' rest='$*' parent='$parent' \ | |
6297 | Implies_before='$Implies_before' Implies_after='$Implies_after'" >&2 | |
c6982f7e | 6298 | |
43ecc41d AZ |
6299 | # Add the names implied by NAME, and NAME's parent (if it has one), to |
6300 | # the list of names to be processed (the argument list). We prepend the | |
6301 | # implied names to the list and append the parent. We want implied | |
6302 | # directories to come before further directories inferred from the | |
6303 | # configuration components; this ensures that for sysv4, unix/common | |
6304 | # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*) | |
6305 | # after sysv4). | |
6306 | sysnames="`echo $Implies $* $Implies_before $parent $Implies_after`" | |
6307 | test -n "$sysnames" && set $sysnames | |
6308 | done | |
8ce8299f | 6309 | |
43ecc41d AZ |
6310 | # Add the default directories. |
6311 | default_sysnames="sysdeps/generic" | |
6312 | sysnames="$names $default_sysnames" | |
32a448ed | 6313 | |
43ecc41d | 6314 | # The other names were emitted during the scan. |
c6cb8783 SP |
6315 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $default_sysnames" >&5 |
6316 | printf "%s\n" "$default_sysnames" >&6; } | |
ea9f119b | 6317 | |
3c720987 UD |
6318 | # if using special system headers, find out the compiler's sekrit |
6319 | # header directory and add that to the list. NOTE: Only does the right | |
6320 | # thing on a system that doesn't need fixincludes. (Not presently a problem.) | |
6321 | if test -n "$sysheaders"; then | |
67fbfa5c RM |
6322 | SYSINCLUDES=-nostdinc |
6323 | for d in include include-fixed; do | |
22dca1ea | 6324 | i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" && |
67fbfa5c RM |
6325 | SYSINCLUDES="$SYSINCLUDES -isystem $i" |
6326 | done | |
6327 | SYSINCLUDES="$SYSINCLUDES \ | |
3d6ce23a | 6328 | -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`" |
ef226fec | 6329 | if test -n "$CXX"; then |
7872cfb0 | 6330 | CXX_SYSINCLUDES= |
67060746 AC |
6331 | for cxxheaders in `$CXX -v -S -x c++ /dev/null -o /dev/null 2>&1 \ |
6332 | | sed -n -e '1,/#include/d' -e 's/^ \(\/.*\/[cg]++\)/\1/p'`; do | |
6333 | test "x$cxxheaders" != x && | |
6334 | CXX_SYSINCLUDES="$CXX_SYSINCLUDES -isystem $cxxheaders" | |
6335 | done | |
ef226fec | 6336 | fi |
3c720987 UD |
6337 | fi |
6338 | ||
6339 | ||
ef226fec | 6340 | |
fc3e1337 FW |
6341 | # Obtain some C++ header file paths. This is used to make a local |
6342 | # copy of those headers in Makerules. | |
6343 | if test -n "$CXX"; then | |
6344 | find_cxx_header () { | |
596183a1 AZ |
6345 | echo "#include <$1>" | $CXX -H -fsyntax-only -x c++ - 2>&1 \ |
6346 | | $AWK '$1 == "."{print $2}' | |
fc3e1337 FW |
6347 | } |
6348 | CXX_CSTDLIB_HEADER="$(find_cxx_header cstdlib)" | |
6349 | CXX_CMATH_HEADER="$(find_cxx_header cmath)" | |
a65ea28d | 6350 | CXX_BITS_STD_ABS_H="$(find_cxx_header bits/std_abs.h)" |
fc3e1337 FW |
6351 | fi |
6352 | ||
6353 | ||
6354 | ||
a65ea28d | 6355 | |
3911660e UD |
6356 | # Test if LD_LIBRARY_PATH contains the notation for the current directory |
6357 | # since this would lead to problems installing/building glibc. | |
6358 | # LD_LIBRARY_PATH contains the current directory if one of the following | |
6359 | # is true: | |
6360 | # - one of the terminals (":" and ";") is the first or last sign | |
6361 | # - two terminals occur directly after each other | |
6362 | # - the path contains an element with a dot in it | |
c6cb8783 SP |
6363 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LD_LIBRARY_PATH variable" >&5 |
6364 | printf %s "checking LD_LIBRARY_PATH variable... " >&6; } | |
3911660e UD |
6365 | case ${LD_LIBRARY_PATH} in |
6366 | [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) | |
b3a86ae1 | 6367 | ld_library_path_setting="contains current directory" |
3911660e UD |
6368 | ;; |
6369 | *) | |
6370 | ld_library_path_setting="ok" | |
6371 | ;; | |
6372 | esac | |
c6cb8783 SP |
6373 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_library_path_setting" >&5 |
6374 | printf "%s\n" "$ld_library_path_setting" >&6; } | |
3911660e | 6375 | if test "$ld_library_path_setting" != "ok"; then |
4a531bb0 | 6376 | as_fn_error $? " |
3a12e572 UD |
6377 | *** LD_LIBRARY_PATH shouldn't contain the current directory when |
6378 | *** building glibc. Please change the environment variable | |
b08c89d9 | 6379 | *** and run configure again." "$LINENO" 5 |
3911660e UD |
6380 | fi |
6381 | ||
cd6ede75 UD |
6382 | # Extract the first word of "bash", so it can be a program name with args. |
6383 | set dummy bash; ac_word=$2 | |
c6cb8783 SP |
6384 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6385 | printf %s "checking for $ac_word... " >&6; } | |
6386 | if test ${ac_cv_path_BASH_SHELL+y} | |
6387 | then : | |
6388 | printf %s "(cached) " >&6 | |
6389 | else $as_nop | |
26f56c1c | 6390 | case $BASH_SHELL in |
3a12e572 | 6391 | [\\/]* | ?:[\\/]*) |
26f56c1c | 6392 | ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path. |
cd6ede75 UD |
6393 | ;; |
6394 | *) | |
3a12e572 UD |
6395 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6396 | for as_dir in $PATH | |
6397 | do | |
6398 | IFS=$as_save_IFS | |
c6cb8783 SP |
6399 | case $as_dir in #((( |
6400 | '') as_dir=./ ;; | |
6401 | */) ;; | |
6402 | *) as_dir=$as_dir/ ;; | |
6403 | esac | |
b08c89d9 | 6404 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 SP |
6405 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
6406 | ac_cv_path_BASH_SHELL="$as_dir$ac_word$ac_exec_ext" | |
6407 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3a12e572 UD |
6408 | break 2 |
6409 | fi | |
6410 | done | |
b08c89d9 | 6411 | done |
26f56c1c | 6412 | IFS=$as_save_IFS |
3a12e572 | 6413 | |
26f56c1c | 6414 | test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no" |
cd6ede75 UD |
6415 | ;; |
6416 | esac | |
6417 | fi | |
26f56c1c UD |
6418 | BASH_SHELL=$ac_cv_path_BASH_SHELL |
6419 | if test -n "$BASH_SHELL"; then | |
c6cb8783 SP |
6420 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BASH_SHELL" >&5 |
6421 | printf "%s\n" "$BASH_SHELL" >&6; } | |
cd6ede75 | 6422 | else |
c6cb8783 SP |
6423 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6424 | printf "%s\n" "no" >&6; } | |
cd6ede75 UD |
6425 | fi |
6426 | ||
26f56c1c | 6427 | |
cd6ede75 | 6428 | |
c0016081 UD |
6429 | # Extract the first word of "perl", so it can be a program name with args. |
6430 | set dummy perl; ac_word=$2 | |
c6cb8783 SP |
6431 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6432 | printf %s "checking for $ac_word... " >&6; } | |
6433 | if test ${ac_cv_path_PERL+y} | |
6434 | then : | |
6435 | printf %s "(cached) " >&6 | |
6436 | else $as_nop | |
3a12e572 UD |
6437 | case $PERL in |
6438 | [\\/]* | ?:[\\/]*) | |
a2b08ee5 UD |
6439 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
6440 | ;; | |
6441 | *) | |
3a12e572 UD |
6442 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6443 | for as_dir in $PATH | |
6444 | do | |
6445 | IFS=$as_save_IFS | |
c6cb8783 SP |
6446 | case $as_dir in #((( |
6447 | '') as_dir=./ ;; | |
6448 | */) ;; | |
6449 | *) as_dir=$as_dir/ ;; | |
6450 | esac | |
b08c89d9 | 6451 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 SP |
6452 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
6453 | ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext" | |
6454 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3a12e572 UD |
6455 | break 2 |
6456 | fi | |
6457 | done | |
b08c89d9 | 6458 | done |
26f56c1c | 6459 | IFS=$as_save_IFS |
3a12e572 | 6460 | |
c0016081 | 6461 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no" |
a2b08ee5 UD |
6462 | ;; |
6463 | esac | |
6464 | fi | |
3a12e572 | 6465 | PERL=$ac_cv_path_PERL |
a2b08ee5 | 6466 | if test -n "$PERL"; then |
c6cb8783 SP |
6467 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
6468 | printf "%s\n" "$PERL" >&6; } | |
a2b08ee5 | 6469 | else |
c6cb8783 SP |
6470 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6471 | printf "%s\n" "no" >&6; } | |
a2b08ee5 UD |
6472 | fi |
6473 | ||
26f56c1c | 6474 | |
2fd5d029 RM |
6475 | if test "$PERL" != no && |
6476 | (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then | |
6477 | PERL=no | |
fc304e02 | 6478 | fi |
c0016081 UD |
6479 | # Extract the first word of "install-info", so it can be a program name with args. |
6480 | set dummy install-info; ac_word=$2 | |
c6cb8783 SP |
6481 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6482 | printf %s "checking for $ac_word... " >&6; } | |
6483 | if test ${ac_cv_path_INSTALL_INFO+y} | |
6484 | then : | |
6485 | printf %s "(cached) " >&6 | |
6486 | else $as_nop | |
3a12e572 UD |
6487 | case $INSTALL_INFO in |
6488 | [\\/]* | ?:[\\/]*) | |
c0016081 UD |
6489 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. |
6490 | ;; | |
6491 | *) | |
3a12e572 | 6492 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
f4b07664 RM |
6493 | as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin" |
6494 | for as_dir in $as_dummy | |
3a12e572 UD |
6495 | do |
6496 | IFS=$as_save_IFS | |
c6cb8783 SP |
6497 | case $as_dir in #((( |
6498 | '') as_dir=./ ;; | |
6499 | */) ;; | |
6500 | *) as_dir=$as_dir/ ;; | |
6501 | esac | |
b08c89d9 | 6502 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 SP |
6503 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
6504 | ac_cv_path_INSTALL_INFO="$as_dir$ac_word$ac_exec_ext" | |
6505 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3a12e572 UD |
6506 | break 2 |
6507 | fi | |
6508 | done | |
b08c89d9 | 6509 | done |
26f56c1c | 6510 | IFS=$as_save_IFS |
3a12e572 | 6511 | |
c0016081 UD |
6512 | test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no" |
6513 | ;; | |
6514 | esac | |
6515 | fi | |
3a12e572 | 6516 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO |
c0016081 | 6517 | if test -n "$INSTALL_INFO"; then |
c6cb8783 SP |
6518 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 |
6519 | printf "%s\n" "$INSTALL_INFO" >&6; } | |
c0016081 | 6520 | else |
c6cb8783 SP |
6521 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6522 | printf "%s\n" "no" >&6; } | |
c0016081 UD |
6523 | fi |
6524 | ||
26f56c1c | 6525 | |
26f56c1c | 6526 | |
c6cb8783 SP |
6527 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for .set assembler directive" >&5 |
6528 | printf %s "checking for .set assembler directive... " >&6; } | |
6529 | if test ${libc_cv_asm_set_directive+y} | |
6530 | then : | |
6531 | printf %s "(cached) " >&6 | |
6532 | else $as_nop | |
cd6ede75 | 6533 | cat > conftest.s <<EOF |
8c0c01db | 6534 | .text |
cd6ede75 UD |
6535 | foo: |
6536 | .set glibc_conftest_frobozz,foo | |
7b8e0d49 | 6537 | .globl glibc_conftest_frobozz |
cd6ede75 UD |
6538 | EOF |
6539 | # The alpha-dec-osf1 assembler gives only a warning for `.set' | |
6540 | # (but it doesn't work), so we must do a linking check to be sure. | |
6541 | cat > conftest1.c <<\EOF | |
6542 | extern int glibc_conftest_frobozz; | |
640f0119 | 6543 | void _start() { glibc_conftest_frobozz = 1; } |
cd6ede75 UD |
6544 | EOF |
6545 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ | |
66a704c4 | 6546 | -nostartfiles -nostdlib $no_ssp \ |
cd6ede75 UD |
6547 | -o conftest conftest.s conftest1.c 1>&5 2>&5; then |
6548 | libc_cv_asm_set_directive=yes | |
6549 | else | |
6550 | libc_cv_asm_set_directive=no | |
6551 | fi | |
6552 | rm -f conftest* | |
6553 | fi | |
c6cb8783 SP |
6554 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_set_directive" >&5 |
6555 | printf "%s\n" "$libc_cv_asm_set_directive" >&6; } | |
cd6ede75 | 6556 | if test $libc_cv_asm_set_directive = yes; then |
c6cb8783 | 6557 | printf "%s\n" "#define HAVE_ASM_SET_DIRECTIVE 1" >>confdefs.h |
cd6ede75 UD |
6558 | |
6559 | fi | |
6560 | ||
c6cb8783 SP |
6561 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking linker support for protected data symbol" >&5 |
6562 | printf %s "checking linker support for protected data symbol... " >&6; } | |
6563 | if test ${libc_cv_protected_data+y} | |
6564 | then : | |
6565 | printf %s "(cached) " >&6 | |
6566 | else $as_nop | |
83569fb8 | 6567 | cat > conftest.c <<EOF |
2a723ff6 | 6568 | int bar __attribute__ ((visibility ("protected"))) = 1; |
83569fb8 | 6569 | EOF |
2a723ff6 | 6570 | libc_cv_protected_data=no |
66a704c4 | 6571 | if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp -fPIC -shared conftest.c -o conftest.so' |
83569fb8 L |
6572 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
6573 | (eval $ac_try) 2>&5 | |
6574 | ac_status=$? | |
c6cb8783 | 6575 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
83569fb8 | 6576 | test $ac_status = 0; }; }; then |
2a723ff6 JM |
6577 | cat > conftest.c <<EOF |
6578 | extern int bar; | |
6579 | int main (void) { return bar; } | |
83569fb8 | 6580 | EOF |
66a704c4 | 6581 | if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp conftest.c -o conftest conftest.so' |
83569fb8 L |
6582 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
6583 | (eval $ac_try) 2>&5 | |
6584 | ac_status=$? | |
c6cb8783 | 6585 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
83569fb8 | 6586 | test $ac_status = 0; }; }; then |
2a723ff6 | 6587 | libc_cv_protected_data=yes |
83569fb8 | 6588 | fi |
2a723ff6 JM |
6589 | fi |
6590 | rm -f conftest.* | |
83569fb8 L |
6591 | |
6592 | fi | |
c6cb8783 SP |
6593 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_protected_data" >&5 |
6594 | printf "%s\n" "$libc_cv_protected_data" >&6; } | |
83569fb8 L |
6595 | |
6596 | ||
c6cb8783 SP |
6597 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking linker support for INSERT in linker script" >&5 |
6598 | printf %s "checking linker support for INSERT in linker script... " >&6; } | |
6599 | if test ${libc_cv_insert+y} | |
6600 | then : | |
6601 | printf %s "(cached) " >&6 | |
6602 | else $as_nop | |
19f1a11e | 6603 | cat > conftest.c <<EOF |
5f07d47e | 6604 | int __attribute__ ((section(".bar"))) bar = 0x12345678; |
19f1a11e L |
6605 | int test (void) { return bar; } |
6606 | EOF | |
6607 | cat > conftest.t <<EOF | |
6608 | SECTIONS | |
6609 | { | |
6610 | .bar : { *(.bar) } | |
6611 | } | |
6612 | INSERT AFTER .rela.dyn; | |
6613 | EOF | |
6614 | libc_cv_insert=no | |
6615 | if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp -fPIC -shared conftest.c -Wl,-T,conftest.t -o conftest.so' | |
6616 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
6617 | (eval $ac_try) 2>&5 | |
6618 | ac_status=$? | |
c6cb8783 | 6619 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
19f1a11e L |
6620 | test $ac_status = 0; }; }; then |
6621 | libc_cv_insert=yes | |
6622 | fi | |
6623 | rm -f conftest.* | |
6624 | ||
6625 | fi | |
c6cb8783 SP |
6626 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_insert" >&5 |
6627 | printf "%s\n" "$libc_cv_insert" >&6; } | |
19f1a11e L |
6628 | |
6629 | ||
c6cb8783 SP |
6630 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((alias()))" >&5 |
6631 | printf %s "checking for broken __attribute__((alias()))... " >&6; } | |
6632 | if test ${libc_cv_broken_alias_attribute+y} | |
6633 | then : | |
6634 | printf %s "(cached) " >&6 | |
6635 | else $as_nop | |
37ba7d66 | 6636 | cat > conftest.c <<EOF |
a0da5fe1 UD |
6637 | extern int foo (int x) __asm ("xyzzy"); |
6638 | int bar (int x) { return x; } | |
6639 | extern __typeof (bar) foo __attribute ((weak, alias ("bar"))); | |
6640 | extern int dfoo; | |
6641 | extern __typeof (dfoo) dfoo __asm ("abccb"); | |
6642 | int dfoo = 1; | |
37ba7d66 | 6643 | EOF |
a0da5fe1 UD |
6644 | libc_cv_broken_alias_attribute=yes |
6645 | if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5' | |
b08c89d9 | 6646 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
61cea1c3 RM |
6647 | (eval $ac_try) 2>&5 |
6648 | ac_status=$? | |
c6cb8783 | 6649 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
b08c89d9 | 6650 | test $ac_status = 0; }; }; then |
a0da5fe1 UD |
6651 | if grep 'xyzzy' conftest.s >/dev/null && |
6652 | grep 'abccb' conftest.s >/dev/null; then | |
6653 | libc_cv_broken_alias_attribute=no | |
6654 | fi | |
6655 | fi | |
6656 | rm -f conftest.c conftest.s | |
37ba7d66 | 6657 | |
3a12e572 | 6658 | fi |
c6cb8783 SP |
6659 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_alias_attribute" >&5 |
6660 | printf "%s\n" "$libc_cv_broken_alias_attribute" >&6; } | |
a0da5fe1 UD |
6661 | if test $libc_cv_broken_alias_attribute = yes; then |
6662 | as_fn_error $? "working alias attribute support required" "$LINENO" 5 | |
6663 | fi | |
37ba7d66 | 6664 | |
c6cb8783 SP |
6665 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to put _rtld_local into .sdata section" >&5 |
6666 | printf %s "checking whether to put _rtld_local into .sdata section... " >&6; } | |
6667 | if test ${libc_cv_have_sdata_section+y} | |
6668 | then : | |
6669 | printf %s "(cached) " >&6 | |
6670 | else $as_nop | |
0d01dace | 6671 | echo "int i;" > conftest.c |
2a723ff6 JM |
6672 | libc_cv_have_sdata_section=no |
6673 | if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \ | |
6674 | | grep '\.sdata' >/dev/null; then | |
6675 | libc_cv_have_sdata_section=yes | |
6676 | fi | |
6677 | rm -f conftest.c conftest.so | |
0d01dace | 6678 | |
3a12e572 | 6679 | fi |
c6cb8783 SP |
6680 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_sdata_section" >&5 |
6681 | printf "%s\n" "$libc_cv_have_sdata_section" >&6; } | |
2a723ff6 | 6682 | if test $libc_cv_have_sdata_section = yes; then |
c6cb8783 | 6683 | printf "%s\n" "#define HAVE_SDATA_SECTION 1" >>confdefs.h |
0d01dace | 6684 | |
a0da5fe1 | 6685 | fi |
0d01dace | 6686 | |
c6cb8783 SP |
6687 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libunwind-support in compiler" >&5 |
6688 | printf %s "checking for libunwind-support in compiler... " >&6; } | |
6689 | if test ${libc_cv_cc_with_libunwind+y} | |
6690 | then : | |
6691 | printf %s "(cached) " >&6 | |
6692 | else $as_nop | |
c776b3d7 | 6693 | |
a0da5fe1 | 6694 | cat > conftest.c <<EOF |
cbdb12de UD |
6695 | int main (void) { return 0; } |
6696 | EOF | |
a0da5fe1 | 6697 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \ |
8175a253 | 6698 | conftest.c -v 2>&1 >/dev/null | grep ' -lunwind ' >/dev/null; then |
a0da5fe1 UD |
6699 | libc_cv_cc_with_libunwind=yes |
6700 | else | |
6701 | libc_cv_cc_with_libunwind=no | |
6702 | fi | |
6703 | rm -f conftest* | |
c776b3d7 | 6704 | fi |
c6cb8783 SP |
6705 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_with_libunwind" >&5 |
6706 | printf "%s\n" "$libc_cv_cc_with_libunwind" >&6; } | |
c776b3d7 | 6707 | |
a0da5fe1 | 6708 | if test $libc_cv_cc_with_libunwind = yes; then |
c6cb8783 | 6709 | printf "%s\n" "#define HAVE_CC_WITH_LIBUNWIND 1" >>confdefs.h |
c776b3d7 | 6710 | |
a0da5fe1 | 6711 | fi |
c776b3d7 | 6712 | |
a0da5fe1 | 6713 | ASFLAGS_config= |
c6cb8783 SP |
6714 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether --noexecstack is desirable for .S files" >&5 |
6715 | printf %s "checking whether --noexecstack is desirable for .S files... " >&6; } | |
6716 | if test ${libc_cv_as_noexecstack+y} | |
6717 | then : | |
6718 | printf %s "(cached) " >&6 | |
6719 | else $as_nop | |
a0da5fe1 | 6720 | cat > conftest.c <<EOF |
35915ec8 UD |
6721 | void foo (void) { } |
6722 | EOF | |
a0da5fe1 UD |
6723 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS |
6724 | -S -o conftest.s conftest.c 1>&5' | |
b08c89d9 | 6725 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
35915ec8 UD |
6726 | (eval $ac_try) 2>&5 |
6727 | ac_status=$? | |
c6cb8783 | 6728 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
b08c89d9 | 6729 | test $ac_status = 0; }; } \ |
8175a253 | 6730 | && grep .note.GNU-stack conftest.s >/dev/null \ |
a0da5fe1 UD |
6731 | && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack |
6732 | -c -o conftest.o conftest.s 1>&5' | |
b08c89d9 | 6733 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
35915ec8 UD |
6734 | (eval $ac_try) 2>&5 |
6735 | ac_status=$? | |
c6cb8783 | 6736 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
b08c89d9 | 6737 | test $ac_status = 0; }; } |
a0da5fe1 UD |
6738 | then |
6739 | libc_cv_as_noexecstack=yes | |
6740 | else | |
6741 | libc_cv_as_noexecstack=no | |
6742 | fi | |
6743 | rm -f conftest* | |
35915ec8 | 6744 | fi |
c6cb8783 SP |
6745 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_noexecstack" >&5 |
6746 | printf "%s\n" "$libc_cv_as_noexecstack" >&6; } | |
a0da5fe1 UD |
6747 | if test $libc_cv_as_noexecstack = yes; then |
6748 | ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack" | |
6749 | fi | |
35915ec8 | 6750 | |
2abf9ff1 | 6751 | |
c6cb8783 SP |
6752 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z execstack" >&5 |
6753 | printf %s "checking for linker that supports -z execstack... " >&6; } | |
6bfea974 | 6754 | libc_linker_feature=no |
6cfc50f4 | 6755 | cat > conftest.c <<EOF |
2abf9ff1 RM |
6756 | int _start (void) { return 42; } |
6757 | EOF | |
6cfc50f4 AZ |
6758 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp |
6759 | -Wl,-z,execstack -nostdlib -nostartfiles | |
6760 | -fPIC -shared -o conftest.so conftest.c | |
6761 | 1>&5' | |
b08c89d9 | 6762 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
2abf9ff1 RM |
6763 | (eval $ac_try) 2>&5 |
6764 | ac_status=$? | |
c6cb8783 | 6765 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
b08c89d9 | 6766 | test $ac_status = 0; }; } |
6cfc50f4 AZ |
6767 | then |
6768 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,execstack -nostdlib \ | |
6769 | -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \ | |
6770 | | grep "warning: -z execstack ignored" > /dev/null 2>&1; then | |
6771 | true | |
6772 | else | |
6773 | libc_linker_feature=yes | |
6bfea974 L |
6774 | fi |
6775 | fi | |
6cfc50f4 | 6776 | rm -f conftest* |
6bfea974 | 6777 | if test $libc_linker_feature = yes; then |
a0da5fe1 UD |
6778 | libc_cv_z_execstack=yes |
6779 | else | |
6780 | libc_cv_z_execstack=no | |
6781 | fi | |
c6cb8783 SP |
6782 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5 |
6783 | printf "%s\n" "$libc_linker_feature" >&6; } | |
cd6ede75 | 6784 | |
0f124303 | 6785 | |
c6cb8783 SP |
6786 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z start-stop-gc" >&5 |
6787 | printf %s "checking for linker that supports -z start-stop-gc... " >&6; } | |
cd6ae7ea | 6788 | libc_linker_feature=no |
6cfc50f4 | 6789 | cat > conftest.c <<EOF |
cd6ae7ea FS |
6790 | int _start (void) { return 42; } |
6791 | EOF | |
6cfc50f4 AZ |
6792 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp |
6793 | -Wl,-z,start-stop-gc -nostdlib -nostartfiles | |
6794 | -fPIC -shared -o conftest.so conftest.c | |
6795 | 1>&5' | |
cd6ae7ea FS |
6796 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
6797 | (eval $ac_try) 2>&5 | |
6798 | ac_status=$? | |
c6cb8783 | 6799 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
cd6ae7ea | 6800 | test $ac_status = 0; }; } |
6cfc50f4 AZ |
6801 | then |
6802 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,start-stop-gc -nostdlib \ | |
6803 | -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \ | |
6804 | | grep "warning: -z start-stop-gc ignored" > /dev/null 2>&1; then | |
6805 | true | |
6806 | else | |
6807 | libc_linker_feature=yes | |
cd6ae7ea FS |
6808 | fi |
6809 | fi | |
6cfc50f4 | 6810 | rm -f conftest* |
cd6ae7ea FS |
6811 | if test $libc_linker_feature = yes; then |
6812 | libc_cv_z_start_stop_gc=yes | |
6813 | else | |
6814 | libc_cv_z_start_stop_gc=no | |
6815 | fi | |
c6cb8783 SP |
6816 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5 |
6817 | printf "%s\n" "$libc_linker_feature" >&6; } | |
cd6ae7ea FS |
6818 | config_vars="$config_vars |
6819 | have-z-start-stop-gc = $libc_cv_z_start_stop_gc" | |
6820 | ||
c6cb8783 SP |
6821 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports --depaudit" >&5 |
6822 | printf %s "checking for linker that supports --depaudit... " >&6; } | |
9926f6e2 | 6823 | libc_linker_feature=no |
6cfc50f4 | 6824 | cat > conftest.c <<EOF |
9926f6e2 FS |
6825 | int _start (void) { return 42; } |
6826 | EOF | |
6cfc50f4 AZ |
6827 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp |
6828 | -Wl,--depaudit,x -nostdlib -nostartfiles | |
6829 | -fPIC -shared -o conftest.so conftest.c | |
6830 | 1>&5' | |
9926f6e2 FS |
6831 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
6832 | (eval $ac_try) 2>&5 | |
6833 | ac_status=$? | |
c6cb8783 | 6834 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9926f6e2 | 6835 | test $ac_status = 0; }; } |
6cfc50f4 AZ |
6836 | then |
6837 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--depaudit,x -nostdlib \ | |
6838 | -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \ | |
6839 | | grep "warning: --depaudit ignored" > /dev/null 2>&1; then | |
6840 | true | |
6841 | else | |
6842 | libc_linker_feature=yes | |
9926f6e2 FS |
6843 | fi |
6844 | fi | |
6cfc50f4 | 6845 | rm -f conftest* |
9926f6e2 FS |
6846 | if test $libc_linker_feature = yes; then |
6847 | libc_cv_depaudit=yes | |
6848 | else | |
6849 | libc_cv_depaudit=no | |
6850 | fi | |
c6cb8783 SP |
6851 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5 |
6852 | printf "%s\n" "$libc_linker_feature" >&6; } | |
9926f6e2 FS |
6853 | config_vars="$config_vars |
6854 | have-depaudit = $libc_cv_depaudit" | |
6855 | ||
c6cb8783 SP |
6856 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z pack-relative-relocs" >&5 |
6857 | printf %s "checking for linker that supports -z pack-relative-relocs... " >&6; } | |
e895cff5 | 6858 | libc_linker_feature=no |
6cfc50f4 | 6859 | cat > conftest.c <<EOF |
e895cff5 FS |
6860 | int _start (void) { return 42; } |
6861 | EOF | |
6cfc50f4 AZ |
6862 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp |
6863 | -Wl,-z,pack-relative-relocs -nostdlib -nostartfiles | |
6864 | -fPIC -shared -o conftest.so conftest.c | |
6865 | 1>&5' | |
e895cff5 FS |
6866 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
6867 | (eval $ac_try) 2>&5 | |
6868 | ac_status=$? | |
c6cb8783 | 6869 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
e895cff5 | 6870 | test $ac_status = 0; }; } |
6cfc50f4 AZ |
6871 | then |
6872 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,pack-relative-relocs -nostdlib \ | |
6873 | -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \ | |
6874 | | grep "warning: -z pack-relative-relocs ignored" > /dev/null 2>&1; then | |
6875 | true | |
6876 | else | |
6877 | libc_linker_feature=yes | |
e895cff5 | 6878 | fi |
e895cff5 | 6879 | fi |
6cfc50f4 | 6880 | rm -f conftest* |
e895cff5 FS |
6881 | if test $libc_linker_feature = yes; then |
6882 | libc_cv_dt_relr=yes | |
6883 | else | |
6884 | libc_cv_dt_relr=no | |
6885 | fi | |
c6cb8783 SP |
6886 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5 |
6887 | printf "%s\n" "$libc_linker_feature" >&6; } | |
e895cff5 FS |
6888 | config_vars="$config_vars |
6889 | have-dt-relr = $libc_cv_dt_relr" | |
6890 | ||
c6cb8783 SP |
6891 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports --no-dynamic-linker" >&5 |
6892 | printf %s "checking for linker that supports --no-dynamic-linker... " >&6; } | |
9d7a3741 | 6893 | libc_linker_feature=no |
6cfc50f4 | 6894 | cat > conftest.c <<EOF |
9d7a3741 L |
6895 | int _start (void) { return 42; } |
6896 | EOF | |
6cfc50f4 AZ |
6897 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp |
6898 | -Wl,--no-dynamic-linker -nostdlib -nostartfiles | |
6899 | -fPIC -shared -o conftest.so conftest.c | |
6900 | 1>&5' | |
9d7a3741 L |
6901 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
6902 | (eval $ac_try) 2>&5 | |
6903 | ac_status=$? | |
c6cb8783 | 6904 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9d7a3741 | 6905 | test $ac_status = 0; }; } |
6cfc50f4 AZ |
6906 | then |
6907 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--no-dynamic-linker -nostdlib \ | |
6908 | -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \ | |
6909 | | grep "warning: --no-dynamic-linker ignored" > /dev/null 2>&1; then | |
6910 | true | |
6911 | else | |
6912 | libc_linker_feature=yes | |
9d7a3741 L |
6913 | fi |
6914 | fi | |
6cfc50f4 | 6915 | rm -f conftest* |
9d7a3741 L |
6916 | if test $libc_linker_feature = yes; then |
6917 | libc_cv_no_dynamic_linker=yes | |
6918 | else | |
6919 | libc_cv_no_dynamic_linker=no | |
6920 | fi | |
c6cb8783 SP |
6921 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5 |
6922 | printf "%s\n" "$libc_linker_feature" >&6; } | |
9d7a3741 L |
6923 | config_vars="$config_vars |
6924 | have-no-dynamic-linker = $libc_cv_no_dynamic_linker" | |
6925 | ||
c6cb8783 SP |
6926 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -static-pie" >&5 |
6927 | printf %s "checking for -static-pie... " >&6; } | |
6928 | if test ${libc_cv_static_pie+y} | |
6929 | then : | |
6930 | printf %s "(cached) " >&6 | |
6931 | else $as_nop | |
9d7a3741 L |
6932 | if { ac_try='${CC-cc} -static-pie -xc /dev/null -S -o /dev/null' |
6933 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
6934 | (eval $ac_try) 2>&5 | |
6935 | ac_status=$? | |
c6cb8783 SP |
6936 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6937 | test $ac_status = 0; }; } | |
6938 | then : | |
9d7a3741 | 6939 | libc_cv_static_pie=yes |
c6cb8783 | 6940 | else $as_nop |
9d7a3741 L |
6941 | libc_cv_static_pie=no |
6942 | fi | |
6943 | ||
6944 | fi | |
c6cb8783 SP |
6945 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie" >&5 |
6946 | printf "%s\n" "$libc_cv_static_pie" >&6; } | |
9d7a3741 L |
6947 | config_vars="$config_vars |
6948 | have-static-pie = $libc_cv_static_pie" | |
6949 | ||
c6cb8783 SP |
6950 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fpie" >&5 |
6951 | printf %s "checking for -fpie... " >&6; } | |
6952 | if test ${libc_cv_fpie+y} | |
6953 | then : | |
6954 | printf %s "(cached) " >&6 | |
6955 | else $as_nop | |
4da0431d | 6956 | if { ac_try='${CC-cc} -fpie -xc /dev/null -S -o /dev/null' |
b08c89d9 | 6957 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
0f124303 UD |
6958 | (eval $ac_try) 2>&5 |
6959 | ac_status=$? | |
c6cb8783 SP |
6960 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6961 | test $ac_status = 0; }; } | |
6962 | then : | |
a0da5fe1 | 6963 | libc_cv_fpie=yes |
c6cb8783 | 6964 | else $as_nop |
a0da5fe1 UD |
6965 | libc_cv_fpie=no |
6966 | fi | |
4da0431d | 6967 | |
0f124303 | 6968 | fi |
c6cb8783 SP |
6969 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fpie" >&5 |
6970 | printf "%s\n" "$libc_cv_fpie" >&6; } | |
0f124303 UD |
6971 | |
6972 | ||
871b9158 | 6973 | |
c6cb8783 SP |
6974 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLOB_DAT reloc" >&5 |
6975 | printf %s "checking for GLOB_DAT reloc... " >&6; } | |
6976 | if test ${libc_cv_has_glob_dat+y} | |
6977 | then : | |
6978 | printf %s "(cached) " >&6 | |
6979 | else $as_nop | |
89569c8b L |
6980 | cat > conftest.c <<EOF |
6981 | extern int mumble; | |
6982 | int foo (void) { return mumble; } | |
6983 | EOF | |
6984 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS | |
6985 | -fPIC -shared -o conftest.so conftest.c | |
66a704c4 | 6986 | -nostdlib -nostartfiles $no_ssp |
89569c8b L |
6987 | 1>&5' |
6988 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
6989 | (eval $ac_try) 2>&5 | |
6990 | ac_status=$? | |
c6cb8783 | 6991 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
89569c8b L |
6992 | test $ac_status = 0; }; } |
6993 | then | |
6994 | if $READELF -rW conftest.so | grep '_GLOB_DAT' > /dev/null; then | |
6995 | libc_cv_has_glob_dat=yes | |
6996 | else | |
6997 | libc_cv_has_glob_dat=no | |
6998 | fi | |
6999 | else | |
7000 | libc_cv_has_glob_dat=no | |
7001 | fi | |
7002 | rm -f conftest* | |
7003 | fi | |
c6cb8783 SP |
7004 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_has_glob_dat" >&5 |
7005 | printf "%s\n" "$libc_cv_has_glob_dat" >&6; } | |
89569c8b L |
7006 | |
7007 | ||
c6cb8783 SP |
7008 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -mtls-dialect=gnu2" >&5 |
7009 | printf %s "checking for -mtls-dialect=gnu2... " >&6; } | |
7010 | if test ${libc_cv_mtls_dialect_gnu2+y} | |
7011 | then : | |
7012 | printf %s "(cached) " >&6 | |
7013 | else $as_nop | |
61655555 L |
7014 | cat > conftest.c <<EOF |
7015 | __thread int i; | |
7016 | void foo (void) | |
7017 | { | |
7018 | i = 10; | |
7019 | } | |
7020 | EOF | |
04e8169f AZ |
7021 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -fPIC -mtls-dialect=gnu2 -nostdlib -nostartfiles |
7022 | conftest.c -o conftest 1>&5' | |
61655555 L |
7023 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
7024 | (eval $ac_try) 2>&5 | |
7025 | ac_status=$? | |
c6cb8783 | 7026 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
61655555 L |
7027 | test $ac_status = 0; }; } |
7028 | then | |
7029 | libc_cv_mtls_dialect_gnu2=yes | |
7030 | else | |
7031 | libc_cv_mtls_dialect_gnu2=no | |
7032 | fi | |
7033 | rm -f conftest* | |
7034 | fi | |
c6cb8783 SP |
7035 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mtls_dialect_gnu2" >&5 |
7036 | printf "%s\n" "$libc_cv_mtls_dialect_gnu2" >&6; } | |
61655555 L |
7037 | |
7038 | config_vars="$config_vars | |
7039 | have-mtls-dialect-gnu2 = $libc_cv_mtls_dialect_gnu2" | |
7040 | ||
c6cb8783 SP |
7041 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -Wno-ignored-attributes is required for aliases" >&5 |
7042 | printf %s "checking if -Wno-ignored-attributes is required for aliases... " >&6; } | |
7043 | if test ${libc_cv_wno_ignored_attributes+y} | |
7044 | then : | |
7045 | printf %s "(cached) " >&6 | |
7046 | else $as_nop | |
8d98c7c0 AZ |
7047 | cat > conftest.c <<EOF |
7048 | void __foo (void) | |
7049 | { | |
7050 | } | |
7051 | extern __typeof (__foo) foo __attribute__ ((weak, alias ("__foo"))); | |
7052 | extern __typeof (__foo) bar __attribute__ ((weak, alias ("foo"))); | |
7053 | EOF | |
7054 | libc_cv_wno_ignored_attributes="" | |
7055 | if ! { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -c conftest.c' | |
7056 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
7057 | (eval $ac_try) 2>&5 | |
7058 | ac_status=$? | |
c6cb8783 | 7059 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8d98c7c0 AZ |
7060 | test $ac_status = 0; }; } |
7061 | then | |
7062 | libc_cv_wno_ignored_attributes="-Wno-ignored-attributes" | |
7063 | fi | |
7064 | rm -f conftest* | |
7065 | fi | |
c6cb8783 SP |
7066 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_wno_ignored_attributes" >&5 |
7067 | printf "%s\n" "$libc_cv_wno_ignored_attributes" >&6; } | |
8d98c7c0 AZ |
7068 | config_vars="$config_vars |
7069 | config-cflags-wno-ignored-attributes = $libc_cv_wno_ignored_attributes" | |
7070 | ||
c6cb8783 SP |
7071 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether cc puts quotes around section names" >&5 |
7072 | printf %s "checking whether cc puts quotes around section names... " >&6; } | |
7073 | if test ${libc_cv_have_section_quotes+y} | |
7074 | then : | |
7075 | printf %s "(cached) " >&6 | |
7076 | else $as_nop | |
e26dd47f | 7077 | cat > conftest.c <<EOF |
a0da5fe1 UD |
7078 | static const int foo |
7079 | __attribute__ ((section ("bar"))) = 1; | |
e26dd47f | 7080 | EOF |
a0da5fe1 UD |
7081 | if ${CC-cc} -S conftest.c -o conftest.s; then |
7082 | if grep '\.section.*"bar"' conftest.s >/dev/null; then | |
7083 | libc_cv_have_section_quotes=yes | |
e26dd47f | 7084 | else |
a0da5fe1 | 7085 | libc_cv_have_section_quotes=no |
e26dd47f | 7086 | fi |
a0da5fe1 UD |
7087 | else |
7088 | libc_cv_have_section_quotes=unknown | |
7089 | fi | |
7090 | rm -f conftest.{c,s} | |
e26dd47f | 7091 | |
3a12e572 | 7092 | fi |
c6cb8783 SP |
7093 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_section_quotes" >&5 |
7094 | printf "%s\n" "$libc_cv_have_section_quotes" >&6; } | |
a0da5fe1 | 7095 | if test $libc_cv_have_section_quotes = yes; then |
c6cb8783 | 7096 | printf "%s\n" "#define HAVE_SECTION_QUOTES 1" >>confdefs.h |
cd6ede75 | 7097 | |
9a97d1f7 UD |
7098 | fi |
7099 | ||
c6cb8783 SP |
7100 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_memset" >&5 |
7101 | printf %s "checking for __builtin_memset... " >&6; } | |
7102 | if test ${libc_cv_gcc_builtin_memset+y} | |
7103 | then : | |
7104 | printf %s "(cached) " >&6 | |
7105 | else $as_nop | |
d555194c UD |
7106 | cat > conftest.c <<\EOF |
7107 | void zero (void *x) | |
7108 | { | |
a52d1562 | 7109 | __builtin_memset (x, 0, 1000); |
d555194c UD |
7110 | } |
7111 | EOF | |
e37fc4aa | 7112 | if { ac_try='${CC-cc} -O3 -S conftest.c -o - | grep -F "memset" > /dev/null' |
b08c89d9 | 7113 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
3a12e572 UD |
7114 | (eval $ac_try) 2>&5 |
7115 | ac_status=$? | |
c6cb8783 | 7116 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
b08c89d9 | 7117 | test $ac_status = 0; }; }; |
d555194c UD |
7118 | then |
7119 | libc_cv_gcc_builtin_memset=no | |
7120 | else | |
7121 | libc_cv_gcc_builtin_memset=yes | |
7122 | fi | |
3a12e572 | 7123 | rm -f conftest* |
d555194c | 7124 | fi |
c6cb8783 SP |
7125 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_memset" >&5 |
7126 | printf "%s\n" "$libc_cv_gcc_builtin_memset" >&6; } | |
d555194c | 7127 | if test "$libc_cv_gcc_builtin_memset" = yes ; then |
c6cb8783 | 7128 | printf "%s\n" "#define HAVE_BUILTIN_MEMSET 1" >>confdefs.h |
d555194c UD |
7129 | |
7130 | fi | |
7131 | ||
c6cb8783 SP |
7132 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for redirection of built-in functions" >&5 |
7133 | printf %s "checking for redirection of built-in functions... " >&6; } | |
7134 | if test ${libc_cv_gcc_builtin_redirection+y} | |
7135 | then : | |
7136 | printf %s "(cached) " >&6 | |
7137 | else $as_nop | |
85dd1003 UD |
7138 | cat > conftest.c <<\EOF |
7139 | extern char *strstr (const char *, const char *) __asm ("my_strstr"); | |
7140 | char *foo (const char *a, const char *b) | |
7141 | { | |
7142 | return __builtin_strstr (a, b); | |
7143 | } | |
7144 | EOF | |
e37fc4aa | 7145 | if { ac_try='${CC-cc} -O3 -S conftest.c -o - | grep -F "my_strstr" > /dev/null' |
b08c89d9 | 7146 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
85dd1003 UD |
7147 | (eval $ac_try) 2>&5 |
7148 | ac_status=$? | |
c6cb8783 | 7149 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
b08c89d9 | 7150 | test $ac_status = 0; }; }; |
85dd1003 UD |
7151 | then |
7152 | libc_cv_gcc_builtin_redirection=yes | |
7153 | else | |
7154 | libc_cv_gcc_builtin_redirection=no | |
7155 | fi | |
7156 | rm -f conftest* | |
7157 | fi | |
c6cb8783 SP |
7158 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_redirection" >&5 |
7159 | printf "%s\n" "$libc_cv_gcc_builtin_redirection" >&6; } | |
3ce1f295 UD |
7160 | if test "$libc_cv_gcc_builtin_redirection" = no; then |
7161 | as_fn_error $? "support for the symbol redirection needed" "$LINENO" 5 | |
85dd1003 UD |
7162 | fi |
7163 | ||
c6cb8783 SP |
7164 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option to disable generation of FMA instructions" >&5 |
7165 | printf %s "checking for compiler option to disable generation of FMA instructions... " >&6; } | |
7166 | if test ${libc_cv_cc_nofma+y} | |
7167 | then : | |
7168 | printf %s "(cached) " >&6 | |
7169 | else $as_nop | |
7998fa78 AS |
7170 | libc_cv_cc_nofma= |
7171 | for opt in -ffp-contract=off -mno-fused-madd; do | |
7172 | if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null' | |
7173 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
7174 | (eval $ac_try) 2>&5 | |
7175 | ac_status=$? | |
c6cb8783 SP |
7176 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7177 | test $ac_status = 0; }; } | |
7178 | then : | |
7998fa78 AS |
7179 | libc_cv_cc_nofma=$opt; break |
7180 | fi | |
7181 | done | |
7182 | fi | |
c6cb8783 SP |
7183 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_nofma" >&5 |
7184 | printf "%s\n" "$libc_cv_cc_nofma" >&6; } | |
7998fa78 | 7185 | |
bef0b507 | 7186 | |
2cf9ad57 | 7187 | if test -n "$submachine"; then |
c6cb8783 SP |
7188 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option for CPU variant" >&5 |
7189 | printf %s "checking for compiler option for CPU variant... " >&6; } | |
7190 | if test ${libc_cv_cc_submachine+y} | |
7191 | then : | |
7192 | printf %s "(cached) " >&6 | |
7193 | else $as_nop | |
2cf9ad57 RM |
7194 | libc_cv_cc_submachine=no |
7195 | for opt in "-march=$submachine" "-mcpu=$submachine"; do | |
7196 | if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null' | |
b08c89d9 | 7197 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
2cf9ad57 RM |
7198 | (eval $ac_try) 2>&5 |
7199 | ac_status=$? | |
c6cb8783 SP |
7200 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7201 | test $ac_status = 0; }; } | |
7202 | then : | |
40b601fb | 7203 | |
2cf9ad57 RM |
7204 | libc_cv_cc_submachine="$opt" |
7205 | break | |
40b601fb | 7206 | fi |
2cf9ad57 RM |
7207 | done |
7208 | fi | |
c6cb8783 SP |
7209 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_submachine" >&5 |
7210 | printf "%s\n" "$libc_cv_cc_submachine" >&6; } | |
2cf9ad57 | 7211 | if test "x$libc_cv_cc_submachine" = xno; then |
4a531bb0 | 7212 | as_fn_error $? "${CC-cc} does not support $submachine" "$LINENO" 5 |
2cf9ad57 RM |
7213 | fi |
7214 | fi | |
7215 | ||
7216 | ||
c6cb8783 SP |
7217 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option that -fsignaling-nans" >&5 |
7218 | printf %s "checking for compiler option that -fsignaling-nans... " >&6; } | |
7219 | if test ${libc_cv_cc_signaling_nans+y} | |
7220 | then : | |
7221 | printf %s "(cached) " >&6 | |
7222 | else $as_nop | |
5c5a8b99 AZ |
7223 | if { ac_try='${CC-cc} -Werror -fsignaling-nans -xc /dev/null -S -o /dev/null' |
7224 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
7225 | (eval $ac_try) 2>&5 | |
7226 | ac_status=$? | |
c6cb8783 SP |
7227 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7228 | test $ac_status = 0; }; } | |
7229 | then : | |
5c5a8b99 | 7230 | libc_cv_cc_signaling_nans=-fsignaling-nans |
c6cb8783 | 7231 | else $as_nop |
5c5a8b99 AZ |
7232 | libc_cv_cc_signaling_nans= |
7233 | fi | |
7234 | ||
7235 | fi | |
c6cb8783 SP |
7236 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_signaling_nans" >&5 |
7237 | printf "%s\n" "$libc_cv_cc_signaling_nans" >&6; } | |
5c5a8b99 AZ |
7238 | config_vars="$config_vars |
7239 | config-cflags-signaling-nans = $libc_cv_cc_signaling_nans" | |
7240 | ||
c6cb8783 | 7241 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-tree-loop-distribute-patterns with \ |
85c2e611 | 7242 | __attribute__ ((__optimize__))" >&5 |
c6cb8783 | 7243 | printf %s "checking if $CC accepts -fno-tree-loop-distribute-patterns with \ |
85c2e611 | 7244 | __attribute__ ((__optimize__))... " >&6; } |
c6cb8783 SP |
7245 | if test ${libc_cv_cc_loop_to_function+y} |
7246 | then : | |
7247 | printf %s "(cached) " >&6 | |
7248 | else $as_nop | |
85c2e611 AZ |
7249 | cat > conftest.c <<EOF |
7250 | void | |
7251 | __attribute__ ((__optimize__ ("-fno-tree-loop-distribute-patterns"))) | |
7252 | foo (void) {} | |
7253 | EOF | |
7254 | libc_cv_cc_loop_to_function=no | |
7255 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c' | |
7256 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
7257 | (eval $ac_try) 2>&5 | |
7258 | ac_status=$? | |
c6cb8783 | 7259 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
85c2e611 AZ |
7260 | test $ac_status = 0; }; } |
7261 | then | |
7262 | libc_cv_cc_loop_to_function=yes | |
7263 | fi | |
7264 | rm -f conftest* | |
7265 | fi | |
c6cb8783 SP |
7266 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_loop_to_function" >&5 |
7267 | printf "%s\n" "$libc_cv_cc_loop_to_function" >&6; } | |
85c2e611 | 7268 | if test $libc_cv_cc_loop_to_function = yes; then |
c6cb8783 | 7269 | printf "%s\n" "#define HAVE_CC_INHIBIT_LOOP_TO_LIBCALL 1" >>confdefs.h |
85c2e611 AZ |
7270 | |
7271 | fi | |
7272 | ||
7273 | ||
c6cb8783 SP |
7274 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libgd" >&5 |
7275 | printf %s "checking for libgd... " >&6; } | |
6dab8688 UD |
7276 | if test "$with_gd" != "no"; then |
7277 | old_CFLAGS="$CFLAGS" | |
7278 | CFLAGS="$CFLAGS $libgd_include" | |
7279 | old_LDFLAGS="$LDFLAGS" | |
7280 | LDFLAGS="$LDFLAGS $libgd_ldflags" | |
7281 | old_LIBS="$LIBS" | |
7282 | LIBS="$LIBS -lgd -lpng -lz -lm" | |
b08c89d9 | 7283 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2abf9ff1 | 7284 | /* end confdefs.h. */ |
c8f3e6db | 7285 | #include <gd.h> |
3a12e572 | 7286 | int |
c6cb8783 | 7287 | main (void) |
3a12e572 | 7288 | { |
c8f3e6db | 7289 | gdImagePng (0, 0) |
3a12e572 UD |
7290 | ; |
7291 | return 0; | |
7292 | } | |
7293 | _ACEOF | |
c6cb8783 SP |
7294 | if ac_fn_c_try_link "$LINENO" |
7295 | then : | |
c8f3e6db | 7296 | LIBGD=yes |
c6cb8783 | 7297 | else $as_nop |
b08c89d9 | 7298 | LIBGD=no |
c8f3e6db | 7299 | fi |
c6cb8783 | 7300 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
b08c89d9 | 7301 | conftest$ac_exeext conftest.$ac_ext |
6dab8688 UD |
7302 | CFLAGS="$old_CFLAGS" |
7303 | LDFLAGS="$old_LDFLAGS" | |
7304 | LIBS="$old_LIBS" | |
7305 | else | |
7306 | LIBGD=no | |
7307 | fi | |
c6cb8783 SP |
7308 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBGD" >&5 |
7309 | printf "%s\n" "$LIBGD" >&6; } | |
3a12e572 UD |
7310 | |
7311 | ||
74a30a58 UD |
7312 | # SELinux detection |
7313 | if test x$with_selinux = xno ; then | |
7314 | have_selinux=no; | |
7315 | else | |
7316 | # See if we have the SELinux library | |
c6cb8783 SP |
7317 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5 |
7318 | printf %s "checking for is_selinux_enabled in -lselinux... " >&6; } | |
7319 | if test ${ac_cv_lib_selinux_is_selinux_enabled+y} | |
7320 | then : | |
7321 | printf %s "(cached) " >&6 | |
7322 | else $as_nop | |
74a30a58 UD |
7323 | ac_check_lib_save_LIBS=$LIBS |
7324 | LIBS="-lselinux $LIBS" | |
b08c89d9 | 7325 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
74a30a58 UD |
7326 | /* end confdefs.h. */ |
7327 | ||
26f56c1c UD |
7328 | /* Override any GCC internal prototype to avoid an error. |
7329 | Use char because int might match the return type of a GCC | |
7330 | builtin and then its argument prototype would still apply. */ | |
74a30a58 UD |
7331 | char is_selinux_enabled (); |
7332 | int | |
c6cb8783 | 7333 | main (void) |
74a30a58 | 7334 | { |
26f56c1c | 7335 | return is_selinux_enabled (); |
74a30a58 UD |
7336 | ; |
7337 | return 0; | |
7338 | } | |
7339 | _ACEOF | |
c6cb8783 SP |
7340 | if ac_fn_c_try_link "$LINENO" |
7341 | then : | |
74a30a58 | 7342 | ac_cv_lib_selinux_is_selinux_enabled=yes |
c6cb8783 | 7343 | else $as_nop |
b08c89d9 | 7344 | ac_cv_lib_selinux_is_selinux_enabled=no |
74a30a58 | 7345 | fi |
c6cb8783 | 7346 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
b08c89d9 | 7347 | conftest$ac_exeext conftest.$ac_ext |
74a30a58 UD |
7348 | LIBS=$ac_check_lib_save_LIBS |
7349 | fi | |
c6cb8783 SP |
7350 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
7351 | printf "%s\n" "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
7352 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes | |
7353 | then : | |
74a30a58 | 7354 | have_selinux=yes |
c6cb8783 | 7355 | else $as_nop |
74a30a58 UD |
7356 | have_selinux=no |
7357 | fi | |
7358 | ||
8f1913a9 | 7359 | if test x$with_selinux = xyes ; then |
74a30a58 | 7360 | if test x$have_selinux = xno ; then |
0699f766 | 7361 | as_fn_error $? "SELinux explicitly required, but SELinux library not found" "$LINENO" 5 |
74a30a58 UD |
7362 | fi |
7363 | fi | |
7364 | fi | |
7365 | # Check if we're building with SELinux support. | |
7366 | if test "x$have_selinux" = xyes; then | |
7367 | ||
c6cb8783 | 7368 | printf "%s\n" "#define HAVE_SELINUX 1" >>confdefs.h |
74a30a58 | 7369 | |
b399a0c2 UD |
7370 | |
7371 | # See if we have the libaudit library | |
c6cb8783 SP |
7372 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for audit_log_user_avc_message in -laudit" >&5 |
7373 | printf %s "checking for audit_log_user_avc_message in -laudit... " >&6; } | |
7374 | if test ${ac_cv_lib_audit_audit_log_user_avc_message+y} | |
7375 | then : | |
7376 | printf %s "(cached) " >&6 | |
7377 | else $as_nop | |
b399a0c2 UD |
7378 | ac_check_lib_save_LIBS=$LIBS |
7379 | LIBS="-laudit $LIBS" | |
b08c89d9 | 7380 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b399a0c2 UD |
7381 | /* end confdefs.h. */ |
7382 | ||
26f56c1c UD |
7383 | /* Override any GCC internal prototype to avoid an error. |
7384 | Use char because int might match the return type of a GCC | |
7385 | builtin and then its argument prototype would still apply. */ | |
b2f97341 | 7386 | char audit_log_user_avc_message (); |
b399a0c2 | 7387 | int |
c6cb8783 | 7388 | main (void) |
b399a0c2 | 7389 | { |
26f56c1c | 7390 | return audit_log_user_avc_message (); |
b399a0c2 UD |
7391 | ; |
7392 | return 0; | |
7393 | } | |
7394 | _ACEOF | |
c6cb8783 SP |
7395 | if ac_fn_c_try_link "$LINENO" |
7396 | then : | |
b2f97341 | 7397 | ac_cv_lib_audit_audit_log_user_avc_message=yes |
c6cb8783 | 7398 | else $as_nop |
b08c89d9 | 7399 | ac_cv_lib_audit_audit_log_user_avc_message=no |
b399a0c2 | 7400 | fi |
c6cb8783 | 7401 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
b08c89d9 | 7402 | conftest$ac_exeext conftest.$ac_ext |
b399a0c2 UD |
7403 | LIBS=$ac_check_lib_save_LIBS |
7404 | fi | |
c6cb8783 SP |
7405 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5 |
7406 | printf "%s\n" "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; } | |
7407 | if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = xyes | |
7408 | then : | |
b399a0c2 | 7409 | have_libaudit=yes |
c6cb8783 | 7410 | else $as_nop |
b399a0c2 UD |
7411 | have_libaudit=no |
7412 | fi | |
7413 | ||
7414 | if test "x$have_libaudit" = xyes; then | |
7415 | ||
c6cb8783 | 7416 | printf "%s\n" "#define HAVE_LIBAUDIT 1" >>confdefs.h |
b399a0c2 UD |
7417 | |
7418 | fi | |
7419 | ||
1f063dca UD |
7420 | |
7421 | # See if we have the libcap library | |
c6cb8783 SP |
7422 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5 |
7423 | printf %s "checking for cap_init in -lcap... " >&6; } | |
7424 | if test ${ac_cv_lib_cap_cap_init+y} | |
7425 | then : | |
7426 | printf %s "(cached) " >&6 | |
7427 | else $as_nop | |
1f063dca UD |
7428 | ac_check_lib_save_LIBS=$LIBS |
7429 | LIBS="-lcap $LIBS" | |
b08c89d9 | 7430 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1f063dca UD |
7431 | /* end confdefs.h. */ |
7432 | ||
26f56c1c UD |
7433 | /* Override any GCC internal prototype to avoid an error. |
7434 | Use char because int might match the return type of a GCC | |
7435 | builtin and then its argument prototype would still apply. */ | |
1f063dca UD |
7436 | char cap_init (); |
7437 | int | |
c6cb8783 | 7438 | main (void) |
1f063dca | 7439 | { |
26f56c1c | 7440 | return cap_init (); |
1f063dca UD |
7441 | ; |
7442 | return 0; | |
7443 | } | |
7444 | _ACEOF | |
c6cb8783 SP |
7445 | if ac_fn_c_try_link "$LINENO" |
7446 | then : | |
1f063dca | 7447 | ac_cv_lib_cap_cap_init=yes |
c6cb8783 | 7448 | else $as_nop |
b08c89d9 | 7449 | ac_cv_lib_cap_cap_init=no |
1f063dca | 7450 | fi |
c6cb8783 | 7451 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
b08c89d9 | 7452 | conftest$ac_exeext conftest.$ac_ext |
1f063dca UD |
7453 | LIBS=$ac_check_lib_save_LIBS |
7454 | fi | |
c6cb8783 SP |
7455 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5 |
7456 | printf "%s\n" "$ac_cv_lib_cap_cap_init" >&6; } | |
7457 | if test "x$ac_cv_lib_cap_cap_init" = xyes | |
7458 | then : | |
1f063dca | 7459 | have_libcap=yes |
c6cb8783 | 7460 | else $as_nop |
1f063dca UD |
7461 | have_libcap=no |
7462 | fi | |
7463 | ||
7464 | if test "x$have_libcap" = xyes; then | |
7465 | ||
c6cb8783 | 7466 | printf "%s\n" "#define HAVE_LIBCAP 1" >>confdefs.h |
1f063dca UD |
7467 | |
7468 | fi | |
7469 | ||
74a30a58 UD |
7470 | fi |
7471 | ||
7472 | ||
64d9580c FB |
7473 | no_fortify_source="-Wp,-U_FORTIFY_SOURCE" |
7474 | fortify_source="${no_fortify_source}" | |
7475 | ||
a3090c2c AZ |
7476 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for maximum supported _FORTIFY_SOURCE level" >&5 |
7477 | printf %s "checking for maximum supported _FORTIFY_SOURCE level... " >&6; } | |
7478 | if test ${libc_cv_supported_fortify_source+y} | |
c6cb8783 SP |
7479 | then : |
7480 | printf %s "(cached) " >&6 | |
7481 | else $as_nop | |
64d9580c FB |
7482 | |
7483 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
61653dfb RM |
7484 | /* end confdefs.h. */ |
7485 | ||
7486 | int | |
c6cb8783 | 7487 | main (void) |
61653dfb | 7488 | { |
64d9580c | 7489 | __builtin_dynamic_object_size("", 0) |
61653dfb RM |
7490 | ; |
7491 | return 0; | |
7492 | } | |
7493 | _ACEOF | |
c6cb8783 SP |
7494 | if ac_fn_c_try_link "$LINENO" |
7495 | then : | |
a3090c2c | 7496 | libc_cv_supported_fortify_source=3 |
c6cb8783 | 7497 | else $as_nop |
a3090c2c | 7498 | libc_cv_supported_fortify_source=2 |
61653dfb | 7499 | fi |
c6cb8783 | 7500 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
64d9580c FB |
7501 | conftest$ac_exeext conftest.$ac_ext |
7502 | ||
7503 | fi | |
a3090c2c AZ |
7504 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_supported_fortify_source" >&5 |
7505 | printf "%s\n" "$libc_cv_supported_fortify_source" >&6; } | |
64d9580c FB |
7506 | |
7507 | case $enable_fortify_source in #( | |
a3090c2c AZ |
7508 | yes) : |
7509 | libc_cv_fortify_source=yes enable_fortify_source=$libc_cv_supported_fortify_source ;; #( | |
64d9580c FB |
7510 | 1|2) : |
7511 | libc_cv_fortify_source=yes ;; #( | |
7512 | 3) : | |
a3090c2c | 7513 | if test $libc_cv_supported_fortify_source = 3 |
c6cb8783 | 7514 | then : |
64d9580c | 7515 | libc_cv_fortify_source=yes |
c6cb8783 | 7516 | else $as_nop |
64d9580c FB |
7517 | as_fn_error $? "Compiler doesn't provide necessary support for _FORTIFY_SOURCE=3" "$LINENO" 5 |
7518 | fi ;; #( | |
7519 | *) : | |
7520 | libc_cv_fortify_source=no ;; | |
7521 | esac | |
7522 | ||
c6cb8783 SP |
7523 | if test "$libc_cv_fortify_source" = yes |
7524 | then : | |
64d9580c FB |
7525 | fortify_source="${fortify_source},-D_FORTIFY_SOURCE=${enable_fortify_source}" |
7526 | ||
61653dfb RM |
7527 | fi |
7528 | ||
7529 | ||
64d9580c FB |
7530 | |
7531 | ||
7532 | ||
a3090c2c AZ |
7533 | config_vars="$config_vars |
7534 | supported-fortify = $libc_cv_supported_fortify_source" | |
64d9580c | 7535 | |
c6cb8783 SP |
7536 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the assembler requires one version per symbol" >&5 |
7537 | printf %s "checking whether the assembler requires one version per symbol... " >&6; } | |
7538 | if test ${libc_cv_symver_needs_alias+y} | |
7539 | then : | |
7540 | printf %s "(cached) " >&6 | |
7541 | else $as_nop | |
0923f74a FW |
7542 | cat > conftest.s <<EOF |
7543 | .text | |
7544 | testfunc: | |
7545 | .globl testfunc | |
7546 | .symver testfunc, testfunc1@VERSION1 | |
7547 | .symver testfunc, testfunc1@VERSION2 | |
7548 | EOF | |
7549 | libc_cv_symver_needs_alias=no | |
7550 | if ${CC-cc} $ASFLAGS -c conftest.s 2>&5; then | |
7551 | libc_cv_symver_needs_alias=no | |
7552 | else | |
7553 | libc_cv_symver_needs_alias=yes | |
7554 | fi | |
7555 | rm conftest.* | |
7556 | ||
7557 | fi | |
c6cb8783 SP |
7558 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_symver_needs_alias" >&5 |
7559 | printf "%s\n" "$libc_cv_symver_needs_alias" >&6; } | |
0923f74a | 7560 | if test "$libc_cv_symver_needs_alias" = yes; then |
c6cb8783 | 7561 | printf "%s\n" "#define SYMVER_NEEDS_ALIAS 1" >>confdefs.h |
0923f74a FW |
7562 | |
7563 | fi | |
7564 | ||
c6cb8783 SP |
7565 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_trap with no external dependencies" >&5 |
7566 | printf %s "checking for __builtin_trap with no external dependencies... " >&6; } | |
7567 | if test ${libc_cv_builtin_trap+y} | |
7568 | then : | |
7569 | printf %s "(cached) " >&6 | |
7570 | else $as_nop | |
9fe7e787 RM |
7571 | libc_cv_builtin_trap=no |
7572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7573 | /* end confdefs.h. */ | |
7574 | ||
7575 | int | |
c6cb8783 | 7576 | main (void) |
9fe7e787 RM |
7577 | { |
7578 | __builtin_trap () | |
7579 | ; | |
7580 | return 0; | |
7581 | } | |
7582 | _ACEOF | |
c6cb8783 SP |
7583 | if ac_fn_c_try_compile "$LINENO" |
7584 | then : | |
9fe7e787 RM |
7585 | |
7586 | libc_undefs=`$NM -u conftest.o | | |
7587 | LC_ALL=C $AWK '$1 == "U" { print $2 | "sort -u"; next } { exit(1) }' \ | |
7588 | 2>&5` || { | |
7589 | as_fn_error $? "confusing output from $NM -u" "$LINENO" 5 | |
7590 | } | |
7591 | echo >&5 "libc_undefs='$libc_undefs'" | |
7592 | if test -z "$libc_undefs"; then | |
7593 | libc_cv_builtin_trap=yes | |
7594 | fi | |
7595 | fi | |
c6cb8783 | 7596 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
9fe7e787 | 7597 | fi |
c6cb8783 SP |
7598 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_builtin_trap" >&5 |
7599 | printf "%s\n" "$libc_cv_builtin_trap" >&6; } | |
9fe7e787 | 7600 | if test $libc_cv_builtin_trap = yes; then |
c6cb8783 | 7601 | printf "%s\n" "#define HAVE_BUILTIN_TRAP 1" >>confdefs.h |
9fe7e787 RM |
7602 | |
7603 | fi | |
7604 | ||
99e1dc0a FW |
7605 | ac_ext=cpp |
7606 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7607 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7608 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7609 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7610 | ||
7611 | ||
c6cb8783 SP |
7612 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports thread_local" >&5 |
7613 | printf %s "checking whether the C++ compiler supports thread_local... " >&6; } | |
7614 | if test ${libc_cv_cxx_thread_local+y} | |
7615 | then : | |
7616 | printf %s "(cached) " >&6 | |
7617 | else $as_nop | |
99e1dc0a FW |
7618 | |
7619 | old_CXXFLAGS="$CXXFLAGS" | |
7620 | CXXFLAGS="$CXXFLAGS -std=gnu++11" | |
7621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7622 | /* end confdefs.h. */ | |
7623 | ||
7624 | #include <thread> | |
7625 | ||
7626 | // Compiler support. | |
7627 | struct S | |
7628 | { | |
7629 | S (); | |
7630 | ~S (); | |
7631 | }; | |
7632 | thread_local S s; | |
7633 | S * get () { return &s; } | |
7634 | ||
7635 | // libstdc++ support. | |
7636 | #ifndef _GLIBCXX_HAVE___CXA_THREAD_ATEXIT_IMPL | |
7637 | #error __cxa_thread_atexit_impl not supported | |
7638 | #endif | |
7639 | ||
7640 | _ACEOF | |
c6cb8783 SP |
7641 | if ac_fn_cxx_try_compile "$LINENO" |
7642 | then : | |
99e1dc0a | 7643 | libc_cv_cxx_thread_local=yes |
c6cb8783 | 7644 | else $as_nop |
99e1dc0a FW |
7645 | libc_cv_cxx_thread_local=no |
7646 | fi | |
c6cb8783 | 7647 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
99e1dc0a FW |
7648 | CXXFLAGS="$old_CXXFLAGS" |
7649 | ||
7650 | fi | |
c6cb8783 SP |
7651 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_thread_local" >&5 |
7652 | printf "%s\n" "$libc_cv_cxx_thread_local" >&6; } | |
99e1dc0a FW |
7653 | |
7654 | ||
7655 | ac_ext=c | |
7656 | ac_cpp='$CPP $CPPFLAGS' | |
7657 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7658 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7659 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7660 | ||
7661 | ||
cd6ede75 UD |
7662 | ### End of automated tests. |
7663 | ### Now run sysdeps configure fragments. | |
7664 | ||
cb343854 | 7665 | # They also can set these variables. |
b43b13ac | 7666 | use_ldconfig=no |
cb343854 | 7667 | ldd_rewrite_script=no |
77259608 | 7668 | libc_cv_sysconfdir=$sysconfdir |
4248b1b1 | 7669 | libc_cv_localstatedir=$localstatedir |
74bd2300 | 7670 | libc_cv_gcc_unwind_find_fde=no |
e2fd3cbe | 7671 | libc_cv_idn=no |
ad201afe | 7672 | pthread_in_libc=yes |
cb343854 | 7673 | |
cd6ede75 | 7674 | # Iterate over all the sysdep directories we will use, running their |
09055553 | 7675 | # configure fragments. |
cd6ede75 UD |
7676 | for dir in $sysnames; do |
7677 | case $dir in | |
7678 | /*) dest=$dir ;; | |
7679 | *) dest=$srcdir/$dir ;; | |
7680 | esac | |
7681 | if test -r $dest/configure; then | |
c6cb8783 SP |
7682 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: running configure fragment for $dir" >&5 |
7683 | printf "%s\n" "running configure fragment for $dir" >&6; } | |
cd6ede75 UD |
7684 | . $dest/configure |
7685 | fi | |
cd6ede75 UD |
7686 | done |
7687 | ||
5695d46f AS |
7688 | if test x"$build_mathvec" = xnotset; then |
7689 | build_mathvec=no | |
7690 | fi | |
7691 | config_vars="$config_vars | |
7692 | build-mathvec = $build_mathvec" | |
7693 | ||
7ffa9423 AZ |
7694 | |
7695 | ||
7696 | ||
74bd2300 | 7697 | if test x$libc_cv_gcc_unwind_find_fde = xyes; then |
c6cb8783 | 7698 | printf "%s\n" "#define EXPORT_UNWIND_FIND_FDE 1" >>confdefs.h |
74bd2300 UD |
7699 | |
7700 | fi | |
7701 | ||
7702 | ||
6e6249d0 RM |
7703 | # A sysdeps configure fragment can reset this if IFUNC is not actually |
7704 | # usable even though the assembler knows how to generate the symbol type. | |
7705 | if test x"$libc_cv_ld_gnu_indirect_function" = xyes; then | |
c6cb8783 | 7706 | printf "%s\n" "#define HAVE_IFUNC 1" >>confdefs.h |
6e6249d0 RM |
7707 | |
7708 | fi | |
92ad88fe L |
7709 | config_vars="$config_vars |
7710 | have-ifunc = $libc_cv_ld_gnu_indirect_function" | |
6e6249d0 | 7711 | |
022dfdce | 7712 | if test x"$libc_cv_gcc_indirect_function" = xyes; then |
c6cb8783 | 7713 | printf "%s\n" "#define HAVE_GCC_IFUNC 1" >>confdefs.h |
022dfdce SL |
7714 | |
7715 | fi | |
16b59780 ST |
7716 | config_vars="$config_vars |
7717 | have-gcc-ifunc = $libc_cv_gcc_indirect_function" | |
022dfdce | 7718 | |
3cc3ef96 RM |
7719 | # This is far from the AC_ARG_ENABLE that sets it so that a sysdeps |
7720 | # configure fragment can override the value to prevent this AC_DEFINE. | |
7721 | ||
7722 | if test "x$use_nscd" != xno; then | |
c6cb8783 | 7723 | printf "%s\n" "#define USE_NSCD 1" >>confdefs.h |
3cc3ef96 RM |
7724 | |
7725 | fi | |
c53d909c RM |
7726 | if test "x$build_nscd" = xdefault; then |
7727 | build_nscd=$use_nscd | |
7728 | fi | |
3cc3ef96 | 7729 | |
cd6ede75 UD |
7730 | |
7731 | ||
7732 | ||
7733 | ||
7734 | ||
cb343854 | 7735 | |
dff14448 | 7736 | |
f57f8055 | 7737 | if test x$use_ldconfig = xyes; then |
c6cb8783 | 7738 | printf "%s\n" "#define USE_LDCONFIG 1" >>confdefs.h |
f57f8055 RM |
7739 | |
7740 | fi | |
af968f62 | 7741 | |
3b100462 | 7742 | |
eae47a36 | 7743 | |
7998fa78 | 7744 | |
650425ce | 7745 | |
a334319f | 7746 | |
c6cb8783 SP |
7747 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -fPIC is default" >&5 |
7748 | printf %s "checking whether -fPIC is default... " >&6; } | |
7749 | if test ${libc_cv_pic_default+y} | |
7750 | then : | |
7751 | printf %s "(cached) " >&6 | |
7752 | else $as_nop | |
ff886b82 | 7753 | libc_cv_pic_default=yes |
cc3fa755 | 7754 | cat > conftest.c <<EOF |
9756dfe1 | 7755 | #if defined __PIC__ || defined __pic__ || defined PIC || defined pic |
cc3fa755 UD |
7756 | # error PIC is default. |
7757 | #endif | |
7758 | EOF | |
7759 | if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then | |
ff886b82 | 7760 | libc_cv_pic_default=no |
cc3fa755 UD |
7761 | fi |
7762 | rm -f conftest.* | |
7763 | fi | |
c6cb8783 SP |
7764 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pic_default" >&5 |
7765 | printf "%s\n" "$libc_cv_pic_default" >&6; } | |
23645707 SP |
7766 | config_vars="$config_vars |
7767 | build-pic-default = $libc_cv_pic_default" | |
cc3fa755 | 7768 | |
c6cb8783 SP |
7769 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -fPIE is default" >&5 |
7770 | printf %s "checking whether -fPIE is default... " >&6; } | |
7771 | if test ${libc_cv_cc_pie_default+y} | |
7772 | then : | |
7773 | printf %s "(cached) " >&6 | |
7774 | else $as_nop | |
00c714df | 7775 | libc_cv_cc_pie_default=yes |
cc08749b L |
7776 | cat > conftest.c <<EOF |
7777 | #if defined __PIE__ || defined __pie__ || defined PIE || defined pie | |
7778 | # error PIE is default. | |
7779 | #endif | |
7780 | EOF | |
7781 | if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then | |
00c714df | 7782 | libc_cv_cc_pie_default=no |
cc08749b L |
7783 | fi |
7784 | rm -f conftest.* | |
7785 | fi | |
c6cb8783 SP |
7786 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_pie_default" >&5 |
7787 | printf "%s\n" "$libc_cv_cc_pie_default" >&6; } | |
23645707 SP |
7788 | config_vars="$config_vars |
7789 | cc-pie-default = $libc_cv_cc_pie_default" | |
abcb584d | 7790 | |
c6cb8783 SP |
7791 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can build programs as PIE" >&5 |
7792 | printf %s "checking if we can build programs as PIE... " >&6; } | |
ded3aeb2 | 7793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
23645707 SP |
7794 | /* end confdefs.h. */ |
7795 | #ifdef PIE_UNSUPPORTED | |
7796 | # error PIE is not supported | |
7797 | #endif | |
7798 | _ACEOF | |
c6cb8783 SP |
7799 | if ac_fn_c_try_compile "$LINENO" |
7800 | then : | |
ded3aeb2 | 7801 | libc_cv_pie_supported=yes |
c6cb8783 | 7802 | else $as_nop |
ded3aeb2 | 7803 | libc_cv_pie_supported=no |
23645707 | 7804 | fi |
c6cb8783 SP |
7805 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
7806 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pie_supported" >&5 | |
7807 | printf "%s\n" "$libc_cv_pie_supported" >&6; } | |
ded3aeb2 L |
7808 | # Disable build-pie-default if target does not support it or glibc is |
7809 | # configured with --disable-default-pie. | |
7810 | if test "x$default_pie" = xno; then | |
7811 | build_pie_default=no | |
7812 | else | |
7813 | build_pie_default=$libc_cv_pie_supported | |
23645707 | 7814 | fi |
23645707 | 7815 | config_vars="$config_vars |
ded3aeb2 | 7816 | build-pie-default = $build_pie_default" |
23645707 | 7817 | |
c6cb8783 SP |
7818 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can build static PIE programs" >&5 |
7819 | printf %s "checking if we can build static PIE programs... " >&6; } | |
ded3aeb2 L |
7820 | libc_cv_static_pie_supported=$libc_cv_pie_supported |
7821 | if test "x$libc_cv_pie_supported" != xno \ | |
23645707 | 7822 | -a "$libc_cv_no_dynamic_linker" = yes; then |
374cef32 SN |
7823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7824 | /* end confdefs.h. */ | |
7825 | #ifndef SUPPORT_STATIC_PIE | |
7826 | # error static PIE is not supported | |
7827 | #endif | |
7828 | _ACEOF | |
c6cb8783 SP |
7829 | if ac_fn_c_try_compile "$LINENO" |
7830 | then : | |
ded3aeb2 | 7831 | libc_cv_static_pie_supported=yes |
c6cb8783 | 7832 | else $as_nop |
ded3aeb2 | 7833 | libc_cv_static_pie_supported=no |
374cef32 | 7834 | fi |
c6cb8783 | 7835 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
ded3aeb2 | 7836 | fi |
c6cb8783 SP |
7837 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie_supported" >&5 |
7838 | printf "%s\n" "$libc_cv_static_pie_supported" >&6; } | |
ded3aeb2 L |
7839 | |
7840 | # Enable static-pie only if it is available and glibc isn't configured | |
7841 | # with --disable-default-pie. | |
7842 | if test "x$default_pie" = xno; then | |
7843 | libc_cv_static_pie=no | |
7844 | else | |
7845 | libc_cv_static_pie=$libc_cv_static_pie_supported | |
7846 | fi | |
7847 | if test "$libc_cv_static_pie" = "yes"; then | |
c6cb8783 | 7848 | printf "%s\n" "#define ENABLE_STATIC_PIE 1" >>confdefs.h |
9d7a3741 L |
7849 | |
7850 | fi | |
7851 | config_vars="$config_vars | |
23645707 SP |
7852 | enable-static-pie = $libc_cv_static_pie" |
7853 | ||
7854 | # Set the `multidir' variable by grabbing the variable from the compiler. | |
7855 | # We do it once and save the result in a generated makefile. | |
7856 | libc_cv_multidir=`${CC-cc} $CFLAGS $CPPFLAGS -print-multi-directory` | |
7857 | ||
9d7a3741 | 7858 | |
2103c260 | 7859 | |
2103c260 | 7860 | |
2103c260 | 7861 | |
cc3fa755 | 7862 | |
cd6ede75 UD |
7863 | |
7864 | ||
7865 | ||
ee74a442 UD |
7866 | VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h` |
7867 | RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h` | |
7868 | ||
cd6ede75 UD |
7869 | |
7870 | ||
ad201afe | 7871 | if test "$pthread_in_libc" = yes; then |
c6cb8783 | 7872 | printf "%s\n" "#define PTHREAD_IN_LIBC 1" >>confdefs.h |
ad201afe FW |
7873 | |
7874 | fi | |
7875 | ||
7876 | ||
728e272a | 7877 | ac_config_files="$ac_config_files config.make Makefile" |
f4b07664 | 7878 | |
26f56c1c | 7879 | ac_config_commands="$ac_config_commands default" |
f4b07664 | 7880 | |
3a12e572 | 7881 | cat >confcache <<\_ACEOF |
cd6ede75 UD |
7882 | # This file is a shell script that caches the results of configure |
7883 | # tests run on this system so they can be shared between configure | |
3a12e572 UD |
7884 | # scripts and configure runs, see configure's option --config-cache. |
7885 | # It is not useful on other systems. If it contains results you don't | |
7886 | # want to keep, you may remove or edit it. | |
cd6ede75 | 7887 | # |
3a12e572 UD |
7888 | # config.status only pays attention to the cache file if you give it |
7889 | # the --recheck option to rerun configure. | |
cd6ede75 | 7890 | # |
f4b07664 | 7891 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
3a12e572 UD |
7892 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
7893 | # following values. | |
7894 | ||
7895 | _ACEOF | |
7896 | ||
cd6ede75 UD |
7897 | # The following way of writing the cache mishandles newlines in values, |
7898 | # but we know of no workaround that is simple, portable, and efficient. | |
26f56c1c | 7899 | # So, we kill variables containing newlines. |
cd6ede75 UD |
7900 | # Ultrix sh set writes to stderr and can't be redirected directly, |
7901 | # and sets the high bit in the cache file unless we assign to the vars. | |
26f56c1c UD |
7902 | ( |
7903 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
7904 | eval ac_val=\$$ac_var | |
7905 | case $ac_val in #( | |
7906 | *${as_nl}*) | |
7907 | case $ac_var in #( | |
c6cb8783 SP |
7908 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
7909 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
26f56c1c UD |
7910 | esac |
7911 | case $ac_var in #( | |
7912 | _ | IFS | as_nl) ;; #( | |
322e23db | 7913 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
b08c89d9 | 7914 | *) { eval $ac_var=; unset $ac_var;} ;; |
26f56c1c UD |
7915 | esac ;; |
7916 | esac | |
7917 | done | |
7918 | ||
3a12e572 | 7919 | (set) 2>&1 | |
26f56c1c UD |
7920 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
7921 | *${as_nl}ac_space=\ *) | |
b08c89d9 UD |
7922 | # `set' does not quote correctly, so add quotes: double-quote |
7923 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
3a12e572 | 7924 | sed -n \ |
9382fcee RM |
7925 | "s/'/'\\\\''/g; |
7926 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
26f56c1c | 7927 | ;; #( |
3a12e572 UD |
7928 | *) |
7929 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
26f56c1c | 7930 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
3a12e572 | 7931 | ;; |
26f56c1c UD |
7932 | esac | |
7933 | sort | |
7934 | ) | | |
3a12e572 | 7935 | sed ' |
26f56c1c | 7936 | /^ac_cv_env_/b end |
3a12e572 | 7937 | t clear |
26f56c1c | 7938 | :clear |
c6cb8783 | 7939 | s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
3a12e572 | 7940 | t end |
26f56c1c UD |
7941 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
7942 | :end' >>confcache | |
7943 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
7944 | if test -w "$cache_file"; then | |
f318beb8 | 7945 | if test "x$cache_file" != "x/dev/null"; then |
c6cb8783 SP |
7946 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
7947 | printf "%s\n" "$as_me: updating cache $cache_file" >&6;} | |
f318beb8 UD |
7948 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
7949 | cat confcache >"$cache_file" | |
7950 | else | |
7951 | case $cache_file in #( | |
7952 | */* | ?:*) | |
7953 | mv -f confcache "$cache_file"$$ && | |
7954 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
7955 | *) | |
7956 | mv -f confcache "$cache_file" ;; | |
7957 | esac | |
7958 | fi | |
7959 | fi | |
cd6ede75 | 7960 | else |
c6cb8783 SP |
7961 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
7962 | printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} | |
cd6ede75 UD |
7963 | fi |
7964 | fi | |
7965 | rm -f confcache | |
7966 | ||
cd6ede75 UD |
7967 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
7968 | # Let make expand exec_prefix. | |
7969 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7970 | ||
cd6ede75 UD |
7971 | DEFS=-DHAVE_CONFIG_H |
7972 | ||
f4b07664 RM |
7973 | ac_libobjs= |
7974 | ac_ltlibobjs= | |
4a531bb0 | 7975 | U= |
f4b07664 RM |
7976 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
7977 | # 1. Remove the extension, and $U if already installed. | |
26f56c1c | 7978 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
c6cb8783 | 7979 | ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` |
26f56c1c UD |
7980 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
7981 | # will be set to the directory where LIBOBJS objects are built. | |
b08c89d9 UD |
7982 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
7983 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
f4b07664 RM |
7984 | done |
7985 | LIBOBJS=$ac_libobjs | |
7986 | ||
7987 | LTLIBOBJS=$ac_ltlibobjs | |
7988 | ||
7989 | ||
cd6ede75 | 7990 | |
f318beb8 | 7991 | : "${CONFIG_STATUS=./config.status}" |
322e23db | 7992 | ac_write_fail=0 |
3a12e572 UD |
7993 | ac_clean_files_save=$ac_clean_files |
7994 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
c6cb8783 SP |
7995 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
7996 | printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} | |
b08c89d9 UD |
7997 | as_write_fail=0 |
7998 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
3a12e572 UD |
7999 | #! $SHELL |
8000 | # Generated by $as_me. | |
cd6ede75 | 8001 | # Run this file to recreate the current configuration. |
cd6ede75 | 8002 | # Compiler output produced by configure, useful for debugging |
3a12e572 | 8003 | # configure, is in config.log if it exists. |
cd6ede75 | 8004 | |
3a12e572 | 8005 | debug=false |
2abf9ff1 RM |
8006 | ac_cs_recheck=false |
8007 | ac_cs_silent=false | |
3a12e572 | 8008 | |
b08c89d9 UD |
8009 | SHELL=\${CONFIG_SHELL-$SHELL} |
8010 | export SHELL | |
8011 | _ASEOF | |
8012 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
8013 | ## -------------------- ## | |
8014 | ## M4sh Initialization. ## | |
8015 | ## -------------------- ## | |
3a12e572 | 8016 | |
26f56c1c UD |
8017 | # Be more Bourne compatible |
8018 | DUALCASE=1; export DUALCASE # for MKS sh | |
c6cb8783 SP |
8019 | as_nop=: |
8020 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 | |
8021 | then : | |
3a12e572 UD |
8022 | emulate sh |
8023 | NULLCMD=: | |
322e23db | 8024 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
f4b07664 RM |
8025 | # is contrary to our usage. Disable this feature. |
8026 | alias -g '${1+"$@"}'='"$@"' | |
26f56c1c | 8027 | setopt NO_GLOB_SUBST |
c6cb8783 | 8028 | else $as_nop |
b08c89d9 UD |
8029 | case `(set -o) 2>/dev/null` in #( |
8030 | *posix*) : | |
8031 | set -o posix ;; #( | |
8032 | *) : | |
8033 | ;; | |
26f56c1c | 8034 | esac |
26f56c1c UD |
8035 | fi |
8036 | ||
8037 | ||
c6cb8783 SP |
8038 | |
8039 | # Reset variables that may have inherited troublesome values from | |
8040 | # the environment. | |
8041 | ||
8042 | # IFS needs to be set, to space, tab, and newline, in precisely that order. | |
8043 | # (If _AS_PATH_WALK were called with IFS unset, it would have the | |
8044 | # side effect of setting IFS to empty, thus disabling word splitting.) | |
8045 | # Quoting is to prevent editors from complaining about space-tab. | |
322e23db UD |
8046 | as_nl=' |
8047 | ' | |
8048 | export as_nl | |
c6cb8783 SP |
8049 | IFS=" "" $as_nl" |
8050 | ||
8051 | PS1='$ ' | |
8052 | PS2='> ' | |
8053 | PS4='+ ' | |
8054 | ||
8055 | # Ensure predictable behavior from utilities with locale-dependent output. | |
8056 | LC_ALL=C | |
8057 | export LC_ALL | |
8058 | LANGUAGE=C | |
8059 | export LANGUAGE | |
8060 | ||
8061 | # We cannot yet rely on "unset" to work, but we need these variables | |
8062 | # to be unset--not just set to an empty or harmless value--now, to | |
8063 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct | |
8064 | # also avoids known problems related to "unset" and subshell syntax | |
8065 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). | |
8066 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH | |
8067 | do eval test \${$as_var+y} \ | |
8068 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
8069 | done | |
8070 | ||
8071 | # Ensure that fds 0, 1, and 2 are open. | |
8072 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi | |
8073 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi | |
8074 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi | |
322e23db UD |
8075 | |
8076 | # The user is always right. | |
c6cb8783 | 8077 | if ${PATH_SEPARATOR+false} :; then |
322e23db UD |
8078 | PATH_SEPARATOR=: |
8079 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
8080 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
8081 | PATH_SEPARATOR=';' | |
8082 | } | |
3a12e572 UD |
8083 | fi |
8084 | ||
f4b07664 | 8085 | |
26f56c1c | 8086 | # Find who we are. Look in the path if we contain no directory separator. |
f318beb8 | 8087 | as_myself= |
b08c89d9 | 8088 | case $0 in #(( |
26f56c1c UD |
8089 | *[\\/]* ) as_myself=$0 ;; |
8090 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8091 | for as_dir in $PATH | |
8092 | do | |
8093 | IFS=$as_save_IFS | |
c6cb8783 SP |
8094 | case $as_dir in #((( |
8095 | '') as_dir=./ ;; | |
8096 | */) ;; | |
8097 | *) as_dir=$as_dir/ ;; | |
8098 | esac | |
8099 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break | |
b08c89d9 | 8100 | done |
26f56c1c UD |
8101 | IFS=$as_save_IFS |
8102 | ||
8103 | ;; | |
8104 | esac | |
8105 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
8106 | # in which case we are not to be found in the path. | |
8107 | if test "x$as_myself" = x; then | |
8108 | as_myself=$0 | |
8109 | fi | |
8110 | if test ! -f "$as_myself"; then | |
c6cb8783 | 8111 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
b08c89d9 | 8112 | exit 1 |
26f56c1c UD |
8113 | fi |
8114 | ||
b08c89d9 UD |
8115 | |
8116 | ||
4a531bb0 L |
8117 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
8118 | # ---------------------------------------- | |
b08c89d9 UD |
8119 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
8120 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
4a531bb0 | 8121 | # script with STATUS, using 1 if that was 0. |
b08c89d9 UD |
8122 | as_fn_error () |
8123 | { | |
4a531bb0 L |
8124 | as_status=$1; test $as_status -eq 0 && as_status=1 |
8125 | if test "$4"; then | |
8126 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
c6cb8783 | 8127 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
b08c89d9 | 8128 | fi |
c6cb8783 | 8129 | printf "%s\n" "$as_me: error: $2" >&2 |
b08c89d9 UD |
8130 | as_fn_exit $as_status |
8131 | } # as_fn_error | |
8132 | ||
8133 | ||
c6cb8783 | 8134 | |
b08c89d9 UD |
8135 | # as_fn_set_status STATUS |
8136 | # ----------------------- | |
8137 | # Set $? to STATUS, without forking. | |
8138 | as_fn_set_status () | |
8139 | { | |
8140 | return $1 | |
8141 | } # as_fn_set_status | |
8142 | ||
8143 | # as_fn_exit STATUS | |
8144 | # ----------------- | |
8145 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
8146 | as_fn_exit () | |
8147 | { | |
8148 | set +e | |
8149 | as_fn_set_status $1 | |
8150 | exit $1 | |
8151 | } # as_fn_exit | |
8152 | ||
8153 | # as_fn_unset VAR | |
8154 | # --------------- | |
8155 | # Portably unset VAR. | |
8156 | as_fn_unset () | |
8157 | { | |
8158 | { eval $1=; unset $1;} | |
8159 | } | |
8160 | as_unset=as_fn_unset | |
c6cb8783 | 8161 | |
b08c89d9 UD |
8162 | # as_fn_append VAR VALUE |
8163 | # ---------------------- | |
8164 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
8165 | # advantage of any shell optimizations that allow amortized linear growth over | |
8166 | # repeated appends, instead of the typical quadratic growth present in naive | |
8167 | # implementations. | |
c6cb8783 SP |
8168 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
8169 | then : | |
b08c89d9 UD |
8170 | eval 'as_fn_append () |
8171 | { | |
8172 | eval $1+=\$2 | |
8173 | }' | |
c6cb8783 | 8174 | else $as_nop |
b08c89d9 UD |
8175 | as_fn_append () |
8176 | { | |
8177 | eval $1=\$$1\$2 | |
8178 | } | |
8179 | fi # as_fn_append | |
8180 | ||
8181 | # as_fn_arith ARG... | |
8182 | # ------------------ | |
8183 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
8184 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
8185 | # must be portable across $(()) and expr. | |
c6cb8783 SP |
8186 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
8187 | then : | |
b08c89d9 UD |
8188 | eval 'as_fn_arith () |
8189 | { | |
8190 | as_val=$(( $* )) | |
8191 | }' | |
c6cb8783 | 8192 | else $as_nop |
b08c89d9 UD |
8193 | as_fn_arith () |
8194 | { | |
8195 | as_val=`expr "$@" || test $? -eq 1` | |
8196 | } | |
8197 | fi # as_fn_arith | |
8198 | ||
8199 | ||
26f56c1c UD |
8200 | if expr a : '\(a\)' >/dev/null 2>&1 && |
8201 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
f4b07664 RM |
8202 | as_expr=expr |
8203 | else | |
8204 | as_expr=false | |
8205 | fi | |
8206 | ||
26f56c1c | 8207 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
f4b07664 RM |
8208 | as_basename=basename |
8209 | else | |
8210 | as_basename=false | |
8211 | fi | |
3a12e572 | 8212 | |
b08c89d9 UD |
8213 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
8214 | as_dirname=dirname | |
8215 | else | |
8216 | as_dirname=false | |
8217 | fi | |
3a12e572 | 8218 | |
26f56c1c | 8219 | as_me=`$as_basename -- "$0" || |
3a12e572 UD |
8220 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
8221 | X"$0" : 'X\(//\)$' \| \ | |
26f56c1c | 8222 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
c6cb8783 | 8223 | printf "%s\n" X/"$0" | |
26f56c1c UD |
8224 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
8225 | s//\1/ | |
8226 | q | |
8227 | } | |
8228 | /^X\/\(\/\/\)$/{ | |
8229 | s//\1/ | |
8230 | q | |
8231 | } | |
8232 | /^X\/\(\/\).*/{ | |
8233 | s//\1/ | |
8234 | q | |
8235 | } | |
8236 | s/.*/./; q'` | |
3a12e572 | 8237 | |
b08c89d9 UD |
8238 | # Avoid depending upon Character Ranges. |
8239 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
8240 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
8241 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
8242 | as_cr_digits='0123456789' | |
8243 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
26f56c1c | 8244 | |
c6cb8783 SP |
8245 | |
8246 | # Determine whether it's possible to make 'echo' print without a newline. | |
8247 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed | |
8248 | # for compatibility with existing Makefiles. | |
26f56c1c | 8249 | ECHO_C= ECHO_N= ECHO_T= |
b08c89d9 | 8250 | case `echo -n x` in #((((( |
26f56c1c | 8251 | -n*) |
b08c89d9 | 8252 | case `echo 'xy\c'` in |
26f56c1c | 8253 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
b08c89d9 UD |
8254 | xy) ECHO_C='\c';; |
8255 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
8256 | ECHO_T=' ';; | |
26f56c1c UD |
8257 | esac;; |
8258 | *) | |
8259 | ECHO_N='-n';; | |
3a12e572 | 8260 | esac |
cd6ede75 | 8261 | |
c6cb8783 SP |
8262 | # For backward compatibility with old third-party macros, we provide |
8263 | # the shell variables $as_echo and $as_echo_n. New code should use | |
8264 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. | |
8265 | as_echo='printf %s\n' | |
8266 | as_echo_n='printf %s' | |
8267 | ||
3a12e572 | 8268 | rm -f conf$$ conf$$.exe conf$$.file |
26f56c1c UD |
8269 | if test -d conf$$.dir; then |
8270 | rm -f conf$$.dir/conf$$.file | |
8271 | else | |
8272 | rm -f conf$$.dir | |
322e23db UD |
8273 | mkdir conf$$.dir 2>/dev/null |
8274 | fi | |
8275 | if (echo >conf$$.file) 2>/dev/null; then | |
8276 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
8277 | as_ln_s='ln -s' | |
8278 | # ... but there are two gotchas: | |
8279 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
8280 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
f4a58f0d | 8281 | # In both cases, we have to default to `cp -pR'. |
322e23db | 8282 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
f4a58f0d | 8283 | as_ln_s='cp -pR' |
322e23db UD |
8284 | elif ln conf$$.file conf$$ 2>/dev/null; then |
8285 | as_ln_s=ln | |
8286 | else | |
f4a58f0d | 8287 | as_ln_s='cp -pR' |
322e23db | 8288 | fi |
3a12e572 | 8289 | else |
f4a58f0d | 8290 | as_ln_s='cp -pR' |
cd6ede75 | 8291 | fi |
26f56c1c UD |
8292 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
8293 | rmdir conf$$.dir 2>/dev/null | |
cd6ede75 | 8294 | |
b08c89d9 UD |
8295 | |
8296 | # as_fn_mkdir_p | |
8297 | # ------------- | |
8298 | # Create "$as_dir" as a directory, including parents if necessary. | |
8299 | as_fn_mkdir_p () | |
8300 | { | |
8301 | ||
8302 | case $as_dir in #( | |
8303 | -*) as_dir=./$as_dir;; | |
8304 | esac | |
8305 | test -d "$as_dir" || eval $as_mkdir_p || { | |
8306 | as_dirs= | |
8307 | while :; do | |
8308 | case $as_dir in #( | |
c6cb8783 | 8309 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
b08c89d9 UD |
8310 | *) as_qdir=$as_dir;; |
8311 | esac | |
8312 | as_dirs="'$as_qdir' $as_dirs" | |
8313 | as_dir=`$as_dirname -- "$as_dir" || | |
8314 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8315 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8316 | X"$as_dir" : 'X\(//\)$' \| \ | |
8317 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
c6cb8783 | 8318 | printf "%s\n" X"$as_dir" | |
b08c89d9 UD |
8319 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
8320 | s//\1/ | |
8321 | q | |
8322 | } | |
8323 | /^X\(\/\/\)[^/].*/{ | |
8324 | s//\1/ | |
8325 | q | |
8326 | } | |
8327 | /^X\(\/\/\)$/{ | |
8328 | s//\1/ | |
8329 | q | |
8330 | } | |
8331 | /^X\(\/\).*/{ | |
8332 | s//\1/ | |
8333 | q | |
8334 | } | |
8335 | s/.*/./; q'` | |
8336 | test -d "$as_dir" && break | |
8337 | done | |
8338 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
4a531bb0 | 8339 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
b08c89d9 UD |
8340 | |
8341 | ||
8342 | } # as_fn_mkdir_p | |
f4b07664 | 8343 | if mkdir -p . 2>/dev/null; then |
b08c89d9 | 8344 | as_mkdir_p='mkdir -p "$as_dir"' |
f4b07664 | 8345 | else |
9382fcee | 8346 | test -d ./-p && rmdir ./-p |
f4b07664 RM |
8347 | as_mkdir_p=false |
8348 | fi | |
8349 | ||
f4a58f0d L |
8350 | |
8351 | # as_fn_executable_p FILE | |
8352 | # ----------------------- | |
8353 | # Test if FILE is an executable regular file. | |
8354 | as_fn_executable_p () | |
8355 | { | |
8356 | test -f "$1" && test -x "$1" | |
8357 | } # as_fn_executable_p | |
8358 | as_test_x='test -x' | |
8359 | as_executable_p=as_fn_executable_p | |
cd6ede75 | 8360 | |
3a12e572 | 8361 | # Sed expression to map a string onto a valid CPP name. |
9382fcee | 8362 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
3a12e572 UD |
8363 | |
8364 | # Sed expression to map a string onto a valid variable name. | |
9382fcee | 8365 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
3a12e572 UD |
8366 | |
8367 | ||
3a12e572 | 8368 | exec 6>&1 |
b08c89d9 UD |
8369 | ## ----------------------------------- ## |
8370 | ## Main body of $CONFIG_STATUS script. ## | |
8371 | ## ----------------------------------- ## | |
8372 | _ASEOF | |
8373 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
3a12e572 | 8374 | |
b08c89d9 UD |
8375 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8376 | # Save the log message, to keep $0 and so on meaningful, and to | |
3a12e572 | 8377 | # report actual input values of CONFIG_FILES etc. instead of their |
26f56c1c UD |
8378 | # values after options handling. |
8379 | ac_log=" | |
f4b07664 | 8380 | This file was extended by GNU C Library $as_me (see version.h), which was |
c6cb8783 | 8381 | generated by GNU Autoconf 2.71. Invocation command line was |
3a12e572 UD |
8382 | |
8383 | CONFIG_FILES = $CONFIG_FILES | |
8384 | CONFIG_HEADERS = $CONFIG_HEADERS | |
8385 | CONFIG_LINKS = $CONFIG_LINKS | |
8386 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
8387 | $ $0 $@ | |
8388 | ||
26f56c1c UD |
8389 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
8390 | " | |
8391 | ||
3a12e572 UD |
8392 | _ACEOF |
8393 | ||
322e23db UD |
8394 | case $ac_config_files in *" |
8395 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
8396 | esac | |
8397 | ||
8398 | case $ac_config_headers in *" | |
8399 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
8400 | esac | |
8401 | ||
8402 | ||
8403 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3a12e572 | 8404 | # Files that config.status was made for. |
26f56c1c UD |
8405 | config_files="$ac_config_files" |
8406 | config_headers="$ac_config_headers" | |
8407 | config_commands="$ac_config_commands" | |
3a12e572 | 8408 | |
26f56c1c | 8409 | _ACEOF |
3a12e572 | 8410 | |
322e23db | 8411 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
3a12e572 | 8412 | ac_cs_usage="\ |
b08c89d9 UD |
8413 | \`$as_me' instantiates files and other configuration actions |
8414 | from templates according to the current configuration. Unless the files | |
8415 | and actions are specified as TAGs, all are instantiated by default. | |
3a12e572 | 8416 | |
b08c89d9 | 8417 | Usage: $0 [OPTION]... [TAG]... |
3a12e572 UD |
8418 | |
8419 | -h, --help print this help, then exit | |
26f56c1c | 8420 | -V, --version print version number and configuration settings, then exit |
b08c89d9 | 8421 | --config print configuration, then exit |
322e23db UD |
8422 | -q, --quiet, --silent |
8423 | do not print progress messages | |
3a12e572 UD |
8424 | -d, --debug don't remove temporary files |
8425 | --recheck update $as_me by reconfiguring in the same conditions | |
322e23db UD |
8426 | --file=FILE[:TEMPLATE] |
8427 | instantiate the configuration file FILE | |
8428 | --header=FILE[:TEMPLATE] | |
8429 | instantiate the configuration header FILE | |
3a12e572 UD |
8430 | |
8431 | Configuration files: | |
8432 | $config_files | |
8433 | ||
8434 | Configuration headers: | |
8435 | $config_headers | |
8436 | ||
3a12e572 UD |
8437 | Configuration commands: |
8438 | $config_commands | |
8439 | ||
a306c790 | 8440 | Report bugs to <https://sourceware.org/bugzilla/>. |
02d35f06 | 8441 | GNU C Library home page: <https://www.gnu.org/software/glibc/>. |
c6cb8783 | 8442 | General help using GNU software: <https://www.gnu.org/gethelp/>." |
3a12e572 | 8443 | |
26f56c1c | 8444 | _ACEOF |
c6cb8783 SP |
8445 | ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` |
8446 | ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` | |
322e23db | 8447 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
c6cb8783 | 8448 | ac_cs_config='$ac_cs_config_escaped' |
3a12e572 | 8449 | ac_cs_version="\\ |
f4b07664 | 8450 | GNU C Library config.status (see version.h) |
c6cb8783 | 8451 | configured by $0, generated by GNU Autoconf 2.71, |
b08c89d9 | 8452 | with options \\"\$ac_cs_config\\" |
3a12e572 | 8453 | |
c6cb8783 | 8454 | Copyright (C) 2021 Free Software Foundation, Inc. |
3a12e572 UD |
8455 | This config.status script is free software; the Free Software Foundation |
8456 | gives unlimited permission to copy, distribute and modify it." | |
26f56c1c UD |
8457 | |
8458 | ac_pwd='$ac_pwd' | |
8459 | srcdir='$srcdir' | |
8460 | INSTALL='$INSTALL' | |
322e23db | 8461 | test -n "\$AWK" || AWK=awk |
3a12e572 UD |
8462 | _ACEOF |
8463 | ||
322e23db UD |
8464 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8465 | # The default lists apply if the user does not specify any file. | |
3a12e572 UD |
8466 | ac_need_defaults=: |
8467 | while test $# != 0 | |
8468 | do | |
8469 | case $1 in | |
f318beb8 | 8470 | --*=?*) |
26f56c1c UD |
8471 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
8472 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
f4b07664 RM |
8473 | ac_shift=: |
8474 | ;; | |
f318beb8 UD |
8475 | --*=) |
8476 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
8477 | ac_optarg= | |
8478 | ac_shift=: | |
8479 | ;; | |
26f56c1c | 8480 | *) |
f4b07664 RM |
8481 | ac_option=$1 |
8482 | ac_optarg=$2 | |
8483 | ac_shift=shift | |
3a12e572 | 8484 | ;; |
cd6ede75 UD |
8485 | esac |
8486 | ||
f4b07664 | 8487 | case $ac_option in |
3a12e572 | 8488 | # Handling of the options. |
2abf9ff1 RM |
8489 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
8490 | ac_cs_recheck=: ;; | |
26f56c1c | 8491 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
c6cb8783 | 8492 | printf "%s\n" "$ac_cs_version"; exit ;; |
b08c89d9 | 8493 | --config | --confi | --conf | --con | --co | --c ) |
c6cb8783 | 8494 | printf "%s\n" "$ac_cs_config"; exit ;; |
26f56c1c | 8495 | --debug | --debu | --deb | --de | --d | -d ) |
3a12e572 UD |
8496 | debug=: ;; |
8497 | --file | --fil | --fi | --f ) | |
f4b07664 | 8498 | $ac_shift |
322e23db | 8499 | case $ac_optarg in |
c6cb8783 | 8500 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
f318beb8 | 8501 | '') as_fn_error $? "missing file argument" ;; |
322e23db | 8502 | esac |
b08c89d9 | 8503 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
3a12e572 UD |
8504 | ac_need_defaults=false;; |
8505 | --header | --heade | --head | --hea ) | |
f4b07664 | 8506 | $ac_shift |
322e23db | 8507 | case $ac_optarg in |
c6cb8783 | 8508 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
322e23db | 8509 | esac |
b08c89d9 | 8510 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
3a12e572 | 8511 | ac_need_defaults=false;; |
26f56c1c UD |
8512 | --he | --h) |
8513 | # Conflict between --help and --header | |
4a531bb0 | 8514 | as_fn_error $? "ambiguous option: \`$1' |
b08c89d9 | 8515 | Try \`$0 --help' for more information.";; |
26f56c1c | 8516 | --help | --hel | -h ) |
c6cb8783 | 8517 | printf "%s\n" "$ac_cs_usage"; exit ;; |
2abf9ff1 RM |
8518 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
8519 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
8520 | ac_cs_silent=: ;; | |
3a12e572 UD |
8521 | |
8522 | # This is an error. | |
4a531bb0 | 8523 | -*) as_fn_error $? "unrecognized option: \`$1' |
b08c89d9 | 8524 | Try \`$0 --help' for more information." ;; |
3a12e572 | 8525 | |
b08c89d9 | 8526 | *) as_fn_append ac_config_targets " $1" |
26f56c1c | 8527 | ac_need_defaults=false ;; |
cd6ede75 | 8528 | |
3a12e572 UD |
8529 | esac |
8530 | shift | |
8531 | done | |
8532 | ||
2abf9ff1 RM |
8533 | ac_configure_extra_args= |
8534 | ||
8535 | if $ac_cs_silent; then | |
8536 | exec 6>/dev/null | |
8537 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
8538 | fi | |
8539 | ||
8540 | _ACEOF | |
322e23db | 8541 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
2abf9ff1 | 8542 | if \$ac_cs_recheck; then |
f4a58f0d | 8543 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
322e23db | 8544 | shift |
c6cb8783 | 8545 | \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 |
322e23db | 8546 | CONFIG_SHELL='$SHELL' |
26f56c1c | 8547 | export CONFIG_SHELL |
322e23db | 8548 | exec "\$@" |
2abf9ff1 RM |
8549 | fi |
8550 | ||
3a12e572 | 8551 | _ACEOF |
322e23db | 8552 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
26f56c1c UD |
8553 | exec 5>>config.log |
8554 | { | |
8555 | echo | |
8556 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
8557 | ## Running $as_me. ## | |
8558 | _ASBOX | |
c6cb8783 | 8559 | printf "%s\n" "$ac_log" |
26f56c1c | 8560 | } >&5 |
3a12e572 | 8561 | |
26f56c1c | 8562 | _ACEOF |
322e23db | 8563 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
3a12e572 | 8564 | # |
26f56c1c | 8565 | # INIT-COMMANDS |
3a12e572 | 8566 | # |
3a12e572 UD |
8567 | config_vars='$config_vars' |
8568 | ||
8569 | _ACEOF | |
8570 | ||
322e23db | 8571 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
26f56c1c UD |
8572 | |
8573 | # Handling of arguments. | |
3a12e572 UD |
8574 | for ac_config_target in $ac_config_targets |
8575 | do | |
26f56c1c UD |
8576 | case $ac_config_target in |
8577 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
8578 | "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;; | |
728e272a | 8579 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
26f56c1c UD |
8580 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
8581 | ||
4a531bb0 | 8582 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
3a12e572 UD |
8583 | esac |
8584 | done | |
8585 | ||
26f56c1c | 8586 | |
3a12e572 UD |
8587 | # If the user did not use the arguments to specify the items to instantiate, |
8588 | # then the envvar interface is used. Set only those that are not. | |
8589 | # We use the long form for the default assignment because of an extremely | |
8590 | # bizarre bug on SunOS 4.1.3. | |
8591 | if $ac_need_defaults; then | |
c6cb8783 SP |
8592 | test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files |
8593 | test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers | |
8594 | test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands | |
3a12e572 UD |
8595 | fi |
8596 | ||
2abf9ff1 | 8597 | # Have a temporary directory for convenience. Make it in the build tree |
26f56c1c | 8598 | # simply because there is no reason against having it here, and in addition, |
2abf9ff1 | 8599 | # creating and moving files from /tmp can sometimes cause problems. |
26f56c1c UD |
8600 | # Hook for its removal unless debugging. |
8601 | # Note that there is a small window in which the directory will not be cleaned: | |
8602 | # after its creation but before its name has been assigned to `$tmp'. | |
3a12e572 UD |
8603 | $debug || |
8604 | { | |
f318beb8 | 8605 | tmp= ac_tmp= |
26f56c1c | 8606 | trap 'exit_status=$? |
f318beb8 UD |
8607 | : "${ac_tmp:=$tmp}" |
8608 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
26f56c1c | 8609 | ' 0 |
b08c89d9 | 8610 | trap 'as_fn_exit 1' 1 2 13 15 |
3a12e572 | 8611 | } |
3a12e572 | 8612 | # Create a (secure) tmp directory for tmp files. |
2abf9ff1 | 8613 | |
3a12e572 | 8614 | { |
26f56c1c | 8615 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
f318beb8 | 8616 | test -d "$tmp" |
3a12e572 UD |
8617 | } || |
8618 | { | |
26f56c1c UD |
8619 | tmp=./conf$$-$RANDOM |
8620 | (umask 077 && mkdir "$tmp") | |
4a531bb0 | 8621 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
f318beb8 | 8622 | ac_tmp=$tmp |
3a12e572 | 8623 | |
322e23db UD |
8624 | # Set up the scripts for CONFIG_FILES section. |
8625 | # No need to generate them if there are no CONFIG_FILES. | |
8626 | # This happens for instance with `./config.status config.h'. | |
26f56c1c UD |
8627 | if test -n "$CONFIG_FILES"; then |
8628 | ||
a152f366 | 8629 | |
b08c89d9 UD |
8630 | ac_cr=`echo X | tr X '\015'` |
8631 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
8632 | # But we know of no other shell where ac_cr would be empty at this | |
8633 | # point, so we can use a bashism as a fallback. | |
8634 | if test "x$ac_cr" = x; then | |
8635 | eval ac_cr=\$\'\\r\' | |
8636 | fi | |
322e23db UD |
8637 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
8638 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
4a531bb0 | 8639 | ac_cs_awk_cr='\\r' |
322e23db UD |
8640 | else |
8641 | ac_cs_awk_cr=$ac_cr | |
26f56c1c UD |
8642 | fi |
8643 | ||
f318beb8 | 8644 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
26f56c1c UD |
8645 | _ACEOF |
8646 | ||
8647 | ||
322e23db UD |
8648 | { |
8649 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
8650 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
8651 | echo "_ACEOF" | |
8652 | } >conf$$subs.sh || | |
4a531bb0 L |
8653 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
8654 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
26f56c1c UD |
8655 | ac_delim='%!_!# ' |
8656 | for ac_last_try in false false false false false :; do | |
322e23db | 8657 | . ./conf$$subs.sh || |
4a531bb0 | 8658 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
322e23db UD |
8659 | |
8660 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
8661 | if test $ac_delim_n = $ac_delim_num; then | |
26f56c1c UD |
8662 | break |
8663 | elif $ac_last_try; then | |
4a531bb0 | 8664 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
26f56c1c UD |
8665 | else |
8666 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
8667 | fi | |
8668 | done | |
322e23db UD |
8669 | rm -f conf$$subs.sh |
8670 | ||
8671 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
f318beb8 | 8672 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
322e23db UD |
8673 | _ACEOF |
8674 | sed -n ' | |
8675 | h | |
8676 | s/^/S["/; s/!.*/"]=/ | |
8677 | p | |
8678 | g | |
8679 | s/^[^!]*!// | |
8680 | :repl | |
8681 | t repl | |
8682 | s/'"$ac_delim"'$// | |
8683 | t delim | |
8684 | :nl | |
8685 | h | |
b08c89d9 | 8686 | s/\(.\{148\}\)..*/\1/ |
322e23db UD |
8687 | t more1 |
8688 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
8689 | p | |
8690 | n | |
8691 | b repl | |
8692 | :more1 | |
8693 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8694 | p | |
8695 | g | |
8696 | s/.\{148\}// | |
8697 | t nl | |
8698 | :delim | |
8699 | h | |
b08c89d9 | 8700 | s/\(.\{148\}\)..*/\1/ |
322e23db UD |
8701 | t more2 |
8702 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
8703 | p | |
8704 | b | |
8705 | :more2 | |
8706 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8707 | p | |
8708 | g | |
8709 | s/.\{148\}// | |
8710 | t delim | |
8711 | ' <conf$$subs.awk | sed ' | |
8712 | /^[^""]/{ | |
8713 | N | |
8714 | s/\n// | |
8715 | } | |
8716 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
8717 | rm -f conf$$subs.awk | |
8718 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8719 | _ACAWK | |
f318beb8 | 8720 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
322e23db UD |
8721 | for (key in S) S_is_set[key] = 1 |
8722 | FS = "\a" | |
ff886b82 | 8723 | |
322e23db UD |
8724 | } |
8725 | { | |
8726 | line = $ 0 | |
8727 | nfields = split(line, field, "@") | |
8728 | substed = 0 | |
8729 | len = length(field[1]) | |
8730 | for (i = 2; i < nfields; i++) { | |
8731 | key = field[i] | |
8732 | keylen = length(key) | |
8733 | if (S_is_set[key]) { | |
8734 | value = S[key] | |
8735 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
8736 | len += length(value) + length(field[++i]) | |
8737 | substed = 1 | |
8738 | } else | |
8739 | len += 1 + keylen | |
8740 | } | |
8741 | ||
8742 | print line | |
8743 | } | |
cd6ede75 | 8744 | |
322e23db | 8745 | _ACAWK |
26f56c1c | 8746 | _ACEOF |
322e23db UD |
8747 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8748 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
8749 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
8750 | else | |
8751 | cat | |
f318beb8 | 8752 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
4a531bb0 | 8753 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
3a12e572 | 8754 | _ACEOF |
26f56c1c | 8755 | |
4a531bb0 L |
8756 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
8757 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
26f56c1c UD |
8758 | # trailing colons and then remove the whole line if VPATH becomes empty |
8759 | # (actually we leave an empty line to preserve line numbers). | |
8760 | if test "x$srcdir" = x.; then | |
4a531bb0 L |
8761 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
8762 | h | |
8763 | s/// | |
8764 | s/^/:/ | |
8765 | s/[ ]*$/:/ | |
8766 | s/:\$(srcdir):/:/g | |
8767 | s/:\${srcdir}:/:/g | |
8768 | s/:@srcdir@:/:/g | |
8769 | s/^:*// | |
26f56c1c | 8770 | s/:*$// |
4a531bb0 L |
8771 | x |
8772 | s/\(=[ ]*\).*/\1/ | |
8773 | G | |
8774 | s/\n// | |
26f56c1c UD |
8775 | s/^[^=]*=[ ]*$// |
8776 | }' | |
8777 | fi | |
8778 | ||
322e23db | 8779 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
26f56c1c UD |
8780 | fi # test -n "$CONFIG_FILES" |
8781 | ||
322e23db UD |
8782 | # Set up the scripts for CONFIG_HEADERS section. |
8783 | # No need to generate them if there are no CONFIG_HEADERS. | |
8784 | # This happens for instance with `./config.status Makefile'. | |
8785 | if test -n "$CONFIG_HEADERS"; then | |
f318beb8 | 8786 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
322e23db UD |
8787 | BEGIN { |
8788 | _ACEOF | |
8789 | ||
8790 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
8791 | # here-document in config.status, that substitutes the proper values into | |
8792 | # config.h.in to produce config.h. | |
8793 | ||
8794 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
8795 | # handling of long lines. | |
8796 | ac_delim='%!_!# ' | |
8797 | for ac_last_try in false false :; do | |
f318beb8 UD |
8798 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
8799 | if test -z "$ac_tt"; then | |
322e23db UD |
8800 | break |
8801 | elif $ac_last_try; then | |
4a531bb0 | 8802 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
322e23db UD |
8803 | else |
8804 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
8805 | fi | |
8806 | done | |
8807 | ||
8808 | # For the awk script, D is an array of macro values keyed by name, | |
8809 | # likewise P contains macro parameters if any. Preserve backslash | |
8810 | # newline sequences. | |
8811 | ||
8812 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
8813 | sed -n ' | |
8814 | s/.\{148\}/&'"$ac_delim"'/g | |
8815 | t rset | |
8816 | :rset | |
8817 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
8818 | t def | |
8819 | d | |
8820 | :def | |
8821 | s/\\$// | |
8822 | t bsnl | |
8823 | s/["\\]/\\&/g | |
8824 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
8825 | D["\1"]=" \3"/p | |
8826 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
8827 | d | |
8828 | :bsnl | |
8829 | s/["\\]/\\&/g | |
8830 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
8831 | D["\1"]=" \3\\\\\\n"\\/p | |
8832 | t cont | |
8833 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
8834 | t cont | |
8835 | d | |
8836 | :cont | |
8837 | n | |
8838 | s/.\{148\}/&'"$ac_delim"'/g | |
8839 | t clear | |
8840 | :clear | |
8841 | s/\\$// | |
8842 | t bsnlc | |
8843 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
8844 | d | |
8845 | :bsnlc | |
8846 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
8847 | b cont | |
8848 | ' <confdefs.h | sed ' | |
8849 | s/'"$ac_delim"'/"\\\ | |
8850 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
8851 | ||
8852 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8853 | for (key in D) D_is_set[key] = 1 | |
8854 | FS = "\a" | |
8855 | } | |
8856 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
8857 | line = \$ 0 | |
8858 | split(line, arg, " ") | |
8859 | if (arg[1] == "#") { | |
8860 | defundef = arg[2] | |
8861 | mac1 = arg[3] | |
8862 | } else { | |
8863 | defundef = substr(arg[1], 2) | |
8864 | mac1 = arg[2] | |
8865 | } | |
8866 | split(mac1, mac2, "(") #) | |
8867 | macro = mac2[1] | |
8868 | prefix = substr(line, 1, index(line, defundef) - 1) | |
8869 | if (D_is_set[macro]) { | |
8870 | # Preserve the white space surrounding the "#". | |
8871 | print prefix "define", macro P[macro] D[macro] | |
8872 | next | |
8873 | } else { | |
8874 | # Replace #undef with comments. This is necessary, for example, | |
8875 | # in the case of _POSIX_SOURCE, which is predefined and required | |
8876 | # on some systems where configure will not decide to define it. | |
8877 | if (defundef == "undef") { | |
8878 | print "/*", prefix defundef, macro, "*/" | |
8879 | next | |
8880 | } | |
8881 | } | |
8882 | } | |
8883 | { print } | |
8884 | _ACAWK | |
8885 | _ACEOF | |
8886 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4a531bb0 | 8887 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
322e23db UD |
8888 | fi # test -n "$CONFIG_HEADERS" |
8889 | ||
26f56c1c | 8890 | |
322e23db UD |
8891 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
8892 | shift | |
8893 | for ac_tag | |
26f56c1c UD |
8894 | do |
8895 | case $ac_tag in | |
8896 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
8897 | esac | |
8898 | case $ac_mode$ac_tag in | |
8899 | :[FHL]*:*);; | |
4a531bb0 | 8900 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
26f56c1c UD |
8901 | :[FH]-) ac_tag=-:-;; |
8902 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
cd6ede75 | 8903 | esac |
26f56c1c UD |
8904 | ac_save_IFS=$IFS |
8905 | IFS=: | |
8906 | set x $ac_tag | |
8907 | IFS=$ac_save_IFS | |
8908 | shift | |
8909 | ac_file=$1 | |
8910 | shift | |
8911 | ||
8912 | case $ac_mode in | |
8913 | :L) ac_source=$1;; | |
8914 | :[FH]) | |
8915 | ac_file_inputs= | |
8916 | for ac_f | |
8917 | do | |
8918 | case $ac_f in | |
f318beb8 | 8919 | -) ac_f="$ac_tmp/stdin";; |
26f56c1c UD |
8920 | *) # Look for the file first in the build tree, then in the source tree |
8921 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
8922 | # because $ac_f cannot contain `:'. | |
8923 | test -f "$ac_f" || | |
8924 | case $ac_f in | |
8925 | [\\/$]*) false;; | |
8926 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
8927 | esac || | |
4a531bb0 | 8928 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
26f56c1c | 8929 | esac |
c6cb8783 | 8930 | case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
b08c89d9 | 8931 | as_fn_append ac_file_inputs " '$ac_f'" |
26f56c1c | 8932 | done |
cd6ede75 | 8933 | |
26f56c1c UD |
8934 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
8935 | # use $as_me), people would be surprised to read: | |
8936 | # /* config.h. Generated by config.status. */ | |
322e23db | 8937 | configure_input='Generated from '` |
c6cb8783 | 8938 | printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
322e23db | 8939 | `' by configure.' |
26f56c1c UD |
8940 | if test x"$ac_file" != x-; then |
8941 | configure_input="$ac_file. $configure_input" | |
c6cb8783 SP |
8942 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
8943 | printf "%s\n" "$as_me: creating $ac_file" >&6;} | |
26f56c1c | 8944 | fi |
322e23db UD |
8945 | # Neutralize special characters interpreted by sed in replacement strings. |
8946 | case $configure_input in #( | |
8947 | *\&* | *\|* | *\\* ) | |
c6cb8783 | 8948 | ac_sed_conf_input=`printf "%s\n" "$configure_input" | |
322e23db UD |
8949 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
8950 | *) ac_sed_conf_input=$configure_input;; | |
8951 | esac | |
26f56c1c UD |
8952 | |
8953 | case $ac_tag in | |
f318beb8 | 8954 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
4a531bb0 | 8955 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
26f56c1c UD |
8956 | esac |
8957 | ;; | |
8958 | esac | |
8959 | ||
8960 | ac_dir=`$as_dirname -- "$ac_file" || | |
3a12e572 | 8961 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9382fcee RM |
8962 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
8963 | X"$ac_file" : 'X\(//\)$' \| \ | |
26f56c1c | 8964 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
c6cb8783 | 8965 | printf "%s\n" X"$ac_file" | |
26f56c1c UD |
8966 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
8967 | s//\1/ | |
8968 | q | |
8969 | } | |
8970 | /^X\(\/\/\)[^/].*/{ | |
8971 | s//\1/ | |
8972 | q | |
8973 | } | |
8974 | /^X\(\/\/\)$/{ | |
8975 | s//\1/ | |
8976 | q | |
8977 | } | |
8978 | /^X\(\/\).*/{ | |
8979 | s//\1/ | |
8980 | q | |
8981 | } | |
8982 | s/.*/./; q'` | |
b08c89d9 | 8983 | as_dir="$ac_dir"; as_fn_mkdir_p |
3a12e572 UD |
8984 | ac_builddir=. |
8985 | ||
26f56c1c UD |
8986 | case "$ac_dir" in |
8987 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8988 | *) | |
c6cb8783 | 8989 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
26f56c1c | 8990 | # A ".." for each directory in $ac_dir_suffix. |
c6cb8783 | 8991 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
26f56c1c UD |
8992 | case $ac_top_builddir_sub in |
8993 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8994 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
8995 | esac ;; | |
8996 | esac | |
8997 | ac_abs_top_builddir=$ac_pwd | |
8998 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
8999 | # for backward compatibility: | |
9000 | ac_top_builddir=$ac_top_build_prefix | |
3a12e572 UD |
9001 | |
9002 | case $srcdir in | |
26f56c1c | 9003 | .) # We are building in place. |
3a12e572 | 9004 | ac_srcdir=. |
26f56c1c UD |
9005 | ac_top_srcdir=$ac_top_builddir_sub |
9006 | ac_abs_top_srcdir=$ac_pwd ;; | |
9007 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
3a12e572 | 9008 | ac_srcdir=$srcdir$ac_dir_suffix; |
26f56c1c UD |
9009 | ac_top_srcdir=$srcdir |
9010 | ac_abs_top_srcdir=$srcdir ;; | |
9011 | *) # Relative name. | |
9012 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
9013 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
9014 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
3a12e572 | 9015 | esac |
26f56c1c | 9016 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
9382fcee | 9017 | |
cd6ede75 | 9018 | |
26f56c1c UD |
9019 | case $ac_mode in |
9020 | :F) | |
9021 | # | |
9022 | # CONFIG_FILE | |
9023 | # | |
3a12e572 UD |
9024 | |
9025 | case $INSTALL in | |
9026 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
26f56c1c | 9027 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
cd6ede75 | 9028 | esac |
26f56c1c | 9029 | _ACEOF |
cd6ede75 | 9030 | |
322e23db | 9031 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
26f56c1c UD |
9032 | # If the template does not know about datarootdir, expand it. |
9033 | # FIXME: This hack should be removed a few years after 2.60. | |
9034 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
322e23db UD |
9035 | ac_sed_dataroot=' |
9036 | /datarootdir/ { | |
26f56c1c UD |
9037 | p |
9038 | q | |
9039 | } | |
9040 | /@datadir@/p | |
9041 | /@docdir@/p | |
9042 | /@infodir@/p | |
9043 | /@localedir@/p | |
b08c89d9 | 9044 | /@mandir@/p' |
322e23db | 9045 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
26f56c1c UD |
9046 | *datarootdir*) ac_datarootdir_seen=yes;; |
9047 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
c6cb8783 SP |
9048 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
9049 | printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
26f56c1c | 9050 | _ACEOF |
322e23db | 9051 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
26f56c1c UD |
9052 | ac_datarootdir_hack=' |
9053 | s&@datadir@&$datadir&g | |
9054 | s&@docdir@&$docdir&g | |
9055 | s&@infodir@&$infodir&g | |
9056 | s&@localedir@&$localedir&g | |
9057 | s&@mandir@&$mandir&g | |
b08c89d9 | 9058 | s&\\\${datarootdir}&$datarootdir&g' ;; |
26f56c1c | 9059 | esac |
3a12e572 | 9060 | _ACEOF |
26f56c1c UD |
9061 | |
9062 | # Neutralize VPATH when `$srcdir' = `.'. | |
9063 | # Shell code in configure.ac might set extrasub. | |
9064 | # FIXME: do we really want to maintain this feature? | |
322e23db UD |
9065 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
9066 | ac_sed_extra="$ac_vpsub | |
3a12e572 UD |
9067 | $extrasub |
9068 | _ACEOF | |
322e23db | 9069 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
3a12e572 UD |
9070 | :t |
9071 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
322e23db | 9072 | s|@configure_input@|$ac_sed_conf_input|;t t |
26f56c1c | 9073 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
322e23db | 9074 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
26f56c1c UD |
9075 | s&@srcdir@&$ac_srcdir&;t t |
9076 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
9077 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
9078 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
9079 | s&@builddir@&$ac_builddir&;t t | |
9080 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
9081 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
9082 | s&@INSTALL@&$ac_INSTALL&;t t | |
9083 | $ac_datarootdir_hack | |
322e23db | 9084 | " |
f318beb8 UD |
9085 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
9086 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
26f56c1c UD |
9087 | |
9088 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
f318beb8 UD |
9089 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
9090 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
9091 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
c6cb8783 | 9092 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
4a531bb0 | 9093 | which seems to be undefined. Please make sure it is defined" >&5 |
c6cb8783 | 9094 | printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
4a531bb0 | 9095 | which seems to be undefined. Please make sure it is defined" >&2;} |
26f56c1c | 9096 | |
f318beb8 | 9097 | rm -f "$ac_tmp/stdin" |
3a12e572 | 9098 | case $ac_file in |
f318beb8 UD |
9099 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
9100 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
322e23db | 9101 | esac \ |
4a531bb0 | 9102 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
26f56c1c UD |
9103 | ;; |
9104 | :H) | |
9105 | # | |
9106 | # CONFIG_HEADER | |
9107 | # | |
3a12e572 | 9108 | if test x"$ac_file" != x-; then |
322e23db | 9109 | { |
c6cb8783 | 9110 | printf "%s\n" "/* $configure_input */" >&1 \ |
f318beb8 UD |
9111 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
9112 | } >"$ac_tmp/config.h" \ | |
4a531bb0 | 9113 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
f318beb8 | 9114 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
c6cb8783 SP |
9115 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
9116 | printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} | |
3a12e572 | 9117 | else |
322e23db | 9118 | rm -f "$ac_file" |
f318beb8 | 9119 | mv "$ac_tmp/config.h" "$ac_file" \ |
4a531bb0 | 9120 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
f4b07664 RM |
9121 | fi |
9122 | else | |
c6cb8783 | 9123 | printf "%s\n" "/* $configure_input */" >&1 \ |
f318beb8 | 9124 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
4a531bb0 | 9125 | || as_fn_error $? "could not create -" "$LINENO" 5 |
f4b07664 | 9126 | fi |
26f56c1c | 9127 | ;; |
9382fcee | 9128 | |
c6cb8783 SP |
9129 | :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
9130 | printf "%s\n" "$as_me: executing $ac_file commands" >&6;} | |
26f56c1c UD |
9131 | ;; |
9132 | esac | |
3a12e572 UD |
9133 | |
9134 | ||
26f56c1c UD |
9135 | case $ac_file$ac_mode in |
9136 | "default":C) | |
c0fb8a56 UD |
9137 | case $CONFIG_FILES in *config.make*) |
9138 | echo "$config_vars" >> config.make;; | |
9139 | esac | |
3a12e572 | 9140 | test -d bits || mkdir bits ;; |
26f56c1c | 9141 | |
3a12e572 | 9142 | esac |
26f56c1c | 9143 | done # for ac_tag |
3a12e572 | 9144 | |
3a12e572 | 9145 | |
b08c89d9 | 9146 | as_fn_exit 0 |
3a12e572 | 9147 | _ACEOF |
3a12e572 UD |
9148 | ac_clean_files=$ac_clean_files_save |
9149 | ||
322e23db | 9150 | test $ac_write_fail = 0 || |
4a531bb0 | 9151 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
322e23db | 9152 | |
3a12e572 UD |
9153 | |
9154 | # configure is writing to config.log, and then calls config.status. | |
9155 | # config.status does its own redirection, appending to config.log. | |
9156 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
9157 | # by configure, so config.status won't be able to write to it; its | |
9158 | # output is simply discarded. So we exec the FD to /dev/null, | |
9159 | # effectively closing config.log, so it can be properly (re)opened and | |
9160 | # appended to by config.status. When coming back to configure, we | |
9161 | # need to make the FD available again. | |
9162 | if test "$no_create" != yes; then | |
9163 | ac_cs_success=: | |
2abf9ff1 RM |
9164 | ac_config_status_args= |
9165 | test "$silent" = yes && | |
9166 | ac_config_status_args="$ac_config_status_args --quiet" | |
3a12e572 | 9167 | exec 5>/dev/null |
2abf9ff1 | 9168 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
3a12e572 UD |
9169 | exec 5>>config.log |
9170 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
9171 | # would make configure fail if this is the last instruction. | |
4a531bb0 | 9172 | $ac_cs_success || as_fn_exit 1 |
3a12e572 | 9173 | fi |
cd6ede75 | 9174 | |
3a12e572 UD |
9175 | # |
9176 | # CONFIG_SUBDIRS section. | |
9177 | # | |
cd6ede75 UD |
9178 | if test "$no_recursion" != yes; then |
9179 | ||
322e23db UD |
9180 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments |
9181 | # so they do not pile up. | |
cd6ede75 UD |
9182 | ac_sub_configure_args= |
9183 | ac_prev= | |
26f56c1c UD |
9184 | eval "set x $ac_configure_args" |
9185 | shift | |
9186 | for ac_arg | |
9187 | do | |
cd6ede75 UD |
9188 | if test -n "$ac_prev"; then |
9189 | ac_prev= | |
9190 | continue | |
9191 | fi | |
3a12e572 | 9192 | case $ac_arg in |
cd6ede75 UD |
9193 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
9194 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
9195 | ac_prev=cache_file ;; | |
9196 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
3a12e572 UD |
9197 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
9198 | | --c=*) | |
9199 | ;; | |
9200 | --config-cache | -C) | |
cd6ede75 UD |
9201 | ;; |
9202 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
9203 | ac_prev=srcdir ;; | |
9204 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
9205 | ;; | |
3a12e572 UD |
9206 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
9207 | ac_prev=prefix ;; | |
9208 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
9209 | ;; | |
322e23db UD |
9210 | --disable-option-checking) |
9211 | ;; | |
26f56c1c UD |
9212 | *) |
9213 | case $ac_arg in | |
c6cb8783 | 9214 | *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
26f56c1c | 9215 | esac |
b08c89d9 | 9216 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; |
cd6ede75 UD |
9217 | esac |
9218 | done | |
9219 | ||
3a12e572 UD |
9220 | # Always prepend --prefix to ensure using the same prefix |
9221 | # in subdir configurations. | |
26f56c1c UD |
9222 | ac_arg="--prefix=$prefix" |
9223 | case $ac_arg in | |
c6cb8783 | 9224 | *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
26f56c1c UD |
9225 | esac |
9226 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
9227 | ||
9228 | # Pass --silent | |
9229 | if test "$silent" = yes; then | |
9230 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
9231 | fi | |
3a12e572 | 9232 | |
322e23db UD |
9233 | # Always prepend --disable-option-checking to silence warnings, since |
9234 | # different subdirs can have different --enable and --with options. | |
9235 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
9236 | ||
3a12e572 UD |
9237 | ac_popdir=`pwd` |
9238 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
cd6ede75 UD |
9239 | |
9240 | # Do not complain, so a configure script can configure whichever | |
9241 | # parts of a large source tree are present. | |
26f56c1c UD |
9242 | test -d "$srcdir/$ac_dir" || continue |
9243 | ||
9244 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
c6cb8783 SP |
9245 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 |
9246 | printf "%s\n" "$ac_msg" >&6 | |
b08c89d9 | 9247 | as_dir="$ac_dir"; as_fn_mkdir_p |
3a12e572 | 9248 | ac_builddir=. |
cd6ede75 | 9249 | |
26f56c1c UD |
9250 | case "$ac_dir" in |
9251 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
9252 | *) | |
c6cb8783 | 9253 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
26f56c1c | 9254 | # A ".." for each directory in $ac_dir_suffix. |
c6cb8783 | 9255 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
26f56c1c UD |
9256 | case $ac_top_builddir_sub in |
9257 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
9258 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
9259 | esac ;; | |
9260 | esac | |
9261 | ac_abs_top_builddir=$ac_pwd | |
9262 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
9263 | # for backward compatibility: | |
9264 | ac_top_builddir=$ac_top_build_prefix | |
cd6ede75 | 9265 | |
3a12e572 | 9266 | case $srcdir in |
26f56c1c | 9267 | .) # We are building in place. |
3a12e572 | 9268 | ac_srcdir=. |
26f56c1c UD |
9269 | ac_top_srcdir=$ac_top_builddir_sub |
9270 | ac_abs_top_srcdir=$ac_pwd ;; | |
9271 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
3a12e572 | 9272 | ac_srcdir=$srcdir$ac_dir_suffix; |
26f56c1c UD |
9273 | ac_top_srcdir=$srcdir |
9274 | ac_abs_top_srcdir=$srcdir ;; | |
9275 | *) # Relative name. | |
9276 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
9277 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
9278 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
9382fcee | 9279 | esac |
26f56c1c | 9280 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
3a12e572 UD |
9281 | |
9282 | ||
26f56c1c | 9283 | cd "$ac_dir" |
cd6ede75 | 9284 | |
c6cb8783 SP |
9285 | # Check for configure.gnu first; this name is used for a wrapper for |
9286 | # Metaconfig's "Configure" on case-insensitive file systems. | |
26f56c1c UD |
9287 | if test -f "$ac_srcdir/configure.gnu"; then |
9288 | ac_sub_configure=$ac_srcdir/configure.gnu | |
9289 | elif test -f "$ac_srcdir/configure"; then | |
9290 | ac_sub_configure=$ac_srcdir/configure | |
cd6ede75 | 9291 | else |
c6cb8783 SP |
9292 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 |
9293 | printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
cd6ede75 UD |
9294 | ac_sub_configure= |
9295 | fi | |
9296 | ||
9297 | # The recursion is here. | |
9298 | if test -n "$ac_sub_configure"; then | |
cd6ede75 | 9299 | # Make the cache file name correct relative to the subdirectory. |
3a12e572 UD |
9300 | case $cache_file in |
9301 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
26f56c1c UD |
9302 | *) # Relative name. |
9303 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
cd6ede75 | 9304 | esac |
cd6ede75 | 9305 | |
c6cb8783 SP |
9306 | { 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 |
9307 | 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 | 9308 | # The eval makes quoting arguments work. |
26f56c1c UD |
9309 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
9310 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
4a531bb0 | 9311 | as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 |
cd6ede75 UD |
9312 | fi |
9313 | ||
26f56c1c | 9314 | cd "$ac_popdir" |
cd6ede75 UD |
9315 | done |
9316 | fi | |
322e23db | 9317 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
c6cb8783 SP |
9318 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
9319 | printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
322e23db | 9320 | fi |
cd6ede75 | 9321 | |
c6cb8783 | 9322 |