1 | #! /bin/sh |
1 | #! /bin/sh |
2 | |
|
|
3 | # Guess values for system-dependent variables and create Makefiles. |
2 | # Guess values for system-dependent variables and create Makefiles. |
4 | # Generated automatically using autoconf version 2.13 |
3 | # Generated by GNU Autoconf 2.71. |
5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
4 | # |
|
|
5 | # |
|
|
6 | # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, |
|
|
7 | # Inc. |
|
|
8 | # |
6 | # |
9 | # |
7 | # This configure script is free software; the Free Software Foundation |
10 | # This configure script is free software; the Free Software Foundation |
8 | # gives unlimited permission to copy, distribute and modify it. |
11 | # gives unlimited permission to copy, distribute and modify it. |
|
|
12 | ## -------------------- ## |
|
|
13 | ## M4sh Initialization. ## |
|
|
14 | ## -------------------- ## |
9 | |
15 | |
10 | # Defaults: |
16 | # Be more Bourne compatible |
11 | ac_help= |
17 | DUALCASE=1; export DUALCASE # for MKS sh |
|
|
18 | as_nop=: |
|
|
19 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
|
|
20 | then : |
|
|
21 | emulate sh |
|
|
22 | NULLCMD=: |
|
|
23 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
|
|
24 | # is contrary to our usage. Disable this feature. |
|
|
25 | alias -g '${1+"$@"}'='"$@"' |
|
|
26 | setopt NO_GLOB_SUBST |
|
|
27 | else $as_nop |
|
|
28 | case `(set -o) 2>/dev/null` in #( |
|
|
29 | *posix*) : |
|
|
30 | set -o posix ;; #( |
|
|
31 | *) : |
|
|
32 | ;; |
|
|
33 | esac |
|
|
34 | fi |
|
|
35 | |
|
|
36 | |
|
|
37 | |
|
|
38 | # Reset variables that may have inherited troublesome values from |
|
|
39 | # the environment. |
|
|
40 | |
|
|
41 | # IFS needs to be set, to space, tab, and newline, in precisely that order. |
|
|
42 | # (If _AS_PATH_WALK were called with IFS unset, it would have the |
|
|
43 | # side effect of setting IFS to empty, thus disabling word splitting.) |
|
|
44 | # Quoting is to prevent editors from complaining about space-tab. |
|
|
45 | as_nl=' |
|
|
46 | ' |
|
|
47 | export as_nl |
|
|
48 | IFS=" "" $as_nl" |
|
|
49 | |
|
|
50 | PS1='$ ' |
|
|
51 | PS2='> ' |
|
|
52 | PS4='+ ' |
|
|
53 | |
|
|
54 | # Ensure predictable behavior from utilities with locale-dependent output. |
|
|
55 | LC_ALL=C |
|
|
56 | export LC_ALL |
|
|
57 | LANGUAGE=C |
|
|
58 | export LANGUAGE |
|
|
59 | |
|
|
60 | # We cannot yet rely on "unset" to work, but we need these variables |
|
|
61 | # to be unset--not just set to an empty or harmless value--now, to |
|
|
62 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
|
|
63 | # also avoids known problems related to "unset" and subshell syntax |
|
|
64 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
|
|
65 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
|
|
66 | do eval test \${$as_var+y} \ |
|
|
67 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
|
|
68 | done |
|
|
69 | |
|
|
70 | # Ensure that fds 0, 1, and 2 are open. |
|
|
71 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
|
|
72 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
|
|
73 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
|
|
74 | |
|
|
75 | # The user is always right. |
|
|
76 | if ${PATH_SEPARATOR+false} :; then |
|
|
77 | PATH_SEPARATOR=: |
|
|
78 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
|
|
79 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
|
|
80 | PATH_SEPARATOR=';' |
|
|
81 | } |
|
|
82 | fi |
|
|
83 | |
|
|
84 | |
|
|
85 | # Find who we are. Look in the path if we contain no directory separator. |
|
|
86 | as_myself= |
|
|
87 | case $0 in #(( |
|
|
88 | *[\\/]* ) as_myself=$0 ;; |
|
|
89 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
90 | for as_dir in $PATH |
|
|
91 | do |
|
|
92 | IFS=$as_save_IFS |
|
|
93 | case $as_dir in #((( |
|
|
94 | '') as_dir=./ ;; |
|
|
95 | */) ;; |
|
|
96 | *) as_dir=$as_dir/ ;; |
|
|
97 | esac |
|
|
98 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
|
|
99 | done |
|
|
100 | IFS=$as_save_IFS |
|
|
101 | |
|
|
102 | ;; |
|
|
103 | esac |
|
|
104 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
|
|
105 | # in which case we are not to be found in the path. |
|
|
106 | if test "x$as_myself" = x; then |
|
|
107 | as_myself=$0 |
|
|
108 | fi |
|
|
109 | if test ! -f "$as_myself"; then |
|
|
110 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
|
|
111 | exit 1 |
|
|
112 | fi |
|
|
113 | |
|
|
114 | |
|
|
115 | # Use a proper internal environment variable to ensure we don't fall |
|
|
116 | # into an infinite loop, continuously re-executing ourselves. |
|
|
117 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
|
|
118 | _as_can_reexec=no; export _as_can_reexec; |
|
|
119 | # We cannot yet assume a decent shell, so we have to provide a |
|
|
120 | # neutralization value for shells without unset; and this also |
|
|
121 | # works around shells that cannot unset nonexistent variables. |
|
|
122 | # Preserve -v and -x to the replacement shell. |
|
|
123 | BASH_ENV=/dev/null |
|
|
124 | ENV=/dev/null |
|
|
125 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
|
|
126 | case $- in # (((( |
|
|
127 | *v*x* | *x*v* ) as_opts=-vx ;; |
|
|
128 | *v* ) as_opts=-v ;; |
|
|
129 | *x* ) as_opts=-x ;; |
|
|
130 | * ) as_opts= ;; |
|
|
131 | esac |
|
|
132 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
|
|
133 | # Admittedly, this is quite paranoid, since all the known shells bail |
|
|
134 | # out after a failed `exec'. |
|
|
135 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
|
|
136 | exit 255 |
|
|
137 | fi |
|
|
138 | # We don't want this to propagate to other subprocesses. |
|
|
139 | { _as_can_reexec=; unset _as_can_reexec;} |
|
|
140 | if test "x$CONFIG_SHELL" = x; then |
|
|
141 | as_bourne_compatible="as_nop=: |
|
|
142 | if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
|
|
143 | then : |
|
|
144 | emulate sh |
|
|
145 | NULLCMD=: |
|
|
146 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
|
|
147 | # is contrary to our usage. Disable this feature. |
|
|
148 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
|
|
149 | setopt NO_GLOB_SUBST |
|
|
150 | else \$as_nop |
|
|
151 | case \`(set -o) 2>/dev/null\` in #( |
|
|
152 | *posix*) : |
|
|
153 | set -o posix ;; #( |
|
|
154 | *) : |
|
|
155 | ;; |
|
|
156 | esac |
|
|
157 | fi |
|
|
158 | " |
|
|
159 | as_required="as_fn_return () { (exit \$1); } |
|
|
160 | as_fn_success () { as_fn_return 0; } |
|
|
161 | as_fn_failure () { as_fn_return 1; } |
|
|
162 | as_fn_ret_success () { return 0; } |
|
|
163 | as_fn_ret_failure () { return 1; } |
|
|
164 | |
|
|
165 | exitcode=0 |
|
|
166 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
|
|
167 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
|
|
168 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
|
|
169 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
|
|
170 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ) |
|
|
171 | then : |
|
|
172 | |
|
|
173 | else \$as_nop |
|
|
174 | exitcode=1; echo positional parameters were not saved. |
|
|
175 | fi |
|
|
176 | test x\$exitcode = x0 || exit 1 |
|
|
177 | blah=\$(echo \$(echo blah)) |
|
|
178 | test x\"\$blah\" = xblah || exit 1 |
|
|
179 | test -x / || exit 1" |
|
|
180 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
|
|
181 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
|
|
182 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
|
|
183 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" |
|
|
184 | if (eval "$as_required") 2>/dev/null |
|
|
185 | then : |
|
|
186 | as_have_required=yes |
|
|
187 | else $as_nop |
|
|
188 | as_have_required=no |
|
|
189 | fi |
|
|
190 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null |
|
|
191 | then : |
|
|
192 | |
|
|
193 | else $as_nop |
|
|
194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
195 | as_found=false |
|
|
196 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
|
|
197 | do |
|
|
198 | IFS=$as_save_IFS |
|
|
199 | case $as_dir in #((( |
|
|
200 | '') as_dir=./ ;; |
|
|
201 | */) ;; |
|
|
202 | *) as_dir=$as_dir/ ;; |
|
|
203 | esac |
|
|
204 | as_found=: |
|
|
205 | case $as_dir in #( |
|
|
206 | /*) |
|
|
207 | for as_base in sh bash ksh sh5; do |
|
|
208 | # Try only shells that exist, to save several forks. |
|
|
209 | as_shell=$as_dir$as_base |
|
|
210 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
|
|
211 | as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
|
|
212 | then : |
|
|
213 | CONFIG_SHELL=$as_shell as_have_required=yes |
|
|
214 | if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null |
|
|
215 | then : |
|
|
216 | break 2 |
|
|
217 | fi |
|
|
218 | fi |
|
|
219 | done;; |
|
|
220 | esac |
|
|
221 | as_found=false |
|
|
222 | done |
|
|
223 | IFS=$as_save_IFS |
|
|
224 | if $as_found |
|
|
225 | then : |
|
|
226 | |
|
|
227 | else $as_nop |
|
|
228 | if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
|
|
229 | as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
|
|
230 | then : |
|
|
231 | CONFIG_SHELL=$SHELL as_have_required=yes |
|
|
232 | fi |
|
|
233 | fi |
|
|
234 | |
|
|
235 | |
|
|
236 | if test "x$CONFIG_SHELL" != x |
|
|
237 | then : |
|
|
238 | export CONFIG_SHELL |
|
|
239 | # We cannot yet assume a decent shell, so we have to provide a |
|
|
240 | # neutralization value for shells without unset; and this also |
|
|
241 | # works around shells that cannot unset nonexistent variables. |
|
|
242 | # Preserve -v and -x to the replacement shell. |
|
|
243 | BASH_ENV=/dev/null |
|
|
244 | ENV=/dev/null |
|
|
245 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
|
|
246 | case $- in # (((( |
|
|
247 | *v*x* | *x*v* ) as_opts=-vx ;; |
|
|
248 | *v* ) as_opts=-v ;; |
|
|
249 | *x* ) as_opts=-x ;; |
|
|
250 | * ) as_opts= ;; |
|
|
251 | esac |
|
|
252 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
|
|
253 | # Admittedly, this is quite paranoid, since all the known shells bail |
|
|
254 | # out after a failed `exec'. |
|
|
255 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
|
|
256 | exit 255 |
|
|
257 | fi |
|
|
258 | |
|
|
259 | if test x$as_have_required = xno |
|
|
260 | then : |
|
|
261 | printf "%s\n" "$0: This script requires a shell more modern than all" |
|
|
262 | printf "%s\n" "$0: the shells that I found on your system." |
|
|
263 | if test ${ZSH_VERSION+y} ; then |
|
|
264 | printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
|
|
265 | printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." |
|
|
266 | else |
|
|
267 | printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system, |
|
|
268 | $0: including any error possibly output before this |
|
|
269 | $0: message. Then install a modern shell, or manually run |
|
|
270 | $0: the script under such a shell if you do have one." |
|
|
271 | fi |
|
|
272 | exit 1 |
|
|
273 | fi |
|
|
274 | fi |
|
|
275 | fi |
|
|
276 | SHELL=${CONFIG_SHELL-/bin/sh} |
|
|
277 | export SHELL |
|
|
278 | # Unset more variables known to interfere with behavior of common tools. |
|
|
279 | CLICOLOR_FORCE= GREP_OPTIONS= |
|
|
280 | unset CLICOLOR_FORCE GREP_OPTIONS |
|
|
281 | |
|
|
282 | ## --------------------- ## |
|
|
283 | ## M4sh Shell Functions. ## |
|
|
284 | ## --------------------- ## |
|
|
285 | # as_fn_unset VAR |
|
|
286 | # --------------- |
|
|
287 | # Portably unset VAR. |
|
|
288 | as_fn_unset () |
|
|
289 | { |
|
|
290 | { eval $1=; unset $1;} |
|
|
291 | } |
|
|
292 | as_unset=as_fn_unset |
|
|
293 | |
|
|
294 | |
|
|
295 | # as_fn_set_status STATUS |
|
|
296 | # ----------------------- |
|
|
297 | # Set $? to STATUS, without forking. |
|
|
298 | as_fn_set_status () |
|
|
299 | { |
|
|
300 | return $1 |
|
|
301 | } # as_fn_set_status |
|
|
302 | |
|
|
303 | # as_fn_exit STATUS |
|
|
304 | # ----------------- |
|
|
305 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
|
|
306 | as_fn_exit () |
|
|
307 | { |
|
|
308 | set +e |
|
|
309 | as_fn_set_status $1 |
|
|
310 | exit $1 |
|
|
311 | } # as_fn_exit |
|
|
312 | # as_fn_nop |
|
|
313 | # --------- |
|
|
314 | # Do nothing but, unlike ":", preserve the value of $?. |
|
|
315 | as_fn_nop () |
|
|
316 | { |
|
|
317 | return $? |
|
|
318 | } |
|
|
319 | as_nop=as_fn_nop |
|
|
320 | |
|
|
321 | # as_fn_mkdir_p |
|
|
322 | # ------------- |
|
|
323 | # Create "$as_dir" as a directory, including parents if necessary. |
|
|
324 | as_fn_mkdir_p () |
|
|
325 | { |
|
|
326 | |
|
|
327 | case $as_dir in #( |
|
|
328 | -*) as_dir=./$as_dir;; |
|
|
329 | esac |
|
|
330 | test -d "$as_dir" || eval $as_mkdir_p || { |
|
|
331 | as_dirs= |
|
|
332 | while :; do |
|
|
333 | case $as_dir in #( |
|
|
334 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
|
|
335 | *) as_qdir=$as_dir;; |
|
|
336 | esac |
|
|
337 | as_dirs="'$as_qdir' $as_dirs" |
|
|
338 | as_dir=`$as_dirname -- "$as_dir" || |
|
|
339 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
|
340 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
|
|
341 | X"$as_dir" : 'X\(//\)$' \| \ |
|
|
342 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
|
|
343 | printf "%s\n" X"$as_dir" | |
|
|
344 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
|
345 | s//\1/ |
|
|
346 | q |
|
|
347 | } |
|
|
348 | /^X\(\/\/\)[^/].*/{ |
|
|
349 | s//\1/ |
|
|
350 | q |
|
|
351 | } |
|
|
352 | /^X\(\/\/\)$/{ |
|
|
353 | s//\1/ |
|
|
354 | q |
|
|
355 | } |
|
|
356 | /^X\(\/\).*/{ |
|
|
357 | s//\1/ |
|
|
358 | q |
|
|
359 | } |
|
|
360 | s/.*/./; q'` |
|
|
361 | test -d "$as_dir" && break |
|
|
362 | done |
|
|
363 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
|
|
364 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
|
|
365 | |
|
|
366 | |
|
|
367 | } # as_fn_mkdir_p |
|
|
368 | |
|
|
369 | # as_fn_executable_p FILE |
|
|
370 | # ----------------------- |
|
|
371 | # Test if FILE is an executable regular file. |
|
|
372 | as_fn_executable_p () |
|
|
373 | { |
|
|
374 | test -f "$1" && test -x "$1" |
|
|
375 | } # as_fn_executable_p |
|
|
376 | # as_fn_append VAR VALUE |
|
|
377 | # ---------------------- |
|
|
378 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
|
|
379 | # advantage of any shell optimizations that allow amortized linear growth over |
|
|
380 | # repeated appends, instead of the typical quadratic growth present in naive |
|
|
381 | # implementations. |
|
|
382 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
|
|
383 | then : |
|
|
384 | eval 'as_fn_append () |
|
|
385 | { |
|
|
386 | eval $1+=\$2 |
|
|
387 | }' |
|
|
388 | else $as_nop |
|
|
389 | as_fn_append () |
|
|
390 | { |
|
|
391 | eval $1=\$$1\$2 |
|
|
392 | } |
|
|
393 | fi # as_fn_append |
|
|
394 | |
|
|
395 | # as_fn_arith ARG... |
|
|
396 | # ------------------ |
|
|
397 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
|
|
398 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
|
|
399 | # must be portable across $(()) and expr. |
|
|
400 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
|
|
401 | then : |
|
|
402 | eval 'as_fn_arith () |
|
|
403 | { |
|
|
404 | as_val=$(( $* )) |
|
|
405 | }' |
|
|
406 | else $as_nop |
|
|
407 | as_fn_arith () |
|
|
408 | { |
|
|
409 | as_val=`expr "$@" || test $? -eq 1` |
|
|
410 | } |
|
|
411 | fi # as_fn_arith |
|
|
412 | |
|
|
413 | # as_fn_nop |
|
|
414 | # --------- |
|
|
415 | # Do nothing but, unlike ":", preserve the value of $?. |
|
|
416 | as_fn_nop () |
|
|
417 | { |
|
|
418 | return $? |
|
|
419 | } |
|
|
420 | as_nop=as_fn_nop |
|
|
421 | |
|
|
422 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
|
|
423 | # ---------------------------------------- |
|
|
424 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
|
|
425 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
|
|
426 | # script with STATUS, using 1 if that was 0. |
|
|
427 | as_fn_error () |
|
|
428 | { |
|
|
429 | as_status=$1; test $as_status -eq 0 && as_status=1 |
|
|
430 | if test "$4"; then |
|
|
431 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
432 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
|
|
433 | fi |
|
|
434 | printf "%s\n" "$as_me: error: $2" >&2 |
|
|
435 | as_fn_exit $as_status |
|
|
436 | } # as_fn_error |
|
|
437 | |
|
|
438 | if expr a : '\(a\)' >/dev/null 2>&1 && |
|
|
439 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
|
|
440 | as_expr=expr |
|
|
441 | else |
|
|
442 | as_expr=false |
|
|
443 | fi |
|
|
444 | |
|
|
445 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
|
|
446 | as_basename=basename |
|
|
447 | else |
|
|
448 | as_basename=false |
|
|
449 | fi |
|
|
450 | |
|
|
451 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
|
|
452 | as_dirname=dirname |
|
|
453 | else |
|
|
454 | as_dirname=false |
|
|
455 | fi |
|
|
456 | |
|
|
457 | as_me=`$as_basename -- "$0" || |
|
|
458 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
|
|
459 | X"$0" : 'X\(//\)$' \| \ |
|
|
460 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
|
|
461 | printf "%s\n" X/"$0" | |
|
|
462 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
|
|
463 | s//\1/ |
|
|
464 | q |
|
|
465 | } |
|
|
466 | /^X\/\(\/\/\)$/{ |
|
|
467 | s//\1/ |
|
|
468 | q |
|
|
469 | } |
|
|
470 | /^X\/\(\/\).*/{ |
|
|
471 | s//\1/ |
|
|
472 | q |
|
|
473 | } |
|
|
474 | s/.*/./; q'` |
|
|
475 | |
|
|
476 | # Avoid depending upon Character Ranges. |
|
|
477 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|
|
478 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
|
479 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|
|
480 | as_cr_digits='0123456789' |
|
|
481 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
|
|
482 | |
|
|
483 | |
|
|
484 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
|
|
485 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
|
|
486 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
|
|
487 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
|
|
488 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
|
|
489 | sed -n ' |
|
|
490 | p |
|
|
491 | /[$]LINENO/= |
|
|
492 | ' <$as_myself | |
|
|
493 | sed ' |
|
|
494 | s/[$]LINENO.*/&-/ |
|
|
495 | t lineno |
|
|
496 | b |
|
|
497 | :lineno |
|
|
498 | N |
|
|
499 | :loop |
|
|
500 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
|
|
501 | t loop |
|
|
502 | s/-\n.*// |
|
|
503 | ' >$as_me.lineno && |
|
|
504 | chmod +x "$as_me.lineno" || |
|
|
505 | { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
|
|
506 | |
|
|
507 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
|
|
508 | # already done that, so ensure we don't try to do so again and fall |
|
|
509 | # in an infinite loop. This has already happened in practice. |
|
|
510 | _as_can_reexec=no; export _as_can_reexec |
|
|
511 | # Don't try to exec as it changes $[0], causing all sort of problems |
|
|
512 | # (the dirname of $[0] is not the place where we might find the |
|
|
513 | # original and so on. Autoconf is especially sensitive to this). |
|
|
514 | . "./$as_me.lineno" |
|
|
515 | # Exit status is that of the last command. |
|
|
516 | exit |
|
|
517 | } |
|
|
518 | |
|
|
519 | |
|
|
520 | # Determine whether it's possible to make 'echo' print without a newline. |
|
|
521 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
|
|
522 | # for compatibility with existing Makefiles. |
|
|
523 | ECHO_C= ECHO_N= ECHO_T= |
|
|
524 | case `echo -n x` in #((((( |
|
|
525 | -n*) |
|
|
526 | case `echo 'xy\c'` in |
|
|
527 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
|
|
528 | xy) ECHO_C='\c';; |
|
|
529 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
|
|
530 | ECHO_T=' ';; |
|
|
531 | esac;; |
|
|
532 | *) |
|
|
533 | ECHO_N='-n';; |
|
|
534 | esac |
|
|
535 | |
|
|
536 | # For backward compatibility with old third-party macros, we provide |
|
|
537 | # the shell variables $as_echo and $as_echo_n. New code should use |
|
|
538 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
|
|
539 | as_echo='printf %s\n' |
|
|
540 | as_echo_n='printf %s' |
|
|
541 | |
|
|
542 | |
|
|
543 | rm -f conf$$ conf$$.exe conf$$.file |
|
|
544 | if test -d conf$$.dir; then |
|
|
545 | rm -f conf$$.dir/conf$$.file |
|
|
546 | else |
|
|
547 | rm -f conf$$.dir |
|
|
548 | mkdir conf$$.dir 2>/dev/null |
|
|
549 | fi |
|
|
550 | if (echo >conf$$.file) 2>/dev/null; then |
|
|
551 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
|
|
552 | as_ln_s='ln -s' |
|
|
553 | # ... but there are two gotchas: |
|
|
554 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
|
|
555 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
|
|
556 | # In both cases, we have to default to `cp -pR'. |
|
|
557 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
|
|
558 | as_ln_s='cp -pR' |
|
|
559 | elif ln conf$$.file conf$$ 2>/dev/null; then |
|
|
560 | as_ln_s=ln |
|
|
561 | else |
|
|
562 | as_ln_s='cp -pR' |
|
|
563 | fi |
|
|
564 | else |
|
|
565 | as_ln_s='cp -pR' |
|
|
566 | fi |
|
|
567 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
|
|
568 | rmdir conf$$.dir 2>/dev/null |
|
|
569 | |
|
|
570 | if mkdir -p . 2>/dev/null; then |
|
|
571 | as_mkdir_p='mkdir -p "$as_dir"' |
|
|
572 | else |
|
|
573 | test -d ./-p && rmdir ./-p |
|
|
574 | as_mkdir_p=false |
|
|
575 | fi |
|
|
576 | |
|
|
577 | as_test_x='test -x' |
|
|
578 | as_executable_p=as_fn_executable_p |
|
|
579 | |
|
|
580 | # Sed expression to map a string onto a valid CPP name. |
|
|
581 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
|
|
582 | |
|
|
583 | # Sed expression to map a string onto a valid variable name. |
|
|
584 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
|
|
585 | |
|
|
586 | |
|
|
587 | test -n "$DJDIR" || exec 7<&0 </dev/null |
|
|
588 | exec 6>&1 |
|
|
589 | |
|
|
590 | # Name of the host. |
|
|
591 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
|
|
592 | # so uname gets run too. |
|
|
593 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
|
|
594 | |
|
|
595 | # |
|
|
596 | # Initializations. |
|
|
597 | # |
12 | ac_default_prefix=/usr/local |
598 | ac_default_prefix=/usr/local |
13 | # Any additions from configure.in: |
599 | ac_clean_files= |
|
|
600 | ac_config_libobj_dir=. |
|
|
601 | LIBOBJS= |
|
|
602 | cross_compiling=no |
|
|
603 | subdirs= |
|
|
604 | MFLAGS= |
|
|
605 | MAKEFLAGS= |
|
|
606 | |
|
|
607 | # Identity of this package. |
|
|
608 | PACKAGE_NAME='' |
|
|
609 | PACKAGE_TARNAME='' |
|
|
610 | PACKAGE_VERSION='' |
|
|
611 | PACKAGE_STRING='' |
|
|
612 | PACKAGE_BUGREPORT='' |
|
|
613 | PACKAGE_URL='' |
|
|
614 | |
|
|
615 | ac_unique_file="uulib.c" |
|
|
616 | # Factoring default headers for most tests. |
|
|
617 | ac_includes_default="\ |
|
|
618 | #include <stddef.h> |
|
|
619 | #ifdef HAVE_STDIO_H |
|
|
620 | # include <stdio.h> |
|
|
621 | #endif |
|
|
622 | #ifdef HAVE_STDLIB_H |
|
|
623 | # include <stdlib.h> |
|
|
624 | #endif |
|
|
625 | #ifdef HAVE_STRING_H |
|
|
626 | # include <string.h> |
|
|
627 | #endif |
|
|
628 | #ifdef HAVE_INTTYPES_H |
|
|
629 | # include <inttypes.h> |
|
|
630 | #endif |
|
|
631 | #ifdef HAVE_STDINT_H |
|
|
632 | # include <stdint.h> |
|
|
633 | #endif |
|
|
634 | #ifdef HAVE_STRINGS_H |
|
|
635 | # include <strings.h> |
|
|
636 | #endif |
|
|
637 | #ifdef HAVE_SYS_TYPES_H |
|
|
638 | # include <sys/types.h> |
|
|
639 | #endif |
|
|
640 | #ifdef HAVE_SYS_STAT_H |
|
|
641 | # include <sys/stat.h> |
|
|
642 | #endif |
|
|
643 | #ifdef HAVE_UNISTD_H |
|
|
644 | # include <unistd.h> |
|
|
645 | #endif" |
|
|
646 | |
|
|
647 | ac_header_c_list= |
|
|
648 | ac_subst_vars='LTLIBOBJS |
|
|
649 | LIBOBJS |
|
|
650 | PATCH |
|
|
651 | VERSION |
|
|
652 | RANLIB |
|
|
653 | SET_MAKE |
|
|
654 | CPP |
|
|
655 | OBJEXT |
|
|
656 | EXEEXT |
|
|
657 | ac_ct_CC |
|
|
658 | CPPFLAGS |
|
|
659 | LDFLAGS |
|
|
660 | CFLAGS |
|
|
661 | CC |
|
|
662 | target_alias |
|
|
663 | host_alias |
|
|
664 | build_alias |
|
|
665 | LIBS |
|
|
666 | ECHO_T |
|
|
667 | ECHO_N |
|
|
668 | ECHO_C |
|
|
669 | DEFS |
|
|
670 | mandir |
|
|
671 | localedir |
|
|
672 | libdir |
|
|
673 | psdir |
|
|
674 | pdfdir |
|
|
675 | dvidir |
|
|
676 | htmldir |
|
|
677 | infodir |
|
|
678 | docdir |
|
|
679 | oldincludedir |
|
|
680 | includedir |
|
|
681 | runstatedir |
|
|
682 | localstatedir |
|
|
683 | sharedstatedir |
|
|
684 | sysconfdir |
|
|
685 | datadir |
|
|
686 | datarootdir |
|
|
687 | libexecdir |
|
|
688 | sbindir |
|
|
689 | bindir |
|
|
690 | program_transform_name |
|
|
691 | prefix |
|
|
692 | exec_prefix |
|
|
693 | PACKAGE_URL |
|
|
694 | PACKAGE_BUGREPORT |
|
|
695 | PACKAGE_STRING |
|
|
696 | PACKAGE_VERSION |
|
|
697 | PACKAGE_TARNAME |
|
|
698 | PACKAGE_NAME |
|
|
699 | PATH_SEPARATOR |
|
|
700 | SHELL' |
|
|
701 | ac_subst_files='' |
|
|
702 | ac_user_opts=' |
|
|
703 | enable_option_checking |
|
|
704 | with_cc |
|
|
705 | with_cflags |
|
|
706 | ' |
|
|
707 | ac_precious_vars='build_alias |
|
|
708 | host_alias |
|
|
709 | target_alias |
|
|
710 | CC |
|
|
711 | CFLAGS |
|
|
712 | LDFLAGS |
|
|
713 | LIBS |
|
|
714 | CPPFLAGS |
|
|
715 | CPP' |
|
|
716 | |
14 | |
717 | |
15 | # Initialize some variables set by options. |
718 | # Initialize some variables set by options. |
|
|
719 | ac_init_help= |
|
|
720 | ac_init_version=false |
|
|
721 | ac_unrecognized_opts= |
|
|
722 | ac_unrecognized_sep= |
16 | # The variables have the same names as the options, with |
723 | # The variables have the same names as the options, with |
17 | # dashes changed to underlines. |
724 | # dashes changed to underlines. |
18 | build=NONE |
725 | cache_file=/dev/null |
19 | cache_file=./config.cache |
|
|
20 | exec_prefix=NONE |
726 | exec_prefix=NONE |
21 | host=NONE |
|
|
22 | no_create= |
727 | no_create= |
23 | nonopt=NONE |
|
|
24 | no_recursion= |
728 | no_recursion= |
25 | prefix=NONE |
729 | prefix=NONE |
26 | program_prefix=NONE |
730 | program_prefix=NONE |
27 | program_suffix=NONE |
731 | program_suffix=NONE |
28 | program_transform_name=s,x,x, |
732 | program_transform_name=s,x,x, |
29 | silent= |
733 | silent= |
30 | site= |
734 | site= |
31 | srcdir= |
735 | srcdir= |
32 | target=NONE |
|
|
33 | verbose= |
736 | verbose= |
34 | x_includes=NONE |
737 | x_includes=NONE |
35 | x_libraries=NONE |
738 | x_libraries=NONE |
|
|
739 | |
|
|
740 | # Installation directory options. |
|
|
741 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
|
|
742 | # and all the variables that are supposed to be based on exec_prefix |
|
|
743 | # by default will actually change. |
|
|
744 | # Use braces instead of parens because sh, perl, etc. also accept them. |
|
|
745 | # (The list follows the same order as the GNU Coding Standards.) |
36 | bindir='${exec_prefix}/bin' |
746 | bindir='${exec_prefix}/bin' |
37 | sbindir='${exec_prefix}/sbin' |
747 | sbindir='${exec_prefix}/sbin' |
38 | libexecdir='${exec_prefix}/libexec' |
748 | libexecdir='${exec_prefix}/libexec' |
39 | datadir='${prefix}/share' |
749 | datarootdir='${prefix}/share' |
|
|
750 | datadir='${datarootdir}' |
40 | sysconfdir='${prefix}/etc' |
751 | sysconfdir='${prefix}/etc' |
41 | sharedstatedir='${prefix}/com' |
752 | sharedstatedir='${prefix}/com' |
42 | localstatedir='${prefix}/var' |
753 | localstatedir='${prefix}/var' |
43 | libdir='${exec_prefix}/lib' |
754 | runstatedir='${localstatedir}/run' |
44 | includedir='${prefix}/include' |
755 | includedir='${prefix}/include' |
45 | oldincludedir='/usr/include' |
756 | oldincludedir='/usr/include' |
|
|
757 | docdir='${datarootdir}/doc/${PACKAGE}' |
46 | infodir='${prefix}/info' |
758 | infodir='${datarootdir}/info' |
47 | mandir='${prefix}/man' |
759 | htmldir='${docdir}' |
48 | |
760 | dvidir='${docdir}' |
49 | # Initialize some other variables. |
761 | pdfdir='${docdir}' |
50 | subdirs= |
762 | psdir='${docdir}' |
51 | MFLAGS= MAKEFLAGS= |
763 | libdir='${exec_prefix}/lib' |
52 | SHELL=${CONFIG_SHELL-/bin/sh} |
764 | localedir='${datarootdir}/locale' |
53 | # Maximum number of lines to put in a shell here document. |
765 | mandir='${datarootdir}/man' |
54 | ac_max_here_lines=12 |
|
|
55 | |
766 | |
56 | ac_prev= |
767 | ac_prev= |
|
|
768 | ac_dashdash= |
57 | for ac_option |
769 | for ac_option |
58 | do |
770 | do |
59 | |
|
|
60 | # If the previous option needs an argument, assign it. |
771 | # If the previous option needs an argument, assign it. |
61 | if test -n "$ac_prev"; then |
772 | if test -n "$ac_prev"; then |
62 | eval "$ac_prev=\$ac_option" |
773 | eval $ac_prev=\$ac_option |
63 | ac_prev= |
774 | ac_prev= |
64 | continue |
775 | continue |
65 | fi |
776 | fi |
66 | |
777 | |
67 | case "$ac_option" in |
778 | case $ac_option in |
68 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
779 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
69 | *) ac_optarg= ;; |
780 | *=) ac_optarg= ;; |
|
|
781 | *) ac_optarg=yes ;; |
70 | esac |
782 | esac |
71 | |
783 | |
72 | # Accept the important Cygnus configure options, so we can diagnose typos. |
784 | case $ac_dashdash$ac_option in |
73 | |
785 | --) |
74 | case "$ac_option" in |
786 | ac_dashdash=yes ;; |
75 | |
787 | |
76 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
788 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
77 | ac_prev=bindir ;; |
789 | ac_prev=bindir ;; |
78 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
790 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
79 | bindir="$ac_optarg" ;; |
791 | bindir=$ac_optarg ;; |
80 | |
792 | |
81 | -build | --build | --buil | --bui | --bu) |
793 | -build | --build | --buil | --bui | --bu) |
82 | ac_prev=build ;; |
794 | ac_prev=build_alias ;; |
83 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
795 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
84 | build="$ac_optarg" ;; |
796 | build_alias=$ac_optarg ;; |
85 | |
797 | |
86 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
798 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
87 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
799 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
88 | ac_prev=cache_file ;; |
800 | ac_prev=cache_file ;; |
89 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
801 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
90 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
802 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
91 | cache_file="$ac_optarg" ;; |
803 | cache_file=$ac_optarg ;; |
92 | |
804 | |
|
|
805 | --config-cache | -C) |
|
|
806 | cache_file=config.cache ;; |
|
|
807 | |
93 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
808 | -datadir | --datadir | --datadi | --datad) |
94 | ac_prev=datadir ;; |
809 | ac_prev=datadir ;; |
95 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
810 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
96 | | --da=*) |
|
|
97 | datadir="$ac_optarg" ;; |
811 | datadir=$ac_optarg ;; |
|
|
812 | |
|
|
813 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
|
|
814 | | --dataroo | --dataro | --datar) |
|
|
815 | ac_prev=datarootdir ;; |
|
|
816 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
|
|
817 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
|
|
818 | datarootdir=$ac_optarg ;; |
98 | |
819 | |
99 | -disable-* | --disable-*) |
820 | -disable-* | --disable-*) |
100 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
821 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
101 | # Reject names that are not valid shell variable names. |
822 | # Reject names that are not valid shell variable names. |
102 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
823 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
103 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
824 | as_fn_error $? "invalid feature name: \`$ac_useropt'" |
104 | fi |
825 | ac_useropt_orig=$ac_useropt |
105 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
826 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
|
|
827 | case $ac_user_opts in |
|
|
828 | *" |
|
|
829 | "enable_$ac_useropt" |
|
|
830 | "*) ;; |
|
|
831 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
|
|
832 | ac_unrecognized_sep=', ';; |
|
|
833 | esac |
106 | eval "enable_${ac_feature}=no" ;; |
834 | eval enable_$ac_useropt=no ;; |
|
|
835 | |
|
|
836 | -docdir | --docdir | --docdi | --doc | --do) |
|
|
837 | ac_prev=docdir ;; |
|
|
838 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
|
|
839 | docdir=$ac_optarg ;; |
|
|
840 | |
|
|
841 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
|
|
842 | ac_prev=dvidir ;; |
|
|
843 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
|
|
844 | dvidir=$ac_optarg ;; |
107 | |
845 | |
108 | -enable-* | --enable-*) |
846 | -enable-* | --enable-*) |
109 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
847 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
110 | # Reject names that are not valid shell variable names. |
848 | # Reject names that are not valid shell variable names. |
111 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
849 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
112 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
850 | as_fn_error $? "invalid feature name: \`$ac_useropt'" |
113 | fi |
851 | ac_useropt_orig=$ac_useropt |
114 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
852 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
115 | case "$ac_option" in |
853 | case $ac_user_opts in |
116 | *=*) ;; |
854 | *" |
117 | *) ac_optarg=yes ;; |
855 | "enable_$ac_useropt" |
|
|
856 | "*) ;; |
|
|
857 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
|
|
858 | ac_unrecognized_sep=', ';; |
118 | esac |
859 | esac |
119 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
860 | eval enable_$ac_useropt=\$ac_optarg ;; |
120 | |
861 | |
121 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
862 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
122 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
863 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
123 | | --exec | --exe | --ex) |
864 | | --exec | --exe | --ex) |
124 | ac_prev=exec_prefix ;; |
865 | ac_prev=exec_prefix ;; |
125 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
866 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
126 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
867 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
127 | | --exec=* | --exe=* | --ex=*) |
868 | | --exec=* | --exe=* | --ex=*) |
128 | exec_prefix="$ac_optarg" ;; |
869 | exec_prefix=$ac_optarg ;; |
129 | |
870 | |
130 | -gas | --gas | --ga | --g) |
871 | -gas | --gas | --ga | --g) |
131 | # Obsolete; use --with-gas. |
872 | # Obsolete; use --with-gas. |
132 | with_gas=yes ;; |
873 | with_gas=yes ;; |
133 | |
874 | |
134 | -help | --help | --hel | --he) |
875 | -help | --help | --hel | --he | -h) |
135 | # Omit some internal or obsolete options to make the list less imposing. |
876 | ac_init_help=long ;; |
136 | # This message is too long to be a string in the A/UX 3.1 sh. |
877 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
137 | cat << EOF |
878 | ac_init_help=recursive ;; |
138 | Usage: configure [options] [host] |
879 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
139 | Options: [defaults in brackets after descriptions] |
880 | ac_init_help=short ;; |
140 | Configuration: |
|
|
141 | --cache-file=FILE cache test results in FILE |
|
|
142 | --help print this message |
|
|
143 | --no-create do not create output files |
|
|
144 | --quiet, --silent do not print \`checking...' messages |
|
|
145 | --version print the version of autoconf that created configure |
|
|
146 | Directory and file names: |
|
|
147 | --prefix=PREFIX install architecture-independent files in PREFIX |
|
|
148 | [$ac_default_prefix] |
|
|
149 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
|
|
150 | [same as prefix] |
|
|
151 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
|
|
152 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
|
|
153 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
|
|
154 | --datadir=DIR read-only architecture-independent data in DIR |
|
|
155 | [PREFIX/share] |
|
|
156 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
|
|
157 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
|
|
158 | [PREFIX/com] |
|
|
159 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
|
|
160 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
|
|
161 | --includedir=DIR C header files in DIR [PREFIX/include] |
|
|
162 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
|
|
163 | --infodir=DIR info documentation in DIR [PREFIX/info] |
|
|
164 | --mandir=DIR man documentation in DIR [PREFIX/man] |
|
|
165 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
|
|
166 | --program-prefix=PREFIX prepend PREFIX to installed program names |
|
|
167 | --program-suffix=SUFFIX append SUFFIX to installed program names |
|
|
168 | --program-transform-name=PROGRAM |
|
|
169 | run sed PROGRAM on installed program names |
|
|
170 | EOF |
|
|
171 | cat << EOF |
|
|
172 | Host type: |
|
|
173 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
|
|
174 | --host=HOST configure for HOST [guessed] |
|
|
175 | --target=TARGET configure for TARGET [TARGET=HOST] |
|
|
176 | Features and packages: |
|
|
177 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
|
|
178 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
|
|
179 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
|
|
180 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
|
|
181 | --x-includes=DIR X include files are in DIR |
|
|
182 | --x-libraries=DIR X library files are in DIR |
|
|
183 | EOF |
|
|
184 | if test -n "$ac_help"; then |
|
|
185 | echo "--enable and --with options recognized:$ac_help" |
|
|
186 | fi |
|
|
187 | exit 0 ;; |
|
|
188 | |
881 | |
189 | -host | --host | --hos | --ho) |
882 | -host | --host | --hos | --ho) |
190 | ac_prev=host ;; |
883 | ac_prev=host_alias ;; |
191 | -host=* | --host=* | --hos=* | --ho=*) |
884 | -host=* | --host=* | --hos=* | --ho=*) |
192 | host="$ac_optarg" ;; |
885 | host_alias=$ac_optarg ;; |
|
|
886 | |
|
|
887 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
|
|
888 | ac_prev=htmldir ;; |
|
|
889 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
|
|
890 | | --ht=*) |
|
|
891 | htmldir=$ac_optarg ;; |
193 | |
892 | |
194 | -includedir | --includedir | --includedi | --included | --include \ |
893 | -includedir | --includedir | --includedi | --included | --include \ |
195 | | --includ | --inclu | --incl | --inc) |
894 | | --includ | --inclu | --incl | --inc) |
196 | ac_prev=includedir ;; |
895 | ac_prev=includedir ;; |
197 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
896 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
198 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
897 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
199 | includedir="$ac_optarg" ;; |
898 | includedir=$ac_optarg ;; |
200 | |
899 | |
201 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
900 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
202 | ac_prev=infodir ;; |
901 | ac_prev=infodir ;; |
203 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
902 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
204 | infodir="$ac_optarg" ;; |
903 | infodir=$ac_optarg ;; |
205 | |
904 | |
206 | -libdir | --libdir | --libdi | --libd) |
905 | -libdir | --libdir | --libdi | --libd) |
207 | ac_prev=libdir ;; |
906 | ac_prev=libdir ;; |
208 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
907 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
209 | libdir="$ac_optarg" ;; |
908 | libdir=$ac_optarg ;; |
210 | |
909 | |
211 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
910 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
212 | | --libexe | --libex | --libe) |
911 | | --libexe | --libex | --libe) |
213 | ac_prev=libexecdir ;; |
912 | ac_prev=libexecdir ;; |
214 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
913 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
215 | | --libexe=* | --libex=* | --libe=*) |
914 | | --libexe=* | --libex=* | --libe=*) |
216 | libexecdir="$ac_optarg" ;; |
915 | libexecdir=$ac_optarg ;; |
|
|
916 | |
|
|
917 | -localedir | --localedir | --localedi | --localed | --locale) |
|
|
918 | ac_prev=localedir ;; |
|
|
919 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
|
|
920 | localedir=$ac_optarg ;; |
217 | |
921 | |
218 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
922 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
219 | | --localstate | --localstat | --localsta | --localst \ |
923 | | --localstate | --localstat | --localsta | --localst | --locals) |
220 | | --locals | --local | --loca | --loc | --lo) |
|
|
221 | ac_prev=localstatedir ;; |
924 | ac_prev=localstatedir ;; |
222 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
925 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
223 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
926 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
224 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
|
|
225 | localstatedir="$ac_optarg" ;; |
927 | localstatedir=$ac_optarg ;; |
226 | |
928 | |
227 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
929 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
228 | ac_prev=mandir ;; |
930 | ac_prev=mandir ;; |
229 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
931 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
230 | mandir="$ac_optarg" ;; |
932 | mandir=$ac_optarg ;; |
231 | |
933 | |
232 | -nfp | --nfp | --nf) |
934 | -nfp | --nfp | --nf) |
233 | # Obsolete; use --without-fp. |
935 | # Obsolete; use --without-fp. |
234 | with_fp=no ;; |
936 | with_fp=no ;; |
235 | |
937 | |
236 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
938 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
237 | | --no-cr | --no-c) |
939 | | --no-cr | --no-c | -n) |
238 | no_create=yes ;; |
940 | no_create=yes ;; |
239 | |
941 | |
240 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
942 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
241 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
943 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
242 | no_recursion=yes ;; |
944 | no_recursion=yes ;; |
… | |
… | |
246 | | --oldin | --oldi | --old | --ol | --o) |
948 | | --oldin | --oldi | --old | --ol | --o) |
247 | ac_prev=oldincludedir ;; |
949 | ac_prev=oldincludedir ;; |
248 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
950 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
249 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
951 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
250 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
952 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
251 | oldincludedir="$ac_optarg" ;; |
953 | oldincludedir=$ac_optarg ;; |
252 | |
954 | |
253 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
955 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
254 | ac_prev=prefix ;; |
956 | ac_prev=prefix ;; |
255 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
957 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
256 | prefix="$ac_optarg" ;; |
958 | prefix=$ac_optarg ;; |
257 | |
959 | |
258 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
960 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
259 | | --program-pre | --program-pr | --program-p) |
961 | | --program-pre | --program-pr | --program-p) |
260 | ac_prev=program_prefix ;; |
962 | ac_prev=program_prefix ;; |
261 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
963 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
262 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
964 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
263 | program_prefix="$ac_optarg" ;; |
965 | program_prefix=$ac_optarg ;; |
264 | |
966 | |
265 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
967 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
266 | | --program-suf | --program-su | --program-s) |
968 | | --program-suf | --program-su | --program-s) |
267 | ac_prev=program_suffix ;; |
969 | ac_prev=program_suffix ;; |
268 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
970 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
269 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
971 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
270 | program_suffix="$ac_optarg" ;; |
972 | program_suffix=$ac_optarg ;; |
271 | |
973 | |
272 | -program-transform-name | --program-transform-name \ |
974 | -program-transform-name | --program-transform-name \ |
273 | | --program-transform-nam | --program-transform-na \ |
975 | | --program-transform-nam | --program-transform-na \ |
274 | | --program-transform-n | --program-transform- \ |
976 | | --program-transform-n | --program-transform- \ |
275 | | --program-transform | --program-transfor \ |
977 | | --program-transform | --program-transfor \ |
… | |
… | |
282 | | --program-transform-n=* | --program-transform-=* \ |
984 | | --program-transform-n=* | --program-transform-=* \ |
283 | | --program-transform=* | --program-transfor=* \ |
985 | | --program-transform=* | --program-transfor=* \ |
284 | | --program-transfo=* | --program-transf=* \ |
986 | | --program-transfo=* | --program-transf=* \ |
285 | | --program-trans=* | --program-tran=* \ |
987 | | --program-trans=* | --program-tran=* \ |
286 | | --progr-tra=* | --program-tr=* | --program-t=*) |
988 | | --progr-tra=* | --program-tr=* | --program-t=*) |
287 | program_transform_name="$ac_optarg" ;; |
989 | program_transform_name=$ac_optarg ;; |
|
|
990 | |
|
|
991 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
|
|
992 | ac_prev=pdfdir ;; |
|
|
993 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
|
|
994 | pdfdir=$ac_optarg ;; |
|
|
995 | |
|
|
996 | -psdir | --psdir | --psdi | --psd | --ps) |
|
|
997 | ac_prev=psdir ;; |
|
|
998 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
|
|
999 | psdir=$ac_optarg ;; |
288 | |
1000 | |
289 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1001 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
290 | | -silent | --silent | --silen | --sile | --sil) |
1002 | | -silent | --silent | --silen | --sile | --sil) |
291 | silent=yes ;; |
1003 | silent=yes ;; |
|
|
1004 | |
|
|
1005 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
|
|
1006 | | --runstate | --runstat | --runsta | --runst | --runs \ |
|
|
1007 | | --run | --ru | --r) |
|
|
1008 | ac_prev=runstatedir ;; |
|
|
1009 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
|
|
1010 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
|
|
1011 | | --run=* | --ru=* | --r=*) |
|
|
1012 | runstatedir=$ac_optarg ;; |
292 | |
1013 | |
293 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1014 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
294 | ac_prev=sbindir ;; |
1015 | ac_prev=sbindir ;; |
295 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1016 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
296 | | --sbi=* | --sb=*) |
1017 | | --sbi=* | --sb=*) |
297 | sbindir="$ac_optarg" ;; |
1018 | sbindir=$ac_optarg ;; |
298 | |
1019 | |
299 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
1020 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
300 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
1021 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
301 | | --sharedst | --shareds | --shared | --share | --shar \ |
1022 | | --sharedst | --shareds | --shared | --share | --shar \ |
302 | | --sha | --sh) |
1023 | | --sha | --sh) |
303 | ac_prev=sharedstatedir ;; |
1024 | ac_prev=sharedstatedir ;; |
304 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
1025 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
305 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
1026 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
306 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
1027 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
307 | | --sha=* | --sh=*) |
1028 | | --sha=* | --sh=*) |
308 | sharedstatedir="$ac_optarg" ;; |
1029 | sharedstatedir=$ac_optarg ;; |
309 | |
1030 | |
310 | -site | --site | --sit) |
1031 | -site | --site | --sit) |
311 | ac_prev=site ;; |
1032 | ac_prev=site ;; |
312 | -site=* | --site=* | --sit=*) |
1033 | -site=* | --site=* | --sit=*) |
313 | site="$ac_optarg" ;; |
1034 | site=$ac_optarg ;; |
314 | |
1035 | |
315 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1036 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
316 | ac_prev=srcdir ;; |
1037 | ac_prev=srcdir ;; |
317 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
1038 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
318 | srcdir="$ac_optarg" ;; |
1039 | srcdir=$ac_optarg ;; |
319 | |
1040 | |
320 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1041 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
321 | | --syscon | --sysco | --sysc | --sys | --sy) |
1042 | | --syscon | --sysco | --sysc | --sys | --sy) |
322 | ac_prev=sysconfdir ;; |
1043 | ac_prev=sysconfdir ;; |
323 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
1044 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
324 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
1045 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
325 | sysconfdir="$ac_optarg" ;; |
1046 | sysconfdir=$ac_optarg ;; |
326 | |
1047 | |
327 | -target | --target | --targe | --targ | --tar | --ta | --t) |
1048 | -target | --target | --targe | --targ | --tar | --ta | --t) |
328 | ac_prev=target ;; |
1049 | ac_prev=target_alias ;; |
329 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1050 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
330 | target="$ac_optarg" ;; |
1051 | target_alias=$ac_optarg ;; |
331 | |
1052 | |
332 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
1053 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
333 | verbose=yes ;; |
1054 | verbose=yes ;; |
334 | |
1055 | |
335 | -version | --version | --versio | --versi | --vers) |
1056 | -version | --version | --versio | --versi | --vers | -V) |
336 | echo "configure generated by autoconf version 2.13" |
1057 | ac_init_version=: ;; |
337 | exit 0 ;; |
|
|
338 | |
1058 | |
339 | -with-* | --with-*) |
1059 | -with-* | --with-*) |
340 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
1060 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
341 | # Reject names that are not valid shell variable names. |
1061 | # Reject names that are not valid shell variable names. |
342 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
1062 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
343 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
1063 | as_fn_error $? "invalid package name: \`$ac_useropt'" |
344 | fi |
1064 | ac_useropt_orig=$ac_useropt |
345 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
1065 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
346 | case "$ac_option" in |
1066 | case $ac_user_opts in |
347 | *=*) ;; |
1067 | *" |
348 | *) ac_optarg=yes ;; |
1068 | "with_$ac_useropt" |
|
|
1069 | "*) ;; |
|
|
1070 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
|
|
1071 | ac_unrecognized_sep=', ';; |
349 | esac |
1072 | esac |
350 | eval "with_${ac_package}='$ac_optarg'" ;; |
1073 | eval with_$ac_useropt=\$ac_optarg ;; |
351 | |
1074 | |
352 | -without-* | --without-*) |
1075 | -without-* | --without-*) |
353 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
1076 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
354 | # Reject names that are not valid shell variable names. |
1077 | # Reject names that are not valid shell variable names. |
355 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
1078 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
356 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
1079 | as_fn_error $? "invalid package name: \`$ac_useropt'" |
357 | fi |
1080 | ac_useropt_orig=$ac_useropt |
358 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
1081 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
|
|
1082 | case $ac_user_opts in |
|
|
1083 | *" |
|
|
1084 | "with_$ac_useropt" |
|
|
1085 | "*) ;; |
|
|
1086 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
|
|
1087 | ac_unrecognized_sep=', ';; |
|
|
1088 | esac |
359 | eval "with_${ac_package}=no" ;; |
1089 | eval with_$ac_useropt=no ;; |
360 | |
1090 | |
361 | --x) |
1091 | --x) |
362 | # Obsolete; use --with-x. |
1092 | # Obsolete; use --with-x. |
363 | with_x=yes ;; |
1093 | with_x=yes ;; |
364 | |
1094 | |
365 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
1095 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
366 | | --x-incl | --x-inc | --x-in | --x-i) |
1096 | | --x-incl | --x-inc | --x-in | --x-i) |
367 | ac_prev=x_includes ;; |
1097 | ac_prev=x_includes ;; |
368 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
1098 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
369 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
1099 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
370 | x_includes="$ac_optarg" ;; |
1100 | x_includes=$ac_optarg ;; |
371 | |
1101 | |
372 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
1102 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
373 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
1103 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
374 | ac_prev=x_libraries ;; |
1104 | ac_prev=x_libraries ;; |
375 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
1105 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
376 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1106 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
377 | x_libraries="$ac_optarg" ;; |
1107 | x_libraries=$ac_optarg ;; |
378 | |
1108 | |
379 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
1109 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
|
|
1110 | Try \`$0 --help' for more information" |
380 | ;; |
1111 | ;; |
381 | |
1112 | |
|
|
1113 | *=*) |
|
|
1114 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
|
|
1115 | # Reject names that are not valid shell variable names. |
|
|
1116 | case $ac_envvar in #( |
|
|
1117 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
|
|
1118 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
|
|
1119 | esac |
|
|
1120 | eval $ac_envvar=\$ac_optarg |
|
|
1121 | export $ac_envvar ;; |
|
|
1122 | |
382 | *) |
1123 | *) |
383 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
1124 | # FIXME: should be removed in autoconf 3.0. |
384 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
1125 | printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 |
385 | fi |
1126 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
386 | if test "x$nonopt" != xNONE; then |
1127 | printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 |
387 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
1128 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
388 | fi |
|
|
389 | nonopt="$ac_option" |
|
|
390 | ;; |
1129 | ;; |
391 | |
1130 | |
392 | esac |
1131 | esac |
393 | done |
1132 | done |
394 | |
1133 | |
395 | if test -n "$ac_prev"; then |
1134 | if test -n "$ac_prev"; then |
396 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
1135 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
|
|
1136 | as_fn_error $? "missing argument to $ac_option" |
397 | fi |
1137 | fi |
398 | |
1138 | |
399 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
1139 | if test -n "$ac_unrecognized_opts"; then |
400 | |
1140 | case $enable_option_checking in |
401 | # File descriptor usage: |
1141 | no) ;; |
402 | # 0 standard input |
1142 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
403 | # 1 file creation |
1143 | *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
404 | # 2 errors and warnings |
1144 | esac |
405 | # 3 some systems may open it to /dev/tty |
|
|
406 | # 4 used on the Kubota Titan |
|
|
407 | # 6 checking for... messages and results |
|
|
408 | # 5 compiler messages saved in config.log |
|
|
409 | if test "$silent" = yes; then |
|
|
410 | exec 6>/dev/null |
|
|
411 | else |
|
|
412 | exec 6>&1 |
|
|
413 | fi |
1145 | fi |
414 | exec 5>./config.log |
|
|
415 | |
1146 | |
416 | echo "\ |
1147 | # Check all directory arguments for consistency. |
417 | This file contains any messages produced by compilers while |
1148 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
418 | running configure, to aid debugging if configure makes a mistake. |
1149 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
419 | " 1>&5 |
1150 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
420 | |
1151 | libdir localedir mandir runstatedir |
421 | # Strip out --no-create and --no-recursion so they do not pile up. |
|
|
422 | # Also quote any args containing shell metacharacters. |
|
|
423 | ac_configure_args= |
|
|
424 | for ac_arg |
|
|
425 | do |
1152 | do |
|
|
1153 | eval ac_val=\$$ac_var |
|
|
1154 | # Remove trailing slashes. |
426 | case "$ac_arg" in |
1155 | case $ac_val in |
427 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
1156 | */ ) |
428 | | --no-cr | --no-c) ;; |
1157 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
429 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
1158 | eval $ac_var=\$ac_val;; |
430 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
|
|
431 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
|
|
432 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
|
|
433 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
|
|
434 | esac |
1159 | esac |
|
|
1160 | # Be sure to have absolute directory names. |
|
|
1161 | case $ac_val in |
|
|
1162 | [\\/$]* | ?:[\\/]* ) continue;; |
|
|
1163 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
|
|
1164 | esac |
|
|
1165 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
435 | done |
1166 | done |
436 | |
1167 | |
437 | # NLS nuisances. |
1168 | # There might be people who depend on the old broken behavior: `$host' |
438 | # Only set these to C if already set. These must not be set unconditionally |
1169 | # used to hold the argument of --host etc. |
439 | # because not all systems understand e.g. LANG=C (notably SCO). |
1170 | # FIXME: To remove some day. |
440 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
1171 | build=$build_alias |
441 | # Non-C LC_CTYPE values break the ctype check. |
1172 | host=$host_alias |
442 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
1173 | target=$target_alias |
443 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
|
|
444 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
|
|
445 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
|
|
446 | |
1174 | |
447 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
1175 | # FIXME: To remove some day. |
448 | rm -rf conftest* confdefs.h |
1176 | if test "x$host_alias" != x; then |
449 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
1177 | if test "x$build_alias" = x; then |
450 | echo > confdefs.h |
1178 | cross_compiling=maybe |
|
|
1179 | elif test "x$build_alias" != "x$host_alias"; then |
|
|
1180 | cross_compiling=yes |
|
|
1181 | fi |
|
|
1182 | fi |
451 | |
1183 | |
452 | # A filename unique to this package, relative to the directory that |
1184 | ac_tool_prefix= |
453 | # configure is in, which we can look for to find out if srcdir is correct. |
1185 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
454 | ac_unique_file=uulib.c |
1186 | |
|
|
1187 | test "$silent" = yes && exec 6>/dev/null |
|
|
1188 | |
|
|
1189 | |
|
|
1190 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
|
|
1191 | ac_ls_di=`ls -di .` && |
|
|
1192 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
|
|
1193 | as_fn_error $? "working directory cannot be determined" |
|
|
1194 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
|
|
1195 | as_fn_error $? "pwd does not report name of working directory" |
|
|
1196 | |
455 | |
1197 | |
456 | # Find the source files, if location was not specified. |
1198 | # Find the source files, if location was not specified. |
457 | if test -z "$srcdir"; then |
1199 | if test -z "$srcdir"; then |
458 | ac_srcdir_defaulted=yes |
1200 | ac_srcdir_defaulted=yes |
459 | # Try the directory containing this script, then its parent. |
1201 | # Try the directory containing this script, then the parent directory. |
460 | ac_prog=$0 |
1202 | ac_confdir=`$as_dirname -- "$as_myself" || |
461 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
1203 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
462 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
1204 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
|
|
1205 | X"$as_myself" : 'X\(//\)$' \| \ |
|
|
1206 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
|
|
1207 | printf "%s\n" X"$as_myself" | |
|
|
1208 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
|
1209 | s//\1/ |
|
|
1210 | q |
|
|
1211 | } |
|
|
1212 | /^X\(\/\/\)[^/].*/{ |
|
|
1213 | s//\1/ |
|
|
1214 | q |
|
|
1215 | } |
|
|
1216 | /^X\(\/\/\)$/{ |
|
|
1217 | s//\1/ |
|
|
1218 | q |
|
|
1219 | } |
|
|
1220 | /^X\(\/\).*/{ |
|
|
1221 | s//\1/ |
|
|
1222 | q |
|
|
1223 | } |
|
|
1224 | s/.*/./; q'` |
463 | srcdir=$ac_confdir |
1225 | srcdir=$ac_confdir |
464 | if test ! -r $srcdir/$ac_unique_file; then |
1226 | if test ! -r "$srcdir/$ac_unique_file"; then |
465 | srcdir=.. |
1227 | srcdir=.. |
466 | fi |
1228 | fi |
467 | else |
1229 | else |
468 | ac_srcdir_defaulted=no |
1230 | ac_srcdir_defaulted=no |
469 | fi |
1231 | fi |
470 | if test ! -r $srcdir/$ac_unique_file; then |
1232 | if test ! -r "$srcdir/$ac_unique_file"; then |
471 | if test "$ac_srcdir_defaulted" = yes; then |
1233 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
472 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
1234 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
|
|
1235 | fi |
|
|
1236 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
|
|
1237 | ac_abs_confdir=`( |
|
|
1238 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
|
|
1239 | pwd)` |
|
|
1240 | # When building in place, set srcdir=. |
|
|
1241 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
|
|
1242 | srcdir=. |
|
|
1243 | fi |
|
|
1244 | # Remove unnecessary trailing slashes from srcdir. |
|
|
1245 | # Double slashes in file names in object file debugging info |
|
|
1246 | # mess up M-x gdb in Emacs. |
|
|
1247 | case $srcdir in |
|
|
1248 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
|
|
1249 | esac |
|
|
1250 | for ac_var in $ac_precious_vars; do |
|
|
1251 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
|
|
1252 | eval ac_env_${ac_var}_value=\$${ac_var} |
|
|
1253 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
|
|
1254 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
|
|
1255 | done |
|
|
1256 | |
|
|
1257 | # |
|
|
1258 | # Report the --help message. |
|
|
1259 | # |
|
|
1260 | if test "$ac_init_help" = "long"; then |
|
|
1261 | # Omit some internal or obsolete options to make the list less imposing. |
|
|
1262 | # This message is too long to be a string in the A/UX 3.1 sh. |
|
|
1263 | cat <<_ACEOF |
|
|
1264 | \`configure' configures this package to adapt to many kinds of systems. |
|
|
1265 | |
|
|
1266 | Usage: $0 [OPTION]... [VAR=VALUE]... |
|
|
1267 | |
|
|
1268 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
|
|
1269 | VAR=VALUE. See below for descriptions of some of the useful variables. |
|
|
1270 | |
|
|
1271 | Defaults for the options are specified in brackets. |
|
|
1272 | |
|
|
1273 | Configuration: |
|
|
1274 | -h, --help display this help and exit |
|
|
1275 | --help=short display options specific to this package |
|
|
1276 | --help=recursive display the short help of all the included packages |
|
|
1277 | -V, --version display version information and exit |
|
|
1278 | -q, --quiet, --silent do not print \`checking ...' messages |
|
|
1279 | --cache-file=FILE cache test results in FILE [disabled] |
|
|
1280 | -C, --config-cache alias for \`--cache-file=config.cache' |
|
|
1281 | -n, --no-create do not create output files |
|
|
1282 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
|
|
1283 | |
|
|
1284 | Installation directories: |
|
|
1285 | --prefix=PREFIX install architecture-independent files in PREFIX |
|
|
1286 | [$ac_default_prefix] |
|
|
1287 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
|
|
1288 | [PREFIX] |
|
|
1289 | |
|
|
1290 | By default, \`make install' will install all the files in |
|
|
1291 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
|
|
1292 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
|
|
1293 | for instance \`--prefix=\$HOME'. |
|
|
1294 | |
|
|
1295 | For better control, use the options below. |
|
|
1296 | |
|
|
1297 | Fine tuning of the installation directories: |
|
|
1298 | --bindir=DIR user executables [EPREFIX/bin] |
|
|
1299 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
|
|
1300 | --libexecdir=DIR program executables [EPREFIX/libexec] |
|
|
1301 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
|
|
1302 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
|
|
1303 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
|
|
1304 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
|
|
1305 | --libdir=DIR object code libraries [EPREFIX/lib] |
|
|
1306 | --includedir=DIR C header files [PREFIX/include] |
|
|
1307 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
|
|
1308 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
|
|
1309 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
|
|
1310 | --infodir=DIR info documentation [DATAROOTDIR/info] |
|
|
1311 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
|
|
1312 | --mandir=DIR man documentation [DATAROOTDIR/man] |
|
|
1313 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
|
|
1314 | --htmldir=DIR html documentation [DOCDIR] |
|
|
1315 | --dvidir=DIR dvi documentation [DOCDIR] |
|
|
1316 | --pdfdir=DIR pdf documentation [DOCDIR] |
|
|
1317 | --psdir=DIR ps documentation [DOCDIR] |
|
|
1318 | _ACEOF |
|
|
1319 | |
|
|
1320 | cat <<\_ACEOF |
|
|
1321 | _ACEOF |
|
|
1322 | fi |
|
|
1323 | |
|
|
1324 | if test -n "$ac_init_help"; then |
|
|
1325 | |
|
|
1326 | cat <<\_ACEOF |
|
|
1327 | |
|
|
1328 | Optional Packages: |
|
|
1329 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
|
|
1330 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
|
|
1331 | |
|
|
1332 | |
|
|
1333 | Some influential environment variables: |
|
|
1334 | CC C compiler command |
|
|
1335 | CFLAGS C compiler flags |
|
|
1336 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
|
|
1337 | nonstandard directory <lib dir> |
|
|
1338 | LIBS libraries to pass to the linker, e.g. -l<library> |
|
|
1339 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
|
|
1340 | you have headers in a nonstandard directory <include dir> |
|
|
1341 | CPP C preprocessor |
|
|
1342 | |
|
|
1343 | Use these variables to override the choices made by `configure' or to help |
|
|
1344 | it to find libraries and programs with nonstandard names/locations. |
|
|
1345 | |
|
|
1346 | Report bugs to the package provider. |
|
|
1347 | _ACEOF |
|
|
1348 | ac_status=$? |
|
|
1349 | fi |
|
|
1350 | |
|
|
1351 | if test "$ac_init_help" = "recursive"; then |
|
|
1352 | # If there are subdirs, report their specific --help. |
|
|
1353 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
|
|
1354 | test -d "$ac_dir" || |
|
|
1355 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
|
|
1356 | continue |
|
|
1357 | ac_builddir=. |
|
|
1358 | |
|
|
1359 | case "$ac_dir" in |
|
|
1360 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
|
1361 | *) |
|
|
1362 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
|
|
1363 | # A ".." for each directory in $ac_dir_suffix. |
|
|
1364 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
|
|
1365 | case $ac_top_builddir_sub in |
|
|
1366 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
|
1367 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
|
|
1368 | esac ;; |
|
|
1369 | esac |
|
|
1370 | ac_abs_top_builddir=$ac_pwd |
|
|
1371 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
|
|
1372 | # for backward compatibility: |
|
|
1373 | ac_top_builddir=$ac_top_build_prefix |
|
|
1374 | |
|
|
1375 | case $srcdir in |
|
|
1376 | .) # We are building in place. |
|
|
1377 | ac_srcdir=. |
|
|
1378 | ac_top_srcdir=$ac_top_builddir_sub |
|
|
1379 | ac_abs_top_srcdir=$ac_pwd ;; |
|
|
1380 | [\\/]* | ?:[\\/]* ) # Absolute name. |
|
|
1381 | ac_srcdir=$srcdir$ac_dir_suffix; |
|
|
1382 | ac_top_srcdir=$srcdir |
|
|
1383 | ac_abs_top_srcdir=$srcdir ;; |
|
|
1384 | *) # Relative name. |
|
|
1385 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
|
|
1386 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
|
|
1387 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
|
|
1388 | esac |
|
|
1389 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
|
|
1390 | |
|
|
1391 | cd "$ac_dir" || { ac_status=$?; continue; } |
|
|
1392 | # Check for configure.gnu first; this name is used for a wrapper for |
|
|
1393 | # Metaconfig's "Configure" on case-insensitive file systems. |
|
|
1394 | if test -f "$ac_srcdir/configure.gnu"; then |
|
|
1395 | echo && |
|
|
1396 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
|
|
1397 | elif test -f "$ac_srcdir/configure"; then |
|
|
1398 | echo && |
|
|
1399 | $SHELL "$ac_srcdir/configure" --help=recursive |
473 | else |
1400 | else |
474 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
1401 | printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
|
|
1402 | fi || ac_status=$? |
|
|
1403 | cd "$ac_pwd" || { ac_status=$?; break; } |
|
|
1404 | done |
|
|
1405 | fi |
|
|
1406 | |
|
|
1407 | test -n "$ac_init_help" && exit $ac_status |
|
|
1408 | if $ac_init_version; then |
|
|
1409 | cat <<\_ACEOF |
|
|
1410 | configure |
|
|
1411 | generated by GNU Autoconf 2.71 |
|
|
1412 | |
|
|
1413 | Copyright (C) 2021 Free Software Foundation, Inc. |
|
|
1414 | This configure script is free software; the Free Software Foundation |
|
|
1415 | gives unlimited permission to copy, distribute and modify it. |
|
|
1416 | _ACEOF |
|
|
1417 | exit |
|
|
1418 | fi |
|
|
1419 | |
|
|
1420 | ## ------------------------ ## |
|
|
1421 | ## Autoconf initialization. ## |
|
|
1422 | ## ------------------------ ## |
|
|
1423 | |
|
|
1424 | # ac_fn_c_try_compile LINENO |
|
|
1425 | # -------------------------- |
|
|
1426 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
|
|
1427 | ac_fn_c_try_compile () |
|
|
1428 | { |
|
|
1429 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1430 | rm -f conftest.$ac_objext conftest.beam |
|
|
1431 | if { { ac_try="$ac_compile" |
|
|
1432 | case "(($ac_try" in |
|
|
1433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
1434 | *) ac_try_echo=$ac_try;; |
|
|
1435 | esac |
|
|
1436 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
1437 | printf "%s\n" "$ac_try_echo"; } >&5 |
|
|
1438 | (eval "$ac_compile") 2>conftest.err |
|
|
1439 | ac_status=$? |
|
|
1440 | if test -s conftest.err; then |
|
|
1441 | grep -v '^ *+' conftest.err >conftest.er1 |
|
|
1442 | cat conftest.er1 >&5 |
|
|
1443 | mv -f conftest.er1 conftest.err |
475 | fi |
1444 | fi |
476 | fi |
1445 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
477 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
1446 | test $ac_status = 0; } && { |
|
|
1447 | test -z "$ac_c_werror_flag" || |
|
|
1448 | test ! -s conftest.err |
|
|
1449 | } && test -s conftest.$ac_objext |
|
|
1450 | then : |
|
|
1451 | ac_retval=0 |
|
|
1452 | else $as_nop |
|
|
1453 | printf "%s\n" "$as_me: failed program was:" >&5 |
|
|
1454 | sed 's/^/| /' conftest.$ac_ext >&5 |
478 | |
1455 | |
479 | # Prefer explicitly selected file to automatically selected ones. |
1456 | ac_retval=1 |
480 | if test -z "$CONFIG_SITE"; then |
1457 | fi |
481 | if test "x$prefix" != xNONE; then |
1458 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
482 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
1459 | as_fn_set_status $ac_retval |
483 | else |
1460 | |
484 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
1461 | } # ac_fn_c_try_compile |
|
|
1462 | |
|
|
1463 | # ac_fn_c_try_cpp LINENO |
|
|
1464 | # ---------------------- |
|
|
1465 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
|
|
1466 | ac_fn_c_try_cpp () |
|
|
1467 | { |
|
|
1468 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1469 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
|
|
1470 | case "(($ac_try" in |
|
|
1471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
1472 | *) ac_try_echo=$ac_try;; |
|
|
1473 | esac |
|
|
1474 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
1475 | printf "%s\n" "$ac_try_echo"; } >&5 |
|
|
1476 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
|
|
1477 | ac_status=$? |
|
|
1478 | if test -s conftest.err; then |
|
|
1479 | grep -v '^ *+' conftest.err >conftest.er1 |
|
|
1480 | cat conftest.er1 >&5 |
|
|
1481 | mv -f conftest.er1 conftest.err |
485 | fi |
1482 | fi |
|
|
1483 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
1484 | test $ac_status = 0; } > conftest.i && { |
|
|
1485 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
|
1486 | test ! -s conftest.err |
|
|
1487 | } |
|
|
1488 | then : |
|
|
1489 | ac_retval=0 |
|
|
1490 | else $as_nop |
|
|
1491 | printf "%s\n" "$as_me: failed program was:" >&5 |
|
|
1492 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
1493 | |
|
|
1494 | ac_retval=1 |
486 | fi |
1495 | fi |
487 | for ac_site_file in $CONFIG_SITE; do |
1496 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
|
1497 | as_fn_set_status $ac_retval |
|
|
1498 | |
|
|
1499 | } # ac_fn_c_try_cpp |
|
|
1500 | |
|
|
1501 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
|
|
1502 | # ------------------------------------------- |
|
|
1503 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
|
|
1504 | # variable VAR accordingly. |
|
|
1505 | ac_fn_c_check_type () |
|
|
1506 | { |
|
|
1507 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1508 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
|
1509 | printf %s "checking for $2... " >&6; } |
|
|
1510 | if eval test \${$3+y} |
|
|
1511 | then : |
|
|
1512 | printf %s "(cached) " >&6 |
|
|
1513 | else $as_nop |
|
|
1514 | eval "$3=no" |
|
|
1515 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
1516 | /* end confdefs.h. */ |
|
|
1517 | $4 |
|
|
1518 | int |
|
|
1519 | main (void) |
|
|
1520 | { |
|
|
1521 | if (sizeof ($2)) |
|
|
1522 | return 0; |
|
|
1523 | ; |
|
|
1524 | return 0; |
|
|
1525 | } |
|
|
1526 | _ACEOF |
|
|
1527 | if ac_fn_c_try_compile "$LINENO" |
|
|
1528 | then : |
|
|
1529 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
1530 | /* end confdefs.h. */ |
|
|
1531 | $4 |
|
|
1532 | int |
|
|
1533 | main (void) |
|
|
1534 | { |
|
|
1535 | if (sizeof (($2))) |
|
|
1536 | return 0; |
|
|
1537 | ; |
|
|
1538 | return 0; |
|
|
1539 | } |
|
|
1540 | _ACEOF |
|
|
1541 | if ac_fn_c_try_compile "$LINENO" |
|
|
1542 | then : |
|
|
1543 | |
|
|
1544 | else $as_nop |
|
|
1545 | eval "$3=yes" |
|
|
1546 | fi |
|
|
1547 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
1548 | fi |
|
|
1549 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
1550 | fi |
|
|
1551 | eval ac_res=\$$3 |
|
|
1552 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
|
1553 | printf "%s\n" "$ac_res" >&6; } |
|
|
1554 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
|
1555 | |
|
|
1556 | } # ac_fn_c_check_type |
|
|
1557 | |
|
|
1558 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
|
|
1559 | # ------------------------------------------------------- |
|
|
1560 | # Tests whether HEADER exists and can be compiled using the include files in |
|
|
1561 | # INCLUDES, setting the cache variable VAR accordingly. |
|
|
1562 | ac_fn_c_check_header_compile () |
|
|
1563 | { |
|
|
1564 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1565 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
|
1566 | printf %s "checking for $2... " >&6; } |
|
|
1567 | if eval test \${$3+y} |
|
|
1568 | then : |
|
|
1569 | printf %s "(cached) " >&6 |
|
|
1570 | else $as_nop |
|
|
1571 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
1572 | /* end confdefs.h. */ |
|
|
1573 | $4 |
|
|
1574 | #include <$2> |
|
|
1575 | _ACEOF |
|
|
1576 | if ac_fn_c_try_compile "$LINENO" |
|
|
1577 | then : |
|
|
1578 | eval "$3=yes" |
|
|
1579 | else $as_nop |
|
|
1580 | eval "$3=no" |
|
|
1581 | fi |
|
|
1582 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
1583 | fi |
|
|
1584 | eval ac_res=\$$3 |
|
|
1585 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
|
1586 | printf "%s\n" "$ac_res" >&6; } |
|
|
1587 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
|
1588 | |
|
|
1589 | } # ac_fn_c_check_header_compile |
|
|
1590 | |
|
|
1591 | # ac_fn_c_try_link LINENO |
|
|
1592 | # ----------------------- |
|
|
1593 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
|
|
1594 | ac_fn_c_try_link () |
|
|
1595 | { |
|
|
1596 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1597 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
|
|
1598 | if { { ac_try="$ac_link" |
|
|
1599 | case "(($ac_try" in |
|
|
1600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
1601 | *) ac_try_echo=$ac_try;; |
|
|
1602 | esac |
|
|
1603 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
1604 | printf "%s\n" "$ac_try_echo"; } >&5 |
|
|
1605 | (eval "$ac_link") 2>conftest.err |
|
|
1606 | ac_status=$? |
|
|
1607 | if test -s conftest.err; then |
|
|
1608 | grep -v '^ *+' conftest.err >conftest.er1 |
|
|
1609 | cat conftest.er1 >&5 |
|
|
1610 | mv -f conftest.er1 conftest.err |
|
|
1611 | fi |
|
|
1612 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
1613 | test $ac_status = 0; } && { |
|
|
1614 | test -z "$ac_c_werror_flag" || |
|
|
1615 | test ! -s conftest.err |
|
|
1616 | } && test -s conftest$ac_exeext && { |
|
|
1617 | test "$cross_compiling" = yes || |
|
|
1618 | test -x conftest$ac_exeext |
|
|
1619 | } |
|
|
1620 | then : |
|
|
1621 | ac_retval=0 |
|
|
1622 | else $as_nop |
|
|
1623 | printf "%s\n" "$as_me: failed program was:" >&5 |
|
|
1624 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
1625 | |
|
|
1626 | ac_retval=1 |
|
|
1627 | fi |
|
|
1628 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
|
|
1629 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
|
|
1630 | # interfere with the next link command; also delete a directory that is |
|
|
1631 | # left behind by Apple's compiler. We do this before executing the actions. |
|
|
1632 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
|
|
1633 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
|
1634 | as_fn_set_status $ac_retval |
|
|
1635 | |
|
|
1636 | } # ac_fn_c_try_link |
|
|
1637 | |
|
|
1638 | # ac_fn_c_check_func LINENO FUNC VAR |
|
|
1639 | # ---------------------------------- |
|
|
1640 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
|
|
1641 | ac_fn_c_check_func () |
|
|
1642 | { |
|
|
1643 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1644 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
|
1645 | printf %s "checking for $2... " >&6; } |
|
|
1646 | if eval test \${$3+y} |
|
|
1647 | then : |
|
|
1648 | printf %s "(cached) " >&6 |
|
|
1649 | else $as_nop |
|
|
1650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
1651 | /* end confdefs.h. */ |
|
|
1652 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
|
|
1653 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
1654 | #define $2 innocuous_$2 |
|
|
1655 | |
|
|
1656 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
1657 | which can conflict with char $2 (); below. */ |
|
|
1658 | |
|
|
1659 | #include <limits.h> |
|
|
1660 | #undef $2 |
|
|
1661 | |
|
|
1662 | /* Override any GCC internal prototype to avoid an error. |
|
|
1663 | Use char because int might match the return type of a GCC |
|
|
1664 | builtin and then its argument prototype would still apply. */ |
|
|
1665 | #ifdef __cplusplus |
|
|
1666 | extern "C" |
|
|
1667 | #endif |
|
|
1668 | char $2 (); |
|
|
1669 | /* The GNU C library defines this for functions which it implements |
|
|
1670 | to always fail with ENOSYS. Some functions are actually named |
|
|
1671 | something starting with __ and the normal name is an alias. */ |
|
|
1672 | #if defined __stub_$2 || defined __stub___$2 |
|
|
1673 | choke me |
|
|
1674 | #endif |
|
|
1675 | |
|
|
1676 | int |
|
|
1677 | main (void) |
|
|
1678 | { |
|
|
1679 | return $2 (); |
|
|
1680 | ; |
|
|
1681 | return 0; |
|
|
1682 | } |
|
|
1683 | _ACEOF |
|
|
1684 | if ac_fn_c_try_link "$LINENO" |
|
|
1685 | then : |
|
|
1686 | eval "$3=yes" |
|
|
1687 | else $as_nop |
|
|
1688 | eval "$3=no" |
|
|
1689 | fi |
|
|
1690 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
1691 | conftest$ac_exeext conftest.$ac_ext |
|
|
1692 | fi |
|
|
1693 | eval ac_res=\$$3 |
|
|
1694 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
|
1695 | printf "%s\n" "$ac_res" >&6; } |
|
|
1696 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
|
1697 | |
|
|
1698 | } # ac_fn_c_check_func |
|
|
1699 | ac_configure_args_raw= |
|
|
1700 | for ac_arg |
|
|
1701 | do |
|
|
1702 | case $ac_arg in |
|
|
1703 | *\'*) |
|
|
1704 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
|
1705 | esac |
|
|
1706 | as_fn_append ac_configure_args_raw " '$ac_arg'" |
|
|
1707 | done |
|
|
1708 | |
|
|
1709 | case $ac_configure_args_raw in |
|
|
1710 | *$as_nl*) |
|
|
1711 | ac_safe_unquote= ;; |
|
|
1712 | *) |
|
|
1713 | ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. |
|
|
1714 | ac_unsafe_a="$ac_unsafe_z#~" |
|
|
1715 | ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" |
|
|
1716 | ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; |
|
|
1717 | esac |
|
|
1718 | |
|
|
1719 | cat >config.log <<_ACEOF |
|
|
1720 | This file contains any messages produced by compilers while |
|
|
1721 | running configure, to aid debugging if configure makes a mistake. |
|
|
1722 | |
|
|
1723 | It was created by $as_me, which was |
|
|
1724 | generated by GNU Autoconf 2.71. Invocation command line was |
|
|
1725 | |
|
|
1726 | $ $0$ac_configure_args_raw |
|
|
1727 | |
|
|
1728 | _ACEOF |
|
|
1729 | exec 5>>config.log |
|
|
1730 | { |
|
|
1731 | cat <<_ASUNAME |
|
|
1732 | ## --------- ## |
|
|
1733 | ## Platform. ## |
|
|
1734 | ## --------- ## |
|
|
1735 | |
|
|
1736 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
|
|
1737 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
|
|
1738 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
|
|
1739 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
|
|
1740 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
|
|
1741 | |
|
|
1742 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
|
|
1743 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
|
|
1744 | |
|
|
1745 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
|
|
1746 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
|
|
1747 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
|
|
1748 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
|
|
1749 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
|
|
1750 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
|
|
1751 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
|
|
1752 | |
|
|
1753 | _ASUNAME |
|
|
1754 | |
|
|
1755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
1756 | for as_dir in $PATH |
|
|
1757 | do |
|
|
1758 | IFS=$as_save_IFS |
|
|
1759 | case $as_dir in #((( |
|
|
1760 | '') as_dir=./ ;; |
|
|
1761 | */) ;; |
|
|
1762 | *) as_dir=$as_dir/ ;; |
|
|
1763 | esac |
|
|
1764 | printf "%s\n" "PATH: $as_dir" |
|
|
1765 | done |
|
|
1766 | IFS=$as_save_IFS |
|
|
1767 | |
|
|
1768 | } >&5 |
|
|
1769 | |
|
|
1770 | cat >&5 <<_ACEOF |
|
|
1771 | |
|
|
1772 | |
|
|
1773 | ## ----------- ## |
|
|
1774 | ## Core tests. ## |
|
|
1775 | ## ----------- ## |
|
|
1776 | |
|
|
1777 | _ACEOF |
|
|
1778 | |
|
|
1779 | |
|
|
1780 | # Keep a trace of the command line. |
|
|
1781 | # Strip out --no-create and --no-recursion so they do not pile up. |
|
|
1782 | # Strip out --silent because we don't want to record it for future runs. |
|
|
1783 | # Also quote any args containing shell meta-characters. |
|
|
1784 | # Make two passes to allow for proper duplicate-argument suppression. |
|
|
1785 | ac_configure_args= |
|
|
1786 | ac_configure_args0= |
|
|
1787 | ac_configure_args1= |
|
|
1788 | ac_must_keep_next=false |
|
|
1789 | for ac_pass in 1 2 |
|
|
1790 | do |
|
|
1791 | for ac_arg |
|
|
1792 | do |
|
|
1793 | case $ac_arg in |
|
|
1794 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
|
|
1795 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
|
1796 | | -silent | --silent | --silen | --sile | --sil) |
|
|
1797 | continue ;; |
|
|
1798 | *\'*) |
|
|
1799 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
|
1800 | esac |
|
|
1801 | case $ac_pass in |
|
|
1802 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
|
|
1803 | 2) |
|
|
1804 | as_fn_append ac_configure_args1 " '$ac_arg'" |
|
|
1805 | if test $ac_must_keep_next = true; then |
|
|
1806 | ac_must_keep_next=false # Got value, back to normal. |
|
|
1807 | else |
|
|
1808 | case $ac_arg in |
|
|
1809 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
|
|
1810 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
|
|
1811 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
|
|
1812 | | -with-* | --with-* | -without-* | --without-* | --x) |
|
|
1813 | case "$ac_configure_args0 " in |
|
|
1814 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
|
|
1815 | esac |
|
|
1816 | ;; |
|
|
1817 | -* ) ac_must_keep_next=true ;; |
|
|
1818 | esac |
|
|
1819 | fi |
|
|
1820 | as_fn_append ac_configure_args " '$ac_arg'" |
|
|
1821 | ;; |
|
|
1822 | esac |
|
|
1823 | done |
|
|
1824 | done |
|
|
1825 | { ac_configure_args0=; unset ac_configure_args0;} |
|
|
1826 | { ac_configure_args1=; unset ac_configure_args1;} |
|
|
1827 | |
|
|
1828 | # When interrupted or exit'd, cleanup temporary files, and complete |
|
|
1829 | # config.log. We remove comments because anyway the quotes in there |
|
|
1830 | # would cause problems or look ugly. |
|
|
1831 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
|
|
1832 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
|
|
1833 | trap 'exit_status=$? |
|
|
1834 | # Sanitize IFS. |
|
|
1835 | IFS=" "" $as_nl" |
|
|
1836 | # Save into config.log some information that might help in debugging. |
|
|
1837 | { |
|
|
1838 | echo |
|
|
1839 | |
|
|
1840 | printf "%s\n" "## ---------------- ## |
|
|
1841 | ## Cache variables. ## |
|
|
1842 | ## ---------------- ##" |
|
|
1843 | echo |
|
|
1844 | # The following way of writing the cache mishandles newlines in values, |
|
|
1845 | ( |
|
|
1846 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
|
|
1847 | eval ac_val=\$$ac_var |
|
|
1848 | case $ac_val in #( |
|
|
1849 | *${as_nl}*) |
|
|
1850 | case $ac_var in #( |
|
|
1851 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
|
|
1852 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
|
|
1853 | esac |
|
|
1854 | case $ac_var in #( |
|
|
1855 | _ | IFS | as_nl) ;; #( |
|
|
1856 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
|
|
1857 | *) { eval $ac_var=; unset $ac_var;} ;; |
|
|
1858 | esac ;; |
|
|
1859 | esac |
|
|
1860 | done |
|
|
1861 | (set) 2>&1 | |
|
|
1862 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
|
|
1863 | *${as_nl}ac_space=\ *) |
|
|
1864 | sed -n \ |
|
|
1865 | "s/'\''/'\''\\\\'\'''\''/g; |
|
|
1866 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
|
|
1867 | ;; #( |
|
|
1868 | *) |
|
|
1869 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
|
|
1870 | ;; |
|
|
1871 | esac | |
|
|
1872 | sort |
|
|
1873 | ) |
|
|
1874 | echo |
|
|
1875 | |
|
|
1876 | printf "%s\n" "## ----------------- ## |
|
|
1877 | ## Output variables. ## |
|
|
1878 | ## ----------------- ##" |
|
|
1879 | echo |
|
|
1880 | for ac_var in $ac_subst_vars |
|
|
1881 | do |
|
|
1882 | eval ac_val=\$$ac_var |
|
|
1883 | case $ac_val in |
|
|
1884 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
|
|
1885 | esac |
|
|
1886 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
|
|
1887 | done | sort |
|
|
1888 | echo |
|
|
1889 | |
488 | if test -r "$ac_site_file"; then |
1890 | if test -n "$ac_subst_files"; then |
489 | echo "loading site script $ac_site_file" |
1891 | printf "%s\n" "## ------------------- ## |
|
|
1892 | ## File substitutions. ## |
|
|
1893 | ## ------------------- ##" |
|
|
1894 | echo |
|
|
1895 | for ac_var in $ac_subst_files |
|
|
1896 | do |
|
|
1897 | eval ac_val=\$$ac_var |
|
|
1898 | case $ac_val in |
|
|
1899 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
|
|
1900 | esac |
|
|
1901 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
|
|
1902 | done | sort |
|
|
1903 | echo |
|
|
1904 | fi |
|
|
1905 | |
|
|
1906 | if test -s confdefs.h; then |
|
|
1907 | printf "%s\n" "## ----------- ## |
|
|
1908 | ## confdefs.h. ## |
|
|
1909 | ## ----------- ##" |
|
|
1910 | echo |
|
|
1911 | cat confdefs.h |
|
|
1912 | echo |
|
|
1913 | fi |
|
|
1914 | test "$ac_signal" != 0 && |
|
|
1915 | printf "%s\n" "$as_me: caught signal $ac_signal" |
|
|
1916 | printf "%s\n" "$as_me: exit $exit_status" |
|
|
1917 | } >&5 |
|
|
1918 | rm -f core *.core core.conftest.* && |
|
|
1919 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
|
|
1920 | exit $exit_status |
|
|
1921 | ' 0 |
|
|
1922 | for ac_signal in 1 2 13 15; do |
|
|
1923 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
|
|
1924 | done |
|
|
1925 | ac_signal=0 |
|
|
1926 | |
|
|
1927 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
|
|
1928 | rm -f -r conftest* confdefs.h |
|
|
1929 | |
|
|
1930 | printf "%s\n" "/* confdefs.h */" > confdefs.h |
|
|
1931 | |
|
|
1932 | # Predefined preprocessor variables. |
|
|
1933 | |
|
|
1934 | printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
|
|
1935 | |
|
|
1936 | printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
|
|
1937 | |
|
|
1938 | printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
|
|
1939 | |
|
|
1940 | printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
|
|
1941 | |
|
|
1942 | printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
|
|
1943 | |
|
|
1944 | printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h |
|
|
1945 | |
|
|
1946 | |
|
|
1947 | # Let the site file select an alternate cache file if it wants to. |
|
|
1948 | # Prefer an explicitly selected file to automatically selected ones. |
|
|
1949 | if test -n "$CONFIG_SITE"; then |
|
|
1950 | ac_site_files="$CONFIG_SITE" |
|
|
1951 | elif test "x$prefix" != xNONE; then |
|
|
1952 | ac_site_files="$prefix/share/config.site $prefix/etc/config.site" |
|
|
1953 | else |
|
|
1954 | ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
|
|
1955 | fi |
|
|
1956 | |
|
|
1957 | for ac_site_file in $ac_site_files |
|
|
1958 | do |
|
|
1959 | case $ac_site_file in #( |
|
|
1960 | */*) : |
|
|
1961 | ;; #( |
|
|
1962 | *) : |
|
|
1963 | ac_site_file=./$ac_site_file ;; |
|
|
1964 | esac |
|
|
1965 | if test -f "$ac_site_file" && test -r "$ac_site_file"; then |
|
|
1966 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
|
|
1967 | printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} |
|
|
1968 | sed 's/^/| /' "$ac_site_file" >&5 |
490 | . "$ac_site_file" |
1969 | . "$ac_site_file" \ |
|
|
1970 | || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
|
1971 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
|
|
1972 | as_fn_error $? "failed to load site script $ac_site_file |
|
|
1973 | See \`config.log' for more details" "$LINENO" 5; } |
491 | fi |
1974 | fi |
492 | done |
1975 | done |
493 | |
1976 | |
494 | if test -r "$cache_file"; then |
1977 | if test -r "$cache_file"; then |
495 | echo "loading cache $cache_file" |
1978 | # Some versions of bash will fail to source /dev/null (special files |
496 | . $cache_file |
1979 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
497 | else |
1980 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
498 | echo "creating cache $cache_file" |
1981 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
499 | > $cache_file |
1982 | printf "%s\n" "$as_me: loading cache $cache_file" >&6;} |
500 | fi |
1983 | case $cache_file in |
501 | |
1984 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
502 | ac_ext=c |
1985 | *) . "./$cache_file";; |
503 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1986 | esac |
504 | ac_cpp='$CPP $CPPFLAGS' |
|
|
505 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
|
|
506 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
|
507 | cross_compiling=$ac_cv_prog_cc_cross |
|
|
508 | |
|
|
509 | ac_exeext= |
|
|
510 | ac_objext=o |
|
|
511 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
|
|
512 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
|
|
513 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
|
|
514 | ac_n= ac_c=' |
|
|
515 | ' ac_t=' ' |
|
|
516 | else |
|
|
517 | ac_n=-n ac_c= ac_t= |
|
|
518 | fi |
1987 | fi |
519 | else |
1988 | else |
520 | ac_n= ac_c='\c' ac_t= |
1989 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
|
|
1990 | printf "%s\n" "$as_me: creating cache $cache_file" >&6;} |
|
|
1991 | >$cache_file |
|
|
1992 | fi |
|
|
1993 | |
|
|
1994 | # Test code for whether the C compiler supports C89 (global declarations) |
|
|
1995 | ac_c_conftest_c89_globals=' |
|
|
1996 | /* Does the compiler advertise C89 conformance? |
|
|
1997 | Do not test the value of __STDC__, because some compilers set it to 0 |
|
|
1998 | while being otherwise adequately conformant. */ |
|
|
1999 | #if !defined __STDC__ |
|
|
2000 | # error "Compiler does not advertise C89 conformance" |
|
|
2001 | #endif |
|
|
2002 | |
|
|
2003 | #include <stddef.h> |
|
|
2004 | #include <stdarg.h> |
|
|
2005 | struct stat; |
|
|
2006 | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
|
|
2007 | struct buf { int x; }; |
|
|
2008 | struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
|
|
2009 | static char *e (p, i) |
|
|
2010 | char **p; |
|
|
2011 | int i; |
|
|
2012 | { |
|
|
2013 | return p[i]; |
|
|
2014 | } |
|
|
2015 | static char *f (char * (*g) (char **, int), char **p, ...) |
|
|
2016 | { |
|
|
2017 | char *s; |
|
|
2018 | va_list v; |
|
|
2019 | va_start (v,p); |
|
|
2020 | s = g (p, va_arg (v,int)); |
|
|
2021 | va_end (v); |
|
|
2022 | return s; |
|
|
2023 | } |
|
|
2024 | |
|
|
2025 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
|
|
2026 | function prototypes and stuff, but not \xHH hex character constants. |
|
|
2027 | These do not provoke an error unfortunately, instead are silently treated |
|
|
2028 | as an "x". The following induces an error, until -std is added to get |
|
|
2029 | proper ANSI mode. Curiously \x00 != x always comes out true, for an |
|
|
2030 | array size at least. It is necessary to write \x00 == 0 to get something |
|
|
2031 | that is true only with -std. */ |
|
|
2032 | int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; |
|
|
2033 | |
|
|
2034 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
|
|
2035 | inside strings and character constants. */ |
|
|
2036 | #define FOO(x) '\''x'\'' |
|
|
2037 | int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; |
|
|
2038 | |
|
|
2039 | int test (int i, double x); |
|
|
2040 | struct s1 {int (*f) (int a);}; |
|
|
2041 | struct s2 {int (*f) (double a);}; |
|
|
2042 | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
|
|
2043 | int, int);' |
|
|
2044 | |
|
|
2045 | # Test code for whether the C compiler supports C89 (body of main). |
|
|
2046 | ac_c_conftest_c89_main=' |
|
|
2047 | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
|
|
2048 | ' |
|
|
2049 | |
|
|
2050 | # Test code for whether the C compiler supports C99 (global declarations) |
|
|
2051 | ac_c_conftest_c99_globals=' |
|
|
2052 | // Does the compiler advertise C99 conformance? |
|
|
2053 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
|
|
2054 | # error "Compiler does not advertise C99 conformance" |
|
|
2055 | #endif |
|
|
2056 | |
|
|
2057 | #include <stdbool.h> |
|
|
2058 | extern int puts (const char *); |
|
|
2059 | extern int printf (const char *, ...); |
|
|
2060 | extern int dprintf (int, const char *, ...); |
|
|
2061 | extern void *malloc (size_t); |
|
|
2062 | |
|
|
2063 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
|
|
2064 | // dprintf is used instead of fprintf to avoid needing to declare |
|
|
2065 | // FILE and stderr. |
|
|
2066 | #define debug(...) dprintf (2, __VA_ARGS__) |
|
|
2067 | #define showlist(...) puts (#__VA_ARGS__) |
|
|
2068 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
|
|
2069 | static void |
|
|
2070 | test_varargs_macros (void) |
|
|
2071 | { |
|
|
2072 | int x = 1234; |
|
|
2073 | int y = 5678; |
|
|
2074 | debug ("Flag"); |
|
|
2075 | debug ("X = %d\n", x); |
|
|
2076 | showlist (The first, second, and third items.); |
|
|
2077 | report (x>y, "x is %d but y is %d", x, y); |
|
|
2078 | } |
|
|
2079 | |
|
|
2080 | // Check long long types. |
|
|
2081 | #define BIG64 18446744073709551615ull |
|
|
2082 | #define BIG32 4294967295ul |
|
|
2083 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
|
|
2084 | #if !BIG_OK |
|
|
2085 | #error "your preprocessor is broken" |
|
|
2086 | #endif |
|
|
2087 | #if BIG_OK |
|
|
2088 | #else |
|
|
2089 | #error "your preprocessor is broken" |
|
|
2090 | #endif |
|
|
2091 | static long long int bignum = -9223372036854775807LL; |
|
|
2092 | static unsigned long long int ubignum = BIG64; |
|
|
2093 | |
|
|
2094 | struct incomplete_array |
|
|
2095 | { |
|
|
2096 | int datasize; |
|
|
2097 | double data[]; |
|
|
2098 | }; |
|
|
2099 | |
|
|
2100 | struct named_init { |
|
|
2101 | int number; |
|
|
2102 | const wchar_t *name; |
|
|
2103 | double average; |
|
|
2104 | }; |
|
|
2105 | |
|
|
2106 | typedef const char *ccp; |
|
|
2107 | |
|
|
2108 | static inline int |
|
|
2109 | test_restrict (ccp restrict text) |
|
|
2110 | { |
|
|
2111 | // See if C++-style comments work. |
|
|
2112 | // Iterate through items via the restricted pointer. |
|
|
2113 | // Also check for declarations in for loops. |
|
|
2114 | for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) |
|
|
2115 | continue; |
|
|
2116 | return 0; |
|
|
2117 | } |
|
|
2118 | |
|
|
2119 | // Check varargs and va_copy. |
|
|
2120 | static bool |
|
|
2121 | test_varargs (const char *format, ...) |
|
|
2122 | { |
|
|
2123 | va_list args; |
|
|
2124 | va_start (args, format); |
|
|
2125 | va_list args_copy; |
|
|
2126 | va_copy (args_copy, args); |
|
|
2127 | |
|
|
2128 | const char *str = ""; |
|
|
2129 | int number = 0; |
|
|
2130 | float fnumber = 0; |
|
|
2131 | |
|
|
2132 | while (*format) |
|
|
2133 | { |
|
|
2134 | switch (*format++) |
|
|
2135 | { |
|
|
2136 | case '\''s'\'': // string |
|
|
2137 | str = va_arg (args_copy, const char *); |
|
|
2138 | break; |
|
|
2139 | case '\''d'\'': // int |
|
|
2140 | number = va_arg (args_copy, int); |
|
|
2141 | break; |
|
|
2142 | case '\''f'\'': // float |
|
|
2143 | fnumber = va_arg (args_copy, double); |
|
|
2144 | break; |
|
|
2145 | default: |
|
|
2146 | break; |
|
|
2147 | } |
|
|
2148 | } |
|
|
2149 | va_end (args_copy); |
|
|
2150 | va_end (args); |
|
|
2151 | |
|
|
2152 | return *str && number && fnumber; |
|
|
2153 | } |
|
|
2154 | ' |
|
|
2155 | |
|
|
2156 | # Test code for whether the C compiler supports C99 (body of main). |
|
|
2157 | ac_c_conftest_c99_main=' |
|
|
2158 | // Check bool. |
|
|
2159 | _Bool success = false; |
|
|
2160 | success |= (argc != 0); |
|
|
2161 | |
|
|
2162 | // Check restrict. |
|
|
2163 | if (test_restrict ("String literal") == 0) |
|
|
2164 | success = true; |
|
|
2165 | char *restrict newvar = "Another string"; |
|
|
2166 | |
|
|
2167 | // Check varargs. |
|
|
2168 | success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); |
|
|
2169 | test_varargs_macros (); |
|
|
2170 | |
|
|
2171 | // Check flexible array members. |
|
|
2172 | struct incomplete_array *ia = |
|
|
2173 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
|
|
2174 | ia->datasize = 10; |
|
|
2175 | for (int i = 0; i < ia->datasize; ++i) |
|
|
2176 | ia->data[i] = i * 1.234; |
|
|
2177 | |
|
|
2178 | // Check named initializers. |
|
|
2179 | struct named_init ni = { |
|
|
2180 | .number = 34, |
|
|
2181 | .name = L"Test wide string", |
|
|
2182 | .average = 543.34343, |
|
|
2183 | }; |
|
|
2184 | |
|
|
2185 | ni.number = 58; |
|
|
2186 | |
|
|
2187 | int dynamic_array[ni.number]; |
|
|
2188 | dynamic_array[0] = argv[0][0]; |
|
|
2189 | dynamic_array[ni.number - 1] = 543; |
|
|
2190 | |
|
|
2191 | // work around unused variable warnings |
|
|
2192 | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' |
|
|
2193 | || dynamic_array[ni.number - 1] != 543); |
|
|
2194 | ' |
|
|
2195 | |
|
|
2196 | # Test code for whether the C compiler supports C11 (global declarations) |
|
|
2197 | ac_c_conftest_c11_globals=' |
|
|
2198 | // Does the compiler advertise C11 conformance? |
|
|
2199 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L |
|
|
2200 | # error "Compiler does not advertise C11 conformance" |
|
|
2201 | #endif |
|
|
2202 | |
|
|
2203 | // Check _Alignas. |
|
|
2204 | char _Alignas (double) aligned_as_double; |
|
|
2205 | char _Alignas (0) no_special_alignment; |
|
|
2206 | extern char aligned_as_int; |
|
|
2207 | char _Alignas (0) _Alignas (int) aligned_as_int; |
|
|
2208 | |
|
|
2209 | // Check _Alignof. |
|
|
2210 | enum |
|
|
2211 | { |
|
|
2212 | int_alignment = _Alignof (int), |
|
|
2213 | int_array_alignment = _Alignof (int[100]), |
|
|
2214 | char_alignment = _Alignof (char) |
|
|
2215 | }; |
|
|
2216 | _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); |
|
|
2217 | |
|
|
2218 | // Check _Noreturn. |
|
|
2219 | int _Noreturn does_not_return (void) { for (;;) continue; } |
|
|
2220 | |
|
|
2221 | // Check _Static_assert. |
|
|
2222 | struct test_static_assert |
|
|
2223 | { |
|
|
2224 | int x; |
|
|
2225 | _Static_assert (sizeof (int) <= sizeof (long int), |
|
|
2226 | "_Static_assert does not work in struct"); |
|
|
2227 | long int y; |
|
|
2228 | }; |
|
|
2229 | |
|
|
2230 | // Check UTF-8 literals. |
|
|
2231 | #define u8 syntax error! |
|
|
2232 | char const utf8_literal[] = u8"happens to be ASCII" "another string"; |
|
|
2233 | |
|
|
2234 | // Check duplicate typedefs. |
|
|
2235 | typedef long *long_ptr; |
|
|
2236 | typedef long int *long_ptr; |
|
|
2237 | typedef long_ptr long_ptr; |
|
|
2238 | |
|
|
2239 | // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. |
|
|
2240 | struct anonymous |
|
|
2241 | { |
|
|
2242 | union { |
|
|
2243 | struct { int i; int j; }; |
|
|
2244 | struct { int k; long int l; } w; |
|
|
2245 | }; |
|
|
2246 | int m; |
|
|
2247 | } v1; |
|
|
2248 | ' |
|
|
2249 | |
|
|
2250 | # Test code for whether the C compiler supports C11 (body of main). |
|
|
2251 | ac_c_conftest_c11_main=' |
|
|
2252 | _Static_assert ((offsetof (struct anonymous, i) |
|
|
2253 | == offsetof (struct anonymous, w.k)), |
|
|
2254 | "Anonymous union alignment botch"); |
|
|
2255 | v1.i = 2; |
|
|
2256 | v1.w.k = 5; |
|
|
2257 | ok |= v1.i != 5; |
|
|
2258 | ' |
|
|
2259 | |
|
|
2260 | # Test code for whether the C compiler supports C11 (complete). |
|
|
2261 | ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} |
|
|
2262 | ${ac_c_conftest_c99_globals} |
|
|
2263 | ${ac_c_conftest_c11_globals} |
|
|
2264 | |
|
|
2265 | int |
|
|
2266 | main (int argc, char **argv) |
|
|
2267 | { |
|
|
2268 | int ok = 0; |
|
|
2269 | ${ac_c_conftest_c89_main} |
|
|
2270 | ${ac_c_conftest_c99_main} |
|
|
2271 | ${ac_c_conftest_c11_main} |
|
|
2272 | return ok; |
|
|
2273 | } |
|
|
2274 | " |
|
|
2275 | |
|
|
2276 | # Test code for whether the C compiler supports C99 (complete). |
|
|
2277 | ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} |
|
|
2278 | ${ac_c_conftest_c99_globals} |
|
|
2279 | |
|
|
2280 | int |
|
|
2281 | main (int argc, char **argv) |
|
|
2282 | { |
|
|
2283 | int ok = 0; |
|
|
2284 | ${ac_c_conftest_c89_main} |
|
|
2285 | ${ac_c_conftest_c99_main} |
|
|
2286 | return ok; |
|
|
2287 | } |
|
|
2288 | " |
|
|
2289 | |
|
|
2290 | # Test code for whether the C compiler supports C89 (complete). |
|
|
2291 | ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} |
|
|
2292 | |
|
|
2293 | int |
|
|
2294 | main (int argc, char **argv) |
|
|
2295 | { |
|
|
2296 | int ok = 0; |
|
|
2297 | ${ac_c_conftest_c89_main} |
|
|
2298 | return ok; |
|
|
2299 | } |
|
|
2300 | " |
|
|
2301 | |
|
|
2302 | as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" |
|
|
2303 | as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" |
|
|
2304 | as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" |
|
|
2305 | as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" |
|
|
2306 | as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" |
|
|
2307 | as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" |
|
|
2308 | as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" |
|
|
2309 | as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" |
|
|
2310 | as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" |
|
|
2311 | # Check that the precious variables saved in the cache have kept the same |
|
|
2312 | # value. |
|
|
2313 | ac_cache_corrupted=false |
|
|
2314 | for ac_var in $ac_precious_vars; do |
|
|
2315 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
|
|
2316 | eval ac_new_set=\$ac_env_${ac_var}_set |
|
|
2317 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
|
|
2318 | eval ac_new_val=\$ac_env_${ac_var}_value |
|
|
2319 | case $ac_old_set,$ac_new_set in |
|
|
2320 | set,) |
|
|
2321 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
|
|
2322 | printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
|
|
2323 | ac_cache_corrupted=: ;; |
|
|
2324 | ,set) |
|
|
2325 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
|
|
2326 | printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
|
|
2327 | ac_cache_corrupted=: ;; |
|
|
2328 | ,);; |
|
|
2329 | *) |
|
|
2330 | if test "x$ac_old_val" != "x$ac_new_val"; then |
|
|
2331 | # differences in whitespace do not lead to failure. |
|
|
2332 | ac_old_val_w=`echo x $ac_old_val` |
|
|
2333 | ac_new_val_w=`echo x $ac_new_val` |
|
|
2334 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
|
|
2335 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
|
|
2336 | printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
|
|
2337 | ac_cache_corrupted=: |
|
|
2338 | else |
|
|
2339 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
|
|
2340 | printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
|
|
2341 | eval $ac_var=\$ac_old_val |
521 | fi |
2342 | fi |
|
|
2343 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
|
|
2344 | printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} |
|
|
2345 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
|
|
2346 | printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} |
|
|
2347 | fi;; |
|
|
2348 | esac |
|
|
2349 | # Pass precious variables to config.status. |
|
|
2350 | if test "$ac_new_set" = set; then |
|
|
2351 | case $ac_new_val in |
|
|
2352 | *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
|
2353 | *) ac_arg=$ac_var=$ac_new_val ;; |
|
|
2354 | esac |
|
|
2355 | case " $ac_configure_args " in |
|
|
2356 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
|
|
2357 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
|
|
2358 | esac |
|
|
2359 | fi |
|
|
2360 | done |
|
|
2361 | if $ac_cache_corrupted; then |
|
|
2362 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
|
2363 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
|
|
2364 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
|
|
2365 | printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} |
|
|
2366 | as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' |
|
|
2367 | and start over" "$LINENO" 5 |
|
|
2368 | fi |
|
|
2369 | ## -------------------- ## |
|
|
2370 | ## Main body of script. ## |
|
|
2371 | ## -------------------- ## |
522 | |
2372 | |
|
|
2373 | ac_ext=c |
|
|
2374 | ac_cpp='$CPP $CPPFLAGS' |
|
|
2375 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
2376 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
2377 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
523 | |
2378 | |
524 | |
2379 | |
|
|
2380 | |
|
|
2381 | ac_config_headers="$ac_config_headers config.h" |
525 | |
2382 | |
526 | |
2383 | |
527 | # |
2384 | # |
528 | # package revision |
2385 | # package revision |
529 | # |
2386 | # |
530 | VERSION=0.5 |
2387 | VERSION=0.5 |
531 | PATCH=20 |
2388 | PATCH=20 |
532 | |
2389 | |
|
|
2390 | |
|
|
2391 | # Check whether --with-cc was given. |
|
|
2392 | if test ${with_cc+y} |
|
|
2393 | then : |
|
|
2394 | withval=$with_cc; CC=$with_cc |
|
|
2395 | fi |
|
|
2396 | |
|
|
2397 | |
|
|
2398 | # Check whether --with-cflags was given. |
|
|
2399 | if test ${with_cflags+y} |
|
|
2400 | then : |
|
|
2401 | withval=$with_cflags; CFLAGS=$with_cflags |
|
|
2402 | fi |
|
|
2403 | |
|
|
2404 | |
|
|
2405 | |
|
|
2406 | |
|
|
2407 | |
|
|
2408 | |
|
|
2409 | |
|
|
2410 | |
|
|
2411 | |
|
|
2412 | |
|
|
2413 | |
|
|
2414 | ac_ext=c |
|
|
2415 | ac_cpp='$CPP $CPPFLAGS' |
|
|
2416 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
2417 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
2418 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
2419 | if test -n "$ac_tool_prefix"; then |
533 | # Extract the first word of "gcc", so it can be a program name with args. |
2420 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
534 | set dummy gcc; ac_word=$2 |
2421 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
535 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2422 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
536 | echo "configure:537: checking for $ac_word" >&5 |
2423 | printf %s "checking for $ac_word... " >&6; } |
537 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
2424 | if test ${ac_cv_prog_CC+y} |
538 | echo $ac_n "(cached) $ac_c" 1>&6 |
2425 | then : |
539 | else |
2426 | printf %s "(cached) " >&6 |
|
|
2427 | else $as_nop |
540 | if test -n "$CC"; then |
2428 | if test -n "$CC"; then |
541 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2429 | ac_cv_prog_CC="$CC" # Let the user override the test. |
542 | else |
2430 | else |
543 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
544 | ac_dummy="$PATH" |
2432 | for as_dir in $PATH |
545 | for ac_dir in $ac_dummy; do |
2433 | do |
546 | test -z "$ac_dir" && ac_dir=. |
2434 | IFS=$as_save_IFS |
547 | if test -f $ac_dir/$ac_word; then |
2435 | case $as_dir in #((( |
548 | ac_cv_prog_CC="gcc" |
2436 | '') as_dir=./ ;; |
|
|
2437 | */) ;; |
|
|
2438 | *) as_dir=$as_dir/ ;; |
|
|
2439 | esac |
|
|
2440 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
2441 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
|
|
2442 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
|
|
2443 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
549 | break |
2444 | break 2 |
550 | fi |
2445 | fi |
|
|
2446 | done |
551 | done |
2447 | done |
552 | IFS="$ac_save_ifs" |
2448 | IFS=$as_save_IFS |
|
|
2449 | |
553 | fi |
2450 | fi |
554 | fi |
2451 | fi |
555 | CC="$ac_cv_prog_CC" |
2452 | CC=$ac_cv_prog_CC |
556 | if test -n "$CC"; then |
2453 | if test -n "$CC"; then |
557 | echo "$ac_t""$CC" 1>&6 |
2454 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|
|
2455 | printf "%s\n" "$CC" >&6; } |
558 | else |
2456 | else |
559 | echo "$ac_t""no" 1>&6 |
2457 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
2458 | printf "%s\n" "no" >&6; } |
560 | fi |
2459 | fi |
561 | |
2460 | |
|
|
2461 | |
|
|
2462 | fi |
|
|
2463 | if test -z "$ac_cv_prog_CC"; then |
|
|
2464 | ac_ct_CC=$CC |
|
|
2465 | # Extract the first word of "gcc", so it can be a program name with args. |
|
|
2466 | set dummy gcc; ac_word=$2 |
|
|
2467 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
2468 | printf %s "checking for $ac_word... " >&6; } |
|
|
2469 | if test ${ac_cv_prog_ac_ct_CC+y} |
|
|
2470 | then : |
|
|
2471 | printf %s "(cached) " >&6 |
|
|
2472 | else $as_nop |
|
|
2473 | if test -n "$ac_ct_CC"; then |
|
|
2474 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
|
2475 | else |
|
|
2476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
2477 | for as_dir in $PATH |
|
|
2478 | do |
|
|
2479 | IFS=$as_save_IFS |
|
|
2480 | case $as_dir in #((( |
|
|
2481 | '') as_dir=./ ;; |
|
|
2482 | */) ;; |
|
|
2483 | *) as_dir=$as_dir/ ;; |
|
|
2484 | esac |
|
|
2485 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
2486 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
|
|
2487 | ac_cv_prog_ac_ct_CC="gcc" |
|
|
2488 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
|
|
2489 | break 2 |
|
|
2490 | fi |
|
|
2491 | done |
|
|
2492 | done |
|
|
2493 | IFS=$as_save_IFS |
|
|
2494 | |
|
|
2495 | fi |
|
|
2496 | fi |
|
|
2497 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
|
2498 | if test -n "$ac_ct_CC"; then |
|
|
2499 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
|
|
2500 | printf "%s\n" "$ac_ct_CC" >&6; } |
|
|
2501 | else |
|
|
2502 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
2503 | printf "%s\n" "no" >&6; } |
|
|
2504 | fi |
|
|
2505 | |
|
|
2506 | if test "x$ac_ct_CC" = x; then |
|
|
2507 | CC="" |
|
|
2508 | else |
|
|
2509 | case $cross_compiling:$ac_tool_warned in |
|
|
2510 | yes:) |
|
|
2511 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
|
2512 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
|
2513 | ac_tool_warned=yes ;; |
|
|
2514 | esac |
|
|
2515 | CC=$ac_ct_CC |
|
|
2516 | fi |
|
|
2517 | else |
|
|
2518 | CC="$ac_cv_prog_CC" |
|
|
2519 | fi |
|
|
2520 | |
|
|
2521 | if test -z "$CC"; then |
|
|
2522 | if test -n "$ac_tool_prefix"; then |
|
|
2523 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
|
|
2524 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
|
|
2525 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
2526 | printf %s "checking for $ac_word... " >&6; } |
|
|
2527 | if test ${ac_cv_prog_CC+y} |
|
|
2528 | then : |
|
|
2529 | printf %s "(cached) " >&6 |
|
|
2530 | else $as_nop |
|
|
2531 | if test -n "$CC"; then |
|
|
2532 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|
|
2533 | else |
|
|
2534 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
2535 | for as_dir in $PATH |
|
|
2536 | do |
|
|
2537 | IFS=$as_save_IFS |
|
|
2538 | case $as_dir in #((( |
|
|
2539 | '') as_dir=./ ;; |
|
|
2540 | */) ;; |
|
|
2541 | *) as_dir=$as_dir/ ;; |
|
|
2542 | esac |
|
|
2543 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
2544 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
|
|
2545 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
|
|
2546 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
|
|
2547 | break 2 |
|
|
2548 | fi |
|
|
2549 | done |
|
|
2550 | done |
|
|
2551 | IFS=$as_save_IFS |
|
|
2552 | |
|
|
2553 | fi |
|
|
2554 | fi |
|
|
2555 | CC=$ac_cv_prog_CC |
|
|
2556 | if test -n "$CC"; then |
|
|
2557 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|
|
2558 | printf "%s\n" "$CC" >&6; } |
|
|
2559 | else |
|
|
2560 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
2561 | printf "%s\n" "no" >&6; } |
|
|
2562 | fi |
|
|
2563 | |
|
|
2564 | |
|
|
2565 | fi |
|
|
2566 | fi |
562 | if test -z "$CC"; then |
2567 | if test -z "$CC"; then |
563 | # Extract the first word of "cc", so it can be a program name with args. |
2568 | # Extract the first word of "cc", so it can be a program name with args. |
564 | set dummy cc; ac_word=$2 |
2569 | set dummy cc; ac_word=$2 |
565 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2570 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
566 | echo "configure:567: checking for $ac_word" >&5 |
2571 | printf %s "checking for $ac_word... " >&6; } |
567 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
2572 | if test ${ac_cv_prog_CC+y} |
568 | echo $ac_n "(cached) $ac_c" 1>&6 |
2573 | then : |
569 | else |
2574 | printf %s "(cached) " >&6 |
|
|
2575 | else $as_nop |
570 | if test -n "$CC"; then |
2576 | if test -n "$CC"; then |
571 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2577 | ac_cv_prog_CC="$CC" # Let the user override the test. |
572 | else |
2578 | else |
573 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
|
|
574 | ac_prog_rejected=no |
2579 | ac_prog_rejected=no |
575 | ac_dummy="$PATH" |
2580 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
576 | for ac_dir in $ac_dummy; do |
2581 | for as_dir in $PATH |
577 | test -z "$ac_dir" && ac_dir=. |
2582 | do |
578 | if test -f $ac_dir/$ac_word; then |
2583 | IFS=$as_save_IFS |
|
|
2584 | case $as_dir in #((( |
|
|
2585 | '') as_dir=./ ;; |
|
|
2586 | */) ;; |
|
|
2587 | *) as_dir=$as_dir/ ;; |
|
|
2588 | esac |
|
|
2589 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
2590 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
579 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
2591 | if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
580 | ac_prog_rejected=yes |
2592 | ac_prog_rejected=yes |
581 | continue |
2593 | continue |
582 | fi |
2594 | fi |
583 | ac_cv_prog_CC="cc" |
2595 | ac_cv_prog_CC="cc" |
|
|
2596 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
584 | break |
2597 | break 2 |
585 | fi |
2598 | fi |
|
|
2599 | done |
586 | done |
2600 | done |
587 | IFS="$ac_save_ifs" |
2601 | IFS=$as_save_IFS |
|
|
2602 | |
588 | if test $ac_prog_rejected = yes; then |
2603 | if test $ac_prog_rejected = yes; then |
589 | # We found a bogon in the path, so make sure we never use it. |
2604 | # We found a bogon in the path, so make sure we never use it. |
590 | set dummy $ac_cv_prog_CC |
2605 | set dummy $ac_cv_prog_CC |
591 | shift |
2606 | shift |
592 | if test $# -gt 0; then |
2607 | if test $# != 0; then |
593 | # We chose a different compiler from the bogus one. |
2608 | # We chose a different compiler from the bogus one. |
594 | # However, it has the same basename, so the bogon will be chosen |
2609 | # However, it has the same basename, so the bogon will be chosen |
595 | # first if we set CC to just the basename; use the full file name. |
2610 | # first if we set CC to just the basename; use the full file name. |
596 | shift |
2611 | shift |
597 | set dummy "$ac_dir/$ac_word" "$@" |
2612 | ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
598 | shift |
|
|
599 | ac_cv_prog_CC="$@" |
|
|
600 | fi |
2613 | fi |
601 | fi |
2614 | fi |
602 | fi |
2615 | fi |
603 | fi |
2616 | fi |
604 | CC="$ac_cv_prog_CC" |
2617 | CC=$ac_cv_prog_CC |
605 | if test -n "$CC"; then |
2618 | if test -n "$CC"; then |
606 | echo "$ac_t""$CC" 1>&6 |
2619 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|
|
2620 | printf "%s\n" "$CC" >&6; } |
607 | else |
2621 | else |
608 | echo "$ac_t""no" 1>&6 |
2622 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
2623 | printf "%s\n" "no" >&6; } |
609 | fi |
2624 | fi |
610 | |
2625 | |
|
|
2626 | |
|
|
2627 | fi |
611 | if test -z "$CC"; then |
2628 | if test -z "$CC"; then |
612 | case "`uname -s`" in |
2629 | if test -n "$ac_tool_prefix"; then |
613 | *win32* | *WIN32*) |
2630 | for ac_prog in cl.exe |
|
|
2631 | do |
614 | # Extract the first word of "cl", so it can be a program name with args. |
2632 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
615 | set dummy cl; ac_word=$2 |
2633 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
616 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2634 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
617 | echo "configure:618: checking for $ac_word" >&5 |
2635 | printf %s "checking for $ac_word... " >&6; } |
618 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
2636 | if test ${ac_cv_prog_CC+y} |
619 | echo $ac_n "(cached) $ac_c" 1>&6 |
2637 | then : |
620 | else |
2638 | printf %s "(cached) " >&6 |
|
|
2639 | else $as_nop |
621 | if test -n "$CC"; then |
2640 | if test -n "$CC"; then |
622 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2641 | ac_cv_prog_CC="$CC" # Let the user override the test. |
623 | else |
2642 | else |
624 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
2643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
625 | ac_dummy="$PATH" |
2644 | for as_dir in $PATH |
626 | for ac_dir in $ac_dummy; do |
2645 | do |
627 | test -z "$ac_dir" && ac_dir=. |
2646 | IFS=$as_save_IFS |
628 | if test -f $ac_dir/$ac_word; then |
2647 | case $as_dir in #((( |
629 | ac_cv_prog_CC="cl" |
2648 | '') as_dir=./ ;; |
|
|
2649 | */) ;; |
|
|
2650 | *) as_dir=$as_dir/ ;; |
|
|
2651 | esac |
|
|
2652 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
2653 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
|
|
2654 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
|
|
2655 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
630 | break |
2656 | break 2 |
631 | fi |
2657 | fi |
|
|
2658 | done |
632 | done |
2659 | done |
633 | IFS="$ac_save_ifs" |
2660 | IFS=$as_save_IFS |
|
|
2661 | |
634 | fi |
2662 | fi |
635 | fi |
2663 | fi |
636 | CC="$ac_cv_prog_CC" |
2664 | CC=$ac_cv_prog_CC |
637 | if test -n "$CC"; then |
2665 | if test -n "$CC"; then |
638 | echo "$ac_t""$CC" 1>&6 |
2666 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|
|
2667 | printf "%s\n" "$CC" >&6; } |
639 | else |
2668 | else |
640 | echo "$ac_t""no" 1>&6 |
2669 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
2670 | printf "%s\n" "no" >&6; } |
641 | fi |
2671 | fi |
642 | ;; |
2672 | |
|
|
2673 | |
|
|
2674 | test -n "$CC" && break |
|
|
2675 | done |
|
|
2676 | fi |
|
|
2677 | if test -z "$CC"; then |
|
|
2678 | ac_ct_CC=$CC |
|
|
2679 | for ac_prog in cl.exe |
|
|
2680 | do |
|
|
2681 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
|
2682 | set dummy $ac_prog; ac_word=$2 |
|
|
2683 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
2684 | printf %s "checking for $ac_word... " >&6; } |
|
|
2685 | if test ${ac_cv_prog_ac_ct_CC+y} |
|
|
2686 | then : |
|
|
2687 | printf %s "(cached) " >&6 |
|
|
2688 | else $as_nop |
|
|
2689 | if test -n "$ac_ct_CC"; then |
|
|
2690 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
|
2691 | else |
|
|
2692 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
2693 | for as_dir in $PATH |
|
|
2694 | do |
|
|
2695 | IFS=$as_save_IFS |
|
|
2696 | case $as_dir in #((( |
|
|
2697 | '') as_dir=./ ;; |
|
|
2698 | */) ;; |
|
|
2699 | *) as_dir=$as_dir/ ;; |
643 | esac |
2700 | esac |
|
|
2701 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
2702 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
|
|
2703 | ac_cv_prog_ac_ct_CC="$ac_prog" |
|
|
2704 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
|
|
2705 | break 2 |
644 | fi |
2706 | fi |
645 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
2707 | done |
646 | fi |
2708 | done |
|
|
2709 | IFS=$as_save_IFS |
647 | |
2710 | |
648 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
2711 | fi |
649 | echo "configure:650: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
2712 | fi |
|
|
2713 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
|
2714 | if test -n "$ac_ct_CC"; then |
|
|
2715 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
|
|
2716 | printf "%s\n" "$ac_ct_CC" >&6; } |
|
|
2717 | else |
|
|
2718 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
2719 | printf "%s\n" "no" >&6; } |
|
|
2720 | fi |
650 | |
2721 | |
651 | ac_ext=c |
|
|
652 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
|
|
653 | ac_cpp='$CPP $CPPFLAGS' |
|
|
654 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
|
|
655 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|
|
656 | cross_compiling=$ac_cv_prog_cc_cross |
|
|
657 | |
2722 | |
658 | cat > conftest.$ac_ext << EOF |
2723 | test -n "$ac_ct_CC" && break |
|
|
2724 | done |
659 | |
2725 | |
660 | #line 661 "configure" |
2726 | if test "x$ac_ct_CC" = x; then |
661 | #include "confdefs.h" |
2727 | CC="" |
662 | |
|
|
663 | main(){return(0);} |
|
|
664 | EOF |
|
|
665 | if { (eval echo configure:666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
|
|
666 | ac_cv_prog_cc_works=yes |
|
|
667 | # If we can't run a trivial program, we are probably using a cross compiler. |
|
|
668 | if (./conftest; exit) 2>/dev/null; then |
|
|
669 | ac_cv_prog_cc_cross=no |
|
|
670 | else |
2728 | else |
671 | ac_cv_prog_cc_cross=yes |
2729 | case $cross_compiling:$ac_tool_warned in |
|
|
2730 | yes:) |
|
|
2731 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
|
2732 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
|
2733 | ac_tool_warned=yes ;; |
|
|
2734 | esac |
|
|
2735 | CC=$ac_ct_CC |
|
|
2736 | fi |
|
|
2737 | fi |
|
|
2738 | |
|
|
2739 | fi |
|
|
2740 | if test -z "$CC"; then |
|
|
2741 | if test -n "$ac_tool_prefix"; then |
|
|
2742 | # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. |
|
|
2743 | set dummy ${ac_tool_prefix}clang; ac_word=$2 |
|
|
2744 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
2745 | printf %s "checking for $ac_word... " >&6; } |
|
|
2746 | if test ${ac_cv_prog_CC+y} |
|
|
2747 | then : |
|
|
2748 | printf %s "(cached) " >&6 |
|
|
2749 | else $as_nop |
|
|
2750 | if test -n "$CC"; then |
|
|
2751 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|
|
2752 | else |
|
|
2753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
2754 | for as_dir in $PATH |
|
|
2755 | do |
|
|
2756 | IFS=$as_save_IFS |
|
|
2757 | case $as_dir in #((( |
|
|
2758 | '') as_dir=./ ;; |
|
|
2759 | */) ;; |
|
|
2760 | *) as_dir=$as_dir/ ;; |
|
|
2761 | esac |
|
|
2762 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
2763 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
|
|
2764 | ac_cv_prog_CC="${ac_tool_prefix}clang" |
|
|
2765 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
|
|
2766 | break 2 |
|
|
2767 | fi |
|
|
2768 | done |
|
|
2769 | done |
|
|
2770 | IFS=$as_save_IFS |
|
|
2771 | |
|
|
2772 | fi |
|
|
2773 | fi |
|
|
2774 | CC=$ac_cv_prog_CC |
|
|
2775 | if test -n "$CC"; then |
|
|
2776 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|
|
2777 | printf "%s\n" "$CC" >&6; } |
|
|
2778 | else |
|
|
2779 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
2780 | printf "%s\n" "no" >&6; } |
|
|
2781 | fi |
|
|
2782 | |
|
|
2783 | |
|
|
2784 | fi |
|
|
2785 | if test -z "$ac_cv_prog_CC"; then |
|
|
2786 | ac_ct_CC=$CC |
|
|
2787 | # Extract the first word of "clang", so it can be a program name with args. |
|
|
2788 | set dummy clang; ac_word=$2 |
|
|
2789 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
2790 | printf %s "checking for $ac_word... " >&6; } |
|
|
2791 | if test ${ac_cv_prog_ac_ct_CC+y} |
|
|
2792 | then : |
|
|
2793 | printf %s "(cached) " >&6 |
|
|
2794 | else $as_nop |
|
|
2795 | if test -n "$ac_ct_CC"; then |
|
|
2796 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
|
2797 | else |
|
|
2798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
2799 | for as_dir in $PATH |
|
|
2800 | do |
|
|
2801 | IFS=$as_save_IFS |
|
|
2802 | case $as_dir in #((( |
|
|
2803 | '') as_dir=./ ;; |
|
|
2804 | */) ;; |
|
|
2805 | *) as_dir=$as_dir/ ;; |
|
|
2806 | esac |
|
|
2807 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
2808 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
|
|
2809 | ac_cv_prog_ac_ct_CC="clang" |
|
|
2810 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
|
|
2811 | break 2 |
|
|
2812 | fi |
|
|
2813 | done |
|
|
2814 | done |
|
|
2815 | IFS=$as_save_IFS |
|
|
2816 | |
|
|
2817 | fi |
|
|
2818 | fi |
|
|
2819 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
|
2820 | if test -n "$ac_ct_CC"; then |
|
|
2821 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
|
|
2822 | printf "%s\n" "$ac_ct_CC" >&6; } |
|
|
2823 | else |
|
|
2824 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
2825 | printf "%s\n" "no" >&6; } |
|
|
2826 | fi |
|
|
2827 | |
|
|
2828 | if test "x$ac_ct_CC" = x; then |
|
|
2829 | CC="" |
|
|
2830 | else |
|
|
2831 | case $cross_compiling:$ac_tool_warned in |
|
|
2832 | yes:) |
|
|
2833 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
|
2834 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
|
2835 | ac_tool_warned=yes ;; |
|
|
2836 | esac |
|
|
2837 | CC=$ac_ct_CC |
672 | fi |
2838 | fi |
673 | else |
2839 | else |
674 | echo "configure: failed program was:" >&5 |
2840 | CC="$ac_cv_prog_CC" |
|
|
2841 | fi |
|
|
2842 | |
|
|
2843 | fi |
|
|
2844 | |
|
|
2845 | |
|
|
2846 | test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
|
2847 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
|
|
2848 | as_fn_error $? "no acceptable C compiler found in \$PATH |
|
|
2849 | See \`config.log' for more details" "$LINENO" 5; } |
|
|
2850 | |
|
|
2851 | # Provide some information about the compiler. |
|
|
2852 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
|
|
2853 | set X $ac_compile |
|
|
2854 | ac_compiler=$2 |
|
|
2855 | for ac_option in --version -v -V -qversion -version; do |
|
|
2856 | { { ac_try="$ac_compiler $ac_option >&5" |
|
|
2857 | case "(($ac_try" in |
|
|
2858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2859 | *) ac_try_echo=$ac_try;; |
|
|
2860 | esac |
|
|
2861 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
2862 | printf "%s\n" "$ac_try_echo"; } >&5 |
|
|
2863 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
|
|
2864 | ac_status=$? |
|
|
2865 | if test -s conftest.err; then |
|
|
2866 | sed '10a\ |
|
|
2867 | ... rest of stderr output deleted ... |
|
|
2868 | 10q' conftest.err >conftest.er1 |
675 | cat conftest.$ac_ext >&5 |
2869 | cat conftest.er1 >&5 |
676 | ac_cv_prog_cc_works=no |
2870 | fi |
|
|
2871 | rm -f conftest.er1 conftest.err |
|
|
2872 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
2873 | test $ac_status = 0; } |
|
|
2874 | done |
|
|
2875 | |
|
|
2876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
2877 | /* end confdefs.h. */ |
|
|
2878 | |
|
|
2879 | int |
|
|
2880 | main (void) |
|
|
2881 | { |
|
|
2882 | |
|
|
2883 | ; |
|
|
2884 | return 0; |
|
|
2885 | } |
|
|
2886 | _ACEOF |
|
|
2887 | ac_clean_files_save=$ac_clean_files |
|
|
2888 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
|
|
2889 | # Try to create an executable without -o first, disregard a.out. |
|
|
2890 | # It will help us diagnose broken compilers, and finding out an intuition |
|
|
2891 | # of exeext. |
|
|
2892 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
|
|
2893 | printf %s "checking whether the C compiler works... " >&6; } |
|
|
2894 | ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
|
|
2895 | |
|
|
2896 | # The possible output files: |
|
|
2897 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
|
|
2898 | |
|
|
2899 | ac_rmfiles= |
|
|
2900 | for ac_file in $ac_files |
|
|
2901 | do |
|
|
2902 | case $ac_file in |
|
|
2903 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
|
|
2904 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
|
|
2905 | esac |
|
|
2906 | done |
|
|
2907 | rm -f $ac_rmfiles |
|
|
2908 | |
|
|
2909 | if { { ac_try="$ac_link_default" |
|
|
2910 | case "(($ac_try" in |
|
|
2911 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2912 | *) ac_try_echo=$ac_try;; |
|
|
2913 | esac |
|
|
2914 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
2915 | printf "%s\n" "$ac_try_echo"; } >&5 |
|
|
2916 | (eval "$ac_link_default") 2>&5 |
|
|
2917 | ac_status=$? |
|
|
2918 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
2919 | test $ac_status = 0; } |
|
|
2920 | then : |
|
|
2921 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
|
|
2922 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
|
|
2923 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
|
|
2924 | # so that the user can short-circuit this test for compilers unknown to |
|
|
2925 | # Autoconf. |
|
|
2926 | for ac_file in $ac_files '' |
|
|
2927 | do |
|
|
2928 | test -f "$ac_file" || continue |
|
|
2929 | case $ac_file in |
|
|
2930 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
|
|
2931 | ;; |
|
|
2932 | [ab].out ) |
|
|
2933 | # We found the default executable, but exeext='' is most |
|
|
2934 | # certainly right. |
|
|
2935 | break;; |
|
|
2936 | *.* ) |
|
|
2937 | if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; |
|
|
2938 | then :; else |
|
|
2939 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
677 | fi |
2940 | fi |
678 | rm -fr conftest* |
2941 | # We set ac_cv_exeext here because the later test for it is not |
679 | ac_ext=c |
2942 | # safe: cross compilers may not add the suffix if given an `-o' |
680 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
2943 | # argument, so we may need to know it at that point already. |
681 | ac_cpp='$CPP $CPPFLAGS' |
2944 | # Even if this section looks crufty: it has the advantage of |
682 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
2945 | # actually working. |
683 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
2946 | break;; |
684 | cross_compiling=$ac_cv_prog_cc_cross |
2947 | * ) |
|
|
2948 | break;; |
|
|
2949 | esac |
|
|
2950 | done |
|
|
2951 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
685 | |
2952 | |
686 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
2953 | else $as_nop |
687 | if test $ac_cv_prog_cc_works = no; then |
2954 | ac_file='' |
688 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
|
|
689 | fi |
2955 | fi |
690 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
2956 | if test -z "$ac_file" |
691 | echo "configure:692: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
2957 | then : |
692 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
2958 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
693 | cross_compiling=$ac_cv_prog_cc_cross |
2959 | printf "%s\n" "no" >&6; } |
|
|
2960 | printf "%s\n" "$as_me: failed program was:" >&5 |
|
|
2961 | sed 's/^/| /' conftest.$ac_ext >&5 |
694 | |
2962 | |
695 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
2963 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
696 | echo "configure:697: checking whether we are using GNU C" >&5 |
2964 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
697 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
2965 | as_fn_error 77 "C compiler cannot create executables |
698 | echo $ac_n "(cached) $ac_c" 1>&6 |
2966 | See \`config.log' for more details" "$LINENO" 5; } |
|
|
2967 | else $as_nop |
|
|
2968 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
|
2969 | printf "%s\n" "yes" >&6; } |
|
|
2970 | fi |
|
|
2971 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
|
|
2972 | printf %s "checking for C compiler default output file name... " >&6; } |
|
|
2973 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
|
|
2974 | printf "%s\n" "$ac_file" >&6; } |
|
|
2975 | ac_exeext=$ac_cv_exeext |
|
|
2976 | |
|
|
2977 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
|
|
2978 | ac_clean_files=$ac_clean_files_save |
|
|
2979 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
|
|
2980 | printf %s "checking for suffix of executables... " >&6; } |
|
|
2981 | if { { ac_try="$ac_link" |
|
|
2982 | case "(($ac_try" in |
|
|
2983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2984 | *) ac_try_echo=$ac_try;; |
|
|
2985 | esac |
|
|
2986 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
2987 | printf "%s\n" "$ac_try_echo"; } >&5 |
|
|
2988 | (eval "$ac_link") 2>&5 |
|
|
2989 | ac_status=$? |
|
|
2990 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
2991 | test $ac_status = 0; } |
|
|
2992 | then : |
|
|
2993 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
|
|
2994 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
|
|
2995 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
|
|
2996 | # `rm'. |
|
|
2997 | for ac_file in conftest.exe conftest conftest.*; do |
|
|
2998 | test -f "$ac_file" || continue |
|
|
2999 | case $ac_file in |
|
|
3000 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
|
|
3001 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
|
|
3002 | break;; |
|
|
3003 | * ) break;; |
|
|
3004 | esac |
|
|
3005 | done |
|
|
3006 | else $as_nop |
|
|
3007 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
|
3008 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
|
|
3009 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
|
|
3010 | See \`config.log' for more details" "$LINENO" 5; } |
|
|
3011 | fi |
|
|
3012 | rm -f conftest conftest$ac_cv_exeext |
|
|
3013 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
|
|
3014 | printf "%s\n" "$ac_cv_exeext" >&6; } |
|
|
3015 | |
|
|
3016 | rm -f conftest.$ac_ext |
|
|
3017 | EXEEXT=$ac_cv_exeext |
|
|
3018 | ac_exeext=$EXEEXT |
|
|
3019 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3020 | /* end confdefs.h. */ |
|
|
3021 | #include <stdio.h> |
|
|
3022 | int |
|
|
3023 | main (void) |
|
|
3024 | { |
|
|
3025 | FILE *f = fopen ("conftest.out", "w"); |
|
|
3026 | return ferror (f) || fclose (f) != 0; |
|
|
3027 | |
|
|
3028 | ; |
|
|
3029 | return 0; |
|
|
3030 | } |
|
|
3031 | _ACEOF |
|
|
3032 | ac_clean_files="$ac_clean_files conftest.out" |
|
|
3033 | # Check that the compiler produces executables we can run. If not, either |
|
|
3034 | # the compiler is broken, or we cross compile. |
|
|
3035 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
|
|
3036 | printf %s "checking whether we are cross compiling... " >&6; } |
|
|
3037 | if test "$cross_compiling" != yes; then |
|
|
3038 | { { ac_try="$ac_link" |
|
|
3039 | case "(($ac_try" in |
|
|
3040 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
3041 | *) ac_try_echo=$ac_try;; |
|
|
3042 | esac |
|
|
3043 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
3044 | printf "%s\n" "$ac_try_echo"; } >&5 |
|
|
3045 | (eval "$ac_link") 2>&5 |
|
|
3046 | ac_status=$? |
|
|
3047 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
3048 | test $ac_status = 0; } |
|
|
3049 | if { ac_try='./conftest$ac_cv_exeext' |
|
|
3050 | { { case "(($ac_try" in |
|
|
3051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
3052 | *) ac_try_echo=$ac_try;; |
|
|
3053 | esac |
|
|
3054 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
3055 | printf "%s\n" "$ac_try_echo"; } >&5 |
|
|
3056 | (eval "$ac_try") 2>&5 |
|
|
3057 | ac_status=$? |
|
|
3058 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
3059 | test $ac_status = 0; }; }; then |
|
|
3060 | cross_compiling=no |
699 | else |
3061 | else |
700 | cat > conftest.c <<EOF |
3062 | if test "$cross_compiling" = maybe; then |
|
|
3063 | cross_compiling=yes |
|
|
3064 | else |
|
|
3065 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
|
3066 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
|
|
3067 | as_fn_error 77 "cannot run C compiled programs. |
|
|
3068 | If you meant to cross compile, use \`--host'. |
|
|
3069 | See \`config.log' for more details" "$LINENO" 5; } |
|
|
3070 | fi |
|
|
3071 | fi |
|
|
3072 | fi |
|
|
3073 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
|
|
3074 | printf "%s\n" "$cross_compiling" >&6; } |
|
|
3075 | |
|
|
3076 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
|
|
3077 | ac_clean_files=$ac_clean_files_save |
|
|
3078 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
|
|
3079 | printf %s "checking for suffix of object files... " >&6; } |
|
|
3080 | if test ${ac_cv_objext+y} |
|
|
3081 | then : |
|
|
3082 | printf %s "(cached) " >&6 |
|
|
3083 | else $as_nop |
|
|
3084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3085 | /* end confdefs.h. */ |
|
|
3086 | |
|
|
3087 | int |
|
|
3088 | main (void) |
|
|
3089 | { |
|
|
3090 | |
|
|
3091 | ; |
|
|
3092 | return 0; |
|
|
3093 | } |
|
|
3094 | _ACEOF |
|
|
3095 | rm -f conftest.o conftest.obj |
|
|
3096 | if { { ac_try="$ac_compile" |
|
|
3097 | case "(($ac_try" in |
|
|
3098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
3099 | *) ac_try_echo=$ac_try;; |
|
|
3100 | esac |
|
|
3101 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
3102 | printf "%s\n" "$ac_try_echo"; } >&5 |
|
|
3103 | (eval "$ac_compile") 2>&5 |
|
|
3104 | ac_status=$? |
|
|
3105 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
3106 | test $ac_status = 0; } |
|
|
3107 | then : |
|
|
3108 | for ac_file in conftest.o conftest.obj conftest.*; do |
|
|
3109 | test -f "$ac_file" || continue; |
|
|
3110 | case $ac_file in |
|
|
3111 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
|
|
3112 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
|
|
3113 | break;; |
|
|
3114 | esac |
|
|
3115 | done |
|
|
3116 | else $as_nop |
|
|
3117 | printf "%s\n" "$as_me: failed program was:" >&5 |
|
|
3118 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3119 | |
|
|
3120 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
|
3121 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
|
|
3122 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
|
|
3123 | See \`config.log' for more details" "$LINENO" 5; } |
|
|
3124 | fi |
|
|
3125 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
|
|
3126 | fi |
|
|
3127 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
|
|
3128 | printf "%s\n" "$ac_cv_objext" >&6; } |
|
|
3129 | OBJEXT=$ac_cv_objext |
|
|
3130 | ac_objext=$OBJEXT |
|
|
3131 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
|
|
3132 | printf %s "checking whether the compiler supports GNU C... " >&6; } |
|
|
3133 | if test ${ac_cv_c_compiler_gnu+y} |
|
|
3134 | then : |
|
|
3135 | printf %s "(cached) " >&6 |
|
|
3136 | else $as_nop |
|
|
3137 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3138 | /* end confdefs.h. */ |
|
|
3139 | |
|
|
3140 | int |
|
|
3141 | main (void) |
|
|
3142 | { |
701 | #ifdef __GNUC__ |
3143 | #ifndef __GNUC__ |
702 | yes; |
3144 | choke me |
703 | #endif |
3145 | #endif |
704 | EOF |
|
|
705 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
|
|
706 | ac_cv_prog_gcc=yes |
|
|
707 | else |
|
|
708 | ac_cv_prog_gcc=no |
|
|
709 | fi |
|
|
710 | fi |
|
|
711 | |
3146 | |
712 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
3147 | ; |
|
|
3148 | return 0; |
|
|
3149 | } |
|
|
3150 | _ACEOF |
|
|
3151 | if ac_fn_c_try_compile "$LINENO" |
|
|
3152 | then : |
|
|
3153 | ac_compiler_gnu=yes |
|
|
3154 | else $as_nop |
|
|
3155 | ac_compiler_gnu=no |
|
|
3156 | fi |
|
|
3157 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
3158 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
713 | |
3159 | |
|
|
3160 | fi |
|
|
3161 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
|
|
3162 | printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } |
|
|
3163 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3164 | |
714 | if test $ac_cv_prog_gcc = yes; then |
3165 | if test $ac_compiler_gnu = yes; then |
715 | GCC=yes |
3166 | GCC=yes |
716 | else |
3167 | else |
717 | GCC= |
3168 | GCC= |
718 | fi |
3169 | fi |
719 | |
|
|
720 | ac_test_CFLAGS="${CFLAGS+set}" |
3170 | ac_test_CFLAGS=${CFLAGS+y} |
721 | ac_save_CFLAGS="$CFLAGS" |
3171 | ac_save_CFLAGS=$CFLAGS |
722 | CFLAGS= |
3172 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
723 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
3173 | printf %s "checking whether $CC accepts -g... " >&6; } |
724 | echo "configure:725: checking whether ${CC-cc} accepts -g" >&5 |
3174 | if test ${ac_cv_prog_cc_g+y} |
725 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
3175 | then : |
726 | echo $ac_n "(cached) $ac_c" 1>&6 |
3176 | printf %s "(cached) " >&6 |
727 | else |
3177 | else $as_nop |
728 | echo 'void f(){}' > conftest.c |
3178 | ac_save_c_werror_flag=$ac_c_werror_flag |
729 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
3179 | ac_c_werror_flag=yes |
|
|
3180 | ac_cv_prog_cc_g=no |
|
|
3181 | CFLAGS="-g" |
|
|
3182 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3183 | /* end confdefs.h. */ |
|
|
3184 | |
|
|
3185 | int |
|
|
3186 | main (void) |
|
|
3187 | { |
|
|
3188 | |
|
|
3189 | ; |
|
|
3190 | return 0; |
|
|
3191 | } |
|
|
3192 | _ACEOF |
|
|
3193 | if ac_fn_c_try_compile "$LINENO" |
|
|
3194 | then : |
730 | ac_cv_prog_cc_g=yes |
3195 | ac_cv_prog_cc_g=yes |
731 | else |
3196 | else $as_nop |
|
|
3197 | CFLAGS="" |
|
|
3198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3199 | /* end confdefs.h. */ |
|
|
3200 | |
|
|
3201 | int |
|
|
3202 | main (void) |
|
|
3203 | { |
|
|
3204 | |
|
|
3205 | ; |
|
|
3206 | return 0; |
|
|
3207 | } |
|
|
3208 | _ACEOF |
|
|
3209 | if ac_fn_c_try_compile "$LINENO" |
|
|
3210 | then : |
|
|
3211 | |
|
|
3212 | else $as_nop |
|
|
3213 | ac_c_werror_flag=$ac_save_c_werror_flag |
|
|
3214 | CFLAGS="-g" |
|
|
3215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3216 | /* end confdefs.h. */ |
|
|
3217 | |
|
|
3218 | int |
|
|
3219 | main (void) |
|
|
3220 | { |
|
|
3221 | |
|
|
3222 | ; |
|
|
3223 | return 0; |
|
|
3224 | } |
|
|
3225 | _ACEOF |
|
|
3226 | if ac_fn_c_try_compile "$LINENO" |
|
|
3227 | then : |
732 | ac_cv_prog_cc_g=no |
3228 | ac_cv_prog_cc_g=yes |
733 | fi |
3229 | fi |
734 | rm -f conftest* |
3230 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
735 | |
|
|
736 | fi |
3231 | fi |
737 | |
3232 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
738 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
3233 | fi |
|
|
3234 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
3235 | ac_c_werror_flag=$ac_save_c_werror_flag |
|
|
3236 | fi |
|
|
3237 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
|
|
3238 | printf "%s\n" "$ac_cv_prog_cc_g" >&6; } |
739 | if test "$ac_test_CFLAGS" = set; then |
3239 | if test $ac_test_CFLAGS; then |
740 | CFLAGS="$ac_save_CFLAGS" |
3240 | CFLAGS=$ac_save_CFLAGS |
741 | elif test $ac_cv_prog_cc_g = yes; then |
3241 | elif test $ac_cv_prog_cc_g = yes; then |
742 | if test "$GCC" = yes; then |
3242 | if test "$GCC" = yes; then |
743 | CFLAGS="-g -O2" |
3243 | CFLAGS="-g -O2" |
744 | else |
3244 | else |
745 | CFLAGS="-g" |
3245 | CFLAGS="-g" |
… | |
… | |
749 | CFLAGS="-O2" |
3249 | CFLAGS="-O2" |
750 | else |
3250 | else |
751 | CFLAGS= |
3251 | CFLAGS= |
752 | fi |
3252 | fi |
753 | fi |
3253 | fi |
|
|
3254 | ac_prog_cc_stdc=no |
|
|
3255 | if test x$ac_prog_cc_stdc = xno |
|
|
3256 | then : |
|
|
3257 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 |
|
|
3258 | printf %s "checking for $CC option to enable C11 features... " >&6; } |
|
|
3259 | if test ${ac_cv_prog_cc_c11+y} |
|
|
3260 | then : |
|
|
3261 | printf %s "(cached) " >&6 |
|
|
3262 | else $as_nop |
|
|
3263 | ac_cv_prog_cc_c11=no |
|
|
3264 | ac_save_CC=$CC |
|
|
3265 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3266 | /* end confdefs.h. */ |
|
|
3267 | $ac_c_conftest_c11_program |
|
|
3268 | _ACEOF |
|
|
3269 | for ac_arg in '' -std=gnu11 |
|
|
3270 | do |
|
|
3271 | CC="$ac_save_CC $ac_arg" |
|
|
3272 | if ac_fn_c_try_compile "$LINENO" |
|
|
3273 | then : |
|
|
3274 | ac_cv_prog_cc_c11=$ac_arg |
|
|
3275 | fi |
|
|
3276 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
|
|
3277 | test "x$ac_cv_prog_cc_c11" != "xno" && break |
|
|
3278 | done |
|
|
3279 | rm -f conftest.$ac_ext |
|
|
3280 | CC=$ac_save_CC |
|
|
3281 | fi |
754 | |
3282 | |
|
|
3283 | if test "x$ac_cv_prog_cc_c11" = xno |
|
|
3284 | then : |
|
|
3285 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
|
|
3286 | printf "%s\n" "unsupported" >&6; } |
|
|
3287 | else $as_nop |
|
|
3288 | if test "x$ac_cv_prog_cc_c11" = x |
|
|
3289 | then : |
|
|
3290 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
|
|
3291 | printf "%s\n" "none needed" >&6; } |
|
|
3292 | else $as_nop |
|
|
3293 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 |
|
|
3294 | printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } |
|
|
3295 | CC="$CC $ac_cv_prog_cc_c11" |
|
|
3296 | fi |
|
|
3297 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 |
|
|
3298 | ac_prog_cc_stdc=c11 |
|
|
3299 | fi |
|
|
3300 | fi |
|
|
3301 | if test x$ac_prog_cc_stdc = xno |
|
|
3302 | then : |
|
|
3303 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 |
|
|
3304 | printf %s "checking for $CC option to enable C99 features... " >&6; } |
|
|
3305 | if test ${ac_cv_prog_cc_c99+y} |
|
|
3306 | then : |
|
|
3307 | printf %s "(cached) " >&6 |
|
|
3308 | else $as_nop |
|
|
3309 | ac_cv_prog_cc_c99=no |
|
|
3310 | ac_save_CC=$CC |
|
|
3311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3312 | /* end confdefs.h. */ |
|
|
3313 | $ac_c_conftest_c99_program |
|
|
3314 | _ACEOF |
|
|
3315 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= |
|
|
3316 | do |
|
|
3317 | CC="$ac_save_CC $ac_arg" |
|
|
3318 | if ac_fn_c_try_compile "$LINENO" |
|
|
3319 | then : |
|
|
3320 | ac_cv_prog_cc_c99=$ac_arg |
|
|
3321 | fi |
|
|
3322 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
|
|
3323 | test "x$ac_cv_prog_cc_c99" != "xno" && break |
|
|
3324 | done |
|
|
3325 | rm -f conftest.$ac_ext |
|
|
3326 | CC=$ac_save_CC |
|
|
3327 | fi |
|
|
3328 | |
|
|
3329 | if test "x$ac_cv_prog_cc_c99" = xno |
|
|
3330 | then : |
|
|
3331 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
|
|
3332 | printf "%s\n" "unsupported" >&6; } |
|
|
3333 | else $as_nop |
|
|
3334 | if test "x$ac_cv_prog_cc_c99" = x |
|
|
3335 | then : |
|
|
3336 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
|
|
3337 | printf "%s\n" "none needed" >&6; } |
|
|
3338 | else $as_nop |
|
|
3339 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
|
|
3340 | printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } |
|
|
3341 | CC="$CC $ac_cv_prog_cc_c99" |
|
|
3342 | fi |
|
|
3343 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
|
|
3344 | ac_prog_cc_stdc=c99 |
|
|
3345 | fi |
|
|
3346 | fi |
|
|
3347 | if test x$ac_prog_cc_stdc = xno |
|
|
3348 | then : |
|
|
3349 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 |
|
|
3350 | printf %s "checking for $CC option to enable C89 features... " >&6; } |
|
|
3351 | if test ${ac_cv_prog_cc_c89+y} |
|
|
3352 | then : |
|
|
3353 | printf %s "(cached) " >&6 |
|
|
3354 | else $as_nop |
|
|
3355 | ac_cv_prog_cc_c89=no |
|
|
3356 | ac_save_CC=$CC |
|
|
3357 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3358 | /* end confdefs.h. */ |
|
|
3359 | $ac_c_conftest_c89_program |
|
|
3360 | _ACEOF |
|
|
3361 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
|
|
3362 | do |
|
|
3363 | CC="$ac_save_CC $ac_arg" |
|
|
3364 | if ac_fn_c_try_compile "$LINENO" |
|
|
3365 | then : |
|
|
3366 | ac_cv_prog_cc_c89=$ac_arg |
|
|
3367 | fi |
|
|
3368 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
|
|
3369 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
|
|
3370 | done |
|
|
3371 | rm -f conftest.$ac_ext |
|
|
3372 | CC=$ac_save_CC |
|
|
3373 | fi |
|
|
3374 | |
|
|
3375 | if test "x$ac_cv_prog_cc_c89" = xno |
|
|
3376 | then : |
|
|
3377 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
|
|
3378 | printf "%s\n" "unsupported" >&6; } |
|
|
3379 | else $as_nop |
|
|
3380 | if test "x$ac_cv_prog_cc_c89" = x |
|
|
3381 | then : |
|
|
3382 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
|
|
3383 | printf "%s\n" "none needed" >&6; } |
|
|
3384 | else $as_nop |
|
|
3385 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
|
|
3386 | printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } |
|
|
3387 | CC="$CC $ac_cv_prog_cc_c89" |
|
|
3388 | fi |
|
|
3389 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
|
|
3390 | ac_prog_cc_stdc=c89 |
|
|
3391 | fi |
|
|
3392 | fi |
|
|
3393 | |
|
|
3394 | ac_ext=c |
|
|
3395 | ac_cpp='$CPP $CPPFLAGS' |
|
|
3396 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3397 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3398 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3399 | |
|
|
3400 | ac_ext=c |
|
|
3401 | ac_cpp='$CPP $CPPFLAGS' |
|
|
3402 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3403 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3404 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3405 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
755 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
3406 | printf %s "checking how to run the C preprocessor... " >&6; } |
756 | echo "configure:757: checking how to run the C preprocessor" >&5 |
|
|
757 | # On Suns, sometimes $CPP names a directory. |
3407 | # On Suns, sometimes $CPP names a directory. |
758 | if test -n "$CPP" && test -d "$CPP"; then |
3408 | if test -n "$CPP" && test -d "$CPP"; then |
759 | CPP= |
3409 | CPP= |
760 | fi |
3410 | fi |
761 | if test -z "$CPP"; then |
3411 | if test -z "$CPP"; then |
762 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
3412 | if test ${ac_cv_prog_CPP+y} |
763 | echo $ac_n "(cached) $ac_c" 1>&6 |
3413 | then : |
|
|
3414 | printf %s "(cached) " >&6 |
|
|
3415 | else $as_nop |
|
|
3416 | # Double quotes because $CC needs to be expanded |
|
|
3417 | for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp |
|
|
3418 | do |
|
|
3419 | ac_preproc_ok=false |
|
|
3420 | for ac_c_preproc_warn_flag in '' yes |
|
|
3421 | do |
|
|
3422 | # Use a header file that comes with gcc, so configuring glibc |
|
|
3423 | # with a fresh cross-compiler works. |
|
|
3424 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
3425 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
3426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3427 | /* end confdefs.h. */ |
|
|
3428 | #include <limits.h> |
|
|
3429 | Syntax error |
|
|
3430 | _ACEOF |
|
|
3431 | if ac_fn_c_try_cpp "$LINENO" |
|
|
3432 | then : |
|
|
3433 | |
|
|
3434 | else $as_nop |
|
|
3435 | # Broken: fails on valid input. |
|
|
3436 | continue |
|
|
3437 | fi |
|
|
3438 | rm -f conftest.err conftest.i conftest.$ac_ext |
|
|
3439 | |
|
|
3440 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
3441 | # can be detected and how. |
|
|
3442 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3443 | /* end confdefs.h. */ |
|
|
3444 | #include <ac_nonexistent.h> |
|
|
3445 | _ACEOF |
|
|
3446 | if ac_fn_c_try_cpp "$LINENO" |
|
|
3447 | then : |
|
|
3448 | # Broken: success on invalid input. |
|
|
3449 | continue |
|
|
3450 | else $as_nop |
|
|
3451 | # Passes both tests. |
|
|
3452 | ac_preproc_ok=: |
|
|
3453 | break |
|
|
3454 | fi |
|
|
3455 | rm -f conftest.err conftest.i conftest.$ac_ext |
|
|
3456 | |
|
|
3457 | done |
|
|
3458 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
3459 | rm -f conftest.i conftest.err conftest.$ac_ext |
|
|
3460 | if $ac_preproc_ok |
|
|
3461 | then : |
|
|
3462 | break |
|
|
3463 | fi |
|
|
3464 | |
|
|
3465 | done |
|
|
3466 | ac_cv_prog_CPP=$CPP |
|
|
3467 | |
|
|
3468 | fi |
|
|
3469 | CPP=$ac_cv_prog_CPP |
764 | else |
3470 | else |
765 | # This must be in double quotes, not single quotes, because CPP may get |
3471 | ac_cv_prog_CPP=$CPP |
766 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
3472 | fi |
767 | CPP="${CC-cc} -E" |
3473 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
|
|
3474 | printf "%s\n" "$CPP" >&6; } |
|
|
3475 | ac_preproc_ok=false |
|
|
3476 | for ac_c_preproc_warn_flag in '' yes |
|
|
3477 | do |
|
|
3478 | # Use a header file that comes with gcc, so configuring glibc |
|
|
3479 | # with a fresh cross-compiler works. |
768 | # On the NeXT, cc -E runs the code through the compiler's parser, |
3480 | # On the NeXT, cc -E runs the code through the compiler's parser, |
769 | # not just through cpp. |
3481 | # not just through cpp. "Syntax error" is here to catch this case. |
770 | cat > conftest.$ac_ext <<EOF |
3482 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
771 | #line 772 "configure" |
3483 | /* end confdefs.h. */ |
772 | #include "confdefs.h" |
3484 | #include <limits.h> |
773 | #include <assert.h> |
3485 | Syntax error |
774 | Syntax Error |
3486 | _ACEOF |
775 | EOF |
3487 | if ac_fn_c_try_cpp "$LINENO" |
776 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3488 | then : |
777 | { (eval echo configure:778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
|
|
778 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
|
|
779 | if test -z "$ac_err"; then |
|
|
780 | : |
|
|
781 | else |
|
|
782 | echo "$ac_err" >&5 |
|
|
783 | echo "configure: failed program was:" >&5 |
|
|
784 | cat conftest.$ac_ext >&5 |
|
|
785 | rm -rf conftest* |
|
|
786 | CPP="${CC-cc} -E -traditional-cpp" |
|
|
787 | cat > conftest.$ac_ext <<EOF |
|
|
788 | #line 789 "configure" |
|
|
789 | #include "confdefs.h" |
|
|
790 | #include <assert.h> |
|
|
791 | Syntax Error |
|
|
792 | EOF |
|
|
793 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
|
|
794 | { (eval echo configure:795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
|
|
795 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
|
|
796 | if test -z "$ac_err"; then |
|
|
797 | : |
|
|
798 | else |
|
|
799 | echo "$ac_err" >&5 |
|
|
800 | echo "configure: failed program was:" >&5 |
|
|
801 | cat conftest.$ac_ext >&5 |
|
|
802 | rm -rf conftest* |
|
|
803 | CPP="${CC-cc} -nologo -E" |
|
|
804 | cat > conftest.$ac_ext <<EOF |
|
|
805 | #line 806 "configure" |
|
|
806 | #include "confdefs.h" |
|
|
807 | #include <assert.h> |
|
|
808 | Syntax Error |
|
|
809 | EOF |
|
|
810 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
|
|
811 | { (eval echo configure:812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
|
|
812 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
|
|
813 | if test -z "$ac_err"; then |
|
|
814 | : |
|
|
815 | else |
|
|
816 | echo "$ac_err" >&5 |
|
|
817 | echo "configure: failed program was:" >&5 |
|
|
818 | cat conftest.$ac_ext >&5 |
|
|
819 | rm -rf conftest* |
|
|
820 | CPP=/lib/cpp |
|
|
821 | fi |
|
|
822 | rm -f conftest* |
|
|
823 | fi |
|
|
824 | rm -f conftest* |
|
|
825 | fi |
|
|
826 | rm -f conftest* |
|
|
827 | ac_cv_prog_CPP="$CPP" |
|
|
828 | fi |
|
|
829 | CPP="$ac_cv_prog_CPP" |
|
|
830 | else |
|
|
831 | ac_cv_prog_CPP="$CPP" |
|
|
832 | fi |
|
|
833 | echo "$ac_t""$CPP" 1>&6 |
|
|
834 | |
3489 | |
835 | |
3490 | else $as_nop |
836 | echo $ac_n "checking if the compiler supports function prototypes""... $ac_c" 1>&6 |
3491 | # Broken: fails on valid input. |
837 | echo "configure:838: checking if the compiler supports function prototypes" >&5 |
3492 | continue |
838 | cat > conftest.$ac_ext <<EOF |
|
|
839 | #line 840 "configure" |
|
|
840 | #include "confdefs.h" |
|
|
841 | |
|
|
842 | int main() { |
|
|
843 | extern void exit(int status); |
|
|
844 | ; return 0; } |
|
|
845 | EOF |
|
|
846 | if { (eval echo configure:847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
|
|
847 | rm -rf conftest* |
|
|
848 | wi_cv_prototypes=yes |
|
|
849 | cat >> confdefs.h <<\EOF |
|
|
850 | #define PROTOTYPES 1 |
|
|
851 | EOF |
|
|
852 | |
|
|
853 | else |
|
|
854 | echo "configure: failed program was:" >&5 |
|
|
855 | cat conftest.$ac_ext >&5 |
|
|
856 | rm -rf conftest* |
|
|
857 | wi_cv_prototypes=no |
|
|
858 | fi |
3493 | fi |
859 | rm -f conftest* |
3494 | rm -f conftest.err conftest.i conftest.$ac_ext |
860 | echo "$ac_t""$wi_cv_prototypes" 1>&6 |
|
|
861 | |
3495 | |
|
|
3496 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
3497 | # can be detected and how. |
|
|
3498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3499 | /* end confdefs.h. */ |
|
|
3500 | #include <ac_nonexistent.h> |
|
|
3501 | _ACEOF |
|
|
3502 | if ac_fn_c_try_cpp "$LINENO" |
|
|
3503 | then : |
|
|
3504 | # Broken: success on invalid input. |
|
|
3505 | continue |
|
|
3506 | else $as_nop |
|
|
3507 | # Passes both tests. |
|
|
3508 | ac_preproc_ok=: |
|
|
3509 | break |
|
|
3510 | fi |
|
|
3511 | rm -f conftest.err conftest.i conftest.$ac_ext |
|
|
3512 | |
|
|
3513 | done |
|
|
3514 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
3515 | rm -f conftest.i conftest.err conftest.$ac_ext |
|
|
3516 | if $ac_preproc_ok |
|
|
3517 | then : |
|
|
3518 | |
|
|
3519 | else $as_nop |
|
|
3520 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
|
3521 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
|
|
3522 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
|
|
3523 | See \`config.log' for more details" "$LINENO" 5; } |
|
|
3524 | fi |
|
|
3525 | |
|
|
3526 | ac_ext=c |
|
|
3527 | ac_cpp='$CPP $CPPFLAGS' |
|
|
3528 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3529 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3530 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3531 | |
|
|
3532 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
862 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
3533 | printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
863 | echo "configure:864: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
3534 | set x ${MAKE-make} |
864 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
3535 | ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
865 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
3536 | if eval test \${ac_cv_prog_make_${ac_make}_set+y} |
866 | echo $ac_n "(cached) $ac_c" 1>&6 |
3537 | then : |
867 | else |
3538 | printf %s "(cached) " >&6 |
|
|
3539 | else $as_nop |
868 | cat > conftestmake <<\EOF |
3540 | cat >conftest.make <<\_ACEOF |
|
|
3541 | SHELL = /bin/sh |
869 | all: |
3542 | all: |
870 | @echo 'ac_maketemp="${MAKE}"' |
3543 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
871 | EOF |
3544 | _ACEOF |
872 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
3545 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
873 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
3546 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
874 | if test -n "$ac_maketemp"; then |
3547 | *@@@%%%=?*=@@@%%%*) |
875 | eval ac_cv_prog_make_${ac_make}_set=yes |
3548 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
876 | else |
3549 | *) |
877 | eval ac_cv_prog_make_${ac_make}_set=no |
3550 | eval ac_cv_prog_make_${ac_make}_set=no;; |
878 | fi |
3551 | esac |
879 | rm -f conftestmake |
3552 | rm -f conftest.make |
880 | fi |
3553 | fi |
881 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
3554 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
882 | echo "$ac_t""yes" 1>&6 |
3555 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
|
3556 | printf "%s\n" "yes" >&6; } |
883 | SET_MAKE= |
3557 | SET_MAKE= |
884 | else |
3558 | else |
885 | echo "$ac_t""no" 1>&6 |
3559 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
3560 | printf "%s\n" "no" >&6; } |
886 | SET_MAKE="MAKE=${MAKE-make}" |
3561 | SET_MAKE="MAKE=${MAKE-make}" |
887 | fi |
3562 | fi |
888 | |
3563 | |
|
|
3564 | if test -n "$ac_tool_prefix"; then |
889 | # Extract the first word of "ranlib", so it can be a program name with args. |
3565 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
890 | set dummy ranlib; ac_word=$2 |
3566 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
891 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
3567 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
892 | echo "configure:893: checking for $ac_word" >&5 |
3568 | printf %s "checking for $ac_word... " >&6; } |
893 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
3569 | if test ${ac_cv_prog_RANLIB+y} |
894 | echo $ac_n "(cached) $ac_c" 1>&6 |
3570 | then : |
895 | else |
3571 | printf %s "(cached) " >&6 |
|
|
3572 | else $as_nop |
896 | if test -n "$RANLIB"; then |
3573 | if test -n "$RANLIB"; then |
897 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
3574 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
898 | else |
3575 | else |
899 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3576 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
900 | ac_dummy="$PATH" |
3577 | for as_dir in $PATH |
901 | for ac_dir in $ac_dummy; do |
3578 | do |
902 | test -z "$ac_dir" && ac_dir=. |
3579 | IFS=$as_save_IFS |
903 | if test -f $ac_dir/$ac_word; then |
3580 | case $as_dir in #((( |
|
|
3581 | '') as_dir=./ ;; |
|
|
3582 | */) ;; |
|
|
3583 | *) as_dir=$as_dir/ ;; |
|
|
3584 | esac |
|
|
3585 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
3586 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
904 | ac_cv_prog_RANLIB="ranlib" |
3587 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
|
|
3588 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
905 | break |
3589 | break 2 |
906 | fi |
3590 | fi |
|
|
3591 | done |
907 | done |
3592 | done |
908 | IFS="$ac_save_ifs" |
3593 | IFS=$as_save_IFS |
909 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
3594 | |
910 | fi |
3595 | fi |
911 | fi |
3596 | fi |
912 | RANLIB="$ac_cv_prog_RANLIB" |
3597 | RANLIB=$ac_cv_prog_RANLIB |
913 | if test -n "$RANLIB"; then |
3598 | if test -n "$RANLIB"; then |
914 | echo "$ac_t""$RANLIB" 1>&6 |
3599 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
|
|
3600 | printf "%s\n" "$RANLIB" >&6; } |
915 | else |
3601 | else |
916 | echo "$ac_t""no" 1>&6 |
3602 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
3603 | printf "%s\n" "no" >&6; } |
917 | fi |
3604 | fi |
918 | |
3605 | |
919 | |
3606 | |
920 | if test "$wi_cv_prototypes" = no ; then |
|
|
921 | echo "configure: warning: Your compiler does not support function prototyping and" 1>&2 |
|
|
922 | echo "configure: warning: is not able to properly compile this package. What a pity." 1>&2 |
|
|
923 | echo "configure: warning: Get gcc, or any compiler that supports function prototypes." 1>&2 |
|
|
924 | exit 1 |
|
|
925 | fi |
3607 | fi |
|
|
3608 | if test -z "$ac_cv_prog_RANLIB"; then |
|
|
3609 | ac_ct_RANLIB=$RANLIB |
|
|
3610 | # Extract the first word of "ranlib", so it can be a program name with args. |
|
|
3611 | set dummy ranlib; ac_word=$2 |
|
|
3612 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
3613 | printf %s "checking for $ac_word... " >&6; } |
|
|
3614 | if test ${ac_cv_prog_ac_ct_RANLIB+y} |
|
|
3615 | then : |
|
|
3616 | printf %s "(cached) " >&6 |
|
|
3617 | else $as_nop |
|
|
3618 | if test -n "$ac_ct_RANLIB"; then |
|
|
3619 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
|
|
3620 | else |
|
|
3621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
3622 | for as_dir in $PATH |
|
|
3623 | do |
|
|
3624 | IFS=$as_save_IFS |
|
|
3625 | case $as_dir in #((( |
|
|
3626 | '') as_dir=./ ;; |
|
|
3627 | */) ;; |
|
|
3628 | *) as_dir=$as_dir/ ;; |
|
|
3629 | esac |
|
|
3630 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
3631 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
|
|
3632 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
|
|
3633 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
|
|
3634 | break 2 |
|
|
3635 | fi |
|
|
3636 | done |
|
|
3637 | done |
|
|
3638 | IFS=$as_save_IFS |
|
|
3639 | |
|
|
3640 | fi |
|
|
3641 | fi |
|
|
3642 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
|
|
3643 | if test -n "$ac_ct_RANLIB"; then |
|
|
3644 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
|
|
3645 | printf "%s\n" "$ac_ct_RANLIB" >&6; } |
|
|
3646 | else |
|
|
3647 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
3648 | printf "%s\n" "no" >&6; } |
|
|
3649 | fi |
|
|
3650 | |
|
|
3651 | if test "x$ac_ct_RANLIB" = x; then |
|
|
3652 | RANLIB=":" |
|
|
3653 | else |
|
|
3654 | case $cross_compiling:$ac_tool_warned in |
|
|
3655 | yes:) |
|
|
3656 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
|
3657 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
|
3658 | ac_tool_warned=yes ;; |
|
|
3659 | esac |
|
|
3660 | RANLIB=$ac_ct_RANLIB |
|
|
3661 | fi |
|
|
3662 | else |
|
|
3663 | RANLIB="$ac_cv_prog_RANLIB" |
|
|
3664 | fi |
|
|
3665 | |
926 | |
3666 | |
927 | # |
3667 | # |
928 | # Checks for header files and library functions |
3668 | # Checks for header files and library functions |
929 | # |
3669 | # |
930 | |
3670 | |
931 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
|
|
932 | echo "configure:933: checking for ANSI C header files" >&5 |
|
|
933 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
|
|
934 | echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
935 | else |
|
|
936 | cat > conftest.$ac_ext <<EOF |
|
|
937 | #line 938 "configure" |
|
|
938 | #include "confdefs.h" |
|
|
939 | #include <stdlib.h> |
|
|
940 | #include <stdarg.h> |
|
|
941 | #include <string.h> |
|
|
942 | #include <float.h> |
|
|
943 | EOF |
|
|
944 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
|
|
945 | { (eval echo configure:946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
|
|
946 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
|
|
947 | if test -z "$ac_err"; then |
|
|
948 | rm -rf conftest* |
|
|
949 | ac_cv_header_stdc=yes |
|
|
950 | else |
|
|
951 | echo "$ac_err" >&5 |
|
|
952 | echo "configure: failed program was:" >&5 |
|
|
953 | cat conftest.$ac_ext >&5 |
|
|
954 | rm -rf conftest* |
|
|
955 | ac_cv_header_stdc=no |
|
|
956 | fi |
|
|
957 | rm -f conftest* |
|
|
958 | |
3671 | |
959 | if test $ac_cv_header_stdc = yes; then |
3672 | ac_header= ac_cache= |
960 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
3673 | for ac_item in $ac_header_c_list |
961 | cat > conftest.$ac_ext <<EOF |
|
|
962 | #line 963 "configure" |
|
|
963 | #include "confdefs.h" |
|
|
964 | #include <string.h> |
|
|
965 | EOF |
|
|
966 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
967 | egrep "memchr" >/dev/null 2>&1; then |
|
|
968 | : |
|
|
969 | else |
|
|
970 | rm -rf conftest* |
|
|
971 | ac_cv_header_stdc=no |
|
|
972 | fi |
|
|
973 | rm -f conftest* |
|
|
974 | |
|
|
975 | fi |
|
|
976 | |
|
|
977 | if test $ac_cv_header_stdc = yes; then |
|
|
978 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
979 | cat > conftest.$ac_ext <<EOF |
|
|
980 | #line 981 "configure" |
|
|
981 | #include "confdefs.h" |
|
|
982 | #include <stdlib.h> |
|
|
983 | EOF |
|
|
984 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
985 | egrep "free" >/dev/null 2>&1; then |
|
|
986 | : |
|
|
987 | else |
|
|
988 | rm -rf conftest* |
|
|
989 | ac_cv_header_stdc=no |
|
|
990 | fi |
|
|
991 | rm -f conftest* |
|
|
992 | |
|
|
993 | fi |
|
|
994 | |
|
|
995 | if test $ac_cv_header_stdc = yes; then |
|
|
996 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
997 | if test "$cross_compiling" = yes; then |
|
|
998 | : |
|
|
999 | else |
|
|
1000 | cat > conftest.$ac_ext <<EOF |
|
|
1001 | #line 1002 "configure" |
|
|
1002 | #include "confdefs.h" |
|
|
1003 | #include <ctype.h> |
|
|
1004 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
1005 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
1006 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
1007 | int main () { int i; for (i = 0; i < 256; i++) |
|
|
1008 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
|
|
1009 | exit (0); } |
|
|
1010 | |
|
|
1011 | EOF |
|
|
1012 | if { (eval echo configure:1013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
|
|
1013 | then |
|
|
1014 | : |
|
|
1015 | else |
|
|
1016 | echo "configure: failed program was:" >&5 |
|
|
1017 | cat conftest.$ac_ext >&5 |
|
|
1018 | rm -fr conftest* |
|
|
1019 | ac_cv_header_stdc=no |
|
|
1020 | fi |
|
|
1021 | rm -fr conftest* |
|
|
1022 | fi |
|
|
1023 | |
|
|
1024 | fi |
|
|
1025 | fi |
|
|
1026 | |
|
|
1027 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
|
|
1028 | if test $ac_cv_header_stdc = yes; then |
|
|
1029 | cat >> confdefs.h <<\EOF |
|
|
1030 | #define STDC_HEADERS 1 |
|
|
1031 | EOF |
|
|
1032 | |
|
|
1033 | fi |
|
|
1034 | |
|
|
1035 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
|
|
1036 | echo "configure:1037: checking for size_t" >&5 |
|
|
1037 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
|
|
1038 | echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
1039 | else |
|
|
1040 | cat > conftest.$ac_ext <<EOF |
|
|
1041 | #line 1042 "configure" |
|
|
1042 | #include "confdefs.h" |
|
|
1043 | #include <sys/types.h> |
|
|
1044 | #if STDC_HEADERS |
|
|
1045 | #include <stdlib.h> |
|
|
1046 | #include <stddef.h> |
|
|
1047 | #endif |
|
|
1048 | EOF |
|
|
1049 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
1050 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
|
|
1051 | rm -rf conftest* |
|
|
1052 | ac_cv_type_size_t=yes |
|
|
1053 | else |
|
|
1054 | rm -rf conftest* |
|
|
1055 | ac_cv_type_size_t=no |
|
|
1056 | fi |
|
|
1057 | rm -f conftest* |
|
|
1058 | |
|
|
1059 | fi |
|
|
1060 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
|
|
1061 | if test $ac_cv_type_size_t = no; then |
|
|
1062 | cat >> confdefs.h <<\EOF |
|
|
1063 | #define size_t unsigned |
|
|
1064 | EOF |
|
|
1065 | |
|
|
1066 | fi |
|
|
1067 | |
|
|
1068 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
|
|
1069 | echo "configure:1070: checking whether time.h and sys/time.h may both be included" >&5 |
|
|
1070 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
|
|
1071 | echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
1072 | else |
|
|
1073 | cat > conftest.$ac_ext <<EOF |
|
|
1074 | #line 1075 "configure" |
|
|
1075 | #include "confdefs.h" |
|
|
1076 | #include <sys/types.h> |
|
|
1077 | #include <sys/time.h> |
|
|
1078 | #include <time.h> |
|
|
1079 | int main() { |
|
|
1080 | struct tm *tp; |
|
|
1081 | ; return 0; } |
|
|
1082 | EOF |
|
|
1083 | if { (eval echo configure:1084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
|
|
1084 | rm -rf conftest* |
|
|
1085 | ac_cv_header_time=yes |
|
|
1086 | else |
|
|
1087 | echo "configure: failed program was:" >&5 |
|
|
1088 | cat conftest.$ac_ext >&5 |
|
|
1089 | rm -rf conftest* |
|
|
1090 | ac_cv_header_time=no |
|
|
1091 | fi |
|
|
1092 | rm -f conftest* |
|
|
1093 | fi |
|
|
1094 | |
|
|
1095 | echo "$ac_t""$ac_cv_header_time" 1>&6 |
|
|
1096 | if test $ac_cv_header_time = yes; then |
|
|
1097 | cat >> confdefs.h <<\EOF |
|
|
1098 | #define TIME_WITH_SYS_TIME 1 |
|
|
1099 | EOF |
|
|
1100 | |
|
|
1101 | fi |
|
|
1102 | |
|
|
1103 | for ac_hdr in fcntl.h unistd.h memory.h malloc.h errno.h |
|
|
1104 | do |
3674 | do |
1105 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
3675 | if test $ac_cache; then |
1106 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
3676 | ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" |
1107 | echo "configure:1108: checking for $ac_hdr" >&5 |
|
|
1108 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
|
|
1109 | echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
1110 | else |
|
|
1111 | cat > conftest.$ac_ext <<EOF |
|
|
1112 | #line 1113 "configure" |
|
|
1113 | #include "confdefs.h" |
|
|
1114 | #include <$ac_hdr> |
|
|
1115 | EOF |
|
|
1116 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
|
|
1117 | { (eval echo configure:1118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
|
|
1118 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
|
|
1119 | if test -z "$ac_err"; then |
|
|
1120 | rm -rf conftest* |
|
|
1121 | eval "ac_cv_header_$ac_safe=yes" |
|
|
1122 | else |
|
|
1123 | echo "$ac_err" >&5 |
|
|
1124 | echo "configure: failed program was:" >&5 |
|
|
1125 | cat conftest.$ac_ext >&5 |
|
|
1126 | rm -rf conftest* |
|
|
1127 | eval "ac_cv_header_$ac_safe=no" |
|
|
1128 | fi |
|
|
1129 | rm -f conftest* |
|
|
1130 | fi |
|
|
1131 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
3677 | if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then |
1132 | echo "$ac_t""yes" 1>&6 |
3678 | printf "%s\n" "#define $ac_item 1" >> confdefs.h |
1133 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
3679 | fi |
1134 | cat >> confdefs.h <<EOF |
3680 | ac_header= ac_cache= |
1135 | #define $ac_tr_hdr 1 |
3681 | elif test $ac_header; then |
1136 | EOF |
3682 | ac_cache=$ac_item |
1137 | |
|
|
1138 | else |
3683 | else |
1139 | echo "$ac_t""no" 1>&6 |
3684 | ac_header=$ac_item |
1140 | fi |
3685 | fi |
1141 | done |
3686 | done |
1142 | |
3687 | |
1143 | for ac_hdr in io.h sys/time.h |
|
|
1144 | do |
|
|
1145 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
|
|
1146 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
|
|
1147 | echo "configure:1148: checking for $ac_hdr" >&5 |
|
|
1148 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
|
|
1149 | echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
1150 | else |
|
|
1151 | cat > conftest.$ac_ext <<EOF |
|
|
1152 | #line 1153 "configure" |
|
|
1153 | #include "confdefs.h" |
|
|
1154 | #include <$ac_hdr> |
|
|
1155 | EOF |
|
|
1156 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
|
|
1157 | { (eval echo configure:1158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
|
|
1158 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
|
|
1159 | if test -z "$ac_err"; then |
|
|
1160 | rm -rf conftest* |
|
|
1161 | eval "ac_cv_header_$ac_safe=yes" |
|
|
1162 | else |
|
|
1163 | echo "$ac_err" >&5 |
|
|
1164 | echo "configure: failed program was:" >&5 |
|
|
1165 | cat conftest.$ac_ext >&5 |
|
|
1166 | rm -rf conftest* |
|
|
1167 | eval "ac_cv_header_$ac_safe=no" |
|
|
1168 | fi |
|
|
1169 | rm -f conftest* |
|
|
1170 | fi |
|
|
1171 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
|
|
1172 | echo "$ac_t""yes" 1>&6 |
|
|
1173 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
|
|
1174 | cat >> confdefs.h <<EOF |
|
|
1175 | #define $ac_tr_hdr 1 |
|
|
1176 | EOF |
|
|
1177 | |
|
|
1178 | else |
|
|
1179 | echo "$ac_t""no" 1>&6 |
|
|
1180 | fi |
|
|
1181 | done |
|
|
1182 | |
3688 | |
1183 | for ac_func in gettimeofday |
|
|
1184 | do |
|
|
1185 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
|
|
1186 | echo "configure:1187: checking for $ac_func" >&5 |
|
|
1187 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
|
|
1188 | echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
1189 | else |
|
|
1190 | cat > conftest.$ac_ext <<EOF |
|
|
1191 | #line 1192 "configure" |
|
|
1192 | #include "confdefs.h" |
|
|
1193 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
1194 | which can conflict with char $ac_func(); below. */ |
|
|
1195 | #include <assert.h> |
|
|
1196 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
1197 | /* We use char because int might match the return type of a gcc2 |
|
|
1198 | builtin and then its argument prototype would still apply. */ |
|
|
1199 | char $ac_func(); |
|
|
1200 | |
3689 | |
1201 | int main() { |
|
|
1202 | |
3690 | |
1203 | /* The GNU C library defines this for functions which it implements |
|
|
1204 | to always fail with ENOSYS. Some functions are actually named |
|
|
1205 | something starting with __ and the normal name is an alias. */ |
|
|
1206 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
1207 | choke me |
|
|
1208 | #else |
|
|
1209 | $ac_func(); |
|
|
1210 | #endif |
|
|
1211 | |
3691 | |
1212 | ; return 0; } |
|
|
1213 | EOF |
|
|
1214 | if { (eval echo configure:1215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
|
|
1215 | rm -rf conftest* |
|
|
1216 | eval "ac_cv_func_$ac_func=yes" |
|
|
1217 | else |
|
|
1218 | echo "configure: failed program was:" >&5 |
|
|
1219 | cat conftest.$ac_ext >&5 |
|
|
1220 | rm -rf conftest* |
|
|
1221 | eval "ac_cv_func_$ac_func=no" |
|
|
1222 | fi |
|
|
1223 | rm -f conftest* |
|
|
1224 | fi |
|
|
1225 | |
3692 | |
1226 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
|
|
1227 | echo "$ac_t""yes" 1>&6 |
|
|
1228 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
|
|
1229 | cat >> confdefs.h <<EOF |
|
|
1230 | #define $ac_tr_func 1 |
|
|
1231 | EOF |
|
|
1232 | |
|
|
1233 | else |
|
|
1234 | echo "$ac_t""no" 1>&6 |
|
|
1235 | fi |
|
|
1236 | done |
|
|
1237 | |
3693 | |
1238 | |
3694 | |
1239 | echo $ac_n "checking for tempnam""... $ac_c" 1>&6 |
3695 | if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes |
1240 | echo "configure:1241: checking for tempnam" >&5 |
3696 | then : |
1241 | if eval "test \"`echo '$''{'ac_cv_func_tempnam'+set}'`\" = set"; then |
|
|
1242 | echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
1243 | else |
|
|
1244 | cat > conftest.$ac_ext <<EOF |
|
|
1245 | #line 1246 "configure" |
|
|
1246 | #include "confdefs.h" |
|
|
1247 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
1248 | which can conflict with char tempnam(); below. */ |
|
|
1249 | #include <assert.h> |
|
|
1250 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
1251 | /* We use char because int might match the return type of a gcc2 |
|
|
1252 | builtin and then its argument prototype would still apply. */ |
|
|
1253 | char tempnam(); |
|
|
1254 | |
3697 | |
1255 | int main() { |
3698 | printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h |
1256 | |
3699 | |
1257 | /* The GNU C library defines this for functions which it implements |
|
|
1258 | to always fail with ENOSYS. Some functions are actually named |
|
|
1259 | something starting with __ and the normal name is an alias. */ |
|
|
1260 | #if defined (__stub_tempnam) || defined (__stub___tempnam) |
|
|
1261 | choke me |
|
|
1262 | #else |
|
|
1263 | tempnam(); |
|
|
1264 | #endif |
|
|
1265 | |
|
|
1266 | ; return 0; } |
|
|
1267 | EOF |
|
|
1268 | if { (eval echo configure:1269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
|
|
1269 | rm -rf conftest* |
|
|
1270 | eval "ac_cv_func_tempnam=yes" |
|
|
1271 | else |
|
|
1272 | echo "configure: failed program was:" >&5 |
|
|
1273 | cat conftest.$ac_ext >&5 |
|
|
1274 | rm -rf conftest* |
|
|
1275 | eval "ac_cv_func_tempnam=no" |
|
|
1276 | fi |
|
|
1277 | rm -f conftest* |
|
|
1278 | fi |
|
|
1279 | |
|
|
1280 | if eval "test \"`echo '$ac_cv_func_'tempnam`\" = yes"; then |
|
|
1281 | echo "$ac_t""yes" 1>&6 |
|
|
1282 | : |
|
|
1283 | else |
|
|
1284 | echo "$ac_t""no" 1>&6 |
|
|
1285 | cat >> confdefs.h <<\EOF |
|
|
1286 | #define tempnam _FP_tempnam |
|
|
1287 | EOF |
|
|
1288 | |
|
|
1289 | fi |
|
|
1290 | |
|
|
1291 | |
|
|
1292 | # |
|
|
1293 | # strerror might be internally defined. this would cause a |
|
|
1294 | # CHECK_FUNCS(strerror) to fail because it'd be called with |
|
|
1295 | # zero arguments. So use our own code. |
|
|
1296 | # |
|
|
1297 | echo $ac_n "checking for strerror""... $ac_c" 1>&6 |
|
|
1298 | echo "configure:1299: checking for strerror" >&5 |
|
|
1299 | cat > conftest.$ac_ext <<EOF |
|
|
1300 | #line 1301 "configure" |
|
|
1301 | #include "confdefs.h" |
|
|
1302 | |
|
|
1303 | char *blubb() { return (char *) strerror (42); } |
|
|
1304 | |
|
|
1305 | int main() { |
|
|
1306 | |
|
|
1307 | (void) blubb(); |
|
|
1308 | |
|
|
1309 | ; return 0; } |
|
|
1310 | EOF |
|
|
1311 | if { (eval echo configure:1312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
|
|
1312 | rm -rf conftest* |
|
|
1313 | have_strerror=yes |
|
|
1314 | else |
|
|
1315 | echo "configure: failed program was:" >&5 |
|
|
1316 | cat conftest.$ac_ext >&5 |
|
|
1317 | rm -rf conftest* |
|
|
1318 | cat >> confdefs.h <<\EOF |
|
|
1319 | #define strerror _FP_strerror |
|
|
1320 | EOF |
|
|
1321 | |
|
|
1322 | have_strerror=no |
|
|
1323 | fi |
|
|
1324 | rm -f conftest* |
|
|
1325 | echo "$ac_t""$have_strerror" 1>&6 |
|
|
1326 | |
|
|
1327 | echo $ac_n "checking for stdin""... $ac_c" 1>&6 |
|
|
1328 | echo "configure:1329: checking for stdin" >&5 |
|
|
1329 | cat > conftest.$ac_ext <<EOF |
|
|
1330 | #line 1331 "configure" |
|
|
1331 | #include "confdefs.h" |
|
|
1332 | |
|
|
1333 | #include <stdio.h> |
|
|
1334 | char *blubb() { FILE *in, *out; in=stdin; out=stdout; return (char*)0; } |
|
|
1335 | |
|
|
1336 | int main() { |
|
|
1337 | |
|
|
1338 | (void) blubb(); |
|
|
1339 | |
|
|
1340 | ; return 0; } |
|
|
1341 | EOF |
|
|
1342 | if { (eval echo configure:1343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
|
|
1343 | rm -rf conftest* |
|
|
1344 | have_stdio=yes |
|
|
1345 | else |
|
|
1346 | echo "configure: failed program was:" >&5 |
|
|
1347 | cat conftest.$ac_ext >&5 |
|
|
1348 | rm -rf conftest* |
|
|
1349 | cat >> confdefs.h <<\EOF |
|
|
1350 | #define HAVE_STDIO 1 |
|
|
1351 | EOF |
|
|
1352 | |
|
|
1353 | have_stdio=no |
|
|
1354 | fi |
|
|
1355 | rm -f conftest* |
|
|
1356 | echo "$ac_t""$have_stdio" 1>&6 |
|
|
1357 | |
|
|
1358 | if test "$ac_cv_header_stdc" = "no" ; then |
|
|
1359 | for ac_hdr in stdarg.h varargs.h |
|
|
1360 | do |
|
|
1361 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
|
|
1362 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
|
|
1363 | echo "configure:1364: checking for $ac_hdr" >&5 |
|
|
1364 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
|
|
1365 | echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
1366 | else |
|
|
1367 | cat > conftest.$ac_ext <<EOF |
|
|
1368 | #line 1369 "configure" |
|
|
1369 | #include "confdefs.h" |
|
|
1370 | #include <$ac_hdr> |
|
|
1371 | EOF |
|
|
1372 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
|
|
1373 | { (eval echo configure:1374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
|
|
1374 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
|
|
1375 | if test -z "$ac_err"; then |
|
|
1376 | rm -rf conftest* |
|
|
1377 | eval "ac_cv_header_$ac_safe=yes" |
|
|
1378 | else |
|
|
1379 | echo "$ac_err" >&5 |
|
|
1380 | echo "configure: failed program was:" >&5 |
|
|
1381 | cat conftest.$ac_ext >&5 |
|
|
1382 | rm -rf conftest* |
|
|
1383 | eval "ac_cv_header_$ac_safe=no" |
|
|
1384 | fi |
|
|
1385 | rm -f conftest* |
|
|
1386 | fi |
|
|
1387 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
|
|
1388 | echo "$ac_t""yes" 1>&6 |
|
|
1389 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
|
|
1390 | cat >> confdefs.h <<EOF |
|
|
1391 | #define $ac_tr_hdr 1 |
|
|
1392 | EOF |
|
|
1393 | |
|
|
1394 | else |
|
|
1395 | echo "$ac_t""no" 1>&6 |
|
|
1396 | fi |
|
|
1397 | done |
|
|
1398 | |
|
|
1399 | if test "$ac_cv_header_stdarg_h" = "no" ; then |
|
|
1400 | if test "$ac_cv_header_varargs_h" = "no" ; then |
|
|
1401 | { echo "configure: error: neither stdarg.h nor varargs.h present" 1>&2; exit 1; } |
|
|
1402 | fi |
3700 | fi |
|
|
3701 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
|
|
3702 | if test "x$ac_cv_type_size_t" = xyes |
|
|
3703 | then : |
|
|
3704 | |
|
|
3705 | else $as_nop |
|
|
3706 | |
|
|
3707 | printf "%s\n" "#define size_t unsigned int" >>confdefs.h |
|
|
3708 | |
1403 | fi |
3709 | fi |
1404 | fi |
|
|
1405 | |
3710 | |
1406 | # |
3711 | ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" |
1407 | # Check whether this is a DOS-Based system. Another bogus test. |
3712 | if test "x$ac_cv_header_fcntl_h" = xyes |
1408 | # Don't even bother to print a message. This code is needed so |
3713 | then : |
1409 | # that autoheader includes the #undef into the final config.h |
3714 | printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h |
1410 | # and we can change the definition by hand on a really DOS |
|
|
1411 | # system (where ./configure doesn't work anyway ...) |
|
|
1412 | # |
|
|
1413 | |
3715 | |
1414 | if false ; then |
|
|
1415 | cat >> confdefs.h <<\EOF |
|
|
1416 | #define SYSTEM_DOS 1 |
|
|
1417 | EOF |
|
|
1418 | |
|
|
1419 | cat >> confdefs.h <<\EOF |
|
|
1420 | #define SYSTEM_QUICKWIN 1 |
|
|
1421 | EOF |
|
|
1422 | |
|
|
1423 | cat >> confdefs.h <<\EOF |
|
|
1424 | #define SYSTEM_WINDLL 1 |
|
|
1425 | EOF |
|
|
1426 | |
|
|
1427 | cat >> confdefs.h <<\EOF |
|
|
1428 | #define SYSTEM_OS2 1 |
|
|
1429 | EOF |
|
|
1430 | |
|
|
1431 | fi |
3716 | fi |
|
|
3717 | ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" |
|
|
3718 | if test "x$ac_cv_header_unistd_h" = xyes |
|
|
3719 | then : |
|
|
3720 | printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h |
|
|
3721 | |
|
|
3722 | fi |
|
|
3723 | |
|
|
3724 | ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "$ac_includes_default" |
|
|
3725 | if test "x$ac_cv_header_io_h" = xyes |
|
|
3726 | then : |
|
|
3727 | printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h |
|
|
3728 | |
|
|
3729 | fi |
|
|
3730 | ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" |
|
|
3731 | if test "x$ac_cv_header_sys_time_h" = xyes |
|
|
3732 | then : |
|
|
3733 | printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h |
|
|
3734 | |
|
|
3735 | fi |
|
|
3736 | |
|
|
3737 | |
|
|
3738 | CFLAGS="$CFLAGS -D_GNU_SOURCE" |
|
|
3739 | ac_fn_c_check_func "$LINENO" "tempnam" "ac_cv_func_tempnam" |
|
|
3740 | if test "x$ac_cv_func_tempnam" = xyes |
|
|
3741 | then : |
|
|
3742 | printf "%s\n" "#define HAVE_TEMPNAM 1" >>confdefs.h |
|
|
3743 | |
|
|
3744 | fi |
|
|
3745 | ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" |
|
|
3746 | if test "x$ac_cv_func_gettimeofday" = xyes |
|
|
3747 | then : |
|
|
3748 | printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h |
|
|
3749 | |
|
|
3750 | fi |
|
|
3751 | ac_fn_c_check_func "$LINENO" "flockfile" "ac_cv_func_flockfile" |
|
|
3752 | if test "x$ac_cv_func_flockfile" = xyes |
|
|
3753 | then : |
|
|
3754 | printf "%s\n" "#define HAVE_FLOCKFILE 1" >>confdefs.h |
|
|
3755 | |
|
|
3756 | fi |
|
|
3757 | ac_fn_c_check_func "$LINENO" "getc_unlocked" "ac_cv_func_getc_unlocked" |
|
|
3758 | if test "x$ac_cv_func_getc_unlocked" = xyes |
|
|
3759 | then : |
|
|
3760 | printf "%s\n" "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h |
|
|
3761 | |
|
|
3762 | fi |
|
|
3763 | ac_fn_c_check_func "$LINENO" "feof_unlocked" "ac_cv_func_feof_unlocked" |
|
|
3764 | if test "x$ac_cv_func_feof_unlocked" = xyes |
|
|
3765 | then : |
|
|
3766 | printf "%s\n" "#define HAVE_FEOF_UNLOCKED 1" >>confdefs.h |
|
|
3767 | |
|
|
3768 | fi |
|
|
3769 | ac_fn_c_check_func "$LINENO" "ferror_unlocked" "ac_cv_func_ferror_unlocked" |
|
|
3770 | if test "x$ac_cv_func_ferror_unlocked" = xyes |
|
|
3771 | then : |
|
|
3772 | printf "%s\n" "#define HAVE_FERROR_UNLOCKED 1" >>confdefs.h |
|
|
3773 | |
|
|
3774 | fi |
|
|
3775 | |
|
|
3776 | |
|
|
3777 | ac_fn_c_check_func "$LINENO" "chmod" "ac_cv_func_chmod" |
|
|
3778 | if test "x$ac_cv_func_chmod" = xyes |
|
|
3779 | then : |
|
|
3780 | printf "%s\n" "#define HAVE_CHMOD 1" >>confdefs.h |
|
|
3781 | |
|
|
3782 | fi |
|
|
3783 | ac_fn_c_check_func "$LINENO" "umask" "ac_cv_func_umask" |
|
|
3784 | if test "x$ac_cv_func_umask" = xyes |
|
|
3785 | then : |
|
|
3786 | printf "%s\n" "#define HAVE_UMASK 1" >>confdefs.h |
|
|
3787 | |
|
|
3788 | fi |
|
|
3789 | ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" |
|
|
3790 | if test "x$ac_cv_func_mkstemp" = xyes |
|
|
3791 | then : |
|
|
3792 | printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h |
|
|
3793 | |
|
|
3794 | fi |
|
|
3795 | |
1432 | |
3796 | |
1433 | # |
3797 | # |
1434 | # On some systems (so far, OS2 and WINDOWS), functions that are exported |
3798 | # On some systems (so far, OS2 and WINDOWS), functions that are exported |
1435 | # from a DLL must be declared specifically. |
3799 | # from a DLL must be declared specifically. |
1436 | # |
3800 | # |
1437 | |
3801 | |
1438 | cat >> confdefs.h <<EOF |
3802 | printf "%s\n" "#define UUEXPORT /**/" >>confdefs.h |
1439 | #define UUEXPORT |
|
|
1440 | EOF |
|
|
1441 | |
3803 | |
1442 | cat >> confdefs.h <<EOF |
3804 | printf "%s\n" "#define TOOLEXPORT /**/" >>confdefs.h |
1443 | #define TOOLEXPORT |
|
|
1444 | EOF |
|
|
1445 | |
3805 | |
1446 | |
3806 | |
1447 | # |
3807 | # |
1448 | # set version number |
3808 | # set version number |
1449 | # |
3809 | # |
1450 | echo $ac_n "checking version number""... $ac_c" 1>&6 |
3810 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version number" >&5 |
1451 | echo "configure:1452: checking version number" >&5 |
3811 | printf %s "checking version number... " >&6; } |
1452 | version_number="$VERSION"pl"$PATCH" |
3812 | version_number="$VERSION"pl"$PATCH" |
1453 | echo "$ac_t""$version_number" 1>&6 |
3813 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $version_number" >&5 |
|
|
3814 | printf "%s\n" "$version_number" >&6; } |
1454 | |
3815 | |
1455 | |
3816 | |
1456 | |
3817 | |
1457 | # |
3818 | # |
1458 | # done |
3819 | # done |
1459 | # |
3820 | # |
1460 | |
3821 | |
1461 | trap '' 1 2 15 |
3822 | ac_config_files="$ac_config_files Makefile" |
|
|
3823 | |
1462 | cat > confcache <<\EOF |
3824 | cat >confcache <<\_ACEOF |
1463 | # This file is a shell script that caches the results of configure |
3825 | # This file is a shell script that caches the results of configure |
1464 | # tests run on this system so they can be shared between configure |
3826 | # tests run on this system so they can be shared between configure |
1465 | # scripts and configure runs. It is not useful on other systems. |
3827 | # scripts and configure runs, see configure's option --config-cache. |
1466 | # If it contains results you don't want to keep, you may remove or edit it. |
3828 | # It is not useful on other systems. If it contains results you don't |
|
|
3829 | # want to keep, you may remove or edit it. |
1467 | # |
3830 | # |
1468 | # By default, configure uses ./config.cache as the cache file, |
|
|
1469 | # creating it if it does not exist already. You can give configure |
|
|
1470 | # the --cache-file=FILE option to use a different cache file; that is |
|
|
1471 | # what configure does when it calls configure scripts in |
|
|
1472 | # subdirectories, so they share the cache. |
|
|
1473 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
|
|
1474 | # config.status only pays attention to the cache file if you give it the |
3831 | # config.status only pays attention to the cache file if you give it |
1475 | # --recheck option to rerun configure. |
3832 | # the --recheck option to rerun configure. |
1476 | # |
3833 | # |
1477 | EOF |
3834 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
|
|
3835 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
|
|
3836 | # following values. |
|
|
3837 | |
|
|
3838 | _ACEOF |
|
|
3839 | |
1478 | # The following way of writing the cache mishandles newlines in values, |
3840 | # The following way of writing the cache mishandles newlines in values, |
1479 | # but we know of no workaround that is simple, portable, and efficient. |
3841 | # but we know of no workaround that is simple, portable, and efficient. |
1480 | # So, don't put newlines in cache variables' values. |
3842 | # So, we kill variables containing newlines. |
1481 | # Ultrix sh set writes to stderr and can't be redirected directly, |
3843 | # Ultrix sh set writes to stderr and can't be redirected directly, |
1482 | # and sets the high bit in the cache file unless we assign to the vars. |
3844 | # and sets the high bit in the cache file unless we assign to the vars. |
|
|
3845 | ( |
|
|
3846 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
|
|
3847 | eval ac_val=\$$ac_var |
|
|
3848 | case $ac_val in #( |
|
|
3849 | *${as_nl}*) |
|
|
3850 | case $ac_var in #( |
|
|
3851 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
|
|
3852 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
|
|
3853 | esac |
|
|
3854 | case $ac_var in #( |
|
|
3855 | _ | IFS | as_nl) ;; #( |
|
|
3856 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
|
|
3857 | *) { eval $ac_var=; unset $ac_var;} ;; |
|
|
3858 | esac ;; |
|
|
3859 | esac |
|
|
3860 | done |
|
|
3861 | |
1483 | (set) 2>&1 | |
3862 | (set) 2>&1 | |
1484 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
3863 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
1485 | *ac_space=\ *) |
3864 | *${as_nl}ac_space=\ *) |
1486 | # `set' does not quote correctly, so add quotes (double-quote substitution |
3865 | # `set' does not quote correctly, so add quotes: double-quote |
1487 | # turns \\\\ into \\, and sed turns \\ into \). |
3866 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
1488 | sed -n \ |
3867 | sed -n \ |
1489 | -e "s/'/'\\\\''/g" \ |
3868 | "s/'/'\\\\''/g; |
1490 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
3869 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
1491 | ;; |
3870 | ;; #( |
1492 | *) |
3871 | *) |
1493 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
3872 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
1494 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
3873 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1495 | ;; |
3874 | ;; |
1496 | esac >> confcache |
3875 | esac | |
1497 | if cmp -s $cache_file confcache; then |
3876 | sort |
1498 | : |
3877 | ) | |
1499 | else |
3878 | sed ' |
|
|
3879 | /^ac_cv_env_/b end |
|
|
3880 | t clear |
|
|
3881 | :clear |
|
|
3882 | s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
|
|
3883 | t end |
|
|
3884 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
|
|
3885 | :end' >>confcache |
|
|
3886 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
1500 | if test -w $cache_file; then |
3887 | if test -w "$cache_file"; then |
1501 | echo "updating cache $cache_file" |
3888 | if test "x$cache_file" != "x/dev/null"; then |
|
|
3889 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
|
|
3890 | printf "%s\n" "$as_me: updating cache $cache_file" >&6;} |
|
|
3891 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
1502 | cat confcache > $cache_file |
3892 | cat confcache >"$cache_file" |
|
|
3893 | else |
|
|
3894 | case $cache_file in #( |
|
|
3895 | */* | ?:*) |
|
|
3896 | mv -f confcache "$cache_file"$$ && |
|
|
3897 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
|
|
3898 | *) |
|
|
3899 | mv -f confcache "$cache_file" ;; |
|
|
3900 | esac |
|
|
3901 | fi |
|
|
3902 | fi |
1503 | else |
3903 | else |
1504 | echo "not updating unwritable cache $cache_file" |
3904 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
|
|
3905 | printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} |
1505 | fi |
3906 | fi |
1506 | fi |
3907 | fi |
1507 | rm -f confcache |
3908 | rm -f confcache |
1508 | |
|
|
1509 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
|
|
1510 | |
3909 | |
1511 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
3910 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
1512 | # Let make expand exec_prefix. |
3911 | # Let make expand exec_prefix. |
1513 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
3912 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
1514 | |
3913 | |
1515 | # Any assignment to VPATH causes Sun make to only execute |
|
|
1516 | # the first set of double-colon rules, so remove it if not needed. |
|
|
1517 | # If there is a colon in the path, we need to keep it. |
|
|
1518 | if test "x$srcdir" = x.; then |
|
|
1519 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
|
|
1520 | fi |
|
|
1521 | |
|
|
1522 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
|
|
1523 | |
|
|
1524 | DEFS=-DHAVE_CONFIG_H |
3914 | DEFS=-DHAVE_CONFIG_H |
1525 | |
3915 | |
1526 | # Without the "./", some shells look in PATH for config.status. |
3916 | ac_libobjs= |
|
|
3917 | ac_ltlibobjs= |
|
|
3918 | U= |
|
|
3919 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
|
|
3920 | # 1. Remove the extension, and $U if already installed. |
|
|
3921 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
|
|
3922 | ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` |
|
|
3923 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
|
|
3924 | # will be set to the directory where LIBOBJS objects are built. |
|
|
3925 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
|
|
3926 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
|
|
3927 | done |
|
|
3928 | LIBOBJS=$ac_libobjs |
|
|
3929 | |
|
|
3930 | LTLIBOBJS=$ac_ltlibobjs |
|
|
3931 | |
|
|
3932 | |
|
|
3933 | |
1527 | : ${CONFIG_STATUS=./config.status} |
3934 | : "${CONFIG_STATUS=./config.status}" |
1528 | |
3935 | ac_write_fail=0 |
1529 | echo creating $CONFIG_STATUS |
3936 | ac_clean_files_save=$ac_clean_files |
1530 | rm -f $CONFIG_STATUS |
3937 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
1531 | cat > $CONFIG_STATUS <<EOF |
3938 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
1532 | #! /bin/sh |
3939 | printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} |
1533 | # Generated automatically by configure. |
3940 | as_write_fail=0 |
|
|
3941 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
|
|
3942 | #! $SHELL |
|
|
3943 | # Generated by $as_me. |
1534 | # Run this file to recreate the current configuration. |
3944 | # Run this file to recreate the current configuration. |
1535 | # This directory was configured as follows, |
|
|
1536 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
|
1537 | # |
|
|
1538 | # $0 $ac_configure_args |
|
|
1539 | # |
|
|
1540 | # Compiler output produced by configure, useful for debugging |
3945 | # Compiler output produced by configure, useful for debugging |
1541 | # configure, is in ./config.log if it exists. |
3946 | # configure, is in config.log if it exists. |
1542 | |
3947 | |
1543 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
3948 | debug=false |
1544 | for ac_option |
3949 | ac_cs_recheck=false |
|
|
3950 | ac_cs_silent=false |
|
|
3951 | |
|
|
3952 | SHELL=\${CONFIG_SHELL-$SHELL} |
|
|
3953 | export SHELL |
|
|
3954 | _ASEOF |
|
|
3955 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
|
|
3956 | ## -------------------- ## |
|
|
3957 | ## M4sh Initialization. ## |
|
|
3958 | ## -------------------- ## |
|
|
3959 | |
|
|
3960 | # Be more Bourne compatible |
|
|
3961 | DUALCASE=1; export DUALCASE # for MKS sh |
|
|
3962 | as_nop=: |
|
|
3963 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
|
|
3964 | then : |
|
|
3965 | emulate sh |
|
|
3966 | NULLCMD=: |
|
|
3967 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
|
|
3968 | # is contrary to our usage. Disable this feature. |
|
|
3969 | alias -g '${1+"$@"}'='"$@"' |
|
|
3970 | setopt NO_GLOB_SUBST |
|
|
3971 | else $as_nop |
|
|
3972 | case `(set -o) 2>/dev/null` in #( |
|
|
3973 | *posix*) : |
|
|
3974 | set -o posix ;; #( |
|
|
3975 | *) : |
|
|
3976 | ;; |
|
|
3977 | esac |
|
|
3978 | fi |
|
|
3979 | |
|
|
3980 | |
|
|
3981 | |
|
|
3982 | # Reset variables that may have inherited troublesome values from |
|
|
3983 | # the environment. |
|
|
3984 | |
|
|
3985 | # IFS needs to be set, to space, tab, and newline, in precisely that order. |
|
|
3986 | # (If _AS_PATH_WALK were called with IFS unset, it would have the |
|
|
3987 | # side effect of setting IFS to empty, thus disabling word splitting.) |
|
|
3988 | # Quoting is to prevent editors from complaining about space-tab. |
|
|
3989 | as_nl=' |
|
|
3990 | ' |
|
|
3991 | export as_nl |
|
|
3992 | IFS=" "" $as_nl" |
|
|
3993 | |
|
|
3994 | PS1='$ ' |
|
|
3995 | PS2='> ' |
|
|
3996 | PS4='+ ' |
|
|
3997 | |
|
|
3998 | # Ensure predictable behavior from utilities with locale-dependent output. |
|
|
3999 | LC_ALL=C |
|
|
4000 | export LC_ALL |
|
|
4001 | LANGUAGE=C |
|
|
4002 | export LANGUAGE |
|
|
4003 | |
|
|
4004 | # We cannot yet rely on "unset" to work, but we need these variables |
|
|
4005 | # to be unset--not just set to an empty or harmless value--now, to |
|
|
4006 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
|
|
4007 | # also avoids known problems related to "unset" and subshell syntax |
|
|
4008 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
|
|
4009 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
|
|
4010 | do eval test \${$as_var+y} \ |
|
|
4011 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
|
|
4012 | done |
|
|
4013 | |
|
|
4014 | # Ensure that fds 0, 1, and 2 are open. |
|
|
4015 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
|
|
4016 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
|
|
4017 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
|
|
4018 | |
|
|
4019 | # The user is always right. |
|
|
4020 | if ${PATH_SEPARATOR+false} :; then |
|
|
4021 | PATH_SEPARATOR=: |
|
|
4022 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
|
|
4023 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
|
|
4024 | PATH_SEPARATOR=';' |
|
|
4025 | } |
|
|
4026 | fi |
|
|
4027 | |
|
|
4028 | |
|
|
4029 | # Find who we are. Look in the path if we contain no directory separator. |
|
|
4030 | as_myself= |
|
|
4031 | case $0 in #(( |
|
|
4032 | *[\\/]* ) as_myself=$0 ;; |
|
|
4033 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
4034 | for as_dir in $PATH |
1545 | do |
4035 | do |
|
|
4036 | IFS=$as_save_IFS |
|
|
4037 | case $as_dir in #((( |
|
|
4038 | '') as_dir=./ ;; |
|
|
4039 | */) ;; |
|
|
4040 | *) as_dir=$as_dir/ ;; |
|
|
4041 | esac |
|
|
4042 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
|
|
4043 | done |
|
|
4044 | IFS=$as_save_IFS |
|
|
4045 | |
|
|
4046 | ;; |
|
|
4047 | esac |
|
|
4048 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
|
|
4049 | # in which case we are not to be found in the path. |
|
|
4050 | if test "x$as_myself" = x; then |
|
|
4051 | as_myself=$0 |
|
|
4052 | fi |
|
|
4053 | if test ! -f "$as_myself"; then |
|
|
4054 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
|
|
4055 | exit 1 |
|
|
4056 | fi |
|
|
4057 | |
|
|
4058 | |
|
|
4059 | |
|
|
4060 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
|
|
4061 | # ---------------------------------------- |
|
|
4062 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
|
|
4063 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
|
|
4064 | # script with STATUS, using 1 if that was 0. |
|
|
4065 | as_fn_error () |
|
|
4066 | { |
|
|
4067 | as_status=$1; test $as_status -eq 0 && as_status=1 |
|
|
4068 | if test "$4"; then |
|
|
4069 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
4070 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
|
|
4071 | fi |
|
|
4072 | printf "%s\n" "$as_me: error: $2" >&2 |
|
|
4073 | as_fn_exit $as_status |
|
|
4074 | } # as_fn_error |
|
|
4075 | |
|
|
4076 | |
|
|
4077 | |
|
|
4078 | # as_fn_set_status STATUS |
|
|
4079 | # ----------------------- |
|
|
4080 | # Set $? to STATUS, without forking. |
|
|
4081 | as_fn_set_status () |
|
|
4082 | { |
|
|
4083 | return $1 |
|
|
4084 | } # as_fn_set_status |
|
|
4085 | |
|
|
4086 | # as_fn_exit STATUS |
|
|
4087 | # ----------------- |
|
|
4088 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
|
|
4089 | as_fn_exit () |
|
|
4090 | { |
|
|
4091 | set +e |
|
|
4092 | as_fn_set_status $1 |
|
|
4093 | exit $1 |
|
|
4094 | } # as_fn_exit |
|
|
4095 | |
|
|
4096 | # as_fn_unset VAR |
|
|
4097 | # --------------- |
|
|
4098 | # Portably unset VAR. |
|
|
4099 | as_fn_unset () |
|
|
4100 | { |
|
|
4101 | { eval $1=; unset $1;} |
|
|
4102 | } |
|
|
4103 | as_unset=as_fn_unset |
|
|
4104 | |
|
|
4105 | # as_fn_append VAR VALUE |
|
|
4106 | # ---------------------- |
|
|
4107 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
|
|
4108 | # advantage of any shell optimizations that allow amortized linear growth over |
|
|
4109 | # repeated appends, instead of the typical quadratic growth present in naive |
|
|
4110 | # implementations. |
|
|
4111 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
|
|
4112 | then : |
|
|
4113 | eval 'as_fn_append () |
|
|
4114 | { |
|
|
4115 | eval $1+=\$2 |
|
|
4116 | }' |
|
|
4117 | else $as_nop |
|
|
4118 | as_fn_append () |
|
|
4119 | { |
|
|
4120 | eval $1=\$$1\$2 |
|
|
4121 | } |
|
|
4122 | fi # as_fn_append |
|
|
4123 | |
|
|
4124 | # as_fn_arith ARG... |
|
|
4125 | # ------------------ |
|
|
4126 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
|
|
4127 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
|
|
4128 | # must be portable across $(()) and expr. |
|
|
4129 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
|
|
4130 | then : |
|
|
4131 | eval 'as_fn_arith () |
|
|
4132 | { |
|
|
4133 | as_val=$(( $* )) |
|
|
4134 | }' |
|
|
4135 | else $as_nop |
|
|
4136 | as_fn_arith () |
|
|
4137 | { |
|
|
4138 | as_val=`expr "$@" || test $? -eq 1` |
|
|
4139 | } |
|
|
4140 | fi # as_fn_arith |
|
|
4141 | |
|
|
4142 | |
|
|
4143 | if expr a : '\(a\)' >/dev/null 2>&1 && |
|
|
4144 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
|
|
4145 | as_expr=expr |
|
|
4146 | else |
|
|
4147 | as_expr=false |
|
|
4148 | fi |
|
|
4149 | |
|
|
4150 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
|
|
4151 | as_basename=basename |
|
|
4152 | else |
|
|
4153 | as_basename=false |
|
|
4154 | fi |
|
|
4155 | |
|
|
4156 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
|
|
4157 | as_dirname=dirname |
|
|
4158 | else |
|
|
4159 | as_dirname=false |
|
|
4160 | fi |
|
|
4161 | |
|
|
4162 | as_me=`$as_basename -- "$0" || |
|
|
4163 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
|
|
4164 | X"$0" : 'X\(//\)$' \| \ |
|
|
4165 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
|
|
4166 | printf "%s\n" X/"$0" | |
|
|
4167 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
|
|
4168 | s//\1/ |
|
|
4169 | q |
|
|
4170 | } |
|
|
4171 | /^X\/\(\/\/\)$/{ |
|
|
4172 | s//\1/ |
|
|
4173 | q |
|
|
4174 | } |
|
|
4175 | /^X\/\(\/\).*/{ |
|
|
4176 | s//\1/ |
|
|
4177 | q |
|
|
4178 | } |
|
|
4179 | s/.*/./; q'` |
|
|
4180 | |
|
|
4181 | # Avoid depending upon Character Ranges. |
|
|
4182 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|
|
4183 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
|
4184 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|
|
4185 | as_cr_digits='0123456789' |
|
|
4186 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
|
|
4187 | |
|
|
4188 | |
|
|
4189 | # Determine whether it's possible to make 'echo' print without a newline. |
|
|
4190 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
|
|
4191 | # for compatibility with existing Makefiles. |
|
|
4192 | ECHO_C= ECHO_N= ECHO_T= |
|
|
4193 | case `echo -n x` in #((((( |
|
|
4194 | -n*) |
|
|
4195 | case `echo 'xy\c'` in |
|
|
4196 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
|
|
4197 | xy) ECHO_C='\c';; |
|
|
4198 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
|
|
4199 | ECHO_T=' ';; |
|
|
4200 | esac;; |
|
|
4201 | *) |
|
|
4202 | ECHO_N='-n';; |
|
|
4203 | esac |
|
|
4204 | |
|
|
4205 | # For backward compatibility with old third-party macros, we provide |
|
|
4206 | # the shell variables $as_echo and $as_echo_n. New code should use |
|
|
4207 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
|
|
4208 | as_echo='printf %s\n' |
|
|
4209 | as_echo_n='printf %s' |
|
|
4210 | |
|
|
4211 | rm -f conf$$ conf$$.exe conf$$.file |
|
|
4212 | if test -d conf$$.dir; then |
|
|
4213 | rm -f conf$$.dir/conf$$.file |
|
|
4214 | else |
|
|
4215 | rm -f conf$$.dir |
|
|
4216 | mkdir conf$$.dir 2>/dev/null |
|
|
4217 | fi |
|
|
4218 | if (echo >conf$$.file) 2>/dev/null; then |
|
|
4219 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
|
|
4220 | as_ln_s='ln -s' |
|
|
4221 | # ... but there are two gotchas: |
|
|
4222 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
|
|
4223 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
|
|
4224 | # In both cases, we have to default to `cp -pR'. |
|
|
4225 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
|
|
4226 | as_ln_s='cp -pR' |
|
|
4227 | elif ln conf$$.file conf$$ 2>/dev/null; then |
|
|
4228 | as_ln_s=ln |
|
|
4229 | else |
|
|
4230 | as_ln_s='cp -pR' |
|
|
4231 | fi |
|
|
4232 | else |
|
|
4233 | as_ln_s='cp -pR' |
|
|
4234 | fi |
|
|
4235 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
|
|
4236 | rmdir conf$$.dir 2>/dev/null |
|
|
4237 | |
|
|
4238 | |
|
|
4239 | # as_fn_mkdir_p |
|
|
4240 | # ------------- |
|
|
4241 | # Create "$as_dir" as a directory, including parents if necessary. |
|
|
4242 | as_fn_mkdir_p () |
|
|
4243 | { |
|
|
4244 | |
|
|
4245 | case $as_dir in #( |
|
|
4246 | -*) as_dir=./$as_dir;; |
|
|
4247 | esac |
|
|
4248 | test -d "$as_dir" || eval $as_mkdir_p || { |
|
|
4249 | as_dirs= |
|
|
4250 | while :; do |
|
|
4251 | case $as_dir in #( |
|
|
4252 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
|
|
4253 | *) as_qdir=$as_dir;; |
|
|
4254 | esac |
|
|
4255 | as_dirs="'$as_qdir' $as_dirs" |
|
|
4256 | as_dir=`$as_dirname -- "$as_dir" || |
|
|
4257 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
|
4258 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
|
|
4259 | X"$as_dir" : 'X\(//\)$' \| \ |
|
|
4260 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
|
|
4261 | printf "%s\n" X"$as_dir" | |
|
|
4262 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
|
4263 | s//\1/ |
|
|
4264 | q |
|
|
4265 | } |
|
|
4266 | /^X\(\/\/\)[^/].*/{ |
|
|
4267 | s//\1/ |
|
|
4268 | q |
|
|
4269 | } |
|
|
4270 | /^X\(\/\/\)$/{ |
|
|
4271 | s//\1/ |
|
|
4272 | q |
|
|
4273 | } |
|
|
4274 | /^X\(\/\).*/{ |
|
|
4275 | s//\1/ |
|
|
4276 | q |
|
|
4277 | } |
|
|
4278 | s/.*/./; q'` |
|
|
4279 | test -d "$as_dir" && break |
|
|
4280 | done |
|
|
4281 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
|
|
4282 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
|
|
4283 | |
|
|
4284 | |
|
|
4285 | } # as_fn_mkdir_p |
|
|
4286 | if mkdir -p . 2>/dev/null; then |
|
|
4287 | as_mkdir_p='mkdir -p "$as_dir"' |
|
|
4288 | else |
|
|
4289 | test -d ./-p && rmdir ./-p |
|
|
4290 | as_mkdir_p=false |
|
|
4291 | fi |
|
|
4292 | |
|
|
4293 | |
|
|
4294 | # as_fn_executable_p FILE |
|
|
4295 | # ----------------------- |
|
|
4296 | # Test if FILE is an executable regular file. |
|
|
4297 | as_fn_executable_p () |
|
|
4298 | { |
|
|
4299 | test -f "$1" && test -x "$1" |
|
|
4300 | } # as_fn_executable_p |
|
|
4301 | as_test_x='test -x' |
|
|
4302 | as_executable_p=as_fn_executable_p |
|
|
4303 | |
|
|
4304 | # Sed expression to map a string onto a valid CPP name. |
|
|
4305 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
|
|
4306 | |
|
|
4307 | # Sed expression to map a string onto a valid variable name. |
|
|
4308 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
|
|
4309 | |
|
|
4310 | |
|
|
4311 | exec 6>&1 |
|
|
4312 | ## ----------------------------------- ## |
|
|
4313 | ## Main body of $CONFIG_STATUS script. ## |
|
|
4314 | ## ----------------------------------- ## |
|
|
4315 | _ASEOF |
|
|
4316 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
|
|
4317 | |
|
|
4318 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
|
4319 | # Save the log message, to keep $0 and so on meaningful, and to |
|
|
4320 | # report actual input values of CONFIG_FILES etc. instead of their |
|
|
4321 | # values after options handling. |
|
|
4322 | ac_log=" |
|
|
4323 | This file was extended by $as_me, which was |
|
|
4324 | generated by GNU Autoconf 2.71. Invocation command line was |
|
|
4325 | |
|
|
4326 | CONFIG_FILES = $CONFIG_FILES |
|
|
4327 | CONFIG_HEADERS = $CONFIG_HEADERS |
|
|
4328 | CONFIG_LINKS = $CONFIG_LINKS |
|
|
4329 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
|
|
4330 | $ $0 $@ |
|
|
4331 | |
|
|
4332 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
|
|
4333 | " |
|
|
4334 | |
|
|
4335 | _ACEOF |
|
|
4336 | |
|
|
4337 | case $ac_config_files in *" |
|
|
4338 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
|
|
4339 | esac |
|
|
4340 | |
|
|
4341 | case $ac_config_headers in *" |
|
|
4342 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
|
|
4343 | esac |
|
|
4344 | |
|
|
4345 | |
|
|
4346 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
|
4347 | # Files that config.status was made for. |
|
|
4348 | config_files="$ac_config_files" |
|
|
4349 | config_headers="$ac_config_headers" |
|
|
4350 | |
|
|
4351 | _ACEOF |
|
|
4352 | |
|
|
4353 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
|
4354 | ac_cs_usage="\ |
|
|
4355 | \`$as_me' instantiates files and other configuration actions |
|
|
4356 | from templates according to the current configuration. Unless the files |
|
|
4357 | and actions are specified as TAGs, all are instantiated by default. |
|
|
4358 | |
|
|
4359 | Usage: $0 [OPTION]... [TAG]... |
|
|
4360 | |
|
|
4361 | -h, --help print this help, then exit |
|
|
4362 | -V, --version print version number and configuration settings, then exit |
|
|
4363 | --config print configuration, then exit |
|
|
4364 | -q, --quiet, --silent |
|
|
4365 | do not print progress messages |
|
|
4366 | -d, --debug don't remove temporary files |
|
|
4367 | --recheck update $as_me by reconfiguring in the same conditions |
|
|
4368 | --file=FILE[:TEMPLATE] |
|
|
4369 | instantiate the configuration file FILE |
|
|
4370 | --header=FILE[:TEMPLATE] |
|
|
4371 | instantiate the configuration header FILE |
|
|
4372 | |
|
|
4373 | Configuration files: |
|
|
4374 | $config_files |
|
|
4375 | |
|
|
4376 | Configuration headers: |
|
|
4377 | $config_headers |
|
|
4378 | |
|
|
4379 | Report bugs to the package provider." |
|
|
4380 | |
|
|
4381 | _ACEOF |
|
|
4382 | ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` |
|
|
4383 | ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` |
|
|
4384 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
|
4385 | ac_cs_config='$ac_cs_config_escaped' |
|
|
4386 | ac_cs_version="\\ |
|
|
4387 | config.status |
|
|
4388 | configured by $0, generated by GNU Autoconf 2.71, |
|
|
4389 | with options \\"\$ac_cs_config\\" |
|
|
4390 | |
|
|
4391 | Copyright (C) 2021 Free Software Foundation, Inc. |
|
|
4392 | This config.status script is free software; the Free Software Foundation |
|
|
4393 | gives unlimited permission to copy, distribute and modify it." |
|
|
4394 | |
|
|
4395 | ac_pwd='$ac_pwd' |
|
|
4396 | srcdir='$srcdir' |
|
|
4397 | test -n "\$AWK" || AWK=awk |
|
|
4398 | _ACEOF |
|
|
4399 | |
|
|
4400 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
|
4401 | # The default lists apply if the user does not specify any file. |
|
|
4402 | ac_need_defaults=: |
|
|
4403 | while test $# != 0 |
|
|
4404 | do |
|
|
4405 | case $1 in |
|
|
4406 | --*=?*) |
|
|
4407 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
|
|
4408 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
|
|
4409 | ac_shift=: |
|
|
4410 | ;; |
|
|
4411 | --*=) |
|
|
4412 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
|
|
4413 | ac_optarg= |
|
|
4414 | ac_shift=: |
|
|
4415 | ;; |
|
|
4416 | *) |
|
|
4417 | ac_option=$1 |
|
|
4418 | ac_optarg=$2 |
|
|
4419 | ac_shift=shift |
|
|
4420 | ;; |
|
|
4421 | esac |
|
|
4422 | |
1546 | case "\$ac_option" in |
4423 | case $ac_option in |
|
|
4424 | # Handling of the options. |
1547 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
4425 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
1548 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
4426 | ac_cs_recheck=: ;; |
1549 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
|
|
1550 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
4427 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
1551 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
4428 | printf "%s\n" "$ac_cs_version"; exit ;; |
1552 | exit 0 ;; |
4429 | --config | --confi | --conf | --con | --co | --c ) |
1553 | -help | --help | --hel | --he | --h) |
4430 | printf "%s\n" "$ac_cs_config"; exit ;; |
|
|
4431 | --debug | --debu | --deb | --de | --d | -d ) |
|
|
4432 | debug=: ;; |
|
|
4433 | --file | --fil | --fi | --f ) |
|
|
4434 | $ac_shift |
|
|
4435 | case $ac_optarg in |
|
|
4436 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
|
4437 | '') as_fn_error $? "missing file argument" ;; |
|
|
4438 | esac |
|
|
4439 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
|
|
4440 | ac_need_defaults=false;; |
|
|
4441 | --header | --heade | --head | --hea ) |
|
|
4442 | $ac_shift |
|
|
4443 | case $ac_optarg in |
|
|
4444 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
|
4445 | esac |
|
|
4446 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
|
|
4447 | ac_need_defaults=false;; |
|
|
4448 | --he | --h) |
|
|
4449 | # Conflict between --help and --header |
|
|
4450 | as_fn_error $? "ambiguous option: \`$1' |
|
|
4451 | Try \`$0 --help' for more information.";; |
|
|
4452 | --help | --hel | -h ) |
1554 | echo "\$ac_cs_usage"; exit 0 ;; |
4453 | printf "%s\n" "$ac_cs_usage"; exit ;; |
1555 | *) echo "\$ac_cs_usage"; exit 1 ;; |
4454 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
|
4455 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
|
|
4456 | ac_cs_silent=: ;; |
|
|
4457 | |
|
|
4458 | # This is an error. |
|
|
4459 | -*) as_fn_error $? "unrecognized option: \`$1' |
|
|
4460 | Try \`$0 --help' for more information." ;; |
|
|
4461 | |
|
|
4462 | *) as_fn_append ac_config_targets " $1" |
|
|
4463 | ac_need_defaults=false ;; |
|
|
4464 | |
|
|
4465 | esac |
|
|
4466 | shift |
|
|
4467 | done |
|
|
4468 | |
|
|
4469 | ac_configure_extra_args= |
|
|
4470 | |
|
|
4471 | if $ac_cs_silent; then |
|
|
4472 | exec 6>/dev/null |
|
|
4473 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
|
|
4474 | fi |
|
|
4475 | |
|
|
4476 | _ACEOF |
|
|
4477 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
|
4478 | if \$ac_cs_recheck; then |
|
|
4479 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
|
|
4480 | shift |
|
|
4481 | \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 |
|
|
4482 | CONFIG_SHELL='$SHELL' |
|
|
4483 | export CONFIG_SHELL |
|
|
4484 | exec "\$@" |
|
|
4485 | fi |
|
|
4486 | |
|
|
4487 | _ACEOF |
|
|
4488 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
|
4489 | exec 5>>config.log |
|
|
4490 | { |
|
|
4491 | echo |
|
|
4492 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
|
|
4493 | ## Running $as_me. ## |
|
|
4494 | _ASBOX |
|
|
4495 | printf "%s\n" "$ac_log" |
|
|
4496 | } >&5 |
|
|
4497 | |
|
|
4498 | _ACEOF |
|
|
4499 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
|
4500 | _ACEOF |
|
|
4501 | |
|
|
4502 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
|
4503 | |
|
|
4504 | # Handling of arguments. |
|
|
4505 | for ac_config_target in $ac_config_targets |
|
|
4506 | do |
|
|
4507 | case $ac_config_target in |
|
|
4508 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
|
|
4509 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
|
|
4510 | |
|
|
4511 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
1556 | esac |
4512 | esac |
1557 | done |
4513 | done |
1558 | |
4514 | |
1559 | ac_given_srcdir=$srcdir |
|
|
1560 | |
4515 | |
1561 | trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
4516 | # If the user did not use the arguments to specify the items to instantiate, |
1562 | EOF |
4517 | # then the envvar interface is used. Set only those that are not. |
1563 | cat >> $CONFIG_STATUS <<EOF |
4518 | # We use the long form for the default assignment because of an extremely |
|
|
4519 | # bizarre bug on SunOS 4.1.3. |
|
|
4520 | if $ac_need_defaults; then |
|
|
4521 | test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files |
|
|
4522 | test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers |
|
|
4523 | fi |
1564 | |
4524 | |
1565 | # Protect against being on the right side of a sed subst in config.status. |
4525 | # Have a temporary directory for convenience. Make it in the build tree |
1566 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
4526 | # simply because there is no reason against having it here, and in addition, |
1567 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
4527 | # creating and moving files from /tmp can sometimes cause problems. |
1568 | $ac_vpsub |
4528 | # Hook for its removal unless debugging. |
1569 | $extrasub |
4529 | # Note that there is a small window in which the directory will not be cleaned: |
1570 | s%@SHELL@%$SHELL%g |
4530 | # after its creation but before its name has been assigned to `$tmp'. |
1571 | s%@CFLAGS@%$CFLAGS%g |
4531 | $debug || |
1572 | s%@CPPFLAGS@%$CPPFLAGS%g |
4532 | { |
1573 | s%@CXXFLAGS@%$CXXFLAGS%g |
4533 | tmp= ac_tmp= |
1574 | s%@FFLAGS@%$FFLAGS%g |
4534 | trap 'exit_status=$? |
1575 | s%@DEFS@%$DEFS%g |
4535 | : "${ac_tmp:=$tmp}" |
1576 | s%@LDFLAGS@%$LDFLAGS%g |
4536 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
1577 | s%@LIBS@%$LIBS%g |
4537 | ' 0 |
1578 | s%@exec_prefix@%$exec_prefix%g |
4538 | trap 'as_fn_exit 1' 1 2 13 15 |
1579 | s%@prefix@%$prefix%g |
4539 | } |
1580 | s%@program_transform_name@%$program_transform_name%g |
4540 | # Create a (secure) tmp directory for tmp files. |
1581 | s%@bindir@%$bindir%g |
|
|
1582 | s%@sbindir@%$sbindir%g |
|
|
1583 | s%@libexecdir@%$libexecdir%g |
|
|
1584 | s%@datadir@%$datadir%g |
|
|
1585 | s%@sysconfdir@%$sysconfdir%g |
|
|
1586 | s%@sharedstatedir@%$sharedstatedir%g |
|
|
1587 | s%@localstatedir@%$localstatedir%g |
|
|
1588 | s%@libdir@%$libdir%g |
|
|
1589 | s%@includedir@%$includedir%g |
|
|
1590 | s%@oldincludedir@%$oldincludedir%g |
|
|
1591 | s%@infodir@%$infodir%g |
|
|
1592 | s%@mandir@%$mandir%g |
|
|
1593 | s%@CC@%$CC%g |
|
|
1594 | s%@CPP@%$CPP%g |
|
|
1595 | s%@SET_MAKE@%$SET_MAKE%g |
|
|
1596 | s%@RANLIB@%$RANLIB%g |
|
|
1597 | s%@VERSION@%$VERSION%g |
|
|
1598 | s%@PATCH@%$PATCH%g |
|
|
1599 | |
4541 | |
|
|
4542 | { |
|
|
4543 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
|
|
4544 | test -d "$tmp" |
|
|
4545 | } || |
|
|
4546 | { |
|
|
4547 | tmp=./conf$$-$RANDOM |
|
|
4548 | (umask 077 && mkdir "$tmp") |
|
|
4549 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
|
|
4550 | ac_tmp=$tmp |
|
|
4551 | |
|
|
4552 | # Set up the scripts for CONFIG_FILES section. |
|
|
4553 | # No need to generate them if there are no CONFIG_FILES. |
|
|
4554 | # This happens for instance with `./config.status config.h'. |
|
|
4555 | if test -n "$CONFIG_FILES"; then |
|
|
4556 | |
|
|
4557 | |
|
|
4558 | ac_cr=`echo X | tr X '\015'` |
|
|
4559 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
|
|
4560 | # But we know of no other shell where ac_cr would be empty at this |
|
|
4561 | # point, so we can use a bashism as a fallback. |
|
|
4562 | if test "x$ac_cr" = x; then |
|
|
4563 | eval ac_cr=\$\'\\r\' |
|
|
4564 | fi |
|
|
4565 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
|
|
4566 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
|
|
4567 | ac_cs_awk_cr='\\r' |
|
|
4568 | else |
|
|
4569 | ac_cs_awk_cr=$ac_cr |
|
|
4570 | fi |
|
|
4571 | |
|
|
4572 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
1600 | CEOF |
4573 | _ACEOF |
1601 | EOF |
|
|
1602 | |
4574 | |
1603 | cat >> $CONFIG_STATUS <<\EOF |
|
|
1604 | |
4575 | |
1605 | # Split the substitutions into bite-sized pieces for seds with |
4576 | { |
1606 | # small command number limits, like on Digital OSF/1 and HP-UX. |
4577 | echo "cat >conf$$subs.awk <<_ACEOF" && |
1607 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
4578 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
1608 | ac_file=1 # Number of current file. |
4579 | echo "_ACEOF" |
1609 | ac_beg=1 # First line for current file. |
4580 | } >conf$$subs.sh || |
1610 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
4581 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
1611 | ac_more_lines=: |
4582 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
1612 | ac_sed_cmds="" |
4583 | ac_delim='%!_!# ' |
1613 | while $ac_more_lines; do |
4584 | for ac_last_try in false false false false false :; do |
1614 | if test $ac_beg -gt 1; then |
4585 | . ./conf$$subs.sh || |
1615 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
4586 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
|
|
4587 | |
|
|
4588 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
|
|
4589 | if test $ac_delim_n = $ac_delim_num; then |
|
|
4590 | break |
|
|
4591 | elif $ac_last_try; then |
|
|
4592 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
1616 | else |
4593 | else |
1617 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
4594 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
1618 | fi |
|
|
1619 | if test ! -s conftest.s$ac_file; then |
|
|
1620 | ac_more_lines=false |
|
|
1621 | rm -f conftest.s$ac_file |
|
|
1622 | else |
|
|
1623 | if test -z "$ac_sed_cmds"; then |
|
|
1624 | ac_sed_cmds="sed -f conftest.s$ac_file" |
|
|
1625 | else |
|
|
1626 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
|
|
1627 | fi |
|
|
1628 | ac_file=`expr $ac_file + 1` |
|
|
1629 | ac_beg=$ac_end |
|
|
1630 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
|
|
1631 | fi |
4595 | fi |
1632 | done |
4596 | done |
|
|
4597 | rm -f conf$$subs.sh |
|
|
4598 | |
|
|
4599 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
|
4600 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
|
|
4601 | _ACEOF |
|
|
4602 | sed -n ' |
|
|
4603 | h |
|
|
4604 | s/^/S["/; s/!.*/"]=/ |
|
|
4605 | p |
|
|
4606 | g |
|
|
4607 | s/^[^!]*!// |
|
|
4608 | :repl |
|
|
4609 | t repl |
|
|
4610 | s/'"$ac_delim"'$// |
|
|
4611 | t delim |
|
|
4612 | :nl |
|
|
4613 | h |
|
|
4614 | s/\(.\{148\}\)..*/\1/ |
|
|
4615 | t more1 |
|
|
4616 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
|
|
4617 | p |
|
|
4618 | n |
|
|
4619 | b repl |
|
|
4620 | :more1 |
|
|
4621 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
|
|
4622 | p |
|
|
4623 | g |
|
|
4624 | s/.\{148\}// |
|
|
4625 | t nl |
|
|
4626 | :delim |
|
|
4627 | h |
|
|
4628 | s/\(.\{148\}\)..*/\1/ |
|
|
4629 | t more2 |
|
|
4630 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
|
|
4631 | p |
|
|
4632 | b |
|
|
4633 | :more2 |
|
|
4634 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
|
|
4635 | p |
|
|
4636 | g |
|
|
4637 | s/.\{148\}// |
|
|
4638 | t delim |
|
|
4639 | ' <conf$$subs.awk | sed ' |
|
|
4640 | /^[^""]/{ |
|
|
4641 | N |
|
|
4642 | s/\n// |
|
|
4643 | } |
|
|
4644 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
|
|
4645 | rm -f conf$$subs.awk |
|
|
4646 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
|
4647 | _ACAWK |
|
|
4648 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
|
|
4649 | for (key in S) S_is_set[key] = 1 |
|
|
4650 | FS = "" |
|
|
4651 | |
|
|
4652 | } |
|
|
4653 | { |
|
|
4654 | line = $ 0 |
|
|
4655 | nfields = split(line, field, "@") |
|
|
4656 | substed = 0 |
|
|
4657 | len = length(field[1]) |
|
|
4658 | for (i = 2; i < nfields; i++) { |
|
|
4659 | key = field[i] |
|
|
4660 | keylen = length(key) |
|
|
4661 | if (S_is_set[key]) { |
|
|
4662 | value = S[key] |
|
|
4663 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
|
|
4664 | len += length(value) + length(field[++i]) |
|
|
4665 | substed = 1 |
|
|
4666 | } else |
|
|
4667 | len += 1 + keylen |
|
|
4668 | } |
|
|
4669 | |
|
|
4670 | print line |
|
|
4671 | } |
|
|
4672 | |
|
|
4673 | _ACAWK |
|
|
4674 | _ACEOF |
|
|
4675 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
|
4676 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
|
|
4677 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
|
|
4678 | else |
|
|
4679 | cat |
|
|
4680 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
|
|
4681 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
|
|
4682 | _ACEOF |
|
|
4683 | |
|
|
4684 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
|
|
4685 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
|
|
4686 | # trailing colons and then remove the whole line if VPATH becomes empty |
|
|
4687 | # (actually we leave an empty line to preserve line numbers). |
|
|
4688 | if test "x$srcdir" = x.; then |
|
|
4689 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
|
|
4690 | h |
|
|
4691 | s/// |
|
|
4692 | s/^/:/ |
|
|
4693 | s/[ ]*$/:/ |
|
|
4694 | s/:\$(srcdir):/:/g |
|
|
4695 | s/:\${srcdir}:/:/g |
|
|
4696 | s/:@srcdir@:/:/g |
|
|
4697 | s/^:*// |
|
|
4698 | s/:*$// |
|
|
4699 | x |
|
|
4700 | s/\(=[ ]*\).*/\1/ |
|
|
4701 | G |
|
|
4702 | s/\n// |
|
|
4703 | s/^[^=]*=[ ]*$// |
|
|
4704 | }' |
|
|
4705 | fi |
|
|
4706 | |
|
|
4707 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
|
4708 | fi # test -n "$CONFIG_FILES" |
|
|
4709 | |
|
|
4710 | # Set up the scripts for CONFIG_HEADERS section. |
|
|
4711 | # No need to generate them if there are no CONFIG_HEADERS. |
|
|
4712 | # This happens for instance with `./config.status Makefile'. |
|
|
4713 | if test -n "$CONFIG_HEADERS"; then |
|
|
4714 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
|
|
4715 | BEGIN { |
|
|
4716 | _ACEOF |
|
|
4717 | |
|
|
4718 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
|
|
4719 | # here-document in config.status, that substitutes the proper values into |
|
|
4720 | # config.h.in to produce config.h. |
|
|
4721 | |
|
|
4722 | # Create a delimiter string that does not exist in confdefs.h, to ease |
|
|
4723 | # handling of long lines. |
|
|
4724 | ac_delim='%!_!# ' |
|
|
4725 | for ac_last_try in false false :; do |
|
|
4726 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
1633 | if test -z "$ac_sed_cmds"; then |
4727 | if test -z "$ac_tt"; then |
1634 | ac_sed_cmds=cat |
4728 | break |
1635 | fi |
4729 | elif $ac_last_try; then |
1636 | EOF |
4730 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
|
|
4731 | else |
|
|
4732 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
|
4733 | fi |
|
|
4734 | done |
1637 | |
4735 | |
1638 | cat >> $CONFIG_STATUS <<EOF |
4736 | # For the awk script, D is an array of macro values keyed by name, |
|
|
4737 | # likewise P contains macro parameters if any. Preserve backslash |
|
|
4738 | # newline sequences. |
1639 | |
4739 | |
1640 | CONFIG_FILES=\${CONFIG_FILES-"Makefile"} |
4740 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
1641 | EOF |
4741 | sed -n ' |
1642 | cat >> $CONFIG_STATUS <<\EOF |
4742 | s/.\{148\}/&'"$ac_delim"'/g |
1643 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
4743 | t rset |
1644 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
4744 | :rset |
|
|
4745 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
|
|
4746 | t def |
|
|
4747 | d |
|
|
4748 | :def |
|
|
4749 | s/\\$// |
|
|
4750 | t bsnl |
|
|
4751 | s/["\\]/\\&/g |
|
|
4752 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
|
|
4753 | D["\1"]=" \3"/p |
|
|
4754 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
|
|
4755 | d |
|
|
4756 | :bsnl |
|
|
4757 | s/["\\]/\\&/g |
|
|
4758 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
|
|
4759 | D["\1"]=" \3\\\\\\n"\\/p |
|
|
4760 | t cont |
|
|
4761 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
|
|
4762 | t cont |
|
|
4763 | d |
|
|
4764 | :cont |
|
|
4765 | n |
|
|
4766 | s/.\{148\}/&'"$ac_delim"'/g |
|
|
4767 | t clear |
|
|
4768 | :clear |
|
|
4769 | s/\\$// |
|
|
4770 | t bsnlc |
|
|
4771 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
|
|
4772 | d |
|
|
4773 | :bsnlc |
|
|
4774 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
|
|
4775 | b cont |
|
|
4776 | ' <confdefs.h | sed ' |
|
|
4777 | s/'"$ac_delim"'/"\\\ |
|
|
4778 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
|
|
4779 | |
|
|
4780 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
|
4781 | for (key in D) D_is_set[key] = 1 |
|
|
4782 | FS = "" |
|
|
4783 | } |
|
|
4784 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
|
|
4785 | line = \$ 0 |
|
|
4786 | split(line, arg, " ") |
|
|
4787 | if (arg[1] == "#") { |
|
|
4788 | defundef = arg[2] |
|
|
4789 | mac1 = arg[3] |
|
|
4790 | } else { |
|
|
4791 | defundef = substr(arg[1], 2) |
|
|
4792 | mac1 = arg[2] |
|
|
4793 | } |
|
|
4794 | split(mac1, mac2, "(") #) |
|
|
4795 | macro = mac2[1] |
|
|
4796 | prefix = substr(line, 1, index(line, defundef) - 1) |
|
|
4797 | if (D_is_set[macro]) { |
|
|
4798 | # Preserve the white space surrounding the "#". |
|
|
4799 | print prefix "define", macro P[macro] D[macro] |
|
|
4800 | next |
|
|
4801 | } else { |
|
|
4802 | # Replace #undef with comments. This is necessary, for example, |
|
|
4803 | # in the case of _POSIX_SOURCE, which is predefined and required |
|
|
4804 | # on some systems where configure will not decide to define it. |
|
|
4805 | if (defundef == "undef") { |
|
|
4806 | print "/*", prefix defundef, macro, "*/" |
|
|
4807 | next |
|
|
4808 | } |
|
|
4809 | } |
|
|
4810 | } |
|
|
4811 | { print } |
|
|
4812 | _ACAWK |
|
|
4813 | _ACEOF |
|
|
4814 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
|
4815 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
|
|
4816 | fi # test -n "$CONFIG_HEADERS" |
|
|
4817 | |
|
|
4818 | |
|
|
4819 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
|
|
4820 | shift |
|
|
4821 | for ac_tag |
|
|
4822 | do |
1645 | case "$ac_file" in |
4823 | case $ac_tag in |
1646 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
4824 | :[FHLC]) ac_mode=$ac_tag; continue;; |
1647 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
|
|
1648 | *) ac_file_in="${ac_file}.in" ;; |
|
|
1649 | esac |
4825 | esac |
|
|
4826 | case $ac_mode$ac_tag in |
|
|
4827 | :[FHL]*:*);; |
|
|
4828 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
|
|
4829 | :[FH]-) ac_tag=-:-;; |
|
|
4830 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
|
|
4831 | esac |
|
|
4832 | ac_save_IFS=$IFS |
|
|
4833 | IFS=: |
|
|
4834 | set x $ac_tag |
|
|
4835 | IFS=$ac_save_IFS |
|
|
4836 | shift |
|
|
4837 | ac_file=$1 |
|
|
4838 | shift |
1650 | |
4839 | |
1651 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
4840 | case $ac_mode in |
|
|
4841 | :L) ac_source=$1;; |
|
|
4842 | :[FH]) |
|
|
4843 | ac_file_inputs= |
|
|
4844 | for ac_f |
|
|
4845 | do |
|
|
4846 | case $ac_f in |
|
|
4847 | -) ac_f="$ac_tmp/stdin";; |
|
|
4848 | *) # Look for the file first in the build tree, then in the source tree |
|
|
4849 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
|
|
4850 | # because $ac_f cannot contain `:'. |
|
|
4851 | test -f "$ac_f" || |
|
|
4852 | case $ac_f in |
|
|
4853 | [\\/$]*) false;; |
|
|
4854 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
|
|
4855 | esac || |
|
|
4856 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
|
|
4857 | esac |
|
|
4858 | case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
|
|
4859 | as_fn_append ac_file_inputs " '$ac_f'" |
|
|
4860 | done |
1652 | |
4861 | |
1653 | # Remove last slash and all that follows it. Not all systems have dirname. |
4862 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
1654 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
4863 | # use $as_me), people would be surprised to read: |
1655 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
4864 | # /* config.h. Generated by config.status. */ |
1656 | # The file is in a subdirectory. |
4865 | configure_input='Generated from '` |
1657 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
4866 | printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
1658 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
4867 | `' by configure.' |
|
|
4868 | if test x"$ac_file" != x-; then |
|
|
4869 | configure_input="$ac_file. $configure_input" |
|
|
4870 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
|
|
4871 | printf "%s\n" "$as_me: creating $ac_file" >&6;} |
|
|
4872 | fi |
|
|
4873 | # Neutralize special characters interpreted by sed in replacement strings. |
|
|
4874 | case $configure_input in #( |
|
|
4875 | *\&* | *\|* | *\\* ) |
|
|
4876 | ac_sed_conf_input=`printf "%s\n" "$configure_input" | |
|
|
4877 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
|
|
4878 | *) ac_sed_conf_input=$configure_input;; |
|
|
4879 | esac |
|
|
4880 | |
|
|
4881 | case $ac_tag in |
|
|
4882 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
|
|
4883 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
|
|
4884 | esac |
|
|
4885 | ;; |
|
|
4886 | esac |
|
|
4887 | |
|
|
4888 | ac_dir=`$as_dirname -- "$ac_file" || |
|
|
4889 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
|
4890 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
|
|
4891 | X"$ac_file" : 'X\(//\)$' \| \ |
|
|
4892 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
|
|
4893 | printf "%s\n" X"$ac_file" | |
|
|
4894 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
|
4895 | s//\1/ |
|
|
4896 | q |
|
|
4897 | } |
|
|
4898 | /^X\(\/\/\)[^/].*/{ |
|
|
4899 | s//\1/ |
|
|
4900 | q |
|
|
4901 | } |
|
|
4902 | /^X\(\/\/\)$/{ |
|
|
4903 | s//\1/ |
|
|
4904 | q |
|
|
4905 | } |
|
|
4906 | /^X\(\/\).*/{ |
|
|
4907 | s//\1/ |
|
|
4908 | q |
|
|
4909 | } |
|
|
4910 | s/.*/./; q'` |
|
|
4911 | as_dir="$ac_dir"; as_fn_mkdir_p |
|
|
4912 | ac_builddir=. |
|
|
4913 | |
|
|
4914 | case "$ac_dir" in |
|
|
4915 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
|
4916 | *) |
|
|
4917 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
1659 | # A "../" for each directory in $ac_dir_suffix. |
4918 | # A ".." for each directory in $ac_dir_suffix. |
1660 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
4919 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
|
|
4920 | case $ac_top_builddir_sub in |
|
|
4921 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
|
4922 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
|
|
4923 | esac ;; |
|
|
4924 | esac |
|
|
4925 | ac_abs_top_builddir=$ac_pwd |
|
|
4926 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
|
|
4927 | # for backward compatibility: |
|
|
4928 | ac_top_builddir=$ac_top_build_prefix |
|
|
4929 | |
|
|
4930 | case $srcdir in |
|
|
4931 | .) # We are building in place. |
|
|
4932 | ac_srcdir=. |
|
|
4933 | ac_top_srcdir=$ac_top_builddir_sub |
|
|
4934 | ac_abs_top_srcdir=$ac_pwd ;; |
|
|
4935 | [\\/]* | ?:[\\/]* ) # Absolute name. |
|
|
4936 | ac_srcdir=$srcdir$ac_dir_suffix; |
|
|
4937 | ac_top_srcdir=$srcdir |
|
|
4938 | ac_abs_top_srcdir=$srcdir ;; |
|
|
4939 | *) # Relative name. |
|
|
4940 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
|
|
4941 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
|
|
4942 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
|
|
4943 | esac |
|
|
4944 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
|
|
4945 | |
|
|
4946 | |
|
|
4947 | case $ac_mode in |
|
|
4948 | :F) |
|
|
4949 | # |
|
|
4950 | # CONFIG_FILE |
|
|
4951 | # |
|
|
4952 | |
|
|
4953 | _ACEOF |
|
|
4954 | |
|
|
4955 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
|
4956 | # If the template does not know about datarootdir, expand it. |
|
|
4957 | # FIXME: This hack should be removed a few years after 2.60. |
|
|
4958 | ac_datarootdir_hack=; ac_datarootdir_seen= |
|
|
4959 | ac_sed_dataroot=' |
|
|
4960 | /datarootdir/ { |
|
|
4961 | p |
|
|
4962 | q |
|
|
4963 | } |
|
|
4964 | /@datadir@/p |
|
|
4965 | /@docdir@/p |
|
|
4966 | /@infodir@/p |
|
|
4967 | /@localedir@/p |
|
|
4968 | /@mandir@/p' |
|
|
4969 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
|
|
4970 | *datarootdir*) ac_datarootdir_seen=yes;; |
|
|
4971 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
|
|
4972 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
|
|
4973 | printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
|
|
4974 | _ACEOF |
|
|
4975 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
|
4976 | ac_datarootdir_hack=' |
|
|
4977 | s&@datadir@&$datadir&g |
|
|
4978 | s&@docdir@&$docdir&g |
|
|
4979 | s&@infodir@&$infodir&g |
|
|
4980 | s&@localedir@&$localedir&g |
|
|
4981 | s&@mandir@&$mandir&g |
|
|
4982 | s&\\\${datarootdir}&$datarootdir&g' ;; |
|
|
4983 | esac |
|
|
4984 | _ACEOF |
|
|
4985 | |
|
|
4986 | # Neutralize VPATH when `$srcdir' = `.'. |
|
|
4987 | # Shell code in configure.ac might set extrasub. |
|
|
4988 | # FIXME: do we really want to maintain this feature? |
|
|
4989 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
|
4990 | ac_sed_extra="$ac_vpsub |
|
|
4991 | $extrasub |
|
|
4992 | _ACEOF |
|
|
4993 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
|
4994 | :t |
|
|
4995 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
|
|
4996 | s|@configure_input@|$ac_sed_conf_input|;t t |
|
|
4997 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
|
|
4998 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
|
|
4999 | s&@srcdir@&$ac_srcdir&;t t |
|
|
5000 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
|
|
5001 | s&@top_srcdir@&$ac_top_srcdir&;t t |
|
|
5002 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
|
|
5003 | s&@builddir@&$ac_builddir&;t t |
|
|
5004 | s&@abs_builddir@&$ac_abs_builddir&;t t |
|
|
5005 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
|
|
5006 | $ac_datarootdir_hack |
|
|
5007 | " |
|
|
5008 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
|
|
5009 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
|
|
5010 | |
|
|
5011 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
|
|
5012 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
|
|
5013 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
|
|
5014 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
|
|
5015 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
|
|
5016 | which seems to be undefined. Please make sure it is defined" >&5 |
|
|
5017 | printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
|
|
5018 | which seems to be undefined. Please make sure it is defined" >&2;} |
|
|
5019 | |
|
|
5020 | rm -f "$ac_tmp/stdin" |
|
|
5021 | case $ac_file in |
|
|
5022 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
|
|
5023 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
|
|
5024 | esac \ |
|
|
5025 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
|
|
5026 | ;; |
|
|
5027 | :H) |
|
|
5028 | # |
|
|
5029 | # CONFIG_HEADER |
|
|
5030 | # |
|
|
5031 | if test x"$ac_file" != x-; then |
|
|
5032 | { |
|
|
5033 | printf "%s\n" "/* $configure_input */" >&1 \ |
|
|
5034 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
|
|
5035 | } >"$ac_tmp/config.h" \ |
|
|
5036 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
|
|
5037 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
|
|
5038 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
|
|
5039 | printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} |
|
|
5040 | else |
|
|
5041 | rm -f "$ac_file" |
|
|
5042 | mv "$ac_tmp/config.h" "$ac_file" \ |
|
|
5043 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
|
|
5044 | fi |
1661 | else |
5045 | else |
1662 | ac_dir_suffix= ac_dots= |
5046 | printf "%s\n" "/* $configure_input */" >&1 \ |
|
|
5047 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
|
|
5048 | || as_fn_error $? "could not create -" "$LINENO" 5 |
1663 | fi |
5049 | fi |
|
|
5050 | ;; |
1664 | |
5051 | |
1665 | case "$ac_given_srcdir" in |
5052 | |
1666 | .) srcdir=. |
|
|
1667 | if test -z "$ac_dots"; then top_srcdir=. |
|
|
1668 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
|
|
1669 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
|
|
1670 | *) # Relative path. |
|
|
1671 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
|
|
1672 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
|
|
1673 | esac |
5053 | esac |
1674 | |
5054 | |
|
|
5055 | done # for ac_tag |
1675 | |
5056 | |
1676 | echo creating "$ac_file" |
|
|
1677 | rm -f "$ac_file" |
|
|
1678 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
|
|
1679 | case "$ac_file" in |
|
|
1680 | *Makefile*) ac_comsub="1i\\ |
|
|
1681 | # $configure_input" ;; |
|
|
1682 | *) ac_comsub= ;; |
|
|
1683 | esac |
|
|
1684 | |
5057 | |
1685 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
5058 | as_fn_exit 0 |
1686 | sed -e "$ac_comsub |
5059 | _ACEOF |
1687 | s%@configure_input@%$configure_input%g |
5060 | ac_clean_files=$ac_clean_files_save |
1688 | s%@srcdir@%$srcdir%g |
|
|
1689 | s%@top_srcdir@%$top_srcdir%g |
|
|
1690 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
|
|
1691 | fi; done |
|
|
1692 | rm -f conftest.s* |
|
|
1693 | |
5061 | |
1694 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
5062 | test $ac_write_fail = 0 || |
1695 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
5063 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
1696 | # |
|
|
1697 | # ac_d sets the value in "#define NAME VALUE" lines. |
|
|
1698 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
|
|
1699 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
|
|
1700 | ac_dC='\3' |
|
|
1701 | ac_dD='%g' |
|
|
1702 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
|
|
1703 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
|
|
1704 | ac_uB='\([ ]\)%\1#\2define\3' |
|
|
1705 | ac_uC=' ' |
|
|
1706 | ac_uD='\4%g' |
|
|
1707 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
|
|
1708 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
|
|
1709 | ac_eB='$%\1#\2define\3' |
|
|
1710 | ac_eC=' ' |
|
|
1711 | ac_eD='%g' |
|
|
1712 | |
5064 | |
1713 | if test "${CONFIG_HEADERS+set}" != set; then |
|
|
1714 | EOF |
|
|
1715 | cat >> $CONFIG_STATUS <<EOF |
|
|
1716 | CONFIG_HEADERS="config.h" |
|
|
1717 | EOF |
|
|
1718 | cat >> $CONFIG_STATUS <<\EOF |
|
|
1719 | fi |
|
|
1720 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
|
|
1721 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
|
|
1722 | case "$ac_file" in |
|
|
1723 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
|
|
1724 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
|
|
1725 | *) ac_file_in="${ac_file}.in" ;; |
|
|
1726 | esac |
|
|
1727 | |
5065 | |
1728 | echo creating $ac_file |
5066 | # configure is writing to config.log, and then calls config.status. |
|
|
5067 | # config.status does its own redirection, appending to config.log. |
|
|
5068 | # Unfortunately, on DOS this fails, as config.log is still kept open |
|
|
5069 | # by configure, so config.status won't be able to write to it; its |
|
|
5070 | # output is simply discarded. So we exec the FD to /dev/null, |
|
|
5071 | # effectively closing config.log, so it can be properly (re)opened and |
|
|
5072 | # appended to by config.status. When coming back to configure, we |
|
|
5073 | # need to make the FD available again. |
|
|
5074 | if test "$no_create" != yes; then |
|
|
5075 | ac_cs_success=: |
|
|
5076 | ac_config_status_args= |
|
|
5077 | test "$silent" = yes && |
|
|
5078 | ac_config_status_args="$ac_config_status_args --quiet" |
|
|
5079 | exec 5>/dev/null |
|
|
5080 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
|
|
5081 | exec 5>>config.log |
|
|
5082 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
|
|
5083 | # would make configure fail if this is the last instruction. |
|
|
5084 | $ac_cs_success || as_fn_exit 1 |
|
|
5085 | fi |
|
|
5086 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
|
|
5087 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
|
|
5088 | printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
|
|
5089 | fi |
1729 | |
5090 | |
1730 | rm -f conftest.frag conftest.in conftest.out |
|
|
1731 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
|
|
1732 | cat $ac_file_inputs > conftest.in |
|
|
1733 | |
5091 | |
1734 | EOF |
|
|
1735 | |
5092 | |
1736 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
|
|
1737 | # the proper values into config.h.in to produce config.h. And first: |
|
|
1738 | # Protect against being on the right side of a sed subst in config.status. |
|
|
1739 | # Protect against being in an unquoted here document in config.status. |
|
|
1740 | rm -f conftest.vals |
|
|
1741 | cat > conftest.hdr <<\EOF |
|
|
1742 | s/[\\&%]/\\&/g |
|
|
1743 | s%[\\$`]%\\&%g |
|
|
1744 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
|
|
1745 | s%ac_d%ac_u%gp |
|
|
1746 | s%ac_u%ac_e%gp |
|
|
1747 | EOF |
|
|
1748 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
|
|
1749 | rm -f conftest.hdr |
|
|
1750 | |
|
|
1751 | # This sed command replaces #undef with comments. This is necessary, for |
|
|
1752 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
|
|
1753 | # on some systems where configure will not decide to define it. |
|
|
1754 | cat >> conftest.vals <<\EOF |
|
|
1755 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
|
|
1756 | EOF |
|
|
1757 | |
|
|
1758 | # Break up conftest.vals because some shells have a limit on |
|
|
1759 | # the size of here documents, and old seds have small limits too. |
|
|
1760 | |
|
|
1761 | rm -f conftest.tail |
|
|
1762 | while : |
|
|
1763 | do |
|
|
1764 | ac_lines=`grep -c . conftest.vals` |
|
|
1765 | # grep -c gives empty output for an empty file on some AIX systems. |
|
|
1766 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
|
|
1767 | # Write a limited-size here document to conftest.frag. |
|
|
1768 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
|
|
1769 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
|
|
1770 | echo 'CEOF |
|
|
1771 | sed -f conftest.frag conftest.in > conftest.out |
|
|
1772 | rm -f conftest.in |
|
|
1773 | mv conftest.out conftest.in |
|
|
1774 | ' >> $CONFIG_STATUS |
|
|
1775 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
|
|
1776 | rm -f conftest.vals |
|
|
1777 | mv conftest.tail conftest.vals |
|
|
1778 | done |
|
|
1779 | rm -f conftest.vals |
|
|
1780 | |
|
|
1781 | cat >> $CONFIG_STATUS <<\EOF |
|
|
1782 | rm -f conftest.frag conftest.h |
|
|
1783 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
|
|
1784 | cat conftest.in >> conftest.h |
|
|
1785 | rm -f conftest.in |
|
|
1786 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
|
|
1787 | echo "$ac_file is unchanged" |
|
|
1788 | rm -f conftest.h |
|
|
1789 | else |
|
|
1790 | # Remove last slash and all that follows it. Not all systems have dirname. |
|
|
1791 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
|
|
1792 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
|
|
1793 | # The file is in a subdirectory. |
|
|
1794 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
|
|
1795 | fi |
|
|
1796 | rm -f $ac_file |
|
|
1797 | mv conftest.h $ac_file |
|
|
1798 | fi |
|
|
1799 | fi; done |
|
|
1800 | |
|
|
1801 | EOF |
|
|
1802 | cat >> $CONFIG_STATUS <<EOF |
|
|
1803 | |
|
|
1804 | EOF |
|
|
1805 | cat >> $CONFIG_STATUS <<\EOF |
|
|
1806 | |
|
|
1807 | exit 0 |
|
|
1808 | EOF |
|
|
1809 | chmod +x $CONFIG_STATUS |
|
|
1810 | rm -fr confdefs* $ac_clean_files |
|
|
1811 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
|
|
1812 | |
|
|