1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.70. |
---|
4 | # |
---|
5 | # |
---|
6 | # Copyright (C) 1992-1996, 1998-2017, 2020 Free Software Foundation, Inc. |
---|
7 | # |
---|
8 | # |
---|
9 | # This configure script is free software; the Free Software Foundation |
---|
10 | # gives unlimited permission to copy, distribute and modify it. |
---|
11 | ## -------------------- ## |
---|
12 | ## M4sh Initialization. ## |
---|
13 | ## -------------------- ## |
---|
14 | |
---|
15 | # Be more Bourne compatible |
---|
16 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
17 | as_nop=: |
---|
18 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
---|
19 | then : |
---|
20 | emulate sh |
---|
21 | NULLCMD=: |
---|
22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
23 | # is contrary to our usage. Disable this feature. |
---|
24 | alias -g '${1+"$@"}'='"$@"' |
---|
25 | setopt NO_GLOB_SUBST |
---|
26 | else $as_nop |
---|
27 | case `(set -o) 2>/dev/null` in #( |
---|
28 | *posix*) : |
---|
29 | set -o posix ;; #( |
---|
30 | *) : |
---|
31 | ;; |
---|
32 | esac |
---|
33 | fi |
---|
34 | |
---|
35 | |
---|
36 | |
---|
37 | # Reset variables that may have inherited troublesome values from |
---|
38 | # the environment. |
---|
39 | |
---|
40 | # IFS needs to be set, to space, tab, and newline, in precisely that order. |
---|
41 | # (If _AS_PATH_WALK were called with IFS unset, it would have the |
---|
42 | # side effect of setting IFS to empty, thus disabling word splitting.) |
---|
43 | # Quoting is to prevent editors from complaining about space-tab. |
---|
44 | as_nl=' |
---|
45 | ' |
---|
46 | export as_nl |
---|
47 | IFS=" "" $as_nl" |
---|
48 | |
---|
49 | PS1='$ ' |
---|
50 | PS2='> ' |
---|
51 | PS4='+ ' |
---|
52 | |
---|
53 | # Ensure predictable behavior from utilities with locale-dependent output. |
---|
54 | LC_ALL=C |
---|
55 | export LC_ALL |
---|
56 | LANGUAGE=C |
---|
57 | export LANGUAGE |
---|
58 | |
---|
59 | # We cannot yet rely on "unset" to work, but we need these variables |
---|
60 | # to be unset--not just set to an empty or harmless value--now, to |
---|
61 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
---|
62 | # also avoids known problems related to "unset" and subshell syntax |
---|
63 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
---|
64 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
---|
65 | do eval test \${$as_var+y} \ |
---|
66 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
67 | done |
---|
68 | |
---|
69 | # Ensure that fds 0, 1, and 2 are open. |
---|
70 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
---|
71 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
---|
72 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
---|
73 | |
---|
74 | # The user is always right. |
---|
75 | if ${PATH_SEPARATOR+false} :; then |
---|
76 | PATH_SEPARATOR=: |
---|
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
79 | PATH_SEPARATOR=';' |
---|
80 | } |
---|
81 | fi |
---|
82 | |
---|
83 | |
---|
84 | # Find who we are. Look in the path if we contain no directory separator. |
---|
85 | as_myself= |
---|
86 | case $0 in #(( |
---|
87 | *[\\/]* ) as_myself=$0 ;; |
---|
88 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
89 | for as_dir in $PATH |
---|
90 | do |
---|
91 | IFS=$as_save_IFS |
---|
92 | case $as_dir in #((( |
---|
93 | '') as_dir=./ ;; |
---|
94 | */) ;; |
---|
95 | *) as_dir=$as_dir/ ;; |
---|
96 | esac |
---|
97 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
---|
98 | done |
---|
99 | IFS=$as_save_IFS |
---|
100 | |
---|
101 | ;; |
---|
102 | esac |
---|
103 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
104 | # in which case we are not to be found in the path. |
---|
105 | if test "x$as_myself" = x; then |
---|
106 | as_myself=$0 |
---|
107 | fi |
---|
108 | if test ! -f "$as_myself"; then |
---|
109 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
110 | exit 1 |
---|
111 | fi |
---|
112 | |
---|
113 | |
---|
114 | # Use a proper internal environment variable to ensure we don't fall |
---|
115 | # into an infinite loop, continuously re-executing ourselves. |
---|
116 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
---|
117 | _as_can_reexec=no; export _as_can_reexec; |
---|
118 | # We cannot yet assume a decent shell, so we have to provide a |
---|
119 | # neutralization value for shells without unset; and this also |
---|
120 | # works around shells that cannot unset nonexistent variables. |
---|
121 | # Preserve -v and -x to the replacement shell. |
---|
122 | BASH_ENV=/dev/null |
---|
123 | ENV=/dev/null |
---|
124 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
---|
125 | case $- in # (((( |
---|
126 | *v*x* | *x*v* ) as_opts=-vx ;; |
---|
127 | *v* ) as_opts=-v ;; |
---|
128 | *x* ) as_opts=-x ;; |
---|
129 | * ) as_opts= ;; |
---|
130 | esac |
---|
131 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
---|
132 | # Admittedly, this is quite paranoid, since all the known shells bail |
---|
133 | # out after a failed `exec'. |
---|
134 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
---|
135 | exit 255 |
---|
136 | fi |
---|
137 | # We don't want this to propagate to other subprocesses. |
---|
138 | { _as_can_reexec=; unset _as_can_reexec;} |
---|
139 | if test "x$CONFIG_SHELL" = x; then |
---|
140 | as_bourne_compatible="as_nop=: |
---|
141 | if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
---|
142 | then : |
---|
143 | emulate sh |
---|
144 | NULLCMD=: |
---|
145 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
---|
146 | # is contrary to our usage. Disable this feature. |
---|
147 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
---|
148 | setopt NO_GLOB_SUBST |
---|
149 | else \$as_nop |
---|
150 | case \`(set -o) 2>/dev/null\` in #( |
---|
151 | *posix*) : |
---|
152 | set -o posix ;; #( |
---|
153 | *) : |
---|
154 | ;; |
---|
155 | esac |
---|
156 | fi |
---|
157 | " |
---|
158 | as_required="as_fn_return () { (exit \$1); } |
---|
159 | as_fn_success () { as_fn_return 0; } |
---|
160 | as_fn_failure () { as_fn_return 1; } |
---|
161 | as_fn_ret_success () { return 0; } |
---|
162 | as_fn_ret_failure () { return 1; } |
---|
163 | |
---|
164 | exitcode=0 |
---|
165 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
---|
166 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
---|
167 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
---|
168 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
---|
169 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ) |
---|
170 | then : |
---|
171 | |
---|
172 | else \$as_nop |
---|
173 | exitcode=1; echo positional parameters were not saved. |
---|
174 | fi |
---|
175 | test x\$exitcode = x0 || exit 1 |
---|
176 | blah=\$(echo \$(echo blah)) |
---|
177 | test x\"\$blah\" = xblah || exit 1 |
---|
178 | test -x / || exit 1" |
---|
179 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
---|
180 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
---|
181 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
---|
182 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
---|
183 | test \$(( 1 + 1 )) = 2 || 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 | # |
---|
598 | ac_default_prefix=/usr/local |
---|
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="mpi.h" |
---|
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 | INCLUDEFLAG |
---|
651 | FCLIBS |
---|
652 | host_os |
---|
653 | host_vendor |
---|
654 | host_cpu |
---|
655 | host |
---|
656 | build_os |
---|
657 | build_vendor |
---|
658 | build_cpu |
---|
659 | build |
---|
660 | RANLIB |
---|
661 | AR |
---|
662 | ac_ct_FC |
---|
663 | FCFLAGS |
---|
664 | FC |
---|
665 | OBJEXT |
---|
666 | EXEEXT |
---|
667 | ac_ct_CC |
---|
668 | CPPFLAGS |
---|
669 | LDFLAGS |
---|
670 | CFLAGS |
---|
671 | CC |
---|
672 | target_alias |
---|
673 | host_alias |
---|
674 | build_alias |
---|
675 | LIBS |
---|
676 | ECHO_T |
---|
677 | ECHO_N |
---|
678 | ECHO_C |
---|
679 | DEFS |
---|
680 | mandir |
---|
681 | localedir |
---|
682 | libdir |
---|
683 | psdir |
---|
684 | pdfdir |
---|
685 | dvidir |
---|
686 | htmldir |
---|
687 | infodir |
---|
688 | docdir |
---|
689 | oldincludedir |
---|
690 | includedir |
---|
691 | runstatedir |
---|
692 | localstatedir |
---|
693 | sharedstatedir |
---|
694 | sysconfdir |
---|
695 | datadir |
---|
696 | datarootdir |
---|
697 | libexecdir |
---|
698 | sbindir |
---|
699 | bindir |
---|
700 | program_transform_name |
---|
701 | prefix |
---|
702 | exec_prefix |
---|
703 | PACKAGE_URL |
---|
704 | PACKAGE_BUGREPORT |
---|
705 | PACKAGE_STRING |
---|
706 | PACKAGE_VERSION |
---|
707 | PACKAGE_TARNAME |
---|
708 | PACKAGE_NAME |
---|
709 | PATH_SEPARATOR |
---|
710 | SHELL' |
---|
711 | ac_subst_files='' |
---|
712 | ac_user_opts=' |
---|
713 | enable_option_checking |
---|
714 | enable_test_internal |
---|
715 | enable_info |
---|
716 | enable_fort_real |
---|
717 | enable_fort_double |
---|
718 | enable_type_checking |
---|
719 | ' |
---|
720 | ac_precious_vars='build_alias |
---|
721 | host_alias |
---|
722 | target_alias |
---|
723 | CC |
---|
724 | CFLAGS |
---|
725 | LDFLAGS |
---|
726 | LIBS |
---|
727 | CPPFLAGS |
---|
728 | FC |
---|
729 | FCFLAGS |
---|
730 | AR |
---|
731 | RANLIB |
---|
732 | INCLUDEFLAG' |
---|
733 | |
---|
734 | |
---|
735 | # Initialize some variables set by options. |
---|
736 | ac_init_help= |
---|
737 | ac_init_version=false |
---|
738 | ac_unrecognized_opts= |
---|
739 | ac_unrecognized_sep= |
---|
740 | # The variables have the same names as the options, with |
---|
741 | # dashes changed to underlines. |
---|
742 | cache_file=/dev/null |
---|
743 | exec_prefix=NONE |
---|
744 | no_create= |
---|
745 | no_recursion= |
---|
746 | prefix=NONE |
---|
747 | program_prefix=NONE |
---|
748 | program_suffix=NONE |
---|
749 | program_transform_name=s,x,x, |
---|
750 | silent= |
---|
751 | site= |
---|
752 | srcdir= |
---|
753 | verbose= |
---|
754 | x_includes=NONE |
---|
755 | x_libraries=NONE |
---|
756 | |
---|
757 | # Installation directory options. |
---|
758 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
759 | # and all the variables that are supposed to be based on exec_prefix |
---|
760 | # by default will actually change. |
---|
761 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
762 | # (The list follows the same order as the GNU Coding Standards.) |
---|
763 | bindir='${exec_prefix}/bin' |
---|
764 | sbindir='${exec_prefix}/sbin' |
---|
765 | libexecdir='${exec_prefix}/libexec' |
---|
766 | datarootdir='${prefix}/share' |
---|
767 | datadir='${datarootdir}' |
---|
768 | sysconfdir='${prefix}/etc' |
---|
769 | sharedstatedir='${prefix}/com' |
---|
770 | localstatedir='${prefix}/var' |
---|
771 | runstatedir='${localstatedir}/run' |
---|
772 | includedir='${prefix}/include' |
---|
773 | oldincludedir='/usr/include' |
---|
774 | docdir='${datarootdir}/doc/${PACKAGE}' |
---|
775 | infodir='${datarootdir}/info' |
---|
776 | htmldir='${docdir}' |
---|
777 | dvidir='${docdir}' |
---|
778 | pdfdir='${docdir}' |
---|
779 | psdir='${docdir}' |
---|
780 | libdir='${exec_prefix}/lib' |
---|
781 | localedir='${datarootdir}/locale' |
---|
782 | mandir='${datarootdir}/man' |
---|
783 | |
---|
784 | ac_prev= |
---|
785 | ac_dashdash= |
---|
786 | for ac_option |
---|
787 | do |
---|
788 | # If the previous option needs an argument, assign it. |
---|
789 | if test -n "$ac_prev"; then |
---|
790 | eval $ac_prev=\$ac_option |
---|
791 | ac_prev= |
---|
792 | continue |
---|
793 | fi |
---|
794 | |
---|
795 | case $ac_option in |
---|
796 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
---|
797 | *=) ac_optarg= ;; |
---|
798 | *) ac_optarg=yes ;; |
---|
799 | esac |
---|
800 | |
---|
801 | case $ac_dashdash$ac_option in |
---|
802 | --) |
---|
803 | ac_dashdash=yes ;; |
---|
804 | |
---|
805 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
806 | ac_prev=bindir ;; |
---|
807 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
808 | bindir=$ac_optarg ;; |
---|
809 | |
---|
810 | -build | --build | --buil | --bui | --bu) |
---|
811 | ac_prev=build_alias ;; |
---|
812 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
813 | build_alias=$ac_optarg ;; |
---|
814 | |
---|
815 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
816 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
817 | ac_prev=cache_file ;; |
---|
818 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
819 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
820 | cache_file=$ac_optarg ;; |
---|
821 | |
---|
822 | --config-cache | -C) |
---|
823 | cache_file=config.cache ;; |
---|
824 | |
---|
825 | -datadir | --datadir | --datadi | --datad) |
---|
826 | ac_prev=datadir ;; |
---|
827 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
---|
828 | datadir=$ac_optarg ;; |
---|
829 | |
---|
830 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
---|
831 | | --dataroo | --dataro | --datar) |
---|
832 | ac_prev=datarootdir ;; |
---|
833 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
---|
834 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
---|
835 | datarootdir=$ac_optarg ;; |
---|
836 | |
---|
837 | -disable-* | --disable-*) |
---|
838 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
839 | # Reject names that are not valid shell variable names. |
---|
840 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
841 | as_fn_error $? "invalid feature name: \`$ac_useropt'" |
---|
842 | ac_useropt_orig=$ac_useropt |
---|
843 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
844 | case $ac_user_opts in |
---|
845 | *" |
---|
846 | "enable_$ac_useropt" |
---|
847 | "*) ;; |
---|
848 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
---|
849 | ac_unrecognized_sep=', ';; |
---|
850 | esac |
---|
851 | eval enable_$ac_useropt=no ;; |
---|
852 | |
---|
853 | -docdir | --docdir | --docdi | --doc | --do) |
---|
854 | ac_prev=docdir ;; |
---|
855 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
---|
856 | docdir=$ac_optarg ;; |
---|
857 | |
---|
858 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
---|
859 | ac_prev=dvidir ;; |
---|
860 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
---|
861 | dvidir=$ac_optarg ;; |
---|
862 | |
---|
863 | -enable-* | --enable-*) |
---|
864 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
865 | # Reject names that are not valid shell variable names. |
---|
866 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
867 | as_fn_error $? "invalid feature name: \`$ac_useropt'" |
---|
868 | ac_useropt_orig=$ac_useropt |
---|
869 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
870 | case $ac_user_opts in |
---|
871 | *" |
---|
872 | "enable_$ac_useropt" |
---|
873 | "*) ;; |
---|
874 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
---|
875 | ac_unrecognized_sep=', ';; |
---|
876 | esac |
---|
877 | eval enable_$ac_useropt=\$ac_optarg ;; |
---|
878 | |
---|
879 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
880 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
881 | | --exec | --exe | --ex) |
---|
882 | ac_prev=exec_prefix ;; |
---|
883 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
884 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
885 | | --exec=* | --exe=* | --ex=*) |
---|
886 | exec_prefix=$ac_optarg ;; |
---|
887 | |
---|
888 | -gas | --gas | --ga | --g) |
---|
889 | # Obsolete; use --with-gas. |
---|
890 | with_gas=yes ;; |
---|
891 | |
---|
892 | -help | --help | --hel | --he | -h) |
---|
893 | ac_init_help=long ;; |
---|
894 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
895 | ac_init_help=recursive ;; |
---|
896 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
897 | ac_init_help=short ;; |
---|
898 | |
---|
899 | -host | --host | --hos | --ho) |
---|
900 | ac_prev=host_alias ;; |
---|
901 | -host=* | --host=* | --hos=* | --ho=*) |
---|
902 | host_alias=$ac_optarg ;; |
---|
903 | |
---|
904 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
---|
905 | ac_prev=htmldir ;; |
---|
906 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
---|
907 | | --ht=*) |
---|
908 | htmldir=$ac_optarg ;; |
---|
909 | |
---|
910 | -includedir | --includedir | --includedi | --included | --include \ |
---|
911 | | --includ | --inclu | --incl | --inc) |
---|
912 | ac_prev=includedir ;; |
---|
913 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
914 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
915 | includedir=$ac_optarg ;; |
---|
916 | |
---|
917 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
918 | ac_prev=infodir ;; |
---|
919 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
920 | infodir=$ac_optarg ;; |
---|
921 | |
---|
922 | -libdir | --libdir | --libdi | --libd) |
---|
923 | ac_prev=libdir ;; |
---|
924 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
925 | libdir=$ac_optarg ;; |
---|
926 | |
---|
927 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
928 | | --libexe | --libex | --libe) |
---|
929 | ac_prev=libexecdir ;; |
---|
930 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
931 | | --libexe=* | --libex=* | --libe=*) |
---|
932 | libexecdir=$ac_optarg ;; |
---|
933 | |
---|
934 | -localedir | --localedir | --localedi | --localed | --locale) |
---|
935 | ac_prev=localedir ;; |
---|
936 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
---|
937 | localedir=$ac_optarg ;; |
---|
938 | |
---|
939 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
940 | | --localstate | --localstat | --localsta | --localst | --locals) |
---|
941 | ac_prev=localstatedir ;; |
---|
942 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
943 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
---|
944 | localstatedir=$ac_optarg ;; |
---|
945 | |
---|
946 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
947 | ac_prev=mandir ;; |
---|
948 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
949 | mandir=$ac_optarg ;; |
---|
950 | |
---|
951 | -nfp | --nfp | --nf) |
---|
952 | # Obsolete; use --without-fp. |
---|
953 | with_fp=no ;; |
---|
954 | |
---|
955 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
956 | | --no-cr | --no-c | -n) |
---|
957 | no_create=yes ;; |
---|
958 | |
---|
959 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
960 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
961 | no_recursion=yes ;; |
---|
962 | |
---|
963 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
964 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
965 | | --oldin | --oldi | --old | --ol | --o) |
---|
966 | ac_prev=oldincludedir ;; |
---|
967 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
968 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
969 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
970 | oldincludedir=$ac_optarg ;; |
---|
971 | |
---|
972 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
973 | ac_prev=prefix ;; |
---|
974 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
975 | prefix=$ac_optarg ;; |
---|
976 | |
---|
977 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
978 | | --program-pre | --program-pr | --program-p) |
---|
979 | ac_prev=program_prefix ;; |
---|
980 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
981 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
982 | program_prefix=$ac_optarg ;; |
---|
983 | |
---|
984 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
985 | | --program-suf | --program-su | --program-s) |
---|
986 | ac_prev=program_suffix ;; |
---|
987 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
988 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
989 | program_suffix=$ac_optarg ;; |
---|
990 | |
---|
991 | -program-transform-name | --program-transform-name \ |
---|
992 | | --program-transform-nam | --program-transform-na \ |
---|
993 | | --program-transform-n | --program-transform- \ |
---|
994 | | --program-transform | --program-transfor \ |
---|
995 | | --program-transfo | --program-transf \ |
---|
996 | | --program-trans | --program-tran \ |
---|
997 | | --progr-tra | --program-tr | --program-t) |
---|
998 | ac_prev=program_transform_name ;; |
---|
999 | -program-transform-name=* | --program-transform-name=* \ |
---|
1000 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
1001 | | --program-transform-n=* | --program-transform-=* \ |
---|
1002 | | --program-transform=* | --program-transfor=* \ |
---|
1003 | | --program-transfo=* | --program-transf=* \ |
---|
1004 | | --program-trans=* | --program-tran=* \ |
---|
1005 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
1006 | program_transform_name=$ac_optarg ;; |
---|
1007 | |
---|
1008 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
---|
1009 | ac_prev=pdfdir ;; |
---|
1010 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
---|
1011 | pdfdir=$ac_optarg ;; |
---|
1012 | |
---|
1013 | -psdir | --psdir | --psdi | --psd | --ps) |
---|
1014 | ac_prev=psdir ;; |
---|
1015 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
---|
1016 | psdir=$ac_optarg ;; |
---|
1017 | |
---|
1018 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1019 | | -silent | --silent | --silen | --sile | --sil) |
---|
1020 | silent=yes ;; |
---|
1021 | |
---|
1022 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
---|
1023 | | --runstate | --runstat | --runsta | --runst | --runs \ |
---|
1024 | | --run | --ru | --r) |
---|
1025 | ac_prev=runstatedir ;; |
---|
1026 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
---|
1027 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
---|
1028 | | --run=* | --ru=* | --r=*) |
---|
1029 | runstatedir=$ac_optarg ;; |
---|
1030 | |
---|
1031 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
1032 | ac_prev=sbindir ;; |
---|
1033 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
1034 | | --sbi=* | --sb=*) |
---|
1035 | sbindir=$ac_optarg ;; |
---|
1036 | |
---|
1037 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
1038 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
1039 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
1040 | | --sha | --sh) |
---|
1041 | ac_prev=sharedstatedir ;; |
---|
1042 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
1043 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
1044 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
1045 | | --sha=* | --sh=*) |
---|
1046 | sharedstatedir=$ac_optarg ;; |
---|
1047 | |
---|
1048 | -site | --site | --sit) |
---|
1049 | ac_prev=site ;; |
---|
1050 | -site=* | --site=* | --sit=*) |
---|
1051 | site=$ac_optarg ;; |
---|
1052 | |
---|
1053 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
1054 | ac_prev=srcdir ;; |
---|
1055 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
1056 | srcdir=$ac_optarg ;; |
---|
1057 | |
---|
1058 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
1059 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
1060 | ac_prev=sysconfdir ;; |
---|
1061 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
1062 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
1063 | sysconfdir=$ac_optarg ;; |
---|
1064 | |
---|
1065 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
1066 | ac_prev=target_alias ;; |
---|
1067 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
1068 | target_alias=$ac_optarg ;; |
---|
1069 | |
---|
1070 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
1071 | verbose=yes ;; |
---|
1072 | |
---|
1073 | -version | --version | --versio | --versi | --vers | -V) |
---|
1074 | ac_init_version=: ;; |
---|
1075 | |
---|
1076 | -with-* | --with-*) |
---|
1077 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
1078 | # Reject names that are not valid shell variable names. |
---|
1079 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1080 | as_fn_error $? "invalid package name: \`$ac_useropt'" |
---|
1081 | ac_useropt_orig=$ac_useropt |
---|
1082 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1083 | case $ac_user_opts in |
---|
1084 | *" |
---|
1085 | "with_$ac_useropt" |
---|
1086 | "*) ;; |
---|
1087 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
---|
1088 | ac_unrecognized_sep=', ';; |
---|
1089 | esac |
---|
1090 | eval with_$ac_useropt=\$ac_optarg ;; |
---|
1091 | |
---|
1092 | -without-* | --without-*) |
---|
1093 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
1094 | # Reject names that are not valid shell variable names. |
---|
1095 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1096 | as_fn_error $? "invalid package name: \`$ac_useropt'" |
---|
1097 | ac_useropt_orig=$ac_useropt |
---|
1098 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1099 | case $ac_user_opts in |
---|
1100 | *" |
---|
1101 | "with_$ac_useropt" |
---|
1102 | "*) ;; |
---|
1103 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
---|
1104 | ac_unrecognized_sep=', ';; |
---|
1105 | esac |
---|
1106 | eval with_$ac_useropt=no ;; |
---|
1107 | |
---|
1108 | --x) |
---|
1109 | # Obsolete; use --with-x. |
---|
1110 | with_x=yes ;; |
---|
1111 | |
---|
1112 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
1113 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
1114 | ac_prev=x_includes ;; |
---|
1115 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
1116 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
1117 | x_includes=$ac_optarg ;; |
---|
1118 | |
---|
1119 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
1120 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
1121 | ac_prev=x_libraries ;; |
---|
1122 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
1123 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
1124 | x_libraries=$ac_optarg ;; |
---|
1125 | |
---|
1126 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
---|
1127 | Try \`$0 --help' for more information" |
---|
1128 | ;; |
---|
1129 | |
---|
1130 | *=*) |
---|
1131 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
1132 | # Reject names that are not valid shell variable names. |
---|
1133 | case $ac_envvar in #( |
---|
1134 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
---|
1135 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
---|
1136 | esac |
---|
1137 | eval $ac_envvar=\$ac_optarg |
---|
1138 | export $ac_envvar ;; |
---|
1139 | |
---|
1140 | *) |
---|
1141 | # FIXME: should be removed in autoconf 3.0. |
---|
1142 | printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
1143 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1144 | printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
1145 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
---|
1146 | ;; |
---|
1147 | |
---|
1148 | esac |
---|
1149 | done |
---|
1150 | |
---|
1151 | if test -n "$ac_prev"; then |
---|
1152 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
1153 | as_fn_error $? "missing argument to $ac_option" |
---|
1154 | fi |
---|
1155 | |
---|
1156 | if test -n "$ac_unrecognized_opts"; then |
---|
1157 | case $enable_option_checking in |
---|
1158 | no) ;; |
---|
1159 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
---|
1160 | *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
---|
1161 | esac |
---|
1162 | fi |
---|
1163 | |
---|
1164 | # Check all directory arguments for consistency. |
---|
1165 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
---|
1166 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
---|
1167 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
---|
1168 | libdir localedir mandir runstatedir |
---|
1169 | do |
---|
1170 | eval ac_val=\$$ac_var |
---|
1171 | # Remove trailing slashes. |
---|
1172 | case $ac_val in |
---|
1173 | */ ) |
---|
1174 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
---|
1175 | eval $ac_var=\$ac_val;; |
---|
1176 | esac |
---|
1177 | # Be sure to have absolute directory names. |
---|
1178 | case $ac_val in |
---|
1179 | [\\/$]* | ?:[\\/]* ) continue;; |
---|
1180 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
---|
1181 | esac |
---|
1182 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
---|
1183 | done |
---|
1184 | |
---|
1185 | # There might be people who depend on the old broken behavior: `$host' |
---|
1186 | # used to hold the argument of --host etc. |
---|
1187 | # FIXME: To remove some day. |
---|
1188 | build=$build_alias |
---|
1189 | host=$host_alias |
---|
1190 | target=$target_alias |
---|
1191 | |
---|
1192 | # FIXME: To remove some day. |
---|
1193 | if test "x$host_alias" != x; then |
---|
1194 | if test "x$build_alias" = x; then |
---|
1195 | cross_compiling=maybe |
---|
1196 | elif test "x$build_alias" != "x$host_alias"; then |
---|
1197 | cross_compiling=yes |
---|
1198 | fi |
---|
1199 | fi |
---|
1200 | |
---|
1201 | ac_tool_prefix= |
---|
1202 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
1203 | |
---|
1204 | test "$silent" = yes && exec 6>/dev/null |
---|
1205 | |
---|
1206 | |
---|
1207 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
---|
1208 | ac_ls_di=`ls -di .` && |
---|
1209 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
---|
1210 | as_fn_error $? "working directory cannot be determined" |
---|
1211 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
---|
1212 | as_fn_error $? "pwd does not report name of working directory" |
---|
1213 | |
---|
1214 | |
---|
1215 | # Find the source files, if location was not specified. |
---|
1216 | if test -z "$srcdir"; then |
---|
1217 | ac_srcdir_defaulted=yes |
---|
1218 | # Try the directory containing this script, then the parent directory. |
---|
1219 | ac_confdir=`$as_dirname -- "$as_myself" || |
---|
1220 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
1221 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
---|
1222 | X"$as_myself" : 'X\(//\)$' \| \ |
---|
1223 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
---|
1224 | printf "%s\n" X"$as_myself" | |
---|
1225 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
1226 | s//\1/ |
---|
1227 | q |
---|
1228 | } |
---|
1229 | /^X\(\/\/\)[^/].*/{ |
---|
1230 | s//\1/ |
---|
1231 | q |
---|
1232 | } |
---|
1233 | /^X\(\/\/\)$/{ |
---|
1234 | s//\1/ |
---|
1235 | q |
---|
1236 | } |
---|
1237 | /^X\(\/\).*/{ |
---|
1238 | s//\1/ |
---|
1239 | q |
---|
1240 | } |
---|
1241 | s/.*/./; q'` |
---|
1242 | srcdir=$ac_confdir |
---|
1243 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1244 | srcdir=.. |
---|
1245 | fi |
---|
1246 | else |
---|
1247 | ac_srcdir_defaulted=no |
---|
1248 | fi |
---|
1249 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1250 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
---|
1251 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
---|
1252 | fi |
---|
1253 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
---|
1254 | ac_abs_confdir=`( |
---|
1255 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
---|
1256 | pwd)` |
---|
1257 | # When building in place, set srcdir=. |
---|
1258 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
---|
1259 | srcdir=. |
---|
1260 | fi |
---|
1261 | # Remove unnecessary trailing slashes from srcdir. |
---|
1262 | # Double slashes in file names in object file debugging info |
---|
1263 | # mess up M-x gdb in Emacs. |
---|
1264 | case $srcdir in |
---|
1265 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
---|
1266 | esac |
---|
1267 | for ac_var in $ac_precious_vars; do |
---|
1268 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
---|
1269 | eval ac_env_${ac_var}_value=\$${ac_var} |
---|
1270 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
---|
1271 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
---|
1272 | done |
---|
1273 | |
---|
1274 | # |
---|
1275 | # Report the --help message. |
---|
1276 | # |
---|
1277 | if test "$ac_init_help" = "long"; then |
---|
1278 | # Omit some internal or obsolete options to make the list less imposing. |
---|
1279 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
1280 | cat <<_ACEOF |
---|
1281 | \`configure' configures this package to adapt to many kinds of systems. |
---|
1282 | |
---|
1283 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
1284 | |
---|
1285 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
1286 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
1287 | |
---|
1288 | Defaults for the options are specified in brackets. |
---|
1289 | |
---|
1290 | Configuration: |
---|
1291 | -h, --help display this help and exit |
---|
1292 | --help=short display options specific to this package |
---|
1293 | --help=recursive display the short help of all the included packages |
---|
1294 | -V, --version display version information and exit |
---|
1295 | -q, --quiet, --silent do not print \`checking ...' messages |
---|
1296 | --cache-file=FILE cache test results in FILE [disabled] |
---|
1297 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
1298 | -n, --no-create do not create output files |
---|
1299 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
1300 | |
---|
1301 | Installation directories: |
---|
1302 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
1303 | [$ac_default_prefix] |
---|
1304 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
1305 | [PREFIX] |
---|
1306 | |
---|
1307 | By default, \`make install' will install all the files in |
---|
1308 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
1309 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
1310 | for instance \`--prefix=\$HOME'. |
---|
1311 | |
---|
1312 | For better control, use the options below. |
---|
1313 | |
---|
1314 | Fine tuning of the installation directories: |
---|
1315 | --bindir=DIR user executables [EPREFIX/bin] |
---|
1316 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
1317 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
1318 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
1319 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1320 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1321 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
---|
1322 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1323 | --includedir=DIR C header files [PREFIX/include] |
---|
1324 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1325 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
---|
1326 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
---|
1327 | --infodir=DIR info documentation [DATAROOTDIR/info] |
---|
1328 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
---|
1329 | --mandir=DIR man documentation [DATAROOTDIR/man] |
---|
1330 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
---|
1331 | --htmldir=DIR html documentation [DOCDIR] |
---|
1332 | --dvidir=DIR dvi documentation [DOCDIR] |
---|
1333 | --pdfdir=DIR pdf documentation [DOCDIR] |
---|
1334 | --psdir=DIR ps documentation [DOCDIR] |
---|
1335 | _ACEOF |
---|
1336 | |
---|
1337 | cat <<\_ACEOF |
---|
1338 | |
---|
1339 | System types: |
---|
1340 | --build=BUILD configure for building on BUILD [guessed] |
---|
1341 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
1342 | _ACEOF |
---|
1343 | fi |
---|
1344 | |
---|
1345 | if test -n "$ac_init_help"; then |
---|
1346 | |
---|
1347 | cat <<\_ACEOF |
---|
1348 | |
---|
1349 | Optional Features: |
---|
1350 | --disable-option-checking ignore unrecognized --enable/--with options |
---|
1351 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
1352 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
1353 | --enable-test-internal Specify internal test as opposed to full suite test |
---|
1354 | |
---|
1355 | --enable-info Print extra debugging info |
---|
1356 | --enable-fort-real=SIZE Specify Fortran real size |
---|
1357 | --enable-fort-double=SIZE Specify Fortran double size |
---|
1358 | --enable-type-checking Perform type checking during communications |
---|
1359 | |
---|
1360 | Some influential environment variables: |
---|
1361 | CC C compiler command |
---|
1362 | CFLAGS C compiler flags |
---|
1363 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1364 | nonstandard directory <lib dir> |
---|
1365 | LIBS libraries to pass to the linker, e.g. -l<library> |
---|
1366 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
---|
1367 | you have headers in a nonstandard directory <include dir> |
---|
1368 | FC Fortran compiler command |
---|
1369 | FCFLAGS Fortran compiler flags |
---|
1370 | AR Archive Command |
---|
1371 | RANLIB Archive index update command |
---|
1372 | INCLUDEFLAG Fortran compiler flag for specifying module search path |
---|
1373 | |
---|
1374 | Use these variables to override the choices made by `configure' or to help |
---|
1375 | it to find libraries and programs with nonstandard names/locations. |
---|
1376 | |
---|
1377 | Report bugs to the package provider. |
---|
1378 | _ACEOF |
---|
1379 | ac_status=$? |
---|
1380 | fi |
---|
1381 | |
---|
1382 | if test "$ac_init_help" = "recursive"; then |
---|
1383 | # If there are subdirs, report their specific --help. |
---|
1384 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1385 | test -d "$ac_dir" || |
---|
1386 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
---|
1387 | continue |
---|
1388 | ac_builddir=. |
---|
1389 | |
---|
1390 | case "$ac_dir" in |
---|
1391 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1392 | *) |
---|
1393 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
1394 | # A ".." for each directory in $ac_dir_suffix. |
---|
1395 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
1396 | case $ac_top_builddir_sub in |
---|
1397 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1398 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
1399 | esac ;; |
---|
1400 | esac |
---|
1401 | ac_abs_top_builddir=$ac_pwd |
---|
1402 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
1403 | # for backward compatibility: |
---|
1404 | ac_top_builddir=$ac_top_build_prefix |
---|
1405 | |
---|
1406 | case $srcdir in |
---|
1407 | .) # We are building in place. |
---|
1408 | ac_srcdir=. |
---|
1409 | ac_top_srcdir=$ac_top_builddir_sub |
---|
1410 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
1411 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
1412 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1413 | ac_top_srcdir=$srcdir |
---|
1414 | ac_abs_top_srcdir=$srcdir ;; |
---|
1415 | *) # Relative name. |
---|
1416 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
1417 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
1418 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
1419 | esac |
---|
1420 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
1421 | |
---|
1422 | cd "$ac_dir" || { ac_status=$?; continue; } |
---|
1423 | # Check for configure.gnu first; this name is used for a wrapper for |
---|
1424 | # Metaconfig's "Configure" on case-insensitive file systems. |
---|
1425 | if test -f "$ac_srcdir/configure.gnu"; then |
---|
1426 | echo && |
---|
1427 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
---|
1428 | elif test -f "$ac_srcdir/configure"; then |
---|
1429 | echo && |
---|
1430 | $SHELL "$ac_srcdir/configure" --help=recursive |
---|
1431 | else |
---|
1432 | printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1433 | fi || ac_status=$? |
---|
1434 | cd "$ac_pwd" || { ac_status=$?; break; } |
---|
1435 | done |
---|
1436 | fi |
---|
1437 | |
---|
1438 | test -n "$ac_init_help" && exit $ac_status |
---|
1439 | if $ac_init_version; then |
---|
1440 | cat <<\_ACEOF |
---|
1441 | configure |
---|
1442 | generated by GNU Autoconf 2.70 |
---|
1443 | |
---|
1444 | Copyright (C) 2020 Free Software Foundation, Inc. |
---|
1445 | This configure script is free software; the Free Software Foundation |
---|
1446 | gives unlimited permission to copy, distribute and modify it. |
---|
1447 | _ACEOF |
---|
1448 | exit |
---|
1449 | fi |
---|
1450 | |
---|
1451 | ## ------------------------ ## |
---|
1452 | ## Autoconf initialization. ## |
---|
1453 | ## ------------------------ ## |
---|
1454 | |
---|
1455 | # ac_fn_c_try_compile LINENO |
---|
1456 | # -------------------------- |
---|
1457 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1458 | ac_fn_c_try_compile () |
---|
1459 | { |
---|
1460 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1461 | rm -f conftest.$ac_objext conftest.beam |
---|
1462 | if { { ac_try="$ac_compile" |
---|
1463 | case "(($ac_try" in |
---|
1464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1465 | *) ac_try_echo=$ac_try;; |
---|
1466 | esac |
---|
1467 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1468 | printf "%s\n" "$ac_try_echo"; } >&5 |
---|
1469 | (eval "$ac_compile") 2>conftest.err |
---|
1470 | ac_status=$? |
---|
1471 | if test -s conftest.err; then |
---|
1472 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1473 | cat conftest.er1 >&5 |
---|
1474 | mv -f conftest.er1 conftest.err |
---|
1475 | fi |
---|
1476 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1477 | test $ac_status = 0; } && { |
---|
1478 | test -z "$ac_c_werror_flag" || |
---|
1479 | test ! -s conftest.err |
---|
1480 | } && test -s conftest.$ac_objext |
---|
1481 | then : |
---|
1482 | ac_retval=0 |
---|
1483 | else $as_nop |
---|
1484 | printf "%s\n" "$as_me: failed program was:" >&5 |
---|
1485 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1486 | |
---|
1487 | ac_retval=1 |
---|
1488 | fi |
---|
1489 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1490 | as_fn_set_status $ac_retval |
---|
1491 | |
---|
1492 | } # ac_fn_c_try_compile |
---|
1493 | |
---|
1494 | # ac_fn_fc_try_compile LINENO |
---|
1495 | # --------------------------- |
---|
1496 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1497 | ac_fn_fc_try_compile () |
---|
1498 | { |
---|
1499 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1500 | rm -f conftest.$ac_objext conftest.beam |
---|
1501 | if { { ac_try="$ac_compile" |
---|
1502 | case "(($ac_try" in |
---|
1503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1504 | *) ac_try_echo=$ac_try;; |
---|
1505 | esac |
---|
1506 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1507 | printf "%s\n" "$ac_try_echo"; } >&5 |
---|
1508 | (eval "$ac_compile") 2>conftest.err |
---|
1509 | ac_status=$? |
---|
1510 | if test -s conftest.err; then |
---|
1511 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1512 | cat conftest.er1 >&5 |
---|
1513 | mv -f conftest.er1 conftest.err |
---|
1514 | fi |
---|
1515 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1516 | test $ac_status = 0; } && { |
---|
1517 | test -z "$ac_fc_werror_flag" || |
---|
1518 | test ! -s conftest.err |
---|
1519 | } && test -s conftest.$ac_objext |
---|
1520 | then : |
---|
1521 | ac_retval=0 |
---|
1522 | else $as_nop |
---|
1523 | printf "%s\n" "$as_me: failed program was:" >&5 |
---|
1524 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1525 | |
---|
1526 | ac_retval=1 |
---|
1527 | fi |
---|
1528 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1529 | as_fn_set_status $ac_retval |
---|
1530 | |
---|
1531 | } # ac_fn_fc_try_compile |
---|
1532 | |
---|
1533 | # ac_fn_c_try_link LINENO |
---|
1534 | # ----------------------- |
---|
1535 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
1536 | ac_fn_c_try_link () |
---|
1537 | { |
---|
1538 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1539 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
---|
1540 | if { { ac_try="$ac_link" |
---|
1541 | case "(($ac_try" in |
---|
1542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1543 | *) ac_try_echo=$ac_try;; |
---|
1544 | esac |
---|
1545 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1546 | printf "%s\n" "$ac_try_echo"; } >&5 |
---|
1547 | (eval "$ac_link") 2>conftest.err |
---|
1548 | ac_status=$? |
---|
1549 | if test -s conftest.err; then |
---|
1550 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1551 | cat conftest.er1 >&5 |
---|
1552 | mv -f conftest.er1 conftest.err |
---|
1553 | fi |
---|
1554 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1555 | test $ac_status = 0; } && { |
---|
1556 | test -z "$ac_c_werror_flag" || |
---|
1557 | test ! -s conftest.err |
---|
1558 | } && test -s conftest$ac_exeext && { |
---|
1559 | test "$cross_compiling" = yes || |
---|
1560 | test -x conftest$ac_exeext |
---|
1561 | } |
---|
1562 | then : |
---|
1563 | ac_retval=0 |
---|
1564 | else $as_nop |
---|
1565 | printf "%s\n" "$as_me: failed program was:" >&5 |
---|
1566 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1567 | |
---|
1568 | ac_retval=1 |
---|
1569 | fi |
---|
1570 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
1571 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
1572 | # interfere with the next link command; also delete a directory that is |
---|
1573 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
1574 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1575 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1576 | as_fn_set_status $ac_retval |
---|
1577 | |
---|
1578 | } # ac_fn_c_try_link |
---|
1579 | |
---|
1580 | # ac_fn_c_try_run LINENO |
---|
1581 | # ---------------------- |
---|
1582 | # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that |
---|
1583 | # executables *can* be run. |
---|
1584 | ac_fn_c_try_run () |
---|
1585 | { |
---|
1586 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1587 | if { { ac_try="$ac_link" |
---|
1588 | case "(($ac_try" in |
---|
1589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1590 | *) ac_try_echo=$ac_try;; |
---|
1591 | esac |
---|
1592 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1593 | printf "%s\n" "$ac_try_echo"; } >&5 |
---|
1594 | (eval "$ac_link") 2>&5 |
---|
1595 | ac_status=$? |
---|
1596 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1597 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
---|
1598 | { { case "(($ac_try" in |
---|
1599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1600 | *) ac_try_echo=$ac_try;; |
---|
1601 | esac |
---|
1602 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1603 | printf "%s\n" "$ac_try_echo"; } >&5 |
---|
1604 | (eval "$ac_try") 2>&5 |
---|
1605 | ac_status=$? |
---|
1606 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1607 | test $ac_status = 0; }; } |
---|
1608 | then : |
---|
1609 | ac_retval=0 |
---|
1610 | else $as_nop |
---|
1611 | printf "%s\n" "$as_me: program exited with status $ac_status" >&5 |
---|
1612 | printf "%s\n" "$as_me: failed program was:" >&5 |
---|
1613 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1614 | |
---|
1615 | ac_retval=$ac_status |
---|
1616 | fi |
---|
1617 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1618 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1619 | as_fn_set_status $ac_retval |
---|
1620 | |
---|
1621 | } # ac_fn_c_try_run |
---|
1622 | |
---|
1623 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
---|
1624 | # -------------------------------------------- |
---|
1625 | # Tries to find the compile-time value of EXPR in a program that includes |
---|
1626 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
---|
1627 | # computed |
---|
1628 | ac_fn_c_compute_int () |
---|
1629 | { |
---|
1630 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1631 | if test "$cross_compiling" = yes; then |
---|
1632 | # Depending upon the size, compute the lo and hi bounds. |
---|
1633 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1634 | /* end confdefs.h. */ |
---|
1635 | $4 |
---|
1636 | #ifdef FC_DUMMY_MAIN |
---|
1637 | #ifndef FC_DUMMY_MAIN_EQ_F77 |
---|
1638 | # ifdef __cplusplus |
---|
1639 | extern "C" |
---|
1640 | # endif |
---|
1641 | int FC_DUMMY_MAIN() { return 1; } |
---|
1642 | #endif |
---|
1643 | #endif |
---|
1644 | int |
---|
1645 | main (void) |
---|
1646 | { |
---|
1647 | static int test_array [1 - 2 * !(($2) >= 0)]; |
---|
1648 | test_array [0] = 0; |
---|
1649 | return test_array [0]; |
---|
1650 | |
---|
1651 | ; |
---|
1652 | return 0; |
---|
1653 | } |
---|
1654 | _ACEOF |
---|
1655 | if ac_fn_c_try_compile "$LINENO" |
---|
1656 | then : |
---|
1657 | ac_lo=0 ac_mid=0 |
---|
1658 | while :; do |
---|
1659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1660 | /* end confdefs.h. */ |
---|
1661 | $4 |
---|
1662 | #ifdef FC_DUMMY_MAIN |
---|
1663 | #ifndef FC_DUMMY_MAIN_EQ_F77 |
---|
1664 | # ifdef __cplusplus |
---|
1665 | extern "C" |
---|
1666 | # endif |
---|
1667 | int FC_DUMMY_MAIN() { return 1; } |
---|
1668 | #endif |
---|
1669 | #endif |
---|
1670 | int |
---|
1671 | main (void) |
---|
1672 | { |
---|
1673 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
---|
1674 | test_array [0] = 0; |
---|
1675 | return test_array [0]; |
---|
1676 | |
---|
1677 | ; |
---|
1678 | return 0; |
---|
1679 | } |
---|
1680 | _ACEOF |
---|
1681 | if ac_fn_c_try_compile "$LINENO" |
---|
1682 | then : |
---|
1683 | ac_hi=$ac_mid; break |
---|
1684 | else $as_nop |
---|
1685 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
---|
1686 | if test $ac_lo -le $ac_mid; then |
---|
1687 | ac_lo= ac_hi= |
---|
1688 | break |
---|
1689 | fi |
---|
1690 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
---|
1691 | fi |
---|
1692 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
1693 | done |
---|
1694 | else $as_nop |
---|
1695 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1696 | /* end confdefs.h. */ |
---|
1697 | $4 |
---|
1698 | #ifdef FC_DUMMY_MAIN |
---|
1699 | #ifndef FC_DUMMY_MAIN_EQ_F77 |
---|
1700 | # ifdef __cplusplus |
---|
1701 | extern "C" |
---|
1702 | # endif |
---|
1703 | int FC_DUMMY_MAIN() { return 1; } |
---|
1704 | #endif |
---|
1705 | #endif |
---|
1706 | int |
---|
1707 | main (void) |
---|
1708 | { |
---|
1709 | static int test_array [1 - 2 * !(($2) < 0)]; |
---|
1710 | test_array [0] = 0; |
---|
1711 | return test_array [0]; |
---|
1712 | |
---|
1713 | ; |
---|
1714 | return 0; |
---|
1715 | } |
---|
1716 | _ACEOF |
---|
1717 | if ac_fn_c_try_compile "$LINENO" |
---|
1718 | then : |
---|
1719 | ac_hi=-1 ac_mid=-1 |
---|
1720 | while :; do |
---|
1721 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1722 | /* end confdefs.h. */ |
---|
1723 | $4 |
---|
1724 | #ifdef FC_DUMMY_MAIN |
---|
1725 | #ifndef FC_DUMMY_MAIN_EQ_F77 |
---|
1726 | # ifdef __cplusplus |
---|
1727 | extern "C" |
---|
1728 | # endif |
---|
1729 | int FC_DUMMY_MAIN() { return 1; } |
---|
1730 | #endif |
---|
1731 | #endif |
---|
1732 | int |
---|
1733 | main (void) |
---|
1734 | { |
---|
1735 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
---|
1736 | test_array [0] = 0; |
---|
1737 | return test_array [0]; |
---|
1738 | |
---|
1739 | ; |
---|
1740 | return 0; |
---|
1741 | } |
---|
1742 | _ACEOF |
---|
1743 | if ac_fn_c_try_compile "$LINENO" |
---|
1744 | then : |
---|
1745 | ac_lo=$ac_mid; break |
---|
1746 | else $as_nop |
---|
1747 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
---|
1748 | if test $ac_mid -le $ac_hi; then |
---|
1749 | ac_lo= ac_hi= |
---|
1750 | break |
---|
1751 | fi |
---|
1752 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
---|
1753 | fi |
---|
1754 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
1755 | done |
---|
1756 | else $as_nop |
---|
1757 | ac_lo= ac_hi= |
---|
1758 | fi |
---|
1759 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
1760 | fi |
---|
1761 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
1762 | # Binary search between lo and hi bounds. |
---|
1763 | while test "x$ac_lo" != "x$ac_hi"; do |
---|
1764 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
---|
1765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1766 | /* end confdefs.h. */ |
---|
1767 | $4 |
---|
1768 | #ifdef FC_DUMMY_MAIN |
---|
1769 | #ifndef FC_DUMMY_MAIN_EQ_F77 |
---|
1770 | # ifdef __cplusplus |
---|
1771 | extern "C" |
---|
1772 | # endif |
---|
1773 | int FC_DUMMY_MAIN() { return 1; } |
---|
1774 | #endif |
---|
1775 | #endif |
---|
1776 | int |
---|
1777 | main (void) |
---|
1778 | { |
---|
1779 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
---|
1780 | test_array [0] = 0; |
---|
1781 | return test_array [0]; |
---|
1782 | |
---|
1783 | ; |
---|
1784 | return 0; |
---|
1785 | } |
---|
1786 | _ACEOF |
---|
1787 | if ac_fn_c_try_compile "$LINENO" |
---|
1788 | then : |
---|
1789 | ac_hi=$ac_mid |
---|
1790 | else $as_nop |
---|
1791 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
---|
1792 | fi |
---|
1793 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
1794 | done |
---|
1795 | case $ac_lo in #(( |
---|
1796 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
---|
1797 | '') ac_retval=1 ;; |
---|
1798 | esac |
---|
1799 | else |
---|
1800 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1801 | /* end confdefs.h. */ |
---|
1802 | $4 |
---|
1803 | static long int longval (void) { return $2; } |
---|
1804 | static unsigned long int ulongval (void) { return $2; } |
---|
1805 | #include <stdio.h> |
---|
1806 | #include <stdlib.h> |
---|
1807 | #ifdef FC_DUMMY_MAIN |
---|
1808 | #ifndef FC_DUMMY_MAIN_EQ_F77 |
---|
1809 | # ifdef __cplusplus |
---|
1810 | extern "C" |
---|
1811 | # endif |
---|
1812 | int FC_DUMMY_MAIN() { return 1; } |
---|
1813 | #endif |
---|
1814 | #endif |
---|
1815 | int |
---|
1816 | main (void) |
---|
1817 | { |
---|
1818 | |
---|
1819 | FILE *f = fopen ("conftest.val", "w"); |
---|
1820 | if (! f) |
---|
1821 | return 1; |
---|
1822 | if (($2) < 0) |
---|
1823 | { |
---|
1824 | long int i = longval (); |
---|
1825 | if (i != ($2)) |
---|
1826 | return 1; |
---|
1827 | fprintf (f, "%ld", i); |
---|
1828 | } |
---|
1829 | else |
---|
1830 | { |
---|
1831 | unsigned long int i = ulongval (); |
---|
1832 | if (i != ($2)) |
---|
1833 | return 1; |
---|
1834 | fprintf (f, "%lu", i); |
---|
1835 | } |
---|
1836 | /* Do not output a trailing newline, as this causes \r\n confusion |
---|
1837 | on some platforms. */ |
---|
1838 | return ferror (f) || fclose (f) != 0; |
---|
1839 | |
---|
1840 | ; |
---|
1841 | return 0; |
---|
1842 | } |
---|
1843 | _ACEOF |
---|
1844 | if ac_fn_c_try_run "$LINENO" |
---|
1845 | then : |
---|
1846 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
---|
1847 | else $as_nop |
---|
1848 | ac_retval=1 |
---|
1849 | fi |
---|
1850 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
1851 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
1852 | rm -f conftest.val |
---|
1853 | |
---|
1854 | fi |
---|
1855 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1856 | as_fn_set_status $ac_retval |
---|
1857 | |
---|
1858 | } # ac_fn_c_compute_int |
---|
1859 | |
---|
1860 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
---|
1861 | # ------------------------------------------------------- |
---|
1862 | # Tests whether HEADER exists and can be compiled using the include files in |
---|
1863 | # INCLUDES, setting the cache variable VAR accordingly. |
---|
1864 | ac_fn_c_check_header_compile () |
---|
1865 | { |
---|
1866 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1867 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1868 | printf %s "checking for $2... " >&6; } |
---|
1869 | if eval test \${$3+y} |
---|
1870 | then : |
---|
1871 | printf %s "(cached) " >&6 |
---|
1872 | else $as_nop |
---|
1873 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1874 | /* end confdefs.h. */ |
---|
1875 | $4 |
---|
1876 | #include <$2> |
---|
1877 | _ACEOF |
---|
1878 | if ac_fn_c_try_compile "$LINENO" |
---|
1879 | then : |
---|
1880 | eval "$3=yes" |
---|
1881 | else $as_nop |
---|
1882 | eval "$3=no" |
---|
1883 | fi |
---|
1884 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
1885 | fi |
---|
1886 | eval ac_res=\$$3 |
---|
1887 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1888 | printf "%s\n" "$ac_res" >&6; } |
---|
1889 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1890 | |
---|
1891 | } # ac_fn_c_check_header_compile |
---|
1892 | ac_configure_args_raw= |
---|
1893 | for ac_arg |
---|
1894 | do |
---|
1895 | case $ac_arg in |
---|
1896 | *\'*) |
---|
1897 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1898 | esac |
---|
1899 | as_fn_append ac_configure_args_raw " '$ac_arg'" |
---|
1900 | done |
---|
1901 | |
---|
1902 | case $ac_configure_args_raw in |
---|
1903 | *$as_nl*) |
---|
1904 | ac_safe_unquote= ;; |
---|
1905 | *) |
---|
1906 | ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. |
---|
1907 | ac_unsafe_a="$ac_unsafe_z#~" |
---|
1908 | ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" |
---|
1909 | ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; |
---|
1910 | esac |
---|
1911 | |
---|
1912 | cat >config.log <<_ACEOF |
---|
1913 | This file contains any messages produced by compilers while |
---|
1914 | running configure, to aid debugging if configure makes a mistake. |
---|
1915 | |
---|
1916 | It was created by $as_me, which was |
---|
1917 | generated by GNU Autoconf 2.70. Invocation command line was |
---|
1918 | |
---|
1919 | $ $0$ac_configure_args_raw |
---|
1920 | |
---|
1921 | _ACEOF |
---|
1922 | exec 5>>config.log |
---|
1923 | { |
---|
1924 | cat <<_ASUNAME |
---|
1925 | ## --------- ## |
---|
1926 | ## Platform. ## |
---|
1927 | ## --------- ## |
---|
1928 | |
---|
1929 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
1930 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
1931 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
1932 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
1933 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
1934 | |
---|
1935 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
1936 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
1937 | |
---|
1938 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
1939 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
1940 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
1941 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
---|
1942 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
1943 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
1944 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
1945 | |
---|
1946 | _ASUNAME |
---|
1947 | |
---|
1948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1949 | for as_dir in $PATH |
---|
1950 | do |
---|
1951 | IFS=$as_save_IFS |
---|
1952 | case $as_dir in #((( |
---|
1953 | '') as_dir=./ ;; |
---|
1954 | */) ;; |
---|
1955 | *) as_dir=$as_dir/ ;; |
---|
1956 | esac |
---|
1957 | printf "%s\n" "PATH: $as_dir" |
---|
1958 | done |
---|
1959 | IFS=$as_save_IFS |
---|
1960 | |
---|
1961 | } >&5 |
---|
1962 | |
---|
1963 | cat >&5 <<_ACEOF |
---|
1964 | |
---|
1965 | |
---|
1966 | ## ----------- ## |
---|
1967 | ## Core tests. ## |
---|
1968 | ## ----------- ## |
---|
1969 | |
---|
1970 | _ACEOF |
---|
1971 | |
---|
1972 | |
---|
1973 | # Keep a trace of the command line. |
---|
1974 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1975 | # Strip out --silent because we don't want to record it for future runs. |
---|
1976 | # Also quote any args containing shell meta-characters. |
---|
1977 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1978 | ac_configure_args= |
---|
1979 | ac_configure_args0= |
---|
1980 | ac_configure_args1= |
---|
1981 | ac_must_keep_next=false |
---|
1982 | for ac_pass in 1 2 |
---|
1983 | do |
---|
1984 | for ac_arg |
---|
1985 | do |
---|
1986 | case $ac_arg in |
---|
1987 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1988 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1989 | | -silent | --silent | --silen | --sile | --sil) |
---|
1990 | continue ;; |
---|
1991 | *\'*) |
---|
1992 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1993 | esac |
---|
1994 | case $ac_pass in |
---|
1995 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
---|
1996 | 2) |
---|
1997 | as_fn_append ac_configure_args1 " '$ac_arg'" |
---|
1998 | if test $ac_must_keep_next = true; then |
---|
1999 | ac_must_keep_next=false # Got value, back to normal. |
---|
2000 | else |
---|
2001 | case $ac_arg in |
---|
2002 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
2003 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
2004 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
2005 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
2006 | case "$ac_configure_args0 " in |
---|
2007 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
2008 | esac |
---|
2009 | ;; |
---|
2010 | -* ) ac_must_keep_next=true ;; |
---|
2011 | esac |
---|
2012 | fi |
---|
2013 | as_fn_append ac_configure_args " '$ac_arg'" |
---|
2014 | ;; |
---|
2015 | esac |
---|
2016 | done |
---|
2017 | done |
---|
2018 | { ac_configure_args0=; unset ac_configure_args0;} |
---|
2019 | { ac_configure_args1=; unset ac_configure_args1;} |
---|
2020 | |
---|
2021 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
2022 | # config.log. We remove comments because anyway the quotes in there |
---|
2023 | # would cause problems or look ugly. |
---|
2024 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
---|
2025 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
---|
2026 | trap 'exit_status=$? |
---|
2027 | # Sanitize IFS. |
---|
2028 | IFS=" "" $as_nl" |
---|
2029 | # Save into config.log some information that might help in debugging. |
---|
2030 | { |
---|
2031 | echo |
---|
2032 | |
---|
2033 | printf "%s\n" "## ---------------- ## |
---|
2034 | ## Cache variables. ## |
---|
2035 | ## ---------------- ##" |
---|
2036 | echo |
---|
2037 | # The following way of writing the cache mishandles newlines in values, |
---|
2038 | ( |
---|
2039 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
---|
2040 | eval ac_val=\$$ac_var |
---|
2041 | case $ac_val in #( |
---|
2042 | *${as_nl}*) |
---|
2043 | case $ac_var in #( |
---|
2044 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
2045 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
2046 | esac |
---|
2047 | case $ac_var in #( |
---|
2048 | _ | IFS | as_nl) ;; #( |
---|
2049 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
2050 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
2051 | esac ;; |
---|
2052 | esac |
---|
2053 | done |
---|
2054 | (set) 2>&1 | |
---|
2055 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
---|
2056 | *${as_nl}ac_space=\ *) |
---|
2057 | sed -n \ |
---|
2058 | "s/'\''/'\''\\\\'\'''\''/g; |
---|
2059 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
---|
2060 | ;; #( |
---|
2061 | *) |
---|
2062 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
2063 | ;; |
---|
2064 | esac | |
---|
2065 | sort |
---|
2066 | ) |
---|
2067 | echo |
---|
2068 | |
---|
2069 | printf "%s\n" "## ----------------- ## |
---|
2070 | ## Output variables. ## |
---|
2071 | ## ----------------- ##" |
---|
2072 | echo |
---|
2073 | for ac_var in $ac_subst_vars |
---|
2074 | do |
---|
2075 | eval ac_val=\$$ac_var |
---|
2076 | case $ac_val in |
---|
2077 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
2078 | esac |
---|
2079 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
---|
2080 | done | sort |
---|
2081 | echo |
---|
2082 | |
---|
2083 | if test -n "$ac_subst_files"; then |
---|
2084 | printf "%s\n" "## ------------------- ## |
---|
2085 | ## File substitutions. ## |
---|
2086 | ## ------------------- ##" |
---|
2087 | echo |
---|
2088 | for ac_var in $ac_subst_files |
---|
2089 | do |
---|
2090 | eval ac_val=\$$ac_var |
---|
2091 | case $ac_val in |
---|
2092 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
2093 | esac |
---|
2094 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
---|
2095 | done | sort |
---|
2096 | echo |
---|
2097 | fi |
---|
2098 | |
---|
2099 | if test -s confdefs.h; then |
---|
2100 | printf "%s\n" "## ----------- ## |
---|
2101 | ## confdefs.h. ## |
---|
2102 | ## ----------- ##" |
---|
2103 | echo |
---|
2104 | cat confdefs.h |
---|
2105 | echo |
---|
2106 | fi |
---|
2107 | test "$ac_signal" != 0 && |
---|
2108 | printf "%s\n" "$as_me: caught signal $ac_signal" |
---|
2109 | printf "%s\n" "$as_me: exit $exit_status" |
---|
2110 | } >&5 |
---|
2111 | rm -f core *.core core.conftest.* && |
---|
2112 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
---|
2113 | exit $exit_status |
---|
2114 | ' 0 |
---|
2115 | for ac_signal in 1 2 13 15; do |
---|
2116 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
---|
2117 | done |
---|
2118 | ac_signal=0 |
---|
2119 | |
---|
2120 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
2121 | rm -f -r conftest* confdefs.h |
---|
2122 | |
---|
2123 | printf "%s\n" "/* confdefs.h */" > confdefs.h |
---|
2124 | |
---|
2125 | # Predefined preprocessor variables. |
---|
2126 | |
---|
2127 | printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
---|
2128 | |
---|
2129 | printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
---|
2130 | |
---|
2131 | printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
---|
2132 | |
---|
2133 | printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
---|
2134 | |
---|
2135 | printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
---|
2136 | |
---|
2137 | printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h |
---|
2138 | |
---|
2139 | |
---|
2140 | # Let the site file select an alternate cache file if it wants to. |
---|
2141 | # Prefer an explicitly selected file to automatically selected ones. |
---|
2142 | if test -n "$CONFIG_SITE"; then |
---|
2143 | ac_site_files="$CONFIG_SITE" |
---|
2144 | elif test "x$prefix" != xNONE; then |
---|
2145 | ac_site_files="$prefix/share/config.site $prefix/etc/config.site" |
---|
2146 | else |
---|
2147 | ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
2148 | fi |
---|
2149 | |
---|
2150 | for ac_site_file in $ac_site_files |
---|
2151 | do |
---|
2152 | case $ac_site_file in #( |
---|
2153 | */*) : |
---|
2154 | ;; #( |
---|
2155 | *) : |
---|
2156 | ac_site_file=./$ac_site_file ;; |
---|
2157 | esac |
---|
2158 | if test -f "$ac_site_file" && test -r "$ac_site_file"; then |
---|
2159 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
---|
2160 | printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} |
---|
2161 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
2162 | . "$ac_site_file" \ |
---|
2163 | || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2164 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2165 | as_fn_error $? "failed to load site script $ac_site_file |
---|
2166 | See \`config.log' for more details" "$LINENO" 5; } |
---|
2167 | fi |
---|
2168 | done |
---|
2169 | |
---|
2170 | if test -r "$cache_file"; then |
---|
2171 | # Some versions of bash will fail to source /dev/null (special files |
---|
2172 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
---|
2173 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
---|
2174 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
---|
2175 | printf "%s\n" "$as_me: loading cache $cache_file" >&6;} |
---|
2176 | case $cache_file in |
---|
2177 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
---|
2178 | *) . "./$cache_file";; |
---|
2179 | esac |
---|
2180 | fi |
---|
2181 | else |
---|
2182 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
---|
2183 | printf "%s\n" "$as_me: creating cache $cache_file" >&6;} |
---|
2184 | >$cache_file |
---|
2185 | fi |
---|
2186 | |
---|
2187 | # Test code for whether the C compiler supports C89 (global declarations) |
---|
2188 | ac_c_conftest_c89_globals=' |
---|
2189 | /* Does the compiler advertise C89 conformance? |
---|
2190 | Do not test the value of __STDC__, because some compilers set it to 0 |
---|
2191 | while being otherwise adequately conformant. */ |
---|
2192 | #if !defined __STDC__ |
---|
2193 | # error "Compiler does not advertise C89 conformance" |
---|
2194 | #endif |
---|
2195 | |
---|
2196 | #include <stddef.h> |
---|
2197 | #include <stdarg.h> |
---|
2198 | struct stat; |
---|
2199 | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
---|
2200 | struct buf { int x; }; |
---|
2201 | struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
---|
2202 | static char *e (p, i) |
---|
2203 | char **p; |
---|
2204 | int i; |
---|
2205 | { |
---|
2206 | return p[i]; |
---|
2207 | } |
---|
2208 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
2209 | { |
---|
2210 | char *s; |
---|
2211 | va_list v; |
---|
2212 | va_start (v,p); |
---|
2213 | s = g (p, va_arg (v,int)); |
---|
2214 | va_end (v); |
---|
2215 | return s; |
---|
2216 | } |
---|
2217 | |
---|
2218 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
2219 | function prototypes and stuff, but not \xHH hex character constants. |
---|
2220 | These do not provoke an error unfortunately, instead are silently treated |
---|
2221 | as an "x". The following induces an error, until -std is added to get |
---|
2222 | proper ANSI mode. Curiously \x00 != x always comes out true, for an |
---|
2223 | array size at least. It is necessary to write \x00 == 0 to get something |
---|
2224 | that is true only with -std. */ |
---|
2225 | int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; |
---|
2226 | |
---|
2227 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
2228 | inside strings and character constants. */ |
---|
2229 | #define FOO(x) '\''x'\'' |
---|
2230 | int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; |
---|
2231 | |
---|
2232 | int test (int i, double x); |
---|
2233 | struct s1 {int (*f) (int a);}; |
---|
2234 | struct s2 {int (*f) (double a);}; |
---|
2235 | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
---|
2236 | int, int);' |
---|
2237 | |
---|
2238 | # Test code for whether the C compiler supports C89 (body of main). |
---|
2239 | ac_c_conftest_c89_main=' |
---|
2240 | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
---|
2241 | ' |
---|
2242 | |
---|
2243 | # Test code for whether the C compiler supports C99 (global declarations) |
---|
2244 | ac_c_conftest_c99_globals=' |
---|
2245 | // Does the compiler advertise C99 conformance? |
---|
2246 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
---|
2247 | # error "Compiler does not advertise C99 conformance" |
---|
2248 | #endif |
---|
2249 | |
---|
2250 | #include <stdbool.h> |
---|
2251 | extern int puts (const char *); |
---|
2252 | extern int printf (const char *, ...); |
---|
2253 | extern int dprintf (int, const char *, ...); |
---|
2254 | extern void *malloc (size_t); |
---|
2255 | |
---|
2256 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
---|
2257 | // dprintf is used instead of fprintf to avoid needing to declare |
---|
2258 | // FILE and stderr. |
---|
2259 | #define debug(...) dprintf (2, __VA_ARGS__) |
---|
2260 | #define showlist(...) puts (#__VA_ARGS__) |
---|
2261 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
---|
2262 | static void |
---|
2263 | test_varargs_macros (void) |
---|
2264 | { |
---|
2265 | int x = 1234; |
---|
2266 | int y = 5678; |
---|
2267 | debug ("Flag"); |
---|
2268 | debug ("X = %d\n", x); |
---|
2269 | showlist (The first, second, and third items.); |
---|
2270 | report (x>y, "x is %d but y is %d", x, y); |
---|
2271 | } |
---|
2272 | |
---|
2273 | // Check long long types. |
---|
2274 | #define BIG64 18446744073709551615ull |
---|
2275 | #define BIG32 4294967295ul |
---|
2276 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
---|
2277 | #if !BIG_OK |
---|
2278 | #error "your preprocessor is broken" |
---|
2279 | #endif |
---|
2280 | #if BIG_OK |
---|
2281 | #else |
---|
2282 | #error "your preprocessor is broken" |
---|
2283 | #endif |
---|
2284 | static long long int bignum = -9223372036854775807LL; |
---|
2285 | static unsigned long long int ubignum = BIG64; |
---|
2286 | |
---|
2287 | struct incomplete_array |
---|
2288 | { |
---|
2289 | int datasize; |
---|
2290 | double data[]; |
---|
2291 | }; |
---|
2292 | |
---|
2293 | struct named_init { |
---|
2294 | int number; |
---|
2295 | const wchar_t *name; |
---|
2296 | double average; |
---|
2297 | }; |
---|
2298 | |
---|
2299 | typedef const char *ccp; |
---|
2300 | |
---|
2301 | static inline int |
---|
2302 | test_restrict (ccp restrict text) |
---|
2303 | { |
---|
2304 | // See if C++-style comments work. |
---|
2305 | // Iterate through items via the restricted pointer. |
---|
2306 | // Also check for declarations in for loops. |
---|
2307 | for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) |
---|
2308 | continue; |
---|
2309 | return 0; |
---|
2310 | } |
---|
2311 | |
---|
2312 | // Check varargs and va_copy. |
---|
2313 | static bool |
---|
2314 | test_varargs (const char *format, ...) |
---|
2315 | { |
---|
2316 | va_list args; |
---|
2317 | va_start (args, format); |
---|
2318 | va_list args_copy; |
---|
2319 | va_copy (args_copy, args); |
---|
2320 | |
---|
2321 | const char *str = ""; |
---|
2322 | int number = 0; |
---|
2323 | float fnumber = 0; |
---|
2324 | |
---|
2325 | while (*format) |
---|
2326 | { |
---|
2327 | switch (*format++) |
---|
2328 | { |
---|
2329 | case '\''s'\'': // string |
---|
2330 | str = va_arg (args_copy, const char *); |
---|
2331 | break; |
---|
2332 | case '\''d'\'': // int |
---|
2333 | number = va_arg (args_copy, int); |
---|
2334 | break; |
---|
2335 | case '\''f'\'': // float |
---|
2336 | fnumber = va_arg (args_copy, double); |
---|
2337 | break; |
---|
2338 | default: |
---|
2339 | break; |
---|
2340 | } |
---|
2341 | } |
---|
2342 | va_end (args_copy); |
---|
2343 | va_end (args); |
---|
2344 | |
---|
2345 | return *str && number && fnumber; |
---|
2346 | } |
---|
2347 | ' |
---|
2348 | |
---|
2349 | # Test code for whether the C compiler supports C99 (body of main). |
---|
2350 | ac_c_conftest_c99_main=' |
---|
2351 | // Check bool. |
---|
2352 | _Bool success = false; |
---|
2353 | success |= (argc != 0); |
---|
2354 | |
---|
2355 | // Check restrict. |
---|
2356 | if (test_restrict ("String literal") == 0) |
---|
2357 | success = true; |
---|
2358 | char *restrict newvar = "Another string"; |
---|
2359 | |
---|
2360 | // Check varargs. |
---|
2361 | success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); |
---|
2362 | test_varargs_macros (); |
---|
2363 | |
---|
2364 | // Check flexible array members. |
---|
2365 | struct incomplete_array *ia = |
---|
2366 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
---|
2367 | ia->datasize = 10; |
---|
2368 | for (int i = 0; i < ia->datasize; ++i) |
---|
2369 | ia->data[i] = i * 1.234; |
---|
2370 | |
---|
2371 | // Check named initializers. |
---|
2372 | struct named_init ni = { |
---|
2373 | .number = 34, |
---|
2374 | .name = L"Test wide string", |
---|
2375 | .average = 543.34343, |
---|
2376 | }; |
---|
2377 | |
---|
2378 | ni.number = 58; |
---|
2379 | |
---|
2380 | int dynamic_array[ni.number]; |
---|
2381 | dynamic_array[0] = argv[0][0]; |
---|
2382 | dynamic_array[ni.number - 1] = 543; |
---|
2383 | |
---|
2384 | // work around unused variable warnings |
---|
2385 | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' |
---|
2386 | || dynamic_array[ni.number - 1] != 543); |
---|
2387 | ' |
---|
2388 | |
---|
2389 | # Test code for whether the C compiler supports C11 (global declarations) |
---|
2390 | ac_c_conftest_c11_globals=' |
---|
2391 | // Does the compiler advertise C11 conformance? |
---|
2392 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L |
---|
2393 | # error "Compiler does not advertise C11 conformance" |
---|
2394 | #endif |
---|
2395 | |
---|
2396 | // Check _Alignas. |
---|
2397 | char _Alignas (double) aligned_as_double; |
---|
2398 | char _Alignas (0) no_special_alignment; |
---|
2399 | extern char aligned_as_int; |
---|
2400 | char _Alignas (0) _Alignas (int) aligned_as_int; |
---|
2401 | |
---|
2402 | // Check _Alignof. |
---|
2403 | enum |
---|
2404 | { |
---|
2405 | int_alignment = _Alignof (int), |
---|
2406 | int_array_alignment = _Alignof (int[100]), |
---|
2407 | char_alignment = _Alignof (char) |
---|
2408 | }; |
---|
2409 | _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); |
---|
2410 | |
---|
2411 | // Check _Noreturn. |
---|
2412 | int _Noreturn does_not_return (void) { for (;;) continue; } |
---|
2413 | |
---|
2414 | // Check _Static_assert. |
---|
2415 | struct test_static_assert |
---|
2416 | { |
---|
2417 | int x; |
---|
2418 | _Static_assert (sizeof (int) <= sizeof (long int), |
---|
2419 | "_Static_assert does not work in struct"); |
---|
2420 | long int y; |
---|
2421 | }; |
---|
2422 | |
---|
2423 | // Check UTF-8 literals. |
---|
2424 | #define u8 syntax error! |
---|
2425 | char const utf8_literal[] = u8"happens to be ASCII" "another string"; |
---|
2426 | |
---|
2427 | // Check duplicate typedefs. |
---|
2428 | typedef long *long_ptr; |
---|
2429 | typedef long int *long_ptr; |
---|
2430 | typedef long_ptr long_ptr; |
---|
2431 | |
---|
2432 | // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. |
---|
2433 | struct anonymous |
---|
2434 | { |
---|
2435 | union { |
---|
2436 | struct { int i; int j; }; |
---|
2437 | struct { int k; long int l; } w; |
---|
2438 | }; |
---|
2439 | int m; |
---|
2440 | } v1; |
---|
2441 | ' |
---|
2442 | |
---|
2443 | # Test code for whether the C compiler supports C11 (body of main). |
---|
2444 | ac_c_conftest_c11_main=' |
---|
2445 | _Static_assert ((offsetof (struct anonymous, i) |
---|
2446 | == offsetof (struct anonymous, w.k)), |
---|
2447 | "Anonymous union alignment botch"); |
---|
2448 | v1.i = 2; |
---|
2449 | v1.w.k = 5; |
---|
2450 | ok |= v1.i != 5; |
---|
2451 | ' |
---|
2452 | |
---|
2453 | # Test code for whether the C compiler supports C11 (complete). |
---|
2454 | ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} |
---|
2455 | ${ac_c_conftest_c99_globals} |
---|
2456 | ${ac_c_conftest_c11_globals} |
---|
2457 | |
---|
2458 | int |
---|
2459 | main (int argc, char **argv) |
---|
2460 | { |
---|
2461 | int ok = 0; |
---|
2462 | ${ac_c_conftest_c89_main} |
---|
2463 | ${ac_c_conftest_c99_main} |
---|
2464 | ${ac_c_conftest_c11_main} |
---|
2465 | return ok; |
---|
2466 | } |
---|
2467 | " |
---|
2468 | |
---|
2469 | # Test code for whether the C compiler supports C99 (complete). |
---|
2470 | ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} |
---|
2471 | ${ac_c_conftest_c99_globals} |
---|
2472 | |
---|
2473 | int |
---|
2474 | main (int argc, char **argv) |
---|
2475 | { |
---|
2476 | int ok = 0; |
---|
2477 | ${ac_c_conftest_c89_main} |
---|
2478 | ${ac_c_conftest_c99_main} |
---|
2479 | return ok; |
---|
2480 | } |
---|
2481 | " |
---|
2482 | |
---|
2483 | # Test code for whether the C compiler supports C89 (complete). |
---|
2484 | ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} |
---|
2485 | |
---|
2486 | int |
---|
2487 | main (int argc, char **argv) |
---|
2488 | { |
---|
2489 | int ok = 0; |
---|
2490 | ${ac_c_conftest_c89_main} |
---|
2491 | return ok; |
---|
2492 | } |
---|
2493 | " |
---|
2494 | |
---|
2495 | as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" |
---|
2496 | as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" |
---|
2497 | as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" |
---|
2498 | as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" |
---|
2499 | as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" |
---|
2500 | as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" |
---|
2501 | as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" |
---|
2502 | as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" |
---|
2503 | as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" |
---|
2504 | |
---|
2505 | # Auxiliary files required by this configure script. |
---|
2506 | ac_aux_files="config.guess config.sub" |
---|
2507 | |
---|
2508 | # Locations in which to look for auxiliary files. |
---|
2509 | ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." |
---|
2510 | |
---|
2511 | # Search for a directory containing all of the required auxiliary files, |
---|
2512 | # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. |
---|
2513 | # If we don't find one directory that contains all the files we need, |
---|
2514 | # we report the set of missing files from the *first* directory in |
---|
2515 | # $ac_aux_dir_candidates and give up. |
---|
2516 | ac_missing_aux_files="" |
---|
2517 | ac_first_candidate=: |
---|
2518 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 |
---|
2519 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2520 | as_found=false |
---|
2521 | for as_dir in $ac_aux_dir_candidates |
---|
2522 | do |
---|
2523 | IFS=$as_save_IFS |
---|
2524 | case $as_dir in #((( |
---|
2525 | '') as_dir=./ ;; |
---|
2526 | */) ;; |
---|
2527 | *) as_dir=$as_dir/ ;; |
---|
2528 | esac |
---|
2529 | as_found=: |
---|
2530 | |
---|
2531 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 |
---|
2532 | ac_aux_dir_found=yes |
---|
2533 | ac_install_sh= |
---|
2534 | for ac_aux in $ac_aux_files |
---|
2535 | do |
---|
2536 | # As a special case, if "install-sh" is required, that requirement |
---|
2537 | # can be satisfied by any of "install-sh", "install.sh", or "shtool", |
---|
2538 | # and $ac_install_sh is set appropriately for whichever one is found. |
---|
2539 | if test x"$ac_aux" = x"install-sh" |
---|
2540 | then |
---|
2541 | if test -f "${as_dir}install-sh"; then |
---|
2542 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 |
---|
2543 | ac_install_sh="${as_dir}install-sh -c" |
---|
2544 | elif test -f "${as_dir}install.sh"; then |
---|
2545 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 |
---|
2546 | ac_install_sh="${as_dir}install.sh -c" |
---|
2547 | elif test -f "${as_dir}shtool"; then |
---|
2548 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 |
---|
2549 | ac_install_sh="${as_dir}shtool install -c" |
---|
2550 | else |
---|
2551 | ac_aux_dir_found=no |
---|
2552 | if $ac_first_candidate; then |
---|
2553 | ac_missing_aux_files="${ac_missing_aux_files} install-sh" |
---|
2554 | else |
---|
2555 | break |
---|
2556 | fi |
---|
2557 | fi |
---|
2558 | else |
---|
2559 | if test -f "${as_dir}${ac_aux}"; then |
---|
2560 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 |
---|
2561 | else |
---|
2562 | ac_aux_dir_found=no |
---|
2563 | if $ac_first_candidate; then |
---|
2564 | ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" |
---|
2565 | else |
---|
2566 | break |
---|
2567 | fi |
---|
2568 | fi |
---|
2569 | fi |
---|
2570 | done |
---|
2571 | if test "$ac_aux_dir_found" = yes; then |
---|
2572 | ac_aux_dir="$as_dir" |
---|
2573 | break |
---|
2574 | fi |
---|
2575 | ac_first_candidate=false |
---|
2576 | |
---|
2577 | as_found=false |
---|
2578 | done |
---|
2579 | IFS=$as_save_IFS |
---|
2580 | if $as_found |
---|
2581 | then : |
---|
2582 | |
---|
2583 | else $as_nop |
---|
2584 | as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 |
---|
2585 | fi |
---|
2586 | |
---|
2587 | |
---|
2588 | # These three variables are undocumented and unsupported, |
---|
2589 | # and are intended to be withdrawn in a future Autoconf release. |
---|
2590 | # They can cause serious problems if a builder's source tree is in a directory |
---|
2591 | # whose full name contains unusual characters. |
---|
2592 | if test -f "${ac_aux_dir}config.guess"; then |
---|
2593 | ac_config_guess="$SHELL ${ac_aux_dir}config.guess" |
---|
2594 | fi |
---|
2595 | if test -f "${ac_aux_dir}config.sub"; then |
---|
2596 | ac_config_sub="$SHELL ${ac_aux_dir}config.sub" |
---|
2597 | fi |
---|
2598 | if test -f "$ac_aux_dir/configure"; then |
---|
2599 | ac_configure="$SHELL ${ac_aux_dir}configure" |
---|
2600 | fi |
---|
2601 | |
---|
2602 | # Check that the precious variables saved in the cache have kept the same |
---|
2603 | # value. |
---|
2604 | ac_cache_corrupted=false |
---|
2605 | for ac_var in $ac_precious_vars; do |
---|
2606 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
2607 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
2608 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
---|
2609 | eval ac_new_val=\$ac_env_${ac_var}_value |
---|
2610 | case $ac_old_set,$ac_new_set in |
---|
2611 | set,) |
---|
2612 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
2613 | printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
2614 | ac_cache_corrupted=: ;; |
---|
2615 | ,set) |
---|
2616 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
---|
2617 | printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
2618 | ac_cache_corrupted=: ;; |
---|
2619 | ,);; |
---|
2620 | *) |
---|
2621 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
2622 | # differences in whitespace do not lead to failure. |
---|
2623 | ac_old_val_w=`echo x $ac_old_val` |
---|
2624 | ac_new_val_w=`echo x $ac_new_val` |
---|
2625 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
---|
2626 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
2627 | printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
2628 | ac_cache_corrupted=: |
---|
2629 | else |
---|
2630 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
---|
2631 | printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
---|
2632 | eval $ac_var=\$ac_old_val |
---|
2633 | fi |
---|
2634 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
---|
2635 | printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} |
---|
2636 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
---|
2637 | printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} |
---|
2638 | fi;; |
---|
2639 | esac |
---|
2640 | # Pass precious variables to config.status. |
---|
2641 | if test "$ac_new_set" = set; then |
---|
2642 | case $ac_new_val in |
---|
2643 | *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2644 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
2645 | esac |
---|
2646 | case " $ac_configure_args " in |
---|
2647 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
2648 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
---|
2649 | esac |
---|
2650 | fi |
---|
2651 | done |
---|
2652 | if $ac_cache_corrupted; then |
---|
2653 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2654 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2655 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
---|
2656 | printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
2657 | as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' |
---|
2658 | and start over" "$LINENO" 5 |
---|
2659 | fi |
---|
2660 | ## -------------------- ## |
---|
2661 | ## Main body of script. ## |
---|
2662 | ## -------------------- ## |
---|
2663 | |
---|
2664 | ac_ext=c |
---|
2665 | ac_cpp='$CPP $CPPFLAGS' |
---|
2666 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2667 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2668 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2669 | |
---|
2670 | |
---|
2671 | |
---|
2672 | ac_config_headers="$ac_config_headers config.h" |
---|
2673 | |
---|
2674 | |
---|
2675 | |
---|
2676 | |
---|
2677 | |
---|
2678 | |
---|
2679 | |
---|
2680 | |
---|
2681 | |
---|
2682 | |
---|
2683 | ac_ext=c |
---|
2684 | ac_cpp='$CPP $CPPFLAGS' |
---|
2685 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2686 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2687 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2688 | if test -n "$ac_tool_prefix"; then |
---|
2689 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
2690 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
2691 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2692 | printf %s "checking for $ac_word... " >&6; } |
---|
2693 | if test ${ac_cv_prog_CC+y} |
---|
2694 | then : |
---|
2695 | printf %s "(cached) " >&6 |
---|
2696 | else $as_nop |
---|
2697 | if test -n "$CC"; then |
---|
2698 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2699 | else |
---|
2700 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2701 | for as_dir in $PATH |
---|
2702 | do |
---|
2703 | IFS=$as_save_IFS |
---|
2704 | case $as_dir in #((( |
---|
2705 | '') as_dir=./ ;; |
---|
2706 | */) ;; |
---|
2707 | *) as_dir=$as_dir/ ;; |
---|
2708 | esac |
---|
2709 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2710 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
---|
2711 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
2712 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
---|
2713 | break 2 |
---|
2714 | fi |
---|
2715 | done |
---|
2716 | done |
---|
2717 | IFS=$as_save_IFS |
---|
2718 | |
---|
2719 | fi |
---|
2720 | fi |
---|
2721 | CC=$ac_cv_prog_CC |
---|
2722 | if test -n "$CC"; then |
---|
2723 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
2724 | printf "%s\n" "$CC" >&6; } |
---|
2725 | else |
---|
2726 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2727 | printf "%s\n" "no" >&6; } |
---|
2728 | fi |
---|
2729 | |
---|
2730 | |
---|
2731 | fi |
---|
2732 | if test -z "$ac_cv_prog_CC"; then |
---|
2733 | ac_ct_CC=$CC |
---|
2734 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
2735 | set dummy gcc; ac_word=$2 |
---|
2736 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2737 | printf %s "checking for $ac_word... " >&6; } |
---|
2738 | if test ${ac_cv_prog_ac_ct_CC+y} |
---|
2739 | then : |
---|
2740 | printf %s "(cached) " >&6 |
---|
2741 | else $as_nop |
---|
2742 | if test -n "$ac_ct_CC"; then |
---|
2743 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2744 | else |
---|
2745 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2746 | for as_dir in $PATH |
---|
2747 | do |
---|
2748 | IFS=$as_save_IFS |
---|
2749 | case $as_dir in #((( |
---|
2750 | '') as_dir=./ ;; |
---|
2751 | */) ;; |
---|
2752 | *) as_dir=$as_dir/ ;; |
---|
2753 | esac |
---|
2754 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2755 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
---|
2756 | ac_cv_prog_ac_ct_CC="gcc" |
---|
2757 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
---|
2758 | break 2 |
---|
2759 | fi |
---|
2760 | done |
---|
2761 | done |
---|
2762 | IFS=$as_save_IFS |
---|
2763 | |
---|
2764 | fi |
---|
2765 | fi |
---|
2766 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2767 | if test -n "$ac_ct_CC"; then |
---|
2768 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
2769 | printf "%s\n" "$ac_ct_CC" >&6; } |
---|
2770 | else |
---|
2771 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2772 | printf "%s\n" "no" >&6; } |
---|
2773 | fi |
---|
2774 | |
---|
2775 | if test "x$ac_ct_CC" = x; then |
---|
2776 | CC="" |
---|
2777 | else |
---|
2778 | case $cross_compiling:$ac_tool_warned in |
---|
2779 | yes:) |
---|
2780 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
2781 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
2782 | ac_tool_warned=yes ;; |
---|
2783 | esac |
---|
2784 | CC=$ac_ct_CC |
---|
2785 | fi |
---|
2786 | else |
---|
2787 | CC="$ac_cv_prog_CC" |
---|
2788 | fi |
---|
2789 | |
---|
2790 | if test -z "$CC"; then |
---|
2791 | if test -n "$ac_tool_prefix"; then |
---|
2792 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
2793 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
2794 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2795 | printf %s "checking for $ac_word... " >&6; } |
---|
2796 | if test ${ac_cv_prog_CC+y} |
---|
2797 | then : |
---|
2798 | printf %s "(cached) " >&6 |
---|
2799 | else $as_nop |
---|
2800 | if test -n "$CC"; then |
---|
2801 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2802 | else |
---|
2803 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2804 | for as_dir in $PATH |
---|
2805 | do |
---|
2806 | IFS=$as_save_IFS |
---|
2807 | case $as_dir in #((( |
---|
2808 | '') as_dir=./ ;; |
---|
2809 | */) ;; |
---|
2810 | *) as_dir=$as_dir/ ;; |
---|
2811 | esac |
---|
2812 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2813 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
---|
2814 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
2815 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
---|
2816 | break 2 |
---|
2817 | fi |
---|
2818 | done |
---|
2819 | done |
---|
2820 | IFS=$as_save_IFS |
---|
2821 | |
---|
2822 | fi |
---|
2823 | fi |
---|
2824 | CC=$ac_cv_prog_CC |
---|
2825 | if test -n "$CC"; then |
---|
2826 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
2827 | printf "%s\n" "$CC" >&6; } |
---|
2828 | else |
---|
2829 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2830 | printf "%s\n" "no" >&6; } |
---|
2831 | fi |
---|
2832 | |
---|
2833 | |
---|
2834 | fi |
---|
2835 | fi |
---|
2836 | if test -z "$CC"; then |
---|
2837 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2838 | set dummy cc; ac_word=$2 |
---|
2839 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2840 | printf %s "checking for $ac_word... " >&6; } |
---|
2841 | if test ${ac_cv_prog_CC+y} |
---|
2842 | then : |
---|
2843 | printf %s "(cached) " >&6 |
---|
2844 | else $as_nop |
---|
2845 | if test -n "$CC"; then |
---|
2846 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2847 | else |
---|
2848 | ac_prog_rejected=no |
---|
2849 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2850 | for as_dir in $PATH |
---|
2851 | do |
---|
2852 | IFS=$as_save_IFS |
---|
2853 | case $as_dir in #((( |
---|
2854 | '') as_dir=./ ;; |
---|
2855 | */) ;; |
---|
2856 | *) as_dir=$as_dir/ ;; |
---|
2857 | esac |
---|
2858 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2859 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
---|
2860 | if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
2861 | ac_prog_rejected=yes |
---|
2862 | continue |
---|
2863 | fi |
---|
2864 | ac_cv_prog_CC="cc" |
---|
2865 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
---|
2866 | break 2 |
---|
2867 | fi |
---|
2868 | done |
---|
2869 | done |
---|
2870 | IFS=$as_save_IFS |
---|
2871 | |
---|
2872 | if test $ac_prog_rejected = yes; then |
---|
2873 | # We found a bogon in the path, so make sure we never use it. |
---|
2874 | set dummy $ac_cv_prog_CC |
---|
2875 | shift |
---|
2876 | if test $# != 0; then |
---|
2877 | # We chose a different compiler from the bogus one. |
---|
2878 | # However, it has the same basename, so the bogon will be chosen |
---|
2879 | # first if we set CC to just the basename; use the full file name. |
---|
2880 | shift |
---|
2881 | ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
---|
2882 | fi |
---|
2883 | fi |
---|
2884 | fi |
---|
2885 | fi |
---|
2886 | CC=$ac_cv_prog_CC |
---|
2887 | if test -n "$CC"; then |
---|
2888 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
2889 | printf "%s\n" "$CC" >&6; } |
---|
2890 | else |
---|
2891 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2892 | printf "%s\n" "no" >&6; } |
---|
2893 | fi |
---|
2894 | |
---|
2895 | |
---|
2896 | fi |
---|
2897 | if test -z "$CC"; then |
---|
2898 | if test -n "$ac_tool_prefix"; then |
---|
2899 | for ac_prog in cl.exe |
---|
2900 | do |
---|
2901 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2902 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2903 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2904 | printf %s "checking for $ac_word... " >&6; } |
---|
2905 | if test ${ac_cv_prog_CC+y} |
---|
2906 | then : |
---|
2907 | printf %s "(cached) " >&6 |
---|
2908 | else $as_nop |
---|
2909 | if test -n "$CC"; then |
---|
2910 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2911 | else |
---|
2912 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2913 | for as_dir in $PATH |
---|
2914 | do |
---|
2915 | IFS=$as_save_IFS |
---|
2916 | case $as_dir in #((( |
---|
2917 | '') as_dir=./ ;; |
---|
2918 | */) ;; |
---|
2919 | *) as_dir=$as_dir/ ;; |
---|
2920 | esac |
---|
2921 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2922 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
---|
2923 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
2924 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
---|
2925 | break 2 |
---|
2926 | fi |
---|
2927 | done |
---|
2928 | done |
---|
2929 | IFS=$as_save_IFS |
---|
2930 | |
---|
2931 | fi |
---|
2932 | fi |
---|
2933 | CC=$ac_cv_prog_CC |
---|
2934 | if test -n "$CC"; then |
---|
2935 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
2936 | printf "%s\n" "$CC" >&6; } |
---|
2937 | else |
---|
2938 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2939 | printf "%s\n" "no" >&6; } |
---|
2940 | fi |
---|
2941 | |
---|
2942 | |
---|
2943 | test -n "$CC" && break |
---|
2944 | done |
---|
2945 | fi |
---|
2946 | if test -z "$CC"; then |
---|
2947 | ac_ct_CC=$CC |
---|
2948 | for ac_prog in cl.exe |
---|
2949 | do |
---|
2950 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2951 | set dummy $ac_prog; ac_word=$2 |
---|
2952 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2953 | printf %s "checking for $ac_word... " >&6; } |
---|
2954 | if test ${ac_cv_prog_ac_ct_CC+y} |
---|
2955 | then : |
---|
2956 | printf %s "(cached) " >&6 |
---|
2957 | else $as_nop |
---|
2958 | if test -n "$ac_ct_CC"; then |
---|
2959 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2960 | else |
---|
2961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2962 | for as_dir in $PATH |
---|
2963 | do |
---|
2964 | IFS=$as_save_IFS |
---|
2965 | case $as_dir in #((( |
---|
2966 | '') as_dir=./ ;; |
---|
2967 | */) ;; |
---|
2968 | *) as_dir=$as_dir/ ;; |
---|
2969 | esac |
---|
2970 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2971 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
---|
2972 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
2973 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
---|
2974 | break 2 |
---|
2975 | fi |
---|
2976 | done |
---|
2977 | done |
---|
2978 | IFS=$as_save_IFS |
---|
2979 | |
---|
2980 | fi |
---|
2981 | fi |
---|
2982 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2983 | if test -n "$ac_ct_CC"; then |
---|
2984 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
2985 | printf "%s\n" "$ac_ct_CC" >&6; } |
---|
2986 | else |
---|
2987 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2988 | printf "%s\n" "no" >&6; } |
---|
2989 | fi |
---|
2990 | |
---|
2991 | |
---|
2992 | test -n "$ac_ct_CC" && break |
---|
2993 | done |
---|
2994 | |
---|
2995 | if test "x$ac_ct_CC" = x; then |
---|
2996 | CC="" |
---|
2997 | else |
---|
2998 | case $cross_compiling:$ac_tool_warned in |
---|
2999 | yes:) |
---|
3000 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3001 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3002 | ac_tool_warned=yes ;; |
---|
3003 | esac |
---|
3004 | CC=$ac_ct_CC |
---|
3005 | fi |
---|
3006 | fi |
---|
3007 | |
---|
3008 | fi |
---|
3009 | if test -z "$CC"; then |
---|
3010 | if test -n "$ac_tool_prefix"; then |
---|
3011 | # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. |
---|
3012 | set dummy ${ac_tool_prefix}clang; ac_word=$2 |
---|
3013 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3014 | printf %s "checking for $ac_word... " >&6; } |
---|
3015 | if test ${ac_cv_prog_CC+y} |
---|
3016 | then : |
---|
3017 | printf %s "(cached) " >&6 |
---|
3018 | else $as_nop |
---|
3019 | if test -n "$CC"; then |
---|
3020 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
3021 | else |
---|
3022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3023 | for as_dir in $PATH |
---|
3024 | do |
---|
3025 | IFS=$as_save_IFS |
---|
3026 | case $as_dir in #((( |
---|
3027 | '') as_dir=./ ;; |
---|
3028 | */) ;; |
---|
3029 | *) as_dir=$as_dir/ ;; |
---|
3030 | esac |
---|
3031 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3032 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
---|
3033 | ac_cv_prog_CC="${ac_tool_prefix}clang" |
---|
3034 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
---|
3035 | break 2 |
---|
3036 | fi |
---|
3037 | done |
---|
3038 | done |
---|
3039 | IFS=$as_save_IFS |
---|
3040 | |
---|
3041 | fi |
---|
3042 | fi |
---|
3043 | CC=$ac_cv_prog_CC |
---|
3044 | if test -n "$CC"; then |
---|
3045 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
3046 | printf "%s\n" "$CC" >&6; } |
---|
3047 | else |
---|
3048 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3049 | printf "%s\n" "no" >&6; } |
---|
3050 | fi |
---|
3051 | |
---|
3052 | |
---|
3053 | fi |
---|
3054 | if test -z "$ac_cv_prog_CC"; then |
---|
3055 | ac_ct_CC=$CC |
---|
3056 | # Extract the first word of "clang", so it can be a program name with args. |
---|
3057 | set dummy clang; ac_word=$2 |
---|
3058 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3059 | printf %s "checking for $ac_word... " >&6; } |
---|
3060 | if test ${ac_cv_prog_ac_ct_CC+y} |
---|
3061 | then : |
---|
3062 | printf %s "(cached) " >&6 |
---|
3063 | else $as_nop |
---|
3064 | if test -n "$ac_ct_CC"; then |
---|
3065 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
3066 | else |
---|
3067 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3068 | for as_dir in $PATH |
---|
3069 | do |
---|
3070 | IFS=$as_save_IFS |
---|
3071 | case $as_dir in #((( |
---|
3072 | '') as_dir=./ ;; |
---|
3073 | */) ;; |
---|
3074 | *) as_dir=$as_dir/ ;; |
---|
3075 | esac |
---|
3076 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3077 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
---|
3078 | ac_cv_prog_ac_ct_CC="clang" |
---|
3079 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
---|
3080 | break 2 |
---|
3081 | fi |
---|
3082 | done |
---|
3083 | done |
---|
3084 | IFS=$as_save_IFS |
---|
3085 | |
---|
3086 | fi |
---|
3087 | fi |
---|
3088 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
3089 | if test -n "$ac_ct_CC"; then |
---|
3090 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
3091 | printf "%s\n" "$ac_ct_CC" >&6; } |
---|
3092 | else |
---|
3093 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3094 | printf "%s\n" "no" >&6; } |
---|
3095 | fi |
---|
3096 | |
---|
3097 | if test "x$ac_ct_CC" = x; then |
---|
3098 | CC="" |
---|
3099 | else |
---|
3100 | case $cross_compiling:$ac_tool_warned in |
---|
3101 | yes:) |
---|
3102 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3103 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3104 | ac_tool_warned=yes ;; |
---|
3105 | esac |
---|
3106 | CC=$ac_ct_CC |
---|
3107 | fi |
---|
3108 | else |
---|
3109 | CC="$ac_cv_prog_CC" |
---|
3110 | fi |
---|
3111 | |
---|
3112 | fi |
---|
3113 | |
---|
3114 | |
---|
3115 | test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3116 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3117 | as_fn_error $? "no acceptable C compiler found in \$PATH |
---|
3118 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3119 | |
---|
3120 | # Provide some information about the compiler. |
---|
3121 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
---|
3122 | set X $ac_compile |
---|
3123 | ac_compiler=$2 |
---|
3124 | for ac_option in --version -v -V -qversion -version; do |
---|
3125 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
3126 | case "(($ac_try" in |
---|
3127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3128 | *) ac_try_echo=$ac_try;; |
---|
3129 | esac |
---|
3130 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3131 | printf "%s\n" "$ac_try_echo"; } >&5 |
---|
3132 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
3133 | ac_status=$? |
---|
3134 | if test -s conftest.err; then |
---|
3135 | sed '10a\ |
---|
3136 | ... rest of stderr output deleted ... |
---|
3137 | 10q' conftest.err >conftest.er1 |
---|
3138 | cat conftest.er1 >&5 |
---|
3139 | fi |
---|
3140 | rm -f conftest.er1 conftest.err |
---|
3141 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3142 | test $ac_status = 0; } |
---|
3143 | done |
---|
3144 | |
---|
3145 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3146 | /* end confdefs.h. */ |
---|
3147 | |
---|
3148 | int |
---|
3149 | main (void) |
---|
3150 | { |
---|
3151 | |
---|
3152 | ; |
---|
3153 | return 0; |
---|
3154 | } |
---|
3155 | _ACEOF |
---|
3156 | ac_clean_files_save=$ac_clean_files |
---|
3157 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
---|
3158 | # Try to create an executable without -o first, disregard a.out. |
---|
3159 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
3160 | # of exeext. |
---|
3161 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
---|
3162 | printf %s "checking whether the C compiler works... " >&6; } |
---|
3163 | ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
3164 | |
---|
3165 | # The possible output files: |
---|
3166 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
---|
3167 | |
---|
3168 | ac_rmfiles= |
---|
3169 | for ac_file in $ac_files |
---|
3170 | do |
---|
3171 | case $ac_file in |
---|
3172 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
3173 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
---|
3174 | esac |
---|
3175 | done |
---|
3176 | rm -f $ac_rmfiles |
---|
3177 | |
---|
3178 | if { { ac_try="$ac_link_default" |
---|
3179 | case "(($ac_try" in |
---|
3180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3181 | *) ac_try_echo=$ac_try;; |
---|
3182 | esac |
---|
3183 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3184 | printf "%s\n" "$ac_try_echo"; } >&5 |
---|
3185 | (eval "$ac_link_default") 2>&5 |
---|
3186 | ac_status=$? |
---|
3187 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3188 | test $ac_status = 0; } |
---|
3189 | then : |
---|
3190 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
---|
3191 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
---|
3192 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
---|
3193 | # so that the user can short-circuit this test for compilers unknown to |
---|
3194 | # Autoconf. |
---|
3195 | for ac_file in $ac_files '' |
---|
3196 | do |
---|
3197 | test -f "$ac_file" || continue |
---|
3198 | case $ac_file in |
---|
3199 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
---|
3200 | ;; |
---|
3201 | [ab].out ) |
---|
3202 | # We found the default executable, but exeext='' is most |
---|
3203 | # certainly right. |
---|
3204 | break;; |
---|
3205 | *.* ) |
---|
3206 | if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; |
---|
3207 | then :; else |
---|
3208 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
3209 | fi |
---|
3210 | # We set ac_cv_exeext here because the later test for it is not |
---|
3211 | # safe: cross compilers may not add the suffix if given an `-o' |
---|
3212 | # argument, so we may need to know it at that point already. |
---|
3213 | # Even if this section looks crufty: it has the advantage of |
---|
3214 | # actually working. |
---|
3215 | break;; |
---|
3216 | * ) |
---|
3217 | break;; |
---|
3218 | esac |
---|
3219 | done |
---|
3220 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
---|
3221 | |
---|
3222 | else $as_nop |
---|
3223 | ac_file='' |
---|
3224 | fi |
---|
3225 | if test -z "$ac_file" |
---|
3226 | then : |
---|
3227 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3228 | printf "%s\n" "no" >&6; } |
---|
3229 | printf "%s\n" "$as_me: failed program was:" >&5 |
---|
3230 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3231 | |
---|
3232 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3233 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3234 | as_fn_error 77 "C compiler cannot create executables |
---|
3235 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3236 | else $as_nop |
---|
3237 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
3238 | printf "%s\n" "yes" >&6; } |
---|
3239 | fi |
---|
3240 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
---|
3241 | printf %s "checking for C compiler default output file name... " >&6; } |
---|
3242 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
---|
3243 | printf "%s\n" "$ac_file" >&6; } |
---|
3244 | ac_exeext=$ac_cv_exeext |
---|
3245 | |
---|
3246 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
---|
3247 | ac_clean_files=$ac_clean_files_save |
---|
3248 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
---|
3249 | printf %s "checking for suffix of executables... " >&6; } |
---|
3250 | if { { ac_try="$ac_link" |
---|
3251 | case "(($ac_try" in |
---|
3252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3253 | *) ac_try_echo=$ac_try;; |
---|
3254 | esac |
---|
3255 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3256 | printf "%s\n" "$ac_try_echo"; } >&5 |
---|
3257 | (eval "$ac_link") 2>&5 |
---|
3258 | ac_status=$? |
---|
3259 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3260 | test $ac_status = 0; } |
---|
3261 | then : |
---|
3262 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
3263 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
3264 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
3265 | # `rm'. |
---|
3266 | for ac_file in conftest.exe conftest conftest.*; do |
---|
3267 | test -f "$ac_file" || continue |
---|
3268 | case $ac_file in |
---|
3269 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
3270 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
3271 | break;; |
---|
3272 | * ) break;; |
---|
3273 | esac |
---|
3274 | done |
---|
3275 | else $as_nop |
---|
3276 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3277 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3278 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
---|
3279 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3280 | fi |
---|
3281 | rm -f conftest conftest$ac_cv_exeext |
---|
3282 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
---|
3283 | printf "%s\n" "$ac_cv_exeext" >&6; } |
---|
3284 | |
---|
3285 | rm -f conftest.$ac_ext |
---|
3286 | EXEEXT=$ac_cv_exeext |
---|
3287 | ac_exeext=$EXEEXT |
---|
3288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3289 | /* end confdefs.h. */ |
---|
3290 | #include <stdio.h> |
---|
3291 | int |
---|
3292 | main (void) |
---|
3293 | { |
---|
3294 | FILE *f = fopen ("conftest.out", "w"); |
---|
3295 | return ferror (f) || fclose (f) != 0; |
---|
3296 | |
---|
3297 | ; |
---|
3298 | return 0; |
---|
3299 | } |
---|
3300 | _ACEOF |
---|
3301 | ac_clean_files="$ac_clean_files conftest.out" |
---|
3302 | # Check that the compiler produces executables we can run. If not, either |
---|
3303 | # the compiler is broken, or we cross compile. |
---|
3304 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
---|
3305 | printf %s "checking whether we are cross compiling... " >&6; } |
---|
3306 | if test "$cross_compiling" != yes; then |
---|
3307 | { { ac_try="$ac_link" |
---|
3308 | case "(($ac_try" in |
---|
3309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3310 | *) ac_try_echo=$ac_try;; |
---|
3311 | esac |
---|
3312 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3313 | printf "%s\n" "$ac_try_echo"; } >&5 |
---|
3314 | (eval "$ac_link") 2>&5 |
---|
3315 | ac_status=$? |
---|
3316 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3317 | test $ac_status = 0; } |
---|
3318 | if { ac_try='./conftest$ac_cv_exeext' |
---|
3319 | { { case "(($ac_try" in |
---|
3320 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3321 | *) ac_try_echo=$ac_try;; |
---|
3322 | esac |
---|
3323 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3324 | printf "%s\n" "$ac_try_echo"; } >&5 |
---|
3325 | (eval "$ac_try") 2>&5 |
---|
3326 | ac_status=$? |
---|
3327 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3328 | test $ac_status = 0; }; }; then |
---|
3329 | cross_compiling=no |
---|
3330 | else |
---|
3331 | if test "$cross_compiling" = maybe; then |
---|
3332 | cross_compiling=yes |
---|
3333 | else |
---|
3334 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3335 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3336 | as_fn_error 77 "cannot run C compiled programs. |
---|
3337 | If you meant to cross compile, use \`--host'. |
---|
3338 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3339 | fi |
---|
3340 | fi |
---|
3341 | fi |
---|
3342 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
---|
3343 | printf "%s\n" "$cross_compiling" >&6; } |
---|
3344 | |
---|
3345 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
---|
3346 | ac_clean_files=$ac_clean_files_save |
---|
3347 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
---|
3348 | printf %s "checking for suffix of object files... " >&6; } |
---|
3349 | if test ${ac_cv_objext+y} |
---|
3350 | then : |
---|
3351 | printf %s "(cached) " >&6 |
---|
3352 | else $as_nop |
---|
3353 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3354 | /* end confdefs.h. */ |
---|
3355 | |
---|
3356 | int |
---|
3357 | main (void) |
---|
3358 | { |
---|
3359 | |
---|
3360 | ; |
---|
3361 | return 0; |
---|
3362 | } |
---|
3363 | _ACEOF |
---|
3364 | rm -f conftest.o conftest.obj |
---|
3365 | if { { ac_try="$ac_compile" |
---|
3366 | case "(($ac_try" in |
---|
3367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3368 | *) ac_try_echo=$ac_try;; |
---|
3369 | esac |
---|
3370 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3371 | printf "%s\n" "$ac_try_echo"; } >&5 |
---|
3372 | (eval "$ac_compile") 2>&5 |
---|
3373 | ac_status=$? |
---|
3374 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3375 | test $ac_status = 0; } |
---|
3376 | then : |
---|
3377 | for ac_file in conftest.o conftest.obj conftest.*; do |
---|
3378 | test -f "$ac_file" || continue; |
---|
3379 | case $ac_file in |
---|
3380 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
---|
3381 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
3382 | break;; |
---|
3383 | esac |
---|
3384 | done |
---|
3385 | else $as_nop |
---|
3386 | printf "%s\n" "$as_me: failed program was:" >&5 |
---|
3387 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3388 | |
---|
3389 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3390 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3391 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
---|
3392 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3393 | fi |
---|
3394 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
3395 | fi |
---|
3396 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
---|
3397 | printf "%s\n" "$ac_cv_objext" >&6; } |
---|
3398 | OBJEXT=$ac_cv_objext |
---|
3399 | ac_objext=$OBJEXT |
---|
3400 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
---|
3401 | printf %s "checking whether the compiler supports GNU C... " >&6; } |
---|
3402 | if test ${ac_cv_c_compiler_gnu+y} |
---|
3403 | then : |
---|
3404 | printf %s "(cached) " >&6 |
---|
3405 | else $as_nop |
---|
3406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3407 | /* end confdefs.h. */ |
---|
3408 | |
---|
3409 | int |
---|
3410 | main (void) |
---|
3411 | { |
---|
3412 | #ifndef __GNUC__ |
---|
3413 | choke me |
---|
3414 | #endif |
---|
3415 | |
---|
3416 | ; |
---|
3417 | return 0; |
---|
3418 | } |
---|
3419 | _ACEOF |
---|
3420 | if ac_fn_c_try_compile "$LINENO" |
---|
3421 | then : |
---|
3422 | ac_compiler_gnu=yes |
---|
3423 | else $as_nop |
---|
3424 | ac_compiler_gnu=no |
---|
3425 | fi |
---|
3426 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
3427 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
3428 | |
---|
3429 | fi |
---|
3430 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
---|
3431 | printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } |
---|
3432 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3433 | |
---|
3434 | if test $ac_compiler_gnu = yes; then |
---|
3435 | GCC=yes |
---|
3436 | else |
---|
3437 | GCC= |
---|
3438 | fi |
---|
3439 | ac_test_CFLAGS=${CFLAGS+y} |
---|
3440 | ac_save_CFLAGS=$CFLAGS |
---|
3441 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
---|
3442 | printf %s "checking whether $CC accepts -g... " >&6; } |
---|
3443 | if test ${ac_cv_prog_cc_g+y} |
---|
3444 | then : |
---|
3445 | printf %s "(cached) " >&6 |
---|
3446 | else $as_nop |
---|
3447 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
3448 | ac_c_werror_flag=yes |
---|
3449 | ac_cv_prog_cc_g=no |
---|
3450 | CFLAGS="-g" |
---|
3451 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3452 | /* end confdefs.h. */ |
---|
3453 | |
---|
3454 | int |
---|
3455 | main (void) |
---|
3456 | { |
---|
3457 | |
---|
3458 | ; |
---|
3459 | return 0; |
---|
3460 | } |
---|
3461 | _ACEOF |
---|
3462 | if ac_fn_c_try_compile "$LINENO" |
---|
3463 | then : |
---|
3464 | ac_cv_prog_cc_g=yes |
---|
3465 | else $as_nop |
---|
3466 | CFLAGS="" |
---|
3467 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3468 | /* end confdefs.h. */ |
---|
3469 | |
---|
3470 | int |
---|
3471 | main (void) |
---|
3472 | { |
---|
3473 | |
---|
3474 | ; |
---|
3475 | return 0; |
---|
3476 | } |
---|
3477 | _ACEOF |
---|
3478 | if ac_fn_c_try_compile "$LINENO" |
---|
3479 | then : |
---|
3480 | |
---|
3481 | else $as_nop |
---|
3482 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
3483 | CFLAGS="-g" |
---|
3484 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3485 | /* end confdefs.h. */ |
---|
3486 | |
---|
3487 | int |
---|
3488 | main (void) |
---|
3489 | { |
---|
3490 | |
---|
3491 | ; |
---|
3492 | return 0; |
---|
3493 | } |
---|
3494 | _ACEOF |
---|
3495 | if ac_fn_c_try_compile "$LINENO" |
---|
3496 | then : |
---|
3497 | ac_cv_prog_cc_g=yes |
---|
3498 | fi |
---|
3499 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
3500 | fi |
---|
3501 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
3502 | fi |
---|
3503 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
3504 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
3505 | fi |
---|
3506 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
---|
3507 | printf "%s\n" "$ac_cv_prog_cc_g" >&6; } |
---|
3508 | if test $ac_test_CFLAGS; then |
---|
3509 | CFLAGS=$ac_save_CFLAGS |
---|
3510 | elif test $ac_cv_prog_cc_g = yes; then |
---|
3511 | if test "$GCC" = yes; then |
---|
3512 | CFLAGS="-g -O2" |
---|
3513 | else |
---|
3514 | CFLAGS="-g" |
---|
3515 | fi |
---|
3516 | else |
---|
3517 | if test "$GCC" = yes; then |
---|
3518 | CFLAGS="-O2" |
---|
3519 | else |
---|
3520 | CFLAGS= |
---|
3521 | fi |
---|
3522 | fi |
---|
3523 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 |
---|
3524 | printf %s "checking for $CC option to enable C11 features... " >&6; } |
---|
3525 | if test ${ac_cv_prog_cc_c11+y} |
---|
3526 | then : |
---|
3527 | printf %s "(cached) " >&6 |
---|
3528 | else $as_nop |
---|
3529 | ac_cv_prog_cc_c11=no |
---|
3530 | ac_save_CC=$CC |
---|
3531 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3532 | /* end confdefs.h. */ |
---|
3533 | $ac_c_conftest_c11_program |
---|
3534 | _ACEOF |
---|
3535 | for ac_arg in '' -std=gnu11 |
---|
3536 | do |
---|
3537 | CC="$ac_save_CC $ac_arg" |
---|
3538 | if ac_fn_c_try_compile "$LINENO" |
---|
3539 | then : |
---|
3540 | ac_cv_prog_cc_c11=$ac_arg |
---|
3541 | fi |
---|
3542 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
---|
3543 | test "x$ac_cv_prog_cc_c11" != "xno" && break |
---|
3544 | done |
---|
3545 | rm -f conftest.$ac_ext |
---|
3546 | CC=$ac_save_CC |
---|
3547 | |
---|
3548 | fi |
---|
3549 | # AC_CACHE_VAL |
---|
3550 | ac_prog_cc_stdc_options= |
---|
3551 | case "x$ac_cv_prog_cc_c11" in #( |
---|
3552 | x) : |
---|
3553 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
---|
3554 | printf "%s\n" "none needed" >&6; } ;; #( |
---|
3555 | xno) : |
---|
3556 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
---|
3557 | printf "%s\n" "unsupported" >&6; } ;; #( |
---|
3558 | *) : |
---|
3559 | ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c11" |
---|
3560 | CC="$CC$ac_prog_cc_stdc_options" |
---|
3561 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 |
---|
3562 | printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } ;; |
---|
3563 | esac |
---|
3564 | if test "x$ac_cv_prog_cc_c11" != xno |
---|
3565 | then : |
---|
3566 | ac_prog_cc_stdc=c11 |
---|
3567 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 |
---|
3568 | else $as_nop |
---|
3569 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 |
---|
3570 | printf %s "checking for $CC option to enable C99 features... " >&6; } |
---|
3571 | if test ${ac_cv_prog_cc_c99+y} |
---|
3572 | then : |
---|
3573 | printf %s "(cached) " >&6 |
---|
3574 | else $as_nop |
---|
3575 | ac_cv_prog_cc_c99=no |
---|
3576 | ac_save_CC=$CC |
---|
3577 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3578 | /* end confdefs.h. */ |
---|
3579 | $ac_c_conftest_c89_program |
---|
3580 | _ACEOF |
---|
3581 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc1x -qlanglvl=extc99 |
---|
3582 | do |
---|
3583 | CC="$ac_save_CC $ac_arg" |
---|
3584 | if ac_fn_c_try_compile "$LINENO" |
---|
3585 | then : |
---|
3586 | ac_cv_prog_cc_c99=$ac_arg |
---|
3587 | fi |
---|
3588 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
---|
3589 | test "x$ac_cv_prog_cc_c99" != "xno" && break |
---|
3590 | done |
---|
3591 | rm -f conftest.$ac_ext |
---|
3592 | CC=$ac_save_CC |
---|
3593 | |
---|
3594 | fi |
---|
3595 | # AC_CACHE_VAL |
---|
3596 | ac_prog_cc_stdc_options= |
---|
3597 | case "x$ac_cv_prog_cc_c99" in #( |
---|
3598 | x) : |
---|
3599 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
---|
3600 | printf "%s\n" "none needed" >&6; } ;; #( |
---|
3601 | xno) : |
---|
3602 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
---|
3603 | printf "%s\n" "unsupported" >&6; } ;; #( |
---|
3604 | *) : |
---|
3605 | ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c99" |
---|
3606 | CC="$CC$ac_prog_cc_stdc_options" |
---|
3607 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
---|
3608 | printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } ;; |
---|
3609 | esac |
---|
3610 | if test "x$ac_cv_prog_cc_c99" != xno |
---|
3611 | then : |
---|
3612 | ac_prog_cc_stdc=c99 |
---|
3613 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
---|
3614 | else $as_nop |
---|
3615 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 |
---|
3616 | printf %s "checking for $CC option to enable C89 features... " >&6; } |
---|
3617 | if test ${ac_cv_prog_cc_c89+y} |
---|
3618 | then : |
---|
3619 | printf %s "(cached) " >&6 |
---|
3620 | else $as_nop |
---|
3621 | ac_cv_prog_cc_c89=no |
---|
3622 | ac_save_CC=$CC |
---|
3623 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3624 | /* end confdefs.h. */ |
---|
3625 | $ac_c_conftest_c89_program |
---|
3626 | _ACEOF |
---|
3627 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
3628 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
3629 | do |
---|
3630 | CC="$ac_save_CC $ac_arg" |
---|
3631 | if ac_fn_c_try_compile "$LINENO" |
---|
3632 | then : |
---|
3633 | ac_cv_prog_cc_c89=$ac_arg |
---|
3634 | fi |
---|
3635 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
---|
3636 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
3637 | done |
---|
3638 | rm -f conftest.$ac_ext |
---|
3639 | CC=$ac_save_CC |
---|
3640 | |
---|
3641 | fi |
---|
3642 | # AC_CACHE_VAL |
---|
3643 | ac_prog_cc_stdc_options= |
---|
3644 | case "x$ac_cv_prog_cc_c89" in #( |
---|
3645 | x) : |
---|
3646 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
---|
3647 | printf "%s\n" "none needed" >&6; } ;; #( |
---|
3648 | xno) : |
---|
3649 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
---|
3650 | printf "%s\n" "unsupported" >&6; } ;; #( |
---|
3651 | *) : |
---|
3652 | ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c89" |
---|
3653 | CC="$CC$ac_prog_cc_stdc_options" |
---|
3654 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
---|
3655 | printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } ;; |
---|
3656 | esac |
---|
3657 | if test "x$ac_cv_prog_cc_c89" != xno |
---|
3658 | then : |
---|
3659 | ac_prog_cc_stdc=c89 |
---|
3660 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
---|
3661 | else $as_nop |
---|
3662 | ac_prog_cc_stdc=no |
---|
3663 | ac_cv_prog_cc_stdc=no |
---|
3664 | fi |
---|
3665 | |
---|
3666 | fi |
---|
3667 | |
---|
3668 | fi |
---|
3669 | |
---|
3670 | ac_ext=c |
---|
3671 | ac_cpp='$CPP $CPPFLAGS' |
---|
3672 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3673 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3674 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3675 | |
---|
3676 | ac_ext=${ac_fc_srcext-f} |
---|
3677 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
3678 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
3679 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
3680 | if test -n "$ac_tool_prefix"; then |
---|
3681 | for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 |
---|
3682 | do |
---|
3683 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3684 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3685 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3686 | printf %s "checking for $ac_word... " >&6; } |
---|
3687 | if test ${ac_cv_prog_FC+y} |
---|
3688 | then : |
---|
3689 | printf %s "(cached) " >&6 |
---|
3690 | else $as_nop |
---|
3691 | if test -n "$FC"; then |
---|
3692 | ac_cv_prog_FC="$FC" # Let the user override the test. |
---|
3693 | else |
---|
3694 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3695 | for as_dir in $PATH |
---|
3696 | do |
---|
3697 | IFS=$as_save_IFS |
---|
3698 | case $as_dir in #((( |
---|
3699 | '') as_dir=./ ;; |
---|
3700 | */) ;; |
---|
3701 | *) as_dir=$as_dir/ ;; |
---|
3702 | esac |
---|
3703 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3704 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
---|
3705 | ac_cv_prog_FC="$ac_tool_prefix$ac_prog" |
---|
3706 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
---|
3707 | break 2 |
---|
3708 | fi |
---|
3709 | done |
---|
3710 | done |
---|
3711 | IFS=$as_save_IFS |
---|
3712 | |
---|
3713 | fi |
---|
3714 | fi |
---|
3715 | FC=$ac_cv_prog_FC |
---|
3716 | if test -n "$FC"; then |
---|
3717 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 |
---|
3718 | printf "%s\n" "$FC" >&6; } |
---|
3719 | else |
---|
3720 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3721 | printf "%s\n" "no" >&6; } |
---|
3722 | fi |
---|
3723 | |
---|
3724 | |
---|
3725 | test -n "$FC" && break |
---|
3726 | done |
---|
3727 | fi |
---|
3728 | if test -z "$FC"; then |
---|
3729 | ac_ct_FC=$FC |
---|
3730 | for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 |
---|
3731 | do |
---|
3732 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3733 | set dummy $ac_prog; ac_word=$2 |
---|
3734 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3735 | printf %s "checking for $ac_word... " >&6; } |
---|
3736 | if test ${ac_cv_prog_ac_ct_FC+y} |
---|
3737 | then : |
---|
3738 | printf %s "(cached) " >&6 |
---|
3739 | else $as_nop |
---|
3740 | if test -n "$ac_ct_FC"; then |
---|
3741 | ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. |
---|
3742 | else |
---|
3743 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3744 | for as_dir in $PATH |
---|
3745 | do |
---|
3746 | IFS=$as_save_IFS |
---|
3747 | case $as_dir in #((( |
---|
3748 | '') as_dir=./ ;; |
---|
3749 | */) ;; |
---|
3750 | *) as_dir=$as_dir/ ;; |
---|
3751 | esac |
---|
3752 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3753 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
---|
3754 | ac_cv_prog_ac_ct_FC="$ac_prog" |
---|
3755 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
---|
3756 | break 2 |
---|
3757 | fi |
---|
3758 | done |
---|
3759 | done |
---|
3760 | IFS=$as_save_IFS |
---|
3761 | |
---|
3762 | fi |
---|
3763 | fi |
---|
3764 | ac_ct_FC=$ac_cv_prog_ac_ct_FC |
---|
3765 | if test -n "$ac_ct_FC"; then |
---|
3766 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 |
---|
3767 | printf "%s\n" "$ac_ct_FC" >&6; } |
---|
3768 | else |
---|
3769 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3770 | printf "%s\n" "no" >&6; } |
---|
3771 | fi |
---|
3772 | |
---|
3773 | |
---|
3774 | test -n "$ac_ct_FC" && break |
---|
3775 | done |
---|
3776 | |
---|
3777 | if test "x$ac_ct_FC" = x; then |
---|
3778 | FC="" |
---|
3779 | else |
---|
3780 | case $cross_compiling:$ac_tool_warned in |
---|
3781 | yes:) |
---|
3782 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3783 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3784 | ac_tool_warned=yes ;; |
---|
3785 | esac |
---|
3786 | FC=$ac_ct_FC |
---|
3787 | fi |
---|
3788 | fi |
---|
3789 | |
---|
3790 | |
---|
3791 | # Provide some information about the compiler. |
---|
3792 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 |
---|
3793 | set X $ac_compile |
---|
3794 | ac_compiler=$2 |
---|
3795 | for ac_option in --version -v -V -qversion; do |
---|
3796 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
3797 | case "(($ac_try" in |
---|
3798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3799 | *) ac_try_echo=$ac_try;; |
---|
3800 | esac |
---|
3801 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3802 | printf "%s\n" "$ac_try_echo"; } >&5 |
---|
3803 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
3804 | ac_status=$? |
---|
3805 | if test -s conftest.err; then |
---|
3806 | sed '10a\ |
---|
3807 | ... rest of stderr output deleted ... |
---|
3808 | 10q' conftest.err >conftest.er1 |
---|
3809 | cat conftest.er1 >&5 |
---|
3810 | fi |
---|
3811 | rm -f conftest.er1 conftest.err |
---|
3812 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3813 | test $ac_status = 0; } |
---|
3814 | done |
---|
3815 | rm -f a.out |
---|
3816 | |
---|
3817 | # If we don't use `.F' as extension, the preprocessor is not run on the |
---|
3818 | # input file. (Note that this only needs to work for GNU compilers.) |
---|
3819 | ac_save_ext=$ac_ext |
---|
3820 | ac_ext=F |
---|
3821 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU Fortran" >&5 |
---|
3822 | printf %s "checking whether the compiler supports GNU Fortran... " >&6; } |
---|
3823 | if test ${ac_cv_fc_compiler_gnu+y} |
---|
3824 | then : |
---|
3825 | printf %s "(cached) " >&6 |
---|
3826 | else $as_nop |
---|
3827 | cat > conftest.$ac_ext <<_ACEOF |
---|
3828 | program main |
---|
3829 | #ifndef __GNUC__ |
---|
3830 | choke me |
---|
3831 | #endif |
---|
3832 | |
---|
3833 | end |
---|
3834 | _ACEOF |
---|
3835 | if ac_fn_fc_try_compile "$LINENO" |
---|
3836 | then : |
---|
3837 | ac_compiler_gnu=yes |
---|
3838 | else $as_nop |
---|
3839 | ac_compiler_gnu=no |
---|
3840 | fi |
---|
3841 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
3842 | ac_cv_fc_compiler_gnu=$ac_compiler_gnu |
---|
3843 | |
---|
3844 | fi |
---|
3845 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 |
---|
3846 | printf "%s\n" "$ac_cv_fc_compiler_gnu" >&6; } |
---|
3847 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
3848 | |
---|
3849 | ac_ext=$ac_save_ext |
---|
3850 | ac_test_FCFLAGS=${FCFLAGS+y} |
---|
3851 | ac_save_FCFLAGS=$FCFLAGS |
---|
3852 | FCFLAGS= |
---|
3853 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 |
---|
3854 | printf %s "checking whether $FC accepts -g... " >&6; } |
---|
3855 | if test ${ac_cv_prog_fc_g+y} |
---|
3856 | then : |
---|
3857 | printf %s "(cached) " >&6 |
---|
3858 | else $as_nop |
---|
3859 | FCFLAGS=-g |
---|
3860 | cat > conftest.$ac_ext <<_ACEOF |
---|
3861 | program main |
---|
3862 | |
---|
3863 | end |
---|
3864 | _ACEOF |
---|
3865 | if ac_fn_fc_try_compile "$LINENO" |
---|
3866 | then : |
---|
3867 | ac_cv_prog_fc_g=yes |
---|
3868 | else $as_nop |
---|
3869 | ac_cv_prog_fc_g=no |
---|
3870 | fi |
---|
3871 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
3872 | |
---|
3873 | fi |
---|
3874 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 |
---|
3875 | printf "%s\n" "$ac_cv_prog_fc_g" >&6; } |
---|
3876 | if test $ac_test_FCFLAGS; then |
---|
3877 | FCFLAGS=$ac_save_FCFLAGS |
---|
3878 | elif test $ac_cv_prog_fc_g = yes; then |
---|
3879 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then |
---|
3880 | FCFLAGS="-g -O2" |
---|
3881 | else |
---|
3882 | FCFLAGS="-g" |
---|
3883 | fi |
---|
3884 | else |
---|
3885 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then |
---|
3886 | FCFLAGS="-O2" |
---|
3887 | else |
---|
3888 | FCFLAGS= |
---|
3889 | fi |
---|
3890 | fi |
---|
3891 | |
---|
3892 | if test $ac_compiler_gnu = yes; then |
---|
3893 | GFC=yes |
---|
3894 | else |
---|
3895 | GFC= |
---|
3896 | fi |
---|
3897 | ac_ext=c |
---|
3898 | ac_cpp='$CPP $CPPFLAGS' |
---|
3899 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3900 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3901 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3902 | |
---|
3903 | |
---|
3904 | # ARCHIVE COMMAND SIMILAR ACROSS ALL PLATFORMS |
---|
3905 | |
---|
3906 | if test -z "$AR"; then |
---|
3907 | AR="ar cruv" |
---|
3908 | fi |
---|
3909 | |
---|
3910 | # RANLIB |
---|
3911 | |
---|
3912 | if test -z "$RANLIB"; then |
---|
3913 | # Necessary on Darwin to deal with common symbols (particularly when |
---|
3914 | # using ifort). |
---|
3915 | if test "$SYSDEF"x = DARWINx; then |
---|
3916 | RANLIB="ranlib -c" |
---|
3917 | else |
---|
3918 | if test -n "$ac_tool_prefix"; then |
---|
3919 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
3920 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
3921 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3922 | printf %s "checking for $ac_word... " >&6; } |
---|
3923 | if test ${ac_cv_prog_RANLIB+y} |
---|
3924 | then : |
---|
3925 | printf %s "(cached) " >&6 |
---|
3926 | else $as_nop |
---|
3927 | if test -n "$RANLIB"; then |
---|
3928 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
3929 | else |
---|
3930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3931 | for as_dir in $PATH |
---|
3932 | do |
---|
3933 | IFS=$as_save_IFS |
---|
3934 | case $as_dir in #((( |
---|
3935 | '') as_dir=./ ;; |
---|
3936 | */) ;; |
---|
3937 | *) as_dir=$as_dir/ ;; |
---|
3938 | esac |
---|
3939 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3940 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
---|
3941 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
3942 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
---|
3943 | break 2 |
---|
3944 | fi |
---|
3945 | done |
---|
3946 | done |
---|
3947 | IFS=$as_save_IFS |
---|
3948 | |
---|
3949 | fi |
---|
3950 | fi |
---|
3951 | RANLIB=$ac_cv_prog_RANLIB |
---|
3952 | if test -n "$RANLIB"; then |
---|
3953 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
---|
3954 | printf "%s\n" "$RANLIB" >&6; } |
---|
3955 | else |
---|
3956 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3957 | printf "%s\n" "no" >&6; } |
---|
3958 | fi |
---|
3959 | |
---|
3960 | |
---|
3961 | fi |
---|
3962 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
3963 | ac_ct_RANLIB=$RANLIB |
---|
3964 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
3965 | set dummy ranlib; ac_word=$2 |
---|
3966 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3967 | printf %s "checking for $ac_word... " >&6; } |
---|
3968 | if test ${ac_cv_prog_ac_ct_RANLIB+y} |
---|
3969 | then : |
---|
3970 | printf %s "(cached) " >&6 |
---|
3971 | else $as_nop |
---|
3972 | if test -n "$ac_ct_RANLIB"; then |
---|
3973 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
3974 | else |
---|
3975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3976 | for as_dir in $PATH |
---|
3977 | do |
---|
3978 | IFS=$as_save_IFS |
---|
3979 | case $as_dir in #((( |
---|
3980 | '') as_dir=./ ;; |
---|
3981 | */) ;; |
---|
3982 | *) as_dir=$as_dir/ ;; |
---|
3983 | esac |
---|
3984 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3985 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
---|
3986 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
3987 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
---|
3988 | break 2 |
---|
3989 | fi |
---|
3990 | done |
---|
3991 | done |
---|
3992 | IFS=$as_save_IFS |
---|
3993 | |
---|
3994 | fi |
---|
3995 | fi |
---|
3996 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
3997 | if test -n "$ac_ct_RANLIB"; then |
---|
3998 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
---|
3999 | printf "%s\n" "$ac_ct_RANLIB" >&6; } |
---|
4000 | else |
---|
4001 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4002 | printf "%s\n" "no" >&6; } |
---|
4003 | fi |
---|
4004 | |
---|
4005 | if test "x$ac_ct_RANLIB" = x; then |
---|
4006 | RANLIB=":" |
---|
4007 | else |
---|
4008 | case $cross_compiling:$ac_tool_warned in |
---|
4009 | yes:) |
---|
4010 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
4011 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
4012 | ac_tool_warned=yes ;; |
---|
4013 | esac |
---|
4014 | RANLIB=$ac_ct_RANLIB |
---|
4015 | fi |
---|
4016 | else |
---|
4017 | RANLIB="$ac_cv_prog_RANLIB" |
---|
4018 | fi |
---|
4019 | |
---|
4020 | fi |
---|
4021 | fi |
---|
4022 | |
---|
4023 | |
---|
4024 | |
---|
4025 | |
---|
4026 | # Make sure we can run config.sub. |
---|
4027 | $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || |
---|
4028 | as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 |
---|
4029 | |
---|
4030 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
---|
4031 | printf %s "checking build system type... " >&6; } |
---|
4032 | if test ${ac_cv_build+y} |
---|
4033 | then : |
---|
4034 | printf %s "(cached) " >&6 |
---|
4035 | else $as_nop |
---|
4036 | ac_build_alias=$build_alias |
---|
4037 | test "x$ac_build_alias" = x && |
---|
4038 | ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` |
---|
4039 | test "x$ac_build_alias" = x && |
---|
4040 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
---|
4041 | ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || |
---|
4042 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 |
---|
4043 | |
---|
4044 | fi |
---|
4045 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
---|
4046 | printf "%s\n" "$ac_cv_build" >&6; } |
---|
4047 | case $ac_cv_build in |
---|
4048 | *-*-*) ;; |
---|
4049 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
---|
4050 | esac |
---|
4051 | build=$ac_cv_build |
---|
4052 | ac_save_IFS=$IFS; IFS='-' |
---|
4053 | set x $ac_cv_build |
---|
4054 | shift |
---|
4055 | build_cpu=$1 |
---|
4056 | build_vendor=$2 |
---|
4057 | shift; shift |
---|
4058 | # Remember, the first character of IFS is used to create $*, |
---|
4059 | # except with old shells: |
---|
4060 | build_os=$* |
---|
4061 | IFS=$ac_save_IFS |
---|
4062 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
---|
4063 | |
---|
4064 | |
---|
4065 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
---|
4066 | printf %s "checking host system type... " >&6; } |
---|
4067 | if test ${ac_cv_host+y} |
---|
4068 | then : |
---|
4069 | printf %s "(cached) " >&6 |
---|
4070 | else $as_nop |
---|
4071 | if test "x$host_alias" = x; then |
---|
4072 | ac_cv_host=$ac_cv_build |
---|
4073 | else |
---|
4074 | ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || |
---|
4075 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 |
---|
4076 | fi |
---|
4077 | |
---|
4078 | fi |
---|
4079 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
---|
4080 | printf "%s\n" "$ac_cv_host" >&6; } |
---|
4081 | case $ac_cv_host in |
---|
4082 | *-*-*) ;; |
---|
4083 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
---|
4084 | esac |
---|
4085 | host=$ac_cv_host |
---|
4086 | ac_save_IFS=$IFS; IFS='-' |
---|
4087 | set x $ac_cv_host |
---|
4088 | shift |
---|
4089 | host_cpu=$1 |
---|
4090 | host_vendor=$2 |
---|
4091 | shift; shift |
---|
4092 | # Remember, the first character of IFS is used to create $*, |
---|
4093 | # except with old shells: |
---|
4094 | host_os=$* |
---|
4095 | IFS=$ac_save_IFS |
---|
4096 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
---|
4097 | |
---|
4098 | |
---|
4099 | |
---|
4100 | ac_ext=${ac_fc_srcext-f} |
---|
4101 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
4102 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
4103 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
4104 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5 |
---|
4105 | printf %s "checking how to get verbose linking output from $FC... " >&6; } |
---|
4106 | if test ${ac_cv_prog_fc_v+y} |
---|
4107 | then : |
---|
4108 | printf %s "(cached) " >&6 |
---|
4109 | else $as_nop |
---|
4110 | cat > conftest.$ac_ext <<_ACEOF |
---|
4111 | program main |
---|
4112 | |
---|
4113 | end |
---|
4114 | _ACEOF |
---|
4115 | if ac_fn_fc_try_compile "$LINENO" |
---|
4116 | then : |
---|
4117 | ac_cv_prog_fc_v= |
---|
4118 | # Try some options frequently used verbose output |
---|
4119 | for ac_verb in -v -verbose --verbose -V -\#\#\#; do |
---|
4120 | cat > conftest.$ac_ext <<_ACEOF |
---|
4121 | program main |
---|
4122 | |
---|
4123 | end |
---|
4124 | _ACEOF |
---|
4125 | |
---|
4126 | # Compile and link our simple test program by passing a flag (argument |
---|
4127 | # 1 to this macro) to the Fortran compiler in order to get |
---|
4128 | # "verbose" output that we can then parse for the Fortran linker |
---|
4129 | # flags. |
---|
4130 | ac_save_FCFLAGS=$FCFLAGS |
---|
4131 | FCFLAGS="$FCFLAGS $ac_verb" |
---|
4132 | eval "set x $ac_link" |
---|
4133 | shift |
---|
4134 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: $*" >&5 |
---|
4135 | # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, |
---|
4136 | # LIBRARY_PATH; skip all such settings. |
---|
4137 | ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | |
---|
4138 | sed '/^Driving:/d; /^Configured with:/d; |
---|
4139 | '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` |
---|
4140 | printf "%s\n" "$ac_fc_v_output" >&5 |
---|
4141 | FCFLAGS=$ac_save_FCFLAGS |
---|
4142 | |
---|
4143 | rm -rf conftest* |
---|
4144 | |
---|
4145 | # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where |
---|
4146 | # /foo, /bar, and /baz are search directories for the Fortran linker. |
---|
4147 | # Here, we change these into -L/foo -L/bar -L/baz (and put it first): |
---|
4148 | ac_fc_v_output="`echo $ac_fc_v_output | |
---|
4149 | grep 'LPATH is:' | |
---|
4150 | sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output" |
---|
4151 | |
---|
4152 | # FIXME: we keep getting bitten by quoted arguments; a more general fix |
---|
4153 | # that detects unbalanced quotes in FLIBS should be implemented |
---|
4154 | # and (ugh) tested at some point. |
---|
4155 | case $ac_fc_v_output in |
---|
4156 | # With xlf replace commas with spaces, |
---|
4157 | # and remove "-link" and closing parenthesis. |
---|
4158 | *xlfentry*) |
---|
4159 | ac_fc_v_output=`echo $ac_fc_v_output | |
---|
4160 | sed ' |
---|
4161 | s/,/ /g |
---|
4162 | s/ -link / /g |
---|
4163 | s/) *$// |
---|
4164 | ' |
---|
4165 | ` ;; |
---|
4166 | |
---|
4167 | # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted |
---|
4168 | # $LIBS confuse us, and the libraries appear later in the output anyway). |
---|
4169 | *mGLOB_options_string*) |
---|
4170 | ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; |
---|
4171 | |
---|
4172 | # Portland Group compiler has singly- or doubly-quoted -cmdline argument |
---|
4173 | # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. |
---|
4174 | # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". |
---|
4175 | *-cmdline\ * | *-ignore\ * | *-def\ *) |
---|
4176 | ac_fc_v_output=`echo $ac_fc_v_output | sed "\ |
---|
4177 | s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g |
---|
4178 | s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g |
---|
4179 | s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; |
---|
4180 | |
---|
4181 | # If we are using fort77 (the f2c wrapper) then filter output and delete quotes. |
---|
4182 | *fort77*f2c*gcc*) |
---|
4183 | ac_fc_v_output=`echo "$ac_fc_v_output" | sed -n ' |
---|
4184 | /:[ ]\+Running[ ]\{1,\}"gcc"/{ |
---|
4185 | /"-c"/d |
---|
4186 | /[.]c"*/d |
---|
4187 | s/^.*"gcc"/"gcc"/ |
---|
4188 | s/"//gp |
---|
4189 | }'` ;; |
---|
4190 | |
---|
4191 | # If we are using Cray Fortran then delete quotes. |
---|
4192 | *cft90*) |
---|
4193 | ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;; |
---|
4194 | esac |
---|
4195 | |
---|
4196 | |
---|
4197 | # look for -l* and *.a constructs in the output |
---|
4198 | for ac_arg in $ac_fc_v_output; do |
---|
4199 | case $ac_arg in |
---|
4200 | [\\/]*.a | ?:[\\/]*.a | -[lLRu]*) |
---|
4201 | ac_cv_prog_fc_v=$ac_verb |
---|
4202 | break 2 ;; |
---|
4203 | esac |
---|
4204 | done |
---|
4205 | done |
---|
4206 | if test -z "$ac_cv_prog_fc_v"; then |
---|
4207 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $FC" >&5 |
---|
4208 | printf "%s\n" "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;} |
---|
4209 | fi |
---|
4210 | else $as_nop |
---|
4211 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5 |
---|
4212 | printf "%s\n" "$as_me: WARNING: compilation failed" >&2;} |
---|
4213 | fi |
---|
4214 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
4215 | |
---|
4216 | fi |
---|
4217 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_v" >&5 |
---|
4218 | printf "%s\n" "$ac_cv_prog_fc_v" >&6; } |
---|
4219 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5 |
---|
4220 | printf %s "checking for Fortran libraries of $FC... " >&6; } |
---|
4221 | if test ${ac_cv_fc_libs+y} |
---|
4222 | then : |
---|
4223 | printf %s "(cached) " >&6 |
---|
4224 | else $as_nop |
---|
4225 | if test "x$FCLIBS" != "x"; then |
---|
4226 | ac_cv_fc_libs="$FCLIBS" # Let the user override the test. |
---|
4227 | else |
---|
4228 | |
---|
4229 | cat > conftest.$ac_ext <<_ACEOF |
---|
4230 | program main |
---|
4231 | |
---|
4232 | end |
---|
4233 | _ACEOF |
---|
4234 | |
---|
4235 | # Compile and link our simple test program by passing a flag (argument |
---|
4236 | # 1 to this macro) to the Fortran compiler in order to get |
---|
4237 | # "verbose" output that we can then parse for the Fortran linker |
---|
4238 | # flags. |
---|
4239 | ac_save_FCFLAGS=$FCFLAGS |
---|
4240 | FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v" |
---|
4241 | eval "set x $ac_link" |
---|
4242 | shift |
---|
4243 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: $*" >&5 |
---|
4244 | # gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, |
---|
4245 | # LIBRARY_PATH; skip all such settings. |
---|
4246 | ac_fc_v_output=`eval $ac_link 5>&1 2>&1 | |
---|
4247 | sed '/^Driving:/d; /^Configured with:/d; |
---|
4248 | '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` |
---|
4249 | printf "%s\n" "$ac_fc_v_output" >&5 |
---|
4250 | FCFLAGS=$ac_save_FCFLAGS |
---|
4251 | |
---|
4252 | rm -rf conftest* |
---|
4253 | |
---|
4254 | # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where |
---|
4255 | # /foo, /bar, and /baz are search directories for the Fortran linker. |
---|
4256 | # Here, we change these into -L/foo -L/bar -L/baz (and put it first): |
---|
4257 | ac_fc_v_output="`echo $ac_fc_v_output | |
---|
4258 | grep 'LPATH is:' | |
---|
4259 | sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output" |
---|
4260 | |
---|
4261 | # FIXME: we keep getting bitten by quoted arguments; a more general fix |
---|
4262 | # that detects unbalanced quotes in FLIBS should be implemented |
---|
4263 | # and (ugh) tested at some point. |
---|
4264 | case $ac_fc_v_output in |
---|
4265 | # With xlf replace commas with spaces, |
---|
4266 | # and remove "-link" and closing parenthesis. |
---|
4267 | *xlfentry*) |
---|
4268 | ac_fc_v_output=`echo $ac_fc_v_output | |
---|
4269 | sed ' |
---|
4270 | s/,/ /g |
---|
4271 | s/ -link / /g |
---|
4272 | s/) *$// |
---|
4273 | ' |
---|
4274 | ` ;; |
---|
4275 | |
---|
4276 | # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted |
---|
4277 | # $LIBS confuse us, and the libraries appear later in the output anyway). |
---|
4278 | *mGLOB_options_string*) |
---|
4279 | ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; |
---|
4280 | |
---|
4281 | # Portland Group compiler has singly- or doubly-quoted -cmdline argument |
---|
4282 | # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. |
---|
4283 | # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". |
---|
4284 | *-cmdline\ * | *-ignore\ * | *-def\ *) |
---|
4285 | ac_fc_v_output=`echo $ac_fc_v_output | sed "\ |
---|
4286 | s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g |
---|
4287 | s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g |
---|
4288 | s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; |
---|
4289 | |
---|
4290 | # If we are using fort77 (the f2c wrapper) then filter output and delete quotes. |
---|
4291 | *fort77*f2c*gcc*) |
---|
4292 | ac_fc_v_output=`echo "$ac_fc_v_output" | sed -n ' |
---|
4293 | /:[ ]\+Running[ ]\{1,\}"gcc"/{ |
---|
4294 | /"-c"/d |
---|
4295 | /[.]c"*/d |
---|
4296 | s/^.*"gcc"/"gcc"/ |
---|
4297 | s/"//gp |
---|
4298 | }'` ;; |
---|
4299 | |
---|
4300 | # If we are using Cray Fortran then delete quotes. |
---|
4301 | *cft90*) |
---|
4302 | ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;; |
---|
4303 | esac |
---|
4304 | |
---|
4305 | |
---|
4306 | |
---|
4307 | ac_cv_fc_libs= |
---|
4308 | |
---|
4309 | # Save positional arguments (if any) |
---|
4310 | ac_save_positional="$@" |
---|
4311 | |
---|
4312 | set X $ac_fc_v_output |
---|
4313 | while test $# != 1; do |
---|
4314 | shift |
---|
4315 | ac_arg=$1 |
---|
4316 | case $ac_arg in |
---|
4317 | [\\/]*.a | ?:[\\/]*.a) |
---|
4318 | ac_exists=false |
---|
4319 | for ac_i in $ac_cv_fc_libs; do |
---|
4320 | if test x"$ac_arg" = x"$ac_i"; then |
---|
4321 | ac_exists=true |
---|
4322 | break |
---|
4323 | fi |
---|
4324 | done |
---|
4325 | |
---|
4326 | if test x"$ac_exists" = xtrue |
---|
4327 | then : |
---|
4328 | |
---|
4329 | else $as_nop |
---|
4330 | ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
---|
4331 | fi |
---|
4332 | ;; |
---|
4333 | -bI:*) |
---|
4334 | ac_exists=false |
---|
4335 | for ac_i in $ac_cv_fc_libs; do |
---|
4336 | if test x"$ac_arg" = x"$ac_i"; then |
---|
4337 | ac_exists=true |
---|
4338 | break |
---|
4339 | fi |
---|
4340 | done |
---|
4341 | |
---|
4342 | if test x"$ac_exists" = xtrue |
---|
4343 | then : |
---|
4344 | |
---|
4345 | else $as_nop |
---|
4346 | if test "$ac_compiler_gnu" = yes; then |
---|
4347 | for ac_link_opt in $ac_arg; do |
---|
4348 | ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt" |
---|
4349 | done |
---|
4350 | else |
---|
4351 | ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
---|
4352 | fi |
---|
4353 | fi |
---|
4354 | ;; |
---|
4355 | # Ignore these flags. |
---|
4356 | -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \ |
---|
4357 | |-LANG:=* | -LIST:* | -LNO:* | -link) |
---|
4358 | ;; |
---|
4359 | -lkernel32) |
---|
4360 | # Ignore this library only on Windows-like systems. |
---|
4361 | case $host_os in |
---|
4362 | cygwin* | msys* ) ;; |
---|
4363 | *) |
---|
4364 | ac_exists=false |
---|
4365 | for ac_i in $ac_cv_fc_libs; do |
---|
4366 | if test x"$ac_arg" = x"$ac_i"; then |
---|
4367 | ac_exists=true |
---|
4368 | break |
---|
4369 | fi |
---|
4370 | done |
---|
4371 | |
---|
4372 | if test x"$ac_exists" = xtrue |
---|
4373 | then : |
---|
4374 | |
---|
4375 | else $as_nop |
---|
4376 | ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
---|
4377 | fi |
---|
4378 | ;; |
---|
4379 | esac |
---|
4380 | ;; |
---|
4381 | -[LRuYz]) |
---|
4382 | # These flags, when seen by themselves, take an argument. |
---|
4383 | # We remove the space between option and argument and re-iterate |
---|
4384 | # unless we find an empty arg or a new option (starting with -) |
---|
4385 | case $2 in |
---|
4386 | "" | -*);; |
---|
4387 | *) |
---|
4388 | ac_arg="$ac_arg$2" |
---|
4389 | shift; shift |
---|
4390 | set X $ac_arg "$@" |
---|
4391 | ;; |
---|
4392 | esac |
---|
4393 | ;; |
---|
4394 | -YP,*) |
---|
4395 | for ac_j in `printf "%s\n" "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do |
---|
4396 | ac_exists=false |
---|
4397 | for ac_i in $ac_cv_fc_libs; do |
---|
4398 | if test x"$ac_j" = x"$ac_i"; then |
---|
4399 | ac_exists=true |
---|
4400 | break |
---|
4401 | fi |
---|
4402 | done |
---|
4403 | |
---|
4404 | if test x"$ac_exists" = xtrue |
---|
4405 | then : |
---|
4406 | |
---|
4407 | else $as_nop |
---|
4408 | ac_arg="$ac_arg $ac_j" |
---|
4409 | ac_cv_fc_libs="$ac_cv_fc_libs $ac_j" |
---|
4410 | fi |
---|
4411 | done |
---|
4412 | ;; |
---|
4413 | -[lLR]*) |
---|
4414 | ac_exists=false |
---|
4415 | for ac_i in $ac_cv_fc_libs; do |
---|
4416 | if test x"$ac_arg" = x"$ac_i"; then |
---|
4417 | ac_exists=true |
---|
4418 | break |
---|
4419 | fi |
---|
4420 | done |
---|
4421 | |
---|
4422 | if test x"$ac_exists" = xtrue |
---|
4423 | then : |
---|
4424 | |
---|
4425 | else $as_nop |
---|
4426 | ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
---|
4427 | fi |
---|
4428 | ;; |
---|
4429 | -zallextract*| -zdefaultextract) |
---|
4430 | ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg" |
---|
4431 | ;; |
---|
4432 | -mllvm) ${2+shift};; # Defend against 'clang -mllvm -loopopt=0'. |
---|
4433 | # Ignore everything else. |
---|
4434 | esac |
---|
4435 | done |
---|
4436 | # restore positional arguments |
---|
4437 | set X $ac_save_positional; shift |
---|
4438 | |
---|
4439 | # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, |
---|
4440 | # then we insist that the "run path" must be an absolute path (i.e. it |
---|
4441 | # must begin with a "/"). |
---|
4442 | case `(uname -sr) 2>/dev/null` in |
---|
4443 | "SunOS 5"*) |
---|
4444 | ac_ld_run_path=`printf "%s\n" "$ac_fc_v_output" | |
---|
4445 | sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` |
---|
4446 | test "x$ac_ld_run_path" != x && |
---|
4447 | if test "$ac_compiler_gnu" = yes; then |
---|
4448 | for ac_link_opt in $ac_ld_run_path; do |
---|
4449 | ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt" |
---|
4450 | done |
---|
4451 | else |
---|
4452 | ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path" |
---|
4453 | fi |
---|
4454 | ;; |
---|
4455 | esac |
---|
4456 | fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" |
---|
4457 | |
---|
4458 | fi |
---|
4459 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5 |
---|
4460 | printf "%s\n" "$ac_cv_fc_libs" >&6; } |
---|
4461 | FCLIBS="$ac_cv_fc_libs" |
---|
4462 | |
---|
4463 | |
---|
4464 | ac_ext=c |
---|
4465 | ac_cpp='$CPP $CPPFLAGS' |
---|
4466 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4467 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4468 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4469 | |
---|
4470 | |
---|
4471 | ac_ext=${ac_fc_srcext-f} |
---|
4472 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
4473 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
4474 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
4475 | |
---|
4476 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran libraries" >&5 |
---|
4477 | printf %s "checking for dummy main to link with Fortran libraries... " >&6; } |
---|
4478 | if test ${ac_cv_fc_dummy_main+y} |
---|
4479 | then : |
---|
4480 | printf %s "(cached) " >&6 |
---|
4481 | else $as_nop |
---|
4482 | ac_fc_dm_save_LIBS=$LIBS |
---|
4483 | LIBS="$LIBS $FCLIBS" |
---|
4484 | ac_fortran_dm_var=FC_DUMMY_MAIN |
---|
4485 | ac_ext=c |
---|
4486 | ac_cpp='$CPP $CPPFLAGS' |
---|
4487 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4488 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4489 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4490 | |
---|
4491 | # First, try linking without a dummy main: |
---|
4492 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4493 | /* end confdefs.h. */ |
---|
4494 | |
---|
4495 | #ifdef FC_DUMMY_MAIN |
---|
4496 | #ifndef FC_DUMMY_MAIN_EQ_F77 |
---|
4497 | # ifdef __cplusplus |
---|
4498 | extern "C" |
---|
4499 | # endif |
---|
4500 | int FC_DUMMY_MAIN() { return 1; } |
---|
4501 | #endif |
---|
4502 | #endif |
---|
4503 | int |
---|
4504 | main (void) |
---|
4505 | { |
---|
4506 | |
---|
4507 | ; |
---|
4508 | return 0; |
---|
4509 | } |
---|
4510 | _ACEOF |
---|
4511 | if ac_fn_c_try_link "$LINENO" |
---|
4512 | then : |
---|
4513 | ac_cv_fortran_dummy_main=none |
---|
4514 | else $as_nop |
---|
4515 | ac_cv_fortran_dummy_main=unknown |
---|
4516 | fi |
---|
4517 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
---|
4518 | conftest$ac_exeext conftest.$ac_ext |
---|
4519 | |
---|
4520 | if test $ac_cv_fortran_dummy_main = unknown; then |
---|
4521 | for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do |
---|
4522 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4523 | /* end confdefs.h. */ |
---|
4524 | #define $ac_fortran_dm_var $ac_func |
---|
4525 | #ifdef FC_DUMMY_MAIN |
---|
4526 | #ifndef FC_DUMMY_MAIN_EQ_F77 |
---|
4527 | # ifdef __cplusplus |
---|
4528 | extern "C" |
---|
4529 | # endif |
---|
4530 | int FC_DUMMY_MAIN() { return 1; } |
---|
4531 | #endif |
---|
4532 | #endif |
---|
4533 | int |
---|
4534 | main (void) |
---|
4535 | { |
---|
4536 | |
---|
4537 | ; |
---|
4538 | return 0; |
---|
4539 | } |
---|
4540 | _ACEOF |
---|
4541 | if ac_fn_c_try_link "$LINENO" |
---|
4542 | then : |
---|
4543 | ac_cv_fortran_dummy_main=$ac_func; break |
---|
4544 | fi |
---|
4545 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
---|
4546 | conftest$ac_exeext conftest.$ac_ext |
---|
4547 | done |
---|
4548 | fi |
---|
4549 | ac_ext=${ac_fc_srcext-f} |
---|
4550 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
4551 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
4552 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
4553 | ac_cv_fc_dummy_main=$ac_cv_fortran_dummy_main |
---|
4554 | rm -rf conftest* |
---|
4555 | LIBS=$ac_fc_dm_save_LIBS |
---|
4556 | |
---|
4557 | fi |
---|
4558 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_dummy_main" >&5 |
---|
4559 | printf "%s\n" "$ac_cv_fc_dummy_main" >&6; } |
---|
4560 | FC_DUMMY_MAIN=$ac_cv_fc_dummy_main |
---|
4561 | if test "$FC_DUMMY_MAIN" != unknown |
---|
4562 | then : |
---|
4563 | if test $FC_DUMMY_MAIN != none; then |
---|
4564 | |
---|
4565 | printf "%s\n" "#define FC_DUMMY_MAIN $FC_DUMMY_MAIN" >>confdefs.h |
---|
4566 | |
---|
4567 | if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then |
---|
4568 | |
---|
4569 | printf "%s\n" "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h |
---|
4570 | |
---|
4571 | fi |
---|
4572 | fi |
---|
4573 | else $as_nop |
---|
4574 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
4575 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
4576 | as_fn_error $? "linking to Fortran libraries from C fails |
---|
4577 | See \`config.log' for more details" "$LINENO" 5; } |
---|
4578 | fi |
---|
4579 | |
---|
4580 | ac_ext=c |
---|
4581 | ac_cpp='$CPP $CPPFLAGS' |
---|
4582 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4583 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4584 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4585 | |
---|
4586 | ac_ext=${ac_fc_srcext-f} |
---|
4587 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
4588 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
4589 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
4590 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran name-mangling scheme" >&5 |
---|
4591 | printf %s "checking for Fortran name-mangling scheme... " >&6; } |
---|
4592 | if test ${ac_cv_fc_mangling+y} |
---|
4593 | then : |
---|
4594 | printf %s "(cached) " >&6 |
---|
4595 | else $as_nop |
---|
4596 | cat > conftest.$ac_ext <<_ACEOF |
---|
4597 | subroutine foobar() |
---|
4598 | return |
---|
4599 | end |
---|
4600 | subroutine foo_bar() |
---|
4601 | return |
---|
4602 | end |
---|
4603 | _ACEOF |
---|
4604 | if ac_fn_fc_try_compile "$LINENO" |
---|
4605 | then : |
---|
4606 | mv conftest.$ac_objext cfortran_test.$ac_objext |
---|
4607 | |
---|
4608 | ac_save_LIBS=$LIBS |
---|
4609 | LIBS="cfortran_test.$ac_objext $LIBS $FCLIBS" |
---|
4610 | |
---|
4611 | ac_ext=c |
---|
4612 | ac_cpp='$CPP $CPPFLAGS' |
---|
4613 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4614 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4615 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4616 | ac_success=no |
---|
4617 | for ac_foobar in foobar FOOBAR; do |
---|
4618 | for ac_underscore in "" "_"; do |
---|
4619 | ac_func="$ac_foobar$ac_underscore" |
---|
4620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4621 | /* end confdefs.h. */ |
---|
4622 | |
---|
4623 | /* Override any GCC internal prototype to avoid an error. |
---|
4624 | Use char because int might match the return type of a GCC |
---|
4625 | builtin and then its argument prototype would still apply. */ |
---|
4626 | char $ac_func (); |
---|
4627 | #ifdef FC_DUMMY_MAIN |
---|
4628 | #ifndef FC_DUMMY_MAIN_EQ_F77 |
---|
4629 | # ifdef __cplusplus |
---|
4630 | extern "C" |
---|
4631 | # endif |
---|
4632 | int FC_DUMMY_MAIN() { return 1; } |
---|
4633 | #endif |
---|
4634 | #endif |
---|
4635 | int |
---|
4636 | main (void) |
---|
4637 | { |
---|
4638 | return $ac_func (); |
---|
4639 | ; |
---|
4640 | return 0; |
---|
4641 | } |
---|
4642 | _ACEOF |
---|
4643 | if ac_fn_c_try_link "$LINENO" |
---|
4644 | then : |
---|
4645 | ac_success=yes; break 2 |
---|
4646 | fi |
---|
4647 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
---|
4648 | conftest$ac_exeext conftest.$ac_ext |
---|
4649 | done |
---|
4650 | done |
---|
4651 | ac_ext=${ac_fc_srcext-f} |
---|
4652 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
4653 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
4654 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
4655 | |
---|
4656 | if test "$ac_success" = "yes"; then |
---|
4657 | case $ac_foobar in |
---|
4658 | foobar) |
---|
4659 | ac_case=lower |
---|
4660 | ac_foo_bar=foo_bar |
---|
4661 | ;; |
---|
4662 | FOOBAR) |
---|
4663 | ac_case=upper |
---|
4664 | ac_foo_bar=FOO_BAR |
---|
4665 | ;; |
---|
4666 | esac |
---|
4667 | |
---|
4668 | ac_ext=c |
---|
4669 | ac_cpp='$CPP $CPPFLAGS' |
---|
4670 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4671 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4672 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4673 | ac_success_extra=no |
---|
4674 | for ac_extra in "" "_"; do |
---|
4675 | ac_func="$ac_foo_bar$ac_underscore$ac_extra" |
---|
4676 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4677 | /* end confdefs.h. */ |
---|
4678 | |
---|
4679 | /* Override any GCC internal prototype to avoid an error. |
---|
4680 | Use char because int might match the return type of a GCC |
---|
4681 | builtin and then its argument prototype would still apply. */ |
---|
4682 | char $ac_func (); |
---|
4683 | #ifdef FC_DUMMY_MAIN |
---|
4684 | #ifndef FC_DUMMY_MAIN_EQ_F77 |
---|
4685 | # ifdef __cplusplus |
---|
4686 | extern "C" |
---|
4687 | # endif |
---|
4688 | int FC_DUMMY_MAIN() { return 1; } |
---|
4689 | #endif |
---|
4690 | #endif |
---|
4691 | int |
---|
4692 | main (void) |
---|
4693 | { |
---|
4694 | return $ac_func (); |
---|
4695 | ; |
---|
4696 | return 0; |
---|
4697 | } |
---|
4698 | _ACEOF |
---|
4699 | if ac_fn_c_try_link "$LINENO" |
---|
4700 | then : |
---|
4701 | ac_success_extra=yes; break |
---|
4702 | fi |
---|
4703 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
---|
4704 | conftest$ac_exeext conftest.$ac_ext |
---|
4705 | done |
---|
4706 | ac_ext=${ac_fc_srcext-f} |
---|
4707 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
4708 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
4709 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
4710 | |
---|
4711 | if test "$ac_success_extra" = "yes"; then |
---|
4712 | ac_cv_fc_mangling="$ac_case case" |
---|
4713 | if test -z "$ac_underscore"; then |
---|
4714 | ac_cv_fc_mangling="$ac_cv_fc_mangling, no underscore" |
---|
4715 | else |
---|
4716 | ac_cv_fc_mangling="$ac_cv_fc_mangling, underscore" |
---|
4717 | fi |
---|
4718 | if test -z "$ac_extra"; then |
---|
4719 | ac_cv_fc_mangling="$ac_cv_fc_mangling, no extra underscore" |
---|
4720 | else |
---|
4721 | ac_cv_fc_mangling="$ac_cv_fc_mangling, extra underscore" |
---|
4722 | fi |
---|
4723 | else |
---|
4724 | ac_cv_fc_mangling="unknown" |
---|
4725 | fi |
---|
4726 | else |
---|
4727 | ac_cv_fc_mangling="unknown" |
---|
4728 | fi |
---|
4729 | |
---|
4730 | LIBS=$ac_save_LIBS |
---|
4731 | rm -rf conftest* |
---|
4732 | rm -f cfortran_test* |
---|
4733 | else $as_nop |
---|
4734 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
4735 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
4736 | as_fn_error $? "cannot compile a simple Fortran program |
---|
4737 | See \`config.log' for more details" "$LINENO" 5; } |
---|
4738 | fi |
---|
4739 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
4740 | |
---|
4741 | fi |
---|
4742 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_mangling" >&5 |
---|
4743 | printf "%s\n" "$ac_cv_fc_mangling" >&6; } |
---|
4744 | |
---|
4745 | ac_ext=c |
---|
4746 | ac_cpp='$CPP $CPPFLAGS' |
---|
4747 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4748 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4749 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4750 | |
---|
4751 | ac_ext=${ac_fc_srcext-f} |
---|
4752 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
4753 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
4754 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
4755 | case $ac_cv_fc_mangling in |
---|
4756 | "lower case, no underscore, no extra underscore") |
---|
4757 | printf "%s\n" "#define FC_FUNC(name,NAME) name" >>confdefs.h |
---|
4758 | |
---|
4759 | printf "%s\n" "#define FC_FUNC_(name,NAME) name" >>confdefs.h |
---|
4760 | ;; |
---|
4761 | "lower case, no underscore, extra underscore") |
---|
4762 | printf "%s\n" "#define FC_FUNC(name,NAME) name" >>confdefs.h |
---|
4763 | |
---|
4764 | printf "%s\n" "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h |
---|
4765 | ;; |
---|
4766 | "lower case, underscore, no extra underscore") |
---|
4767 | printf "%s\n" "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h |
---|
4768 | |
---|
4769 | printf "%s\n" "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h |
---|
4770 | ;; |
---|
4771 | "lower case, underscore, extra underscore") |
---|
4772 | printf "%s\n" "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h |
---|
4773 | |
---|
4774 | printf "%s\n" "#define FC_FUNC_(name,NAME) name ## __" >>confdefs.h |
---|
4775 | ;; |
---|
4776 | "upper case, no underscore, no extra underscore") |
---|
4777 | printf "%s\n" "#define FC_FUNC(name,NAME) NAME" >>confdefs.h |
---|
4778 | |
---|
4779 | printf "%s\n" "#define FC_FUNC_(name,NAME) NAME" >>confdefs.h |
---|
4780 | ;; |
---|
4781 | "upper case, no underscore, extra underscore") |
---|
4782 | printf "%s\n" "#define FC_FUNC(name,NAME) NAME" >>confdefs.h |
---|
4783 | |
---|
4784 | printf "%s\n" "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h |
---|
4785 | ;; |
---|
4786 | "upper case, underscore, no extra underscore") |
---|
4787 | printf "%s\n" "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h |
---|
4788 | |
---|
4789 | printf "%s\n" "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h |
---|
4790 | ;; |
---|
4791 | "upper case, underscore, extra underscore") |
---|
4792 | printf "%s\n" "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h |
---|
4793 | |
---|
4794 | printf "%s\n" "#define FC_FUNC_(name,NAME) NAME ## __" >>confdefs.h |
---|
4795 | ;; |
---|
4796 | *) |
---|
4797 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5 |
---|
4798 | printf "%s\n" "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;} |
---|
4799 | ;; |
---|
4800 | esac |
---|
4801 | |
---|
4802 | ac_ext=c |
---|
4803 | ac_cpp='$CPP $CPPFLAGS' |
---|
4804 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4805 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4806 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4807 | |
---|
4808 | |
---|
4809 | ac_header= ac_cache= |
---|
4810 | for ac_item in $ac_header_c_list |
---|
4811 | do |
---|
4812 | if test $ac_cache; then |
---|
4813 | ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" |
---|
4814 | if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then |
---|
4815 | printf "%s\n" "#define $ac_item 1" >> confdefs.h |
---|
4816 | fi |
---|
4817 | ac_header= ac_cache= |
---|
4818 | elif test $ac_header; then |
---|
4819 | ac_cache=$ac_item |
---|
4820 | else |
---|
4821 | ac_header=$ac_item |
---|
4822 | fi |
---|
4823 | done |
---|
4824 | |
---|
4825 | |
---|
4826 | |
---|
4827 | |
---|
4828 | |
---|
4829 | |
---|
4830 | |
---|
4831 | |
---|
4832 | if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes |
---|
4833 | then : |
---|
4834 | |
---|
4835 | printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h |
---|
4836 | |
---|
4837 | fi |
---|
4838 | # The cast to long int works around a bug in the HP C Compiler |
---|
4839 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
---|
4840 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
---|
4841 | # This bug is HP SR number 8606223364. |
---|
4842 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
---|
4843 | printf %s "checking size of long... " >&6; } |
---|
4844 | if test ${ac_cv_sizeof_long+y} |
---|
4845 | then : |
---|
4846 | printf %s "(cached) " >&6 |
---|
4847 | else $as_nop |
---|
4848 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default" |
---|
4849 | then : |
---|
4850 | |
---|
4851 | else $as_nop |
---|
4852 | if test "$ac_cv_type_long" = yes; then |
---|
4853 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
4854 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
4855 | as_fn_error 77 "cannot compute sizeof (long) |
---|
4856 | See \`config.log' for more details" "$LINENO" 5; } |
---|
4857 | else |
---|
4858 | ac_cv_sizeof_long=0 |
---|
4859 | fi |
---|
4860 | fi |
---|
4861 | |
---|
4862 | fi |
---|
4863 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
---|
4864 | printf "%s\n" "$ac_cv_sizeof_long" >&6; } |
---|
4865 | |
---|
4866 | |
---|
4867 | |
---|
4868 | printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h |
---|
4869 | |
---|
4870 | |
---|
4871 | |
---|
4872 | # Check whether --enable-test-internal was given. |
---|
4873 | if test ${enable_test_internal+y} |
---|
4874 | then : |
---|
4875 | enableval=$enable_test_internal; |
---|
4876 | printf "%s\n" "#define TEST_INTERNAL /**/" >>confdefs.h |
---|
4877 | |
---|
4878 | fi |
---|
4879 | |
---|
4880 | |
---|
4881 | # Check whether --enable-info was given. |
---|
4882 | if test ${enable_info+y} |
---|
4883 | then : |
---|
4884 | enableval=$enable_info; |
---|
4885 | printf "%s\n" "#define INFO /**/" >>confdefs.h |
---|
4886 | |
---|
4887 | fi |
---|
4888 | |
---|
4889 | |
---|
4890 | # Check whether --enable-fort-real was given. |
---|
4891 | if test ${enable_fort_real+y} |
---|
4892 | then : |
---|
4893 | enableval=$enable_fort_real; |
---|
4894 | printf "%s\n" "#define CONFIG_FORT_REAL $enable_fort_real" >>confdefs.h |
---|
4895 | |
---|
4896 | fi |
---|
4897 | |
---|
4898 | # Check whether --enable-fort-double was given. |
---|
4899 | if test ${enable_fort_double+y} |
---|
4900 | then : |
---|
4901 | enableval=$enable_fort_double; |
---|
4902 | printf "%s\n" "#define CONFIG_FORT_DOUBLE $enable_fort_double" >>confdefs.h |
---|
4903 | |
---|
4904 | fi |
---|
4905 | |
---|
4906 | # Check whether --enable-type-checking was given. |
---|
4907 | if test ${enable_type_checking+y} |
---|
4908 | then : |
---|
4909 | enableval=$enable_type_checking; |
---|
4910 | printf "%s\n" "#define TYPE_CHECKING /**/" >>confdefs.h |
---|
4911 | |
---|
4912 | fi |
---|
4913 | |
---|
4914 | |
---|
4915 | |
---|
4916 | # Determine flag for fortran module include path |
---|
4917 | # taken from the MCT configure |
---|
4918 | |
---|
4919 | |
---|
4920 | ac_ext=${ac_fc_srcext-f} |
---|
4921 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
4922 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
4923 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
4924 | |
---|
4925 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to get the version output from $FC" >&5 |
---|
4926 | printf %s "checking how to get the version output from $FC... " >&6; } |
---|
4927 | if test ${ac_cv_prog_fc_version+y} |
---|
4928 | then : |
---|
4929 | printf %s "(cached) " >&6 |
---|
4930 | else $as_nop |
---|
4931 | |
---|
4932 | cat > conftest.$ac_ext <<_ACEOF |
---|
4933 | program main |
---|
4934 | |
---|
4935 | end |
---|
4936 | _ACEOF |
---|
4937 | if ac_fn_fc_try_compile "$LINENO" |
---|
4938 | then : |
---|
4939 | ac_cv_prog_fc_version= |
---|
4940 | # Try some options frequently used verbose output |
---|
4941 | for ac_version in -V -version --version +version -qversion; do |
---|
4942 | ac_ext=${ac_fc_srcext-f} |
---|
4943 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
4944 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
4945 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
4946 | |
---|
4947 | cat > conftest.$ac_ext <<_ACEOF |
---|
4948 | program main |
---|
4949 | |
---|
4950 | end |
---|
4951 | _ACEOF |
---|
4952 | |
---|
4953 | # Compile and link our simple test program by passing a flag (argument |
---|
4954 | # 1 to this macro) to the Fortran 90 compiler in order to get "version" output |
---|
4955 | ac_save_FCFLAGS=$FCFLAGS |
---|
4956 | FCFLAGS="$FCFLAGS $ac_version" |
---|
4957 | (eval echo $as_me:4957: \"$ac_link\") >&5 |
---|
4958 | ac_fc_version_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
---|
4959 | echo "$ac_fc_version_output" >&5 |
---|
4960 | FCFLAGS=$ac_save_FCFLAGS |
---|
4961 | |
---|
4962 | rm -f conftest.* |
---|
4963 | ac_ext=${ac_fc_srcext-f} |
---|
4964 | ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' |
---|
4965 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' |
---|
4966 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu |
---|
4967 | |
---|
4968 | |
---|
4969 | # look for "copyright" constructs in the output |
---|
4970 | for ac_arg in $ac_fc_version_output; do |
---|
4971 | case $ac_arg in |
---|
4972 | COPYRIGHT | copyright | Copyright | '(c)' | '(C)' | Compiler | Compilers | Version | Version:) |
---|
4973 | ac_cv_prog_fc_version=$ac_version |
---|
4974 | break 2 ;; |
---|
4975 | esac |
---|
4976 | done |
---|
4977 | done |
---|
4978 | if test -z "$ac_cv_prog_fc_version"; then |
---|
4979 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain version information from $FC" >&5 |
---|
4980 | printf "%s\n" "$as_me: WARNING: cannot determine how to obtain version information from $FC" >&2;} |
---|
4981 | fi |
---|
4982 | else $as_nop |
---|
4983 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5 |
---|
4984 | printf "%s\n" "$as_me: WARNING: compilation failed" >&2;} |
---|
4985 | fi |
---|
4986 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
4987 | |
---|
4988 | fi |
---|
4989 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_version" >&5 |
---|
4990 | printf "%s\n" "$ac_cv_prog_fc_version" >&6; } |
---|
4991 | ac_ext=c |
---|
4992 | ac_cpp='$CPP $CPPFLAGS' |
---|
4993 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4994 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4995 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4996 | |
---|
4997 | |
---|
4998 | |
---|
4999 | if echo $ac_fc_version_output | grep -i absoft >/dev/null 2>&1; then |
---|
5000 | echo "Fortran Compiler is Absoft" |
---|
5001 | if test -z "$INCLUDEFLAG"; then |
---|
5002 | INCLUDEFLAG="-p" |
---|
5003 | fi |
---|
5004 | elif echo $ac_fc_version_output | grep -i workshop >/dev/null 2>&1; then |
---|
5005 | echo "Fortran Compiler is Workshop" |
---|
5006 | if test -z "$INCLUDEFLAG"; then |
---|
5007 | INCLUDEFLAG="-M" |
---|
5008 | fi |
---|
5009 | elif echo $ac_fc_version_output | grep -i pgf >/dev/null 2>&1; then |
---|
5010 | echo "Fortran Compiler is Portland Group" |
---|
5011 | LIBS="$LIBS -pgf90libs" |
---|
5012 | elif echo $ac_fc_version_output | grep -i nag >/dev/null 2>&1; then |
---|
5013 | echo "Fortran Compiler is NAG" |
---|
5014 | CPRDEF="NAG" |
---|
5015 | if test -z "$FCFLAGS"; then |
---|
5016 | FCFLAGS="-mismatch" |
---|
5017 | fi |
---|
5018 | fi |
---|
5019 | |
---|
5020 | # Test to see if fortran compiler supports the flag |
---|
5021 | # -fallow-argument-mismatch flag introduced in gfortran 10. |
---|
5022 | # |
---|
5023 | # Also allow support for NAG compiler using the -mismatch_all flag. |
---|
5024 | # |
---|
5025 | # See https://github.com/Unidata/netcdf-fortran/issues/212 |
---|
5026 | # See https://github.com/Unidata/netcdf-fortran/issues/218 |
---|
5027 | ac_save_FCFLAGS="$FCFLAGS" |
---|
5028 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports allow-mismatch flag" >&5 |
---|
5029 | printf %s "checking if Fortran compiler supports allow-mismatch flag... " >&6; } |
---|
5030 | cat <<EOF >conftest.f90 |
---|
5031 | Program test |
---|
5032 | USE ISO_C_BINDING, ONLY: C_PTRDIFF_T |
---|
5033 | End Program |
---|
5034 | EOF |
---|
5035 | doit='$FC -c ${FCFLAGS} ${FCFLAGS_f90} -fallow-argument-mismatch conftest.f90' |
---|
5036 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 |
---|
5037 | (eval $doit) 2>&5 |
---|
5038 | ac_status=$? |
---|
5039 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
5040 | test $ac_status = 0; }; then |
---|
5041 | nf_allow_mismatch=yes |
---|
5042 | FCFLAGS="${FCFLAGS} -fallow-argument-mismatch" |
---|
5043 | else |
---|
5044 | nf_allow_mismatch=no |
---|
5045 | fi |
---|
5046 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nf_allow_mismatch" >&5 |
---|
5047 | printf "%s\n" "$nf_allow_mismatch" >&6; } |
---|
5048 | # End testing of gfortan allow-mismatch flags. |
---|
5049 | |
---|
5050 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Fortran compiler supports mismatch_all flag" >&5 |
---|
5051 | printf %s "checking if Fortran compiler supports mismatch_all flag... " >&6; } |
---|
5052 | cat <<EOF >conftest.f90 |
---|
5053 | Program test |
---|
5054 | USE ISO_C_BINDING, ONLY: C_PTRDIFF_T |
---|
5055 | End Program |
---|
5056 | EOF |
---|
5057 | doit='$FC -c ${FCFLAGS} ${FCFLAGS_f90} -mismatch_all conftest.f90' |
---|
5058 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$doit\""; } >&5 |
---|
5059 | (eval $doit) 2>&5 |
---|
5060 | ac_status=$? |
---|
5061 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
5062 | test $ac_status = 0; }; then |
---|
5063 | nf_mismatch_all=yes |
---|
5064 | FCFLAGS="${FCFLAGS} -mismatch_all" |
---|
5065 | else |
---|
5066 | nf_mismatch_all=no |
---|
5067 | fi |
---|
5068 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nf_mismatch_all" >&5 |
---|
5069 | printf "%s\n" "$nf_mismatch_all" >&6; } |
---|
5070 | |
---|
5071 | #end testing of NAG mismatch_all flag. |
---|
5072 | |
---|
5073 | ## |
---|
5074 | # End mismatch checks |
---|
5075 | ## |
---|
5076 | |
---|
5077 | # INCLUDE FLAG IF NOT ALREADY SET IS MOST LIKELY -I |
---|
5078 | if test -z "$INCLUDEFLAG"; then |
---|
5079 | INCLUDEFLAG="-I" |
---|
5080 | fi |
---|
5081 | |
---|
5082 | |
---|
5083 | ac_config_files="$ac_config_files Makefile.conf" |
---|
5084 | |
---|
5085 | cat >confcache <<\_ACEOF |
---|
5086 | # This file is a shell script that caches the results of configure |
---|
5087 | # tests run on this system so they can be shared between configure |
---|
5088 | # scripts and configure runs, see configure's option --config-cache. |
---|
5089 | # It is not useful on other systems. If it contains results you don't |
---|
5090 | # want to keep, you may remove or edit it. |
---|
5091 | # |
---|
5092 | # config.status only pays attention to the cache file if you give it |
---|
5093 | # the --recheck option to rerun configure. |
---|
5094 | # |
---|
5095 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
5096 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
5097 | # following values. |
---|
5098 | |
---|
5099 | _ACEOF |
---|
5100 | |
---|
5101 | # The following way of writing the cache mishandles newlines in values, |
---|
5102 | # but we know of no workaround that is simple, portable, and efficient. |
---|
5103 | # So, we kill variables containing newlines. |
---|
5104 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
5105 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
5106 | ( |
---|
5107 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
---|
5108 | eval ac_val=\$$ac_var |
---|
5109 | case $ac_val in #( |
---|
5110 | *${as_nl}*) |
---|
5111 | case $ac_var in #( |
---|
5112 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
5113 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
5114 | esac |
---|
5115 | case $ac_var in #( |
---|
5116 | _ | IFS | as_nl) ;; #( |
---|
5117 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
5118 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
5119 | esac ;; |
---|
5120 | esac |
---|
5121 | done |
---|
5122 | |
---|
5123 | (set) 2>&1 | |
---|
5124 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
---|
5125 | *${as_nl}ac_space=\ *) |
---|
5126 | # `set' does not quote correctly, so add quotes: double-quote |
---|
5127 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
---|
5128 | sed -n \ |
---|
5129 | "s/'/'\\\\''/g; |
---|
5130 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
5131 | ;; #( |
---|
5132 | *) |
---|
5133 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
5134 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
5135 | ;; |
---|
5136 | esac | |
---|
5137 | sort |
---|
5138 | ) | |
---|
5139 | sed ' |
---|
5140 | /^ac_cv_env_/b end |
---|
5141 | t clear |
---|
5142 | :clear |
---|
5143 | s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
---|
5144 | t end |
---|
5145 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
5146 | :end' >>confcache |
---|
5147 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
---|
5148 | if test -w "$cache_file"; then |
---|
5149 | if test "x$cache_file" != "x/dev/null"; then |
---|
5150 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
---|
5151 | printf "%s\n" "$as_me: updating cache $cache_file" >&6;} |
---|
5152 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
---|
5153 | cat confcache >"$cache_file" |
---|
5154 | else |
---|
5155 | case $cache_file in #( |
---|
5156 | */* | ?:*) |
---|
5157 | mv -f confcache "$cache_file"$$ && |
---|
5158 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
---|
5159 | *) |
---|
5160 | mv -f confcache "$cache_file" ;; |
---|
5161 | esac |
---|
5162 | fi |
---|
5163 | fi |
---|
5164 | else |
---|
5165 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
---|
5166 | printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} |
---|
5167 | fi |
---|
5168 | fi |
---|
5169 | rm -f confcache |
---|
5170 | |
---|
5171 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
5172 | # Let make expand exec_prefix. |
---|
5173 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
5174 | |
---|
5175 | DEFS=-DHAVE_CONFIG_H |
---|
5176 | |
---|
5177 | ac_libobjs= |
---|
5178 | ac_ltlibobjs= |
---|
5179 | U= |
---|
5180 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
5181 | # 1. Remove the extension, and $U if already installed. |
---|
5182 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
---|
5183 | ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` |
---|
5184 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
---|
5185 | # will be set to the directory where LIBOBJS objects are built. |
---|
5186 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
---|
5187 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
---|
5188 | done |
---|
5189 | LIBOBJS=$ac_libobjs |
---|
5190 | |
---|
5191 | LTLIBOBJS=$ac_ltlibobjs |
---|
5192 | |
---|
5193 | |
---|
5194 | |
---|
5195 | : "${CONFIG_STATUS=./config.status}" |
---|
5196 | ac_write_fail=0 |
---|
5197 | ac_clean_files_save=$ac_clean_files |
---|
5198 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
5199 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
---|
5200 | printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
5201 | as_write_fail=0 |
---|
5202 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
---|
5203 | #! $SHELL |
---|
5204 | # Generated by $as_me. |
---|
5205 | # Run this file to recreate the current configuration. |
---|
5206 | # Compiler output produced by configure, useful for debugging |
---|
5207 | # configure, is in config.log if it exists. |
---|
5208 | |
---|
5209 | debug=false |
---|
5210 | ac_cs_recheck=false |
---|
5211 | ac_cs_silent=false |
---|
5212 | |
---|
5213 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
5214 | export SHELL |
---|
5215 | _ASEOF |
---|
5216 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
---|
5217 | ## -------------------- ## |
---|
5218 | ## M4sh Initialization. ## |
---|
5219 | ## -------------------- ## |
---|
5220 | |
---|
5221 | # Be more Bourne compatible |
---|
5222 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
5223 | as_nop=: |
---|
5224 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
---|
5225 | then : |
---|
5226 | emulate sh |
---|
5227 | NULLCMD=: |
---|
5228 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
5229 | # is contrary to our usage. Disable this feature. |
---|
5230 | alias -g '${1+"$@"}'='"$@"' |
---|
5231 | setopt NO_GLOB_SUBST |
---|
5232 | else $as_nop |
---|
5233 | case `(set -o) 2>/dev/null` in #( |
---|
5234 | *posix*) : |
---|
5235 | set -o posix ;; #( |
---|
5236 | *) : |
---|
5237 | ;; |
---|
5238 | esac |
---|
5239 | fi |
---|
5240 | |
---|
5241 | |
---|
5242 | |
---|
5243 | # Reset variables that may have inherited troublesome values from |
---|
5244 | # the environment. |
---|
5245 | |
---|
5246 | # IFS needs to be set, to space, tab, and newline, in precisely that order. |
---|
5247 | # (If _AS_PATH_WALK were called with IFS unset, it would have the |
---|
5248 | # side effect of setting IFS to empty, thus disabling word splitting.) |
---|
5249 | # Quoting is to prevent editors from complaining about space-tab. |
---|
5250 | as_nl=' |
---|
5251 | ' |
---|
5252 | export as_nl |
---|
5253 | IFS=" "" $as_nl" |
---|
5254 | |
---|
5255 | PS1='$ ' |
---|
5256 | PS2='> ' |
---|
5257 | PS4='+ ' |
---|
5258 | |
---|
5259 | # Ensure predictable behavior from utilities with locale-dependent output. |
---|
5260 | LC_ALL=C |
---|
5261 | export LC_ALL |
---|
5262 | LANGUAGE=C |
---|
5263 | export LANGUAGE |
---|
5264 | |
---|
5265 | # We cannot yet rely on "unset" to work, but we need these variables |
---|
5266 | # to be unset--not just set to an empty or harmless value--now, to |
---|
5267 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
---|
5268 | # also avoids known problems related to "unset" and subshell syntax |
---|
5269 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
---|
5270 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
---|
5271 | do eval test \${$as_var+y} \ |
---|
5272 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
5273 | done |
---|
5274 | |
---|
5275 | # Ensure that fds 0, 1, and 2 are open. |
---|
5276 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
---|
5277 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
---|
5278 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
---|
5279 | |
---|
5280 | # The user is always right. |
---|
5281 | if ${PATH_SEPARATOR+false} :; then |
---|
5282 | PATH_SEPARATOR=: |
---|
5283 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
5284 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
5285 | PATH_SEPARATOR=';' |
---|
5286 | } |
---|
5287 | fi |
---|
5288 | |
---|
5289 | |
---|
5290 | # Find who we are. Look in the path if we contain no directory separator. |
---|
5291 | as_myself= |
---|
5292 | case $0 in #(( |
---|
5293 | *[\\/]* ) as_myself=$0 ;; |
---|
5294 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5295 | for as_dir in $PATH |
---|
5296 | do |
---|
5297 | IFS=$as_save_IFS |
---|
5298 | case $as_dir in #((( |
---|
5299 | '') as_dir=./ ;; |
---|
5300 | */) ;; |
---|
5301 | *) as_dir=$as_dir/ ;; |
---|
5302 | esac |
---|
5303 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
---|
5304 | done |
---|
5305 | IFS=$as_save_IFS |
---|
5306 | |
---|
5307 | ;; |
---|
5308 | esac |
---|
5309 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
5310 | # in which case we are not to be found in the path. |
---|
5311 | if test "x$as_myself" = x; then |
---|
5312 | as_myself=$0 |
---|
5313 | fi |
---|
5314 | if test ! -f "$as_myself"; then |
---|
5315 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
5316 | exit 1 |
---|
5317 | fi |
---|
5318 | |
---|
5319 | |
---|
5320 | |
---|
5321 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
5322 | # ---------------------------------------- |
---|
5323 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
5324 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
5325 | # script with STATUS, using 1 if that was 0. |
---|
5326 | as_fn_error () |
---|
5327 | { |
---|
5328 | as_status=$1; test $as_status -eq 0 && as_status=1 |
---|
5329 | if test "$4"; then |
---|
5330 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
5331 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
---|
5332 | fi |
---|
5333 | printf "%s\n" "$as_me: error: $2" >&2 |
---|
5334 | as_fn_exit $as_status |
---|
5335 | } # as_fn_error |
---|
5336 | |
---|
5337 | |
---|
5338 | |
---|
5339 | # as_fn_set_status STATUS |
---|
5340 | # ----------------------- |
---|
5341 | # Set $? to STATUS, without forking. |
---|
5342 | as_fn_set_status () |
---|
5343 | { |
---|
5344 | return $1 |
---|
5345 | } # as_fn_set_status |
---|
5346 | |
---|
5347 | # as_fn_exit STATUS |
---|
5348 | # ----------------- |
---|
5349 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
5350 | as_fn_exit () |
---|
5351 | { |
---|
5352 | set +e |
---|
5353 | as_fn_set_status $1 |
---|
5354 | exit $1 |
---|
5355 | } # as_fn_exit |
---|
5356 | |
---|
5357 | # as_fn_unset VAR |
---|
5358 | # --------------- |
---|
5359 | # Portably unset VAR. |
---|
5360 | as_fn_unset () |
---|
5361 | { |
---|
5362 | { eval $1=; unset $1;} |
---|
5363 | } |
---|
5364 | as_unset=as_fn_unset |
---|
5365 | |
---|
5366 | # as_fn_append VAR VALUE |
---|
5367 | # ---------------------- |
---|
5368 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
5369 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
5370 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
5371 | # implementations. |
---|
5372 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
---|
5373 | then : |
---|
5374 | eval 'as_fn_append () |
---|
5375 | { |
---|
5376 | eval $1+=\$2 |
---|
5377 | }' |
---|
5378 | else $as_nop |
---|
5379 | as_fn_append () |
---|
5380 | { |
---|
5381 | eval $1=\$$1\$2 |
---|
5382 | } |
---|
5383 | fi # as_fn_append |
---|
5384 | |
---|
5385 | # as_fn_arith ARG... |
---|
5386 | # ------------------ |
---|
5387 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
5388 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
5389 | # must be portable across $(()) and expr. |
---|
5390 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
---|
5391 | then : |
---|
5392 | eval 'as_fn_arith () |
---|
5393 | { |
---|
5394 | as_val=$(( $* )) |
---|
5395 | }' |
---|
5396 | else $as_nop |
---|
5397 | as_fn_arith () |
---|
5398 | { |
---|
5399 | as_val=`expr "$@" || test $? -eq 1` |
---|
5400 | } |
---|
5401 | fi # as_fn_arith |
---|
5402 | |
---|
5403 | |
---|
5404 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
5405 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
5406 | as_expr=expr |
---|
5407 | else |
---|
5408 | as_expr=false |
---|
5409 | fi |
---|
5410 | |
---|
5411 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
5412 | as_basename=basename |
---|
5413 | else |
---|
5414 | as_basename=false |
---|
5415 | fi |
---|
5416 | |
---|
5417 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
5418 | as_dirname=dirname |
---|
5419 | else |
---|
5420 | as_dirname=false |
---|
5421 | fi |
---|
5422 | |
---|
5423 | as_me=`$as_basename -- "$0" || |
---|
5424 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
5425 | X"$0" : 'X\(//\)$' \| \ |
---|
5426 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
5427 | printf "%s\n" X/"$0" | |
---|
5428 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
5429 | s//\1/ |
---|
5430 | q |
---|
5431 | } |
---|
5432 | /^X\/\(\/\/\)$/{ |
---|
5433 | s//\1/ |
---|
5434 | q |
---|
5435 | } |
---|
5436 | /^X\/\(\/\).*/{ |
---|
5437 | s//\1/ |
---|
5438 | q |
---|
5439 | } |
---|
5440 | s/.*/./; q'` |
---|
5441 | |
---|
5442 | # Avoid depending upon Character Ranges. |
---|
5443 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
5444 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
5445 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
5446 | as_cr_digits='0123456789' |
---|
5447 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
5448 | |
---|
5449 | |
---|
5450 | # Determine whether it's possible to make 'echo' print without a newline. |
---|
5451 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
---|
5452 | # for compatibility with existing Makefiles. |
---|
5453 | ECHO_C= ECHO_N= ECHO_T= |
---|
5454 | case `echo -n x` in #((((( |
---|
5455 | -n*) |
---|
5456 | case `echo 'xy\c'` in |
---|
5457 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
5458 | xy) ECHO_C='\c';; |
---|
5459 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
5460 | ECHO_T=' ';; |
---|
5461 | esac;; |
---|
5462 | *) |
---|
5463 | ECHO_N='-n';; |
---|
5464 | esac |
---|
5465 | |
---|
5466 | # For backward compatibility with old third-party macros, we provide |
---|
5467 | # the shell variables $as_echo and $as_echo_n. New code should use |
---|
5468 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
---|
5469 | as_echo='printf %s\n' |
---|
5470 | as_echo_n='printf %s' |
---|
5471 | |
---|
5472 | rm -f conf$$ conf$$.exe conf$$.file |
---|
5473 | if test -d conf$$.dir; then |
---|
5474 | rm -f conf$$.dir/conf$$.file |
---|
5475 | else |
---|
5476 | rm -f conf$$.dir |
---|
5477 | mkdir conf$$.dir 2>/dev/null |
---|
5478 | fi |
---|
5479 | if (echo >conf$$.file) 2>/dev/null; then |
---|
5480 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
5481 | as_ln_s='ln -s' |
---|
5482 | # ... but there are two gotchas: |
---|
5483 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
5484 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
5485 | # In both cases, we have to default to `cp -pR'. |
---|
5486 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
5487 | as_ln_s='cp -pR' |
---|
5488 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
5489 | as_ln_s=ln |
---|
5490 | else |
---|
5491 | as_ln_s='cp -pR' |
---|
5492 | fi |
---|
5493 | else |
---|
5494 | as_ln_s='cp -pR' |
---|
5495 | fi |
---|
5496 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
5497 | rmdir conf$$.dir 2>/dev/null |
---|
5498 | |
---|
5499 | |
---|
5500 | # as_fn_mkdir_p |
---|
5501 | # ------------- |
---|
5502 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
5503 | as_fn_mkdir_p () |
---|
5504 | { |
---|
5505 | |
---|
5506 | case $as_dir in #( |
---|
5507 | -*) as_dir=./$as_dir;; |
---|
5508 | esac |
---|
5509 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
5510 | as_dirs= |
---|
5511 | while :; do |
---|
5512 | case $as_dir in #( |
---|
5513 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
5514 | *) as_qdir=$as_dir;; |
---|
5515 | esac |
---|
5516 | as_dirs="'$as_qdir' $as_dirs" |
---|
5517 | as_dir=`$as_dirname -- "$as_dir" || |
---|
5518 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
5519 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
5520 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
5521 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
5522 | printf "%s\n" X"$as_dir" | |
---|
5523 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
5524 | s//\1/ |
---|
5525 | q |
---|
5526 | } |
---|
5527 | /^X\(\/\/\)[^/].*/{ |
---|
5528 | s//\1/ |
---|
5529 | q |
---|
5530 | } |
---|
5531 | /^X\(\/\/\)$/{ |
---|
5532 | s//\1/ |
---|
5533 | q |
---|
5534 | } |
---|
5535 | /^X\(\/\).*/{ |
---|
5536 | s//\1/ |
---|
5537 | q |
---|
5538 | } |
---|
5539 | s/.*/./; q'` |
---|
5540 | test -d "$as_dir" && break |
---|
5541 | done |
---|
5542 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
5543 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
5544 | |
---|
5545 | |
---|
5546 | } # as_fn_mkdir_p |
---|
5547 | if mkdir -p . 2>/dev/null; then |
---|
5548 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
5549 | else |
---|
5550 | test -d ./-p && rmdir ./-p |
---|
5551 | as_mkdir_p=false |
---|
5552 | fi |
---|
5553 | |
---|
5554 | |
---|
5555 | # as_fn_executable_p FILE |
---|
5556 | # ----------------------- |
---|
5557 | # Test if FILE is an executable regular file. |
---|
5558 | as_fn_executable_p () |
---|
5559 | { |
---|
5560 | test -f "$1" && test -x "$1" |
---|
5561 | } # as_fn_executable_p |
---|
5562 | as_test_x='test -x' |
---|
5563 | as_executable_p=as_fn_executable_p |
---|
5564 | |
---|
5565 | # Sed expression to map a string onto a valid CPP name. |
---|
5566 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
5567 | |
---|
5568 | # Sed expression to map a string onto a valid variable name. |
---|
5569 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
5570 | |
---|
5571 | |
---|
5572 | exec 6>&1 |
---|
5573 | ## ----------------------------------- ## |
---|
5574 | ## Main body of $CONFIG_STATUS script. ## |
---|
5575 | ## ----------------------------------- ## |
---|
5576 | _ASEOF |
---|
5577 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
---|
5578 | |
---|
5579 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
5580 | # Save the log message, to keep $0 and so on meaningful, and to |
---|
5581 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
5582 | # values after options handling. |
---|
5583 | ac_log=" |
---|
5584 | This file was extended by $as_me, which was |
---|
5585 | generated by GNU Autoconf 2.70. Invocation command line was |
---|
5586 | |
---|
5587 | CONFIG_FILES = $CONFIG_FILES |
---|
5588 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
5589 | CONFIG_LINKS = $CONFIG_LINKS |
---|
5590 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
5591 | $ $0 $@ |
---|
5592 | |
---|
5593 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
5594 | " |
---|
5595 | |
---|
5596 | _ACEOF |
---|
5597 | |
---|
5598 | case $ac_config_files in *" |
---|
5599 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
---|
5600 | esac |
---|
5601 | |
---|
5602 | case $ac_config_headers in *" |
---|
5603 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
---|
5604 | esac |
---|
5605 | |
---|
5606 | |
---|
5607 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
5608 | # Files that config.status was made for. |
---|
5609 | config_files="$ac_config_files" |
---|
5610 | config_headers="$ac_config_headers" |
---|
5611 | |
---|
5612 | _ACEOF |
---|
5613 | |
---|
5614 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
5615 | ac_cs_usage="\ |
---|
5616 | \`$as_me' instantiates files and other configuration actions |
---|
5617 | from templates according to the current configuration. Unless the files |
---|
5618 | and actions are specified as TAGs, all are instantiated by default. |
---|
5619 | |
---|
5620 | Usage: $0 [OPTION]... [TAG]... |
---|
5621 | |
---|
5622 | -h, --help print this help, then exit |
---|
5623 | -V, --version print version number and configuration settings, then exit |
---|
5624 | --config print configuration, then exit |
---|
5625 | -q, --quiet, --silent |
---|
5626 | do not print progress messages |
---|
5627 | -d, --debug don't remove temporary files |
---|
5628 | --recheck update $as_me by reconfiguring in the same conditions |
---|
5629 | --file=FILE[:TEMPLATE] |
---|
5630 | instantiate the configuration file FILE |
---|
5631 | --header=FILE[:TEMPLATE] |
---|
5632 | instantiate the configuration header FILE |
---|
5633 | |
---|
5634 | Configuration files: |
---|
5635 | $config_files |
---|
5636 | |
---|
5637 | Configuration headers: |
---|
5638 | $config_headers |
---|
5639 | |
---|
5640 | Report bugs to the package provider." |
---|
5641 | |
---|
5642 | _ACEOF |
---|
5643 | ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` |
---|
5644 | ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` |
---|
5645 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
5646 | ac_cs_config='$ac_cs_config_escaped' |
---|
5647 | ac_cs_version="\\ |
---|
5648 | config.status |
---|
5649 | configured by $0, generated by GNU Autoconf 2.70, |
---|
5650 | with options \\"\$ac_cs_config\\" |
---|
5651 | |
---|
5652 | Copyright (C) 2020 Free Software Foundation, Inc. |
---|
5653 | This config.status script is free software; the Free Software Foundation |
---|
5654 | gives unlimited permission to copy, distribute and modify it." |
---|
5655 | |
---|
5656 | ac_pwd='$ac_pwd' |
---|
5657 | srcdir='$srcdir' |
---|
5658 | test -n "\$AWK" || AWK=awk |
---|
5659 | _ACEOF |
---|
5660 | |
---|
5661 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
5662 | # The default lists apply if the user does not specify any file. |
---|
5663 | ac_need_defaults=: |
---|
5664 | while test $# != 0 |
---|
5665 | do |
---|
5666 | case $1 in |
---|
5667 | --*=?*) |
---|
5668 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
5669 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
---|
5670 | ac_shift=: |
---|
5671 | ;; |
---|
5672 | --*=) |
---|
5673 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
5674 | ac_optarg= |
---|
5675 | ac_shift=: |
---|
5676 | ;; |
---|
5677 | *) |
---|
5678 | ac_option=$1 |
---|
5679 | ac_optarg=$2 |
---|
5680 | ac_shift=shift |
---|
5681 | ;; |
---|
5682 | esac |
---|
5683 | |
---|
5684 | case $ac_option in |
---|
5685 | # Handling of the options. |
---|
5686 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
5687 | ac_cs_recheck=: ;; |
---|
5688 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
---|
5689 | printf "%s\n" "$ac_cs_version"; exit ;; |
---|
5690 | --config | --confi | --conf | --con | --co | --c ) |
---|
5691 | printf "%s\n" "$ac_cs_config"; exit ;; |
---|
5692 | --debug | --debu | --deb | --de | --d | -d ) |
---|
5693 | debug=: ;; |
---|
5694 | --file | --fil | --fi | --f ) |
---|
5695 | $ac_shift |
---|
5696 | case $ac_optarg in |
---|
5697 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
5698 | '') as_fn_error $? "missing file argument" ;; |
---|
5699 | esac |
---|
5700 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
---|
5701 | ac_need_defaults=false;; |
---|
5702 | --header | --heade | --head | --hea ) |
---|
5703 | $ac_shift |
---|
5704 | case $ac_optarg in |
---|
5705 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
5706 | esac |
---|
5707 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
---|
5708 | ac_need_defaults=false;; |
---|
5709 | --he | --h) |
---|
5710 | # Conflict between --help and --header |
---|
5711 | as_fn_error $? "ambiguous option: \`$1' |
---|
5712 | Try \`$0 --help' for more information.";; |
---|
5713 | --help | --hel | -h ) |
---|
5714 | printf "%s\n" "$ac_cs_usage"; exit ;; |
---|
5715 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
5716 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
5717 | ac_cs_silent=: ;; |
---|
5718 | |
---|
5719 | # This is an error. |
---|
5720 | -*) as_fn_error $? "unrecognized option: \`$1' |
---|
5721 | Try \`$0 --help' for more information." ;; |
---|
5722 | |
---|
5723 | *) as_fn_append ac_config_targets " $1" |
---|
5724 | ac_need_defaults=false ;; |
---|
5725 | |
---|
5726 | esac |
---|
5727 | shift |
---|
5728 | done |
---|
5729 | |
---|
5730 | ac_configure_extra_args= |
---|
5731 | |
---|
5732 | if $ac_cs_silent; then |
---|
5733 | exec 6>/dev/null |
---|
5734 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
5735 | fi |
---|
5736 | |
---|
5737 | _ACEOF |
---|
5738 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
5739 | if \$ac_cs_recheck; then |
---|
5740 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
5741 | shift |
---|
5742 | \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 |
---|
5743 | CONFIG_SHELL='$SHELL' |
---|
5744 | export CONFIG_SHELL |
---|
5745 | exec "\$@" |
---|
5746 | fi |
---|
5747 | |
---|
5748 | _ACEOF |
---|
5749 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
5750 | exec 5>>config.log |
---|
5751 | { |
---|
5752 | echo |
---|
5753 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
5754 | ## Running $as_me. ## |
---|
5755 | _ASBOX |
---|
5756 | printf "%s\n" "$ac_log" |
---|
5757 | } >&5 |
---|
5758 | |
---|
5759 | _ACEOF |
---|
5760 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
5761 | _ACEOF |
---|
5762 | |
---|
5763 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
5764 | |
---|
5765 | # Handling of arguments. |
---|
5766 | for ac_config_target in $ac_config_targets |
---|
5767 | do |
---|
5768 | case $ac_config_target in |
---|
5769 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
5770 | "Makefile.conf") CONFIG_FILES="$CONFIG_FILES Makefile.conf" ;; |
---|
5771 | |
---|
5772 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
---|
5773 | esac |
---|
5774 | done |
---|
5775 | |
---|
5776 | |
---|
5777 | # If the user did not use the arguments to specify the items to instantiate, |
---|
5778 | # then the envvar interface is used. Set only those that are not. |
---|
5779 | # We use the long form for the default assignment because of an extremely |
---|
5780 | # bizarre bug on SunOS 4.1.3. |
---|
5781 | if $ac_need_defaults; then |
---|
5782 | test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files |
---|
5783 | test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers |
---|
5784 | fi |
---|
5785 | |
---|
5786 | # Have a temporary directory for convenience. Make it in the build tree |
---|
5787 | # simply because there is no reason against having it here, and in addition, |
---|
5788 | # creating and moving files from /tmp can sometimes cause problems. |
---|
5789 | # Hook for its removal unless debugging. |
---|
5790 | # Note that there is a small window in which the directory will not be cleaned: |
---|
5791 | # after its creation but before its name has been assigned to `$tmp'. |
---|
5792 | $debug || |
---|
5793 | { |
---|
5794 | tmp= ac_tmp= |
---|
5795 | trap 'exit_status=$? |
---|
5796 | : "${ac_tmp:=$tmp}" |
---|
5797 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
---|
5798 | ' 0 |
---|
5799 | trap 'as_fn_exit 1' 1 2 13 15 |
---|
5800 | } |
---|
5801 | # Create a (secure) tmp directory for tmp files. |
---|
5802 | |
---|
5803 | { |
---|
5804 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
---|
5805 | test -d "$tmp" |
---|
5806 | } || |
---|
5807 | { |
---|
5808 | tmp=./conf$$-$RANDOM |
---|
5809 | (umask 077 && mkdir "$tmp") |
---|
5810 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
---|
5811 | ac_tmp=$tmp |
---|
5812 | |
---|
5813 | # Set up the scripts for CONFIG_FILES section. |
---|
5814 | # No need to generate them if there are no CONFIG_FILES. |
---|
5815 | # This happens for instance with `./config.status config.h'. |
---|
5816 | if test -n "$CONFIG_FILES"; then |
---|
5817 | |
---|
5818 | |
---|
5819 | ac_cr=`echo X | tr X '\015'` |
---|
5820 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
---|
5821 | # But we know of no other shell where ac_cr would be empty at this |
---|
5822 | # point, so we can use a bashism as a fallback. |
---|
5823 | if test "x$ac_cr" = x; then |
---|
5824 | eval ac_cr=\$\'\\r\' |
---|
5825 | fi |
---|
5826 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
---|
5827 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
---|
5828 | ac_cs_awk_cr='\\r' |
---|
5829 | else |
---|
5830 | ac_cs_awk_cr=$ac_cr |
---|
5831 | fi |
---|
5832 | |
---|
5833 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
---|
5834 | _ACEOF |
---|
5835 | |
---|
5836 | |
---|
5837 | { |
---|
5838 | echo "cat >conf$$subs.awk <<_ACEOF" && |
---|
5839 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
---|
5840 | echo "_ACEOF" |
---|
5841 | } >conf$$subs.sh || |
---|
5842 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
5843 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
---|
5844 | ac_delim='%!_!# ' |
---|
5845 | for ac_last_try in false false false false false :; do |
---|
5846 | . ./conf$$subs.sh || |
---|
5847 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
5848 | |
---|
5849 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
---|
5850 | if test $ac_delim_n = $ac_delim_num; then |
---|
5851 | break |
---|
5852 | elif $ac_last_try; then |
---|
5853 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
5854 | else |
---|
5855 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
5856 | fi |
---|
5857 | done |
---|
5858 | rm -f conf$$subs.sh |
---|
5859 | |
---|
5860 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
5861 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
---|
5862 | _ACEOF |
---|
5863 | sed -n ' |
---|
5864 | h |
---|
5865 | s/^/S["/; s/!.*/"]=/ |
---|
5866 | p |
---|
5867 | g |
---|
5868 | s/^[^!]*!// |
---|
5869 | :repl |
---|
5870 | t repl |
---|
5871 | s/'"$ac_delim"'$// |
---|
5872 | t delim |
---|
5873 | :nl |
---|
5874 | h |
---|
5875 | s/\(.\{148\}\)..*/\1/ |
---|
5876 | t more1 |
---|
5877 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
---|
5878 | p |
---|
5879 | n |
---|
5880 | b repl |
---|
5881 | :more1 |
---|
5882 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
5883 | p |
---|
5884 | g |
---|
5885 | s/.\{148\}// |
---|
5886 | t nl |
---|
5887 | :delim |
---|
5888 | h |
---|
5889 | s/\(.\{148\}\)..*/\1/ |
---|
5890 | t more2 |
---|
5891 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
---|
5892 | p |
---|
5893 | b |
---|
5894 | :more2 |
---|
5895 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
5896 | p |
---|
5897 | g |
---|
5898 | s/.\{148\}// |
---|
5899 | t delim |
---|
5900 | ' <conf$$subs.awk | sed ' |
---|
5901 | /^[^""]/{ |
---|
5902 | N |
---|
5903 | s/\n// |
---|
5904 | } |
---|
5905 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
5906 | rm -f conf$$subs.awk |
---|
5907 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
5908 | _ACAWK |
---|
5909 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
---|
5910 | for (key in S) S_is_set[key] = 1 |
---|
5911 | FS = "" |
---|
5912 | |
---|
5913 | } |
---|
5914 | { |
---|
5915 | line = $ 0 |
---|
5916 | nfields = split(line, field, "@") |
---|
5917 | substed = 0 |
---|
5918 | len = length(field[1]) |
---|
5919 | for (i = 2; i < nfields; i++) { |
---|
5920 | key = field[i] |
---|
5921 | keylen = length(key) |
---|
5922 | if (S_is_set[key]) { |
---|
5923 | value = S[key] |
---|
5924 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
---|
5925 | len += length(value) + length(field[++i]) |
---|
5926 | substed = 1 |
---|
5927 | } else |
---|
5928 | len += 1 + keylen |
---|
5929 | } |
---|
5930 | |
---|
5931 | print line |
---|
5932 | } |
---|
5933 | |
---|
5934 | _ACAWK |
---|
5935 | _ACEOF |
---|
5936 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
5937 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
---|
5938 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
---|
5939 | else |
---|
5940 | cat |
---|
5941 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
---|
5942 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
---|
5943 | _ACEOF |
---|
5944 | |
---|
5945 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
---|
5946 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
---|
5947 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
5948 | # (actually we leave an empty line to preserve line numbers). |
---|
5949 | if test "x$srcdir" = x.; then |
---|
5950 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
---|
5951 | h |
---|
5952 | s/// |
---|
5953 | s/^/:/ |
---|
5954 | s/[ ]*$/:/ |
---|
5955 | s/:\$(srcdir):/:/g |
---|
5956 | s/:\${srcdir}:/:/g |
---|
5957 | s/:@srcdir@:/:/g |
---|
5958 | s/^:*// |
---|
5959 | s/:*$// |
---|
5960 | x |
---|
5961 | s/\(=[ ]*\).*/\1/ |
---|
5962 | G |
---|
5963 | s/\n// |
---|
5964 | s/^[^=]*=[ ]*$// |
---|
5965 | }' |
---|
5966 | fi |
---|
5967 | |
---|
5968 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
5969 | fi # test -n "$CONFIG_FILES" |
---|
5970 | |
---|
5971 | # Set up the scripts for CONFIG_HEADERS section. |
---|
5972 | # No need to generate them if there are no CONFIG_HEADERS. |
---|
5973 | # This happens for instance with `./config.status Makefile'. |
---|
5974 | if test -n "$CONFIG_HEADERS"; then |
---|
5975 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
---|
5976 | BEGIN { |
---|
5977 | _ACEOF |
---|
5978 | |
---|
5979 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
---|
5980 | # here-document in config.status, that substitutes the proper values into |
---|
5981 | # config.h.in to produce config.h. |
---|
5982 | |
---|
5983 | # Create a delimiter string that does not exist in confdefs.h, to ease |
---|
5984 | # handling of long lines. |
---|
5985 | ac_delim='%!_!# ' |
---|
5986 | for ac_last_try in false false :; do |
---|
5987 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
---|
5988 | if test -z "$ac_tt"; then |
---|
5989 | break |
---|
5990 | elif $ac_last_try; then |
---|
5991 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
---|
5992 | else |
---|
5993 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
5994 | fi |
---|
5995 | done |
---|
5996 | |
---|
5997 | # For the awk script, D is an array of macro values keyed by name, |
---|
5998 | # likewise P contains macro parameters if any. Preserve backslash |
---|
5999 | # newline sequences. |
---|
6000 | |
---|
6001 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
---|
6002 | sed -n ' |
---|
6003 | s/.\{148\}/&'"$ac_delim"'/g |
---|
6004 | t rset |
---|
6005 | :rset |
---|
6006 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
---|
6007 | t def |
---|
6008 | d |
---|
6009 | :def |
---|
6010 | s/\\$// |
---|
6011 | t bsnl |
---|
6012 | s/["\\]/\\&/g |
---|
6013 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
6014 | D["\1"]=" \3"/p |
---|
6015 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
---|
6016 | d |
---|
6017 | :bsnl |
---|
6018 | s/["\\]/\\&/g |
---|
6019 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
6020 | D["\1"]=" \3\\\\\\n"\\/p |
---|
6021 | t cont |
---|
6022 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
---|
6023 | t cont |
---|
6024 | d |
---|
6025 | :cont |
---|
6026 | n |
---|
6027 | s/.\{148\}/&'"$ac_delim"'/g |
---|
6028 | t clear |
---|
6029 | :clear |
---|
6030 | s/\\$// |
---|
6031 | t bsnlc |
---|
6032 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
---|
6033 | d |
---|
6034 | :bsnlc |
---|
6035 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
---|
6036 | b cont |
---|
6037 | ' <confdefs.h | sed ' |
---|
6038 | s/'"$ac_delim"'/"\\\ |
---|
6039 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
6040 | |
---|
6041 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6042 | for (key in D) D_is_set[key] = 1 |
---|
6043 | FS = "" |
---|
6044 | } |
---|
6045 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
---|
6046 | line = \$ 0 |
---|
6047 | split(line, arg, " ") |
---|
6048 | if (arg[1] == "#") { |
---|
6049 | defundef = arg[2] |
---|
6050 | mac1 = arg[3] |
---|
6051 | } else { |
---|
6052 | defundef = substr(arg[1], 2) |
---|
6053 | mac1 = arg[2] |
---|
6054 | } |
---|
6055 | split(mac1, mac2, "(") #) |
---|
6056 | macro = mac2[1] |
---|
6057 | prefix = substr(line, 1, index(line, defundef) - 1) |
---|
6058 | if (D_is_set[macro]) { |
---|
6059 | # Preserve the white space surrounding the "#". |
---|
6060 | print prefix "define", macro P[macro] D[macro] |
---|
6061 | next |
---|
6062 | } else { |
---|
6063 | # Replace #undef with comments. This is necessary, for example, |
---|
6064 | # in the case of _POSIX_SOURCE, which is predefined and required |
---|
6065 | # on some systems where configure will not decide to define it. |
---|
6066 | if (defundef == "undef") { |
---|
6067 | print "/*", prefix defundef, macro, "*/" |
---|
6068 | next |
---|
6069 | } |
---|
6070 | } |
---|
6071 | } |
---|
6072 | { print } |
---|
6073 | _ACAWK |
---|
6074 | _ACEOF |
---|
6075 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6076 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
---|
6077 | fi # test -n "$CONFIG_HEADERS" |
---|
6078 | |
---|
6079 | |
---|
6080 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
---|
6081 | shift |
---|
6082 | for ac_tag |
---|
6083 | do |
---|
6084 | case $ac_tag in |
---|
6085 | :[FHLC]) ac_mode=$ac_tag; continue;; |
---|
6086 | esac |
---|
6087 | case $ac_mode$ac_tag in |
---|
6088 | :[FHL]*:*);; |
---|
6089 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
---|
6090 | :[FH]-) ac_tag=-:-;; |
---|
6091 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
---|
6092 | esac |
---|
6093 | ac_save_IFS=$IFS |
---|
6094 | IFS=: |
---|
6095 | set x $ac_tag |
---|
6096 | IFS=$ac_save_IFS |
---|
6097 | shift |
---|
6098 | ac_file=$1 |
---|
6099 | shift |
---|
6100 | |
---|
6101 | case $ac_mode in |
---|
6102 | :L) ac_source=$1;; |
---|
6103 | :[FH]) |
---|
6104 | ac_file_inputs= |
---|
6105 | for ac_f |
---|
6106 | do |
---|
6107 | case $ac_f in |
---|
6108 | -) ac_f="$ac_tmp/stdin";; |
---|
6109 | *) # Look for the file first in the build tree, then in the source tree |
---|
6110 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
---|
6111 | # because $ac_f cannot contain `:'. |
---|
6112 | test -f "$ac_f" || |
---|
6113 | case $ac_f in |
---|
6114 | [\\/$]*) false;; |
---|
6115 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
---|
6116 | esac || |
---|
6117 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
---|
6118 | esac |
---|
6119 | case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
---|
6120 | as_fn_append ac_file_inputs " '$ac_f'" |
---|
6121 | done |
---|
6122 | |
---|
6123 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
6124 | # use $as_me), people would be surprised to read: |
---|
6125 | # /* config.h. Generated by config.status. */ |
---|
6126 | configure_input='Generated from '` |
---|
6127 | printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
---|
6128 | `' by configure.' |
---|
6129 | if test x"$ac_file" != x-; then |
---|
6130 | configure_input="$ac_file. $configure_input" |
---|
6131 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
---|
6132 | printf "%s\n" "$as_me: creating $ac_file" >&6;} |
---|
6133 | fi |
---|
6134 | # Neutralize special characters interpreted by sed in replacement strings. |
---|
6135 | case $configure_input in #( |
---|
6136 | *\&* | *\|* | *\\* ) |
---|
6137 | ac_sed_conf_input=`printf "%s\n" "$configure_input" | |
---|
6138 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
---|
6139 | *) ac_sed_conf_input=$configure_input;; |
---|
6140 | esac |
---|
6141 | |
---|
6142 | case $ac_tag in |
---|
6143 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
---|
6144 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
---|
6145 | esac |
---|
6146 | ;; |
---|
6147 | esac |
---|
6148 | |
---|
6149 | ac_dir=`$as_dirname -- "$ac_file" || |
---|
6150 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6151 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
6152 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
6153 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
---|
6154 | printf "%s\n" X"$ac_file" | |
---|
6155 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
6156 | s//\1/ |
---|
6157 | q |
---|
6158 | } |
---|
6159 | /^X\(\/\/\)[^/].*/{ |
---|
6160 | s//\1/ |
---|
6161 | q |
---|
6162 | } |
---|
6163 | /^X\(\/\/\)$/{ |
---|
6164 | s//\1/ |
---|
6165 | q |
---|
6166 | } |
---|
6167 | /^X\(\/\).*/{ |
---|
6168 | s//\1/ |
---|
6169 | q |
---|
6170 | } |
---|
6171 | s/.*/./; q'` |
---|
6172 | as_dir="$ac_dir"; as_fn_mkdir_p |
---|
6173 | ac_builddir=. |
---|
6174 | |
---|
6175 | case "$ac_dir" in |
---|
6176 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
6177 | *) |
---|
6178 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
6179 | # A ".." for each directory in $ac_dir_suffix. |
---|
6180 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
6181 | case $ac_top_builddir_sub in |
---|
6182 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
6183 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
6184 | esac ;; |
---|
6185 | esac |
---|
6186 | ac_abs_top_builddir=$ac_pwd |
---|
6187 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
6188 | # for backward compatibility: |
---|
6189 | ac_top_builddir=$ac_top_build_prefix |
---|
6190 | |
---|
6191 | case $srcdir in |
---|
6192 | .) # We are building in place. |
---|
6193 | ac_srcdir=. |
---|
6194 | ac_top_srcdir=$ac_top_builddir_sub |
---|
6195 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
6196 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
6197 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
6198 | ac_top_srcdir=$srcdir |
---|
6199 | ac_abs_top_srcdir=$srcdir ;; |
---|
6200 | *) # Relative name. |
---|
6201 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
6202 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
6203 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
6204 | esac |
---|
6205 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
6206 | |
---|
6207 | |
---|
6208 | case $ac_mode in |
---|
6209 | :F) |
---|
6210 | # |
---|
6211 | # CONFIG_FILE |
---|
6212 | # |
---|
6213 | |
---|
6214 | _ACEOF |
---|
6215 | |
---|
6216 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6217 | # If the template does not know about datarootdir, expand it. |
---|
6218 | # FIXME: This hack should be removed a few years after 2.60. |
---|
6219 | ac_datarootdir_hack=; ac_datarootdir_seen= |
---|
6220 | ac_sed_dataroot=' |
---|
6221 | /datarootdir/ { |
---|
6222 | p |
---|
6223 | q |
---|
6224 | } |
---|
6225 | /@datadir@/p |
---|
6226 | /@docdir@/p |
---|
6227 | /@infodir@/p |
---|
6228 | /@localedir@/p |
---|
6229 | /@mandir@/p' |
---|
6230 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
---|
6231 | *datarootdir*) ac_datarootdir_seen=yes;; |
---|
6232 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
---|
6233 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
---|
6234 | printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
---|
6235 | _ACEOF |
---|
6236 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6237 | ac_datarootdir_hack=' |
---|
6238 | s&@datadir@&$datadir&g |
---|
6239 | s&@docdir@&$docdir&g |
---|
6240 | s&@infodir@&$infodir&g |
---|
6241 | s&@localedir@&$localedir&g |
---|
6242 | s&@mandir@&$mandir&g |
---|
6243 | s&\\\${datarootdir}&$datarootdir&g' ;; |
---|
6244 | esac |
---|
6245 | _ACEOF |
---|
6246 | |
---|
6247 | # Neutralize VPATH when `$srcdir' = `.'. |
---|
6248 | # Shell code in configure.ac might set extrasub. |
---|
6249 | # FIXME: do we really want to maintain this feature? |
---|
6250 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6251 | ac_sed_extra="$ac_vpsub |
---|
6252 | $extrasub |
---|
6253 | _ACEOF |
---|
6254 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6255 | :t |
---|
6256 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
6257 | s|@configure_input@|$ac_sed_conf_input|;t t |
---|
6258 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
---|
6259 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
---|
6260 | s&@srcdir@&$ac_srcdir&;t t |
---|
6261 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
---|
6262 | s&@top_srcdir@&$ac_top_srcdir&;t t |
---|
6263 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
---|
6264 | s&@builddir@&$ac_builddir&;t t |
---|
6265 | s&@abs_builddir@&$ac_abs_builddir&;t t |
---|
6266 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
---|
6267 | $ac_datarootdir_hack |
---|
6268 | " |
---|
6269 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
---|
6270 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
6271 | |
---|
6272 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
---|
6273 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
---|
6274 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
---|
6275 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
---|
6276 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
6277 | which seems to be undefined. Please make sure it is defined" >&5 |
---|
6278 | printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
6279 | which seems to be undefined. Please make sure it is defined" >&2;} |
---|
6280 | |
---|
6281 | rm -f "$ac_tmp/stdin" |
---|
6282 | case $ac_file in |
---|
6283 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
---|
6284 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
---|
6285 | esac \ |
---|
6286 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
6287 | ;; |
---|
6288 | :H) |
---|
6289 | # |
---|
6290 | # CONFIG_HEADER |
---|
6291 | # |
---|
6292 | if test x"$ac_file" != x-; then |
---|
6293 | { |
---|
6294 | printf "%s\n" "/* $configure_input */" >&1 \ |
---|
6295 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
---|
6296 | } >"$ac_tmp/config.h" \ |
---|
6297 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
6298 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
---|
6299 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
---|
6300 | printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} |
---|
6301 | else |
---|
6302 | rm -f "$ac_file" |
---|
6303 | mv "$ac_tmp/config.h" "$ac_file" \ |
---|
6304 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
6305 | fi |
---|
6306 | else |
---|
6307 | printf "%s\n" "/* $configure_input */" >&1 \ |
---|
6308 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
---|
6309 | || as_fn_error $? "could not create -" "$LINENO" 5 |
---|
6310 | fi |
---|
6311 | ;; |
---|
6312 | |
---|
6313 | |
---|
6314 | esac |
---|
6315 | |
---|
6316 | done # for ac_tag |
---|
6317 | |
---|
6318 | |
---|
6319 | as_fn_exit 0 |
---|
6320 | _ACEOF |
---|
6321 | ac_clean_files=$ac_clean_files_save |
---|
6322 | |
---|
6323 | test $ac_write_fail = 0 || |
---|
6324 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
---|
6325 | |
---|
6326 | |
---|
6327 | # configure is writing to config.log, and then calls config.status. |
---|
6328 | # config.status does its own redirection, appending to config.log. |
---|
6329 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
6330 | # by configure, so config.status won't be able to write to it; its |
---|
6331 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
6332 | # effectively closing config.log, so it can be properly (re)opened and |
---|
6333 | # appended to by config.status. When coming back to configure, we |
---|
6334 | # need to make the FD available again. |
---|
6335 | if test "$no_create" != yes; then |
---|
6336 | ac_cs_success=: |
---|
6337 | ac_config_status_args= |
---|
6338 | test "$silent" = yes && |
---|
6339 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
6340 | exec 5>/dev/null |
---|
6341 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
6342 | exec 5>>config.log |
---|
6343 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
6344 | # would make configure fail if this is the last instruction. |
---|
6345 | $ac_cs_success || as_fn_exit 1 |
---|
6346 | fi |
---|
6347 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
---|
6348 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
---|
6349 | printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
---|
6350 | fi |
---|
6351 | |
---|
6352 | |
---|