Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 as_nop=:
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20 then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else $as_nop
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed `exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143 then :
144 emulate sh
145 NULLCMD=:
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 setopt NO_GLOB_SUBST
150 else \$as_nop
151 case \`(set -o) 2>/dev/null\` in #(
152 *posix*) :
153 set -o posix ;; #(
154 *) :
155 ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else \$as_nop
174 exitcode=1; echo positional parameters were not saved.
175 fi
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
179 test -x / || exit 1"
180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
184 if (eval "$as_required") 2>/dev/null
185 then :
186 as_have_required=yes
187 else $as_nop
188 as_have_required=no
189 fi
190 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
191 then :
192
193 else $as_nop
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 case $as_dir in #(((
200 '') as_dir=./ ;;
201 */) ;;
202 *) as_dir=$as_dir/ ;;
203 esac
204 as_found=:
205 case $as_dir in #(
206 /*)
207 for as_base in sh bash ksh sh5; do
208 # Try only shells that exist, to save several forks.
209 as_shell=$as_dir$as_base
210 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
211 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
212 then :
213 CONFIG_SHELL=$as_shell as_have_required=yes
214 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
215 then :
216 break 2
217 fi
218 fi
219 done;;
220 esac
221 as_found=false
222 done
223 IFS=$as_save_IFS
224 if $as_found
225 then :
226
227 else $as_nop
228 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
229 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
230 then :
231 CONFIG_SHELL=$SHELL as_have_required=yes
232 fi
233 fi
234
235
236 if test "x$CONFIG_SHELL" != x
237 then :
238 export CONFIG_SHELL
239 # We cannot yet assume a decent shell, so we have to provide a
240 # neutralization value for shells without unset; and this also
241 # works around shells that cannot unset nonexistent variables.
242 # Preserve -v and -x to the replacement shell.
243 BASH_ENV=/dev/null
244 ENV=/dev/null
245 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
246 case $- in # ((((
247 *v*x* | *x*v* ) as_opts=-vx ;;
248 *v* ) as_opts=-v ;;
249 *x* ) as_opts=-x ;;
250 * ) as_opts= ;;
251 esac
252 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
253 # Admittedly, this is quite paranoid, since all the known shells bail
254 # out after a failed `exec'.
255 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
256 exit 255
257 fi
258
259 if test x$as_have_required = xno
260 then :
261 printf "%s\n" "$0: This script requires a shell more modern than all"
262 printf "%s\n" "$0: the shells that I found on your system."
263 if test ${ZSH_VERSION+y} ; then
264 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 printf "%s\n" "$0: Please tell [email protected] 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 # as_fn_nop
422 # ---------
423 # Do nothing but, unlike ":", preserve the value of $?.
424 as_fn_nop ()
425 {
426 return $?
427 }
428 as_nop=as_fn_nop
429
430 # as_fn_error STATUS ERROR [LINENO LOG_FD]
431 # ----------------------------------------
432 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
433 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
434 # script with STATUS, using 1 if that was 0.
435 as_fn_error ()
436 {
437 as_status=$1; test $as_status -eq 0 && as_status=1
438 if test "$4"; then
439 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
441 fi
442 printf "%s\n" "$as_me: error: $2" >&2
443 as_fn_exit $as_status
444 } # as_fn_error
445
446 if expr a : '\(a\)' >/dev/null 2>&1 &&
447 test "X`expr 00001 : '.*\(...\)'`" = X001; then
448 as_expr=expr
449 else
450 as_expr=false
451 fi
452
453 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
454 as_basename=basename
455 else
456 as_basename=false
457 fi
458
459 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
460 as_dirname=dirname
461 else
462 as_dirname=false
463 fi
464
465 as_me=`$as_basename -- "$0" ||
466 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
467 X"$0" : 'X\(//\)$' \| \
468 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
469 printf "%s\n" X/"$0" |
470 sed '/^.*\/\([^/][^/]*\)\/*$/{
471 s//\1/
472 q
473 }
474 /^X\/\(\/\/\)$/{
475 s//\1/
476 q
477 }
478 /^X\/\(\/\).*/{
479 s//\1/
480 q
481 }
482 s/.*/./; q'`
483
484 # Avoid depending upon Character Ranges.
485 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
486 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
487 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
488 as_cr_digits='0123456789'
489 as_cr_alnum=$as_cr_Letters$as_cr_digits
490
491
492 as_lineno_1=$LINENO as_lineno_1a=$LINENO
493 as_lineno_2=$LINENO as_lineno_2a=$LINENO
494 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
495 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
496 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
497 sed -n '
498 p
499 /[$]LINENO/=
500 ' <$as_myself |
501 sed '
502 s/[$]LINENO.*/&-/
503 t lineno
504 b
505 :lineno
506 N
507 :loop
508 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
509 t loop
510 s/-\n.*//
511 ' >$as_me.lineno &&
512 chmod +x "$as_me.lineno" ||
513 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
514
515 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
516 # already done that, so ensure we don't try to do so again and fall
517 # in an infinite loop. This has already happened in practice.
518 _as_can_reexec=no; export _as_can_reexec
519 # Don't try to exec as it changes $[0], causing all sort of problems
520 # (the dirname of $[0] is not the place where we might find the
521 # original and so on. Autoconf is especially sensitive to this).
522 . "./$as_me.lineno"
523 # Exit status is that of the last command.
524 exit
525 }
526
527
528 # Determine whether it's possible to make 'echo' print without a newline.
529 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
530 # for compatibility with existing Makefiles.
531 ECHO_C= ECHO_N= ECHO_T=
532 case `echo -n x` in #(((((
533 -n*)
534 case `echo 'xy\c'` in
535 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
536 xy) ECHO_C='\c';;
537 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
538 ECHO_T=' ';;
539 esac;;
540 *)
541 ECHO_N='-n';;
542 esac
543
544 # For backward compatibility with old third-party macros, we provide
545 # the shell variables $as_echo and $as_echo_n. New code should use
546 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
547 as_echo='printf %s\n'
548 as_echo_n='printf %s'
549
550
551 rm -f conf$$ conf$$.exe conf$$.file
552 if test -d conf$$.dir; then
553 rm -f conf$$.dir/conf$$.file
554 else
555 rm -f conf$$.dir
556 mkdir conf$$.dir 2>/dev/null
557 fi
558 if (echo >conf$$.file) 2>/dev/null; then
559 if ln -s conf$$.file conf$$ 2>/dev/null; then
560 as_ln_s='ln -s'
561 # ... but there are two gotchas:
562 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
563 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
564 # In both cases, we have to default to `cp -pR'.
565 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
566 as_ln_s='cp -pR'
567 elif ln conf$$.file conf$$ 2>/dev/null; then
568 as_ln_s=ln
569 else
570 as_ln_s='cp -pR'
571 fi
572 else
573 as_ln_s='cp -pR'
574 fi
575 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
576 rmdir conf$$.dir 2>/dev/null
577
578 if mkdir -p . 2>/dev/null; then
579 as_mkdir_p='mkdir -p "$as_dir"'
580 else
581 test -d ./-p && rmdir ./-p
582 as_mkdir_p=false
583 fi
584
585 as_test_x='test -x'
586 as_executable_p=as_fn_executable_p
587
588 # Sed expression to map a string onto a valid CPP name.
589 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
590
591 # Sed expression to map a string onto a valid variable name.
592 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
593
594
595 test -n "$DJDIR" || exec 7<&0 </dev/null
596 exec 6>&1
597
598 # Name of the host.
599 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
600 # so uname gets run too.
601 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
602
603 #
604 # Initializations.
605 #
606 ac_default_prefix=/usr/local
607 ac_clean_files=
608 ac_config_libobj_dir=.
609 LIBOBJS=
610 cross_compiling=no
611 subdirs=
612 MFLAGS=
613 MAKEFLAGS=
614
615 # Identity of this package.
616 PACKAGE_NAME=''
617 PACKAGE_TARNAME=''
618 PACKAGE_VERSION=''
619 PACKAGE_STRING=''
620 PACKAGE_BUGREPORT=''
621 PACKAGE_URL=''
622
623 ac_unique_file="src/kernel_internals/runtime/boot.ml"
624 # Factoring default headers for most tests.
625 ac_includes_default="\
626 #include <stddef.h>
627 #ifdef HAVE_STDIO_H
628 # include <stdio.h>
629 #endif
630 #ifdef HAVE_STDLIB_H
631 # include <stdlib.h>
632 #endif
633 #ifdef HAVE_STRING_H
634 # include <string.h>
635 #endif
636 #ifdef HAVE_INTTYPES_H
637 # include <inttypes.h>
638 #endif
639 #ifdef HAVE_STDINT_H
640 # include <stdint.h>
641 #endif
642 #ifdef HAVE_STRINGS_H
643 # include <strings.h>
644 #endif
645 #ifdef HAVE_SYS_TYPES_H
646 # include <sys/types.h>
647 #endif
648 #ifdef HAVE_SYS_STAT_H
649 # include <sys/stat.h>
650 #endif
651 #ifdef HAVE_UNISTD_H
652 # include <unistd.h>
653 #endif"
654
655 ac_header_c_list=
656 ac_subst_vars='LABLGTK_PATH
657 EXTERNAL_PLUGINS
658 DEFAULT_CPP_KEEP_COMMENTS
659 FRAMAC_GNU_CPP
660 DEFAULT_CPP_SUPPORTED_ARCH_OPTS
661 FRAMAC_DEFAULT_CPP_ARGS
662 FRAMAC_DEFAULT_CPP
663 LOCAL_MACHDEP
664 CYCLES_PER_USEC
665 UNDERSCORE_NAME
666 HAVE_BUILTIN_VA_LIST
667 HAVE_PTRDIFF_H
668 HAVE_WCHAR_H
669 HAVE_STDLIB_H
670 DLLEXT
671 EXE
672 OCAML_ANNOT_OPTION
673 OCAMLWIN32
674 OCAMLLIB
675 OCAMLVERSION
676 OCAMLBEST
677 LABLGTK_VERSION
678 HAS_PYTHON36
679 HAS_LANDMARKS
680 HAS_MPFR
681 HAS_APRON
682 DEVELOPMENT
683 VERBOSEMAKE
684 PLATFORM
685 HAS_DGRAPH
686 UNIX2DOS
687 HAS_UNIX2DOS
688 DOT
689 HAS_DOT
690 HAS_OCAML_OCAMLGRAPH_GTK
691 OCAML_OCAMLGRAPH_GTK
692 HAS_LABLGTK
693 LABLGTK
694 HAS_GNOMECANVAS
695 GNOMECANVAS
696 HAS_GTKSOURCEVIEW
697 GTKSOURCEVIEW
698 HAS_OCAML_WHY3
699 OCAML_WHY3
700 ENABLE_WP
701 ENABLE_VARIADIC
702 ENABLE_STUDIA
703 SERVER_ZMQ
704 HAS_OCAML_ZMQ
705 OCAML_ZMQ
706 ENABLE_SERVER
707 ENABLE_SECURITY_SLICING
708 ENABLE_REPORT
709 ENABLE_QED
710 ENABLE_PRINT_API
711 ENABLE_OBFUSCATOR
712 ENABLE_NONTERM
713 HAS_OCAML_PPX_DERIVING_YOJSON
714 OCAML_PPX_DERIVING_YOJSON
715 HAS_OCAML_PPX_DERIVING
716 OCAML_PPX_DERIVING
717 ENABLE_MDR
718 ENABLE_LOOP_ANALYSIS
719 ENABLE_INSTANTIATE
720 MAY_RUN_TESTS
721 LTLIBOBJS
722 LIBOBJS
723 HAVE_DOT
724 DOXYGEN
725 UNAME
726 ENABLE_E_ACSL
727 ENABLE_DIVE
728 LTLTOBA
729 HAS_LTLTOBA
730 ENABLE_AORAI
731 ENABLE_EVA
732 ENABLE_USERS
733 ENABLE_SPARECODE
734 ENABLE_SLICING
735 ENABLE_SCOPE
736 ENABLE_RTEGEN
737 ENABLE_REDUC
738 ENABLE_POSTDOMINATORS
739 ENABLE_PDG
740 ENABLE_OCCURRENCE
741 ENABLE_METRICS
742 ENABLE_INOUT
743 ENABLE_IMPACT
744 ENABLE_GUI
745 ENABLE_FROM_ANALYSIS
746 ENABLE_SEMANTIC_CONSTANT_FOLDING
747 ENABLE_CALLGRAPH
748 CPP
749 OBJEXT
750 EXEEXT
751 ac_ct_CC
752 CPPFLAGS
753 LDFLAGS
754 CFLAGS
755 CC
756 CYGPATH
757 OTAGS
758 OCAMLMKTOP
759 OCAMLDOC
760 HAS_OCAMLGRAPH_2
761 OCAMLCP
762 OCAMLYACC
763 OCAMLLEXDOTOPT
764 OCAMLLEX
765 OCAMLDEP
766 OCAMLFIND
767 OCAMLOPT
768 HAS_OCAML410
769 HAS_OCAML409
770 OCAMLPATCHNB
771 OCAMLMINORNB
772 OCAMLMAJORNB
773 OCAMLC
774 MAKE
775 FRAMAC_VERSION
776 target_alias
777 host_alias
778 build_alias
779 LIBS
780 ECHO_T
781 ECHO_N
782 ECHO_C
783 DEFS
784 mandir
785 localedir
786 libdir
787 psdir
788 pdfdir
789 dvidir
790 htmldir
791 infodir
792 docdir
793 oldincludedir
794 includedir
795 runstatedir
796 localstatedir
797 sharedstatedir
798 sysconfdir
799 datadir
800 datarootdir
801 libexecdir
802 sbindir
803 bindir
804 program_transform_name
805 prefix
806 exec_prefix
807 PACKAGE_URL
808 PACKAGE_BUGREPORT
809 PACKAGE_STRING
810 PACKAGE_VERSION
811 PACKAGE_TARNAME
812 PACKAGE_NAME
813 PATH_SEPARATOR
814 SHELL'
815 ac_subst_files=''
816 ac_user_opts='
817 enable_option_checking
818 enable_verbosemake
819 enable_devel_mode
820 enable_landmarks
821 with_cc
822 enable_localmachdep
823 with_cpp
824 with_no_plugin
825 enable_callgraph
826 enable_semantic_constant_folding
827 enable_from_analysis
828 enable_gui
829 enable_impact
830 enable_inout
831 enable_metrics
832 enable_occurrence
833 enable_pdg
834 enable_postdominators
835 enable_reduc
836 enable_rtegen
837 enable_scope
838 enable_slicing
839 enable_sparecode
840 enable_users
841 enable_eva
842 enable_external
843 enable_aorai
844 enable_dive
845 enable_e_acsl
846 enable_instantiate
847 enable_loop_analysis
848 enable_mdr
849 enable_nonterm
850 enable_obfuscator
851 enable_print_api
852 enable_qed
853 enable_report
854 enable_security_slicing
855 enable_server
856 enable_server_zmq
857 enable_studia
858 enable_variadic
859 enable_wp
860 enable_lablgtk3
861 '
862 ac_precious_vars='build_alias
863 host_alias
864 target_alias
865 CC
866 CFLAGS
867 LDFLAGS
868 LIBS
869 CPPFLAGS
870 CPP'
871
872
873 # Initialize some variables set by options.
874 ac_init_help=
875 ac_init_version=false
876 ac_unrecognized_opts=
877 ac_unrecognized_sep=
878 # The variables have the same names as the options, with
879 # dashes changed to underlines.
880 cache_file=/dev/null
881 exec_prefix=NONE
882 no_create=
883 no_recursion=
884 prefix=NONE
885 program_prefix=NONE
886 program_suffix=NONE
887 program_transform_name=s,x,x,
888 silent=
889 site=
890 srcdir=
891 verbose=
892 x_includes=NONE
893 x_libraries=NONE
894
895 # Installation directory options.
896 # These are left unexpanded so users can "make install exec_prefix=/foo"
897 # and all the variables that are supposed to be based on exec_prefix
898 # by default will actually change.
899 # Use braces instead of parens because sh, perl, etc. also accept them.
900 # (The list follows the same order as the GNU Coding Standards.)
901 bindir='${exec_prefix}/bin'
902 sbindir='${exec_prefix}/sbin'
903 libexecdir='${exec_prefix}/libexec'
904 datarootdir='${prefix}/share'
905 datadir='${datarootdir}'
906 sysconfdir='${prefix}/etc'
907 sharedstatedir='${prefix}/com'
908 localstatedir='${prefix}/var'
909 runstatedir='${localstatedir}/run'
910 includedir='${prefix}/include'
911 oldincludedir='/usr/include'
912 docdir='${datarootdir}/doc/${PACKAGE}'
913 infodir='${datarootdir}/info'
914 htmldir='${docdir}'
915 dvidir='${docdir}'
916 pdfdir='${docdir}'
917 psdir='${docdir}'
918 libdir='${exec_prefix}/lib'
919 localedir='${datarootdir}/locale'
920 mandir='${datarootdir}/man'
921
922 ac_prev=
923 ac_dashdash=
924 for ac_option
925 do
926 # If the previous option needs an argument, assign it.
927 if test -n "$ac_prev"; then
928 eval $ac_prev=\$ac_option
929 ac_prev=
930 continue
931 fi
932
933 case $ac_option in
934 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
935 *=) ac_optarg= ;;
936 *) ac_optarg=yes ;;
937 esac
938
939 case $ac_dashdash$ac_option in
940 --)
941 ac_dashdash=yes ;;
942
943 -bindir | --bindir | --bindi | --bind | --bin | --bi)
944 ac_prev=bindir ;;
945 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
946 bindir=$ac_optarg ;;
947
948 -build | --build | --buil | --bui | --bu)
949 ac_prev=build_alias ;;
950 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
951 build_alias=$ac_optarg ;;
952
953 -cache-file | --cache-file | --cache-fil | --cache-fi \
954 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
955 ac_prev=cache_file ;;
956 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
957 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
958 cache_file=$ac_optarg ;;
959
960 --config-cache | -C)
961 cache_file=config.cache ;;
962
963 -datadir | --datadir | --datadi | --datad)
964 ac_prev=datadir ;;
965 -datadir=* | --datadir=* | --datadi=* | --datad=*)
966 datadir=$ac_optarg ;;
967
968 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
969 | --dataroo | --dataro | --datar)
970 ac_prev=datarootdir ;;
971 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
972 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
973 datarootdir=$ac_optarg ;;
974
975 -disable-* | --disable-*)
976 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
977 # Reject names that are not valid shell variable names.
978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979 as_fn_error $? "invalid feature name: \`$ac_useropt'"
980 ac_useropt_orig=$ac_useropt
981 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
982 case $ac_user_opts in
983 *"
984 "enable_$ac_useropt"
985 "*) ;;
986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
987 ac_unrecognized_sep=', ';;
988 esac
989 eval enable_$ac_useropt=no ;;
990
991 -docdir | --docdir | --docdi | --doc | --do)
992 ac_prev=docdir ;;
993 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
994 docdir=$ac_optarg ;;
995
996 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
997 ac_prev=dvidir ;;
998 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
999 dvidir=$ac_optarg ;;
1000
1001 -enable-* | --enable-*)
1002 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1003 # Reject names that are not valid shell variable names.
1004 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1005 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1006 ac_useropt_orig=$ac_useropt
1007 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1008 case $ac_user_opts in
1009 *"
1010 "enable_$ac_useropt"
1011 "*) ;;
1012 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1013 ac_unrecognized_sep=', ';;
1014 esac
1015 eval enable_$ac_useropt=\$ac_optarg ;;
1016
1017 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1018 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1019 | --exec | --exe | --ex)
1020 ac_prev=exec_prefix ;;
1021 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1022 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1023 | --exec=* | --exe=* | --ex=*)
1024 exec_prefix=$ac_optarg ;;
1025
1026 -gas | --gas | --ga | --g)
1027 # Obsolete; use --with-gas.
1028 with_gas=yes ;;
1029
1030 -help | --help | --hel | --he | -h)
1031 ac_init_help=long ;;
1032 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1033 ac_init_help=recursive ;;
1034 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1035 ac_init_help=short ;;
1036
1037 -host | --host | --hos | --ho)
1038 ac_prev=host_alias ;;
1039 -host=* | --host=* | --hos=* | --ho=*)
1040 host_alias=$ac_optarg ;;
1041
1042 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1043 ac_prev=htmldir ;;
1044 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1045 | --ht=*)
1046 htmldir=$ac_optarg ;;
1047
1048 -includedir | --includedir | --includedi | --included | --include \
1049 | --includ | --inclu | --incl | --inc)
1050 ac_prev=includedir ;;
1051 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1052 | --includ=* | --inclu=* | --incl=* | --inc=*)
1053 includedir=$ac_optarg ;;
1054
1055 -infodir | --infodir | --infodi | --infod | --info | --inf)
1056 ac_prev=infodir ;;
1057 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1058 infodir=$ac_optarg ;;
1059
1060 -libdir | --libdir | --libdi | --libd)
1061 ac_prev=libdir ;;
1062 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1063 libdir=$ac_optarg ;;
1064
1065 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1066 | --libexe | --libex | --libe)
1067 ac_prev=libexecdir ;;
1068 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1069 | --libexe=* | --libex=* | --libe=*)
1070 libexecdir=$ac_optarg ;;
1071
1072 -localedir | --localedir | --localedi | --localed | --locale)
1073 ac_prev=localedir ;;
1074 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1075 localedir=$ac_optarg ;;
1076
1077 -localstatedir | --localstatedir | --localstatedi | --localstated \
1078 | --localstate | --localstat | --localsta | --localst | --locals)
1079 ac_prev=localstatedir ;;
1080 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1081 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1082 localstatedir=$ac_optarg ;;
1083
1084 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1085 ac_prev=mandir ;;
1086 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1087 mandir=$ac_optarg ;;
1088
1089 -nfp | --nfp | --nf)
1090 # Obsolete; use --without-fp.
1091 with_fp=no ;;
1092
1093 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1094 | --no-cr | --no-c | -n)
1095 no_create=yes ;;
1096
1097 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1098 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1099 no_recursion=yes ;;
1100
1101 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1102 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1103 | --oldin | --oldi | --old | --ol | --o)
1104 ac_prev=oldincludedir ;;
1105 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1106 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1107 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1108 oldincludedir=$ac_optarg ;;
1109
1110 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1111 ac_prev=prefix ;;
1112 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1113 prefix=$ac_optarg ;;
1114
1115 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1116 | --program-pre | --program-pr | --program-p)
1117 ac_prev=program_prefix ;;
1118 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1119 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1120 program_prefix=$ac_optarg ;;
1121
1122 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1123 | --program-suf | --program-su | --program-s)
1124 ac_prev=program_suffix ;;
1125 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1126 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1127 program_suffix=$ac_optarg ;;
1128
1129 -program-transform-name | --program-transform-name \
1130 | --program-transform-nam | --program-transform-na \
1131 | --program-transform-n | --program-transform- \
1132 | --program-transform | --program-transfor \
1133 | --program-transfo | --program-transf \
1134 | --program-trans | --program-tran \
1135 | --progr-tra | --program-tr | --program-t)
1136 ac_prev=program_transform_name ;;
1137 -program-transform-name=* | --program-transform-name=* \
1138 | --program-transform-nam=* | --program-transform-na=* \
1139 | --program-transform-n=* | --program-transform-=* \
1140 | --program-transform=* | --program-transfor=* \
1141 | --program-transfo=* | --program-transf=* \
1142 | --program-trans=* | --program-tran=* \
1143 | --progr-tra=* | --program-tr=* | --program-t=*)
1144 program_transform_name=$ac_optarg ;;
1145
1146 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1147 ac_prev=pdfdir ;;
1148 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1149 pdfdir=$ac_optarg ;;
1150
1151 -psdir | --psdir | --psdi | --psd | --ps)
1152 ac_prev=psdir ;;
1153 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1154 psdir=$ac_optarg ;;
1155
1156 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1157 | -silent | --silent | --silen | --sile | --sil)
1158 silent=yes ;;
1159
1160 -runstatedir | --runstatedir | --runstatedi | --runstated \
1161 | --runstate | --runstat | --runsta | --runst | --runs \
1162 | --run | --ru | --r)
1163 ac_prev=runstatedir ;;
1164 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1165 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1166 | --run=* | --ru=* | --r=*)
1167 runstatedir=$ac_optarg ;;
1168
1169 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1170 ac_prev=sbindir ;;
1171 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1172 | --sbi=* | --sb=*)
1173 sbindir=$ac_optarg ;;
1174
1175 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1176 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1177 | --sharedst | --shareds | --shared | --share | --shar \
1178 | --sha | --sh)
1179 ac_prev=sharedstatedir ;;
1180 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1181 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1182 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1183 | --sha=* | --sh=*)
1184 sharedstatedir=$ac_optarg ;;
1185
1186 -site | --site | --sit)
1187 ac_prev=site ;;
1188 -site=* | --site=* | --sit=*)
1189 site=$ac_optarg ;;
1190
1191 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1192 ac_prev=srcdir ;;
1193 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1194 srcdir=$ac_optarg ;;
1195
1196 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1197 | --syscon | --sysco | --sysc | --sys | --sy)
1198 ac_prev=sysconfdir ;;
1199 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1200 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1201 sysconfdir=$ac_optarg ;;
1202
1203 -target | --target | --targe | --targ | --tar | --ta | --t)
1204 ac_prev=target_alias ;;
1205 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1206 target_alias=$ac_optarg ;;
1207
1208 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1209 verbose=yes ;;
1210
1211 -version | --version | --versio | --versi | --vers | -V)
1212 ac_init_version=: ;;
1213
1214 -with-* | --with-*)
1215 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218 as_fn_error $? "invalid package name: \`$ac_useropt'"
1219 ac_useropt_orig=$ac_useropt
1220 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1221 case $ac_user_opts in
1222 *"
1223 "with_$ac_useropt"
1224 "*) ;;
1225 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1226 ac_unrecognized_sep=', ';;
1227 esac
1228 eval with_$ac_useropt=\$ac_optarg ;;
1229
1230 -without-* | --without-*)
1231 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1234 as_fn_error $? "invalid package name: \`$ac_useropt'"
1235 ac_useropt_orig=$ac_useropt
1236 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1237 case $ac_user_opts in
1238 *"
1239 "with_$ac_useropt"
1240 "*) ;;
1241 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1242 ac_unrecognized_sep=', ';;
1243 esac
1244 eval with_$ac_useropt=no ;;
1245
1246 --x)
1247 # Obsolete; use --with-x.
1248 with_x=yes ;;
1249
1250 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1251 | --x-incl | --x-inc | --x-in | --x-i)
1252 ac_prev=x_includes ;;
1253 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1254 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1255 x_includes=$ac_optarg ;;
1256
1257 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1258 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1259 ac_prev=x_libraries ;;
1260 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1261 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1262 x_libraries=$ac_optarg ;;
1263
1264 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1265 Try \`$0 --help' for more information"
1266 ;;
1267
1268 *=*)
1269 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1270 # Reject names that are not valid shell variable names.
1271 case $ac_envvar in #(
1272 '' | [0-9]* | *[!_$as_cr_alnum]* )
1273 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1274 esac
1275 eval $ac_envvar=\$ac_optarg
1276 export $ac_envvar ;;
1277
1278 *)
1279 # FIXME: should be removed in autoconf 3.0.
1280 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1281 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1282 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1283 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1284 ;;
1285
1286 esac
1287 done
1288
1289 if test -n "$ac_prev"; then
1290 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1291 as_fn_error $? "missing argument to $ac_option"
1292 fi
1293
1294 if test -n "$ac_unrecognized_opts"; then
1295 case $enable_option_checking in
1296 no) ;;
1297 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1298 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1299 esac
1300 fi
1301
1302 # Check all directory arguments for consistency.
1303 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1304 datadir sysconfdir sharedstatedir localstatedir includedir \
1305 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1306 libdir localedir mandir runstatedir
1307 do
1308 eval ac_val=\$$ac_var
1309 # Remove trailing slashes.
1310 case $ac_val in
1311 */ )
1312 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1313 eval $ac_var=\$ac_val;;
1314 esac
1315 # Be sure to have absolute directory names.
1316 case $ac_val in
1317 [\\/$]* | ?:[\\/]* ) continue;;
1318 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1319 esac
1320 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1321 done
1322
1323 # There might be people who depend on the old broken behavior: `$host'
1324 # used to hold the argument of --host etc.
1325 # FIXME: To remove some day.
1326 build=$build_alias
1327 host=$host_alias
1328 target=$target_alias
1329
1330 # FIXME: To remove some day.
1331 if test "x$host_alias" != x; then
1332 if test "x$build_alias" = x; then
1333 cross_compiling=maybe
1334 elif test "x$build_alias" != "x$host_alias"; then
1335 cross_compiling=yes
1336 fi
1337 fi
1338
1339 ac_tool_prefix=
1340 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1341
1342 test "$silent" = yes && exec 6>/dev/null
1343
1344
1345 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1346 ac_ls_di=`ls -di .` &&
1347 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1348 as_fn_error $? "working directory cannot be determined"
1349 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1350 as_fn_error $? "pwd does not report name of working directory"
1351
1352
1353 # Find the source files, if location was not specified.
1354 if test -z "$srcdir"; then
1355 ac_srcdir_defaulted=yes
1356 # Try the directory containing this script, then the parent directory.
1357 ac_confdir=`$as_dirname -- "$as_myself" ||
1358 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1359 X"$as_myself" : 'X\(//\)[^/]' \| \
1360 X"$as_myself" : 'X\(//\)$' \| \
1361 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1362 printf "%s\n" X"$as_myself" |
1363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1364 s//\1/
1365 q
1366 }
1367 /^X\(\/\/\)[^/].*/{
1368 s//\1/
1369 q
1370 }
1371 /^X\(\/\/\)$/{
1372 s//\1/
1373 q
1374 }
1375 /^X\(\/\).*/{
1376 s//\1/
1377 q
1378 }
1379 s/.*/./; q'`
1380 srcdir=$ac_confdir
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382 srcdir=..
1383 fi
1384 else
1385 ac_srcdir_defaulted=no
1386 fi
1387 if test ! -r "$srcdir/$ac_unique_file"; then
1388 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1389 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1390 fi
1391 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1392 ac_abs_confdir=`(
1393 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1394 pwd)`
1395 # When building in place, set srcdir=.
1396 if test "$ac_abs_confdir" = "$ac_pwd"; then
1397 srcdir=.
1398 fi
1399 # Remove unnecessary trailing slashes from srcdir.
1400 # Double slashes in file names in object file debugging info
1401 # mess up M-x gdb in Emacs.
1402 case $srcdir in
1403 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1404 esac
1405 for ac_var in $ac_precious_vars; do
1406 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1407 eval ac_env_${ac_var}_value=\$${ac_var}
1408 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1409 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1410 done
1411
1412 #
1413 # Report the --help message.
1414 #
1415 if test "$ac_init_help" = "long"; then
1416 # Omit some internal or obsolete options to make the list less imposing.
1417 # This message is too long to be a string in the A/UX 3.1 sh.
1418 cat <<_ACEOF
1419 \`configure' configures this package to adapt to many kinds of systems.
1420
1421 Usage: $0 [OPTION]... [VAR=VALUE]...
1422
1423 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1424 VAR=VALUE. See below for descriptions of some of the useful variables.
1425
1426 Defaults for the options are specified in brackets.
1427
1428 Configuration:
1429 -h, --help display this help and exit
1430 --help=short display options specific to this package
1431 --help=recursive display the short help of all the included packages
1432 -V, --version display version information and exit
1433 -q, --quiet, --silent do not print \`checking ...' messages
1434 --cache-file=FILE cache test results in FILE [disabled]
1435 -C, --config-cache alias for \`--cache-file=config.cache'
1436 -n, --no-create do not create output files
1437 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1438
1439 Installation directories:
1440 --prefix=PREFIX install architecture-independent files in PREFIX
1441 [$ac_default_prefix]
1442 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1443 [PREFIX]
1444
1445 By default, \`make install' will install all the files in
1446 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1447 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1448 for instance \`--prefix=\$HOME'.
1449
1450 For better control, use the options below.
1451
1452 Fine tuning of the installation directories:
1453 --bindir=DIR user executables [EPREFIX/bin]
1454 --sbindir=DIR system admin executables [EPREFIX/sbin]
1455 --libexecdir=DIR program executables [EPREFIX/libexec]
1456 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1457 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1458 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1459 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1460 --libdir=DIR object code libraries [EPREFIX/lib]
1461 --includedir=DIR C header files [PREFIX/include]
1462 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1463 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1464 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1465 --infodir=DIR info documentation [DATAROOTDIR/info]
1466 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1467 --mandir=DIR man documentation [DATAROOTDIR/man]
1468 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1469 --htmldir=DIR html documentation [DOCDIR]
1470 --dvidir=DIR dvi documentation [DOCDIR]
1471 --pdfdir=DIR pdf documentation [DOCDIR]
1472 --psdir=DIR ps documentation [DOCDIR]
1473 _ACEOF
1474
1475 cat <<\_ACEOF
1476 _ACEOF
1477 fi
1478
1479 if test -n "$ac_init_help"; then
1480
1481 cat <<\_ACEOF
1482
1483 Optional Features:
1484 --disable-option-checking ignore unrecognized --enable/--with options
1485 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1486 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1487 --enable-verbosemake verbose makefile commands
1488 --enable-devel-mode force the devel mode (warnings and warn-error).
1489 --disable-devel-mode force the distrib mode (no warnings and no warn-error).
1490
1491 --enable-landmarks enable landmarks profiling (default: yes if package installed)
1492 --enable-localmachdep enable local machdep configuration
1493 --enable-callgraph support for callgraph plugin (default: yes)
1494 --enable-semantic_constant_folding
1495 support for constant propagation plugin (default: yes)
1496 --enable-from_analysis support for from analysis (default: yes)
1497 --enable-gui support for gui (default: yes)
1498 --enable-impact support for impact plugin (default: yes)
1499 --enable-inout support for inout analysis (default: yes)
1500 --enable-metrics support for metrics analysis (default: yes)
1501 --enable-occurrence support for occurrence analysis (default: yes)
1502 --enable-pdg support for pdg plugin (default: yes)
1503 --enable-postdominators support for postdominators plugin (default: yes)
1504 --enable-reduc support for reduc plugin (default: yes)
1505 --enable-rtegen support for runtime error annotation (default: yes)
1506 --enable-scope support for scope plugin (default: yes)
1507 --enable-slicing support for slicing plugin (default: yes)
1508 --enable-sparecode support for sparecode plugin (default: yes)
1509 --enable-users support for users analysis (default: yes)
1510 --enable-eva support for value analysis (default: yes)
1511 --enable-external=plugin
1512 allows to compile directly from Frama-C kernel
1513 some external plug-ins.
1514 --enable-aorai support for Aorai plug-in (default: yes)
1515 --enable-dive support for Dive plug-in (default: yes)
1516 --enable-e_acsl support for E-ACSL plug-in (default: yes)
1517 --enable-instantiate support for instantiate plug-in (default: yes)
1518 --enable-loop_analysis support for loop analysis plug-in (default: yes)
1519 --enable-mdr Markdown/SARIF report plug-in (default: yes)
1520 --enable-nonterm support for nonterm plug-in (default: yes)
1521 --enable-obfuscator support for Obfuscator plug-in (default: yes)
1522 --enable-print_api support for print_api plug-in (default: yes)
1523 --enable-qed support for qed plug-in (default: yes)
1524 --enable-report support for report plug-in (default: yes)
1525 --enable-security_slicing
1526 support for Security_slicing plug-in (default: yes)
1527 --enable-server Server plug-in (default: yes)
1528 --enable-server-zmq Server ZeroMQ support (default: yes)
1529 --enable-studia support for studia plug-in (default: yes)
1530 --enable-variadic support for variadic plug-in (default: yes)
1531 --enable-wp WP plug-in (default: yes)
1532 --disable-lablgtk3 in case lablgtk2 and lablgtk3 are available, the
1533 default is to compile against lablgtk3. Use this
1534 option to force compiling against lablgtk2
1535
1536 Optional Packages:
1537 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1538 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1539 specifies a custom C compiler and pre-processor
1540 --with-cpp customize default preprocessor for Frama-C
1541 --with-no-plugin disable all plug-ins (default: no)
1542
1543 Some influential environment variables:
1544 CC C compiler command
1545 CFLAGS C compiler flags
1546 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1547 nonstandard directory <lib dir>
1548 LIBS libraries to pass to the linker, e.g. -l<library>
1549 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1550 you have headers in a nonstandard directory <include dir>
1551 CPP C preprocessor
1552
1553 Use these variables to override the choices made by `configure' or to help
1554 it to find libraries and programs with nonstandard names/locations.
1555
1556 Report bugs to the package provider.
1557 _ACEOF
1558 ac_status=$?
1559 fi
1560
1561 if test "$ac_init_help" = "recursive"; then
1562 # If there are subdirs, report their specific --help.
1563 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1564 test -d "$ac_dir" ||
1565 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1566 continue
1567 ac_builddir=.
1568
1569 case "$ac_dir" in
1570 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571 *)
1572 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1573 # A ".." for each directory in $ac_dir_suffix.
1574 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1575 case $ac_top_builddir_sub in
1576 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1577 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1578 esac ;;
1579 esac
1580 ac_abs_top_builddir=$ac_pwd
1581 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1582 # for backward compatibility:
1583 ac_top_builddir=$ac_top_build_prefix
1584
1585 case $srcdir in
1586 .) # We are building in place.
1587 ac_srcdir=.
1588 ac_top_srcdir=$ac_top_builddir_sub
1589 ac_abs_top_srcdir=$ac_pwd ;;
1590 [\\/]* | ?:[\\/]* ) # Absolute name.
1591 ac_srcdir=$srcdir$ac_dir_suffix;
1592 ac_top_srcdir=$srcdir
1593 ac_abs_top_srcdir=$srcdir ;;
1594 *) # Relative name.
1595 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1596 ac_top_srcdir=$ac_top_build_prefix$srcdir
1597 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1598 esac
1599 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1600
1601 cd "$ac_dir" || { ac_status=$?; continue; }
1602 # Check for configure.gnu first; this name is used for a wrapper for
1603 # Metaconfig's "Configure" on case-insensitive file systems.
1604 if test -f "$ac_srcdir/configure.gnu"; then
1605 echo &&
1606 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1607 elif test -f "$ac_srcdir/configure"; then
1608 echo &&
1609 $SHELL "$ac_srcdir/configure" --help=recursive
1610 else
1611 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1612 fi || ac_status=$?
1613 cd "$ac_pwd" || { ac_status=$?; break; }
1614 done
1615 fi
1616
1617 test -n "$ac_init_help" && exit $ac_status
1618 if $ac_init_version; then
1619 cat <<\_ACEOF
1620 configure
1621 generated by GNU Autoconf 2.71
1622
1623 Copyright (C) 2021 Free Software Foundation, Inc.
1624 This configure script is free software; the Free Software Foundation
1625 gives unlimited permission to copy, distribute and modify it.
1626 _ACEOF
1627 exit
1628 fi
1629
1630 ## ------------------------ ##
1631 ## Autoconf initialization. ##
1632 ## ------------------------ ##
1633
1634 # ac_fn_c_try_compile LINENO
1635 # --------------------------
1636 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1637 ac_fn_c_try_compile ()
1638 {
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 rm -f conftest.$ac_objext conftest.beam
1641 if { { ac_try="$ac_compile"
1642 case "(($ac_try" in
1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644 *) ac_try_echo=$ac_try;;
1645 esac
1646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647 printf "%s\n" "$ac_try_echo"; } >&5
1648 (eval "$ac_compile") 2>conftest.err
1649 ac_status=$?
1650 if test -s conftest.err; then
1651 grep -v '^ *+' conftest.err >conftest.er1
1652 cat conftest.er1 >&5
1653 mv -f conftest.er1 conftest.err
1654 fi
1655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656 test $ac_status = 0; } && {
1657 test -z "$ac_c_werror_flag" ||
1658 test ! -s conftest.err
1659 } && test -s conftest.$ac_objext
1660 then :
1661 ac_retval=0
1662 else $as_nop
1663 printf "%s\n" "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1665
1666 ac_retval=1
1667 fi
1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669 as_fn_set_status $ac_retval
1670
1671 } # ac_fn_c_try_compile
1672
1673 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1674 # -------------------------------------------------------
1675 # Tests whether HEADER exists and can be compiled using the include files in
1676 # INCLUDES, setting the cache variable VAR accordingly.
1677 ac_fn_c_check_header_compile ()
1678 {
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1681 printf %s "checking for $2... " >&6; }
1682 if eval test \${$3+y}
1683 then :
1684 printf %s "(cached) " >&6
1685 else $as_nop
1686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687 /* end confdefs.h. */
1688 $4
1689 #include <$2>
1690 _ACEOF
1691 if ac_fn_c_try_compile "$LINENO"
1692 then :
1693 eval "$3=yes"
1694 else $as_nop
1695 eval "$3=no"
1696 fi
1697 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1698 fi
1699 eval ac_res=\$$3
1700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1701 printf "%s\n" "$ac_res" >&6; }
1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703
1704 } # ac_fn_c_check_header_compile
1705
1706 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1707 # -------------------------------------------
1708 # Tests whether TYPE exists after having included INCLUDES, setting cache
1709 # variable VAR accordingly.
1710 ac_fn_c_check_type ()
1711 {
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1714 printf %s "checking for $2... " >&6; }
1715 if eval test \${$3+y}
1716 then :
1717 printf %s "(cached) " >&6
1718 else $as_nop
1719 eval "$3=no"
1720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721 /* end confdefs.h. */
1722 $4
1723 int
1724 main (void)
1725 {
1726 if (sizeof ($2))
1727 return 0;
1728 ;
1729 return 0;
1730 }
1731 _ACEOF
1732 if ac_fn_c_try_compile "$LINENO"
1733 then :
1734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1735 /* end confdefs.h. */
1736 $4
1737 int
1738 main (void)
1739 {
1740 if (sizeof (($2)))
1741 return 0;
1742 ;
1743 return 0;
1744 }
1745 _ACEOF
1746 if ac_fn_c_try_compile "$LINENO"
1747 then :
1748
1749 else $as_nop
1750 eval "$3=yes"
1751 fi
1752 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1753 fi
1754 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1755 fi
1756 eval ac_res=\$$3
1757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1758 printf "%s\n" "$ac_res" >&6; }
1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760
1761 } # ac_fn_c_check_type
1762
1763 # ac_fn_c_try_link LINENO
1764 # -----------------------
1765 # Try to link conftest.$ac_ext, and return whether this succeeded.
1766 ac_fn_c_try_link ()
1767 {
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1770 if { { ac_try="$ac_link"
1771 case "(($ac_try" in
1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773 *) ac_try_echo=$ac_try;;
1774 esac
1775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776 printf "%s\n" "$ac_try_echo"; } >&5
1777 (eval "$ac_link") 2>conftest.err
1778 ac_status=$?
1779 if test -s conftest.err; then
1780 grep -v '^ *+' conftest.err >conftest.er1
1781 cat conftest.er1 >&5
1782 mv -f conftest.er1 conftest.err
1783 fi
1784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; } && {
1786 test -z "$ac_c_werror_flag" ||
1787 test ! -s conftest.err
1788 } && test -s conftest$ac_exeext && {
1789 test "$cross_compiling" = yes ||
1790 test -x conftest$ac_exeext
1791 }
1792 then :
1793 ac_retval=0
1794 else $as_nop
1795 printf "%s\n" "$as_me: failed program was:" >&5
1796 sed 's/^/| /' conftest.$ac_ext >&5
1797
1798 ac_retval=1
1799 fi
1800 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1801 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1802 # interfere with the next link command; also delete a directory that is
1803 # left behind by Apple's compiler. We do this before executing the actions.
1804 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806 as_fn_set_status $ac_retval
1807
1808 } # ac_fn_c_try_link
1809
1810 # ac_fn_c_try_cpp LINENO
1811 # ----------------------
1812 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1813 ac_fn_c_try_cpp ()
1814 {
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 if { { ac_try="$ac_cpp conftest.$ac_ext"
1817 case "(($ac_try" in
1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1820 esac
1821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822 printf "%s\n" "$ac_try_echo"; } >&5
1823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1824 ac_status=$?
1825 if test -s conftest.err; then
1826 grep -v '^ *+' conftest.err >conftest.er1
1827 cat conftest.er1 >&5
1828 mv -f conftest.er1 conftest.err
1829 fi
1830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831 test $ac_status = 0; } > conftest.i && {
1832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1833 test ! -s conftest.err
1834 }
1835 then :
1836 ac_retval=0
1837 else $as_nop
1838 printf "%s\n" "$as_me: failed program was:" >&5
1839 sed 's/^/| /' conftest.$ac_ext >&5
1840
1841 ac_retval=1
1842 fi
1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844 as_fn_set_status $ac_retval
1845
1846 } # ac_fn_c_try_cpp
1847 ac_configure_args_raw=
1848 for ac_arg
1849 do
1850 case $ac_arg in
1851 *\'*)
1852 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1853 esac
1854 as_fn_append ac_configure_args_raw " '$ac_arg'"
1855 done
1856
1857 case $ac_configure_args_raw in
1858 *$as_nl*)
1859 ac_safe_unquote= ;;
1860 *)
1861 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1862 ac_unsafe_a="$ac_unsafe_z#~"
1863 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1864 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1865 esac
1866
1867 cat >config.log <<_ACEOF
1868 This file contains any messages produced by compilers while
1869 running configure, to aid debugging if configure makes a mistake.
1870
1871 It was created by $as_me, which was
1872 generated by GNU Autoconf 2.71. Invocation command line was
1873
1874 $ $0$ac_configure_args_raw
1875
1876 _ACEOF
1877 exec 5>>config.log
1878 {
1879 cat <<_ASUNAME
1880 ## --------- ##
1881 ## Platform. ##
1882 ## --------- ##
1883
1884 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1885 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1886 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1887 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1888 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1889
1890 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1891 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1892
1893 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1894 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1895 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1896 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1897 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1898 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1899 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1900
1901 _ASUNAME
1902
1903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1904 for as_dir in $PATH
1905 do
1906 IFS=$as_save_IFS
1907 case $as_dir in #(((
1908 '') as_dir=./ ;;
1909 */) ;;
1910 *) as_dir=$as_dir/ ;;
1911 esac
1912 printf "%s\n" "PATH: $as_dir"
1913 done
1914 IFS=$as_save_IFS
1915
1916 } >&5
1917
1918 cat >&5 <<_ACEOF
1919
1920
1921 ## ----------- ##
1922 ## Core tests. ##
1923 ## ----------- ##
1924
1925 _ACEOF
1926
1927
1928 # Keep a trace of the command line.
1929 # Strip out --no-create and --no-recursion so they do not pile up.
1930 # Strip out --silent because we don't want to record it for future runs.
1931 # Also quote any args containing shell meta-characters.
1932 # Make two passes to allow for proper duplicate-argument suppression.
1933 ac_configure_args=
1934 ac_configure_args0=
1935 ac_configure_args1=
1936 ac_must_keep_next=false
1937 for ac_pass in 1 2
1938 do
1939 for ac_arg
1940 do
1941 case $ac_arg in
1942 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1943 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1944 | -silent | --silent | --silen | --sile | --sil)
1945 continue ;;
1946 *\'*)
1947 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1948 esac
1949 case $ac_pass in
1950 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1951 2)
1952 as_fn_append ac_configure_args1 " '$ac_arg'"
1953 if test $ac_must_keep_next = true; then
1954 ac_must_keep_next=false # Got value, back to normal.
1955 else
1956 case $ac_arg in
1957 *=* | --config-cache | -C | -disable-* | --disable-* \
1958 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1959 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1960 | -with-* | --with-* | -without-* | --without-* | --x)
1961 case "$ac_configure_args0 " in
1962 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1963 esac
1964 ;;
1965 -* ) ac_must_keep_next=true ;;
1966 esac
1967 fi
1968 as_fn_append ac_configure_args " '$ac_arg'"
1969 ;;
1970 esac
1971 done
1972 done
1973 { ac_configure_args0=; unset ac_configure_args0;}
1974 { ac_configure_args1=; unset ac_configure_args1;}
1975
1976 # When interrupted or exit'd, cleanup temporary files, and complete
1977 # config.log. We remove comments because anyway the quotes in there
1978 # would cause problems or look ugly.
1979 # WARNING: Use '\'' to represent an apostrophe within the trap.
1980 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1981 trap 'exit_status=$?
1982 # Sanitize IFS.
1983 IFS=" "" $as_nl"
1984 # Save into config.log some information that might help in debugging.
1985 {
1986 echo
1987
1988 printf "%s\n" "## ---------------- ##
1989 ## Cache variables. ##
1990 ## ---------------- ##"
1991 echo
1992 # The following way of writing the cache mishandles newlines in values,
1993 (
1994 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1995 eval ac_val=\$$ac_var
1996 case $ac_val in #(
1997 *${as_nl}*)
1998 case $ac_var in #(
1999 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2000 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2001 esac
2002 case $ac_var in #(
2003 _ | IFS | as_nl) ;; #(
2004 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2005 *) { eval $ac_var=; unset $ac_var;} ;;
2006 esac ;;
2007 esac
2008 done
2009 (set) 2>&1 |
2010 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2011 *${as_nl}ac_space=\ *)
2012 sed -n \
2013 "s/'\''/'\''\\\\'\'''\''/g;
2014 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2015 ;; #(
2016 *)
2017 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2018 ;;
2019 esac |
2020 sort
2021 )
2022 echo
2023
2024 printf "%s\n" "## ----------------- ##
2025 ## Output variables. ##
2026 ## ----------------- ##"
2027 echo
2028 for ac_var in $ac_subst_vars
2029 do
2030 eval ac_val=\$$ac_var
2031 case $ac_val in
2032 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2033 esac
2034 printf "%s\n" "$ac_var='\''$ac_val'\''"
2035 done | sort
2036 echo
2037
2038 if test -n "$ac_subst_files"; then
2039 printf "%s\n" "## ------------------- ##
2040 ## File substitutions. ##
2041 ## ------------------- ##"
2042 echo
2043 for ac_var in $ac_subst_files
2044 do
2045 eval ac_val=\$$ac_var
2046 case $ac_val in
2047 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2048 esac
2049 printf "%s\n" "$ac_var='\''$ac_val'\''"
2050 done | sort
2051 echo
2052 fi
2053
2054 if test -s confdefs.h; then
2055 printf "%s\n" "## ----------- ##
2056 ## confdefs.h. ##
2057 ## ----------- ##"
2058 echo
2059 cat confdefs.h
2060 echo
2061 fi
2062 test "$ac_signal" != 0 &&
2063 printf "%s\n" "$as_me: caught signal $ac_signal"
2064 printf "%s\n" "$as_me: exit $exit_status"
2065 } >&5
2066 rm -f core *.core core.conftest.* &&
2067 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2068 exit $exit_status
2069 ' 0
2070 for ac_signal in 1 2 13 15; do
2071 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2072 done
2073 ac_signal=0
2074
2075 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2076 rm -f -r conftest* confdefs.h
2077
2078 printf "%s\n" "/* confdefs.h */" > confdefs.h
2079
2080 # Predefined preprocessor variables.
2081
2082 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2083
2084 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2085
2086 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2087
2088 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2089
2090 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2091
2092 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2093
2094
2095 # Let the site file select an alternate cache file if it wants to.
2096 # Prefer an explicitly selected file to automatically selected ones.
2097 if test -n "$CONFIG_SITE"; then
2098 ac_site_files="$CONFIG_SITE"
2099 elif test "x$prefix" != xNONE; then
2100 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2101 else
2102 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2103 fi
2104
2105 for ac_site_file in $ac_site_files
2106 do
2107 case $ac_site_file in #(
2108 */*) :
2109 ;; #(
2110 *) :
2111 ac_site_file=./$ac_site_file ;;
2112 esac
2113 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2115 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2116 sed 's/^/| /' "$ac_site_file" >&5
2117 . "$ac_site_file" \
2118 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2119 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2120 as_fn_error $? "failed to load site script $ac_site_file
2121 See \`config.log' for more details" "$LINENO" 5; }
2122 fi
2123 done
2124
2125 if test -r "$cache_file"; then
2126 # Some versions of bash will fail to source /dev/null (special files
2127 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2128 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2130 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2131 case $cache_file in
2132 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2133 *) . "./$cache_file";;
2134 esac
2135 fi
2136 else
2137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2138 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2139 >$cache_file
2140 fi
2141
2142 # Test code for whether the C compiler supports C89 (global declarations)
2143 ac_c_conftest_c89_globals='
2144 /* Does the compiler advertise C89 conformance?
2145 Do not test the value of __STDC__, because some compilers set it to 0
2146 while being otherwise adequately conformant. */
2147 #if !defined __STDC__
2148 # error "Compiler does not advertise C89 conformance"
2149 #endif
2150
2151 #include <stddef.h>
2152 #include <stdarg.h>
2153 struct stat;
2154 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2155 struct buf { int x; };
2156 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2157 static char *e (p, i)
2158 char **p;
2159 int i;
2160 {
2161 return p[i];
2162 }
2163 static char *f (char * (*g) (char **, int), char **p, ...)
2164 {
2165 char *s;
2166 va_list v;
2167 va_start (v,p);
2168 s = g (p, va_arg (v,int));
2169 va_end (v);
2170 return s;
2171 }
2172
2173 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2174 function prototypes and stuff, but not \xHH hex character constants.
2175 These do not provoke an error unfortunately, instead are silently treated
2176 as an "x". The following induces an error, until -std is added to get
2177 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2178 array size at least. It is necessary to write \x00 == 0 to get something
2179 that is true only with -std. */
2180 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2181
2182 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2183 inside strings and character constants. */
2184 #define FOO(x) '\''x'\''
2185 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2186
2187 int test (int i, double x);
2188 struct s1 {int (*f) (int a);};
2189 struct s2 {int (*f) (double a);};
2190 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2191 int, int);'
2192
2193 # Test code for whether the C compiler supports C89 (body of main).
2194 ac_c_conftest_c89_main='
2195 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2196 '
2197
2198 # Test code for whether the C compiler supports C99 (global declarations)
2199 ac_c_conftest_c99_globals='
2200 // Does the compiler advertise C99 conformance?
2201 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2202 # error "Compiler does not advertise C99 conformance"
2203 #endif
2204
2205 #include <stdbool.h>
2206 extern int puts (const char *);
2207 extern int printf (const char *, ...);
2208 extern int dprintf (int, const char *, ...);
2209 extern void *malloc (size_t);
2210
2211 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2212 // dprintf is used instead of fprintf to avoid needing to declare
2213 // FILE and stderr.
2214 #define debug(...) dprintf (2, __VA_ARGS__)
2215 #define showlist(...) puts (#__VA_ARGS__)
2216 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2217 static void
2218 test_varargs_macros (void)
2219 {
2220 int x = 1234;
2221 int y = 5678;
2222 debug ("Flag");
2223 debug ("X = %d\n", x);
2224 showlist (The first, second, and third items.);
2225 report (x>y, "x is %d but y is %d", x, y);
2226 }
2227
2228 // Check long long types.
2229 #define BIG64 18446744073709551615ull
2230 #define BIG32 4294967295ul
2231 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2232 #if !BIG_OK
2233 #error "your preprocessor is broken"
2234 #endif
2235 #if BIG_OK
2236 #else
2237 #error "your preprocessor is broken"
2238 #endif
2239 static long long int bignum = -9223372036854775807LL;
2240 static unsigned long long int ubignum = BIG64;
2241
2242 struct incomplete_array
2243 {
2244 int datasize;
2245 double data[];
2246 };
2247
2248 struct named_init {
2249 int number;
2250 const wchar_t *name;
2251 double average;
2252 };
2253
2254 typedef const char *ccp;
2255
2256 static inline int
2257 test_restrict (ccp restrict text)
2258 {
2259 // See if C++-style comments work.
2260 // Iterate through items via the restricted pointer.
2261 // Also check for declarations in for loops.
2262 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2263 continue;
2264 return 0;
2265 }
2266
2267 // Check varargs and va_copy.
2268 static bool
2269 test_varargs (const char *format, ...)
2270 {
2271 va_list args;
2272 va_start (args, format);
2273 va_list args_copy;
2274 va_copy (args_copy, args);
2275
2276 const char *str = "";
2277 int number = 0;
2278 float fnumber = 0;
2279
2280 while (*format)
2281 {
2282 switch (*format++)
2283 {
2284 case '\''s'\'': // string
2285 str = va_arg (args_copy, const char *);
2286 break;
2287 case '\''d'\'': // int
2288 number = va_arg (args_copy, int);
2289 break;
2290 case '\''f'\'': // float
2291 fnumber = va_arg (args_copy, double);
2292 break;
2293 default:
2294 break;
2295 }
2296 }
2297 va_end (args_copy);
2298 va_end (args);
2299
2300 return *str && number && fnumber;
2301 }
2302 '
2303
2304 # Test code for whether the C compiler supports C99 (body of main).
2305 ac_c_conftest_c99_main='
2306 // Check bool.
2307 _Bool success = false;
2308 success |= (argc != 0);
2309
2310 // Check restrict.
2311 if (test_restrict ("String literal") == 0)
2312 success = true;
2313 char *restrict newvar = "Another string";
2314
2315 // Check varargs.
2316 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2317 test_varargs_macros ();
2318
2319 // Check flexible array members.
2320 struct incomplete_array *ia =
2321 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2322 ia->datasize = 10;
2323 for (int i = 0; i < ia->datasize; ++i)
2324 ia->data[i] = i * 1.234;
2325
2326 // Check named initializers.
2327 struct named_init ni = {
2328 .number = 34,
2329 .name = L"Test wide string",
2330 .average = 543.34343,
2331 };
2332
2333 ni.number = 58;
2334
2335 int dynamic_array[ni.number];
2336 dynamic_array[0] = argv[0][0];
2337 dynamic_array[ni.number - 1] = 543;
2338
2339 // work around unused variable warnings
2340 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2341 || dynamic_array[ni.number - 1] != 543);
2342 '
2343
2344 # Test code for whether the C compiler supports C11 (global declarations)
2345 ac_c_conftest_c11_globals='
2346 // Does the compiler advertise C11 conformance?
2347 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2348 # error "Compiler does not advertise C11 conformance"
2349 #endif
2350
2351 // Check _Alignas.
2352 char _Alignas (double) aligned_as_double;
2353 char _Alignas (0) no_special_alignment;
2354 extern char aligned_as_int;
2355 char _Alignas (0) _Alignas (int) aligned_as_int;
2356
2357 // Check _Alignof.
2358 enum
2359 {
2360 int_alignment = _Alignof (int),
2361 int_array_alignment = _Alignof (int[100]),
2362 char_alignment = _Alignof (char)
2363 };
2364 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2365
2366 // Check _Noreturn.
2367 int _Noreturn does_not_return (void) { for (;;) continue; }
2368
2369 // Check _Static_assert.
2370 struct test_static_assert
2371 {
2372 int x;
2373 _Static_assert (sizeof (int) <= sizeof (long int),
2374 "_Static_assert does not work in struct");
2375 long int y;
2376 };
2377
2378 // Check UTF-8 literals.
2379 #define u8 syntax error!
2380 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2381
2382 // Check duplicate typedefs.
2383 typedef long *long_ptr;
2384 typedef long int *long_ptr;
2385 typedef long_ptr long_ptr;
2386
2387 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2388 struct anonymous
2389 {
2390 union {
2391 struct { int i; int j; };
2392 struct { int k; long int l; } w;
2393 };
2394 int m;
2395 } v1;
2396 '
2397
2398 # Test code for whether the C compiler supports C11 (body of main).
2399 ac_c_conftest_c11_main='
2400 _Static_assert ((offsetof (struct anonymous, i)
2401 == offsetof (struct anonymous, w.k)),
2402 "Anonymous union alignment botch");
2403 v1.i = 2;
2404 v1.w.k = 5;
2405 ok |= v1.i != 5;
2406 '
2407
2408 # Test code for whether the C compiler supports C11 (complete).
2409 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2410 ${ac_c_conftest_c99_globals}
2411 ${ac_c_conftest_c11_globals}
2412
2413 int
2414 main (int argc, char **argv)
2415 {
2416 int ok = 0;
2417 ${ac_c_conftest_c89_main}
2418 ${ac_c_conftest_c99_main}
2419 ${ac_c_conftest_c11_main}
2420 return ok;
2421 }
2422 "
2423
2424 # Test code for whether the C compiler supports C99 (complete).
2425 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2426 ${ac_c_conftest_c99_globals}
2427
2428 int
2429 main (int argc, char **argv)
2430 {
2431 int ok = 0;
2432 ${ac_c_conftest_c89_main}
2433 ${ac_c_conftest_c99_main}
2434 return ok;
2435 }
2436 "
2437
2438 # Test code for whether the C compiler supports C89 (complete).
2439 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2440
2441 int
2442 main (int argc, char **argv)
2443 {
2444 int ok = 0;
2445 ${ac_c_conftest_c89_main}
2446 return ok;
2447 }
2448 "
2449
2450 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2451 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2452 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2453 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2454 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2455 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2456 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2457 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2458 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2459 # Check that the precious variables saved in the cache have kept the same
2460 # value.
2461 ac_cache_corrupted=false
2462 for ac_var in $ac_precious_vars; do
2463 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2464 eval ac_new_set=\$ac_env_${ac_var}_set
2465 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2466 eval ac_new_val=\$ac_env_${ac_var}_value
2467 case $ac_old_set,$ac_new_set in
2468 set,)
2469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2470 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2471 ac_cache_corrupted=: ;;
2472 ,set)
2473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2474 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2475 ac_cache_corrupted=: ;;
2476 ,);;
2477 *)
2478 if test "x$ac_old_val" != "x$ac_new_val"; then
2479 # differences in whitespace do not lead to failure.
2480 ac_old_val_w=`echo x $ac_old_val`
2481 ac_new_val_w=`echo x $ac_new_val`
2482 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2484 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2485 ac_cache_corrupted=:
2486 else
2487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2488 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2489 eval $ac_var=\$ac_old_val
2490 fi
2491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2492 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2494 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2495 fi;;
2496 esac
2497 # Pass precious variables to config.status.
2498 if test "$ac_new_set" = set; then
2499 case $ac_new_val in
2500 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2501 *) ac_arg=$ac_var=$ac_new_val ;;
2502 esac
2503 case " $ac_configure_args " in
2504 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2505 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2506 esac
2507 fi
2508 done
2509 if $ac_cache_corrupted; then
2510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2511 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2513 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2514 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2515 and start over" "$LINENO" 5
2516 fi
2517 ## -------------------- ##
2518 ## Main body of script. ##
2519 ## -------------------- ##
2520
2521 ac_ext=c
2522 ac_cpp='$CPP $CPPFLAGS'
2523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2526
2527
2528
2529
2530 ##########################################################################
2531 # #
2532 # This file is part of Frama-C. #
2533 # #
2534 # Copyright (C) 2007-2022 #
2535 # CEA (Commissariat à l'énergie atomique et aux énergies #
2536 # alternatives) #
2537 # #
2538 # you can redistribute it and/or modify it under the terms of the GNU #
2539 # Lesser General Public License as published by the Free Software #
2540 # Foundation, version 2.1. #
2541 # #
2542 # It is distributed in the hope that it will be useful, #
2543 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
2544 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
2545 # GNU Lesser General Public License for more details. #
2546 # #
2547 # See the GNU Lesser General Public License version 2.1 #
2548 # for more details (enclosed in the file licenses/LGPLv2.1). #
2549 # #
2550 ##########################################################################
2551
2552 # AC_ARG_WITH(frama-c,
2553 # AC_HELP_STRING([Frama-C executable name (default is 'frama-c')]),
2554 # [FRAMA_C=$withval],
2555 # [FRAMA_C=frama-c])
2556
2557 # AC_ARG_WITH(frama-c-gui,
2558 # AC_HELP_STRING([Frama-C executable name (default is 'frama-c')]),
2559 # [FRAMA_C_GUI=$withval],
2560 # [FRAMA_C_GUI=frama-c-gui])
2561
2562
2563
2564
2565
2566 upper() {
2567 echo "$1" | tr "a-z-" "A-Z_"
2568 }
2569
2570 lower() {
2571 echo "$1" | tr "A-Z" "a-z"
2572 }
2573
2574
2575
2576 new_section() {
2577 banner=`echo "* $1 *" | sed -e 's/./*/g'`
2578 title=`echo "* $1 *" | tr "a-z" "A-Z"`
2579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $banner" >&5
2580 printf "%s\n" "$as_me: $banner" >&6;}
2581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $title" >&5
2582 printf "%s\n" "$as_me: $title" >&6;}
2583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $banner" >&5
2584 printf "%s\n" "$as_me: $banner" >&6;}
2585 }
2586
2587
2588
2589 # sadly, there's no way to define a new diversion beside the internal ones.
2590 # hoping for the best here...
2591
2592
2593
2594
2595 # to distinguish internal plugins, known by the main configure, from
2596 # purely external plugins living in src/ and compiled together with the main
2597 # frama-c
2598
2599
2600
2601 # end of check_plugin
2602
2603 # 1st param: uppercase name of the library
2604 # 2nd param: file which must exist. This parameter can be a list of files.
2605 # In this case, they will be tried in turn until one of them exists. The
2606 # name of the file found will be put in the variable SELECTED_$1
2607 # 3d param: warning to display if problem
2608 # 4th param: yes iff checking the library must always to be done
2609 # (even if there is no plug-in using it)
2610
2611
2612 # 1st param: actual name of the ocamlfind package (often lowercase)
2613 # 2nd param: warning to display if problem
2614
2615
2616 # 1st param: uppercase name of the program
2617 # 2nd param: program which must exist. See comment on configure_library()
2618 # on how to deal with multiple choices for a given program.
2619 # 3d param: warning to display if problem
2620 # 4th param: yes iff checking the tool must always to be done
2621 # (even if there is no plug-in using it)
2622
2623
2624
2625 EXTERNAL_PLUGINS=
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639 # Usage: plugin_disable([plugin],[reason])
2640
2641
2642
2643
2644
2645 # Implementation of an ordering $1 < $2: "" < yes < partial < no
2646 lt_mark () {
2647 first=`echo "$1" | sed -e 's/ .*//' `
2648 second=`echo "$2" | sed -e 's/ .*//' `
2649 case $first in
2650 "") echo "true";;
2651 "yes"*)
2652 case $second in
2653 "yes") echo "";;
2654 "partial" | "no") echo "true";;
2655 esac;;
2656 "partial"*)
2657 case $second in
2658 "yes" | "partial") echo "";;
2659 "no") echo "true";;
2660 esac;;
2661 "no"*) echo "";;
2662 esac
2663 }
2664
2665 # Check and propagate marks to requires and users.
2666 # $1: parent plugin
2667 # $2: mark to propagate to requires
2668 # $3: mark to propagate to users
2669 check_and_propagate () {
2670 # for each requires
2671 r=REQUIRE_$1
2672 eval require="\$$r"
2673 for p in $require; do
2674 up=`upper "$p"`
2675 m=MARK_"$up"
2676 eval mark="\$$m"
2677 if test -z "$mark"; then
2678 m=ENABLE_"$up"
2679 eval mark="\$$m"
2680 fi
2681 if test `lt_mark "$mark" "$2" `; then
2682 # update marks
2683 eval MARK_$up=\"$2\";
2684 TODOLIST=$TODOLIST" "$p
2685 # display a warning or an error if required
2686 short_mark=`echo $2 | sed -e 's/ .*//'`
2687 lp=`lower $p`
2688 reason=`echo $2 | sed -e 's/no (\(.*\))/\1/' `
2689 if test "$short_mark" = "no"; then
2690 fp=FORCE_"$up"
2691 if eval test "\$$fp" = "yes"; then
2692 as_fn_error $? "$lp requested but $reason." "$LINENO" 5
2693 else
2694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $lp disabled because $reason." >&5
2695 printf "%s\n" "$as_me: WARNING: $lp disabled because $reason." >&2;}
2696 fi
2697 else
2698 if test "$short_mark" = "partial"; then
2699 reason=`echo $2 | sed -e 's/partial (\(.*\))/\1/' `
2700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $lp only partially enable because $reason." >&5
2701 printf "%s\n" "$as_me: WARNING: $lp only partially enable because $reason." >&2;}
2702 fi
2703 fi
2704 eval INFO_$up=\", $reason\"
2705 fi
2706 done
2707 # for each users
2708 u=USE_$1
2709 eval use="\$$u"
2710 for p in $use; do
2711 up=`upper "$p"`
2712 m=MARK_$up
2713 eval mark="\$$m"
2714 if test -z "$mark"; then
2715 m=ENABLE_"$up"
2716 eval mark="\$$m"
2717 fi
2718 if test `lt_mark "$mark" "$3" `; then
2719 # update marks
2720 eval MARK_$up=\"$3\";
2721 TODOLIST=$TODOLIST" "$p
2722 # display a warning if required
2723 lp=`lower $p`
2724 reason=`echo $3 | sed -e 's/partial (\(.*\))/\1/' `
2725 if test "$reason" != "$3"; then
2726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $lp only partially enabled because $reason." >&5
2727 printf "%s\n" "$as_me: WARNING: $lp only partially enabled because $reason." >&2;}
2728 fi
2729 eval INFO_$up=\", $reason\"
2730 fi
2731 done
2732 }
2733
2734 # checks direct dependencies of a plugin. Useful for dynamic plugins which
2735 # have a dependency toward already installed (or not) plug-ins, since the old
2736 # plugins are not in the TODO list from the beginning (and need not their
2737 # mutual dependencies be rechecked anyway
2738 check_required_used () {
2739 ep=ENABLE_$1
2740 eval enabled=\$$ep
2741
2742 if test "$enabled" != "no"; then
2743
2744 r=REQUIRED_$1
2745 u=USED_$1
2746 m=MARK_$1
2747 eval required=\$$r
2748 eval used=\$$u
2749 eval $m=yes
2750
2751 reason=
2752
2753 for p in $required; do
2754 up=`upper $p`
2755 ec=ENABLE_$up
2756 eval enabled=\$$ec
2757 case `echo "$enabled" | sed -e 's/ .*//'` in
2758 "") reason="$p unknown";;
2759 "yes" | "partial");;
2760 "no") reason="$p not enabled";;
2761 esac
2762 done
2763 if test -n "$reason"; then
2764 eval $m=\"no\ \($reason\)\"
2765 p_name=`lower $1`
2766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $p_name disabled because $reason." >&5
2767 printf "%s\n" "$as_me: WARNING: $p_name disabled because $reason." >&2;}
2768 eval INFO_$1=\", $reason\"
2769 else
2770 for p in $used; do
2771 up=`upper $p`
2772 ec=ENABLE_$up
2773 eval enabled=\$$ec
2774 case `echo "$enabled" | sed -e 's/ .*//'` in
2775 "") reason="$p unknown";;
2776 "yes" | "partial");;
2777 "no") reason="$p not enabled";;
2778 esac
2779 done
2780 if test -n "$reason"; then
2781 eval $m=\"partial\ \($reason\)\"
2782 p_name=`lower $1`
2783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $p_name partially enabled because $reason." >&5
2784 printf "%s\n" "$as_me: WARNING: $p_name partially enabled because $reason." >&2;}
2785 eval INFO_$1=\", $reason\"
2786 fi
2787 fi
2788
2789 else # $enabled = "no"
2790 eval $m=\"no\"
2791 fi
2792 }
2793
2794 # Recursively check the plug-in dependencies using the plug-in dependency graph
2795 compute_dependency () {
2796 plugin=`echo $TODOLIST | sed -e 's/ .*//' `
2797 TODOLIST=`echo $TODOLIST | sed -e 's/[^ ]* *\(.*\)/\1/' `
2798
2799 lplugin=`lower "$plugin"`
2800 uplugin=`upper "$plugin"`
2801 # new mark to consider
2802 m=MARK_$uplugin
2803 eval mark="\$$m"
2804 # old mark to consider
2805 r=REMEMBER_$uplugin
2806 eval remember="\$$r"
2807 # the exact mark (final result),
2808 # also the old mark if plugin already visited
2809 e=ENABLE_$uplugin
2810 eval enable="\$$e"
2811 #first visit. Performs additional checks over requirements.
2812 if test -z "$mark"; then
2813 check_required_used "$uplugin";
2814 eval mark=\$$m
2815 fi
2816
2817 # echo "plug-in $lplugin (mark=$mark, remember=$remember, enable=$enable)"
2818 if test `lt_mark "$remember" "$mark"`; then
2819 # visit the current plugin:
2820 # mark <- max(mark, enable)
2821 case `echo "$mark" | sed -e 's/ .*//' ` in
2822 "") echo "problem?"; exit 3;;
2823 "yes")
2824 if test -n "$enable"; then mark="$enable"; else mark="yes"; fi;;
2825 "partial") if test "$enable" = "no"; then mark="no"; fi;;
2826 "no") ;;
2827 esac
2828 # update plug-in attributes with the new mark
2829 # echo "update attributes with $mark"
2830 eval $m=\"$mark\"
2831 eval $e=\"`echo "$mark" | sed -e 's/ .*//' `\"
2832 enable="$mark"
2833 eval $r=\"$mark\"
2834 # compute and propagate a new mark to requires and users
2835 case `echo "$enable" | sed -e 's/ .*//' ` in
2836 "") echo "problem?"; exit 3;;
2837 "yes") check_and_propagate $uplugin "yes" "yes";;
2838 "partial")
2839 # if a plug-in is partial, does not consider its dependencies as partial
2840 # so the second argument is "yes" and not "partial"
2841 check_and_propagate \
2842 "$uplugin" \
2843 "yes" \
2844 "yes";;
2845 "no")
2846 check_and_propagate \
2847 "$uplugin" \
2848 "no ($lplugin not enabled)" \
2849 "partial ($lplugin not enabled)";;
2850 esac
2851 fi
2852 # recursively consider the next plugins
2853 if test -n "$TODOLIST"; then
2854 compute_dependency;
2855 fi
2856 }
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869 FRAMAC_VERSION=`cat VERSION`
2870
2871
2872 # export CYGWIN=nobinmode
2873
2874 ##########################
2875 # Check for Make version #
2876 ##########################
2877
2878 new_section "configure make"
2879
2880 for ac_prog in gmake make
2881 do
2882 # Extract the first word of "$ac_prog", so it can be a program name with args.
2883 set dummy $ac_prog; ac_word=$2
2884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2885 printf %s "checking for $ac_word... " >&6; }
2886 if test ${ac_cv_prog_MAKE+y}
2887 then :
2888 printf %s "(cached) " >&6
2889 else $as_nop
2890 if test -n "$MAKE"; then
2891 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
2892 else
2893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 for as_dir in $PATH
2895 do
2896 IFS=$as_save_IFS
2897 case $as_dir in #(((
2898 '') as_dir=./ ;;
2899 */) ;;
2900 *) as_dir=$as_dir/ ;;
2901 esac
2902 for ac_exec_ext in '' $ac_executable_extensions; do
2903 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2904 ac_cv_prog_MAKE="$ac_prog"
2905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2906 break 2
2907 fi
2908 done
2909 done
2910 IFS=$as_save_IFS
2911
2912 fi
2913 fi
2914 MAKE=$ac_cv_prog_MAKE
2915 if test -n "$MAKE"; then
2916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
2917 printf "%s\n" "$MAKE" >&6; }
2918 else
2919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920 printf "%s\n" "no" >&6; }
2921 fi
2922
2923
2924 test -n "$MAKE" && break
2925 done
2926 test -n "$MAKE" || MAKE="make"
2927
2928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of make" >&5
2929 printf %s "checking version of make... " >&6; }
2930 MAKE_DISTRIB=`sh -c "$MAKE -v | sed -n -e 's/\(.*\) Make.*$/\1/p'"`
2931 MAKE_MAJOR=`sh -c "$MAKE -v | sed -n -f bin/sed_get_make_major"`
2932 MAKE_MINOR=`sh -c "$MAKE -v | sed -n -f bin/sed_get_make_minor"`
2933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKE_MAJOR.$MAKE_MINOR" >&5
2934 printf "%s\n" "$MAKE_MAJOR.$MAKE_MINOR" >&6; }
2935 if test "$MAKE_DISTRIB" != GNU -o "$MAKE_MAJOR" -lt 4
2936 then
2937 as_fn_error $? "unsupported version; GNU Make version 4.0
2938 or higher is required." "$LINENO" 5;
2939 fi
2940
2941 # verbosemake feature
2942 # Check whether --enable-verbosemake was given.
2943 if test ${enable_verbosemake+y}
2944 then :
2945 enableval=$enable_verbosemake; VERBOSEMAKE=$enableval
2946 else $as_nop
2947 VERBOSEMAKE=no
2948
2949 fi
2950
2951
2952 if test "$VERBOSEMAKE" = yes ; then
2953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Make will be verbose." >&5
2954 printf "%s\n" "Make will be verbose." >&6; }
2955 fi
2956
2957 ##############################################################
2958 # Check for invalid command-line options and build directory #
2959 ##############################################################
2960 case $prefix in
2961 *\ * ) as_fn_error $? "spaces not allowed in --prefix argument \"$prefix\"" "$LINENO" 5;;
2962 * ) ;;
2963 esac
2964
2965 case $(pwd) in
2966 *\ * ) as_fn_error $? "spaces not allowed in build directory \"$(pwd)\"" "$LINENO" 5;;
2967 *\'* ) as_fn_error $? "single quotes not allowed in build directory \"$(pwd)\"" "$LINENO" 5;;
2968 *\"* ) as_fn_error $? "double quotes not allowed in build directory \"$(pwd)\"" "$LINENO" 5;;
2969 * ) ;;
2970 esac
2971
2972 #############################
2973 # Check for Ocaml compilers #
2974 #############################
2975
2976 new_section "configure ocaml compilers"
2977
2978 # we first look for ocamlc in the path; if not present, we fail
2979 # Extract the first word of "ocamlc", so it can be a program name with args.
2980 set dummy ocamlc; ac_word=$2
2981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982 printf %s "checking for $ac_word... " >&6; }
2983 if test ${ac_cv_prog_OCAMLC+y}
2984 then :
2985 printf %s "(cached) " >&6
2986 else $as_nop
2987 if test -n "$OCAMLC"; then
2988 ac_cv_prog_OCAMLC="$OCAMLC" # Let the user override the test.
2989 else
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 for as_dir in $PATH
2992 do
2993 IFS=$as_save_IFS
2994 case $as_dir in #(((
2995 '') as_dir=./ ;;
2996 */) ;;
2997 *) as_dir=$as_dir/ ;;
2998 esac
2999 for ac_exec_ext in '' $ac_executable_extensions; do
3000 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3001 ac_cv_prog_OCAMLC="ocamlc"
3002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3003 break 2
3004 fi
3005 done
3006 done
3007 IFS=$as_save_IFS
3008
3009 test -z "$ac_cv_prog_OCAMLC" && ac_cv_prog_OCAMLC="no"
3010 fi
3011 fi
3012 OCAMLC=$ac_cv_prog_OCAMLC
3013 if test -n "$OCAMLC"; then
3014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCAMLC" >&5
3015 printf "%s\n" "$OCAMLC" >&6; }
3016 else
3017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 printf "%s\n" "no" >&6; }
3019 fi
3020
3021
3022 if test "$OCAMLC" = no ; then
3023 as_fn_error $? "Cannot find ocamlc." "$LINENO" 5
3024 fi
3025
3026 # we extract Ocaml version number and library path
3027 # "sed -n" is the posix version of "sed --quiet"
3028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of OCaml" >&5
3029 printf %s "checking version of OCaml... " >&6; }
3030 OCAMLVERSION=`$OCAMLC -v | sed -n -e 's|.*version *\(.*\)$|\1|p' `
3031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCAMLVERSION" >&5
3032 printf "%s\n" "$OCAMLVERSION" >&6; }
3033 case $OCAMLVERSION in
3034 0.*|1.*|2.*|3.*|4.00.*|4.01.*|4.02.*|4.03.*|4.04.*|4.05.*|4.06.*|4.07.*|4.08.0)
3035 as_fn_error $? "Incompatible OCaml version; use 4.08.1+." "$LINENO" 5;;
3036 *)
3037 OCAML_ANNOT_OPTION="-bin-annot";;
3038 esac
3039
3040
3041
3042
3043
3044
3045
3046
3047 OCAMLMAJORNB=$(echo $OCAMLVERSION | cut -f 1 -d .)
3048 OCAMLMINORNB=$(echo $OCAMLVERSION | cut -f 2 -d .)
3049 OCAMLPATCHNB=$(echo $OCAMLVERSION | cut -f 3 -d .)
3050
3051 if test $OCAMLMAJORNB -gt 4; then
3052 HAS_OCAML409=yes;
3053 HAS_OCAML410=yes;
3054 else
3055 HAS_OCAML409=no;
3056 HAS_OCAML410=no;
3057 if test $OCAMLMINORNB -ge 9; then
3058 HAS_OCAML409=yes;
3059 fi;
3060 if test $OCAMLMINORNB -ge 10; then
3061 HAS_OCAML410=yes;
3062 fi;
3063 fi; # MAJORNB -gt 4
3064
3065 # Ocaml library path
3066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OCaml library path" >&5
3067 printf %s "checking OCaml library path... " >&6; }
3068 OCAMLLIB=`$OCAMLC -where | tr -d '\\r'`
3069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCAMLLIB" >&5
3070 printf "%s\n" "$OCAMLLIB" >&6; }
3071
3072 # then we look for ocamlopt; if not present, we issue a warning
3073 # if the version or the stdlib directory is not the same, we also discard it
3074 # we set OCAMLBEST to "opt" or "byte", whether ocamlopt is available or not
3075 # Extract the first word of "ocamlopt", so it can be a program name with args.
3076 set dummy ocamlopt; ac_word=$2
3077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 printf %s "checking for $ac_word... " >&6; }
3079 if test ${ac_cv_prog_OCAMLOPT+y}
3080 then :
3081 printf %s "(cached) " >&6
3082 else $as_nop
3083 if test -n "$OCAMLOPT"; then
3084 ac_cv_prog_OCAMLOPT="$OCAMLOPT" # Let the user override the test.
3085 else
3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087 for as_dir in $PATH
3088 do
3089 IFS=$as_save_IFS
3090 case $as_dir in #(((
3091 '') as_dir=./ ;;
3092 */) ;;
3093 *) as_dir=$as_dir/ ;;
3094 esac
3095 for ac_exec_ext in '' $ac_executable_extensions; do
3096 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3097 ac_cv_prog_OCAMLOPT="ocamlopt"
3098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3099 break 2
3100 fi
3101 done
3102 done
3103 IFS=$as_save_IFS
3104
3105 test -z "$ac_cv_prog_OCAMLOPT" && ac_cv_prog_OCAMLOPT="no"
3106 fi
3107 fi
3108 OCAMLOPT=$ac_cv_prog_OCAMLOPT
3109 if test -n "$OCAMLOPT"; then
3110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCAMLOPT" >&5
3111 printf "%s\n" "$OCAMLOPT" >&6; }
3112 else
3113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 printf "%s\n" "no" >&6; }
3115 fi
3116
3117
3118 OCAMLBEST=byte
3119 if test "$OCAMLOPT" = no ; then
3120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find ocamlopt; bytecode compilation only." >&5
3121 printf "%s\n" "$as_me: WARNING: Cannot find ocamlopt; bytecode compilation only." >&2;}
3122 else
3123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ocamlopt version and standard library" >&5
3124 printf %s "checking ocamlopt version and standard library... " >&6; }
3125 TMPVERSION=`$OCAMLOPT -v | sed -n -e 's|.*version *\(.*\)$|\1|p'`
3126 if test "$TMPVERSION" != "$OCAMLVERSION" \
3127 -o `$OCAMLOPT -where | tr -d '\\r'` != "$OCAMLLIB"; then
3128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: differs from ocamlc; ocamlopt discarded." >&5
3129 printf "%s\n" "differs from ocamlc; ocamlopt discarded." >&6; }
3130 OCAMLOPT=no
3131 else
3132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
3133 printf "%s\n" "ok" >&6; }
3134 OCAMLBEST=opt
3135 fi
3136 fi
3137
3138 # In case we have a native compiler, check that native dynlink works.
3139 # Otherwise, fall back to bytecode-only compilation
3140
3141 if test "$OCAMLBEST" = opt; then
3142 echo "let f x y =" > test_dynlink.ml
3143 echo " Dynlink.loadfile \"foo\"; " >> test_dynlink.ml
3144 echo " ignore (Dynlink.is_native);" >> test_dynlink.ml
3145 echo " abs_float (x -. y)" >> test_dynlink.ml
3146 if ($OCAMLOPT -shared -linkall -o test_dynlink.cmxs test_dynlink.ml) \
3147 2> /dev/null ; \
3148 then
3149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: native dynlink works fine. Great." >&5
3150 printf "%s\n" "native dynlink works fine. Great." >&6; }
3151 else
3152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Native dynlink does not work, disabling native compilation." >&5
3153 printf "%s\n" "$as_me: WARNING: Native dynlink does not work, disabling native compilation." >&2;}
3154 OCAMLBEST=byte
3155 fi
3156 rm -f test_dynlink.*
3157 fi
3158
3159 if test "$OCAMLBEST" = "opt"; then
3160 LIB_SUFFIX=cmxa
3161 DYN_SUFFIX=cmxs
3162 OBJ_SUFFIX=cmx;
3163 else
3164 LIB_SUFFIX=cma
3165 DYN_SUFFIX=cma
3166 OBJ_SUFFIX=cmo;
3167 fi
3168
3169 # checking for ocamlfind
3170
3171 # Extract the first word of "ocamlfind", so it can be a program name with args.
3172 set dummy ocamlfind; ac_word=$2
3173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174 printf %s "checking for $ac_word... " >&6; }
3175 if test ${ac_cv_prog_OCAMLFIND+y}
3176 then :
3177 printf %s "(cached) " >&6
3178 else $as_nop
3179 if test -n "$OCAMLFIND"; then
3180 ac_cv_prog_OCAMLFIND="$OCAMLFIND" # Let the user override the test.
3181 else
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183 for as_dir in $PATH
3184 do
3185 IFS=$as_save_IFS
3186 case $as_dir in #(((
3187 '') as_dir=./ ;;
3188 */) ;;
3189 *) as_dir=$as_dir/ ;;
3190 esac
3191 for ac_exec_ext in '' $ac_executable_extensions; do
3192 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3193 ac_cv_prog_OCAMLFIND="ocamlfind"
3194 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3195 break 2
3196 fi
3197 done
3198 done
3199 IFS=$as_save_IFS
3200
3201 test -z "$ac_cv_prog_OCAMLFIND" && ac_cv_prog_OCAMLFIND="no"
3202 fi
3203 fi
3204 OCAMLFIND=$ac_cv_prog_OCAMLFIND
3205 if test -n "$OCAMLFIND"; then
3206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCAMLFIND" >&5
3207 printf "%s\n" "$OCAMLFIND" >&6; }
3208 else
3209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210 printf "%s\n" "no" >&6; }
3211 fi
3212
3213
3214 if test "$OCAMLFIND" != no ; then
3215 OCAMLC="$OCAMLFIND ocamlc"
3216 OCAMLOPT="$OCAMLFIND ocamlopt"
3217 else
3218 as_fn_error $? "Cannot find ocamlfind." "$LINENO" 5
3219 fi
3220
3221 ###################################################
3222 # Select devel compilation (warnings, warn-error) #
3223 ###################################################
3224
3225 # It is inherited by the plugins
3226
3227 if test -e ".for_devel"; then
3228 DEFAULT_DEVEL_MODE=yes
3229 else
3230 DEFAULT_DEVEL_MODE=no
3231 fi
3232
3233 # Check whether --enable-devel-mode was given.
3234 if test ${enable_devel_mode+y}
3235 then :
3236 enableval=$enable_devel_mode; DEVELOPMENT=$enableval
3237 else $as_nop
3238 DEVELOPMENT=$DEFAULT_DEVEL_MODE
3239 fi
3240
3241
3242 if test "$DEVELOPMENT" = "yes" ; then
3243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Development mode: warnings and warn-errors are activated" >&5
3244 printf "%s\n" "$as_me: Development mode: warnings and warn-errors are activated" >&6;}
3245 else
3246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Distribution mode: all warnings are deactivated" >&5
3247 printf "%s\n" "$as_me: Distribution mode: all warnings are deactivated" >&6;}
3248 fi
3249
3250 ##############################################
3251 # Check for other mandatory tools/libraries #
3252 ##############################################
3253
3254 new_section "configure mandatory tools and libraries"
3255
3256 # ocamldep
3257 # Extract the first word of "ocamldep", so it can be a program name with args.
3258 set dummy ocamldep; ac_word=$2
3259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3260 printf %s "checking for $ac_word... " >&6; }
3261 if test ${ac_cv_prog_OCAMLDEP+y}
3262 then :
3263 printf %s "(cached) " >&6
3264 else $as_nop
3265 if test -n "$OCAMLDEP"; then
3266 ac_cv_prog_OCAMLDEP="$OCAMLDEP" # Let the user override the test.
3267 else
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269 for as_dir in $PATH
3270 do
3271 IFS=$as_save_IFS
3272 case $as_dir in #(((
3273 '') as_dir=./ ;;
3274 */) ;;
3275 *) as_dir=$as_dir/ ;;
3276 esac
3277 for ac_exec_ext in '' $ac_executable_extensions; do
3278 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3279 ac_cv_prog_OCAMLDEP="ocamldep"
3280 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3281 break 2
3282 fi
3283 done
3284 done
3285 IFS=$as_save_IFS
3286
3287 test -z "$ac_cv_prog_OCAMLDEP" && ac_cv_prog_OCAMLDEP="no"
3288 fi
3289 fi
3290 OCAMLDEP=$ac_cv_prog_OCAMLDEP
3291 if test -n "$OCAMLDEP"; then
3292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCAMLDEP" >&5
3293 printf "%s\n" "$OCAMLDEP" >&6; }
3294 else
3295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 printf "%s\n" "no" >&6; }
3297 fi
3298
3299
3300 if test "$OCAMLDEP" = no ; then
3301 as_fn_error $? "Cannot find ocamldep." "$LINENO" 5
3302 else
3303 OCAMLDEP="$OCAMLFIND ocamldep"
3304 fi
3305
3306 # ocamllex
3307 # Extract the first word of "ocamllex", so it can be a program name with args.
3308 set dummy ocamllex; ac_word=$2
3309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3310 printf %s "checking for $ac_word... " >&6; }
3311 if test ${ac_cv_prog_OCAMLLEX+y}
3312 then :
3313 printf %s "(cached) " >&6
3314 else $as_nop
3315 if test -n "$OCAMLLEX"; then
3316 ac_cv_prog_OCAMLLEX="$OCAMLLEX" # Let the user override the test.
3317 else
3318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 for as_dir in $PATH
3320 do
3321 IFS=$as_save_IFS
3322 case $as_dir in #(((
3323 '') as_dir=./ ;;
3324 */) ;;
3325 *) as_dir=$as_dir/ ;;
3326 esac
3327 for ac_exec_ext in '' $ac_executable_extensions; do
3328 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3329 ac_cv_prog_OCAMLLEX="ocamllex"
3330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3331 break 2
3332 fi
3333 done
3334 done
3335 IFS=$as_save_IFS
3336
3337 test -z "$ac_cv_prog_OCAMLLEX" && ac_cv_prog_OCAMLLEX="no"
3338 fi
3339 fi
3340 OCAMLLEX=$ac_cv_prog_OCAMLLEX
3341 if test -n "$OCAMLLEX"; then
3342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
3343 printf "%s\n" "$OCAMLLEX" >&6; }
3344 else
3345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3346 printf "%s\n" "no" >&6; }
3347 fi
3348
3349
3350 if test "$OCAMLLEX" = no ; then
3351 as_fn_error $? "Cannot find ocamllex." "$LINENO" 5
3352 else
3353 # Extract the first word of "ocamllex.opt", so it can be a program name with args.
3354 set dummy ocamllex.opt; ac_word=$2
3355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3356 printf %s "checking for $ac_word... " >&6; }
3357 if test ${ac_cv_prog_OCAMLLEXDOTOPT+y}
3358 then :
3359 printf %s "(cached) " >&6
3360 else $as_nop
3361 if test -n "$OCAMLLEXDOTOPT"; then
3362 ac_cv_prog_OCAMLLEXDOTOPT="$OCAMLLEXDOTOPT" # Let the user override the test.
3363 else
3364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365 for as_dir in $PATH
3366 do
3367 IFS=$as_save_IFS
3368 case $as_dir in #(((
3369 '') as_dir=./ ;;
3370 */) ;;
3371 *) as_dir=$as_dir/ ;;
3372 esac
3373 for ac_exec_ext in '' $ac_executable_extensions; do
3374 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3375 ac_cv_prog_OCAMLLEXDOTOPT="ocamllex.opt"
3376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3377 break 2
3378 fi
3379 done
3380 done
3381 IFS=$as_save_IFS
3382
3383 test -z "$ac_cv_prog_OCAMLLEXDOTOPT" && ac_cv_prog_OCAMLLEXDOTOPT="no"
3384 fi
3385 fi
3386 OCAMLLEXDOTOPT=$ac_cv_prog_OCAMLLEXDOTOPT
3387 if test -n "$OCAMLLEXDOTOPT"; then
3388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEXDOTOPT" >&5
3389 printf "%s\n" "$OCAMLLEXDOTOPT" >&6; }
3390 else
3391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3392 printf "%s\n" "no" >&6; }
3393 fi
3394
3395
3396 if test "$OCAMLLEXDOTOPT" != no ; then
3397 OCAMLLEX=$OCAMLLEXDOTOPT
3398 fi
3399 fi
3400
3401 # ocamlyacc
3402 # Extract the first word of "ocamlyacc", so it can be a program name with args.
3403 set dummy ocamlyacc; ac_word=$2
3404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3405 printf %s "checking for $ac_word... " >&6; }
3406 if test ${ac_cv_prog_OCAMLYACC+y}
3407 then :
3408 printf %s "(cached) " >&6
3409 else $as_nop
3410 if test -n "$OCAMLYACC"; then
3411 ac_cv_prog_OCAMLYACC="$OCAMLYACC" # Let the user override the test.
3412 else
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 for as_dir in $PATH
3415 do
3416 IFS=$as_save_IFS
3417 case $as_dir in #(((
3418 '') as_dir=./ ;;
3419 */) ;;
3420 *) as_dir=$as_dir/ ;;
3421 esac
3422 for ac_exec_ext in '' $ac_executable_extensions; do
3423 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3424 ac_cv_prog_OCAMLYACC="ocamlyacc"
3425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3426 break 2
3427 fi
3428 done
3429 done
3430 IFS=$as_save_IFS
3431
3432 test -z "$ac_cv_prog_OCAMLYACC" && ac_cv_prog_OCAMLYACC="no"
3433 fi
3434 fi
3435 OCAMLYACC=$ac_cv_prog_OCAMLYACC
3436 if test -n "$OCAMLYACC"; then
3437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
3438 printf "%s\n" "$OCAMLYACC" >&6; }
3439 else
3440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 printf "%s\n" "no" >&6; }
3442 fi
3443
3444
3445 if test "$OCAMLYACC" = no ; then
3446 as_fn_error $? "Cannot find ocamlyacc." "$LINENO" 5
3447 fi
3448
3449 # ocamlcp
3450 # Extract the first word of "ocamlcp", so it can be a program name with args.
3451 set dummy ocamlcp; ac_word=$2
3452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3453 printf %s "checking for $ac_word... " >&6; }
3454 if test ${ac_cv_prog_OCAMLCP+y}
3455 then :
3456 printf %s "(cached) " >&6
3457 else $as_nop
3458 if test -n "$OCAMLCP"; then
3459 ac_cv_prog_OCAMLCP="$OCAMLCP" # Let the user override the test.
3460 else
3461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462 for as_dir in $PATH
3463 do
3464 IFS=$as_save_IFS
3465 case $as_dir in #(((
3466 '') as_dir=./ ;;
3467 */) ;;
3468 *) as_dir=$as_dir/ ;;
3469 esac
3470 for ac_exec_ext in '' $ac_executable_extensions; do
3471 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3472 ac_cv_prog_OCAMLCP="ocamlcp"
3473 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3474 break 2
3475 fi
3476 done
3477 done
3478 IFS=$as_save_IFS
3479
3480 test -z "$ac_cv_prog_OCAMLCP" && ac_cv_prog_OCAMLCP="no"
3481 fi
3482 fi
3483 OCAMLCP=$ac_cv_prog_OCAMLCP
3484 if test -n "$OCAMLCP"; then
3485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCAMLCP" >&5
3486 printf "%s\n" "$OCAMLCP" >&6; }
3487 else
3488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3489 printf "%s\n" "no" >&6; }
3490 fi
3491
3492
3493 if test "$OCAMLCP" = no ; then
3494 as_fn_error $? "Cannot find ocamlcp." "$LINENO" 5
3495 else
3496 OCAMLCP="$OCAMLFIND ocamlcp"
3497 fi
3498
3499 # ocamlgraph
3500 ############
3501
3502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ocamlgraph" >&5
3503 printf %s "checking for ocamlgraph... " >&6; }
3504
3505 OCAMLGRAPH=$($OCAMLFIND query ocamlgraph -format %v)
3506 if test -z "$OCAMLGRAPH" ; then
3507 as_fn_error $? "Cannot find ocamlgraph via ocamlfind \
3508 (requires ocamlgraph 1.8.5 or higher)." "$LINENO" 5
3509 fi
3510
3511
3512 HAS_OCAMLGRAPH_2=no
3513
3514 case $OCAMLGRAPH in
3515 0.* | 1.[01234567].* \
3516 | 1.8.0 | 1.8.0+dev \
3517 | 1.8.1 | 1.8.1+dev \
3518 | 1.8.2 | 1.8.2+dev \
3519 | 1.8.3 | 1.8.3+dev \
3520 | 1.8.4 | 1.8.4+dev)
3521 as_fn_error $? "found $OCAMLGRAPH: requires 1.8.5 or higher." "$LINENO" 5;;
3522 1.8.5 | 1.8.6 | 1.8.7|1.8.8)
3523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
3524 printf "%s\n" "found" >&6; };;
3525 2.0.*)
3526 HAS_OCAMLGRAPH_2=yes
3527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
3528 printf "%s\n" "found" >&6; };;
3529 *)
3530 HAS_OCAMLGRAPH_2=yes
3531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found $OCAMLGRAPH: should work" >&5
3532 printf "%s\n" "found $OCAMLGRAPH: should work" >&6; };;
3533 esac
3534
3535 # zarith
3536 ########
3537
3538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zarith" >&5
3539 printf %s "checking for zarith... " >&6; }
3540
3541 ZARITH=$($OCAMLFIND query zarith -format %v)
3542 if test -z "$ZARITH" ; then
3543 as_fn_error $? "Cannot find zarith via ocamlfind (requires zarith 1.5 or higher)." "$LINENO" 5
3544 fi
3545 case ZARITH in
3546 1.[01234].*)
3547 as_fn_error $? "found $ZARITH: requires 1.5 or higher." "$LINENO" 5;;
3548 *)
3549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found $ZARITH" >&5
3550 printf "%s\n" "found $ZARITH" >&6; };;
3551 esac
3552
3553 # yojson
3554 ########
3555
3556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Yojson" >&5
3557 printf %s "checking for Yojson... " >&6; }
3558
3559 YOJSON=$($OCAMLFIND query yojson -format %v)
3560 if test -z "$YOJSON" ; then
3561 as_fn_error $? "Cannot find yojson via ocamlfind \
3562 (requires yojson 1.4.1 or higher)." "$LINENO" 5
3563 else
3564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found $YOJSON" >&5
3565 printf "%s\n" "found $YOJSON" >&6; }
3566 fi
3567
3568 # ppx_import
3569 ############
3570
3571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ppx_import" >&5
3572 printf %s "checking for ppx_import... " >&6; }
3573 PPX_IMPORT=$($OCAMLFIND query ppx_import -format %v)
3574 if test -z "$PPX_IMPORT"; then
3575 as_fn_error $? "Cannot find ppx_import via ocamlfind" "$LINENO" 5
3576 else
3577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found $PPX_IMPORT" >&5
3578 printf "%s\n" "found $PPX_IMPORT" >&6; }
3579 fi
3580
3581 # ppx_deriving.eq
3582 ############
3583
3584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ppx_deriving.eq" >&5
3585 printf %s "checking for ppx_deriving.eq... " >&6; }
3586 PPX_DERIVING_EQ=$($OCAMLFIND query ppx_deriving.eq -format %v)
3587 if test -z "$PPX_DERIVING_EQ"; then
3588 as_fn_error $? "Cannot find ppx_deriving.eq via ocamlfind" "$LINENO" 5
3589 else
3590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found $PPX_DERIVING_EQ" >&5
3591 printf "%s\n" "found $PPX_DERIVING_EQ" >&6; }
3592 fi
3593
3594 #################################################
3595 # Check for other (optional) tools/libraries #
3596 #################################################
3597
3598 new_section "configure optional tools and libraries"
3599
3600 # Extract the first word of "ocamldoc", so it can be a program name with args.
3601 set dummy ocamldoc; ac_word=$2
3602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3603 printf %s "checking for $ac_word... " >&6; }
3604 if test ${ac_cv_prog_OCAMLDOC+y}
3605 then :
3606 printf %s "(cached) " >&6
3607 else $as_nop
3608 if test -n "$OCAMLDOC"; then
3609 ac_cv_prog_OCAMLDOC="$OCAMLDOC" # Let the user override the test.
3610 else
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 for as_dir in $PATH
3613 do
3614 IFS=$as_save_IFS
3615 case $as_dir in #(((
3616 '') as_dir=./ ;;
3617 */) ;;
3618 *) as_dir=$as_dir/ ;;
3619 esac
3620 for ac_exec_ext in '' $ac_executable_extensions; do
3621 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3622 ac_cv_prog_OCAMLDOC="ocamldoc"
3623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3624 break 2
3625 fi
3626 done
3627 done
3628 IFS=$as_save_IFS
3629
3630 test -z "$ac_cv_prog_OCAMLDOC" && ac_cv_prog_OCAMLDOC="no"
3631 fi
3632 fi
3633 OCAMLDOC=$ac_cv_prog_OCAMLDOC
3634 if test -n "$OCAMLDOC"; then
3635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCAMLDOC" >&5
3636 printf "%s\n" "$OCAMLDOC" >&6; }
3637 else
3638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3639 printf "%s\n" "no" >&6; }
3640 fi
3641
3642
3643 if test "$OCAMLDOC" = no ; then
3644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ocamldoc discarded not present" >&5
3645 printf "%s\n" "ocamldoc discarded not present" >&6; }
3646 else
3647 OCAMLDOC="$OCAMLFIND ocamldoc"
3648 fi
3649
3650 # Extract the first word of "ocamlmktop", so it can be a program name with args.
3651 set dummy ocamlmktop; ac_word=$2
3652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3653 printf %s "checking for $ac_word... " >&6; }
3654 if test ${ac_cv_prog_OCAMLMKTOP+y}
3655 then :
3656 printf %s "(cached) " >&6
3657 else $as_nop
3658 if test -n "$OCAMLMKTOP"; then
3659 ac_cv_prog_OCAMLMKTOP="$OCAMLMKTOP" # Let the user override the test.
3660 else
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH
3663 do
3664 IFS=$as_save_IFS
3665 case $as_dir in #(((
3666 '') as_dir=./ ;;
3667 */) ;;
3668 *) as_dir=$as_dir/ ;;
3669 esac
3670 for ac_exec_ext in '' $ac_executable_extensions; do
3671 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3672 ac_cv_prog_OCAMLMKTOP="ocamlmktop"
3673 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3674 break 2
3675 fi
3676 done
3677 done
3678 IFS=$as_save_IFS
3679
3680 test -z "$ac_cv_prog_OCAMLMKTOP" && ac_cv_prog_OCAMLMKTOP="no"
3681 fi
3682 fi
3683 OCAMLMKTOP=$ac_cv_prog_OCAMLMKTOP
3684 if test -n "$OCAMLMKTOP"; then
3685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCAMLMKTOP" >&5
3686 printf "%s\n" "$OCAMLMKTOP" >&6; }
3687 else
3688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3689 printf "%s\n" "no" >&6; }
3690 fi
3691
3692
3693 if test "$OCAMLMKTOP" = no ; then
3694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Cannot find ocamlmktop: toplevels cannot be built." >&5
3695 printf "%s\n" "Cannot find ocamlmktop: toplevels cannot be built." >&6; }
3696 else
3697 OCAMLMKTOP="$OCAMLFIND ocamlmktop"
3698 fi
3699
3700 # Extract the first word of "otags", so it can be a program name with args.
3701 set dummy otags; ac_word=$2
3702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3703 printf %s "checking for $ac_word... " >&6; }
3704 if test ${ac_cv_prog_OTAGS+y}
3705 then :
3706 printf %s "(cached) " >&6
3707 else $as_nop
3708 if test -n "$OTAGS"; then
3709 ac_cv_prog_OTAGS="$OTAGS" # Let the user override the test.
3710 else
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH
3713 do
3714 IFS=$as_save_IFS
3715 case $as_dir in #(((
3716 '') as_dir=./ ;;
3717 */) ;;
3718 *) as_dir=$as_dir/ ;;
3719 esac
3720 for ac_exec_ext in '' $ac_executable_extensions; do
3721 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3722 ac_cv_prog_OTAGS="otags"
3723 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3724 break 2
3725 fi
3726 done
3727 done
3728 IFS=$as_save_IFS
3729
3730 fi
3731 fi
3732 OTAGS=$ac_cv_prog_OTAGS
3733 if test -n "$OTAGS"; then
3734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTAGS" >&5
3735 printf "%s\n" "$OTAGS" >&6; }
3736 else
3737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3738 printf "%s\n" "no" >&6; }
3739 fi
3740
3741
3742
3743 # apron
3744 ########
3745
3746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Apron" >&5
3747 printf %s "checking for Apron... " >&6; }
3748
3749 APRON_PATH=$($OCAMLFIND query apron 2>/dev/null | tr -d '\r\n')
3750 if test -f "$APRON_PATH/apron.$DYN_SUFFIX"; then
3751 HAS_APRON="yes";
3752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
3753 printf "%s\n" "found" >&6; }
3754 else
3755 HAS_APRON="no";
3756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found. The corresponding domains won't be available in Eva" >&5
3757 printf "%s\n" "not found. The corresponding domains won't be available in Eva" >&6; }
3758 fi;
3759
3760 # mpfr
3761 #######
3762
3763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MPFR" >&5
3764 printf %s "checking for MPFR... " >&6; }
3765
3766 MPFR_PATH=$($OCAMLFIND query gmp 2>/dev/null | tr -d '\r\n')
3767 if test -f "$MPFR_PATH/gmp.$DYN_SUFFIX" -a -f "$MPFR_PATH/mpfr.cmx" ; then
3768 HAS_MPFR="yes";
3769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
3770 printf "%s\n" "found" >&6; }
3771 else
3772 HAS_MPFR="no";
3773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found. The numerors domain won't be available in Eva" >&5
3774 printf "%s\n" "not found. The numerors domain won't be available in Eva" >&6; }
3775 fi;
3776
3777 # landmarks (profiling tool, for developers)
3778 ########
3779
3780 # Check whether --enable-landmarks was given.
3781 if test ${enable_landmarks+y}
3782 then :
3783 enableval=$enable_landmarks; ENABLE_LANDMARKS=$enableval
3784 else $as_nop
3785 ENABLE_LANDMARKS=yes
3786 fi
3787
3788
3789 if test "$ENABLE_LANDMARKS" = yes ; then
3790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Landmarks and Landmarks-ppx" >&5
3791 printf %s "checking for Landmarks and Landmarks-ppx... " >&6; }
3792 LANDMARKS_PATH=$($OCAMLFIND query landmarks 2>/dev/null | tr -d '\r\n')
3793 LANDMARKS_PPX_PATH=$($OCAMLFIND query landmarks-ppx 2>/dev/null | tr -d '\r\n')
3794 if test -f "$LANDMARKS_PATH/landmark.$DYN_SUFFIX" -a -f "$LANDMARKS_PPX_PATH/ppx_landmarks.$DYN_SUFFIX"; then
3795 HAS_LANDMARKS="yes";
3796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
3797 printf "%s\n" "found" >&6; }
3798 else
3799 HAS_LANDMARKS="no";
3800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found." >&5
3801 printf "%s\n" "not found." >&6; }
3802 fi;
3803 else
3804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Landmarks profiling disabled" >&5
3805 printf "%s\n" "Landmarks profiling disabled" >&6; };
3806 HAS_LANDMARKS="no"
3807 fi
3808
3809 # Python 3 (for analysis-scripts, and for several tests: compliance, jcdb, ...)
3810 ########
3811
3812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python3" >&5
3813 printf %s "checking for python3... " >&6; }
3814
3815 PYTHON3_VERSION=$(python3 --version 2>/dev/null || echo "")
3816 if test -z "$PYTHON3_VERSION" ; then
3817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found. Some non-regression tests will be disabled." >&5
3818 printf "%s\n" "not found. Some non-regression tests will be disabled." >&6; }
3819 HAS_PYTHON36="no"
3820 else
3821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
3822 printf "%s\n" "found" >&6; }
3823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python3 >= 3.6" >&5
3824 printf %s "checking for python3 >= 3.6... " >&6; }
3825 PYTHON3_VERSION=$(echo "$PYTHON3_VERSION" | cut -d' ' -f2-)
3826 case $PYTHON3_VERSION in
3827 2.*|3.[0-5].*)
3828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found $PYTHON3_VERSION (too old); some non-regression tests will be disabled" >&5
3829 printf "%s\n" "found $PYTHON3_VERSION (too old); some non-regression tests will be disabled" >&6; }
3830 HAS_PYTHON36="no"
3831 ;;
3832 *)
3833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
3834 printf "%s\n" "ok" >&6; }
3835 HAS_PYTHON36="yes"
3836 ;;
3837 esac
3838 fi
3839
3840
3841
3842 USE_PYTHON3=$USE_PYTHON3" "tests
3843
3844
3845
3846 ############
3847 # Platform #
3848 ############
3849
3850 new_section "configure platform"
3851
3852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking platform" >&5
3853 printf %s "checking platform... " >&6; }
3854 # get Sys.os_type as OCAML_OS_TYPE
3855 echo "let () = print_string Sys.os_type;;" > test_os_type.ml
3856 $OCAMLC -o test_os_type test_os_type.ml
3857 OCAML_OS_TYPE=$(./test_os_type)
3858 rm -f test_os_type.cmi test_os_type.cmo test_os_type.ml test_os_type
3859
3860 if test "$OCAML_OS_TYPE" = "Win32"; then
3861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Win32" >&5
3862 printf "%s\n" "Win32" >&6; }
3863 # Extract the first word of "cygpath", so it can be a program name with args.
3864 set dummy cygpath; ac_word=$2
3865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3866 printf %s "checking for $ac_word... " >&6; }
3867 if test ${ac_cv_prog_CYGPATH+y}
3868 then :
3869 printf %s "(cached) " >&6
3870 else $as_nop
3871 if test -n "$CYGPATH"; then
3872 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test.
3873 else
3874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875 for as_dir in $PATH
3876 do
3877 IFS=$as_save_IFS
3878 case $as_dir in #(((
3879 '') as_dir=./ ;;
3880 */) ;;
3881 *) as_dir=$as_dir/ ;;
3882 esac
3883 for ac_exec_ext in '' $ac_executable_extensions; do
3884 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3885 ac_cv_prog_CYGPATH="cygpath"
3886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3887 break 2
3888 fi
3889 done
3890 done
3891 IFS=$as_save_IFS
3892
3893 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="no"
3894 fi
3895 fi
3896 CYGPATH=$ac_cv_prog_CYGPATH
3897 if test -n "$CYGPATH"; then
3898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
3899 printf "%s\n" "$CYGPATH" >&6; }
3900 else
3901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902 printf "%s\n" "no" >&6; }
3903 fi
3904
3905
3906 PLATFORM=Win32
3907 OCAMLWIN32=yes
3908 EXE=.exe
3909 DLLEXT=.dll
3910 else
3911 OCAMLWIN32=no
3912 if test "$OCAML_OS_TYPE" = "Cygwin"; then
3913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Compilation using Cygwin is unsupported;
3914 consider using a MinGW-based compiler." >&5
3915 printf "%s\n" "$as_me: WARNING: Compilation using Cygwin is unsupported;
3916 consider using a MinGW-based compiler." >&2;}
3917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Cygwin" >&5
3918 printf "%s\n" "Cygwin" >&6; }
3919 PLATFORM=Cygwin
3920 EXE=.exe
3921 DLLEXT=.dll
3922 else
3923 if test $(uname -s) = "Darwin"; then
3924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: MacOS" >&5
3925 printf "%s\n" "MacOS" >&6; }
3926 PLATFORM=MacOS
3927 else
3928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Unix" >&5
3929 printf "%s\n" "Unix" >&6; }
3930 PLATFORM=Unix
3931 fi
3932 EXE=
3933 DLLEXT=.so
3934 fi
3935 fi
3936
3937 # C and POSIX standard headers used by C bindings.
3938 ac_ext=c
3939 ac_cpp='$CPP $CPPFLAGS'
3940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3943
3944
3945
3946 # Check whether --with-cc was given.
3947 if test ${with_cc+y}
3948 then :
3949 withval=$with_cc; CC=$withval
3950 fi
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962 ac_ext=c
3963 ac_cpp='$CPP $CPPFLAGS'
3964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3967 if test -n "$ac_tool_prefix"; then
3968 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3969 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3971 printf %s "checking for $ac_word... " >&6; }
3972 if test ${ac_cv_prog_CC+y}
3973 then :
3974 printf %s "(cached) " >&6
3975 else $as_nop
3976 if test -n "$CC"; then
3977 ac_cv_prog_CC="$CC" # Let the user override the test.
3978 else
3979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980 for as_dir in $PATH
3981 do
3982 IFS=$as_save_IFS
3983 case $as_dir in #(((
3984 '') as_dir=./ ;;
3985 */) ;;
3986 *) as_dir=$as_dir/ ;;
3987 esac
3988 for ac_exec_ext in '' $ac_executable_extensions; do
3989 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3990 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3992 break 2
3993 fi
3994 done
3995 done
3996 IFS=$as_save_IFS
3997
3998 fi
3999 fi
4000 CC=$ac_cv_prog_CC
4001 if test -n "$CC"; then
4002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4003 printf "%s\n" "$CC" >&6; }
4004 else
4005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4006 printf "%s\n" "no" >&6; }
4007 fi
4008
4009
4010 fi
4011 if test -z "$ac_cv_prog_CC"; then
4012 ac_ct_CC=$CC
4013 # Extract the first word of "gcc", so it can be a program name with args.
4014 set dummy gcc; ac_word=$2
4015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4016 printf %s "checking for $ac_word... " >&6; }
4017 if test ${ac_cv_prog_ac_ct_CC+y}
4018 then :
4019 printf %s "(cached) " >&6
4020 else $as_nop
4021 if test -n "$ac_ct_CC"; then
4022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4023 else
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 for as_dir in $PATH
4026 do
4027 IFS=$as_save_IFS
4028 case $as_dir in #(((
4029 '') as_dir=./ ;;
4030 */) ;;
4031 *) as_dir=$as_dir/ ;;
4032 esac
4033 for ac_exec_ext in '' $ac_executable_extensions; do
4034 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4035 ac_cv_prog_ac_ct_CC="gcc"
4036 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4037 break 2
4038 fi
4039 done
4040 done
4041 IFS=$as_save_IFS
4042
4043 fi
4044 fi
4045 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4046 if test -n "$ac_ct_CC"; then
4047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4048 printf "%s\n" "$ac_ct_CC" >&6; }
4049 else
4050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4051 printf "%s\n" "no" >&6; }
4052 fi
4053
4054 if test "x$ac_ct_CC" = x; then
4055 CC=""
4056 else
4057 case $cross_compiling:$ac_tool_warned in
4058 yes:)
4059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4060 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4061 ac_tool_warned=yes ;;
4062 esac
4063 CC=$ac_ct_CC
4064 fi
4065 else
4066 CC="$ac_cv_prog_CC"
4067 fi
4068
4069 if test -z "$CC"; then
4070 if test -n "$ac_tool_prefix"; then
4071 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4072 set dummy ${ac_tool_prefix}cc; ac_word=$2
4073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4074 printf %s "checking for $ac_word... " >&6; }
4075 if test ${ac_cv_prog_CC+y}
4076 then :
4077 printf %s "(cached) " >&6
4078 else $as_nop
4079 if test -n "$CC"; then
4080 ac_cv_prog_CC="$CC" # Let the user override the test.
4081 else
4082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083 for as_dir in $PATH
4084 do
4085 IFS=$as_save_IFS
4086 case $as_dir in #(((
4087 '') as_dir=./ ;;
4088 */) ;;
4089 *) as_dir=$as_dir/ ;;
4090 esac
4091 for ac_exec_ext in '' $ac_executable_extensions; do
4092 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4093 ac_cv_prog_CC="${ac_tool_prefix}cc"
4094 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4095 break 2
4096 fi
4097 done
4098 done
4099 IFS=$as_save_IFS
4100
4101 fi
4102 fi
4103 CC=$ac_cv_prog_CC
4104 if test -n "$CC"; then
4105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4106 printf "%s\n" "$CC" >&6; }
4107 else
4108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4109 printf "%s\n" "no" >&6; }
4110 fi
4111
4112
4113 fi
4114 fi
4115 if test -z "$CC"; then
4116 # Extract the first word of "cc", so it can be a program name with args.
4117 set dummy cc; ac_word=$2
4118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4119 printf %s "checking for $ac_word... " >&6; }
4120 if test ${ac_cv_prog_CC+y}
4121 then :
4122 printf %s "(cached) " >&6
4123 else $as_nop
4124 if test -n "$CC"; then
4125 ac_cv_prog_CC="$CC" # Let the user override the test.
4126 else
4127 ac_prog_rejected=no
4128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 for as_dir in $PATH
4130 do
4131 IFS=$as_save_IFS
4132 case $as_dir in #(((
4133 '') as_dir=./ ;;
4134 */) ;;
4135 *) as_dir=$as_dir/ ;;
4136 esac
4137 for ac_exec_ext in '' $ac_executable_extensions; do
4138 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4139 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4140 ac_prog_rejected=yes
4141 continue
4142 fi
4143 ac_cv_prog_CC="cc"
4144 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4145 break 2
4146 fi
4147 done
4148 done
4149 IFS=$as_save_IFS
4150
4151 if test $ac_prog_rejected = yes; then
4152 # We found a bogon in the path, so make sure we never use it.
4153 set dummy $ac_cv_prog_CC
4154 shift
4155 if test $# != 0; then
4156 # We chose a different compiler from the bogus one.
4157 # However, it has the same basename, so the bogon will be chosen
4158 # first if we set CC to just the basename; use the full file name.
4159 shift
4160 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4161 fi
4162 fi
4163 fi
4164 fi
4165 CC=$ac_cv_prog_CC
4166 if test -n "$CC"; then
4167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4168 printf "%s\n" "$CC" >&6; }
4169 else
4170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4171 printf "%s\n" "no" >&6; }
4172 fi
4173
4174
4175 fi
4176 if test -z "$CC"; then
4177 if test -n "$ac_tool_prefix"; then
4178 for ac_prog in cl.exe
4179 do
4180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4181 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4183 printf %s "checking for $ac_word... " >&6; }
4184 if test ${ac_cv_prog_CC+y}
4185 then :
4186 printf %s "(cached) " >&6
4187 else $as_nop
4188 if test -n "$CC"; then
4189 ac_cv_prog_CC="$CC" # Let the user override the test.
4190 else
4191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192 for as_dir in $PATH
4193 do
4194 IFS=$as_save_IFS
4195 case $as_dir in #(((
4196 '') as_dir=./ ;;
4197 */) ;;
4198 *) as_dir=$as_dir/ ;;
4199 esac
4200 for ac_exec_ext in '' $ac_executable_extensions; do
4201 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4202 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4203 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4204 break 2
4205 fi
4206 done
4207 done
4208 IFS=$as_save_IFS
4209
4210 fi
4211 fi
4212 CC=$ac_cv_prog_CC
4213 if test -n "$CC"; then
4214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4215 printf "%s\n" "$CC" >&6; }
4216 else
4217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4218 printf "%s\n" "no" >&6; }
4219 fi
4220
4221
4222 test -n "$CC" && break
4223 done
4224 fi
4225 if test -z "$CC"; then
4226 ac_ct_CC=$CC
4227 for ac_prog in cl.exe
4228 do
4229 # Extract the first word of "$ac_prog", so it can be a program name with args.
4230 set dummy $ac_prog; ac_word=$2
4231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4232 printf %s "checking for $ac_word... " >&6; }
4233 if test ${ac_cv_prog_ac_ct_CC+y}
4234 then :
4235 printf %s "(cached) " >&6
4236 else $as_nop
4237 if test -n "$ac_ct_CC"; then
4238 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4239 else
4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 for as_dir in $PATH
4242 do
4243 IFS=$as_save_IFS
4244 case $as_dir in #(((
4245 '') as_dir=./ ;;
4246 */) ;;
4247 *) as_dir=$as_dir/ ;;
4248 esac
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4251 ac_cv_prog_ac_ct_CC="$ac_prog"
4252 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4253 break 2
4254 fi
4255 done
4256 done
4257 IFS=$as_save_IFS
4258
4259 fi
4260 fi
4261 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4262 if test -n "$ac_ct_CC"; then
4263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4264 printf "%s\n" "$ac_ct_CC" >&6; }
4265 else
4266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267 printf "%s\n" "no" >&6; }
4268 fi
4269
4270
4271 test -n "$ac_ct_CC" && break
4272 done
4273
4274 if test "x$ac_ct_CC" = x; then
4275 CC=""
4276 else
4277 case $cross_compiling:$ac_tool_warned in
4278 yes:)
4279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4280 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4281 ac_tool_warned=yes ;;
4282 esac
4283 CC=$ac_ct_CC
4284 fi
4285 fi
4286
4287 fi
4288 if test -z "$CC"; then
4289 if test -n "$ac_tool_prefix"; then
4290 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4291 set dummy ${ac_tool_prefix}clang; ac_word=$2
4292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4293 printf %s "checking for $ac_word... " >&6; }
4294 if test ${ac_cv_prog_CC+y}
4295 then :
4296 printf %s "(cached) " >&6
4297 else $as_nop
4298 if test -n "$CC"; then
4299 ac_cv_prog_CC="$CC" # Let the user override the test.
4300 else
4301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 for as_dir in $PATH
4303 do
4304 IFS=$as_save_IFS
4305 case $as_dir in #(((
4306 '') as_dir=./ ;;
4307 */) ;;
4308 *) as_dir=$as_dir/ ;;
4309 esac
4310 for ac_exec_ext in '' $ac_executable_extensions; do
4311 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4312 ac_cv_prog_CC="${ac_tool_prefix}clang"
4313 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4314 break 2
4315 fi
4316 done
4317 done
4318 IFS=$as_save_IFS
4319
4320 fi
4321 fi
4322 CC=$ac_cv_prog_CC
4323 if test -n "$CC"; then
4324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4325 printf "%s\n" "$CC" >&6; }
4326 else
4327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4328 printf "%s\n" "no" >&6; }
4329 fi
4330
4331
4332 fi
4333 if test -z "$ac_cv_prog_CC"; then
4334 ac_ct_CC=$CC
4335 # Extract the first word of "clang", so it can be a program name with args.
4336 set dummy clang; ac_word=$2
4337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4338 printf %s "checking for $ac_word... " >&6; }
4339 if test ${ac_cv_prog_ac_ct_CC+y}
4340 then :
4341 printf %s "(cached) " >&6
4342 else $as_nop
4343 if test -n "$ac_ct_CC"; then
4344 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4345 else
4346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347 for as_dir in $PATH
4348 do
4349 IFS=$as_save_IFS
4350 case $as_dir in #(((
4351 '') as_dir=./ ;;
4352 */) ;;
4353 *) as_dir=$as_dir/ ;;
4354 esac
4355 for ac_exec_ext in '' $ac_executable_extensions; do
4356 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4357 ac_cv_prog_ac_ct_CC="clang"
4358 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4359 break 2
4360 fi
4361 done
4362 done
4363 IFS=$as_save_IFS
4364
4365 fi
4366 fi
4367 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4368 if test -n "$ac_ct_CC"; then
4369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4370 printf "%s\n" "$ac_ct_CC" >&6; }
4371 else
4372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4373 printf "%s\n" "no" >&6; }
4374 fi
4375
4376 if test "x$ac_ct_CC" = x; then
4377 CC=""
4378 else
4379 case $cross_compiling:$ac_tool_warned in
4380 yes:)
4381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4382 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4383 ac_tool_warned=yes ;;
4384 esac
4385 CC=$ac_ct_CC
4386 fi
4387 else
4388 CC="$ac_cv_prog_CC"
4389 fi
4390
4391 fi
4392
4393
4394 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4395 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4396 as_fn_error $? "no acceptable C compiler found in \$PATH
4397 See \`config.log' for more details" "$LINENO" 5; }
4398
4399 # Provide some information about the compiler.
4400 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4401 set X $ac_compile
4402 ac_compiler=$2
4403 for ac_option in --version -v -V -qversion -version; do
4404 { { ac_try="$ac_compiler $ac_option >&5"
4405 case "(($ac_try" in
4406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407 *) ac_try_echo=$ac_try;;
4408 esac
4409 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4410 printf "%s\n" "$ac_try_echo"; } >&5
4411 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4412 ac_status=$?
4413 if test -s conftest.err; then
4414 sed '10a\
4415 ... rest of stderr output deleted ...
4416 10q' conftest.err >conftest.er1
4417 cat conftest.er1 >&5
4418 fi
4419 rm -f conftest.er1 conftest.err
4420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4421 test $ac_status = 0; }
4422 done
4423
4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425 /* end confdefs.h. */
4426
4427 int
4428 main (void)
4429 {
4430
4431 ;
4432 return 0;
4433 }
4434 _ACEOF
4435 ac_clean_files_save=$ac_clean_files
4436 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4437 # Try to create an executable without -o first, disregard a.out.
4438 # It will help us diagnose broken compilers, and finding out an intuition
4439 # of exeext.
4440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4441 printf %s "checking whether the C compiler works... " >&6; }
4442 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4443
4444 # The possible output files:
4445 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4446
4447 ac_rmfiles=
4448 for ac_file in $ac_files
4449 do
4450 case $ac_file in
4451 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4452 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4453 esac
4454 done
4455 rm -f $ac_rmfiles
4456
4457 if { { ac_try="$ac_link_default"
4458 case "(($ac_try" in
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4461 esac
4462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4463 printf "%s\n" "$ac_try_echo"; } >&5
4464 (eval "$ac_link_default") 2>&5
4465 ac_status=$?
4466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4467 test $ac_status = 0; }
4468 then :
4469 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4470 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4471 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4472 # so that the user can short-circuit this test for compilers unknown to
4473 # Autoconf.
4474 for ac_file in $ac_files ''
4475 do
4476 test -f "$ac_file" || continue
4477 case $ac_file in
4478 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4479 ;;
4480 [ab].out )
4481 # We found the default executable, but exeext='' is most
4482 # certainly right.
4483 break;;
4484 *.* )
4485 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4486 then :; else
4487 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4488 fi
4489 # We set ac_cv_exeext here because the later test for it is not
4490 # safe: cross compilers may not add the suffix if given an `-o'
4491 # argument, so we may need to know it at that point already.
4492 # Even if this section looks crufty: it has the advantage of
4493 # actually working.
4494 break;;
4495 * )
4496 break;;
4497 esac
4498 done
4499 test "$ac_cv_exeext" = no && ac_cv_exeext=
4500
4501 else $as_nop
4502 ac_file=''
4503 fi
4504 if test -z "$ac_file"
4505 then :
4506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4507 printf "%s\n" "no" >&6; }
4508 printf "%s\n" "$as_me: failed program was:" >&5
4509 sed 's/^/| /' conftest.$ac_ext >&5
4510
4511 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4512 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4513 as_fn_error 77 "C compiler cannot create executables
4514 See \`config.log' for more details" "$LINENO" 5; }
4515 else $as_nop
4516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4517 printf "%s\n" "yes" >&6; }
4518 fi
4519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4520 printf %s "checking for C compiler default output file name... " >&6; }
4521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4522 printf "%s\n" "$ac_file" >&6; }
4523 ac_exeext=$ac_cv_exeext
4524
4525 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4526 ac_clean_files=$ac_clean_files_save
4527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4528 printf %s "checking for suffix of executables... " >&6; }
4529 if { { ac_try="$ac_link"
4530 case "(($ac_try" in
4531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4532 *) ac_try_echo=$ac_try;;
4533 esac
4534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4535 printf "%s\n" "$ac_try_echo"; } >&5
4536 (eval "$ac_link") 2>&5
4537 ac_status=$?
4538 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4539 test $ac_status = 0; }
4540 then :
4541 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4542 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4543 # work properly (i.e., refer to `conftest.exe'), while it won't with
4544 # `rm'.
4545 for ac_file in conftest.exe conftest conftest.*; do
4546 test -f "$ac_file" || continue
4547 case $ac_file in
4548 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4549 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4550 break;;
4551 * ) break;;
4552 esac
4553 done
4554 else $as_nop
4555 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4556 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4557 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4558 See \`config.log' for more details" "$LINENO" 5; }
4559 fi
4560 rm -f conftest conftest$ac_cv_exeext
4561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4562 printf "%s\n" "$ac_cv_exeext" >&6; }
4563
4564 rm -f conftest.$ac_ext
4565 EXEEXT=$ac_cv_exeext
4566 ac_exeext=$EXEEXT
4567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568 /* end confdefs.h. */
4569 #include <stdio.h>
4570 int
4571 main (void)
4572 {
4573 FILE *f = fopen ("conftest.out", "w");
4574 return ferror (f) || fclose (f) != 0;
4575
4576 ;
4577 return 0;
4578 }
4579 _ACEOF
4580 ac_clean_files="$ac_clean_files conftest.out"
4581 # Check that the compiler produces executables we can run. If not, either
4582 # the compiler is broken, or we cross compile.
4583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4584 printf %s "checking whether we are cross compiling... " >&6; }
4585 if test "$cross_compiling" != yes; then
4586 { { ac_try="$ac_link"
4587 case "(($ac_try" in
4588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4589 *) ac_try_echo=$ac_try;;
4590 esac
4591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4592 printf "%s\n" "$ac_try_echo"; } >&5
4593 (eval "$ac_link") 2>&5
4594 ac_status=$?
4595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4596 test $ac_status = 0; }
4597 if { ac_try='./conftest$ac_cv_exeext'
4598 { { case "(($ac_try" in
4599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600 *) ac_try_echo=$ac_try;;
4601 esac
4602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4603 printf "%s\n" "$ac_try_echo"; } >&5
4604 (eval "$ac_try") 2>&5
4605 ac_status=$?
4606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4607 test $ac_status = 0; }; }; then
4608 cross_compiling=no
4609 else
4610 if test "$cross_compiling" = maybe; then
4611 cross_compiling=yes
4612 else
4613 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4614 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4615 as_fn_error 77 "cannot run C compiled programs.
4616 If you meant to cross compile, use \`--host'.
4617 See \`config.log' for more details" "$LINENO" 5; }
4618 fi
4619 fi
4620 fi
4621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4622 printf "%s\n" "$cross_compiling" >&6; }
4623
4624 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4625 ac_clean_files=$ac_clean_files_save
4626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4627 printf %s "checking for suffix of object files... " >&6; }
4628 if test ${ac_cv_objext+y}
4629 then :
4630 printf %s "(cached) " >&6
4631 else $as_nop
4632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633 /* end confdefs.h. */
4634
4635 int
4636 main (void)
4637 {
4638
4639 ;
4640 return 0;
4641 }
4642 _ACEOF
4643 rm -f conftest.o conftest.obj
4644 if { { ac_try="$ac_compile"
4645 case "(($ac_try" in
4646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4647 *) ac_try_echo=$ac_try;;
4648 esac
4649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4650 printf "%s\n" "$ac_try_echo"; } >&5
4651 (eval "$ac_compile") 2>&5
4652 ac_status=$?
4653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4654 test $ac_status = 0; }
4655 then :
4656 for ac_file in conftest.o conftest.obj conftest.*; do
4657 test -f "$ac_file" || continue;
4658 case $ac_file in
4659 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4660 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4661 break;;
4662 esac
4663 done
4664 else $as_nop
4665 printf "%s\n" "$as_me: failed program was:" >&5
4666 sed 's/^/| /' conftest.$ac_ext >&5
4667
4668 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4669 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4670 as_fn_error $? "cannot compute suffix of object files: cannot compile
4671 See \`config.log' for more details" "$LINENO" 5; }
4672 fi
4673 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4674 fi
4675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4676 printf "%s\n" "$ac_cv_objext" >&6; }
4677 OBJEXT=$ac_cv_objext
4678 ac_objext=$OBJEXT
4679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4680 printf %s "checking whether the compiler supports GNU C... " >&6; }
4681 if test ${ac_cv_c_compiler_gnu+y}
4682 then :
4683 printf %s "(cached) " >&6
4684 else $as_nop
4685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686 /* end confdefs.h. */
4687
4688 int
4689 main (void)
4690 {
4691 #ifndef __GNUC__
4692 choke me
4693 #endif
4694
4695 ;
4696 return 0;
4697 }
4698 _ACEOF
4699 if ac_fn_c_try_compile "$LINENO"
4700 then :
4701 ac_compiler_gnu=yes
4702 else $as_nop
4703 ac_compiler_gnu=no
4704 fi
4705 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4706 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4707
4708 fi
4709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4710 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4712
4713 if test $ac_compiler_gnu = yes; then
4714 GCC=yes
4715 else
4716 GCC=
4717 fi
4718 ac_test_CFLAGS=${CFLAGS+y}
4719 ac_save_CFLAGS=$CFLAGS
4720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4721 printf %s "checking whether $CC accepts -g... " >&6; }
4722 if test ${ac_cv_prog_cc_g+y}
4723 then :
4724 printf %s "(cached) " >&6
4725 else $as_nop
4726 ac_save_c_werror_flag=$ac_c_werror_flag
4727 ac_c_werror_flag=yes
4728 ac_cv_prog_cc_g=no
4729 CFLAGS="-g"
4730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4731 /* end confdefs.h. */
4732
4733 int
4734 main (void)
4735 {
4736
4737 ;
4738 return 0;
4739 }
4740 _ACEOF
4741 if ac_fn_c_try_compile "$LINENO"
4742 then :
4743 ac_cv_prog_cc_g=yes
4744 else $as_nop
4745 CFLAGS=""
4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747 /* end confdefs.h. */
4748
4749 int
4750 main (void)
4751 {
4752
4753 ;
4754 return 0;
4755 }
4756 _ACEOF
4757 if ac_fn_c_try_compile "$LINENO"
4758 then :
4759
4760 else $as_nop
4761 ac_c_werror_flag=$ac_save_c_werror_flag
4762 CFLAGS="-g"
4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764 /* end confdefs.h. */
4765
4766 int
4767 main (void)
4768 {
4769
4770 ;
4771 return 0;
4772 }
4773 _ACEOF
4774 if ac_fn_c_try_compile "$LINENO"
4775 then :
4776 ac_cv_prog_cc_g=yes
4777 fi
4778 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4779 fi
4780 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4781 fi
4782 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4783 ac_c_werror_flag=$ac_save_c_werror_flag
4784 fi
4785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4786 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4787 if test $ac_test_CFLAGS; then
4788 CFLAGS=$ac_save_CFLAGS
4789 elif test $ac_cv_prog_cc_g = yes; then
4790 if test "$GCC" = yes; then
4791 CFLAGS="-g -O2"
4792 else
4793 CFLAGS="-g"
4794 fi
4795 else
4796 if test "$GCC" = yes; then
4797 CFLAGS="-O2"
4798 else
4799 CFLAGS=
4800 fi
4801 fi
4802 ac_prog_cc_stdc=no
4803 if test x$ac_prog_cc_stdc = xno
4804 then :
4805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4806 printf %s "checking for $CC option to enable C11 features... " >&6; }
4807 if test ${ac_cv_prog_cc_c11+y}
4808 then :
4809 printf %s "(cached) " >&6
4810 else $as_nop
4811 ac_cv_prog_cc_c11=no
4812 ac_save_CC=$CC
4813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814 /* end confdefs.h. */
4815 $ac_c_conftest_c11_program
4816 _ACEOF
4817 for ac_arg in '' -std=gnu11
4818 do
4819 CC="$ac_save_CC $ac_arg"
4820 if ac_fn_c_try_compile "$LINENO"
4821 then :
4822 ac_cv_prog_cc_c11=$ac_arg
4823 fi
4824 rm -f core conftest.err conftest.$ac_objext conftest.beam
4825 test "x$ac_cv_prog_cc_c11" != "xno" && break
4826 done
4827 rm -f conftest.$ac_ext
4828 CC=$ac_save_CC
4829 fi
4830
4831 if test "x$ac_cv_prog_cc_c11" = xno
4832 then :
4833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4834 printf "%s\n" "unsupported" >&6; }
4835 else $as_nop
4836 if test "x$ac_cv_prog_cc_c11" = x
4837 then :
4838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4839 printf "%s\n" "none needed" >&6; }
4840 else $as_nop
4841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4842 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4843 CC="$CC $ac_cv_prog_cc_c11"
4844 fi
4845 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4846 ac_prog_cc_stdc=c11
4847 fi
4848 fi
4849 if test x$ac_prog_cc_stdc = xno
4850 then :
4851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4852 printf %s "checking for $CC option to enable C99 features... " >&6; }
4853 if test ${ac_cv_prog_cc_c99+y}
4854 then :
4855 printf %s "(cached) " >&6
4856 else $as_nop
4857 ac_cv_prog_cc_c99=no
4858 ac_save_CC=$CC
4859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h. */
4861 $ac_c_conftest_c99_program
4862 _ACEOF
4863 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4864 do
4865 CC="$ac_save_CC $ac_arg"
4866 if ac_fn_c_try_compile "$LINENO"
4867 then :
4868 ac_cv_prog_cc_c99=$ac_arg
4869 fi
4870 rm -f core conftest.err conftest.$ac_objext conftest.beam
4871 test "x$ac_cv_prog_cc_c99" != "xno" && break
4872 done
4873 rm -f conftest.$ac_ext
4874 CC=$ac_save_CC
4875 fi
4876
4877 if test "x$ac_cv_prog_cc_c99" = xno
4878 then :
4879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4880 printf "%s\n" "unsupported" >&6; }
4881 else $as_nop
4882 if test "x$ac_cv_prog_cc_c99" = x
4883 then :
4884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4885 printf "%s\n" "none needed" >&6; }
4886 else $as_nop
4887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4888 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4889 CC="$CC $ac_cv_prog_cc_c99"
4890 fi
4891 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4892 ac_prog_cc_stdc=c99
4893 fi
4894 fi
4895 if test x$ac_prog_cc_stdc = xno
4896 then :
4897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4898 printf %s "checking for $CC option to enable C89 features... " >&6; }
4899 if test ${ac_cv_prog_cc_c89+y}
4900 then :
4901 printf %s "(cached) " >&6
4902 else $as_nop
4903 ac_cv_prog_cc_c89=no
4904 ac_save_CC=$CC
4905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906 /* end confdefs.h. */
4907 $ac_c_conftest_c89_program
4908 _ACEOF
4909 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4910 do
4911 CC="$ac_save_CC $ac_arg"
4912 if ac_fn_c_try_compile "$LINENO"
4913 then :
4914 ac_cv_prog_cc_c89=$ac_arg
4915 fi
4916 rm -f core conftest.err conftest.$ac_objext conftest.beam
4917 test "x$ac_cv_prog_cc_c89" != "xno" && break
4918 done
4919 rm -f conftest.$ac_ext
4920 CC=$ac_save_CC
4921 fi
4922
4923 if test "x$ac_cv_prog_cc_c89" = xno
4924 then :
4925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4926 printf "%s\n" "unsupported" >&6; }
4927 else $as_nop
4928 if test "x$ac_cv_prog_cc_c89" = x
4929 then :
4930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4931 printf "%s\n" "none needed" >&6; }
4932 else $as_nop
4933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4934 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4935 CC="$CC $ac_cv_prog_cc_c89"
4936 fi
4937 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4938 ac_prog_cc_stdc=c89
4939 fi
4940 fi
4941
4942 ac_ext=c
4943 ac_cpp='$CPP $CPPFLAGS'
4944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4947
4948
4949
4950 ac_header= ac_cache=
4951 for ac_item in $ac_header_c_list
4952 do
4953 if test $ac_cache; then
4954 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4955 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4956 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4957 fi
4958 ac_header= ac_cache=
4959 elif test $ac_header; then
4960 ac_cache=$ac_item
4961 else
4962 ac_header=$ac_item
4963 fi
4964 done
4965
4966
4967
4968
4969
4970
4971
4972
4973 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4974 then :
4975
4976 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4977
4978 fi
4979 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4980 if test "x$ac_cv_header_stdlib_h" = xyes
4981 then :
4982 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
4983
4984 fi
4985
4986 ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
4987 if test "x$ac_cv_header_assert_h" = xyes
4988 then :
4989 printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h
4990
4991 fi
4992
4993 ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
4994 if test "x$ac_cv_header_float_h" = xyes
4995 then :
4996 printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
4997
4998 fi
4999
5000 ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
5001 if test "x$ac_cv_header_math_h" = xyes
5002 then :
5003 printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
5004
5005 fi
5006
5007
5008 ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
5009 if test "x$ac_cv_header_signal_h" = xyes
5010 then :
5011 printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
5012
5013 fi
5014
5015
5016 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5017 if test "x$ac_cv_header_unistd_h" = xyes
5018 then :
5019 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
5020
5021 fi
5022
5023
5024 # Local machdep feature (to generate new platforms)
5025 # Check whether --enable-localmachdep was given.
5026 if test ${enable_localmachdep+y}
5027 then :
5028 enableval=$enable_localmachdep; LOCAL_MACHDEP=$enableval
5029 else $as_nop
5030 LOCAL_MACHDEP=no
5031 fi
5032
5033
5034 if test "$LOCAL_MACHDEP" = yes ; then
5035
5036 ac_config_headers="$ac_config_headers config.h"
5037
5038 ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
5039 if test "x$ac_cv_header_wchar_h" = xyes
5040 then :
5041 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
5042
5043 fi
5044
5045
5046 # Find out the true definitions of some integer types
5047 # checkIntegerype(size_t) will echo "int" or "long"
5048 checkIntegerType() {
5049 fn="testtype.c"
5050 fo="testtype.o"
5051 for t in "int" "unsigned int" "long" "unsigned long" "short" "unsigned short" "char" "unsigned char" ;do
5052 echo "#include <stddef.h>" >$fn
5053 echo "#include <wchar.h>" >>$fn
5054 # We define a prototype with one type and the function with
5055 # another type. This will result in compilation error
5056 # unless the types are really identical
5057 echo "$t foo($t x);" >>$fn
5058 echo "$1 foo($1 x) { return x;}" >>$fn
5059 if gcc -c $fn 2>/dev/null ;then
5060 # Found it
5061 echo $t
5062 rm -f $fn $fo
5063 return
5064 fi
5065 done
5066 rm -f $fn $fo
5067 }
5068
5069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking definition of size_t" >&5
5070 printf %s "checking definition of size_t... " >&6; }
5071 TYPE_SIZE_T=`checkIntegerType "size_t"`
5072 if test "x$TYPE_SIZE_T" = "x" ;then
5073 as_fn_error $? "Cannot find definition of size_t" "$LINENO" 5
5074 fi
5075 printf "%s\n" "#define TYPE_SIZE_T \"$TYPE_SIZE_T\"" >>confdefs.h
5076
5077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TYPE_SIZE_T" >&5
5078 printf "%s\n" "$TYPE_SIZE_T" >&6; }
5079
5080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking definition of wchar_t" >&5
5081 printf %s "checking definition of wchar_t... " >&6; }
5082 TYPE_WCHAR_T=`checkIntegerType "wchar_t"`
5083 if test "x$TYPE_WCHAR_T" = "x" ;then
5084 as_fn_error $? "Cannot find definition of wchar_t" "$LINENO" 5
5085 fi
5086 printf "%s\n" "#define TYPE_WCHAR_T \"$TYPE_WCHAR_T\"" >>confdefs.h
5087
5088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TYPE_WCHAR_T" >&5
5089 printf "%s\n" "$TYPE_WCHAR_T" >&6; }
5090
5091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking definition of ptrdiff_t" >&5
5092 printf %s "checking definition of ptrdiff_t... " >&6; }
5093 TYPE_PTRDIFF_T=`checkIntegerType "ptrdiff_t"`
5094 if test "x$TYPE_PTRDIFF_T" = "x" ;then
5095 as_fn_error $? "Cannot find definition of ptrdiff_t" "$LINENO" 5
5096 fi
5097 printf "%s\n" "#define TYPE_PTRDIFF_T \"$TYPE_PTRDIFF_T\"" >>confdefs.h
5098
5099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TYPE_PTRDIFF_T" >&5
5100 printf "%s\n" "$TYPE_PTRDIFF_T" >&6; }
5101
5102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc version" >&5
5103 printf %s "checking for gcc version... " >&6; }
5104 ac_fn_c_check_type "$LINENO" "__builtin_va_list" "ac_cv_type___builtin_va_list" "$ac_includes_default"
5105 if test "x$ac_cv_type___builtin_va_list" = xyes
5106 then :
5107 HAVE_BUILTIN_VA_LIST=true
5108 else $as_nop
5109 HAVE_BUILTIN_VA_LIST=false
5110 fi
5111
5112 if test "$HAVE_BUILTIN_VA_LIST" = "true" ;then
5113 printf "%s\n" "#define HAVE_BUILTIN_VA_LIST 1" >>confdefs.h
5114
5115 fi
5116
5117 # Does gcc add underscores to identifiers to make assembly labels?
5118 # (I think MSVC always does)
5119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gcc adds underscores to assembly labels." >&5
5120 printf %s "checking if gcc adds underscores to assembly labels.... " >&6; }
5121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5122 /* end confdefs.h. */
5123 int main() { __asm__("jmp _main"); }
5124 _ACEOF
5125 if ac_fn_c_try_link "$LINENO"
5126 then :
5127 UNDERSCORE_NAME=true
5128 else $as_nop
5129 UNDERSCORE_NAME=false
5130 fi
5131 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5132 conftest$ac_exeext conftest.$ac_ext
5133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNDERSCORE_NAME" >&5
5134 printf "%s\n" "$UNDERSCORE_NAME" >&6; }
5135 if test "$UNDERSCORE_NAME" = "true" ;then
5136 printf "%s\n" "#define UNDERSCORE_NAME 1" >>confdefs.h
5137
5138 fi
5139
5140 fi # local machdep configuration
5141
5142 ###################################
5143 # Frama-C's pre-processor support #
5144 ###################################
5145
5146 # Specific preprocessor support
5147
5148 # Check whether --with-cpp was given.
5149 if test ${with_cpp+y}
5150 then :
5151 withval=$with_cpp; FRAMAC_DEFAULT_CPP=$withval
5152 else $as_nop
5153 FRAMAC_DEFAULT_CPP=
5154 fi
5155
5156
5157 # if no specific pre-processor has been given, check whether we can use
5158 # $CC. Note that we want to keep comments in the output, so that AC_PROG_CPP
5159 # alone is not sufficient.
5160 if test -z "$FRAMAC_DEFAULT_CPP"; then
5161 ac_ext=c
5162 ac_cpp='$CPP $CPPFLAGS'
5163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5167 printf %s "checking how to run the C preprocessor... " >&6; }
5168 # On Suns, sometimes $CPP names a directory.
5169 if test -n "$CPP" && test -d "$CPP"; then
5170 CPP=
5171 fi
5172 if test -z "$CPP"; then
5173 if test ${ac_cv_prog_CPP+y}
5174 then :
5175 printf %s "(cached) " >&6
5176 else $as_nop
5177 # Double quotes because $CC needs to be expanded
5178 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5179 do
5180 ac_preproc_ok=false
5181 for ac_c_preproc_warn_flag in '' yes
5182 do
5183 # Use a header file that comes with gcc, so configuring glibc
5184 # with a fresh cross-compiler works.
5185 # On the NeXT, cc -E runs the code through the compiler's parser,
5186 # not just through cpp. "Syntax error" is here to catch this case.
5187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5188 /* end confdefs.h. */
5189 #include <limits.h>
5190 Syntax error
5191 _ACEOF
5192 if ac_fn_c_try_cpp "$LINENO"
5193 then :
5194
5195 else $as_nop
5196 # Broken: fails on valid input.
5197 continue
5198 fi
5199 rm -f conftest.err conftest.i conftest.$ac_ext
5200
5201 # OK, works on sane cases. Now check whether nonexistent headers
5202 # can be detected and how.
5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h. */
5205 #include <ac_nonexistent.h>
5206 _ACEOF
5207 if ac_fn_c_try_cpp "$LINENO"
5208 then :
5209 # Broken: success on invalid input.
5210 continue
5211 else $as_nop
5212 # Passes both tests.
5213 ac_preproc_ok=:
5214 break
5215 fi
5216 rm -f conftest.err conftest.i conftest.$ac_ext
5217
5218 done
5219 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5220 rm -f conftest.i conftest.err conftest.$ac_ext
5221 if $ac_preproc_ok
5222 then :
5223 break
5224 fi
5225
5226 done
5227 ac_cv_prog_CPP=$CPP
5228
5229 fi
5230 CPP=$ac_cv_prog_CPP
5231 else
5232 ac_cv_prog_CPP=$CPP
5233 fi
5234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5235 printf "%s\n" "$CPP" >&6; }
5236 ac_preproc_ok=false
5237 for ac_c_preproc_warn_flag in '' yes
5238 do
5239 # Use a header file that comes with gcc, so configuring glibc
5240 # with a fresh cross-compiler works.
5241 # On the NeXT, cc -E runs the code through the compiler's parser,
5242 # not just through cpp. "Syntax error" is here to catch this case.
5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244 /* end confdefs.h. */
5245 #include <limits.h>
5246 Syntax error
5247 _ACEOF
5248 if ac_fn_c_try_cpp "$LINENO"
5249 then :
5250
5251 else $as_nop
5252 # Broken: fails on valid input.
5253 continue
5254 fi
5255 rm -f conftest.err conftest.i conftest.$ac_ext
5256
5257 # OK, works on sane cases. Now check whether nonexistent headers
5258 # can be detected and how.
5259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260 /* end confdefs.h. */
5261 #include <ac_nonexistent.h>
5262 _ACEOF
5263 if ac_fn_c_try_cpp "$LINENO"
5264 then :
5265 # Broken: success on invalid input.
5266 continue
5267 else $as_nop
5268 # Passes both tests.
5269 ac_preproc_ok=:
5270 break
5271 fi
5272 rm -f conftest.err conftest.i conftest.$ac_ext
5273
5274 done
5275 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5276 rm -f conftest.i conftest.err conftest.$ac_ext
5277 if $ac_preproc_ok
5278 then :
5279
5280 else $as_nop
5281 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5282 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5283 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5284 See \`config.log' for more details" "$LINENO" 5; }
5285 fi
5286
5287 ac_ext=c
5288 ac_cpp='$CPP $CPPFLAGS'
5289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5292
5293 CPPFLAGS="-C -I.";
5294 if test -n "$GCC"; then FRAMAC_GNU_CPP=true; else FRAMAC_GNU_CPP=false; fi
5295 else
5296 CPP=$FRAMAC_DEFAULT_CPP;
5297 FRAMAC_GNU_CPP=true;
5298 CPPFLAGS="-dD -nostdinc"
5299
5300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5301 /* end confdefs.h. */
5302 #define foo 0
5303 /* foo */
5304
5305 _ACEOF
5306 if ac_fn_c_try_cpp "$LINENO"
5307 then :
5308 FRAMAC_GNU_CPP=true
5309 else $as_nop
5310 FRAMAC_GNU_CPP=false
5311 fi
5312 rm -f conftest.err conftest.i conftest.$ac_ext
5313 CPPFLAGS=
5314 fi
5315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316 /* end confdefs.h. */
5317 /* Check whether comments are kept in output */
5318 _ACEOF
5319 if ac_fn_c_try_cpp "$LINENO"
5320 then :
5321 if test -e conftest.i; then
5322 if grep -e kept conftest.i; then
5323 FRAMAC_DEFAULT_CPP="$CPP $CPPFLAGS";
5324 DEFAULT_CPP_KEEP_COMMENTS=true;
5325 else
5326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Default pre-processing command '$CPP' do not preserve
5327 comments. Please define an appropriate pre-processor
5328 with --with-cpp, or you will only be able to use ACSL
5329 annotations in already pre-processed files" >&5
5330 printf "%s\n" "$as_me: WARNING: Default pre-processing command '$CPP' do not preserve
5331 comments. Please define an appropriate pre-processor
5332 with --with-cpp, or you will only be able to use ACSL
5333 annotations in already pre-processed files" >&2;}
5334 FRAMAC_DEFAULT_CPP=$CPP;
5335 DEFAULT_CPP_KEEP_COMMENTS=false;
5336 fi;
5337 else # handling old version of autoconf (<2.67) that does not keep
5338 # preprocessor result in conftest.i
5339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unable to check whether $CPP preserves comments.
5340 Assuming everything is fine" >&5
5341 printf "%s\n" "$as_me: WARNING: Unable to check whether $CPP preserves comments.
5342 Assuming everything is fine" >&2;}
5343 FRAMAC_DEFAULT_CPP="$CPP $CPPFLAGS";
5344 DEFAULT_CPP_KEEP_COMMENTS=true;
5345 fi
5346
5347 else $as_nop
5348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find a working pre-processor.
5349 Please define one with --with-cpp, or you will be able
5350 to launch Frama-C only on pre-processed files" >&5
5351 printf "%s\n" "$as_me: WARNING: Unable to find a working pre-processor.
5352 Please define one with --with-cpp, or you will be able
5353 to launch Frama-C only on pre-processed files" >&2;};
5354 FRAMAC_DEFAULT_CPP="";
5355 DEFAULT_CPP_KEEP_COMMENTS=false;
5356
5357 fi
5358 rm -f conftest.err conftest.i conftest.$ac_ext
5359
5360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Default preprocessor is '$FRAMAC_DEFAULT_CPP'." >&5
5361 printf "%s\n" "Default preprocessor is '$FRAMAC_DEFAULT_CPP'." >&6; }
5362
5363 FRAMAC_DEFAULT_CPP_ARGS=$CPPFLAGS
5364
5365 # Test if preprocessor supports options such as -m16/-m32/-m64
5366
5367 DEFAULT_CPP_SUPPORTED_ARCH_OPTS=
5368
5369 # Store original value of CPPFLAGS before doing tests
5370 OLD_CPPFLAGS=$CPPFLAGS
5371
5372 rm -f conftest.i
5373 CPPFLAGS="$OLD_CPPFLAGS -m32"
5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5375 /* end confdefs.h. */
5376 /* Check if preprocessor supports option -m32 */
5377 _ACEOF
5378 if ac_fn_c_try_cpp "$LINENO"
5379 then :
5380 if test -e conftest.i; then
5381 DEFAULT_CPP_SUPPORTED_ARCH_OPTS="$DEFAULT_CPP_SUPPORTED_ARCH_OPTS "'\"-m32\";';
5382 fi
5383 fi
5384 rm -f conftest.err conftest.i conftest.$ac_ext
5385
5386 rm -f conftest.i
5387 CPPFLAGS="$OLD_CPPFLAGS -m64"
5388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5389 /* end confdefs.h. */
5390 /* Check if preprocessor supports option -m64 */
5391 _ACEOF
5392 if ac_fn_c_try_cpp "$LINENO"
5393 then :
5394 if test -e conftest.i; then
5395 DEFAULT_CPP_SUPPORTED_ARCH_OPTS="$DEFAULT_CPP_SUPPORTED_ARCH_OPTS "'\"-m64\";';
5396 fi
5397 fi
5398 rm -f conftest.err conftest.i conftest.$ac_ext
5399
5400 rm -f conftest.i
5401 CPPFLAGS="$OLD_CPPFLAGS -m16"
5402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5404 /* Check if preprocessor supports option -m16 */
5405 _ACEOF
5406 if ac_fn_c_try_cpp "$LINENO"
5407 then :
5408 if test -e conftest.i; then
5409 DEFAULT_CPP_SUPPORTED_ARCH_OPTS="$DEFAULT_CPP_SUPPORTED_ARCH_OPTS "'\"-m16\";';
5410 fi
5411 fi
5412 rm -f conftest.err conftest.i conftest.$ac_ext
5413
5414 # revert CPPFLAGS to original value
5415 CPPFLAGS=$OLD_CPPFLAGS
5416
5417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Default preprocessor supported architecture-related options:$DEFAULT_CPP_SUPPORTED_ARCH_OPTS" >&5
5418 printf "%s\n" "Default preprocessor supported architecture-related options:$DEFAULT_CPP_SUPPORTED_ARCH_OPTS" >&6; }
5419
5420
5421 #################
5422 # Plugin wished #
5423 #################
5424
5425 new_section "wished frama-c plug-ins"
5426
5427 # Option -with-no-plugin
5428 #######################
5429
5430
5431
5432
5433 # Check whether --with-no-plugin was given.
5434 if test ${with_no_plugin+y}
5435 then :
5436 withval=$with_no_plugin; ONLY_KERNEL=$withval
5437 else $as_nop
5438 ONLY_KERNEL=no
5439 fi
5440
5441
5442 # library declarations
5443 ######################
5444
5445 # REQUIRE_LIBRARY: library *must* be present in order to build plugins
5446 # USE_LIBRARY: better for plugins if library is present, but not required
5447 # HAS_LIBRARY: is the library available?
5448
5449 REQUIRE_LABLGTK=
5450 USE_LABLGTK=
5451 HAS_LABLGTK=
5452
5453 ### Now plugin declarations
5454
5455 PLUGINS_FORCE_LIST=
5456
5457 ###############################################################################
5458 # #
5459 #################### #
5460 # Plug-in sections # #
5461 #################### #
5462 # #
5463 # For 'internal' developers: #
5464 # Add your own plug-in here #
5465 # #
5466 ###############################################################################
5467
5468 # callgraph
5469 ###########
5470
5471
5472
5473
5474
5475
5476
5477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for src/plugins/callgraph" >&5
5478 printf %s "checking for src/plugins/callgraph... " >&6; }
5479 if test ${ac_cv_file_src_plugins_callgraph+y}
5480 then :
5481 printf %s "(cached) " >&6
5482 else $as_nop
5483 test "$cross_compiling" = yes &&
5484 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
5485 if test -r "src/plugins/callgraph"; then
5486 ac_cv_file_src_plugins_callgraph=yes
5487 else
5488 ac_cv_file_src_plugins_callgraph=no
5489 fi
5490 fi
5491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_src_plugins_callgraph" >&5
5492 printf "%s\n" "$ac_cv_file_src_plugins_callgraph" >&6; }
5493 if test "x$ac_cv_file_src_plugins_callgraph" = xyes
5494 then :
5495 default=yes;plugin_present=yes
5496 else $as_nop
5497 plugin_present=no;default=no
5498 fi
5499
5500
5501 FORCE=no
5502
5503 # Check whether --enable-callgraph was given.
5504 if test ${enable_callgraph+y}
5505 then :
5506 enableval=$enable_callgraph; ENABLE=$enableval;FORCE=$enableval
5507 else $as_nop
5508 ENABLE=$default
5509
5510 fi
5511
5512
5513 if test "$ONLY_KERNEL" = "yes" -a "$FORCE" = "no"; then
5514 ENABLE=no
5515 fi
5516
5517
5518
5519 if test "$plugin_present" = "no" -a "$FORCE" = "yes"; then
5520 as_fn_error $? "callgraph is not available" "$LINENO" 5
5521 fi
5522
5523 FORCE_CALLGRAPH=$FORCE
5524 PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_CALLGRAPH
5525
5526 ENABLE_CALLGRAPH=$ENABLE
5527 NAME_CALLGRAPH=callgraph
5528 if test "$default" = "no" -a "$FORCE" = "no"; then
5529 INFO_CALLGRAPH=" (not available by default)"
5530 fi
5531
5532
5533 echo "callgraph... $ENABLE"
5534 # kept defined for write_plugin_config. A bit ugly, but not more than
5535 # usual autoconf stuff.
5536 # m4_undefine([PLUGIN_NAME])
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546 USE_DOT=$USE_DOT" "callgraph
5547
5548
5549
5550
5551
5552
5553 USE_GUI=$USE_GUI" "callgraph
5554 USED_CALLGRAPH=$USED_CALLGRAPH" "gui
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564 REQUIRE_EVA=$REQUIRE_EVA" "callgraph
5565 REQUIRED_CALLGRAPH=$REQUIRED_CALLGRAPH" "eva
5566
5567
5568
5569
5570
5571
5572 # constant propagation
5573 ######################
5574
5575
5576
5577
5578
5579
5580
5581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for src/plugins/constant_propagation" >&5
5582 printf %s "checking for src/plugins/constant_propagation... " >&6; }
5583 if test ${ac_cv_file_src_plugins_constant_propagation+y}
5584 then :
5585 printf %s "(cached) " >&6
5586 else $as_nop
5587 test "$cross_compiling" = yes &&
5588 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
5589 if test -r "src/plugins/constant_propagation"; then
5590 ac_cv_file_src_plugins_constant_propagation=yes
5591 else
5592 ac_cv_file_src_plugins_constant_propagation=no
5593 fi
5594 fi
5595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_src_plugins_constant_propagation" >&5
5596 printf "%s\n" "$ac_cv_file_src_plugins_constant_propagation" >&6; }
5597 if test "x$ac_cv_file_src_plugins_constant_propagation" = xyes
5598 then :
5599 default=yes;plugin_present=yes
5600 else $as_nop
5601 plugin_present=no;default=no
5602 fi
5603
5604
5605 FORCE=no
5606
5607 # Check whether --enable-semantic_constant_folding was given.
5608 if test ${enable_semantic_constant_folding+y}
5609 then :
5610 enableval=$enable_semantic_constant_folding; ENABLE=$enableval;FORCE=$enableval
5611 else $as_nop
5612 ENABLE=$default
5613
5614 fi
5615
5616
5617 if test "$ONLY_KERNEL" = "yes" -a "$FORCE" = "no"; then
5618 ENABLE=no
5619 fi
5620
5621
5622
5623 if test "$plugin_present" = "no" -a "$FORCE" = "yes"; then
5624 as_fn_error $? "semantic_constant_folding is not available" "$LINENO" 5
5625 fi
5626
5627 FORCE_SEMANTIC_CONSTANT_FOLDING=$FORCE
5628 PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_SEMANTIC_CONSTANT_FOLDING
5629
5630 ENABLE_SEMANTIC_CONSTANT_FOLDING=$ENABLE
5631 NAME_SEMANTIC_CONSTANT_FOLDING=semantic_constant_folding
5632 if test "$default" = "no" -a "$FORCE" = "no"; then
5633 INFO_SEMANTIC_CONSTANT_FOLDING=" (not available by default)"
5634 fi
5635
5636
5637 echo "semantic_constant_folding... $ENABLE"
5638 # kept defined for write_plugin_config. A bit ugly, but not more than
5639 # usual autoconf stuff.
5640 # m4_undefine([PLUGIN_NAME])
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652 REQUIRE_EVA=$REQUIRE_EVA" "semantic_constant_folding
5653 REQUIRED_SEMANTIC_CONSTANT_FOLDING=$REQUIRED_SEMANTIC_CONSTANT_FOLDING" "eva
5654
5655
5656
5657
5658
5659
5660 # from
5661 ######
5662
5663
5664
5665
5666
5667
5668
5669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for src/plugins/from" >&5
5670 printf %s "checking for src/plugins/from... " >&6; }
5671 if test ${ac_cv_file_src_plugins_from+y}
5672 then :
5673 printf %s "(cached) " >&6
5674 else $as_nop
5675 test "$cross_compiling" = yes &&
5676 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
5677 if test -r "src/plugins/from"; then
5678 ac_cv_file_src_plugins_from=yes
5679 else
5680 ac_cv_file_src_plugins_from=no
5681 fi
5682 fi
5683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_src_plugins_from" >&5
5684 printf "%s\n" "$ac_cv_file_src_plugins_from" >&6; }
5685 if test "x$ac_cv_file_src_plugins_from" = xyes
5686 then :
5687 default=yes;plugin_present=yes
5688 else $as_nop
5689 plugin_present=no;default=no
5690 fi
5691
5692
5693 FORCE=no
5694
5695 # Check whether --enable-from_analysis was given.
5696 if test ${enable_from_analysis+y}
5697 then :
5698 enableval=$enable_from_analysis; ENABLE=$enableval;FORCE=$enableval
5699 else $as_nop
5700 ENABLE=$default
5701
5702 fi
5703
5704
5705 if test "$ONLY_KERNEL" = "yes" -a "$FORCE" = "no"; then
5706 ENABLE=no
5707 fi
5708
5709
5710
5711 if test "$plugin_present" = "no" -a "$FORCE" = "yes"; then
5712 as_fn_error $? "from_analysis is not available" "$LINENO" 5
5713 fi
5714
5715 FORCE_FROM_ANALYSIS=$FORCE
5716 PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_FROM_ANALYSIS
5717
5718 ENABLE_FROM_ANALYSIS=$ENABLE
5719 NAME_FROM_ANALYSIS=from_analysis
5720 if test "$default" = "no" -a "$FORCE" = "no"; then
5721 INFO_FROM_ANALYSIS=" (not available by default)"
5722 fi
5723
5724
5725 echo "from_analysis... $ENABLE"
5726 # kept defined for write_plugin_config. A bit ugly, but not more than
5727 # usual autoconf stuff.
5728 # m4_undefine([PLUGIN_NAME])
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740 REQUIRE_EVA=$REQUIRE_EVA" "from_analysis
5741 REQUIRED_FROM_ANALYSIS=$REQUIRED_FROM_ANALYSIS" "eva
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751 REQUIRE_CALLGRAPH=$REQUIRE_CALLGRAPH" "from_analysis
5752 REQUIRED_FROM_ANALYSIS=$REQUIRED_FROM_ANALYSIS" "callgraph
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762 REQUIRE_POSTDOMINATORS=$REQUIRE_POSTDOMINATORS" "from_analysis
5763 REQUIRED_FROM_ANALYSIS=$REQUIRED_FROM_ANALYSIS" "postdominators
5764
5765
5766
5767
5768
5769
5770 # gui
5771 #####
5772
5773
5774
5775
5776
5777
5778
5779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for src/plugins/gui" >&5
5780 printf %s "checking for src/plugins/gui... " >&6; }
5781 if test ${ac_cv_file_src_plugins_gui+y}
5782 then :
5783 printf %s "(cached) " >&6
5784 else $as_nop
5785 test "$cross_compiling" = yes &&
5786 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
5787 if test -r "src/plugins/gui"; then
5788 ac_cv_file_src_plugins_gui=yes
5789 else
5790 ac_cv_file_src_plugins_gui=no
5791 fi
5792 fi
5793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_src_plugins_gui" >&5
5794 printf "%s\n" "$ac_cv_file_src_plugins_gui" >&6; }
5795 if test "x$ac_cv_file_src_plugins_gui" = xyes
5796 then :
5797 default=yes;plugin_present=yes
5798 else $as_nop
5799 plugin_present=no;default=no
5800 fi
5801
5802
5803 FORCE=no
5804
5805 # Check whether --enable-gui was given.
5806 if test ${enable_gui+y}
5807 then :
5808 enableval=$enable_gui; ENABLE=$enableval;FORCE=$enableval
5809 else $as_nop
5810 ENABLE=$default
5811
5812 fi
5813
5814
5815 if test "$ONLY_KERNEL" = "yes" -a "$FORCE" = "no"; then
5816 ENABLE=no
5817 fi
5818
5819
5820
5821 if test "$plugin_present" = "no" -a "$FORCE" = "yes"; then
5822 as_fn_error $? "gui is not available" "$LINENO" 5
5823 fi
5824
5825 FORCE_GUI=$FORCE
5826 PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_GUI
5827
5828 ENABLE_GUI=$ENABLE
5829 NAME_GUI=gui
5830 if test "$default" = "no" -a "$FORCE" = "no"; then
5831 INFO_GUI=" (not available by default)"
5832 fi
5833
5834
5835 echo "gui... $ENABLE"
5836 # kept defined for write_plugin_config. A bit ugly, but not more than
5837 # usual autoconf stuff.
5838 # m4_undefine([PLUGIN_NAME])
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848 REQUIRE_LABLGTK=$REQUIRE_LABLGTK" "gui
5849
5850
5851 # in ocamlgraph 2, the gtk part is separated. Hence if we found it,
5852 # there's no need to check specifically for gnomecanvas
5853 if test "$HAS_OCAMLGRAPH_2" = "yes"; then
5854
5855
5856 USE_OCAML_OCAMLGRAPH_GTK=$USE_OCAML_OCAMLGRAPH_GTK" "gui
5857
5858
5859 else
5860
5861
5862 USE_GNOMECANVAS=$USE_GNOMECANVAS" "gui
5863
5864
5865 fi
5866
5867
5868 REQUIRE_GTKSOURCEVIEW=$REQUIRE_GTKSOURCEVIEW" "gui
5869
5870
5871
5872
5873 USE_DOT=$USE_DOT" "gui
5874
5875
5876
5877 # impact
5878 ########
5879
5880
5881
5882
5883
5884
5885
5886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for src/plugins/impact" >&5
5887 printf %s "checking for src/plugins/impact... " >&6; }
5888 if test ${ac_cv_file_src_plugins_impact+y}
5889 then :
5890 printf %s "(cached) " >&6
5891 else $as_nop
5892 test "$cross_compiling" = yes &&
5893 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
5894 if test -r "src/plugins/impact"; then
5895 ac_cv_file_src_plugins_impact=yes
5896 else
5897 ac_cv_file_src_plugins_impact=no
5898 fi
5899 fi
5900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_src_plugins_impact" >&5
5901 printf "%s\n" "$ac_cv_file_src_plugins_impact" >&6; }
5902 if test "x$ac_cv_file_src_plugins_impact" = xyes
5903 then :
5904 default=yes;plugin_present=yes
5905 else $as_nop
5906 plugin_present=no;default=no
5907 fi
5908
5909
5910 FORCE=no
5911
5912 # Check whether --enable-impact was given.
5913 if test ${enable_impact+y}
5914 then :
5915 enableval=$enable_impact; ENABLE=$enableval;FORCE=$enableval
5916 else $as_nop
5917 ENABLE=$default
5918
5919 fi
5920
5921
5922 if test "$ONLY_KERNEL" = "yes" -a "$FORCE" = "no"; then
5923 ENABLE=no
5924 fi
5925
5926
5927
5928 if test "$plugin_present" = "no" -a "$FORCE" = "yes"; then
5929 as_fn_error $? "impact is not available" "$LINENO" 5
5930 fi
5931
5932 FORCE_IMPACT=$FORCE
5933 PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_IMPACT
5934
5935 ENABLE_IMPACT=$ENABLE
5936 NAME_IMPACT=impact
5937 if test "$default" = "no" -a "$FORCE" = "no"; then
5938 INFO_IMPACT=" (not available by default)"
5939 fi
5940
5941
5942 echo "impact... $ENABLE"
5943 # kept defined for write_plugin_config. A bit ugly, but not more than
5944 # usual autoconf stuff.
5945 # m4_undefine([PLUGIN_NAME])
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957 USE_GUI=$USE_GUI" "impact
5958 USED_IMPACT=$USED_IMPACT" "gui
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968 REQUIRE_SLICING=$REQUIRE_SLICING" "impact
5969 REQUIRED_IMPACT=$REQUIRED_IMPACT" "slicing
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979 REQUIRE_PDG=$REQUIRE_PDG" "impact
5980 REQUIRED_IMPACT=$REQUIRED_IMPACT" "pdg
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990 REQUIRE_EVA=$REQUIRE_EVA" "impact
5991 REQUIRED_IMPACT=$REQUIRED_IMPACT" "eva
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001 REQUIRE_INOUT=$REQUIRE_INOUT" "impact
6002 REQUIRED_IMPACT=$REQUIRED_IMPACT" "inout
6003
6004
6005
6006
6007
6008
6009 # inout
6010 #######
6011
6012
6013
6014
6015
6016
6017
6018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for src/plugins/inout" >&5
6019 printf %s "checking for src/plugins/inout... " >&6; }
6020 if test ${ac_cv_file_src_plugins_inout+y}
6021 then :
6022 printf %s "(cached) " >&6
6023 else $as_nop
6024 test "$cross_compiling" = yes &&
6025 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
6026 if test -r "src/plugins/inout"; then
6027 ac_cv_file_src_plugins_inout=yes
6028 else
6029 ac_cv_file_src_plugins_inout=no
6030 fi
6031 fi
6032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_src_plugins_inout" >&5
6033 printf "%s\n" "$ac_cv_file_src_plugins_inout" >&6; }
6034 if test "x$ac_cv_file_src_plugins_inout" = xyes
6035 then :
6036 default=yes;plugin_present=yes
6037 else $as_nop
6038 plugin_present=no;default=no
6039 fi
6040
6041
6042 FORCE=no
6043
6044 # Check whether --enable-inout was given.
6045 if test ${enable_inout+y}
6046 then :
6047 enableval=$enable_inout; ENABLE=$enableval;FORCE=$enableval
6048 else $as_nop
6049 ENABLE=$default
6050
6051 fi
6052
6053
6054 if test "$ONLY_KERNEL" = "yes" -a "$FORCE" = "no"; then
6055 ENABLE=no
6056 fi
6057
6058
6059
6060 if test "$plugin_present" = "no" -a "$FORCE" = "yes"; then
6061 as_fn_error $? "inout is not available" "$LINENO" 5
6062 fi
6063
6064 FORCE_INOUT=$FORCE
6065 PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_INOUT
6066
6067 ENABLE_INOUT=$ENABLE
6068 NAME_INOUT=inout
6069 if test "$default" = "no" -a "$FORCE" = "no"; then
6070 INFO_INOUT=" (not available by default)"
6071 fi
6072
6073
6074 echo "inout... $ENABLE"
6075 # kept defined for write_plugin_config. A bit ugly, but not more than
6076 # usual autoconf stuff.
6077 # m4_undefine([PLUGIN_NAME])
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088 REQUIRE_FROM_ANALYSIS=$REQUIRE_FROM_ANALYSIS" "inout
6089 REQUIRED_INOUT=$REQUIRED_INOUT" "from_analysis
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099 REQUIRE_EVA=$REQUIRE_EVA" "inout
6100 REQUIRED_INOUT=$REQUIRED_INOUT" "eva
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110 REQUIRE_CALLGRAPH=$REQUIRE_CALLGRAPH" "inout
6111 REQUIRED_INOUT=$REQUIRED_INOUT" "callgraph
6112
6113
6114
6115
6116
6117
6118 # metrics
6119 #########
6120
6121
6122
6123
6124
6125
6126
6127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for src/plugins/metrics" >&5
6128 printf %s "checking for src/plugins/metrics... " >&6; }
6129 if test ${ac_cv_file_src_plugins_metrics+y}
6130 then :
6131 printf %s "(cached) " >&6
6132 else $as_nop
6133 test "$cross_compiling" = yes &&
6134 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
6135 if test -r "src/plugins/metrics"; then
6136 ac_cv_file_src_plugins_metrics=yes
6137 else
6138 ac_cv_file_src_plugins_metrics=no
6139 fi
6140 fi
6141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_src_plugins_metrics" >&5
6142 printf "%s\n" "$ac_cv_file_src_plugins_metrics" >&6; }
6143 if test "x$ac_cv_file_src_plugins_metrics" = xyes
6144 then :
6145 default=yes;plugin_present=yes
6146 else $as_nop
6147 plugin_present=no;default=no
6148 fi
6149
6150
6151 FORCE=no
6152
6153 # Check whether --enable-metrics was given.
6154 if test ${enable_metrics+y}
6155 then :
6156 enableval=$enable_metrics; ENABLE=$enableval;FORCE=$enableval
6157 else $as_nop
6158 ENABLE=$default
6159
6160 fi
6161
6162
6163 if test "$ONLY_KERNEL" = "yes" -a "$FORCE" = "no"; then
6164 ENABLE=no
6165 fi
6166
6167
6168
6169 if test "$plugin_present" = "no" -a "$FORCE" = "yes"; then
6170 as_fn_error $? "metrics is not available" "$LINENO" 5
6171 fi
6172
6173 FORCE_METRICS=$FORCE
6174 PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_METRICS
6175
6176 ENABLE_METRICS=$ENABLE
6177 NAME_METRICS=metrics
6178 if test "$default" = "no" -a "$FORCE" = "no"; then
6179 INFO_METRICS=" (not available by default)"
6180 fi
6181
6182
6183 echo "metrics... $ENABLE"
6184 # kept defined for write_plugin_config. A bit ugly, but not more than
6185 # usual autoconf stuff.
6186 # m4_undefine([PLUGIN_NAME])
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197 REQUIRE_SERVER=$REQUIRE_SERVER" "metrics
6198 REQUIRED_METRICS=$REQUIRED_METRICS" "server
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208 REQUIRE_EVA=$REQUIRE_EVA" "metrics
6209 REQUIRED_METRICS=$REQUIRED_METRICS" "eva
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219 USE_GUI=$USE_GUI" "metrics
6220 USED_METRICS=$USED_METRICS" "gui
6221
6222
6223
6224
6225
6226
6227 # occurrence
6228 ############
6229
6230
6231
6232
6233
6234
6235
6236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for src/plugins/occurrence" >&5
6237 printf %s "checking for src/plugins/occurrence... " >&6; }
6238 if test ${ac_cv_file_src_plugins_occurrence+y}
6239 then :
6240 printf %s "(cached) " >&6
6241 else $as_nop
6242 test "$cross_compiling" = yes &&
6243 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
6244 if test -r "src/plugins/occurrence"; then
6245 ac_cv_file_src_plugins_occurrence=yes
6246 else
6247 ac_cv_file_src_plugins_occurrence=no
6248 fi
6249 fi
6250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_src_plugins_occurrence" >&5
6251 printf "%s\n" "$ac_cv_file_src_plugins_occurrence" >&6; }
6252 if test "x$ac_cv_file_src_plugins_occurrence" = xyes
6253 then :
6254 default=yes;plugin_present=yes
6255 else $as_nop
6256 plugin_present=no;default=no
6257 fi
6258
6259
6260 FORCE=no
6261
6262 # Check whether --enable-occurrence was given.
6263 if test ${enable_occurrence+y}
6264 then :
6265 enableval=$enable_occurrence; ENABLE=$enableval;FORCE=$enableval
6266 else $as_nop
6267 ENABLE=$default
6268
6269 fi
6270
6271
6272 if test "$ONLY_KERNEL" = "yes" -a "$FORCE" = "no"; then
6273 ENABLE=no
6274 fi
6275
6276
6277
6278 if test "$plugin_present" = "no" -a "$FORCE" = "yes"; then
6279 as_fn_error $? "occurrence is not available" "$LINENO" 5
6280 fi
6281
6282 FORCE_OCCURRENCE=$FORCE
6283 PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_OCCURRENCE
6284
6285 ENABLE_OCCURRENCE=$ENABLE
6286 NAME_OCCURRENCE=occurrence
6287 if test "$default" = "no" -a "$FORCE" = "no"; then
6288 INFO_OCCURRENCE=" (not available by default)"
6289 fi
6290
6291
6292 echo "occurrence... $ENABLE"
6293 # kept defined for write_plugin_config. A bit ugly, but not more than
6294 # usual autoconf stuff.
6295 # m4_undefine([PLUGIN_NAME])
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306 USE_GUI=$USE_GUI" "occurrence
6307 USED_OCCURRENCE=$USED_OCCURRENCE" "gui
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317 REQUIRE_EVA=$REQUIRE_EVA" "occurrence
6318 REQUIRED_OCCURRENCE=$REQUIRED_OCCURRENCE" "eva
6319
6320
6321
6322
6323
6324
6325 # pdg
6326 #####
6327
6328
6329
6330
6331
6332
6333
6334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for src/plugins/pdg" >&5
6335 printf %s "checking for src/plugins/pdg... " >&6; }
6336 if test ${ac_cv_file_src_plugins_pdg+y}
6337 then :
6338 printf %s "(cached) " >&6
6339 else $as_nop
6340 test "$cross_compiling" = yes &&
6341 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
6342 if test -r "src/plugins/pdg"; then
6343 ac_cv_file_src_plugins_pdg=yes
6344 else
6345 ac_cv_file_src_plugins_pdg=no
6346 fi
6347 fi
6348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_src_plugins_pdg" >&5
6349 printf "%s\n" "$ac_cv_file_src_plugins_pdg" >&6; }
6350 if test "x$ac_cv_file_src_plugins_pdg" = xyes
6351 then :
6352 default=yes;plugin_present=yes
6353 else $as_nop
6354 plugin_present=no;default=no
6355 fi
6356
6357
6358 FORCE=no
6359
6360 # Check whether --enable-pdg was given.
6361 if test ${enable_pdg+y}
6362 then :
6363 enableval=$enable_pdg; ENABLE=$enableval;FORCE=$enableval
6364 else $as_nop
6365 ENABLE=$default
6366
6367 fi
6368
6369
6370 if test "$ONLY_KERNEL" = "yes" -a "$FORCE" = "no"; then
6371 ENABLE=no
6372 fi
6373
6374
6375
6376 if test "$plugin_present" = "no" -a "$FORCE" = "yes"; then
6377 as_fn_error $? "pdg is not available" "$LINENO" 5
6378 fi
6379
6380 FORCE_PDG=$FORCE
6381 PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_PDG
6382
6383 ENABLE_PDG=$ENABLE
6384 NAME_PDG=pdg
6385 if test "$default" = "no" -a "$FORCE" = "no"; then
6386 INFO_PDG=" (not available by default)"
6387 fi
6388
6389
6390 echo "pdg... $ENABLE"
6391 # kept defined for write_plugin_config. A bit ugly, but not more than
6392 # usual autoconf stuff.
6393 # m4_undefine([PLUGIN_NAME])
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404 REQUIRE_FROM_ANALYSIS=$REQUIRE_FROM_ANALYSIS" "pdg
6405 REQUIRED_PDG=$REQUIRED_PDG" "from_analysis
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415 REQUIRE_EVA=$REQUIRE_EVA" "pdg
6416 REQUIRED_PDG=$REQUIRED_PDG" "eva
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426 REQUIRE_CALLGRAPH=$REQUIRE_CALLGRAPH" "pdg
6427 REQUIRED_PDG=$REQUIRED_PDG" "callgraph
6428
6429
6430
6431
6432
6433
6434 # postdominators
6435 ################
6436
6437
6438
6439
6440
6441
6442
6443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for src/plugins/postdominators" >&5
6444 printf %s "checking for src/plugins/postdominators... " >&6; }
6445 if test ${ac_cv_file_src_plugins_postdominators+y}
6446 then :
6447 printf %s "(cached) " >&6
6448 else $as_nop
6449 test "$cross_compiling" = yes &&
6450 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
6451 if test -r "src/plugins/postdominators"; then
6452 ac_cv_file_src_plugins_postdominators=yes
6453 else
6454 ac_cv_file_src_plugins_postdominators=no
6455 fi
6456 fi
6457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_src_plugins_postdominators" >&5
6458 printf "%s\n" "$ac_cv_file_src_plugins_postdominators" >&6; }
6459 if test "x$ac_cv_file_src_plugins_postdominators" = xyes
6460 then :
6461 default=yes;plugin_present=yes
6462 else $as_nop
6463 plugin_present=no;default=no
6464 fi
6465
6466
6467 FORCE=no
6468
6469 # Check whether --enable-postdominators was given.
6470 if test ${enable_postdominators+y}
6471 then :
6472 enableval=$enable_postdominators; ENABLE=$enableval;FORCE=$enableval
6473 else $as_nop
6474 ENABLE=$default
6475
6476 fi
6477
6478
6479 if test "$ONLY_KERNEL" = "yes" -a "$FORCE" = "no"; then
6480 ENABLE=no
6481 fi
6482
6483
6484
6485 if test "$plugin_present" = "no" -a "$FORCE" = "yes"; then
6486 as_fn_error $? "postdominators is not available" "$LINENO" 5
6487 fi
6488
6489 FORCE_POSTDOMINATORS=$FORCE
6490 PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_POSTDOMINATORS
6491
6492 ENABLE_POSTDOMINATORS=$ENABLE
6493 NAME_POSTDOMINATORS=postdominators
6494 if test "$default" = "no" -a "$FORCE" = "no"; then
6495 INFO_POSTDOMINATORS=" (not available by default)"
6496 fi
6497
6498
6499 echo "postdominators... $ENABLE"
6500 # kept defined for write_plugin_config. A bit ugly, but not more than
6501 # usual autoconf stuff.
6502 # m4_undefine([PLUGIN_NAME])
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513 REQUIRE_EVA=$REQUIRE_EVA" "postdominators
6514 REQUIRED_POSTDOMINATORS=$REQUIRED_POSTDOMINATORS" "eva
6515
6516
6517
6518
6519
6520
6521 # reduc
6522 ############
6523
6524
6525
6526
6527
6528
6529
6530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for src/plugins/reduc" >&5
6531 printf %s "checking for src/plugins/reduc... " >&6; }
6532 if test ${ac_cv_file_src_plugins_reduc+y}
6533 then :
6534 printf %s "(cached) " >&6
6535 else $as_nop
6536 test "$cross_compiling" = yes &&
6537 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
6538 if test -r "src/plugins/reduc"; then
6539 ac_cv_file_src_plugins_reduc=yes
6540 else
6541 ac_cv_file_src_plugins_reduc=no
6542 fi
6543 fi
6544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_src_plugins_reduc" >&5
6545 printf "%s\n" "$ac_cv_file_src_plugins_reduc" >&6; }
6546 if test "x$ac_cv_file_src_plugins_reduc" = xyes
6547 then :
6548 default=yes;plugin_present=yes
6549 else $as_nop
6550 plugin_present=no;default=no
6551 fi
6552
6553
6554 FORCE=no
6555
6556 # Check whether --enable-reduc was given.
6557 if test ${enable_reduc+y}
6558 then :
6559 enableval=$enable_reduc; ENABLE=$enableval;FORCE=$enableval
6560 else $as_nop
6561 ENABLE=$default
6562
6563 fi
6564
6565
6566 if test "$ONLY_KERNEL" = "yes" -a "$FORCE" = "no"; then
6567 ENABLE=no
6568 fi
6569
6570
6571
6572 if test "$plugin_present" = "no" -a "$FORCE" = "yes"; then
6573 as_fn_error $? "reduc is not available" "$LINENO" 5
6574 fi
6575
6576 FORCE_REDUC=$FORCE
6577 PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_REDUC
6578
6579 ENABLE_REDUC=$ENABLE
6580 NAME_REDUC=reduc
6581 if test "$default" = "no" -a "$FORCE" = "no"; then
6582 INFO_REDUC=" (not available by default)"
6583 fi
6584
6585
6586 echo "reduc... $ENABLE"
6587 # kept defined for write_plugin_config. A bit ugly, but not more than
6588 # usual autoconf stuff.
6589 # m4_undefine([PLUGIN_NAME])
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600 REQUIRE_EVA=$REQUIRE_EVA" "reduc
6601 REQUIRED_REDUC=$REQUIRED_REDUC" "eva
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611 REQUIRE_INOUT=$REQUIRE_INOUT" "reduc
6612 REQUIRED_REDUC=$REQUIRED_REDUC" "inout
6613
6614
6615
6616
6617
6618
6619 # rte
6620 #####
6621
6622
6623
6624
6625
6626
6627
6628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for src/plugins/rte" >&5
6629 printf %s "checking for src/plugins/rte... " >&6; }
6630 if test ${ac_cv_file_src_plugins_rte+y}
6631 then :
6632 printf %s "(cached) " >&6
6633 else $as_nop
6634 test "$cross_compiling" = yes &&
6635 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
6636 if test -r "src/plugins/rte"; then
6637 ac_cv_file_src_plugins_rte=yes
6638 else
6639 ac_cv_file_src_plugins_rte=no
6640 fi
6641 fi
6642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_src_plugins_rte" >&5
6643 printf "%s\n" "$ac_cv_file_src_plugins_rte" >&6; }
6644 if test "x$ac_cv_file_src_plugins_rte" = xyes
6645 then :
6646 default=yes;plugin_present=yes
6647 else $as_nop
6648 plugin_present=no;default=no
6649 fi
6650
6651
6652 FORCE=no
6653
6654 # Check whether --enable-rtegen was given.
6655 if test ${enable_rtegen+y}
6656 then :
6657 enableval=$enable_rtegen; ENABLE=$enableval;FORCE=$enableval
6658 else $as_nop
6659 ENABLE=$default
6660
6661 fi
6662
6663
6664 if test "$ONLY_KERNEL" = "yes" -a "$FORCE" = "no"; then
6665 ENABLE=no
6666 fi
6667
6668
6669
6670 if test "$plugin_present" = "no" -a "$FORCE" = "yes"; then
6671 as_fn_error $? "rtegen is not available" "$LINENO" 5
6672 fi
6673
6674 FORCE_RTEGEN=$FORCE
6675 PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_RTEGEN
6676
6677 ENABLE_RTEGEN=$ENABLE
6678 NAME_RTEGEN=rtegen
6679 if test "$default" = "no" -a "$FORCE" = "no"; then
6680 INFO_RTEGEN=" (not available by default)"
6681 fi
6682
6683
6684 echo "rtegen... $ENABLE"
6685 # kept defined for write_plugin_config. A bit ugly, but not more than
6686 # usual autoconf stuff.
6687 # m4_undefine([PLUGIN_NAME])
6688
6689
6690
6691
6692
6693
6694
6695 # scope
6696 ############
6697
6698
6699
6700
6701
6702
6703
6704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for src/plugins/scope" >&5
6705 printf %s "checking for src/plugins/scope... " >&6; }
6706 if test ${ac_cv_file_src_plugins_scope+y}
6707 then :
6708 printf %s "(cached) " >&6
6709 else $as_nop
6710 test "$cross_compiling" = yes &&
6711 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
6712 if test -r "src/plugins/scope"; then
6713 ac_cv_file_src_plugins_scope=yes
6714 else
6715 ac_cv_file_src_plugins_scope=no
6716 fi
6717 fi
6718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_src_plugins_scope" >&5
6719 printf "%s\n" "$ac_cv_file_src_plugins_scope" >&6; }
6720 if test "x$ac_cv_file_src_plugins_scope" = xyes
6721 then :
6722 default=yes;plugin_present=yes
6723 else $as_nop
6724 plugin_present=no;default=no
6725 fi
6726
6727
6728 FORCE=no
6729
6730 # Check whether --enable-scope was given.
6731 if test ${enable_scope+y}
6732 then :
6733 enableval=$enable_scope; ENABLE=$enableval;FORCE=$enableval
6734 else $as_nop
6735 ENABLE=$default
6736
6737 fi
6738
6739
6740 if test "$ONLY_KERNEL" = "yes" -a "$FORCE" = "no"; then
6741 ENABLE=no
6742 fi
6743
6744
6745
6746 if test "$plugin_present" = "no" -a "$FORCE" = "yes"; then
6747 as_fn_error $? "scope is not available" "$LINENO" 5
6748 fi
6749
6750 FORCE_SCOPE=$FORCE
6751 PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_SCOPE
6752
6753 ENABLE_SCOPE=$ENABLE
6754 NAME_SCOPE=scope
6755 if test "$default" = "no" -a "$FORCE" = "no"; then
6756 INFO_SCOPE=" (not available by default)"
6757 fi
6758
6759
6760 echo "scope... $ENABLE"
6761 # kept defined for write_plugin_config. A bit ugly, but not more than
6762 # usual autoconf stuff.
6763 # m4_undefine([PLUGIN_NAME])
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774 REQUIRE_POSTDOMINATORS=$REQUIRE_POSTDOMINATORS" "scope
6775 REQUIRED_SCOPE=$REQUIRED_SCOPE" "postdominators
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785 REQUIRE_EVA=$REQUIRE_EVA" "scope
6786 REQUIRED_SCOPE=$REQUIRED_SCOPE" "eva
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796 REQUIRE_FROM_ANALYSIS=$REQUIRE_FROM_ANALYSIS" "scope
6797 REQUIRED_SCOPE=$REQUIRED_SCOPE" "from_analysis
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807 REQUIRE_PDG=$REQUIRE_PDG" "scope
6808 REQUIRED_SCOPE=$REQUIRED_SCOPE" "pdg
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818 USE_GUI=$USE_GUI" "scope
6819 USED_SCOPE=$USED_SCOPE" "gui
6820
6821
6822
6823
6824
6825
6826 # slicing
6827 #########
6828
6829
6830
6831
6832
6833
6834
6835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for src/plugins/slicing" >&5
6836 printf %s "checking for src/plugins/slicing... " >&6; }
6837 if test ${ac_cv_file_src_plugins_slicing+y}
6838 then :
6839 printf %s "(cached) " >&6
6840 else $as_nop
6841 test "$cross_compiling" = yes &&
6842 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
6843 if test -r "src/plugins/slicing"; then
6844 ac_cv_file_src_plugins_slicing=yes
6845 else
6846 ac_cv_file_src_plugins_slicing=no
6847 fi
6848 fi
6849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_src_plugins_slicing" >&5
6850 printf "%s\n" "$ac_cv_file_src_plugins_slicing" >&6; }
6851 if test "x$ac_cv_file_src_plugins_slicing" = xyes
6852 then :
6853 default=yes;plugin_present=yes
6854 else $as_nop
6855 plugin_present=no;default=no
6856 fi
6857
6858
6859 FORCE=no
6860
6861 # Check whether --enable-slicing was given.
6862 if test ${enable_slicing+y}
6863 then :
6864 enableval=$enable_slicing; ENABLE=$enableval;FORCE=$enableval
6865 else $as_nop
6866 ENABLE=$default
6867
6868 fi
6869
6870
6871 if test "$ONLY_KERNEL" = "yes" -a "$FORCE" = "no"; then
6872 ENABLE=no
6873 fi
6874
6875
6876
6877 if test "$plugin_present" = "no" -a "$FORCE" = "yes"; then
6878 as_fn_error $? "slicing is not available" "$LINENO" 5
6879 fi
6880
6881 FORCE_SLICING=$FORCE
6882 PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_SLICING
6883
6884 ENABLE_SLICING=$ENABLE
6885 NAME_SLICING=slicing
6886 if test "$default" = "no" -a "$FORCE" = "no"; then
6887 INFO_SLICING=" (not available by default)"
6888 fi
6889
6890
6891 echo "slicing... $ENABLE"
6892 # kept defined for write_plugin_config. A bit ugly, but not more than
6893 # usual autoconf stuff.
6894 # m4_undefine([PLUGIN_NAME])
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905 REQUIRE_FROM_ANALYSIS=$REQUIRE_FROM_ANALYSIS" "slicing
6906 REQUIRED_SLICING=$REQUIRED_SLICING" "from_analysis
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916 REQUIRE_PDG=$REQUIRE_PDG" "slicing
6917 REQUIRED_SLICING=$REQUIRED_SLICING" "pdg
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927 REQUIRE_EVA=$REQUIRE_EVA" "slicing
6928 REQUIRED_SLICING=$REQUIRED_SLICING" "eva
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938 REQUIRE_CALLGRAPH=$REQUIRE_CALLGRAPH" "slicing
6939 REQUIRED_SLICING=$REQUIRED_SLICING" "callgraph
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949 REQUIRE_SPARECODE=$REQUIRE_SPARECODE" "slicing
6950 REQUIRED_SLICING=$REQUIRED_SLICING" "sparecode
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960 USE_GUI=$USE_GUI" "slicing
6961 USED_SLICING=$USED_SLICING" "gui
6962
6963
6964
6965
6966
6967
6968 # spare code
6969 ############
6970
6971
6972
6973
6974
6975
6976
6977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for src/plugins/sparecode" >&5
6978 printf %s "checking for src/plugins/sparecode... " >&6; }
6979 if test ${ac_cv_file_src_plugins_sparecode+y}
6980 then :
6981 printf %s "(cached) " >&6
6982 else $as_nop
6983 test "$cross_compiling" = yes &&
6984 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
6985 if test -r "src/plugins/sparecode"; then
6986 ac_cv_file_src_plugins_sparecode=yes
6987 else
6988 ac_cv_file_src_plugins_sparecode=no
6989 fi
6990 fi
6991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_src_plugins_sparecode" >&5
6992 printf "%s\n" "$ac_cv_file_src_plugins_sparecode" >&6; }
6993 if test "x$ac_cv_file_src_plugins_sparecode" = xyes
6994 then :
6995 default=yes;plugin_present=yes
6996 else $as_nop
6997 plugin_present=no;default=no
6998 fi
6999
7000
7001 FORCE=no
7002
7003 # Check whether --enable-sparecode was given.
7004 if test ${enable_sparecode+y}
7005 then :
7006 enableval=$enable_sparecode; ENABLE=$enableval;FORCE=$enableval
7007 else $as_nop
7008 ENABLE=$default
7009
7010 fi
7011
7012
7013 if test "$ONLY_KERNEL" = "yes" -a "$FORCE" = "no"; then
7014 ENABLE=no
7015 fi
7016
7017
7018
7019 if test "$plugin_present" = "no" -a "$FORCE" = "yes"; then
7020 as_fn_error $? "sparecode is not available" "$LINENO" 5
7021 fi
7022
7023 FORCE_SPARECODE=$FORCE
7024 PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_SPARECODE
7025
7026 ENABLE_SPARECODE=$ENABLE
7027 NAME_SPARECODE=sparecode
7028 if test "$default" = "no" -a "$FORCE" = "no"; then
7029 INFO_SPARECODE=" (not available by default)"
7030 fi
7031
7032
7033 echo "sparecode... $ENABLE"
7034 # kept defined for write_plugin_config. A bit ugly, but not more than
7035 # usual autoconf stuff.
7036 # m4_undefine([PLUGIN_NAME])
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047 REQUIRE_PDG=$REQUIRE_PDG" "sparecode
7048 REQUIRED_SPARECODE=$REQUIRED_SPARECODE" "pdg
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058 REQUIRE_EVA=$REQUIRE_EVA" "sparecode
7059 REQUIRED_SPARECODE=$REQUIRED_SPARECODE" "eva
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069 REQUIRE_USERS=$REQUIRE_USERS" "sparecode
7070 REQUIRED_SPARECODE=$REQUIRED_SPARECODE" "users
7071
7072
7073
7074
7075
7076
7077 # users
7078 #######
7079
7080
7081
7082
7083
7084
7085
7086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for src/plugins/users" >&5
7087 printf %s "checking for src/plugins/users... " >&6; }
7088 if test ${ac_cv_file_src_plugins_users+y}
7089 then :
7090 printf %s "(cached) " >&6
7091 else $as_nop
7092 test "$cross_compiling" = yes &&
7093 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
7094 if test -r "src/plugins/users"; then
7095 ac_cv_file_src_plugins_users=yes
7096 else
7097 ac_cv_file_src_plugins_users=no
7098 fi
7099 fi
7100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_src_plugins_users" >&5
7101 printf "%s\n" "$ac_cv_file_src_plugins_users" >&6; }
7102 if test "x$ac_cv_file_src_plugins_users" = xyes
7103 then :
7104 default=yes;plugin_present=yes
7105 else $as_nop
7106 plugin_present=no;default=no
7107 fi
7108
7109
7110 FORCE=no
7111
7112 # Check whether --enable-users was given.
7113 if test ${enable_users+y}
7114 then :
7115 enableval=$enable_users; ENABLE=$enableval;FORCE=$enableval
7116 else $as_nop
7117 ENABLE=$default
7118
7119 fi
7120
7121
7122 if test "$ONLY_KERNEL" = "yes" -a "$FORCE" = "no"; then
7123 ENABLE=no
7124 fi
7125
7126
7127
7128 if test "$plugin_present" = "no" -a "$FORCE" = "yes"; then
7129 as_fn_error $? "users is not available" "$LINENO" 5
7130 fi
7131
7132 FORCE_USERS=$FORCE
7133 PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_USERS
7134
7135 ENABLE_USERS=$ENABLE
7136 NAME_USERS=users
7137 if test "$default" = "no" -a "$FORCE" = "no"; then
7138 INFO_USERS=" (not available by default)"
7139 fi
7140
7141
7142 echo "users... $ENABLE"
7143 # kept defined for write_plugin_config. A bit ugly, but not more than
7144 # usual autoconf stuff.
7145 # m4_undefine([PLUGIN_NAME])
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156 REQUIRE_EVA=$REQUIRE_EVA" "users
7157 REQUIRED_USERS=$REQUIRED_USERS" "eva
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167 REQUIRE_CALLGRAPH=$REQUIRE_CALLGRAPH" "users
7168 REQUIRED_USERS=$REQUIRED_USERS" "callgraph
7169
7170
7171
7172
7173
7174
7175 # value
7176 #######
7177
7178
7179
7180
7181
7182
7183
7184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for src/plugins/value" >&5
7185 printf %s "checking for src/plugins/value... " >&6; }
7186 if test ${ac_cv_file_src_plugins_value+y}
7187 then :
7188 printf %s "(cached) " >&6
7189 else $as_nop
7190 test "$cross_compiling" = yes &&
7191 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
7192 if test -r "src/plugins/value"; then
7193 ac_cv_file_src_plugins_value=yes
7194 else
7195 ac_cv_file_src_plugins_value=no
7196 fi
7197 fi
7198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_src_plugins_value" >&5
7199 printf "%s\n" "$ac_cv_file_src_plugins_value" >&6; }
7200 if test "x$ac_cv_file_src_plugins_value" = xyes
7201 then :
7202 default=yes;plugin_present=yes
7203 else $as_nop
7204 plugin_present=no;default=no
7205 fi
7206
7207
7208 FORCE=no
7209
7210 # Check whether --enable-eva was given.
7211 if test ${enable_eva+y}
7212 then :
7213 enableval=$enable_eva; ENABLE=$enableval;FORCE=$enableval
7214 else $as_nop
7215 ENABLE=$default
7216
7217 fi
7218
7219
7220 if test "$ONLY_KERNEL" = "yes" -a "$FORCE" = "no"; then
7221 ENABLE=no
7222 fi
7223
7224
7225
7226 if test "$plugin_present" = "no" -a "$FORCE" = "yes"; then
7227 as_fn_error $? "eva is not available" "$LINENO" 5
7228 fi
7229
7230 FORCE_EVA=$FORCE
7231 PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_EVA
7232
7233 ENABLE_EVA=$ENABLE
7234 NAME_EVA=eva
7235 if test "$default" = "no" -a "$FORCE" = "no"; then
7236 INFO_EVA=" (not available by default)"
7237 fi
7238
7239
7240 echo "eva... $ENABLE"
7241 # kept defined for write_plugin_config. A bit ugly, but not more than
7242 # usual autoconf stuff.
7243 # m4_undefine([PLUGIN_NAME])
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254 USE_GUI=$USE_GUI" "eva
7255 USED_EVA=$USED_EVA" "gui
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265 USE_SCOPE=$USE_SCOPE" "eva
7266 USED_EVA=$USED_EVA" "scope
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276 USE_INOUT=$USE_INOUT" "eva
7277 USED_EVA=$USED_EVA" "inout
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287 USE_CALLGRAPH=$USE_CALLGRAPH" "eva
7288 USED_EVA=$USED_EVA" "callgraph
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298 REQUIRE_SERVER=$REQUIRE_SERVER" "eva
7299 REQUIRED_EVA=$REQUIRED_EVA" "server
7300
7301
7302
7303
7304
7305
7306 ####################
7307 # External plugins #
7308 ####################
7309
7310 EXTRA_EXTERNAL_PLUGINS=
7311
7312 # Check whether --enable-external was given.
7313 if test ${enable_external+y}
7314 then :
7315 enableval=$enable_external;
7316 for dir in $enableval; do
7317 if test -d $dir; then
7318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: external plug-in $dir found." >&5
7319 printf "%s\n" "$as_me: external plug-in $dir found." >&6;}
7320 EXTRA_EXTERNAL_PLUGINS="$EXTRA_EXTERNAL_PLUGINS $dir"
7321 olddir=$(pwd)
7322 cd $dir;
7323 if test -x ./configure; then
7324 new_section "configure plug-in $dir"
7325 ./configure --prefix=$prefix --datarootdir=$datarootdir \
7326 --exec_prefix=$exec_prefix --bindir=$bindir --libdir=$datadir/frama-c \
7327 --host=$host --build=$build --mandir=$mandir \
7328 || \
7329 as_fn_error $? "cannot configure requested external plugin in $dir" "$LINENO" 5
7330 fi;
7331 cd $olddir
7332 else
7333 as_fn_error $? "--enable-external expects an existing directory as argument." "$LINENO" 5
7334 fi;
7335 done
7336
7337 fi
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349 ##########################################################################
7350 # #
7351 # This file is part of Aorai plug-in of Frama-C. #
7352 # #
7353 # Copyright (C) 2007-2022 #
7354 # CEA (Commissariat à l'énergie atomique et aux énergies #
7355 # alternatives) #
7356 # INRIA (Institut National de Recherche en Informatique et en #
7357 # Automatique) #
7358 # INSA (Institut National des Sciences Appliquees) #
7359 # #
7360 # you can redistribute it and/or modify it under the terms of the GNU #
7361 # Lesser General Public License as published by the Free Software #
7362 # Foundation, version 2.1. #
7363 # #
7364 # It is distributed in the hope that it will be useful, #
7365 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
7366 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
7367 # GNU Lesser General Public License for more details. #
7368 # #
7369 # See the GNU Lesser General Public License version 2.1 #
7370 # for more details (enclosed in the file licenses/LGPLv2.1). #
7371 # #
7372 ##########################################################################
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for src/plugins/aorai/Makefile.in" >&5
7389 printf %s "checking for src/plugins/aorai/Makefile.in... " >&6; }
7390 if test ${ac_cv_file_src_plugins_aorai_Makefile_in+y}
7391 then :
7392 printf %s "(cached) " >&6
7393 else $as_nop
7394 test "$cross_compiling" = yes &&
7395 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
7396 if test -r "src/plugins/aorai/Makefile.in"; then
7397 ac_cv_file_src_plugins_aorai_Makefile_in=yes
7398 else
7399 ac_cv_file_src_plugins_aorai_Makefile_in=no
7400 fi
7401 fi
7402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_src_plugins_aorai_Makefile_in" >&5
7403 printf "%s\n" "$ac_cv_file_src_plugins_aorai_Makefile_in" >&6; }
7404 if test "x$ac_cv_file_src_plugins_aorai_Makefile_in" = xyes
7405 then :
7406 default=yes;plugin_present=yes
7407 else $as_nop
7408 plugin_present=no;default=no
7409 fi
7410
7411
7412 FORCE=no
7413
7414 # Check whether --enable-aorai was given.
7415 if test ${enable_aorai+y}
7416 then :
7417 enableval=$enable_aorai; ENABLE=$enableval;FORCE=$enableval
7418 else $as_nop
7419 ENABLE=$default
7420
7421 fi
7422
7423
7424 if test "$ONLY_KERNEL" = "yes" -a "$FORCE" = "no"; then
7425 ENABLE=no
7426 fi
7427
7428
7429
7430 if test "$plugin_present" = "no" -a "$FORCE" = "yes"; then
7431 as_fn_error $? "aorai is not available" "$LINENO" 5
7432 fi
7433
7434 FORCE_AORAI=$FORCE
7435 PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_AORAI
7436
7437 ENABLE_AORAI=$ENABLE
7438 NAME_AORAI=aorai
7439 if test "$default" = "no" -a "$FORCE" = "no"; then
7440 INFO_AORAI=" (not available by default)"
7441 fi
7442
7443
7444 echo "aorai... $ENABLE"
7445 # kept defined for write_plugin_config. A bit ugly, but not more than
7446 # usual autoconf stuff.
7447 # m4_undefine([PLUGIN_NAME])
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457 USE_LTLTOBA=$USE_LTLTOBA" "aorai
7458
7459
7460
7461 if test "$ENABLE_AORAI" != "no"; then
7462 # ltl2ba library
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473 for file in ltl2ba; do
7474 HAS_LTLTOBA=
7475 # Extract the first word of "$file", so it can be a program name with args.
7476 set dummy $file; ac_word=$2
7477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7478 printf %s "checking for $ac_word... " >&6; }
7479 if test ${ac_cv_prog_HAS_LTLTOBA+y}
7480 then :
7481 printf %s "(cached) " >&6
7482 else $as_nop
7483 if test -n "$HAS_LTLTOBA"; then
7484 ac_cv_prog_HAS_LTLTOBA="$HAS_LTLTOBA" # Let the user override the test.
7485 else
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487 for as_dir in $PATH
7488 do
7489 IFS=$as_save_IFS
7490 case $as_dir in #(((
7491 '') as_dir=./ ;;
7492 */) ;;
7493 *) as_dir=$as_dir/ ;;
7494 esac
7495 for ac_exec_ext in '' $ac_executable_extensions; do
7496 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7497 ac_cv_prog_HAS_LTLTOBA="yes"
7498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7499 break 2
7500 fi
7501 done
7502 done
7503 IFS=$as_save_IFS
7504
7505 test -z "$ac_cv_prog_HAS_LTLTOBA" && ac_cv_prog_HAS_LTLTOBA="no"
7506 fi
7507 fi
7508 HAS_LTLTOBA=$ac_cv_prog_HAS_LTLTOBA
7509 if test -n "$HAS_LTLTOBA"; then
7510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAS_LTLTOBA" >&5
7511 printf "%s\n" "$HAS_LTLTOBA" >&6; }
7512 else
7513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514 printf "%s\n" "no" >&6; }
7515 fi
7516
7517
7518 if test "$HAS_LTLTOBA" = "yes"; then SELECTED_VAR=$file break; fi
7519 done
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531 fi
7532
7533
7534
7535
7536
7537
7538 if test "$ENABLE_AORAI" != "no"; then
7539 EXTERNAL_PLUGINS="${EXTERNAL_PLUGINS} src/plugins/aorai";
7540 fi
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578 ##########################################################################
7579 # #
7580 # This file is part of Frama-C. #
7581 # #
7582 # Copyright (C) 2007-2022 #
7583 # CEA (Commissariat à l'énergie atomique et aux énergies #
7584 # alternatives) #
7585 # #
7586 # you can redistribute it and/or modify it under the terms of the GNU #
7587 # Lesser General Public License as published by the Free Software #
7588 # Foundation, version 2.1. #
7589 # #
7590 # It is distributed in the hope that it will be useful, #
7591 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
7592 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
7593 # GNU Lesser General Public License for more details. #
7594 # #
7595 # See the GNU Lesser General Public License version 2.1 #
7596 # for more details (enclosed in the file licenses/LGPLv2.1). #
7597 # #
7598 ##########################################################################
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for src/plugins/dive/Makefile.in" >&5
7615 printf %s "checking for src/plugins/dive/Makefile.in... " >&6; }
7616 if test ${ac_cv_file_src_plugins_dive_Makefile_in+y}
7617 then :
7618 printf %s "(cached) " >&6
7619 else $as_nop
7620 test "$cross_compiling" = yes &&
7621 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
7622 if test -r "src/plugins/dive/Makefile.in"; then
7623 ac_cv_file_src_plugins_dive_Makefile_in=yes
7624 else
7625 ac_cv_file_src_plugins_dive_Makefile_in=no
7626 fi
7627 fi
7628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_src_plugins_dive_Makefile_in" >&5
7629 printf "%s\n" "$ac_cv_file_src_plugins_dive_Makefile_in" >&6; }
7630 if test "x$ac_cv_file_src_plugins_dive_Makefile_in" = xyes
7631 then :
7632 default=yes;plugin_present=yes
7633 else $as_nop
7634 plugin_present=no;default=no
7635 fi
7636
7637
7638 FORCE=no
7639
7640 # Check whether --enable-dive was given.
7641 if test ${enable_dive+y}
7642 then :
7643 enableval=$enable_dive; ENABLE=$enableval;FORCE=$enableval
7644 else $as_nop
7645 ENABLE=$default
7646
7647 fi
7648
7649
7650 if test "$ONLY_KERNEL" = "yes" -a "$FORCE" = "no"; then
7651 ENABLE=no
7652 fi
7653
7654
7655
7656 if test "$plugin_present" = "no" -a "$FORCE" = "yes"; then
7657 as_fn_error $? "dive is not available" "$LINENO" 5
7658 fi
7659
7660 FORCE_DIVE=$FORCE
7661 PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_DIVE
7662
7663 ENABLE_DIVE=$ENABLE
7664 NAME_DIVE=dive
7665 if test "$default" = "no" -a "$FORCE" = "no"; then
7666 INFO_DIVE=" (not available by default)"
7667 fi
7668
7669
7670 echo "dive... $ENABLE"
7671 # kept defined for write_plugin_config. A bit ugly, but not more than
7672 # usual autoconf stuff.
7673 # m4_undefine([PLUGIN_NAME])
7674
7675
7676
7677
7678
7679
7680
7681 # Plug-in dependencies
7682 ######################
7683
7684
7685
7686
7687
7688 REQUIRE_EVA=$REQUIRE_EVA" "dive
7689 REQUIRED_DIVE=$REQUIRED_DIVE" "eva
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699 REQUIRE_STUDIA=$REQUIRE_STUDIA" "dive
7700 REQUIRED_DIVE=$REQUIRED_DIVE" "studia
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710 REQUIRE_SERVER=$REQUIRE_SERVER" "dive
7711 REQUIRED_DIVE=$REQUIRED_DIVE" "server
7712
7713
7714
7715
7716
7717 #plugin_use(dive,usable_plugin_but_not_mandatory)
7718
7719
7720
7721
7722
7723
7724 if test "$ENABLE_DIVE" != "no"; then
7725 EXTERNAL_PLUGINS="${EXTERNAL_PLUGINS} src/plugins/dive";
7726 fi
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742 ##########################################################################
7743 # #
7744 # This file is part of the Frama-C's E-ACSL plug-in. #
7745 # #
7746 # Copyright (C) 2012-2021 #
7747 # CEA (Commissariat à l'énergie atomique et aux énergies #
7748 # alternatives) #
7749 # #
7750 # you can redistribute it and/or modify it under the terms of the GNU #
7751 # Lesser General Public License as published by the Free Software #
7752 # Foundation, version 2.1. #
7753 # #
7754 # It is distributed in the hope that it will be useful, #
7755 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
7756 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
7757 # GNU Lesser General Public License for more details. #
7758 # #
7759 # See the GNU Lesser General Public License version 2.1 #
7760 # for more details (enclosed in the file licenses/LGPLv2.1). #
7761 # #
7762 ##########################################################################
7763
7764 ########################################
7765 # E-ACSL as a standard Frama-C plug-in #
7766 ########################################
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for src/plugins/e-acsl/Makefile.in" >&5
7783 printf %s "checking for src/plugins/e-acsl/Makefile.in... " >&6; }
7784 if test ${ac_cv_file_src_plugins_e_acsl_Makefile_in+y}
7785 then :
7786 printf %s "(cached) " >&6
7787 else $as_nop
7788 test "$cross_compiling" = yes &&
7789 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
7790 if test -r "src/plugins/e-acsl/Makefile.in"; then
7791 ac_cv_file_src_plugins_e_acsl_Makefile_in=yes
7792 else
7793 ac_cv_file_src_plugins_e_acsl_Makefile_in=no
7794 fi
7795 fi
7796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_src_plugins_e_acsl_Makefile_in" >&5
7797 printf "%s\n" "$ac_cv_file_src_plugins_e_acsl_Makefile_in" >&6; }
7798 if test "x$ac_cv_file_src_plugins_e_acsl_Makefile_in" = xyes
7799 then :
7800 default=yes;plugin_present=yes
7801 else $as_nop
7802 plugin_present=no;default=no
7803 fi
7804
7805
7806 FORCE=no
7807
7808 # Check whether --enable-e_acsl was given.
7809 if test ${enable_e_acsl+y}
7810 then :
7811 enableval=$enable_e_acsl; ENABLE=$enableval;FORCE=$enableval
7812 else $as_nop
7813 ENABLE=$default
7814
7815 fi
7816
7817
7818 if test "$ONLY_KERNEL" = "yes" -a "$FORCE" = "no"; then
7819 ENABLE=no
7820 fi
7821
7822
7823
7824 if test "$plugin_present" = "no" -a "$FORCE" = "yes"; then
7825 as_fn_error $? "e_acsl is not available" "$LINENO" 5
7826 fi
7827
7828 FORCE_E_ACSL=$FORCE
7829 PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_E_ACSL
7830
7831 ENABLE_E_ACSL=$ENABLE
7832 NAME_E_ACSL=e_acsl
7833 if test "$default" = "no" -a "$FORCE" = "no"; then
7834 INFO_E_ACSL=" (not available by default)"
7835 fi
7836
7837
7838 echo "e_acsl... $ENABLE"
7839 # kept defined for write_plugin_config. A bit ugly, but not more than
7840 # usual autoconf stuff.
7841 # m4_undefine([PLUGIN_NAME])
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853 REQUIRE_RTEGEN=$REQUIRE_RTEGEN" "e_acsl
7854 REQUIRED_E_ACSL=$REQUIRED_E_ACSL" "rtegen
7855
7856
7857
7858
7859
7860
7861 # E-ACSL only works on Linux as of now. Disable it on Mac OS and Windows
7862 # Extract the first word of "uname", so it can be a program name with args.
7863 set dummy uname; ac_word=$2
7864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7865 printf %s "checking for $ac_word... " >&6; }
7866 if test ${ac_cv_prog_UNAME+y}
7867 then :
7868 printf %s "(cached) " >&6
7869 else $as_nop
7870 if test -n "$UNAME"; then
7871 ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
7872 else
7873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874 for as_dir in $PATH
7875 do
7876 IFS=$as_save_IFS
7877 case $as_dir in #(((
7878 '') as_dir=./ ;;
7879 */) ;;
7880 *) as_dir=$as_dir/ ;;
7881 esac
7882 for ac_exec_ext in '' $ac_executable_extensions; do
7883 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7884 ac_cv_prog_UNAME="uname"
7885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7886 break 2
7887 fi
7888 done
7889 done
7890 IFS=$as_save_IFS
7891
7892 test -z "$ac_cv_prog_UNAME" && ac_cv_prog_UNAME="no"
7893 fi
7894 fi
7895 UNAME=$ac_cv_prog_UNAME
7896 if test -n "$UNAME"; then
7897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
7898 printf "%s\n" "$UNAME" >&6; }
7899 else
7900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7901 printf "%s\n" "no" >&6; }
7902 fi
7903
7904
7905
7906 if test "$UNAME" = "no"; then
7907
7908
7909
7910 if test "FORCE_E_ACSL" = "yes"; then
7911 as_fn_error $? "e_acsl requested but Not on a POSIX platform." "$LINENO" 5;
7912 else
7913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: e_acsl disabled because Not on a POSIX platform." >&5
7914 printf "%s\n" "$as_me: WARNING: e_acsl disabled because Not on a POSIX platform." >&2;};
7915 ENABLE_E_ACSL=no;
7916 INFO_E_ACSL=", Not on a POSIX platform."
7917 fi
7918 fi
7919
7920 HOST_OS=$($UNAME -s)
7921 case $HOST_OS in
7922 Darwin | Linux | DragonFly | FreeBSD | NetBSD | OpenBSD)
7923 # BSDs haven't really be tested, but it should at least compile fine
7924 ;;
7925 *)
7926
7927
7928
7929 if test "FORCE_E_ACSL" = "yes"; then
7930 as_fn_error $? "e_acsl requested but unsupported system $HOST_OS" "$LINENO" 5;
7931 else
7932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: e_acsl disabled because unsupported system $HOST_OS" >&5
7933 printf "%s\n" "$as_me: WARNING: e_acsl disabled because unsupported system $HOST_OS" >&2;};
7934 ENABLE_E_ACSL=no;
7935 INFO_E_ACSL=", unsupported system $HOST_OS"
7936 fi
7937 ;;
7938 esac
7939
7940
7941
7942
7943
7944
7945 if test "$ENABLE_E_ACSL" != "no"; then
7946 EXTERNAL_PLUGINS="${EXTERNAL_PLUGINS} src/plugins/e-acsl";
7947 fi
7948
7949
7950 ###############################
7951 # Configure contrib libraries #
7952 ###############################
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013 ##########################################################################
8014 # #
8015 # This file is part of Frama-C. #
8016 # #
8017 # Copyright (C) 2007-2022 #
8018 # CEA (Commissariat à l'énergie atomique et aux énergies #
8019 # alternatives) #
8020 # #
8021 # you can redistribute it and/or modify it under the terms of the GNU #
8022 # Lesser General Public License as published by the Free Software #
8023 # Foundation, version 2.1. #
8024 # #
8025 # It is distributed in the hope that it will be useful, #
8026 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
8027 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
8028 # GNU Lesser General Public License for more details. #
8029 # #
8030 # See the GNU Lesser General Public License version 2.1 #
8031 # for more details (enclosed in the file licenses/LGPLv2.1). #
8032 # #
8033 ##########################################################################
8034
8035 ##########################################
8036 # Instantiate plugin #
8037 ##########################################
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for src/plugins/instantiate/Makefile.in" >&5
8054 printf %s "checking for src/plugins/instantiate/Makefile.in... " >&6; }
8055 if test ${ac_cv_file_src_plugins_instantiate_Makefile_in+y}
8056 then :
8057 printf %s "(cached) " >&6
8058 else $as_nop
8059 test "$cross_compiling" = yes &&
8060 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
8061 if test -r "src/plugins/instantiate/Makefile.in"; then
8062 ac_cv_file_src_plugins_instantiate_Makefile_in=yes
8063 else
8064 ac_cv_file_src_plugins_instantiate_Makefile_in=no
8065 fi
8066 fi
8067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_src_plugins_instantiate_Makefile_in" >&5
8068 printf "%s\n" "$ac_cv_file_src_plugins_instantiate_Makefile_in" >&6; }
8069 if test "x$ac_cv_file_src_plugins_instantiate_Makefile_in" = xyes
8070 then :
8071 default=yes;plugin_present=yes
8072 else $as_nop
8073 plugin_present=no;default=no
8074 fi
8075
8076
8077 FORCE=no
8078
8079 # Check whether --enable-instantiate was given.
8080 if test ${enable_instantiate+y}
8081 then :
8082 enableval=$enable_instantiate; ENABLE=$enableval;FORCE=$enableval
8083 else $as_nop
8084 ENABLE=$default
8085
8086 fi
8087
8088
8089 if test "$ONLY_KERNEL" = "yes" -a "$FORCE" = "no"; then
8090 ENABLE=no
8091 fi
8092
8093
8094
8095 if test "$plugin_present" = "no" -a "$FORCE" = "yes"; then
8096 as_fn_error $? "instantiate is not available" "$LINENO" 5
8097 fi
8098
8099 FORCE_INSTANTIATE=$FORCE
8100 PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_INSTANTIATE
8101
8102 ENABLE_INSTANTIATE=$ENABLE
8103 NAME_INSTANTIATE=instantiate
8104 if test "$default" = "no" -a "$FORCE" = "no"; then
8105 INFO_INSTANTIATE=" (not available by default)"
8106 fi
8107
8108
8109 echo "instantiate... $ENABLE"
8110 # kept defined for write_plugin_config. A bit ugly, but not more than
8111 # usual autoconf stuff.
8112 # m4_undefine([PLUGIN_NAME])
8113
8114
8115
8116
8117
8118
8119
8120 #######################
8121 # Generating Makefile #
8122 #######################
8123
8124
8125
8126
8127 ac_config_files="$ac_config_files src/plugins/instantiate/Makefile"
8128
8129
8130
8131 if test "$ENABLE_INSTANTIATE" != "no"; then
8132 EXTERNAL_PLUGINS="${EXTERNAL_PLUGINS} src/plugins/instantiate";
8133 fi
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149 ##########################################################################
8150 # #
8151 # This file is part of Frama-C. #
8152 # #
8153 # Copyright (C) 2007-2022 #
8154 # CEA (Commissariat à l'énergie atomique et aux énergies #
8155 # alternatives) #
8156 # #
8157 # you can redistribute it and/or modify it under the terms of the GNU #
8158 # Lesser General Public License as published by the Free Software #
8159 # Foundation, version 2.1. #
8160 # #
8161 # It is distributed in the hope that it will be useful, #
8162 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
8163 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
8164 # GNU Lesser General Public License for more details. #
8165 # #
8166 # See the GNU Lesser General Public License version 2.1 #
8167 # for more details (enclosed in the file licenses/LGPLv2.1). #
8168 # #
8169 ##########################################################################
8170
8171 ##############################################
8172 # LoopAnalysis as a standard Frama-C plug-in #
8173 ##############################################
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for src/plugins/loop_analysis/Makefile.in" >&5
8190 printf %s "checking for src/plugins/loop_analysis/Makefile.in... " >&6; }
8191 if test ${ac_cv_file_src_plugins_loop_analysis_Makefile_in+y}
8192 then :
8193 printf %s "(cached) " >&6
8194 else $as_nop
8195 test "$cross_compiling" = yes &&
8196 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
8197 if test -r "src/plugins/loop_analysis/Makefile.in"; then
8198 ac_cv_file_src_plugins_loop_analysis_Makefile_in=yes
8199 else
8200 ac_cv_file_src_plugins_loop_analysis_Makefile_in=no
8201 fi
8202 fi
8203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_src_plugins_loop_analysis_Makefile_in" >&5
8204 printf "%s\n" "$ac_cv_file_src_plugins_loop_analysis_Makefile_in" >&6; }
8205 if test "x$ac_cv_file_src_plugins_loop_analysis_Makefile_in" = xyes
8206 then :
8207 default=yes;plugin_present=yes
8208 else $as_nop
8209 plugin_present=no;default=no
8210 fi
8211
8212
8213 FORCE=no
8214
8215 # Check whether --enable-loop_analysis was given.
8216 if test ${enable_loop_analysis+y}
8217 then :
8218 enableval=$enable_loop_analysis; ENABLE=$enableval;FORCE=$enableval
8219 else $as_nop
8220 ENABLE=$default
8221
8222 fi
8223
8224
8225 if test "$ONLY_KERNEL" = "yes" -a "$FORCE" = "no"; then
8226 ENABLE=no
8227 fi
8228
8229
8230
8231 if test "$plugin_present" = "no" -a "$FORCE" = "yes"; then
8232 as_fn_error $? "loop_analysis is not available" "$LINENO" 5
8233 fi
8234
8235 FORCE_LOOP_ANALYSIS=$FORCE
8236 PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_LOOP_ANALYSIS
8237
8238 ENABLE_LOOP_ANALYSIS=$ENABLE
8239 NAME_LOOP_ANALYSIS=loop_analysis
8240 if test "$default" = "no" -a "$FORCE" = "no"; then
8241 INFO_LOOP_ANALYSIS=" (not available by default)"
8242 fi
8243
8244
8245 echo "loop_analysis... $ENABLE"
8246 # kept defined for write_plugin_config. A bit ugly, but not more than
8247 # usual autoconf stuff.
8248 # m4_undefine([PLUGIN_NAME])
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259 REQUIRE_EVA=$REQUIRE_EVA" "loop_analysis
8260 REQUIRED_LOOP_ANALYSIS=$REQUIRED_LOOP_ANALYSIS" "eva
8261
8262
8263
8264
8265
8266
8267 #######################
8268 # Generating Makefile #
8269 #######################
8270
8271
8272
8273
8274 ac_config_files="$ac_config_files src/plugins/loop_analysis/Makefile"
8275
8276
8277
8278 if test "$ENABLE_LOOP_ANALYSIS" != "no"; then
8279 EXTERNAL_PLUGINS="${EXTERNAL_PLUGINS} src/plugins/loop_analysis";
8280 fi
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296 ##########################################################################
8297 # #
8298 # This file is part of Frama-C. #
8299 # #
8300 # Copyright (C) 2007-2022 #
8301 # CEA (Commissariat à l'énergie atomique et aux énergies #
8302 # alternatives) #
8303 # #
8304 # you can redistribute it and/or modify it under the terms of the GNU #
8305 # Lesser General Public License as published by the Free Software #
8306 # Foundation, version 2.1. #
8307 # #
8308 # It is distributed in the hope that it will be useful, #
8309 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
8310 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
8311 # GNU Lesser General Public License for more details. #
8312 # #
8313 # See the GNU Lesser General Public License version 2.1 #
8314 # for more details (enclosed in the file licenses/LGPLv2.1). #
8315 # #
8316 ##########################################################################
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for src/plugins/markdown-report/Makefile.in" >&5
8333 printf %s "checking for src/plugins/markdown-report/Makefile.in... " >&6; }
8334 if test ${ac_cv_file_src_plugins_markdown_report_Makefile_in+y}
8335 then :
8336 printf %s "(cached) " >&6
8337 else $as_nop
8338 test "$cross_compiling" = yes &&
8339 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
8340 if test -r "src/plugins/markdown-report/Makefile.in"; then
8341 ac_cv_file_src_plugins_markdown_report_Makefile_in=yes
8342 else
8343 ac_cv_file_src_plugins_markdown_report_Makefile_in=no
8344 fi
8345 fi
8346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_src_plugins_markdown_report_Makefile_in" >&5
8347 printf "%s\n" "$ac_cv_file_src_plugins_markdown_report_Makefile_in" >&6; }
8348 if test "x$ac_cv_file_src_plugins_markdown_report_Makefile_in" = xyes
8349 then :
8350 default=yes;plugin_present=yes
8351 else $as_nop
8352 plugin_present=no;default=no
8353 fi
8354
8355
8356 FORCE=no
8357
8358 # Check whether --enable-mdr was given.
8359 if test ${enable_mdr+y}
8360 then :
8361 enableval=$enable_mdr; ENABLE=$enableval;FORCE=$enableval
8362 else $as_nop
8363 ENABLE=$default
8364
8365 fi
8366
8367
8368 if test "$ONLY_KERNEL" = "yes" -a "$FORCE" = "no"; then
8369 ENABLE=no
8370 fi
8371
8372
8373
8374 if test "$plugin_present" = "no" -a "$FORCE" = "yes"; then
8375 as_fn_error $? "mdr is not available" "$LINENO" 5
8376 fi
8377
8378 FORCE_MDR=$FORCE
8379 PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_MDR
8380
8381 ENABLE_MDR=$ENABLE
8382 NAME_MDR=mdr
8383 if test "$default" = "no" -a "$FORCE" = "no"; then
8384 INFO_MDR=" (not available by default)"
8385 fi
8386
8387
8388 echo "mdr... $ENABLE"
8389 # kept defined for write_plugin_config. A bit ugly, but not more than
8390 # usual autoconf stuff.
8391 # m4_undefine([PLUGIN_NAME])
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403 USE_EVA=$USE_EVA" "mdr
8404 USED_MDR=$USED_MDR" "eva
8405
8406
8407
8408
8409
8410
8411
8412
8413 REQUIRE_OCAML_PPX_DERIVING=$REQUIRE_OCAML_PPX_DERIVING" "mdr
8414
8415
8416
8417
8418 REQUIRE_OCAML_PPX_DERIVING_YOJSON=$REQUIRE_OCAML_PPX_DERIVING_YOJSON" "mdr
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431 HAS_OCAML_PPX_DERIVING=
8432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OCaml package ppx_deriving" >&5
8433 printf %s "checking for OCaml package ppx_deriving... " >&6; }
8434 OCAML_PPX_DERIVING=$(ocamlfind query ppx_deriving -format %v 2>/dev/null)
8435 if test -z "$OCAML_PPX_DERIVING" ; then
8436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found via ocamlfind." >&5
8437 printf "%s\n" "not found via ocamlfind." >&6; }
8438 HAS_OCAML_PPX_DERIVING=no
8439 else
8440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
8441 printf "%s\n" "found." >&6; }
8442 HAS_OCAML_PPX_DERIVING=yes
8443 fi
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464 HAS_OCAML_PPX_DERIVING_YOJSON=
8465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OCaml package ppx_deriving_yojson" >&5
8466 printf %s "checking for OCaml package ppx_deriving_yojson... " >&6; }
8467 OCAML_PPX_DERIVING_YOJSON=$(ocamlfind query ppx_deriving_yojson -format %v 2>/dev/null)
8468 if test -z "$OCAML_PPX_DERIVING_YOJSON" ; then
8469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found via ocamlfind." >&5
8470 printf "%s\n" "not found via ocamlfind." >&6; }
8471 HAS_OCAML_PPX_DERIVING_YOJSON=no
8472 else
8473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
8474 printf "%s\n" "found." >&6; }
8475 HAS_OCAML_PPX_DERIVING_YOJSON=yes
8476 fi
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494 if test "$ENABLE_MDR" != "no"; then
8495 EXTERNAL_PLUGINS="${EXTERNAL_PLUGINS} src/plugins/markdown-report";
8496 fi
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523 ##########################################################################
8524 # #
8525 # This file is part of Frama-C. #
8526 # #
8527 # Copyright (C) 2007-2022 #
8528 # CEA (Commissariat à l'énergie atomique et aux énergies #
8529 # alternatives) #
8530 # #
8531 # you can redistribute it and/or modify it under the terms of the GNU #
8532 # Lesser General Public License as published by the Free Software #
8533 # Foundation, version 2.1. #
8534 # #
8535 # It is distributed in the hope that it will be useful, #
8536 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
8537 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
8538 # GNU Lesser General Public License for more details. #
8539 # #
8540 # See the GNU Lesser General Public License version 2.1 #
8541 # for more details (enclosed in the file licenses/LGPLv2.1). #
8542 # #
8543 ##########################################################################
8544
8545 ########################################
8546 # Nonterm as a standard Frama-C plug-in #
8547 ########################################
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for src/plugins/nonterm/Makefile.in" >&5
8564 printf %s "checking for src/plugins/nonterm/Makefile.in... " >&6; }
8565 if test ${ac_cv_file_src_plugins_nonterm_Makefile_in+y}
8566 then :
8567 printf %s "(cached) " >&6
8568 else $as_nop
8569 test "$cross_compiling" = yes &&
8570 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
8571 if test -r "src/plugins/nonterm/Makefile.in"; then
8572 ac_cv_file_src_plugins_nonterm_Makefile_in=yes
8573 else
8574 ac_cv_file_src_plugins_nonterm_Makefile_in=no
8575 fi
8576 fi
8577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_src_plugins_nonterm_Makefile_in" >&5
8578 printf "%s\n" "$ac_cv_file_src_plugins_nonterm_Makefile_in" >&6; }
8579 if test "x$ac_cv_file_src_plugins_nonterm_Makefile_in" = xyes
8580 then :
8581 default=yes;plugin_present=yes
8582 else $as_nop
8583 plugin_present=no;default=no
8584 fi
8585
8586
8587 FORCE=no
8588
8589 # Check whether --enable-nonterm was given.
8590 if test ${enable_nonterm+y}
8591 then :
8592 enableval=$enable_nonterm; ENABLE=$enableval;FORCE=$enableval
8593 else $as_nop
8594 ENABLE=$default
8595
8596 fi
8597
8598
8599 if test "$ONLY_KERNEL" = "yes" -a "$FORCE" = "no"; then
8600 ENABLE=no
8601 fi
8602
8603
8604
8605 if test "$plugin_present" = "no" -a "$FORCE" = "yes"; then
8606 as_fn_error $? "nonterm is not available" "$LINENO" 5
8607 fi
8608
8609 FORCE_NONTERM=$FORCE
8610 PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_NONTERM
8611
8612 ENABLE_NONTERM=$ENABLE
8613 NAME_NONTERM=nonterm
8614 if test "$default" = "no" -a "$FORCE" = "no"; then
8615 INFO_NONTERM=" (not available by default)"
8616 fi
8617
8618
8619 echo "nonterm... $ENABLE"
8620 # kept defined for write_plugin_config. A bit ugly, but not more than
8621 # usual autoconf stuff.
8622 # m4_undefine([PLUGIN_NAME])
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634 REQUIRE_EVA=$REQUIRE_EVA" "nonterm
8635 REQUIRED_NONTERM=$REQUIRED_NONTERM" "eva
8636
8637
8638
8639
8640
8641
8642 #######################
8643 # Generating Makefile #
8644 #######################
8645
8646
8647
8648
8649 ac_config_files="$ac_config_files src/plugins/nonterm/Makefile"
8650
8651
8652
8653 if test "$ENABLE_NONTERM" != "no"; then
8654 EXTERNAL_PLUGINS="${EXTERNAL_PLUGINS} src/plugins/nonterm";
8655 fi
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671 ##########################################################################
8672 # #
8673 # This file is part of Frama-C. #
8674 # #
8675 # Copyright (C) 2007-2022 #
8676 # CEA (Commissariat à l'énergie atomique et aux énergies #
8677 # alternatives) #
8678 # #
8679 # you can redistribute it and/or modify it under the terms of the GNU #
8680 # Lesser General Public License as published by the Free Software #
8681 # Foundation, version 2.1. #
8682 # #
8683 # It is distributed in the hope that it will be useful, #
8684 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
8685 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
8686 # GNU Lesser General Public License for more details. #
8687 # #
8688 # See the GNU Lesser General Public License version 2.1 #
8689 # for more details (enclosed in the file licenses/LGPLv2.1). #
8690 # #
8691 ##########################################################################
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for src/plugins/obfuscator/Makefile.in" >&5
8708 printf %s "checking for src/plugins/obfuscator/Makefile.in... " >&6; }
8709 if test ${ac_cv_file_src_plugins_obfuscator_Makefile_in+y}
8710 then :
8711 printf %s "(cached) " >&6
8712 else $as_nop
8713 test "$cross_compiling" = yes &&
8714 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
8715 if test -r "src/plugins/obfuscator/Makefile.in"; then
8716 ac_cv_file_src_plugins_obfuscator_Makefile_in=yes
8717 else
8718 ac_cv_file_src_plugins_obfuscator_Makefile_in=no
8719 fi
8720 fi
8721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_src_plugins_obfuscator_Makefile_in" >&5
8722 printf "%s\n" "$ac_cv_file_src_plugins_obfuscator_Makefile_in" >&6; }
8723 if test "x$ac_cv_file_src_plugins_obfuscator_Makefile_in" = xyes
8724 then :
8725 default=yes;plugin_present=yes
8726 else $as_nop
8727 plugin_present=no;default=no
8728 fi
8729
8730
8731 FORCE=no
8732
8733 # Check whether --enable-obfuscator was given.
8734 if test ${enable_obfuscator+y}
8735 then :
8736 enableval=$enable_obfuscator; ENABLE=$enableval;FORCE=$enableval
8737 else $as_nop
8738 ENABLE=$default
8739
8740 fi
8741
8742
8743 if test "$ONLY_KERNEL" = "yes" -a "$FORCE" = "no"; then
8744 ENABLE=no
8745 fi
8746
8747
8748
8749 if test "$plugin_present" = "no" -a "$FORCE" = "yes"; then
8750 as_fn_error $? "obfuscator is not available" "$LINENO" 5
8751 fi
8752
8753 FORCE_OBFUSCATOR=$FORCE
8754 PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_OBFUSCATOR
8755
8756 ENABLE_OBFUSCATOR=$ENABLE
8757 NAME_OBFUSCATOR=obfuscator
8758 if test "$default" = "no" -a "$FORCE" = "no"; then
8759 INFO_OBFUSCATOR=" (not available by default)"
8760 fi
8761
8762
8763 echo "obfuscator... $ENABLE"
8764 # kept defined for write_plugin_config. A bit ugly, but not more than
8765 # usual autoconf stuff.
8766 # m4_undefine([PLUGIN_NAME])
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777 ac_config_files="$ac_config_files src/plugins/obfuscator/Makefile"
8778
8779
8780
8781 if test "$ENABLE_OBFUSCATOR" != "no"; then
8782 EXTERNAL_PLUGINS="${EXTERNAL_PLUGINS} src/plugins/obfuscator";
8783 fi
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for src/plugins/print_api" >&5
8850 printf %s "checking for src/plugins/print_api... " >&6; }
8851 if test ${ac_cv_file_src_plugins_print_api+y}
8852 then :
8853 printf %s "(cached) " >&6
8854 else $as_nop
8855 test "$cross_compiling" = yes &&
8856 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
8857 if test -r "src/plugins/print_api"; then
8858 ac_cv_file_src_plugins_print_api=yes
8859 else
8860 ac_cv_file_src_plugins_print_api=no
8861 fi
8862 fi
8863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_src_plugins_print_api" >&5
8864 printf "%s\n" "$ac_cv_file_src_plugins_print_api" >&6; }
8865 if test "x$ac_cv_file_src_plugins_print_api" = xyes
8866 then :
8867 default=yes;plugin_present=yes
8868 else $as_nop
8869 plugin_present=no;default=no
8870 fi
8871
8872
8873 FORCE=no
8874
8875 # Check whether --enable-print_api was given.
8876 if test ${enable_print_api+y}
8877 then :
8878 enableval=$enable_print_api; ENABLE=$enableval;FORCE=$enableval
8879 else $as_nop
8880 ENABLE=$default
8881
8882 fi
8883
8884
8885 if test "$ONLY_KERNEL" = "yes" -a "$FORCE" = "no"; then
8886 ENABLE=no
8887 fi
8888
8889
8890
8891 if test "$plugin_present" = "no" -a "$FORCE" = "yes"; then
8892 as_fn_error $? "print_api is not available" "$LINENO" 5
8893 fi
8894
8895 FORCE_PRINT_API=$FORCE
8896 PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_PRINT_API
8897
8898 ENABLE_PRINT_API=$ENABLE
8899 NAME_PRINT_API=print_api
8900 if test "$default" = "no" -a "$FORCE" = "no"; then
8901 INFO_PRINT_API=" (not available by default)"
8902 fi
8903
8904
8905 echo "print_api... $ENABLE"
8906 # kept defined for write_plugin_config. A bit ugly, but not more than
8907 # usual autoconf stuff.
8908 # m4_undefine([PLUGIN_NAME])
8909
8910
8911
8912
8913
8914
8915 if test "$ENABLE_PRINT_API" != "no"; then
8916 EXTERNAL_PLUGINS="$EXTERNAL_PLUGINS src/plugins/print_api";
8917 fi
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for src/plugins/qed" >&5
8936 printf %s "checking for src/plugins/qed... " >&6; }
8937 if test ${ac_cv_file_src_plugins_qed+y}
8938 then :
8939 printf %s "(cached) " >&6
8940 else $as_nop
8941 test "$cross_compiling" = yes &&
8942 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
8943 if test -r "src/plugins/qed"; then
8944 ac_cv_file_src_plugins_qed=yes
8945 else
8946 ac_cv_file_src_plugins_qed=no
8947 fi
8948 fi
8949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_src_plugins_qed" >&5
8950 printf "%s\n" "$ac_cv_file_src_plugins_qed" >&6; }
8951 if test "x$ac_cv_file_src_plugins_qed" = xyes
8952 then :
8953 default=yes;plugin_present=yes
8954 else $as_nop
8955 plugin_present=no;default=no
8956 fi
8957
8958
8959 FORCE=no
8960
8961 # Check whether --enable-qed was given.
8962 if test ${enable_qed+y}
8963 then :
8964 enableval=$enable_qed; ENABLE=$enableval;FORCE=$enableval
8965 else $as_nop
8966 ENABLE=$default
8967
8968 fi
8969
8970
8971 if test "$ONLY_KERNEL" = "yes" -a "$FORCE" = "no"; then
8972 ENABLE=no
8973 fi
8974
8975
8976
8977 if test "$plugin_present" = "no" -a "$FORCE" = "yes"; then
8978 as_fn_error $? "qed is not available" "$LINENO" 5
8979 fi
8980
8981 FORCE_QED=$FORCE
8982 PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_QED
8983
8984 ENABLE_QED=$ENABLE
8985 NAME_QED=qed
8986 if test "$default" = "no" -a "$FORCE" = "no"; then
8987 INFO_QED=" (not available by default)"
8988 fi
8989
8990
8991 echo "qed... $ENABLE"
8992 # kept defined for write_plugin_config. A bit ugly, but not more than
8993 # usual autoconf stuff.
8994 # m4_undefine([PLUGIN_NAME])
8995
8996
8997
8998
8999
9000
9001 if test "$ENABLE_QED" != "no"; then
9002 EXTERNAL_PLUGINS="$EXTERNAL_PLUGINS src/plugins/qed";
9003 fi
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026 ##########################################################################
9027 # #
9028 # This file is part of Frama-C. #
9029 # #
9030 # Copyright (C) 2007-2022 #
9031 # CEA (Commissariat à l'énergie atomique et aux énergies #
9032 # alternatives) #
9033 # #
9034 # you can redistribute it and/or modify it under the terms of the GNU #
9035 # Lesser General Public License as published by the Free Software #
9036 # Foundation, version 2.1. #
9037 # #
9038 # It is distributed in the hope that it will be useful, #
9039 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
9040 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
9041 # GNU Lesser General Public License for more details. #
9042 # #
9043 # See the GNU Lesser General Public License version 2.1 #
9044 # for more details (enclosed in the file licenses/LGPLv2.1). #
9045 # #
9046 ##########################################################################
9047
9048 ########################################
9049 # E-ACSL as a standard Frama-C plug-in #
9050 ########################################
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for src/plugins/report/Makefile.in" >&5
9067 printf %s "checking for src/plugins/report/Makefile.in... " >&6; }
9068 if test ${ac_cv_file_src_plugins_report_Makefile_in+y}
9069 then :
9070 printf %s "(cached) " >&6
9071 else $as_nop
9072 test "$cross_compiling" = yes &&
9073 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
9074 if test -r "src/plugins/report/Makefile.in"; then
9075 ac_cv_file_src_plugins_report_Makefile_in=yes
9076 else
9077 ac_cv_file_src_plugins_report_Makefile_in=no
9078 fi
9079 fi
9080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_src_plugins_report_Makefile_in" >&5
9081 printf "%s\n" "$ac_cv_file_src_plugins_report_Makefile_in" >&6; }
9082 if test "x$ac_cv_file_src_plugins_report_Makefile_in" = xyes
9083 then :
9084 default=yes;plugin_present=yes
9085 else $as_nop
9086 plugin_present=no;default=no
9087 fi
9088
9089
9090 FORCE=no
9091
9092 # Check whether --enable-report was given.
9093 if test ${enable_report+y}
9094 then :
9095 enableval=$enable_report; ENABLE=$enableval;FORCE=$enableval
9096 else $as_nop
9097 ENABLE=$default
9098
9099 fi
9100
9101
9102 if test "$ONLY_KERNEL" = "yes" -a "$FORCE" = "no"; then
9103 ENABLE=no
9104 fi
9105
9106
9107
9108 if test "$plugin_present" = "no" -a "$FORCE" = "yes"; then
9109 as_fn_error $? "report is not available" "$LINENO" 5
9110 fi
9111
9112 FORCE_REPORT=$FORCE
9113 PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_REPORT
9114
9115 ENABLE_REPORT=$ENABLE
9116 NAME_REPORT=report
9117 if test "$default" = "no" -a "$FORCE" = "no"; then
9118 INFO_REPORT=" (not available by default)"
9119 fi
9120
9121
9122 echo "report... $ENABLE"
9123 # kept defined for write_plugin_config. A bit ugly, but not more than
9124 # usual autoconf stuff.
9125 # m4_undefine([PLUGIN_NAME])
9126
9127
9128
9129
9130
9131
9132
9133 #######################
9134 # Generating Makefile #
9135 #######################
9136
9137
9138
9139
9140 ac_config_files="$ac_config_files src/plugins/report/Makefile"
9141
9142
9143
9144 if test "$ENABLE_REPORT" != "no"; then
9145 EXTERNAL_PLUGINS="${EXTERNAL_PLUGINS} src/plugins/report";
9146 fi
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184 ##########################################################################
9185 # #
9186 # This file is part of Frama-C. #
9187 # #
9188 # Copyright (C) 2007-2022 #
9189 # CEA (Commissariat à l'énergie atomique et aux énergies #
9190 # alternatives) #
9191 # #
9192 # you can redistribute it and/or modify it under the terms of the GNU #
9193 # Lesser General Public License as published by the Free Software #
9194 # Foundation, version 2.1. #
9195 # #
9196 # It is distributed in the hope that it will be useful, #
9197 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
9198 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
9199 # GNU Lesser General Public License for more details. #
9200 # #
9201 # See the GNU Lesser General Public License version 2.1 #
9202 # for more details (enclosed in the file licenses/LGPLv2.1). #
9203 # #
9204 ##########################################################################
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for src/plugins/security_slicing/Makefile.in" >&5
9221 printf %s "checking for src/plugins/security_slicing/Makefile.in... " >&6; }
9222 if test ${ac_cv_file_src_plugins_security_slicing_Makefile_in+y}
9223 then :
9224 printf %s "(cached) " >&6
9225 else $as_nop
9226 test "$cross_compiling" = yes &&
9227 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
9228 if test -r "src/plugins/security_slicing/Makefile.in"; then
9229 ac_cv_file_src_plugins_security_slicing_Makefile_in=yes
9230 else
9231 ac_cv_file_src_plugins_security_slicing_Makefile_in=no
9232 fi
9233 fi
9234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_src_plugins_security_slicing_Makefile_in" >&5
9235 printf "%s\n" "$ac_cv_file_src_plugins_security_slicing_Makefile_in" >&6; }
9236 if test "x$ac_cv_file_src_plugins_security_slicing_Makefile_in" = xyes
9237 then :
9238 default=yes;plugin_present=yes
9239 else $as_nop
9240 plugin_present=no;default=no
9241 fi
9242
9243
9244 FORCE=no
9245
9246 # Check whether --enable-security_slicing was given.
9247 if test ${enable_security_slicing+y}
9248 then :
9249 enableval=$enable_security_slicing; ENABLE=$enableval;FORCE=$enableval
9250 else $as_nop
9251 ENABLE=$default
9252
9253 fi
9254
9255
9256 if test "$ONLY_KERNEL" = "yes" -a "$FORCE" = "no"; then
9257 ENABLE=no
9258 fi
9259
9260
9261
9262 if test "$plugin_present" = "no" -a "$FORCE" = "yes"; then
9263 as_fn_error $? "security_slicing is not available" "$LINENO" 5
9264 fi
9265
9266 FORCE_SECURITY_SLICING=$FORCE
9267 PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_SECURITY_SLICING
9268
9269 ENABLE_SECURITY_SLICING=$ENABLE
9270 NAME_SECURITY_SLICING=security_slicing
9271 if test "$default" = "no" -a "$FORCE" = "no"; then
9272 INFO_SECURITY_SLICING=" (not available by default)"
9273 fi
9274
9275
9276 echo "security_slicing... $ENABLE"
9277 # kept defined for write_plugin_config. A bit ugly, but not more than
9278 # usual autoconf stuff.
9279 # m4_undefine([PLUGIN_NAME])
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291 REQUIRE_SLICING=$REQUIRE_SLICING" "security_slicing
9292 REQUIRED_SECURITY_SLICING=$REQUIRED_SECURITY_SLICING" "slicing
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302 REQUIRE_EVA=$REQUIRE_EVA" "security_slicing
9303 REQUIRED_SECURITY_SLICING=$REQUIRED_SECURITY_SLICING" "eva
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313 REQUIRE_PDG=$REQUIRE_PDG" "security_slicing
9314 REQUIRED_SECURITY_SLICING=$REQUIRED_SECURITY_SLICING" "pdg
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324 REQUIRE_GUI=$REQUIRE_GUI" "security_slicing
9325 REQUIRED_SECURITY_SLICING=$REQUIRED_SECURITY_SLICING" "gui
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336 if test "$ENABLE_SECURITY_SLICING" != "no"; then
9337 EXTERNAL_PLUGINS="${EXTERNAL_PLUGINS} src/plugins/security_slicing";
9338 fi
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354 ##########################################################################
9355 # #
9356 # This file is part of Frama-C. #
9357 # #
9358 # Copyright (C) 2007-2022 #
9359 # CEA (Commissariat à l'énergie atomique et aux énergies #
9360 # alternatives) #
9361 # #
9362 # you can redistribute it and/or modify it under the terms of the GNU #
9363 # Lesser General Public License as published by the Free Software #
9364 # Foundation, version 2.1. #
9365 # #
9366 # It is distributed in the hope that it will be useful, #
9367 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
9368 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
9369 # GNU Lesser General Public License for more details. #
9370 # #
9371 # See the GNU Lesser General Public License version 2.1 #
9372 # for more details (enclosed in the file licenses/LGPLv2.1). #
9373 # #
9374 ##########################################################################
9375
9376 ########################################
9377 # Server as a standard Frama-C plug-in #
9378 ########################################
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for src/plugins/server/Makefile.in" >&5
9395 printf %s "checking for src/plugins/server/Makefile.in... " >&6; }
9396 if test ${ac_cv_file_src_plugins_server_Makefile_in+y}
9397 then :
9398 printf %s "(cached) " >&6
9399 else $as_nop
9400 test "$cross_compiling" = yes &&
9401 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
9402 if test -r "src/plugins/server/Makefile.in"; then
9403 ac_cv_file_src_plugins_server_Makefile_in=yes
9404 else
9405 ac_cv_file_src_plugins_server_Makefile_in=no
9406 fi
9407 fi
9408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_src_plugins_server_Makefile_in" >&5
9409 printf "%s\n" "$ac_cv_file_src_plugins_server_Makefile_in" >&6; }
9410 if test "x$ac_cv_file_src_plugins_server_Makefile_in" = xyes
9411 then :
9412 default=yes;plugin_present=yes
9413 else $as_nop
9414 plugin_present=no;default=no
9415 fi
9416
9417
9418 FORCE=no
9419
9420 # Check whether --enable-server was given.
9421 if test ${enable_server+y}
9422 then :
9423 enableval=$enable_server; ENABLE=$enableval;FORCE=$enableval
9424 else $as_nop
9425 ENABLE=$default
9426
9427 fi
9428
9429
9430 if test "$ONLY_KERNEL" = "yes" -a "$FORCE" = "no"; then
9431 ENABLE=no
9432 fi
9433
9434
9435
9436 if test "$plugin_present" = "no" -a "$FORCE" = "yes"; then
9437 as_fn_error $? "server is not available" "$LINENO" 5
9438 fi
9439
9440 FORCE_SERVER=$FORCE
9441 PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_SERVER
9442
9443 ENABLE_SERVER=$ENABLE
9444 NAME_SERVER=server
9445 if test "$default" = "no" -a "$FORCE" = "no"; then
9446 INFO_SERVER=" (not available by default)"
9447 fi
9448
9449
9450 echo "server... $ENABLE"
9451 # kept defined for write_plugin_config. A bit ugly, but not more than
9452 # usual autoconf stuff.
9453 # m4_undefine([PLUGIN_NAME])
9454
9455
9456
9457
9458
9459
9460
9461 ########################################
9462 # Server ZMQ Configuration #
9463 ########################################
9464
9465 # Check whether --enable-server-zmq was given.
9466 if test ${enable_server_zmq+y}
9467 then :
9468 enableval=$enable_server_zmq; SERVER_ZMQ=$enableval
9469 else $as_nop
9470 SERVER_ZMQ=yes
9471
9472 fi
9473
9474
9475 if test "$SERVER_ZMQ" = "yes" ;
9476 then
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486 HAS_OCAML_ZMQ=
9487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OCaml package zmq" >&5
9488 printf %s "checking for OCaml package zmq... " >&6; }
9489 OCAML_ZMQ=$(ocamlfind query zmq -format %v 2>/dev/null)
9490 if test -z "$OCAML_ZMQ" ; then
9491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found via ocamlfind." >&5
9492 printf "%s\n" "not found via ocamlfind." >&6; }
9493 HAS_OCAML_ZMQ=no
9494 else
9495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
9496 printf "%s\n" "found." >&6; }
9497 HAS_OCAML_ZMQ=yes
9498 fi
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512 USE_OCAML_ZMQ=$USE_OCAML_ZMQ" "server
9513
9514
9515 SERVER_ZMQ=$HAS_OCAML_ZMQ
9516 fi
9517
9518
9519
9520 #######################
9521 # Generating Makefile #
9522 #######################
9523
9524
9525
9526
9527 ac_config_files="$ac_config_files src/plugins/server/Makefile"
9528
9529
9530
9531 if test "$ENABLE_SERVER" != "no"; then
9532 EXTERNAL_PLUGINS="${EXTERNAL_PLUGINS} src/plugins/server";
9533 fi
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571 ##########################################################################
9572 # #
9573 # This file is part of Frama-C. #
9574 # #
9575 # Copyright (C) 2007-2022 #
9576 # CEA (Commissariat à l'énergie atomique et aux énergies #
9577 # alternatives) #
9578 # #
9579 # you can redistribute it and/or modify it under the terms of the GNU #
9580 # Lesser General Public License as published by the Free Software #
9581 # Foundation, version 2.1. #
9582 # #
9583 # It is distributed in the hope that it will be useful, #
9584 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
9585 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
9586 # GNU Lesser General Public License for more details. #
9587 # #
9588 # See the GNU Lesser General Public License version 2.1 #
9589 # for more details (enclosed in the file licenses/LGPLv2.1). #
9590 # #
9591 ##########################################################################
9592
9593 ########################################
9594 # Studia as a standard Frama-C plug-in #
9595 ########################################
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for src/plugins/studia/Makefile.in" >&5
9612 printf %s "checking for src/plugins/studia/Makefile.in... " >&6; }
9613 if test ${ac_cv_file_src_plugins_studia_Makefile_in+y}
9614 then :
9615 printf %s "(cached) " >&6
9616 else $as_nop
9617 test "$cross_compiling" = yes &&
9618 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
9619 if test -r "src/plugins/studia/Makefile.in"; then
9620 ac_cv_file_src_plugins_studia_Makefile_in=yes
9621 else
9622 ac_cv_file_src_plugins_studia_Makefile_in=no
9623 fi
9624 fi
9625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_src_plugins_studia_Makefile_in" >&5
9626 printf "%s\n" "$ac_cv_file_src_plugins_studia_Makefile_in" >&6; }
9627 if test "x$ac_cv_file_src_plugins_studia_Makefile_in" = xyes
9628 then :
9629 default=yes;plugin_present=yes
9630 else $as_nop
9631 plugin_present=no;default=no
9632 fi
9633
9634
9635 FORCE=no
9636
9637 # Check whether --enable-studia was given.
9638 if test ${enable_studia+y}
9639 then :
9640 enableval=$enable_studia; ENABLE=$enableval;FORCE=$enableval
9641 else $as_nop
9642 ENABLE=$default
9643
9644 fi
9645
9646
9647 if test "$ONLY_KERNEL" = "yes" -a "$FORCE" = "no"; then
9648 ENABLE=no
9649 fi
9650
9651
9652
9653 if test "$plugin_present" = "no" -a "$FORCE" = "yes"; then
9654 as_fn_error $? "studia is not available" "$LINENO" 5
9655 fi
9656
9657 FORCE_STUDIA=$FORCE
9658 PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_STUDIA
9659
9660 ENABLE_STUDIA=$ENABLE
9661 NAME_STUDIA=studia
9662 if test "$default" = "no" -a "$FORCE" = "no"; then
9663 INFO_STUDIA=" (not available by default)"
9664 fi
9665
9666
9667 echo "studia... $ENABLE"
9668 # kept defined for write_plugin_config. A bit ugly, but not more than
9669 # usual autoconf stuff.
9670 # m4_undefine([PLUGIN_NAME])
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682 REQUIRE_EVA=$REQUIRE_EVA" "studia
9683 REQUIRED_STUDIA=$REQUIRED_STUDIA" "eva
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693 REQUIRE_SERVER=$REQUIRE_SERVER" "studia
9694 REQUIRED_STUDIA=$REQUIRED_STUDIA" "server
9695
9696
9697
9698
9699
9700
9701 #######################
9702 # Generating Makefile #
9703 #######################
9704
9705
9706
9707
9708 ac_config_files="$ac_config_files src/plugins/studia/Makefile"
9709
9710
9711
9712 if test "$ENABLE_STUDIA" != "no"; then
9713 EXTERNAL_PLUGINS="${EXTERNAL_PLUGINS} src/plugins/studia";
9714 fi
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763 ##########################################################################
9764 # #
9765 # This file is part of Frama-C. #
9766 # #
9767 # Copyright (C) 2007-2022 #
9768 # CEA (Commissariat à l'énergie atomique et aux énergies #
9769 # alternatives) #
9770 # #
9771 # you can redistribute it and/or modify it under the terms of the GNU #
9772 # Lesser General Public License as published by the Free Software #
9773 # Foundation, version 2.1. #
9774 # #
9775 # It is distributed in the hope that it will be useful, #
9776 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
9777 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
9778 # GNU Lesser General Public License for more details. #
9779 # #
9780 # See the GNU Lesser General Public License version 2.1 #
9781 # for more details (enclosed in the file licenses/LGPLv2.1). #
9782 # #
9783 ##########################################################################
9784
9785 ##########################################
9786 # Variadic as a standard Frama-C plug-in #
9787 ##########################################
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for src/plugins/variadic/Makefile.in" >&5
9804 printf %s "checking for src/plugins/variadic/Makefile.in... " >&6; }
9805 if test ${ac_cv_file_src_plugins_variadic_Makefile_in+y}
9806 then :
9807 printf %s "(cached) " >&6
9808 else $as_nop
9809 test "$cross_compiling" = yes &&
9810 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
9811 if test -r "src/plugins/variadic/Makefile.in"; then
9812 ac_cv_file_src_plugins_variadic_Makefile_in=yes
9813 else
9814 ac_cv_file_src_plugins_variadic_Makefile_in=no
9815 fi
9816 fi
9817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_src_plugins_variadic_Makefile_in" >&5
9818 printf "%s\n" "$ac_cv_file_src_plugins_variadic_Makefile_in" >&6; }
9819 if test "x$ac_cv_file_src_plugins_variadic_Makefile_in" = xyes
9820 then :
9821 default=yes;plugin_present=yes
9822 else $as_nop
9823 plugin_present=no;default=no
9824 fi
9825
9826
9827 FORCE=no
9828
9829 # Check whether --enable-variadic was given.
9830 if test ${enable_variadic+y}
9831 then :
9832 enableval=$enable_variadic; ENABLE=$enableval;FORCE=$enableval
9833 else $as_nop
9834 ENABLE=$default
9835
9836 fi
9837
9838
9839 if test "$ONLY_KERNEL" = "yes" -a "$FORCE" = "no"; then
9840 ENABLE=no
9841 fi
9842
9843
9844
9845 if test "$plugin_present" = "no" -a "$FORCE" = "yes"; then
9846 as_fn_error $? "variadic is not available" "$LINENO" 5
9847 fi
9848
9849 FORCE_VARIADIC=$FORCE
9850 PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_VARIADIC
9851
9852 ENABLE_VARIADIC=$ENABLE
9853 NAME_VARIADIC=variadic
9854 if test "$default" = "no" -a "$FORCE" = "no"; then
9855 INFO_VARIADIC=" (not available by default)"
9856 fi
9857
9858
9859 echo "variadic... $ENABLE"
9860 # kept defined for write_plugin_config. A bit ugly, but not more than
9861 # usual autoconf stuff.
9862 # m4_undefine([PLUGIN_NAME])
9863
9864
9865
9866
9867
9868
9869
9870 #######################
9871 # Generating Makefile #
9872 #######################
9873
9874
9875
9876
9877 ac_config_files="$ac_config_files src/plugins/variadic/Makefile"
9878
9879
9880
9881 if test "$ENABLE_VARIADIC" != "no"; then
9882 EXTERNAL_PLUGINS="${EXTERNAL_PLUGINS} src/plugins/variadic";
9883 fi
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899 ##########################################################################
9900 # #
9901 # This file is part of WP plug-in of Frama-C. #
9902 # #
9903 # Copyright (C) 2007-2022 #
9904 # CEA (Commissariat a l'energie atomique et aux energies #
9905 # alternatives) #
9906 # #
9907 # you can redistribute it and/or modify it under the terms of the GNU #
9908 # Lesser General Public License as published by the Free Software #
9909 # Foundation, version 2.1. #
9910 # #
9911 # It is distributed in the hope that it will be useful, #
9912 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
9913 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
9914 # GNU Lesser General Public License for more details. #
9915 # #
9916 # See the GNU Lesser General Public License version 2.1 #
9917 # for more details (enclosed in the file licenses/LGPLv2.1). #
9918 # #
9919 ##########################################################################
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for src/plugins/wp/Makefile.in" >&5
9936 printf %s "checking for src/plugins/wp/Makefile.in... " >&6; }
9937 if test ${ac_cv_file_src_plugins_wp_Makefile_in+y}
9938 then :
9939 printf %s "(cached) " >&6
9940 else $as_nop
9941 test "$cross_compiling" = yes &&
9942 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
9943 if test -r "src/plugins/wp/Makefile.in"; then
9944 ac_cv_file_src_plugins_wp_Makefile_in=yes
9945 else
9946 ac_cv_file_src_plugins_wp_Makefile_in=no
9947 fi
9948 fi
9949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_src_plugins_wp_Makefile_in" >&5
9950 printf "%s\n" "$ac_cv_file_src_plugins_wp_Makefile_in" >&6; }
9951 if test "x$ac_cv_file_src_plugins_wp_Makefile_in" = xyes
9952 then :
9953 default=yes;plugin_present=yes
9954 else $as_nop
9955 plugin_present=no;default=no
9956 fi
9957
9958
9959 FORCE=no
9960
9961 # Check whether --enable-wp was given.
9962 if test ${enable_wp+y}
9963 then :
9964 enableval=$enable_wp; ENABLE=$enableval;FORCE=$enableval
9965 else $as_nop
9966 ENABLE=$default
9967
9968 fi
9969
9970
9971 if test "$ONLY_KERNEL" = "yes" -a "$FORCE" = "no"; then
9972 ENABLE=no
9973 fi
9974
9975
9976
9977 if test "$plugin_present" = "no" -a "$FORCE" = "yes"; then
9978 as_fn_error $? "wp is not available" "$LINENO" 5
9979 fi
9980
9981 FORCE_WP=$FORCE
9982 PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_WP
9983
9984 ENABLE_WP=$ENABLE
9985 NAME_WP=wp
9986 if test "$default" = "no" -a "$FORCE" = "no"; then
9987 INFO_WP=" (not available by default)"
9988 fi
9989
9990
9991 echo "wp... $ENABLE"
9992 # kept defined for write_plugin_config. A bit ugly, but not more than
9993 # usual autoconf stuff.
9994 # m4_undefine([PLUGIN_NAME])
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006 REQUIRE_QED=$REQUIRE_QED" "wp
10007 REQUIRED_WP=$REQUIRED_WP" "qed
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017 REQUIRE_RTEGEN=$REQUIRE_RTEGEN" "wp
10018 REQUIRED_WP=$REQUIRED_WP" "rtegen
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028 USE_GUI=$USE_GUI" "wp
10029 USED_WP=$USED_WP" "gui
10030
10031
10032
10033
10034
10035
10036 # Why3 API dependency
10037 ######################
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048 HAS_OCAML_WHY3=
10049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OCaml package why3" >&5
10050 printf %s "checking for OCaml package why3... " >&6; }
10051 OCAML_WHY3=$(ocamlfind query why3 -format %v 2>/dev/null)
10052 if test -z "$OCAML_WHY3" ; then
10053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found via ocamlfind." >&5
10054 printf "%s\n" "not found via ocamlfind." >&6; }
10055 HAS_OCAML_WHY3=no
10056 else
10057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
10058 printf "%s\n" "found." >&6; }
10059 HAS_OCAML_WHY3=yes
10060 fi
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075 REQUIRE_OCAML_WHY3=$REQUIRE_OCAML_WHY3" "wp
10076
10077
10078
10079
10080
10081
10082
10083
10084 if test "$ENABLE_WP" != "no"; then
10085 EXTERNAL_PLUGINS="${EXTERNAL_PLUGINS} src/plugins/wp";
10086 fi
10087
10088
10089
10090
10091
10092
10093
10094
10095 #####################################################
10096 # Check for tools/libraries requirements of plugins #
10097 #####################################################
10098
10099 new_section "configure tools and libraries used by some plug-ins"
10100
10101 # lablgtk2
10102 ##########
10103
10104
10105
10106 # Check whether --enable-lablgtk3 was given.
10107 if test ${enable_lablgtk3+y}
10108 then :
10109 enableval=$enable_lablgtk3; ENABLE_LABLGTK3=$enableval
10110 else $as_nop
10111 ENABLE_LABLGTK3=yes
10112 fi
10113
10114
10115 REQUIRE_LABLGTK="$REQUIRE_LABLGTK$REQUIRE_GNOMECANVAS"
10116 USE_LABLGTK="$USE_LABLGTK$USE_GNOMECANVAS"
10117
10118 LABLGTK_PATH=""
10119 SOURCEVIEW_PATH=""
10120
10121 if test "$PLATFORM" != "MacOS"; then
10122 if test "$ENABLE_LABLGTK3" = "yes"; then
10123 LABLGTK_PATH=`ocamlfind query lablgtk3 | tr -d '\\r\\n'`;
10124 fi
10125 if test "$LABLGTK_PATH" != ""; then
10126 SOURCEVIEW_PATH=`ocamlfind query lablgtk3-sourceview3 | tr -d '\\r\\n'`;
10127 fi
10128 fi
10129
10130 if test "$SOURCEVIEW_PATH" = ""; then
10131 LABLGTK_VERSION=2
10132 LABLGTK_PATH=`ocamlfind query lablgtk2 | tr -d '\\r\\n'`
10133 if test "$LABLGTK_PATH" = "" -o \
10134 "$LABLGTK_PATH" -ef "$OCAMLLIB/lablgtk2" ; then
10135 echo "Ocamlfind -> using +lablgtk2.($LABLGTK_PATH,$OCAMLLIB/lablgtk2)"
10136 LABLGTK_PATH=+lablgtk2
10137 LABLGTKPATH_FOR_CONFIGURE=$OCAMLLIB/lablgtk2
10138 else
10139 echo "Ocamlfind -> using $LABLGTK_PATH"
10140 LABLGTKPATH_FOR_CONFIGURE=$LABLGTK_PATH
10141 fi;
10142 SOURCEVIEW_PATH=$LABLGTKPATH_FOR_CONFIGURE;
10143 else
10144 LABLGTK_VERSION=3
10145 echo "ocamlfind -> using $LABLGTK_PATH"
10146 LABLGTKPATH_FOR_CONFIGURE=$LABLGTK_PATH;
10147 fi
10148
10149
10150 # No need to check the same thing multiple times.
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160 # [JS 2009/06/02] sh tests and m4 variables do not mix well together.
10161 # It works by chance but it is not robust enough.
10162 # Should be rewritten
10163 HAS_GTKSOURCEVIEW=no
10164 if test "$HAS_GTKSOURCEVIEW" != "yes"; then
10165 as_ac_File=`printf "%s\n" "ac_cv_file_$SOURCEVIEW_PATH/lablgtksourceview2.$LIB_SUFFIX" | $as_tr_sh`
10166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $SOURCEVIEW_PATH/lablgtksourceview2.$LIB_SUFFIX" >&5
10167 printf %s "checking for $SOURCEVIEW_PATH/lablgtksourceview2.$LIB_SUFFIX... " >&6; }
10168 if eval test \${$as_ac_File+y}
10169 then :
10170 printf %s "(cached) " >&6
10171 else $as_nop
10172 test "$cross_compiling" = yes &&
10173 as_fn_error $? "cannot check for $SOURCEVIEW_PATH/lablgtksourceview2.$LIB_SUFFIX existence when cross compiling" "$LINENO" 5
10174 if test -r "$SOURCEVIEW_PATH/lablgtksourceview2.$LIB_SUFFIX"; then
10175 eval "$as_ac_File=yes"
10176 else
10177 eval "$as_ac_File=no"
10178 fi
10179 fi
10180 eval ac_res=\$$as_ac_File
10181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10182 printf "%s\n" "$ac_res" >&6; }
10183 if eval test \"x\$"$as_ac_File"\" = x"yes"
10184 then :
10185 HAS_GTKSOURCEVIEW=yes
10186 else $as_nop
10187 HAS_GTKSOURCEVIEW=no
10188 fi
10189
10190 if test "$HAS_GTKSOURCEVIEW" = "yes"; then SELECTED_GTKSOURCEVIEW=$SOURCEVIEW_PATH/lablgtksourceview2.$LIB_SUFFIX
10191 fi
10192 fi
10193 if test "$HAS_GTKSOURCEVIEW" != "yes"; then
10194 as_ac_File=`printf "%s\n" "ac_cv_file_$SOURCEVIEW_PATH/lablgtk3_sourceview3.$LIB_SUFFIX" | $as_tr_sh`
10195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $SOURCEVIEW_PATH/lablgtk3_sourceview3.$LIB_SUFFIX" >&5
10196 printf %s "checking for $SOURCEVIEW_PATH/lablgtk3_sourceview3.$LIB_SUFFIX... " >&6; }
10197 if eval test \${$as_ac_File+y}
10198 then :
10199 printf %s "(cached) " >&6
10200 else $as_nop
10201 test "$cross_compiling" = yes &&
10202 as_fn_error $? "cannot check for $SOURCEVIEW_PATH/lablgtk3_sourceview3.$LIB_SUFFIX existence when cross compiling" "$LINENO" 5
10203 if test -r "$SOURCEVIEW_PATH/lablgtk3_sourceview3.$LIB_SUFFIX"; then
10204 eval "$as_ac_File=yes"
10205 else
10206 eval "$as_ac_File=no"
10207 fi
10208 fi
10209 eval ac_res=\$$as_ac_File
10210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10211 printf "%s\n" "$ac_res" >&6; }
10212 if eval test \"x\$"$as_ac_File"\" = x"yes"
10213 then :
10214 HAS_GTKSOURCEVIEW=yes
10215 else $as_nop
10216 HAS_GTKSOURCEVIEW=no
10217 fi
10218
10219 if test "$HAS_GTKSOURCEVIEW" = "yes"; then SELECTED_GTKSOURCEVIEW=$SOURCEVIEW_PATH/lablgtk3_sourceview3.$LIB_SUFFIX
10220 fi
10221 fi
10222
10223 GTKSOURCEVIEW=$SELECTED_GTKSOURCEVIEW
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239 # No need to check the same thing multiple times.
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249 # [JS 2009/06/02] sh tests and m4 variables do not mix well together.
10250 # It works by chance but it is not robust enough.
10251 # Should be rewritten
10252 HAS_GNOMECANVAS=no
10253 if test "$HAS_GNOMECANVAS" != "yes"; then
10254 as_ac_File=`printf "%s\n" "ac_cv_file_$LABLGTKPATH_FOR_CONFIGURE/lablgnomecanvas.$LIB_SUFFIX" | $as_tr_sh`
10255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LABLGTKPATH_FOR_CONFIGURE/lablgnomecanvas.$LIB_SUFFIX" >&5
10256 printf %s "checking for $LABLGTKPATH_FOR_CONFIGURE/lablgnomecanvas.$LIB_SUFFIX... " >&6; }
10257 if eval test \${$as_ac_File+y}
10258 then :
10259 printf %s "(cached) " >&6
10260 else $as_nop
10261 test "$cross_compiling" = yes &&
10262 as_fn_error $? "cannot check for $LABLGTKPATH_FOR_CONFIGURE/lablgnomecanvas.$LIB_SUFFIX existence when cross compiling" "$LINENO" 5
10263 if test -r "$LABLGTKPATH_FOR_CONFIGURE/lablgnomecanvas.$LIB_SUFFIX"; then
10264 eval "$as_ac_File=yes"
10265 else
10266 eval "$as_ac_File=no"
10267 fi
10268 fi
10269 eval ac_res=\$$as_ac_File
10270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10271 printf "%s\n" "$ac_res" >&6; }
10272 if eval test \"x\$"$as_ac_File"\" = x"yes"
10273 then :
10274 HAS_GNOMECANVAS=yes
10275 else $as_nop
10276 HAS_GNOMECANVAS=no
10277 fi
10278
10279 if test "$HAS_GNOMECANVAS" = "yes"; then SELECTED_GNOMECANVAS=$LABLGTKPATH_FOR_CONFIGURE/lablgnomecanvas.$LIB_SUFFIX
10280 fi
10281 fi
10282
10283 GNOMECANVAS=$SELECTED_GNOMECANVAS
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299 # No need to check the same thing multiple times.
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309 # [JS 2009/06/02] sh tests and m4 variables do not mix well together.
10310 # It works by chance but it is not robust enough.
10311 # Should be rewritten
10312 HAS_LABLGTK=no
10313 if test "$HAS_LABLGTK" != "yes"; then
10314 as_ac_File=`printf "%s\n" "ac_cv_file_$LABLGTKPATH_FOR_CONFIGURE/lablgtk.$LIB_SUFFIX" | $as_tr_sh`
10315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LABLGTKPATH_FOR_CONFIGURE/lablgtk.$LIB_SUFFIX" >&5
10316 printf %s "checking for $LABLGTKPATH_FOR_CONFIGURE/lablgtk.$LIB_SUFFIX... " >&6; }
10317 if eval test \${$as_ac_File+y}
10318 then :
10319 printf %s "(cached) " >&6
10320 else $as_nop
10321 test "$cross_compiling" = yes &&
10322 as_fn_error $? "cannot check for $LABLGTKPATH_FOR_CONFIGURE/lablgtk.$LIB_SUFFIX existence when cross compiling" "$LINENO" 5
10323 if test -r "$LABLGTKPATH_FOR_CONFIGURE/lablgtk.$LIB_SUFFIX"; then
10324 eval "$as_ac_File=yes"
10325 else
10326 eval "$as_ac_File=no"
10327 fi
10328 fi
10329 eval ac_res=\$$as_ac_File
10330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10331 printf "%s\n" "$ac_res" >&6; }
10332 if eval test \"x\$"$as_ac_File"\" = x"yes"
10333 then :
10334 HAS_LABLGTK=yes
10335 else $as_nop
10336 HAS_LABLGTK=no
10337 fi
10338
10339 if test "$HAS_LABLGTK" = "yes"; then SELECTED_LABLGTK=$LABLGTKPATH_FOR_CONFIGURE/lablgtk.$LIB_SUFFIX
10340 fi
10341 fi
10342 if test "$HAS_LABLGTK" != "yes"; then
10343 as_ac_File=`printf "%s\n" "ac_cv_file_$LABLGTKPATH_FOR_CONFIGURE/lablgtk3.$LIB_SUFFIX" | $as_tr_sh`
10344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LABLGTKPATH_FOR_CONFIGURE/lablgtk3.$LIB_SUFFIX" >&5
10345 printf %s "checking for $LABLGTKPATH_FOR_CONFIGURE/lablgtk3.$LIB_SUFFIX... " >&6; }
10346 if eval test \${$as_ac_File+y}
10347 then :
10348 printf %s "(cached) " >&6
10349 else $as_nop
10350 test "$cross_compiling" = yes &&
10351 as_fn_error $? "cannot check for $LABLGTKPATH_FOR_CONFIGURE/lablgtk3.$LIB_SUFFIX existence when cross compiling" "$LINENO" 5
10352 if test -r "$LABLGTKPATH_FOR_CONFIGURE/lablgtk3.$LIB_SUFFIX"; then
10353 eval "$as_ac_File=yes"
10354 else
10355 eval "$as_ac_File=no"
10356 fi
10357 fi
10358 eval ac_res=\$$as_ac_File
10359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10360 printf "%s\n" "$ac_res" >&6; }
10361 if eval test \"x\$"$as_ac_File"\" = x"yes"
10362 then :
10363 HAS_LABLGTK=yes
10364 else $as_nop
10365 HAS_LABLGTK=no
10366 fi
10367
10368 if test "$HAS_LABLGTK" = "yes"; then SELECTED_LABLGTK=$LABLGTKPATH_FOR_CONFIGURE/lablgtk3.$LIB_SUFFIX
10369 fi
10370 fi
10371
10372 LABLGTK=$SELECTED_LABLGTK
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387 if test "$HAS_OCAMLGRAPH_2" = yes; then
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397 HAS_OCAML_OCAMLGRAPH_GTK=
10398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OCaml package ocamlgraph_gtk" >&5
10399 printf %s "checking for OCaml package ocamlgraph_gtk... " >&6; }
10400 OCAML_OCAMLGRAPH_GTK=$(ocamlfind query ocamlgraph_gtk -format %v 2>/dev/null)
10401 if test -z "$OCAML_OCAMLGRAPH_GTK" ; then
10402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found via ocamlfind." >&5
10403 printf "%s\n" "not found via ocamlfind." >&6; }
10404 HAS_OCAML_OCAMLGRAPH_GTK=no
10405 else
10406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
10407 printf "%s\n" "found." >&6; }
10408 HAS_OCAML_OCAMLGRAPH_GTK=yes
10409 fi
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421 fi
10422
10423 # dot and xdot tools
10424 ####################
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436 for file in dot; do
10437 HAS_DOT=
10438 # Extract the first word of "$file", so it can be a program name with args.
10439 set dummy $file; ac_word=$2
10440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10441 printf %s "checking for $ac_word... " >&6; }
10442 if test ${ac_cv_prog_HAS_DOT+y}
10443 then :
10444 printf %s "(cached) " >&6
10445 else $as_nop
10446 if test -n "$HAS_DOT"; then
10447 ac_cv_prog_HAS_DOT="$HAS_DOT" # Let the user override the test.
10448 else
10449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10450 for as_dir in $PATH
10451 do
10452 IFS=$as_save_IFS
10453 case $as_dir in #(((
10454 '') as_dir=./ ;;
10455 */) ;;
10456 *) as_dir=$as_dir/ ;;
10457 esac
10458 for ac_exec_ext in '' $ac_executable_extensions; do
10459 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10460 ac_cv_prog_HAS_DOT="yes"
10461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10462 break 2
10463 fi
10464 done
10465 done
10466 IFS=$as_save_IFS
10467
10468 test -z "$ac_cv_prog_HAS_DOT" && ac_cv_prog_HAS_DOT="no"
10469 fi
10470 fi
10471 HAS_DOT=$ac_cv_prog_HAS_DOT
10472 if test -n "$HAS_DOT"; then
10473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAS_DOT" >&5
10474 printf "%s\n" "$HAS_DOT" >&6; }
10475 else
10476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10477 printf "%s\n" "no" >&6; }
10478 fi
10479
10480
10481 if test "$HAS_DOT" = "yes"; then SELECTED_VAR=$file break; fi
10482 done
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505 for file in unix2dos; do
10506 HAS_UNIX2DOS=
10507 # Extract the first word of "$file", so it can be a program name with args.
10508 set dummy $file; ac_word=$2
10509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10510 printf %s "checking for $ac_word... " >&6; }
10511 if test ${ac_cv_prog_HAS_UNIX2DOS+y}
10512 then :
10513 printf %s "(cached) " >&6
10514 else $as_nop
10515 if test -n "$HAS_UNIX2DOS"; then
10516 ac_cv_prog_HAS_UNIX2DOS="$HAS_UNIX2DOS" # Let the user override the test.
10517 else
10518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10519 for as_dir in $PATH
10520 do
10521 IFS=$as_save_IFS
10522 case $as_dir in #(((
10523 '') as_dir=./ ;;
10524 */) ;;
10525 *) as_dir=$as_dir/ ;;
10526 esac
10527 for ac_exec_ext in '' $ac_executable_extensions; do
10528 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10529 ac_cv_prog_HAS_UNIX2DOS="yes"
10530 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10531 break 2
10532 fi
10533 done
10534 done
10535 IFS=$as_save_IFS
10536
10537 test -z "$ac_cv_prog_HAS_UNIX2DOS" && ac_cv_prog_HAS_UNIX2DOS="no"
10538 fi
10539 fi
10540 HAS_UNIX2DOS=$ac_cv_prog_HAS_UNIX2DOS
10541 if test -n "$HAS_UNIX2DOS"; then
10542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAS_UNIX2DOS" >&5
10543 printf "%s\n" "$HAS_UNIX2DOS" >&6; }
10544 else
10545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10546 printf "%s\n" "no" >&6; }
10547 fi
10548
10549
10550 if test "$HAS_UNIX2DOS" = "yes"; then SELECTED_VAR=$file break; fi
10551 done
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566 USE_UNIX2DOS=$USE_UNIX2DOS" "tests
10567
10568
10569
10570 ########################
10571 # Plug-in dependencies #
10572 ########################
10573
10574 new_section "checking for plug-in dependencies"
10575
10576
10577 if test -n "$REQUIRE_LTLTOBA" -o -n "$USE_LTLTOBA" -o "$no" = "yes"; then
10578 if test "$HAS_LTLTOBA" = "no"; then
10579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ltl2ba not found." >&5
10580 printf "%s\n" "$as_me: WARNING: ltl2ba not found." >&2;}
10581 reason="ltl2ba missing"
10582 for p in $REQUIRE_LTLTOBA; do
10583 up=`upper "$p"`
10584 ep=ENABLE_$up
10585 eval enable_p=\$$ep
10586 if test "$enable_p" != "no"; then
10587 fp=FORCE_`upper "$p"`
10588 if eval test "\$$fp" = "yes"; then
10589 as_fn_error $? "$p requested but $reason." "$LINENO" 5
10590 fi
10591 eval $ep="no\ \(see\ warning\ about\ ltl2ba\)"
10592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $p disabled because $reason." >&5
10593 printf "%s\n" "$as_me: WARNING: $p disabled because $reason." >&2;}
10594 eval INFO_$up=\", $reason\"
10595 fi
10596 done
10597 for p in $USE_LTLTOBA; do
10598 up=`upper "$p"`
10599 ep=ENABLE_$up
10600 eval eep="\$$ep"
10601 if test "`echo $eep | sed -e 's/ .*//' `" != "no"; then
10602 eval $ep="partial\ \(see\ warning\ about\ ltl2ba\)"
10603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $p partially enabled because $reason." >&5
10604 printf "%s\n" "$as_me: WARNING: $p partially enabled because $reason." >&2;}
10605 eval INFO_$up=\", $reason\"
10606 fi
10607 done
10608 else
10609 LTLTOBA=ltl2ba
10610 fi
10611 fi
10612
10613
10614
10615
10616
10617 ac_config_files="$ac_config_files src/plugins/aorai/Makefile"
10618
10619
10620
10621
10622 #######################
10623 # Generating Makefile #
10624 #######################
10625
10626
10627
10628
10629 ac_config_files="$ac_config_files src/plugins/dive/Makefile"
10630
10631
10632
10633
10634 ###############################
10635 # C specific stuff for E-ACSL #
10636 ###############################
10637
10638 MAY_RUN_TESTS=yes
10639
10640 # C compiler and stdio.h
10641 #########################
10642
10643 for ac_header in stdio.h
10644 do :
10645 ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
10646 if test "x$ac_cv_header_stdio_h" = xyes
10647 then :
10648 printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
10649 HAVE_STDIO_H=yes
10650 fi
10651
10652 done
10653
10654 # not sure it can actually happen:
10655 # looks like configure stops on error if no C compiler detected
10656 if test -z $HAVE_STDIO_H; then
10657 MAY_RUN_TESTS=no
10658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: stdio.h missing: non-regression tests unavailable." >&5
10659 printf "%s\n" "$as_me: WARNING: stdio.h missing: non-regression tests unavailable." >&2;}
10660 fi
10661
10662 # Doxygen
10663 #########
10664
10665 # Extract the first word of "doxygen", so it can be a program name with args.
10666 set dummy doxygen; ac_word=$2
10667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10668 printf %s "checking for $ac_word... " >&6; }
10669 if test ${ac_cv_prog_DOXYGEN+y}
10670 then :
10671 printf %s "(cached) " >&6
10672 else $as_nop
10673 if test -n "$DOXYGEN"; then
10674 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
10675 else
10676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10677 for as_dir in $PATH
10678 do
10679 IFS=$as_save_IFS
10680 case $as_dir in #(((
10681 '') as_dir=./ ;;
10682 */) ;;
10683 *) as_dir=$as_dir/ ;;
10684 esac
10685 for ac_exec_ext in '' $ac_executable_extensions; do
10686 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10687 ac_cv_prog_DOXYGEN="doxygen"
10688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10689 break 2
10690 fi
10691 done
10692 done
10693 IFS=$as_save_IFS
10694
10695 test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN="no"
10696 fi
10697 fi
10698 DOXYGEN=$ac_cv_prog_DOXYGEN
10699 if test -n "$DOXYGEN"; then
10700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
10701 printf "%s\n" "$DOXYGEN" >&6; }
10702 else
10703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10704 printf "%s\n" "no" >&6; }
10705 fi
10706
10707
10708 # Extract the first word of "dot", so it can be a program name with args.
10709 set dummy dot; ac_word=$2
10710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10711 printf %s "checking for $ac_word... " >&6; }
10712 if test ${ac_cv_prog_HAVE_DOT+y}
10713 then :
10714 printf %s "(cached) " >&6
10715 else $as_nop
10716 if test -n "$HAVE_DOT"; then
10717 ac_cv_prog_HAVE_DOT="$HAVE_DOT" # Let the user override the test.
10718 else
10719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10720 for as_dir in $PATH
10721 do
10722 IFS=$as_save_IFS
10723 case $as_dir in #(((
10724 '') as_dir=./ ;;
10725 */) ;;
10726 *) as_dir=$as_dir/ ;;
10727 esac
10728 for ac_exec_ext in '' $ac_executable_extensions; do
10729 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10730 ac_cv_prog_HAVE_DOT="yes"
10731 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10732 break 2
10733 fi
10734 done
10735 done
10736 IFS=$as_save_IFS
10737
10738 test -z "$ac_cv_prog_HAVE_DOT" && ac_cv_prog_HAVE_DOT="no"
10739 fi
10740 fi
10741 HAVE_DOT=$ac_cv_prog_HAVE_DOT
10742 if test -n "$HAVE_DOT"; then
10743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOT" >&5
10744 printf "%s\n" "$HAVE_DOT" >&6; }
10745 else
10746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10747 printf "%s\n" "no" >&6; }
10748 fi
10749
10750
10751 ac_config_files="$ac_config_files src/plugins/e-acsl/doc/doxygen/doxygen.cfg"
10752
10753 ac_config_commands="$ac_config_commands default"
10754
10755 cat >confcache <<\_ACEOF
10756 # This file is a shell script that caches the results of configure
10757 # tests run on this system so they can be shared between configure
10758 # scripts and configure runs, see configure's option --config-cache.
10759 # It is not useful on other systems. If it contains results you don't
10760 # want to keep, you may remove or edit it.
10761 #
10762 # config.status only pays attention to the cache file if you give it
10763 # the --recheck option to rerun configure.
10764 #
10765 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10766 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10767 # following values.
10768
10769 _ACEOF
10770
10771 # The following way of writing the cache mishandles newlines in values,
10772 # but we know of no workaround that is simple, portable, and efficient.
10773 # So, we kill variables containing newlines.
10774 # Ultrix sh set writes to stderr and can't be redirected directly,
10775 # and sets the high bit in the cache file unless we assign to the vars.
10776 (
10777 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10778 eval ac_val=\$$ac_var
10779 case $ac_val in #(
10780 *${as_nl}*)
10781 case $ac_var in #(
10782 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10783 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10784 esac
10785 case $ac_var in #(
10786 _ | IFS | as_nl) ;; #(
10787 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10788 *) { eval $ac_var=; unset $ac_var;} ;;
10789 esac ;;
10790 esac
10791 done
10792
10793 (set) 2>&1 |
10794 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10795 *${as_nl}ac_space=\ *)
10796 # `set' does not quote correctly, so add quotes: double-quote
10797 # substitution turns \\\\ into \\, and sed turns \\ into \.
10798 sed -n \
10799 "s/'/'\\\\''/g;
10800 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10801 ;; #(
10802 *)
10803 # `set' quotes correctly as required by POSIX, so do not add quotes.
10804 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10805 ;;
10806 esac |
10807 sort
10808 ) |
10809 sed '
10810 /^ac_cv_env_/b end
10811 t clear
10812 :clear
10813 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
10814 t end
10815 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10816 :end' >>confcache
10817 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10818 if test -w "$cache_file"; then
10819 if test "x$cache_file" != "x/dev/null"; then
10820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10821 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
10822 if test ! -f "$cache_file" || test -h "$cache_file"; then
10823 cat confcache >"$cache_file"
10824 else
10825 case $cache_file in #(
10826 */* | ?:*)
10827 mv -f confcache "$cache_file"$$ &&
10828 mv -f "$cache_file"$$ "$cache_file" ;; #(
10829 *)
10830 mv -f confcache "$cache_file" ;;
10831 esac
10832 fi
10833 fi
10834 else
10835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10836 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
10837 fi
10838 fi
10839 rm -f confcache
10840
10841 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10842 # Let make expand exec_prefix.
10843 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10844
10845 DEFS=-DHAVE_CONFIG_H
10846
10847 ac_libobjs=
10848 ac_ltlibobjs=
10849 U=
10850 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10851 # 1. Remove the extension, and $U if already installed.
10852 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10853 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
10854 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10855 # will be set to the directory where LIBOBJS objects are built.
10856 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10857 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10858 done
10859 LIBOBJS=$ac_libobjs
10860
10861 LTLIBOBJS=$ac_ltlibobjs
10862
10863
10864
10865 : "${CONFIG_STATUS=./config.status}"
10866 ac_write_fail=0
10867 ac_clean_files_save=$ac_clean_files
10868 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10870 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
10871 as_write_fail=0
10872 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10873 #! $SHELL
10874 # Generated by $as_me.
10875 # Run this file to recreate the current configuration.
10876 # Compiler output produced by configure, useful for debugging
10877 # configure, is in config.log if it exists.
10878
10879 debug=false
10880 ac_cs_recheck=false
10881 ac_cs_silent=false
10882
10883 SHELL=\${CONFIG_SHELL-$SHELL}
10884 export SHELL
10885 _ASEOF
10886 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10887 ## -------------------- ##
10888 ## M4sh Initialization. ##
10889 ## -------------------- ##
10890
10891 # Be more Bourne compatible
10892 DUALCASE=1; export DUALCASE # for MKS sh
10893 as_nop=:
10894 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
10895 then :
10896 emulate sh
10897 NULLCMD=:
10898 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10899 # is contrary to our usage. Disable this feature.
10900 alias -g '${1+"$@"}'='"$@"'
10901 setopt NO_GLOB_SUBST
10902 else $as_nop
10903 case `(set -o) 2>/dev/null` in #(
10904 *posix*) :
10905 set -o posix ;; #(
10906 *) :
10907 ;;
10908 esac
10909 fi
10910
10911
10912
10913 # Reset variables that may have inherited troublesome values from
10914 # the environment.
10915
10916 # IFS needs to be set, to space, tab, and newline, in precisely that order.
10917 # (If _AS_PATH_WALK were called with IFS unset, it would have the
10918 # side effect of setting IFS to empty, thus disabling word splitting.)
10919 # Quoting is to prevent editors from complaining about space-tab.
10920 as_nl='
10921 '
10922 export as_nl
10923 IFS=" "" $as_nl"
10924
10925 PS1='$ '
10926 PS2='> '
10927 PS4='+ '
10928
10929 # Ensure predictable behavior from utilities with locale-dependent output.
10930 LC_ALL=C
10931 export LC_ALL
10932 LANGUAGE=C
10933 export LANGUAGE
10934
10935 # We cannot yet rely on "unset" to work, but we need these variables
10936 # to be unset--not just set to an empty or harmless value--now, to
10937 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
10938 # also avoids known problems related to "unset" and subshell syntax
10939 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
10940 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
10941 do eval test \${$as_var+y} \
10942 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10943 done
10944
10945 # Ensure that fds 0, 1, and 2 are open.
10946 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
10947 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
10948 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
10949
10950 # The user is always right.
10951 if ${PATH_SEPARATOR+false} :; then
10952 PATH_SEPARATOR=:
10953 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10954 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10955 PATH_SEPARATOR=';'
10956 }
10957 fi
10958
10959
10960 # Find who we are. Look in the path if we contain no directory separator.
10961 as_myself=
10962 case $0 in #((
10963 *[\\/]* ) as_myself=$0 ;;
10964 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10965 for as_dir in $PATH
10966 do
10967 IFS=$as_save_IFS
10968 case $as_dir in #(((
10969 '') as_dir=./ ;;
10970 */) ;;
10971 *) as_dir=$as_dir/ ;;
10972 esac
10973 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
10974 done
10975 IFS=$as_save_IFS
10976
10977 ;;
10978 esac
10979 # We did not find ourselves, most probably we were run as `sh COMMAND'
10980 # in which case we are not to be found in the path.
10981 if test "x$as_myself" = x; then
10982 as_myself=$0
10983 fi
10984 if test ! -f "$as_myself"; then
10985 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10986 exit 1
10987 fi
10988
10989
10990
10991 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10992 # ----------------------------------------
10993 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10994 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10995 # script with STATUS, using 1 if that was 0.
10996 as_fn_error ()
10997 {
10998 as_status=$1; test $as_status -eq 0 && as_status=1
10999 if test "$4"; then
11000 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11002 fi
11003 printf "%s\n" "$as_me: error: $2" >&2
11004 as_fn_exit $as_status
11005 } # as_fn_error
11006
11007
11008
11009 # as_fn_set_status STATUS
11010 # -----------------------
11011 # Set $? to STATUS, without forking.
11012 as_fn_set_status ()
11013 {
11014 return $1
11015 } # as_fn_set_status
11016
11017 # as_fn_exit STATUS
11018 # -----------------
11019 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11020 as_fn_exit ()
11021 {
11022 set +e
11023 as_fn_set_status $1
11024 exit $1
11025 } # as_fn_exit
11026
11027 # as_fn_unset VAR
11028 # ---------------
11029 # Portably unset VAR.
11030 as_fn_unset ()
11031 {
11032 { eval $1=; unset $1;}
11033 }
11034 as_unset=as_fn_unset
11035
11036 # as_fn_append VAR VALUE
11037 # ----------------------
11038 # Append the text in VALUE to the end of the definition contained in VAR. Take
11039 # advantage of any shell optimizations that allow amortized linear growth over
11040 # repeated appends, instead of the typical quadratic growth present in naive
11041 # implementations.
11042 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11043 then :
11044 eval 'as_fn_append ()
11045 {
11046 eval $1+=\$2
11047 }'
11048 else $as_nop
11049 as_fn_append ()
11050 {
11051 eval $1=\$$1\$2
11052 }
11053 fi # as_fn_append
11054
11055 # as_fn_arith ARG...
11056 # ------------------
11057 # Perform arithmetic evaluation on the ARGs, and store the result in the
11058 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11059 # must be portable across $(()) and expr.
11060 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11061 then :
11062 eval 'as_fn_arith ()
11063 {
11064 as_val=$(( $* ))
11065 }'
11066 else $as_nop
11067 as_fn_arith ()
11068 {
11069 as_val=`expr "$@" || test $? -eq 1`
11070 }
11071 fi # as_fn_arith
11072
11073
11074 if expr a : '\(a\)' >/dev/null 2>&1 &&
11075 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11076 as_expr=expr
11077 else
11078 as_expr=false
11079 fi
11080
11081 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11082 as_basename=basename
11083 else
11084 as_basename=false
11085 fi
11086
11087 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11088 as_dirname=dirname
11089 else
11090 as_dirname=false
11091 fi
11092
11093 as_me=`$as_basename -- "$0" ||
11094 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11095 X"$0" : 'X\(//\)$' \| \
11096 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11097 printf "%s\n" X/"$0" |
11098 sed '/^.*\/\([^/][^/]*\)\/*$/{
11099 s//\1/
11100 q
11101 }
11102 /^X\/\(\/\/\)$/{
11103 s//\1/
11104 q
11105 }
11106 /^X\/\(\/\).*/{
11107 s//\1/
11108 q
11109 }
11110 s/.*/./; q'`
11111
11112 # Avoid depending upon Character Ranges.
11113 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11114 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11115 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11116 as_cr_digits='0123456789'
11117 as_cr_alnum=$as_cr_Letters$as_cr_digits
11118
11119
11120 # Determine whether it's possible to make 'echo' print without a newline.
11121 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11122 # for compatibility with existing Makefiles.
11123 ECHO_C= ECHO_N= ECHO_T=
11124 case `echo -n x` in #(((((
11125 -n*)
11126 case `echo 'xy\c'` in
11127 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11128 xy) ECHO_C='\c';;
11129 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11130 ECHO_T=' ';;
11131 esac;;
11132 *)
11133 ECHO_N='-n';;
11134 esac
11135
11136 # For backward compatibility with old third-party macros, we provide
11137 # the shell variables $as_echo and $as_echo_n. New code should use
11138 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11139 as_echo='printf %s\n'
11140 as_echo_n='printf %s'
11141
11142 rm -f conf$$ conf$$.exe conf$$.file
11143 if test -d conf$$.dir; then
11144 rm -f conf$$.dir/conf$$.file
11145 else
11146 rm -f conf$$.dir
11147 mkdir conf$$.dir 2>/dev/null
11148 fi
11149 if (echo >conf$$.file) 2>/dev/null; then
11150 if ln -s conf$$.file conf$$ 2>/dev/null; then
11151 as_ln_s='ln -s'
11152 # ... but there are two gotchas:
11153 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11154 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11155 # In both cases, we have to default to `cp -pR'.
11156 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11157 as_ln_s='cp -pR'
11158 elif ln conf$$.file conf$$ 2>/dev/null; then
11159 as_ln_s=ln
11160 else
11161 as_ln_s='cp -pR'
11162 fi
11163 else
11164 as_ln_s='cp -pR'
11165 fi
11166 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11167 rmdir conf$$.dir 2>/dev/null
11168
11169
11170 # as_fn_mkdir_p
11171 # -------------
11172 # Create "$as_dir" as a directory, including parents if necessary.
11173 as_fn_mkdir_p ()
11174 {
11175
11176 case $as_dir in #(
11177 -*) as_dir=./$as_dir;;
11178 esac
11179 test -d "$as_dir" || eval $as_mkdir_p || {
11180 as_dirs=
11181 while :; do
11182 case $as_dir in #(
11183 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11184 *) as_qdir=$as_dir;;
11185 esac
11186 as_dirs="'$as_qdir' $as_dirs"
11187 as_dir=`$as_dirname -- "$as_dir" ||
11188 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11189 X"$as_dir" : 'X\(//\)[^/]' \| \
11190 X"$as_dir" : 'X\(//\)$' \| \
11191 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11192 printf "%s\n" X"$as_dir" |
11193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11194 s//\1/
11195 q
11196 }
11197 /^X\(\/\/\)[^/].*/{
11198 s//\1/
11199 q
11200 }
11201 /^X\(\/\/\)$/{
11202 s//\1/
11203 q
11204 }
11205 /^X\(\/\).*/{
11206 s//\1/
11207 q
11208 }
11209 s/.*/./; q'`
11210 test -d "$as_dir" && break
11211 done
11212 test -z "$as_dirs" || eval "mkdir $as_dirs"
11213 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11214
11215
11216 } # as_fn_mkdir_p
11217 if mkdir -p . 2>/dev/null; then
11218 as_mkdir_p='mkdir -p "$as_dir"'
11219 else
11220 test -d ./-p && rmdir ./-p
11221 as_mkdir_p=false
11222 fi
11223
11224
11225 # as_fn_executable_p FILE
11226 # -----------------------
11227 # Test if FILE is an executable regular file.
11228 as_fn_executable_p ()
11229 {
11230 test -f "$1" && test -x "$1"
11231 } # as_fn_executable_p
11232 as_test_x='test -x'
11233 as_executable_p=as_fn_executable_p
11234
11235 # Sed expression to map a string onto a valid CPP name.
11236 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11237
11238 # Sed expression to map a string onto a valid variable name.
11239 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11240
11241
11242 exec 6>&1
11243 ## ----------------------------------- ##
11244 ## Main body of $CONFIG_STATUS script. ##
11245 ## ----------------------------------- ##
11246 _ASEOF
11247 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11248
11249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11250 # Save the log message, to keep $0 and so on meaningful, and to
11251 # report actual input values of CONFIG_FILES etc. instead of their
11252 # values after options handling.
11253 ac_log="
11254 This file was extended by $as_me, which was
11255 generated by GNU Autoconf 2.71. Invocation command line was
11256
11257 CONFIG_FILES = $CONFIG_FILES
11258 CONFIG_HEADERS = $CONFIG_HEADERS
11259 CONFIG_LINKS = $CONFIG_LINKS
11260 CONFIG_COMMANDS = $CONFIG_COMMANDS
11261 $ $0 $@
11262
11263 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11264 "
11265
11266 _ACEOF
11267
11268 case $ac_config_files in *"
11269 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11270 esac
11271
11272 case $ac_config_headers in *"
11273 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11274 esac
11275
11276
11277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11278 # Files that config.status was made for.
11279 config_files="$ac_config_files"
11280 config_headers="$ac_config_headers"
11281 config_commands="$ac_config_commands"
11282
11283 _ACEOF
11284
11285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11286 ac_cs_usage="\
11287 \`$as_me' instantiates files and other configuration actions
11288 from templates according to the current configuration. Unless the files
11289 and actions are specified as TAGs, all are instantiated by default.
11290
11291 Usage: $0 [OPTION]... [TAG]...
11292
11293 -h, --help print this help, then exit
11294 -V, --version print version number and configuration settings, then exit
11295 --config print configuration, then exit
11296 -q, --quiet, --silent
11297 do not print progress messages
11298 -d, --debug don't remove temporary files
11299 --recheck update $as_me by reconfiguring in the same conditions
11300 --file=FILE[:TEMPLATE]
11301 instantiate the configuration file FILE
11302 --header=FILE[:TEMPLATE]
11303 instantiate the configuration header FILE
11304
11305 Configuration files:
11306 $config_files
11307
11308 Configuration headers:
11309 $config_headers
11310
11311 Configuration commands:
11312 $config_commands
11313
11314 Report bugs to the package provider."
11315
11316 _ACEOF
11317 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
11318 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
11319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11320 ac_cs_config='$ac_cs_config_escaped'
11321 ac_cs_version="\\
11322 config.status
11323 configured by $0, generated by GNU Autoconf 2.71,
11324 with options \\"\$ac_cs_config\\"
11325
11326 Copyright (C) 2021 Free Software Foundation, Inc.
11327 This config.status script is free software; the Free Software Foundation
11328 gives unlimited permission to copy, distribute and modify it."
11329
11330 ac_pwd='$ac_pwd'
11331 srcdir='$srcdir'
11332 test -n "\$AWK" || AWK=awk
11333 _ACEOF
11334
11335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11336 # The default lists apply if the user does not specify any file.
11337 ac_need_defaults=:
11338 while test $# != 0
11339 do
11340 case $1 in
11341 --*=?*)
11342 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11343 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11344 ac_shift=:
11345 ;;
11346 --*=)
11347 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11348 ac_optarg=
11349 ac_shift=:
11350 ;;
11351 *)
11352 ac_option=$1
11353 ac_optarg=$2
11354 ac_shift=shift
11355 ;;
11356 esac
11357
11358 case $ac_option in
11359 # Handling of the options.
11360 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11361 ac_cs_recheck=: ;;
11362 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11363 printf "%s\n" "$ac_cs_version"; exit ;;
11364 --config | --confi | --conf | --con | --co | --c )
11365 printf "%s\n" "$ac_cs_config"; exit ;;
11366 --debug | --debu | --deb | --de | --d | -d )
11367 debug=: ;;
11368 --file | --fil | --fi | --f )
11369 $ac_shift
11370 case $ac_optarg in
11371 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11372 '') as_fn_error $? "missing file argument" ;;
11373 esac
11374 as_fn_append CONFIG_FILES " '$ac_optarg'"
11375 ac_need_defaults=false;;
11376 --header | --heade | --head | --hea )
11377 $ac_shift
11378 case $ac_optarg in
11379 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11380 esac
11381 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11382 ac_need_defaults=false;;
11383 --he | --h)
11384 # Conflict between --help and --header
11385 as_fn_error $? "ambiguous option: \`$1'
11386 Try \`$0 --help' for more information.";;
11387 --help | --hel | -h )
11388 printf "%s\n" "$ac_cs_usage"; exit ;;
11389 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11390 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11391 ac_cs_silent=: ;;
11392
11393 # This is an error.
11394 -*) as_fn_error $? "unrecognized option: \`$1'
11395 Try \`$0 --help' for more information." ;;
11396
11397 *) as_fn_append ac_config_targets " $1"
11398 ac_need_defaults=false ;;
11399
11400 esac
11401 shift
11402 done
11403
11404 ac_configure_extra_args=
11405
11406 if $ac_cs_silent; then
11407 exec 6>/dev/null
11408 ac_configure_extra_args="$ac_configure_extra_args --silent"
11409 fi
11410
11411 _ACEOF
11412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11413 if \$ac_cs_recheck; then
11414 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11415 shift
11416 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
11417 CONFIG_SHELL='$SHELL'
11418 export CONFIG_SHELL
11419 exec "\$@"
11420 fi
11421
11422 _ACEOF
11423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11424 exec 5>>config.log
11425 {
11426 echo
11427 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11428 ## Running $as_me. ##
11429 _ASBOX
11430 printf "%s\n" "$ac_log"
11431 } >&5
11432
11433 _ACEOF
11434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11435 _ACEOF
11436
11437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11438
11439 # Handling of arguments.
11440 for ac_config_target in $ac_config_targets
11441 do
11442 case $ac_config_target in
11443 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11444 "src/plugins/aorai/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/aorai/Makefile" ;;
11445 "src/plugins/dive/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dive/Makefile" ;;
11446 "src/plugins/e-acsl/doc/doxygen/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES src/plugins/e-acsl/doc/doxygen/doxygen.cfg" ;;
11447 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
11448
11449 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11450 esac
11451 done
11452
11453
11454 # If the user did not use the arguments to specify the items to instantiate,
11455 # then the envvar interface is used. Set only those that are not.
11456 # We use the long form for the default assignment because of an extremely
11457 # bizarre bug on SunOS 4.1.3.
11458 if $ac_need_defaults; then
11459 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
11460 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
11461 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
11462 fi
11463
11464 # Have a temporary directory for convenience. Make it in the build tree
11465 # simply because there is no reason against having it here, and in addition,
11466 # creating and moving files from /tmp can sometimes cause problems.
11467 # Hook for its removal unless debugging.
11468 # Note that there is a small window in which the directory will not be cleaned:
11469 # after its creation but before its name has been assigned to `$tmp'.
11470 $debug ||
11471 {
11472 tmp= ac_tmp=
11473 trap 'exit_status=$?
11474 : "${ac_tmp:=$tmp}"
11475 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11476 ' 0
11477 trap 'as_fn_exit 1' 1 2 13 15
11478 }
11479 # Create a (secure) tmp directory for tmp files.
11480
11481 {
11482 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11483 test -d "$tmp"
11484 } ||
11485 {
11486 tmp=./conf$$-$RANDOM
11487 (umask 077 && mkdir "$tmp")
11488 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11489 ac_tmp=$tmp
11490
11491 # Set up the scripts for CONFIG_FILES section.
11492 # No need to generate them if there are no CONFIG_FILES.
11493 # This happens for instance with `./config.status config.h'.
11494 if test -n "$CONFIG_FILES"; then
11495
11496
11497 ac_cr=`echo X | tr X '\015'`
11498 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11499 # But we know of no other shell where ac_cr would be empty at this
11500 # point, so we can use a bashism as a fallback.
11501 if test "x$ac_cr" = x; then
11502 eval ac_cr=\$\'\\r\'
11503 fi
11504 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11505 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11506 ac_cs_awk_cr='\\r'
11507 else
11508 ac_cs_awk_cr=$ac_cr
11509 fi
11510
11511 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11512 _ACEOF
11513
11514
11515 {
11516 echo "cat >conf$$subs.awk <<_ACEOF" &&
11517 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11518 echo "_ACEOF"
11519 } >conf$$subs.sh ||
11520 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11521 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11522 ac_delim='%!_!# '
11523 for ac_last_try in false false false false false :; do
11524 . ./conf$$subs.sh ||
11525 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11526
11527 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11528 if test $ac_delim_n = $ac_delim_num; then
11529 break
11530 elif $ac_last_try; then
11531 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11532 else
11533 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11534 fi
11535 done
11536 rm -f conf$$subs.sh
11537
11538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11539 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11540 _ACEOF
11541 sed -n '
11542 h
11543 s/^/S["/; s/!.*/"]=/
11544 p
11545 g
11546 s/^[^!]*!//
11547 :repl
11548 t repl
11549 s/'"$ac_delim"'$//
11550 t delim
11551 :nl
11552 h
11553 s/\(.\{148\}\)..*/\1/
11554 t more1
11555 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11556 p
11557 n
11558 b repl
11559 :more1
11560 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11561 p
11562 g
11563 s/.\{148\}//
11564 t nl
11565 :delim
11566 h
11567 s/\(.\{148\}\)..*/\1/
11568 t more2
11569 s/["\\]/\\&/g; s/^/"/; s/$/"/
11570 p
11571 b
11572 :more2
11573 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11574 p
11575 g
11576 s/.\{148\}//
11577 t delim
11578 ' <conf$$subs.awk | sed '
11579 /^[^""]/{
11580 N
11581 s/\n//
11582 }
11583 ' >>$CONFIG_STATUS || ac_write_fail=1
11584 rm -f conf$$subs.awk
11585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11586 _ACAWK
11587 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11588 for (key in S) S_is_set[key] = 1
11589 FS = ""
11590
11591 }
11592 {
11593 line = $ 0
11594 nfields = split(line, field, "@")
11595 substed = 0
11596 len = length(field[1])
11597 for (i = 2; i < nfields; i++) {
11598 key = field[i]
11599 keylen = length(key)
11600 if (S_is_set[key]) {
11601 value = S[key]
11602 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11603 len += length(value) + length(field[++i])
11604 substed = 1
11605 } else
11606 len += 1 + keylen
11607 }
11608
11609 print line
11610 }
11611
11612 _ACAWK
11613 _ACEOF
11614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11615 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11616 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11617 else
11618 cat
11619 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11620 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11621 _ACEOF
11622
11623 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11624 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11625 # trailing colons and then remove the whole line if VPATH becomes empty
11626 # (actually we leave an empty line to preserve line numbers).
11627 if test "x$srcdir" = x.; then
11628 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11629 h
11630 s///
11631 s/^/:/
11632 s/[ ]*$/:/
11633 s/:\$(srcdir):/:/g
11634 s/:\${srcdir}:/:/g
11635 s/:@srcdir@:/:/g
11636 s/^:*//
11637 s/:*$//
11638 x
11639 s/\(=[ ]*\).*/\1/
11640 G
11641 s/\n//
11642 s/^[^=]*=[ ]*$//
11643 }'
11644 fi
11645
11646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11647 fi # test -n "$CONFIG_FILES"
11648
11649 # Set up the scripts for CONFIG_HEADERS section.
11650 # No need to generate them if there are no CONFIG_HEADERS.
11651 # This happens for instance with `./config.status Makefile'.
11652 if test -n "$CONFIG_HEADERS"; then
11653 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11654 BEGIN {
11655 _ACEOF
11656
11657 # Transform confdefs.h into an awk script `defines.awk', embedded as
11658 # here-document in config.status, that substitutes the proper values into
11659 # config.h.in to produce config.h.
11660
11661 # Create a delimiter string that does not exist in confdefs.h, to ease
11662 # handling of long lines.
11663 ac_delim='%!_!# '
11664 for ac_last_try in false false :; do
11665 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11666 if test -z "$ac_tt"; then
11667 break
11668 elif $ac_last_try; then
11669 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11670 else
11671 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11672 fi
11673 done
11674
11675 # For the awk script, D is an array of macro values keyed by name,
11676 # likewise P contains macro parameters if any. Preserve backslash
11677 # newline sequences.
11678
11679 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11680 sed -n '
11681 s/.\{148\}/&'"$ac_delim"'/g
11682 t rset
11683 :rset
11684 s/^[ ]*#[ ]*define[ ][ ]*/ /
11685 t def
11686 d
11687 :def
11688 s/\\$//
11689 t bsnl
11690 s/["\\]/\\&/g
11691 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11692 D["\1"]=" \3"/p
11693 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11694 d
11695 :bsnl
11696 s/["\\]/\\&/g
11697 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11698 D["\1"]=" \3\\\\\\n"\\/p
11699 t cont
11700 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11701 t cont
11702 d
11703 :cont
11704 n
11705 s/.\{148\}/&'"$ac_delim"'/g
11706 t clear
11707 :clear
11708 s/\\$//
11709 t bsnlc
11710 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11711 d
11712 :bsnlc
11713 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11714 b cont
11715 ' <confdefs.h | sed '
11716 s/'"$ac_delim"'/"\\\
11717 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11718
11719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11720 for (key in D) D_is_set[key] = 1
11721 FS = ""
11722 }
11723 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11724 line = \$ 0
11725 split(line, arg, " ")
11726 if (arg[1] == "#") {
11727 defundef = arg[2]
11728 mac1 = arg[3]
11729 } else {
11730 defundef = substr(arg[1], 2)
11731 mac1 = arg[2]
11732 }
11733 split(mac1, mac2, "(") #)
11734 macro = mac2[1]
11735 prefix = substr(line, 1, index(line, defundef) - 1)
11736 if (D_is_set[macro]) {
11737 # Preserve the white space surrounding the "#".
11738 print prefix "define", macro P[macro] D[macro]
11739 next
11740 } else {
11741 # Replace #undef with comments. This is necessary, for example,
11742 # in the case of _POSIX_SOURCE, which is predefined and required
11743 # on some systems where configure will not decide to define it.
11744 if (defundef == "undef") {
11745 print "/*", prefix defundef, macro, "*/"
11746 next
11747 }
11748 }
11749 }
11750 { print }
11751 _ACAWK
11752 _ACEOF
11753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11754 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11755 fi # test -n "$CONFIG_HEADERS"
11756
11757
11758 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11759 shift
11760 for ac_tag
11761 do
11762 case $ac_tag in
11763 :[FHLC]) ac_mode=$ac_tag; continue;;
11764 esac
11765 case $ac_mode$ac_tag in
11766 :[FHL]*:*);;
11767 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11768 :[FH]-) ac_tag=-:-;;
11769 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11770 esac
11771 ac_save_IFS=$IFS
11772 IFS=:
11773 set x $ac_tag
11774 IFS=$ac_save_IFS
11775 shift
11776 ac_file=$1
11777 shift
11778
11779 case $ac_mode in
11780 :L) ac_source=$1;;
11781 :[FH])
11782 ac_file_inputs=
11783 for ac_f
11784 do
11785 case $ac_f in
11786 -) ac_f="$ac_tmp/stdin";;
11787 *) # Look for the file first in the build tree, then in the source tree
11788 # (if the path is not absolute). The absolute path cannot be DOS-style,
11789 # because $ac_f cannot contain `:'.
11790 test -f "$ac_f" ||
11791 case $ac_f in
11792 [\\/$]*) false;;
11793 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11794 esac ||
11795 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11796 esac
11797 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11798 as_fn_append ac_file_inputs " '$ac_f'"
11799 done
11800
11801 # Let's still pretend it is `configure' which instantiates (i.e., don't
11802 # use $as_me), people would be surprised to read:
11803 # /* config.h. Generated by config.status. */
11804 configure_input='Generated from '`
11805 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11806 `' by configure.'
11807 if test x"$ac_file" != x-; then
11808 configure_input="$ac_file. $configure_input"
11809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11810 printf "%s\n" "$as_me: creating $ac_file" >&6;}
11811 fi
11812 # Neutralize special characters interpreted by sed in replacement strings.
11813 case $configure_input in #(
11814 *\&* | *\|* | *\\* )
11815 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
11816 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11817 *) ac_sed_conf_input=$configure_input;;
11818 esac
11819
11820 case $ac_tag in
11821 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11822 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11823 esac
11824 ;;
11825 esac
11826
11827 ac_dir=`$as_dirname -- "$ac_file" ||
11828 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11829 X"$ac_file" : 'X\(//\)[^/]' \| \
11830 X"$ac_file" : 'X\(//\)$' \| \
11831 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11832 printf "%s\n" X"$ac_file" |
11833 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11834 s//\1/
11835 q
11836 }
11837 /^X\(\/\/\)[^/].*/{
11838 s//\1/
11839 q
11840 }
11841 /^X\(\/\/\)$/{
11842 s//\1/
11843 q
11844 }
11845 /^X\(\/\).*/{
11846 s//\1/
11847 q
11848 }
11849 s/.*/./; q'`
11850 as_dir="$ac_dir"; as_fn_mkdir_p
11851 ac_builddir=.
11852
11853 case "$ac_dir" in
11854 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11855 *)
11856 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
11857 # A ".." for each directory in $ac_dir_suffix.
11858 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11859 case $ac_top_builddir_sub in
11860 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11861 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11862 esac ;;
11863 esac
11864 ac_abs_top_builddir=$ac_pwd
11865 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11866 # for backward compatibility:
11867 ac_top_builddir=$ac_top_build_prefix
11868
11869 case $srcdir in
11870 .) # We are building in place.
11871 ac_srcdir=.
11872 ac_top_srcdir=$ac_top_builddir_sub
11873 ac_abs_top_srcdir=$ac_pwd ;;
11874 [\\/]* | ?:[\\/]* ) # Absolute name.
11875 ac_srcdir=$srcdir$ac_dir_suffix;
11876 ac_top_srcdir=$srcdir
11877 ac_abs_top_srcdir=$srcdir ;;
11878 *) # Relative name.
11879 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11880 ac_top_srcdir=$ac_top_build_prefix$srcdir
11881 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11882 esac
11883 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11884
11885
11886 case $ac_mode in
11887 :F)
11888 #
11889 # CONFIG_FILE
11890 #
11891
11892 _ACEOF
11893
11894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11895 # If the template does not know about datarootdir, expand it.
11896 # FIXME: This hack should be removed a few years after 2.60.
11897 ac_datarootdir_hack=; ac_datarootdir_seen=
11898 ac_sed_dataroot='
11899 /datarootdir/ {
11900 p
11901 q
11902 }
11903 /@datadir@/p
11904 /@docdir@/p
11905 /@infodir@/p
11906 /@localedir@/p
11907 /@mandir@/p'
11908 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11909 *datarootdir*) ac_datarootdir_seen=yes;;
11910 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11912 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11913 _ACEOF
11914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11915 ac_datarootdir_hack='
11916 s&@datadir@&$datadir&g
11917 s&@docdir@&$docdir&g
11918 s&@infodir@&$infodir&g
11919 s&@localedir@&$localedir&g
11920 s&@mandir@&$mandir&g
11921 s&\\\${datarootdir}&$datarootdir&g' ;;
11922 esac
11923 _ACEOF
11924
11925 # Neutralize VPATH when `$srcdir' = `.'.
11926 # Shell code in configure.ac might set extrasub.
11927 # FIXME: do we really want to maintain this feature?
11928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11929 ac_sed_extra="$ac_vpsub
11930 $extrasub
11931 _ACEOF
11932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11933 :t
11934 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11935 s|@configure_input@|$ac_sed_conf_input|;t t
11936 s&@top_builddir@&$ac_top_builddir_sub&;t t
11937 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11938 s&@srcdir@&$ac_srcdir&;t t
11939 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11940 s&@top_srcdir@&$ac_top_srcdir&;t t
11941 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11942 s&@builddir@&$ac_builddir&;t t
11943 s&@abs_builddir@&$ac_abs_builddir&;t t
11944 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11945 $ac_datarootdir_hack
11946 "
11947 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11948 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11949
11950 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11951 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11952 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11953 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11955 which seems to be undefined. Please make sure it is defined" >&5
11956 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11957 which seems to be undefined. Please make sure it is defined" >&2;}
11958
11959 rm -f "$ac_tmp/stdin"
11960 case $ac_file in
11961 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11962 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11963 esac \
11964 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11965 ;;
11966 :H)
11967 #
11968 # CONFIG_HEADER
11969 #
11970 if test x"$ac_file" != x-; then
11971 {
11972 printf "%s\n" "/* $configure_input */" >&1 \
11973 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11974 } >"$ac_tmp/config.h" \
11975 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11976 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11978 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
11979 else
11980 rm -f "$ac_file"
11981 mv "$ac_tmp/config.h" "$ac_file" \
11982 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11983 fi
11984 else
11985 printf "%s\n" "/* $configure_input */" >&1 \
11986 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11987 || as_fn_error $? "could not create -" "$LINENO" 5
11988 fi
11989 ;;
11990
11991 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11992 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
11993 ;;
11994 esac
11995
11996
11997 case $ac_file$ac_mode in
11998 "src/plugins/aorai/Makefile":F) chmod -w src/plugins/aorai/Makefile ;;
11999 "src/plugins/dive/Makefile":F) chmod -w src/plugins/dive/Makefile ;;
12000 "default":C) ;;
12001
12002 esac
12003 done # for ac_tag
12004
12005
12006 as_fn_exit 0
12007 _ACEOF
12008 ac_clean_files=$ac_clean_files_save
12009
12010 test $ac_write_fail = 0 ||
12011 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12012
12013
12014 # configure is writing to config.log, and then calls config.status.
12015 # config.status does its own redirection, appending to config.log.
12016 # Unfortunately, on DOS this fails, as config.log is still kept open
12017 # by configure, so config.status won't be able to write to it; its
12018 # output is simply discarded. So we exec the FD to /dev/null,
12019 # effectively closing config.log, so it can be properly (re)opened and
12020 # appended to by config.status. When coming back to configure, we
12021 # need to make the FD available again.
12022 if test "$no_create" != yes; then
12023 ac_cs_success=:
12024 ac_config_status_args=
12025 test "$silent" = yes &&
12026 ac_config_status_args="$ac_config_status_args --quiet"
12027 exec 5>/dev/null
12028 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12029 exec 5>>config.log
12030 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12031 # would make configure fail if this is the last instruction.
12032 $ac_cs_success || as_fn_exit 1
12033 fi
12034 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12036 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12037 fi
12038
12039
12040 #######################
12041 # Generating Makefile #
12042 #######################
12043
12044
12045
12046
12047
12048
12049 ac_config_files="$ac_config_files src/plugins/e-acsl/Makefile"
12050
12051
12052
12053 if test -n "$REQUIRE_OCAML_PPX_DERIVING" -o -n "$USE_OCAML_PPX_DERIVING" -o "$no" = "yes"; then
12054 if test "$HAS_OCAML_PPX_DERIVING" = "no"; then
12055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: package ppx_deriving not found" >&5
12056 printf "%s\n" "$as_me: WARNING: package ppx_deriving not found" >&2;}
12057 reason="ppx_deriving missing"
12058 for p in $REQUIRE_OCAML_PPX_DERIVING; do
12059 up=`upper "$p"`
12060 ep=ENABLE_$up
12061 eval enable_p=\$$ep
12062 if test "$enable_p" != "no"; then
12063 fp=FORCE_`upper "$p"`
12064 if eval test "\$$fp" = "yes"; then
12065 as_fn_error $? "$p requested but $reason." "$LINENO" 5
12066 fi
12067 eval $ep="no\ \(see\ warning\ about\ ppx_deriving\)"
12068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $p disabled because $reason." >&5
12069 printf "%s\n" "$as_me: WARNING: $p disabled because $reason." >&2;}
12070 eval INFO_$up=\", $reason\"
12071 fi
12072 done
12073 for p in $USE_OCAML_PPX_DERIVING; do
12074 up=`upper "$p"`
12075 ep=ENABLE_$up
12076 eval eep="\$$ep"
12077 if test "`echo $eep | sed -e 's/ .*//' `" != "no"; then
12078 eval $ep="partial\ \(see\ warning\ about\ ppx_deriving\)"
12079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $p partially enabled because $reason." >&5
12080 printf "%s\n" "$as_me: WARNING: $p partially enabled because $reason." >&2;}
12081 eval INFO_$up=\", $reason\"
12082 fi
12083 done
12084 else
12085 OCAML_PPX_DERIVING=PPX_DERIVING
12086 fi
12087 fi
12088
12089 if test -n "$REQUIRE_OCAML_PPX_DERIVING_YOJSON" -o -n "$USE_OCAML_PPX_DERIVING_YOJSON" -o "$no" = "yes"; then
12090 if test "$HAS_OCAML_PPX_DERIVING_YOJSON" = "no"; then
12091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: package ppx_deriving_yojson not found" >&5
12092 printf "%s\n" "$as_me: WARNING: package ppx_deriving_yojson not found" >&2;}
12093 reason="ppx_deriving_yojson missing"
12094 for p in $REQUIRE_OCAML_PPX_DERIVING_YOJSON; do
12095 up=`upper "$p"`
12096 ep=ENABLE_$up
12097 eval enable_p=\$$ep
12098 if test "$enable_p" != "no"; then
12099 fp=FORCE_`upper "$p"`
12100 if eval test "\$$fp" = "yes"; then
12101 as_fn_error $? "$p requested but $reason." "$LINENO" 5
12102 fi
12103 eval $ep="no\ \(see\ warning\ about\ ppx_deriving_yojson\)"
12104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $p disabled because $reason." >&5
12105 printf "%s\n" "$as_me: WARNING: $p disabled because $reason." >&2;}
12106 eval INFO_$up=\", $reason\"
12107 fi
12108 done
12109 for p in $USE_OCAML_PPX_DERIVING_YOJSON; do
12110 up=`upper "$p"`
12111 ep=ENABLE_$up
12112 eval eep="\$$ep"
12113 if test "`echo $eep | sed -e 's/ .*//' `" != "no"; then
12114 eval $ep="partial\ \(see\ warning\ about\ ppx_deriving_yojson\)"
12115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $p partially enabled because $reason." >&5
12116 printf "%s\n" "$as_me: WARNING: $p partially enabled because $reason." >&2;}
12117 eval INFO_$up=\", $reason\"
12118 fi
12119 done
12120 else
12121 OCAML_PPX_DERIVING_YOJSON=PPX_DERIVING_YOJSON
12122 fi
12123 fi
12124
12125
12126
12127
12128
12129 ac_config_files="$ac_config_files src/plugins/markdown-report/Makefile"
12130
12131
12132
12133
12134
12135
12136
12137 ac_config_files="$ac_config_files src/plugins/security_slicing/Makefile"
12138
12139
12140
12141 if test -n "$REQUIRE_OCAML_ZMQ" -o -n "$USE_OCAML_ZMQ" -o "$no" = "yes"; then
12142 if test "$HAS_OCAML_ZMQ" = "no"; then
12143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Server support for ZeroMQ disabled (try 'opam install zmq')." >&5
12144 printf "%s\n" "$as_me: WARNING: Server support for ZeroMQ disabled (try 'opam install zmq')." >&2;}
12145 reason="zmq missing"
12146 for p in $REQUIRE_OCAML_ZMQ; do
12147 up=`upper "$p"`
12148 ep=ENABLE_$up
12149 eval enable_p=\$$ep
12150 if test "$enable_p" != "no"; then
12151 fp=FORCE_`upper "$p"`
12152 if eval test "\$$fp" = "yes"; then
12153 as_fn_error $? "$p requested but $reason." "$LINENO" 5
12154 fi
12155 eval $ep="no\ \(see\ warning\ about\ zmq\)"
12156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $p disabled because $reason." >&5
12157 printf "%s\n" "$as_me: WARNING: $p disabled because $reason." >&2;}
12158 eval INFO_$up=\", $reason\"
12159 fi
12160 done
12161 for p in $USE_OCAML_ZMQ; do
12162 up=`upper "$p"`
12163 ep=ENABLE_$up
12164 eval eep="\$$ep"
12165 if test "`echo $eep | sed -e 's/ .*//' `" != "no"; then
12166 eval $ep="partial\ \(see\ warning\ about\ zmq\)"
12167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $p partially enabled because $reason." >&5
12168 printf "%s\n" "$as_me: WARNING: $p partially enabled because $reason." >&2;}
12169 eval INFO_$up=\", $reason\"
12170 fi
12171 done
12172 else
12173 OCAML_ZMQ=ZMQ
12174 fi
12175 fi
12176
12177 if test -n "$REQUIRE_OCAML_WHY3" -o -n "$USE_OCAML_WHY3" -o "$no" = "yes"; then
12178 if test "$HAS_OCAML_WHY3" = "no"; then
12179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: package why3 not found" >&5
12180 printf "%s\n" "$as_me: WARNING: package why3 not found" >&2;}
12181 reason="why3 missing"
12182 for p in $REQUIRE_OCAML_WHY3; do
12183 up=`upper "$p"`
12184 ep=ENABLE_$up
12185 eval enable_p=\$$ep
12186 if test "$enable_p" != "no"; then
12187 fp=FORCE_`upper "$p"`
12188 if eval test "\$$fp" = "yes"; then
12189 as_fn_error $? "$p requested but $reason." "$LINENO" 5
12190 fi
12191 eval $ep="no\ \(see\ warning\ about\ why3\)"
12192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $p disabled because $reason." >&5
12193 printf "%s\n" "$as_me: WARNING: $p disabled because $reason." >&2;}
12194 eval INFO_$up=\", $reason\"
12195 fi
12196 done
12197 for p in $USE_OCAML_WHY3; do
12198 up=`upper "$p"`
12199 ep=ENABLE_$up
12200 eval eep="\$$ep"
12201 if test "`echo $eep | sed -e 's/ .*//' `" != "no"; then
12202 eval $ep="partial\ \(see\ warning\ about\ why3\)"
12203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $p partially enabled because $reason." >&5
12204 printf "%s\n" "$as_me: WARNING: $p partially enabled because $reason." >&2;}
12205 eval INFO_$up=\", $reason\"
12206 fi
12207 done
12208 else
12209 OCAML_WHY3=WHY3
12210 fi
12211 fi
12212
12213
12214 if test "$HAS_OCAML_WHY3" = "yes"; then
12215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking why3 version" >&5
12216 printf %s "checking why3 version... " >&6; }
12217 WHY3VERSION=`ocamlfind query -format %v why3 | tr -d '\\r\\n'`
12218 case $WHY3VERSION in
12219 "")
12220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
12221 printf "%s\n" "not found!" >&6; }
12222
12223
12224
12225 if test "FORCE_WP" = "yes"; then
12226 as_fn_error $? "wp requested but why3 not found" "$LINENO" 5;
12227 else
12228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: wp disabled because why3 not found" >&5
12229 printf "%s\n" "$as_me: WARNING: wp disabled because why3 not found" >&2;};
12230 ENABLE_WP=no;
12231 INFO_WP=", why3 not found"
12232 fi
12233 ;;
12234 0.* | 1.[01234].*)
12235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found $WHY3VERSION: requires 1.5.0+" >&5
12236 printf "%s\n" "found $WHY3VERSION: requires 1.5.0+" >&6; }
12237
12238
12239
12240 if test "FORCE_WP" = "yes"; then
12241 as_fn_error $? "wp requested but non-supported why3 $WHY3VERSION" "$LINENO" 5;
12242 else
12243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: wp disabled because non-supported why3 $WHY3VERSION" >&5
12244 printf "%s\n" "$as_me: WARNING: wp disabled because non-supported why3 $WHY3VERSION" >&2;};
12245 ENABLE_WP=no;
12246 INFO_WP=", non-supported why3 $WHY3VERSION"
12247 fi
12248 ;;
12249 1.5.*)
12250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found $WHY3VERSION: ok" >&5
12251 printf "%s\n" "found $WHY3VERSION: ok" >&6; }
12252 ;;
12253 *)
12254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found $WHY3VERSION: might work (should be 1.5.0+)" >&5
12255 printf "%s\n" "found $WHY3VERSION: might work (should be 1.5.0+)" >&6; }
12256 ;;
12257 esac
12258 fi
12259
12260
12261
12262
12263 ac_config_files="$ac_config_files src/plugins/wp/Makefile"
12264
12265
12266
12267 if test -n "$REQUIRE_GTKSOURCEVIEW" -o -n "$USE_GTKSOURCEVIEW" -o "$no" = "yes"; then
12268 if test "$HAS_GTKSOURCEVIEW" = "no"; then
12269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: lablgtksourceview not found" >&5
12270 printf "%s\n" "$as_me: WARNING: lablgtksourceview not found" >&2;}
12271 reason="$SOURCEVIEW_PATH/lablgtksourceview2.$LIB_SUFFIX,
12272 $SOURCEVIEW_PATH/lablgtk3_sourceview3.$LIB_SUFFIX missing"
12273
12274 for p in $REQUIRE_GTKSOURCEVIEW; do
12275 up=`upper "$p"`
12276 ep=ENABLE_$up
12277 eval enable_p=\$$ep
12278 if test "$enable_p" != "no"; then
12279 fp=FORCE_`upper "$p"`
12280 if eval test "\$$fp" = "yes"; then
12281 as_fn_error $? "$p requested but $reason." "$LINENO" 5
12282 fi
12283 eval $ep="no\ \(see\ warning\ about\ $SOURCEVIEW_PATH/lablgtksourceview2.$LIB_SUFFIX,
12284 $SOURCEVIEW_PATH/lablgtk3_sourceview3.$LIB_SUFFIX\)"
12285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $p disabled because $reason." >&5
12286 printf "%s\n" "$as_me: WARNING: $p disabled because $reason." >&2;}
12287 eval INFO_$up=\", $reason\"
12288 fi
12289 done
12290 for p in $USE_GTKSOURCEVIEW; do
12291 up=`upper "$p"`
12292 ep=ENABLE_$up
12293 eval eep="\$$ep"
12294 if test "`echo $eep | sed -e 's/ .*//' `" != "no"; then
12295 eval $ep="partial\ \(see\ warning\ about\ $SOURCEVIEW_PATH/lablgtksourceview2.$LIB_SUFFIX,
12296 $SOURCEVIEW_PATH/lablgtk3_sourceview3.$LIB_SUFFIX\)"
12297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $p partially enabled because $reason." >&5
12298 printf "%s\n" "$as_me: WARNING: $p partially enabled because $reason." >&2;}
12299 eval INFO_$up=\", $reason\"
12300 fi
12301 done
12302 fi
12303 fi
12304
12305 if test -n "$REQUIRE_GNOMECANVAS" -o -n "$USE_GNOMECANVAS" -o "$no" = "yes"; then
12306 if test "$HAS_GNOMECANVAS" = "no"; then
12307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: lablgnomecanvas.$LIB_SUFFIX not found" >&5
12308 printf "%s\n" "$as_me: WARNING: lablgnomecanvas.$LIB_SUFFIX not found" >&2;}
12309 reason="$LABLGTKPATH_FOR_CONFIGURE/lablgnomecanvas.$LIB_SUFFIX missing"
12310
12311 for p in $REQUIRE_GNOMECANVAS; do
12312 up=`upper "$p"`
12313 ep=ENABLE_$up
12314 eval enable_p=\$$ep
12315 if test "$enable_p" != "no"; then
12316 fp=FORCE_`upper "$p"`
12317 if eval test "\$$fp" = "yes"; then
12318 as_fn_error $? "$p requested but $reason." "$LINENO" 5
12319 fi
12320 eval $ep="no\ \(see\ warning\ about\ $LABLGTKPATH_FOR_CONFIGURE/lablgnomecanvas.$LIB_SUFFIX\)"
12321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $p disabled because $reason." >&5
12322 printf "%s\n" "$as_me: WARNING: $p disabled because $reason." >&2;}
12323 eval INFO_$up=\", $reason\"
12324 fi
12325 done
12326 for p in $USE_GNOMECANVAS; do
12327 up=`upper "$p"`
12328 ep=ENABLE_$up
12329 eval eep="\$$ep"
12330 if test "`echo $eep | sed -e 's/ .*//' `" != "no"; then
12331 eval $ep="partial\ \(see\ warning\ about\ $LABLGTKPATH_FOR_CONFIGURE/lablgnomecanvas.$LIB_SUFFIX\)"
12332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $p partially enabled because $reason." >&5
12333 printf "%s\n" "$as_me: WARNING: $p partially enabled because $reason." >&2;}
12334 eval INFO_$up=\", $reason\"
12335 fi
12336 done
12337 fi
12338 fi
12339
12340 if test -n "$REQUIRE_LABLGTK" -o -n "$USE_LABLGTK" -o "$no" = "yes"; then
12341 if test "$HAS_LABLGTK" = "no"; then
12342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $LABLGTKPATH_FOR_CONFIGURE/lablgtk.$LIB_SUFFIX not found." >&5
12343 printf "%s\n" "$as_me: WARNING: $LABLGTKPATH_FOR_CONFIGURE/lablgtk.$LIB_SUFFIX not found." >&2;}
12344 reason="$LABLGTKPATH_FOR_CONFIGURE/lablgtk.$LIB_SUFFIX,
12345 $LABLGTKPATH_FOR_CONFIGURE/lablgtk3.$LIB_SUFFIX missing"
12346
12347 for p in $REQUIRE_LABLGTK; do
12348 up=`upper "$p"`
12349 ep=ENABLE_$up
12350 eval enable_p=\$$ep
12351 if test "$enable_p" != "no"; then
12352 fp=FORCE_`upper "$p"`
12353 if eval test "\$$fp" = "yes"; then
12354 as_fn_error $? "$p requested but $reason." "$LINENO" 5
12355 fi
12356 eval $ep="no\ \(see\ warning\ about\ $LABLGTKPATH_FOR_CONFIGURE/lablgtk.$LIB_SUFFIX,
12357 $LABLGTKPATH_FOR_CONFIGURE/lablgtk3.$LIB_SUFFIX\)"
12358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $p disabled because $reason." >&5
12359 printf "%s\n" "$as_me: WARNING: $p disabled because $reason." >&2;}
12360 eval INFO_$up=\", $reason\"
12361 fi
12362 done
12363 for p in $USE_LABLGTK; do
12364 up=`upper "$p"`
12365 ep=ENABLE_$up
12366 eval eep="\$$ep"
12367 if test "`echo $eep | sed -e 's/ .*//' `" != "no"; then
12368 eval $ep="partial\ \(see\ warning\ about\ $LABLGTKPATH_FOR_CONFIGURE/lablgtk.$LIB_SUFFIX,
12369 $LABLGTKPATH_FOR_CONFIGURE/lablgtk3.$LIB_SUFFIX\)"
12370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $p partially enabled because $reason." >&5
12371 printf "%s\n" "$as_me: WARNING: $p partially enabled because $reason." >&2;}
12372 eval INFO_$up=\", $reason\"
12373 fi
12374 done
12375 fi
12376 fi
12377
12378 if test -n "$REQUIRE_OCAML_OCAMLGRAPH_GTK" -o -n "$USE_OCAML_OCAMLGRAPH_GTK" -o "$no" = "yes"; then
12379 if test "$HAS_OCAML_OCAMLGRAPH_GTK" = "no"; then
12380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: package ocamlgraph_gtk not found" >&5
12381 printf "%s\n" "$as_me: WARNING: package ocamlgraph_gtk not found" >&2;}
12382 reason="ocamlgraph_gtk missing"
12383 for p in $REQUIRE_OCAML_OCAMLGRAPH_GTK; do
12384 up=`upper "$p"`
12385 ep=ENABLE_$up
12386 eval enable_p=\$$ep
12387 if test "$enable_p" != "no"; then
12388 fp=FORCE_`upper "$p"`
12389 if eval test "\$$fp" = "yes"; then
12390 as_fn_error $? "$p requested but $reason." "$LINENO" 5
12391 fi
12392 eval $ep="no\ \(see\ warning\ about\ ocamlgraph_gtk\)"
12393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $p disabled because $reason." >&5
12394 printf "%s\n" "$as_me: WARNING: $p disabled because $reason." >&2;}
12395 eval INFO_$up=\", $reason\"
12396 fi
12397 done
12398 for p in $USE_OCAML_OCAMLGRAPH_GTK; do
12399 up=`upper "$p"`
12400 ep=ENABLE_$up
12401 eval eep="\$$ep"
12402 if test "`echo $eep | sed -e 's/ .*//' `" != "no"; then
12403 eval $ep="partial\ \(see\ warning\ about\ ocamlgraph_gtk\)"
12404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $p partially enabled because $reason." >&5
12405 printf "%s\n" "$as_me: WARNING: $p partially enabled because $reason." >&2;}
12406 eval INFO_$up=\", $reason\"
12407 fi
12408 done
12409 else
12410 OCAML_OCAMLGRAPH_GTK=OCAMLGRAPH_GTK
12411 fi
12412 fi
12413
12414 if test -n "$REQUIRE_DOT" -o -n "$USE_DOT" -o "$no" = "yes"; then
12415 if test "$HAS_DOT" = "no"; then
12416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: dot not found: you should install GraphViz" >&5
12417 printf "%s\n" "$as_me: WARNING: dot not found: you should install GraphViz" >&2;}
12418 reason="dot missing"
12419 for p in $REQUIRE_DOT; do
12420 up=`upper "$p"`
12421 ep=ENABLE_$up
12422 eval enable_p=\$$ep
12423 if test "$enable_p" != "no"; then
12424 fp=FORCE_`upper "$p"`
12425 if eval test "\$$fp" = "yes"; then
12426 as_fn_error $? "$p requested but $reason." "$LINENO" 5
12427 fi
12428 eval $ep="no\ \(see\ warning\ about\ dot\)"
12429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $p disabled because $reason." >&5
12430 printf "%s\n" "$as_me: WARNING: $p disabled because $reason." >&2;}
12431 eval INFO_$up=\", $reason\"
12432 fi
12433 done
12434 for p in $USE_DOT; do
12435 up=`upper "$p"`
12436 ep=ENABLE_$up
12437 eval eep="\$$ep"
12438 if test "`echo $eep | sed -e 's/ .*//' `" != "no"; then
12439 eval $ep="partial\ \(see\ warning\ about\ dot\)"
12440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $p partially enabled because $reason." >&5
12441 printf "%s\n" "$as_me: WARNING: $p partially enabled because $reason." >&2;}
12442 eval INFO_$up=\", $reason\"
12443 fi
12444 done
12445 else
12446 DOT=dot
12447 fi
12448 fi
12449
12450 if test -n "$REQUIRE_UNIX2DOS" -o -n "$USE_UNIX2DOS" -o "$no" = "yes"; then
12451 if test "$HAS_UNIX2DOS" = "no"; then
12452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unix2dos not found: you should install dos2unix" >&5
12453 printf "%s\n" "$as_me: WARNING: unix2dos not found: you should install dos2unix" >&2;}
12454 reason="unix2dos missing"
12455 for p in $REQUIRE_UNIX2DOS; do
12456 up=`upper "$p"`
12457 ep=ENABLE_$up
12458 eval enable_p=\$$ep
12459 if test "$enable_p" != "no"; then
12460 fp=FORCE_`upper "$p"`
12461 if eval test "\$$fp" = "yes"; then
12462 as_fn_error $? "$p requested but $reason." "$LINENO" 5
12463 fi
12464 eval $ep="no\ \(see\ warning\ about\ unix2dos\)"
12465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $p disabled because $reason." >&5
12466 printf "%s\n" "$as_me: WARNING: $p disabled because $reason." >&2;}
12467 eval INFO_$up=\", $reason\"
12468 fi
12469 done
12470 for p in $USE_UNIX2DOS; do
12471 up=`upper "$p"`
12472 ep=ENABLE_$up
12473 eval eep="\$$ep"
12474 if test "`echo $eep | sed -e 's/ .*//' `" != "no"; then
12475 eval $ep="partial\ \(see\ warning\ about\ unix2dos\)"
12476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $p partially enabled because $reason." >&5
12477 printf "%s\n" "$as_me: WARNING: $p partially enabled because $reason." >&2;}
12478 eval INFO_$up=\", $reason\"
12479 fi
12480 done
12481 else
12482 UNIX2DOS=unix2dos
12483 fi
12484 fi
12485
12486
12487 # First, initialize some variables
12488 for fp in ${PLUGINS_FORCE_LIST}; do
12489 if test "$fp" != "FORCE_GTKSOURCEVIEW"; then
12490 plugin=`echo $fp | sed -e "s/FORCE_\(.*\)/\1/" `
12491 TODOLIST=$TODOLIST" "$plugin
12492 eval MARK_$plugin=
12493 eval REMEMBER_$plugin=
12494 fi
12495 done
12496 # main call
12497 compute_dependency
12498
12499
12500
12501 if test "$HAS_OCAMLGRAPH_2" = "yes"; then
12502 HAS_DGRAPH=$HAS_OCAML_OCAMLGRAPH_GTK;
12503 else
12504 HAS_DGRAPH=$HAS_GNOMECANVAS
12505 fi
12506
12507 ############################
12508 # Substitutions to perform #
12509 ############################
12510
12511 EXTERNAL_PLUGINS="${EXTERNAL_PLUGINS} ${EXTRA_EXTERNAL_PLUGINS}"
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548 # m4_foreach_w is not supported in some old autoconf versions.
12549 # Sadly AC_FOREACH is deprecated now...
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585 ################################################
12586 # Finally create the Makefile from Makefile.in #
12587 ################################################
12588
12589 new_section "creating makefile"
12590
12591 ac_config_files="$ac_config_files share/Makefile.config"
12592
12593
12594 cat >confcache <<\_ACEOF
12595 # This file is a shell script that caches the results of configure
12596 # tests run on this system so they can be shared between configure
12597 # scripts and configure runs, see configure's option --config-cache.
12598 # It is not useful on other systems. If it contains results you don't
12599 # want to keep, you may remove or edit it.
12600 #
12601 # config.status only pays attention to the cache file if you give it
12602 # the --recheck option to rerun configure.
12603 #
12604 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12605 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12606 # following values.
12607
12608 _ACEOF
12609
12610 # The following way of writing the cache mishandles newlines in values,
12611 # but we know of no workaround that is simple, portable, and efficient.
12612 # So, we kill variables containing newlines.
12613 # Ultrix sh set writes to stderr and can't be redirected directly,
12614 # and sets the high bit in the cache file unless we assign to the vars.
12615 (
12616 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12617 eval ac_val=\$$ac_var
12618 case $ac_val in #(
12619 *${as_nl}*)
12620 case $ac_var in #(
12621 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12622 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12623 esac
12624 case $ac_var in #(
12625 _ | IFS | as_nl) ;; #(
12626 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12627 *) { eval $ac_var=; unset $ac_var;} ;;
12628 esac ;;
12629 esac
12630 done
12631
12632 (set) 2>&1 |
12633 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12634 *${as_nl}ac_space=\ *)
12635 # `set' does not quote correctly, so add quotes: double-quote
12636 # substitution turns \\\\ into \\, and sed turns \\ into \.
12637 sed -n \
12638 "s/'/'\\\\''/g;
12639 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12640 ;; #(
12641 *)
12642 # `set' quotes correctly as required by POSIX, so do not add quotes.
12643 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12644 ;;
12645 esac |
12646 sort
12647 ) |
12648 sed '
12649 /^ac_cv_env_/b end
12650 t clear
12651 :clear
12652 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12653 t end
12654 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12655 :end' >>confcache
12656 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12657 if test -w "$cache_file"; then
12658 if test "x$cache_file" != "x/dev/null"; then
12659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12660 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
12661 if test ! -f "$cache_file" || test -h "$cache_file"; then
12662 cat confcache >"$cache_file"
12663 else
12664 case $cache_file in #(
12665 */* | ?:*)
12666 mv -f confcache "$cache_file"$$ &&
12667 mv -f "$cache_file"$$ "$cache_file" ;; #(
12668 *)
12669 mv -f confcache "$cache_file" ;;
12670 esac
12671 fi
12672 fi
12673 else
12674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12675 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
12676 fi
12677 fi
12678 rm -f confcache
12679
12680 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12681 # Let make expand exec_prefix.
12682 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12683
12684 DEFS=-DHAVE_CONFIG_H
12685
12686 ac_libobjs=
12687 ac_ltlibobjs=
12688 U=
12689 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12690 # 1. Remove the extension, and $U if already installed.
12691 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12692 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
12693 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12694 # will be set to the directory where LIBOBJS objects are built.
12695 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12696 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12697 done
12698 LIBOBJS=$ac_libobjs
12699
12700 LTLIBOBJS=$ac_ltlibobjs
12701
12702
12703
12704 : "${CONFIG_STATUS=./config.status}"
12705 ac_write_fail=0
12706 ac_clean_files_save=$ac_clean_files
12707 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12709 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
12710 as_write_fail=0
12711 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12712 #! $SHELL
12713 # Generated by $as_me.
12714 # Run this file to recreate the current configuration.
12715 # Compiler output produced by configure, useful for debugging
12716 # configure, is in config.log if it exists.
12717
12718 debug=false
12719 ac_cs_recheck=false
12720 ac_cs_silent=false
12721
12722 SHELL=\${CONFIG_SHELL-$SHELL}
12723 export SHELL
12724 _ASEOF
12725 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12726 ## -------------------- ##
12727 ## M4sh Initialization. ##
12728 ## -------------------- ##
12729
12730 # Be more Bourne compatible
12731 DUALCASE=1; export DUALCASE # for MKS sh
12732 as_nop=:
12733 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12734 then :
12735 emulate sh
12736 NULLCMD=:
12737 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12738 # is contrary to our usage. Disable this feature.
12739 alias -g '${1+"$@"}'='"$@"'
12740 setopt NO_GLOB_SUBST
12741 else $as_nop
12742 case `(set -o) 2>/dev/null` in #(
12743 *posix*) :
12744 set -o posix ;; #(
12745 *) :
12746 ;;
12747 esac
12748 fi
12749
12750
12751
12752 # Reset variables that may have inherited troublesome values from
12753 # the environment.
12754
12755 # IFS needs to be set, to space, tab, and newline, in precisely that order.
12756 # (If _AS_PATH_WALK were called with IFS unset, it would have the
12757 # side effect of setting IFS to empty, thus disabling word splitting.)
12758 # Quoting is to prevent editors from complaining about space-tab.
12759 as_nl='
12760 '
12761 export as_nl
12762 IFS=" "" $as_nl"
12763
12764 PS1='$ '
12765 PS2='> '
12766 PS4='+ '
12767
12768 # Ensure predictable behavior from utilities with locale-dependent output.
12769 LC_ALL=C
12770 export LC_ALL
12771 LANGUAGE=C
12772 export LANGUAGE
12773
12774 # We cannot yet rely on "unset" to work, but we need these variables
12775 # to be unset--not just set to an empty or harmless value--now, to
12776 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
12777 # also avoids known problems related to "unset" and subshell syntax
12778 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12779 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12780 do eval test \${$as_var+y} \
12781 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12782 done
12783
12784 # Ensure that fds 0, 1, and 2 are open.
12785 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12786 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12787 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
12788
12789 # The user is always right.
12790 if ${PATH_SEPARATOR+false} :; then
12791 PATH_SEPARATOR=:
12792 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12793 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12794 PATH_SEPARATOR=';'
12795 }
12796 fi
12797
12798
12799 # Find who we are. Look in the path if we contain no directory separator.
12800 as_myself=
12801 case $0 in #((
12802 *[\\/]* ) as_myself=$0 ;;
12803 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12804 for as_dir in $PATH
12805 do
12806 IFS=$as_save_IFS
12807 case $as_dir in #(((
12808 '') as_dir=./ ;;
12809 */) ;;
12810 *) as_dir=$as_dir/ ;;
12811 esac
12812 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12813 done
12814 IFS=$as_save_IFS
12815
12816 ;;
12817 esac
12818 # We did not find ourselves, most probably we were run as `sh COMMAND'
12819 # in which case we are not to be found in the path.
12820 if test "x$as_myself" = x; then
12821 as_myself=$0
12822 fi
12823 if test ! -f "$as_myself"; then
12824 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12825 exit 1
12826 fi
12827
12828
12829
12830 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12831 # ----------------------------------------
12832 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12833 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12834 # script with STATUS, using 1 if that was 0.
12835 as_fn_error ()
12836 {
12837 as_status=$1; test $as_status -eq 0 && as_status=1
12838 if test "$4"; then
12839 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12841 fi
12842 printf "%s\n" "$as_me: error: $2" >&2
12843 as_fn_exit $as_status
12844 } # as_fn_error
12845
12846
12847
12848 # as_fn_set_status STATUS
12849 # -----------------------
12850 # Set $? to STATUS, without forking.
12851 as_fn_set_status ()
12852 {
12853 return $1
12854 } # as_fn_set_status
12855
12856 # as_fn_exit STATUS
12857 # -----------------
12858 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12859 as_fn_exit ()
12860 {
12861 set +e
12862 as_fn_set_status $1
12863 exit $1
12864 } # as_fn_exit
12865
12866 # as_fn_unset VAR
12867 # ---------------
12868 # Portably unset VAR.
12869 as_fn_unset ()
12870 {
12871 { eval $1=; unset $1;}
12872 }
12873 as_unset=as_fn_unset
12874
12875 # as_fn_append VAR VALUE
12876 # ----------------------
12877 # Append the text in VALUE to the end of the definition contained in VAR. Take
12878 # advantage of any shell optimizations that allow amortized linear growth over
12879 # repeated appends, instead of the typical quadratic growth present in naive
12880 # implementations.
12881 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12882 then :
12883 eval 'as_fn_append ()
12884 {
12885 eval $1+=\$2
12886 }'
12887 else $as_nop
12888 as_fn_append ()
12889 {
12890 eval $1=\$$1\$2
12891 }
12892 fi # as_fn_append
12893
12894 # as_fn_arith ARG...
12895 # ------------------
12896 # Perform arithmetic evaluation on the ARGs, and store the result in the
12897 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12898 # must be portable across $(()) and expr.
12899 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12900 then :
12901 eval 'as_fn_arith ()
12902 {
12903 as_val=$(( $* ))
12904 }'
12905 else $as_nop
12906 as_fn_arith ()
12907 {
12908 as_val=`expr "$@" || test $? -eq 1`
12909 }
12910 fi # as_fn_arith
12911
12912
12913 if expr a : '\(a\)' >/dev/null 2>&1 &&
12914 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12915 as_expr=expr
12916 else
12917 as_expr=false
12918 fi
12919
12920 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12921 as_basename=basename
12922 else
12923 as_basename=false
12924 fi
12925
12926 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12927 as_dirname=dirname
12928 else
12929 as_dirname=false
12930 fi
12931
12932 as_me=`$as_basename -- "$0" ||
12933 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12934 X"$0" : 'X\(//\)$' \| \
12935 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12936 printf "%s\n" X/"$0" |
12937 sed '/^.*\/\([^/][^/]*\)\/*$/{
12938 s//\1/
12939 q
12940 }
12941 /^X\/\(\/\/\)$/{
12942 s//\1/
12943 q
12944 }
12945 /^X\/\(\/\).*/{
12946 s//\1/
12947 q
12948 }
12949 s/.*/./; q'`
12950
12951 # Avoid depending upon Character Ranges.
12952 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12953 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12954 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12955 as_cr_digits='0123456789'
12956 as_cr_alnum=$as_cr_Letters$as_cr_digits
12957
12958
12959 # Determine whether it's possible to make 'echo' print without a newline.
12960 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12961 # for compatibility with existing Makefiles.
12962 ECHO_C= ECHO_N= ECHO_T=
12963 case `echo -n x` in #(((((
12964 -n*)
12965 case `echo 'xy\c'` in
12966 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12967 xy) ECHO_C='\c';;
12968 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12969 ECHO_T=' ';;
12970 esac;;
12971 *)
12972 ECHO_N='-n';;
12973 esac
12974
12975 # For backward compatibility with old third-party macros, we provide
12976 # the shell variables $as_echo and $as_echo_n. New code should use
12977 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12978 as_echo='printf %s\n'
12979 as_echo_n='printf %s'
12980
12981 rm -f conf$$ conf$$.exe conf$$.file
12982 if test -d conf$$.dir; then
12983 rm -f conf$$.dir/conf$$.file
12984 else
12985 rm -f conf$$.dir
12986 mkdir conf$$.dir 2>/dev/null
12987 fi
12988 if (echo >conf$$.file) 2>/dev/null; then
12989 if ln -s conf$$.file conf$$ 2>/dev/null; then
12990 as_ln_s='ln -s'
12991 # ... but there are two gotchas:
12992 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12993 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12994 # In both cases, we have to default to `cp -pR'.
12995 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12996 as_ln_s='cp -pR'
12997 elif ln conf$$.file conf$$ 2>/dev/null; then
12998 as_ln_s=ln
12999 else
13000 as_ln_s='cp -pR'
13001 fi
13002 else
13003 as_ln_s='cp -pR'
13004 fi
13005 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13006 rmdir conf$$.dir 2>/dev/null
13007
13008
13009 # as_fn_mkdir_p
13010 # -------------
13011 # Create "$as_dir" as a directory, including parents if necessary.
13012 as_fn_mkdir_p ()
13013 {
13014
13015 case $as_dir in #(
13016 -*) as_dir=./$as_dir;;
13017 esac
13018 test -d "$as_dir" || eval $as_mkdir_p || {
13019 as_dirs=
13020 while :; do
13021 case $as_dir in #(
13022 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13023 *) as_qdir=$as_dir;;
13024 esac
13025 as_dirs="'$as_qdir' $as_dirs"
13026 as_dir=`$as_dirname -- "$as_dir" ||
13027 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13028 X"$as_dir" : 'X\(//\)[^/]' \| \
13029 X"$as_dir" : 'X\(//\)$' \| \
13030 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13031 printf "%s\n" X"$as_dir" |
13032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13033 s//\1/
13034 q
13035 }
13036 /^X\(\/\/\)[^/].*/{
13037 s//\1/
13038 q
13039 }
13040 /^X\(\/\/\)$/{
13041 s//\1/
13042 q
13043 }
13044 /^X\(\/\).*/{
13045 s//\1/
13046 q
13047 }
13048 s/.*/./; q'`
13049 test -d "$as_dir" && break
13050 done
13051 test -z "$as_dirs" || eval "mkdir $as_dirs"
13052 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13053
13054
13055 } # as_fn_mkdir_p
13056 if mkdir -p . 2>/dev/null; then
13057 as_mkdir_p='mkdir -p "$as_dir"'
13058 else
13059 test -d ./-p && rmdir ./-p
13060 as_mkdir_p=false
13061 fi
13062
13063
13064 # as_fn_executable_p FILE
13065 # -----------------------
13066 # Test if FILE is an executable regular file.
13067 as_fn_executable_p ()
13068 {
13069 test -f "$1" && test -x "$1"
13070 } # as_fn_executable_p
13071 as_test_x='test -x'
13072 as_executable_p=as_fn_executable_p
13073
13074 # Sed expression to map a string onto a valid CPP name.
13075 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13076
13077 # Sed expression to map a string onto a valid variable name.
13078 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13079
13080
13081 exec 6>&1
13082 ## ----------------------------------- ##
13083 ## Main body of $CONFIG_STATUS script. ##
13084 ## ----------------------------------- ##
13085 _ASEOF
13086 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13087
13088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13089 # Save the log message, to keep $0 and so on meaningful, and to
13090 # report actual input values of CONFIG_FILES etc. instead of their
13091 # values after options handling.
13092 ac_log="
13093 This file was extended by $as_me, which was
13094 generated by GNU Autoconf 2.71. Invocation command line was
13095
13096 CONFIG_FILES = $CONFIG_FILES
13097 CONFIG_HEADERS = $CONFIG_HEADERS
13098 CONFIG_LINKS = $CONFIG_LINKS
13099 CONFIG_COMMANDS = $CONFIG_COMMANDS
13100 $ $0 $@
13101
13102 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13103 "
13104
13105 _ACEOF
13106
13107 case $ac_config_files in *"
13108 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13109 esac
13110
13111 case $ac_config_headers in *"
13112 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13113 esac
13114
13115
13116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13117 # Files that config.status was made for.
13118 config_files="$ac_config_files"
13119 config_headers="$ac_config_headers"
13120 config_commands="$ac_config_commands"
13121
13122 _ACEOF
13123
13124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13125 ac_cs_usage="\
13126 \`$as_me' instantiates files and other configuration actions
13127 from templates according to the current configuration. Unless the files
13128 and actions are specified as TAGs, all are instantiated by default.
13129
13130 Usage: $0 [OPTION]... [TAG]...
13131
13132 -h, --help print this help, then exit
13133 -V, --version print version number and configuration settings, then exit
13134 --config print configuration, then exit
13135 -q, --quiet, --silent
13136 do not print progress messages
13137 -d, --debug don't remove temporary files
13138 --recheck update $as_me by reconfiguring in the same conditions
13139 --file=FILE[:TEMPLATE]
13140 instantiate the configuration file FILE
13141 --header=FILE[:TEMPLATE]
13142 instantiate the configuration header FILE
13143
13144 Configuration files:
13145 $config_files
13146
13147 Configuration headers:
13148 $config_headers
13149
13150 Configuration commands:
13151 $config_commands
13152
13153 Report bugs to the package provider."
13154
13155 _ACEOF
13156 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
13157 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
13158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13159 ac_cs_config='$ac_cs_config_escaped'
13160 ac_cs_version="\\
13161 config.status
13162 configured by $0, generated by GNU Autoconf 2.71,
13163 with options \\"\$ac_cs_config\\"
13164
13165 Copyright (C) 2021 Free Software Foundation, Inc.
13166 This config.status script is free software; the Free Software Foundation
13167 gives unlimited permission to copy, distribute and modify it."
13168
13169 ac_pwd='$ac_pwd'
13170 srcdir='$srcdir'
13171 test -n "\$AWK" || AWK=awk
13172 _ACEOF
13173
13174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13175 # The default lists apply if the user does not specify any file.
13176 ac_need_defaults=:
13177 while test $# != 0
13178 do
13179 case $1 in
13180 --*=?*)
13181 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13182 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13183 ac_shift=:
13184 ;;
13185 --*=)
13186 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13187 ac_optarg=
13188 ac_shift=:
13189 ;;
13190 *)
13191 ac_option=$1
13192 ac_optarg=$2
13193 ac_shift=shift
13194 ;;
13195 esac
13196
13197 case $ac_option in
13198 # Handling of the options.
13199 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13200 ac_cs_recheck=: ;;
13201 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13202 printf "%s\n" "$ac_cs_version"; exit ;;
13203 --config | --confi | --conf | --con | --co | --c )
13204 printf "%s\n" "$ac_cs_config"; exit ;;
13205 --debug | --debu | --deb | --de | --d | -d )
13206 debug=: ;;
13207 --file | --fil | --fi | --f )
13208 $ac_shift
13209 case $ac_optarg in
13210 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13211 '') as_fn_error $? "missing file argument" ;;
13212 esac
13213 as_fn_append CONFIG_FILES " '$ac_optarg'"
13214 ac_need_defaults=false;;
13215 --header | --heade | --head | --hea )
13216 $ac_shift
13217 case $ac_optarg in
13218 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13219 esac
13220 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13221 ac_need_defaults=false;;
13222 --he | --h)
13223 # Conflict between --help and --header
13224 as_fn_error $? "ambiguous option: \`$1'
13225 Try \`$0 --help' for more information.";;
13226 --help | --hel | -h )
13227 printf "%s\n" "$ac_cs_usage"; exit ;;
13228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13229 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13230 ac_cs_silent=: ;;
13231
13232 # This is an error.
13233 -*) as_fn_error $? "unrecognized option: \`$1'
13234 Try \`$0 --help' for more information." ;;
13235
13236 *) as_fn_append ac_config_targets " $1"
13237 ac_need_defaults=false ;;
13238
13239 esac
13240 shift
13241 done
13242
13243 ac_configure_extra_args=
13244
13245 if $ac_cs_silent; then
13246 exec 6>/dev/null
13247 ac_configure_extra_args="$ac_configure_extra_args --silent"
13248 fi
13249
13250 _ACEOF
13251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13252 if \$ac_cs_recheck; then
13253 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13254 shift
13255 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
13256 CONFIG_SHELL='$SHELL'
13257 export CONFIG_SHELL
13258 exec "\$@"
13259 fi
13260
13261 _ACEOF
13262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13263 exec 5>>config.log
13264 {
13265 echo
13266 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13267 ## Running $as_me. ##
13268 _ASBOX
13269 printf "%s\n" "$ac_log"
13270 } >&5
13271
13272 _ACEOF
13273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13274 _ACEOF
13275
13276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13277
13278 # Handling of arguments.
13279 for ac_config_target in $ac_config_targets
13280 do
13281 case $ac_config_target in
13282 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13283 "src/plugins/aorai/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/aorai/Makefile" ;;
13284 "src/plugins/dive/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dive/Makefile" ;;
13285 "src/plugins/e-acsl/doc/doxygen/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES src/plugins/e-acsl/doc/doxygen/doxygen.cfg" ;;
13286 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13287 "src/plugins/e-acsl/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/e-acsl/Makefile" ;;
13288 "src/plugins/instantiate/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/instantiate/Makefile" ;;
13289 "src/plugins/loop_analysis/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/loop_analysis/Makefile" ;;
13290 "src/plugins/markdown-report/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/markdown-report/Makefile" ;;
13291 "src/plugins/nonterm/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/nonterm/Makefile" ;;
13292 "src/plugins/obfuscator/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/obfuscator/Makefile" ;;
13293 "src/plugins/report/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/report/Makefile" ;;
13294 "src/plugins/security_slicing/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/security_slicing/Makefile" ;;
13295 "src/plugins/server/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/server/Makefile" ;;
13296 "src/plugins/studia/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/studia/Makefile" ;;
13297 "src/plugins/variadic/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/variadic/Makefile" ;;
13298 "src/plugins/wp/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/wp/Makefile" ;;
13299 "share/Makefile.config") CONFIG_FILES="$CONFIG_FILES share/Makefile.config" ;;
13300
13301 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13302 esac
13303 done
13304
13305
13306 # If the user did not use the arguments to specify the items to instantiate,
13307 # then the envvar interface is used. Set only those that are not.
13308 # We use the long form for the default assignment because of an extremely
13309 # bizarre bug on SunOS 4.1.3.
13310 if $ac_need_defaults; then
13311 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
13312 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
13313 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
13314 fi
13315
13316 # Have a temporary directory for convenience. Make it in the build tree
13317 # simply because there is no reason against having it here, and in addition,
13318 # creating and moving files from /tmp can sometimes cause problems.
13319 # Hook for its removal unless debugging.
13320 # Note that there is a small window in which the directory will not be cleaned:
13321 # after its creation but before its name has been assigned to `$tmp'.
13322 $debug ||
13323 {
13324 tmp= ac_tmp=
13325 trap 'exit_status=$?
13326 : "${ac_tmp:=$tmp}"
13327 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13328 ' 0
13329 trap 'as_fn_exit 1' 1 2 13 15
13330 }
13331 # Create a (secure) tmp directory for tmp files.
13332
13333 {
13334 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13335 test -d "$tmp"
13336 } ||
13337 {
13338 tmp=./conf$$-$RANDOM
13339 (umask 077 && mkdir "$tmp")
13340 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13341 ac_tmp=$tmp
13342
13343 # Set up the scripts for CONFIG_FILES section.
13344 # No need to generate them if there are no CONFIG_FILES.
13345 # This happens for instance with `./config.status config.h'.
13346 if test -n "$CONFIG_FILES"; then
13347
13348
13349 ac_cr=`echo X | tr X '\015'`
13350 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13351 # But we know of no other shell where ac_cr would be empty at this
13352 # point, so we can use a bashism as a fallback.
13353 if test "x$ac_cr" = x; then
13354 eval ac_cr=\$\'\\r\'
13355 fi
13356 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13357 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13358 ac_cs_awk_cr='\\r'
13359 else
13360 ac_cs_awk_cr=$ac_cr
13361 fi
13362
13363 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13364 _ACEOF
13365
13366
13367 {
13368 echo "cat >conf$$subs.awk <<_ACEOF" &&
13369 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13370 echo "_ACEOF"
13371 } >conf$$subs.sh ||
13372 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13373 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13374 ac_delim='%!_!# '
13375 for ac_last_try in false false false false false :; do
13376 . ./conf$$subs.sh ||
13377 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13378
13379 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13380 if test $ac_delim_n = $ac_delim_num; then
13381 break
13382 elif $ac_last_try; then
13383 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13384 else
13385 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13386 fi
13387 done
13388 rm -f conf$$subs.sh
13389
13390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13391 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13392 _ACEOF
13393 sed -n '
13394 h
13395 s/^/S["/; s/!.*/"]=/
13396 p
13397 g
13398 s/^[^!]*!//
13399 :repl
13400 t repl
13401 s/'"$ac_delim"'$//
13402 t delim
13403 :nl
13404 h
13405 s/\(.\{148\}\)..*/\1/
13406 t more1
13407 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13408 p
13409 n
13410 b repl
13411 :more1
13412 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13413 p
13414 g
13415 s/.\{148\}//
13416 t nl
13417 :delim
13418 h
13419 s/\(.\{148\}\)..*/\1/
13420 t more2
13421 s/["\\]/\\&/g; s/^/"/; s/$/"/
13422 p
13423 b
13424 :more2
13425 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13426 p
13427 g
13428 s/.\{148\}//
13429 t delim
13430 ' <conf$$subs.awk | sed '
13431 /^[^""]/{
13432 N
13433 s/\n//
13434 }
13435 ' >>$CONFIG_STATUS || ac_write_fail=1
13436 rm -f conf$$subs.awk
13437 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13438 _ACAWK
13439 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13440 for (key in S) S_is_set[key] = 1
13441 FS = ""
13442
13443 }
13444 {
13445 line = $ 0
13446 nfields = split(line, field, "@")
13447 substed = 0
13448 len = length(field[1])
13449 for (i = 2; i < nfields; i++) {
13450 key = field[i]
13451 keylen = length(key)
13452 if (S_is_set[key]) {
13453 value = S[key]
13454 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13455 len += length(value) + length(field[++i])
13456 substed = 1
13457 } else
13458 len += 1 + keylen
13459 }
13460
13461 print line
13462 }
13463
13464 _ACAWK
13465 _ACEOF
13466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13467 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13468 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13469 else
13470 cat
13471 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13472 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13473 _ACEOF
13474
13475 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13476 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13477 # trailing colons and then remove the whole line if VPATH becomes empty
13478 # (actually we leave an empty line to preserve line numbers).
13479 if test "x$srcdir" = x.; then
13480 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13481 h
13482 s///
13483 s/^/:/
13484 s/[ ]*$/:/
13485 s/:\$(srcdir):/:/g
13486 s/:\${srcdir}:/:/g
13487 s/:@srcdir@:/:/g
13488 s/^:*//
13489 s/:*$//
13490 x
13491 s/\(=[ ]*\).*/\1/
13492 G
13493 s/\n//
13494 s/^[^=]*=[ ]*$//
13495 }'
13496 fi
13497
13498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13499 fi # test -n "$CONFIG_FILES"
13500
13501 # Set up the scripts for CONFIG_HEADERS section.
13502 # No need to generate them if there are no CONFIG_HEADERS.
13503 # This happens for instance with `./config.status Makefile'.
13504 if test -n "$CONFIG_HEADERS"; then
13505 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13506 BEGIN {
13507 _ACEOF
13508
13509 # Transform confdefs.h into an awk script `defines.awk', embedded as
13510 # here-document in config.status, that substitutes the proper values into
13511 # config.h.in to produce config.h.
13512
13513 # Create a delimiter string that does not exist in confdefs.h, to ease
13514 # handling of long lines.
13515 ac_delim='%!_!# '
13516 for ac_last_try in false false :; do
13517 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13518 if test -z "$ac_tt"; then
13519 break
13520 elif $ac_last_try; then
13521 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13522 else
13523 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13524 fi
13525 done
13526
13527 # For the awk script, D is an array of macro values keyed by name,
13528 # likewise P contains macro parameters if any. Preserve backslash
13529 # newline sequences.
13530
13531 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13532 sed -n '
13533 s/.\{148\}/&'"$ac_delim"'/g
13534 t rset
13535 :rset
13536 s/^[ ]*#[ ]*define[ ][ ]*/ /
13537 t def
13538 d
13539 :def
13540 s/\\$//
13541 t bsnl
13542 s/["\\]/\\&/g
13543 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13544 D["\1"]=" \3"/p
13545 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13546 d
13547 :bsnl
13548 s/["\\]/\\&/g
13549 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13550 D["\1"]=" \3\\\\\\n"\\/p
13551 t cont
13552 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13553 t cont
13554 d
13555 :cont
13556 n
13557 s/.\{148\}/&'"$ac_delim"'/g
13558 t clear
13559 :clear
13560 s/\\$//
13561 t bsnlc
13562 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13563 d
13564 :bsnlc
13565 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13566 b cont
13567 ' <confdefs.h | sed '
13568 s/'"$ac_delim"'/"\\\
13569 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13570
13571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13572 for (key in D) D_is_set[key] = 1
13573 FS = ""
13574 }
13575 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13576 line = \$ 0
13577 split(line, arg, " ")
13578 if (arg[1] == "#") {
13579 defundef = arg[2]
13580 mac1 = arg[3]
13581 } else {
13582 defundef = substr(arg[1], 2)
13583 mac1 = arg[2]
13584 }
13585 split(mac1, mac2, "(") #)
13586 macro = mac2[1]
13587 prefix = substr(line, 1, index(line, defundef) - 1)
13588 if (D_is_set[macro]) {
13589 # Preserve the white space surrounding the "#".
13590 print prefix "define", macro P[macro] D[macro]
13591 next
13592 } else {
13593 # Replace #undef with comments. This is necessary, for example,
13594 # in the case of _POSIX_SOURCE, which is predefined and required
13595 # on some systems where configure will not decide to define it.
13596 if (defundef == "undef") {
13597 print "/*", prefix defundef, macro, "*/"
13598 next
13599 }
13600 }
13601 }
13602 { print }
13603 _ACAWK
13604 _ACEOF
13605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13606 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13607 fi # test -n "$CONFIG_HEADERS"
13608
13609
13610 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13611 shift
13612 for ac_tag
13613 do
13614 case $ac_tag in
13615 :[FHLC]) ac_mode=$ac_tag; continue;;
13616 esac
13617 case $ac_mode$ac_tag in
13618 :[FHL]*:*);;
13619 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13620 :[FH]-) ac_tag=-:-;;
13621 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13622 esac
13623 ac_save_IFS=$IFS
13624 IFS=:
13625 set x $ac_tag
13626 IFS=$ac_save_IFS
13627 shift
13628 ac_file=$1
13629 shift
13630
13631 case $ac_mode in
13632 :L) ac_source=$1;;
13633 :[FH])
13634 ac_file_inputs=
13635 for ac_f
13636 do
13637 case $ac_f in
13638 -) ac_f="$ac_tmp/stdin";;
13639 *) # Look for the file first in the build tree, then in the source tree
13640 # (if the path is not absolute). The absolute path cannot be DOS-style,
13641 # because $ac_f cannot contain `:'.
13642 test -f "$ac_f" ||
13643 case $ac_f in
13644 [\\/$]*) false;;
13645 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13646 esac ||
13647 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13648 esac
13649 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13650 as_fn_append ac_file_inputs " '$ac_f'"
13651 done
13652
13653 # Let's still pretend it is `configure' which instantiates (i.e., don't
13654 # use $as_me), people would be surprised to read:
13655 # /* config.h. Generated by config.status. */
13656 configure_input='Generated from '`
13657 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13658 `' by configure.'
13659 if test x"$ac_file" != x-; then
13660 configure_input="$ac_file. $configure_input"
13661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13662 printf "%s\n" "$as_me: creating $ac_file" >&6;}
13663 fi
13664 # Neutralize special characters interpreted by sed in replacement strings.
13665 case $configure_input in #(
13666 *\&* | *\|* | *\\* )
13667 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
13668 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13669 *) ac_sed_conf_input=$configure_input;;
13670 esac
13671
13672 case $ac_tag in
13673 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13674 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13675 esac
13676 ;;
13677 esac
13678
13679 ac_dir=`$as_dirname -- "$ac_file" ||
13680 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13681 X"$ac_file" : 'X\(//\)[^/]' \| \
13682 X"$ac_file" : 'X\(//\)$' \| \
13683 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13684 printf "%s\n" X"$ac_file" |
13685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13686 s//\1/
13687 q
13688 }
13689 /^X\(\/\/\)[^/].*/{
13690 s//\1/
13691 q
13692 }
13693 /^X\(\/\/\)$/{
13694 s//\1/
13695 q
13696 }
13697 /^X\(\/\).*/{
13698 s//\1/
13699 q
13700 }
13701 s/.*/./; q'`
13702 as_dir="$ac_dir"; as_fn_mkdir_p
13703 ac_builddir=.
13704
13705 case "$ac_dir" in
13706 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13707 *)
13708 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13709 # A ".." for each directory in $ac_dir_suffix.
13710 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13711 case $ac_top_builddir_sub in
13712 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13713 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13714 esac ;;
13715 esac
13716 ac_abs_top_builddir=$ac_pwd
13717 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13718 # for backward compatibility:
13719 ac_top_builddir=$ac_top_build_prefix
13720
13721 case $srcdir in
13722 .) # We are building in place.
13723 ac_srcdir=.
13724 ac_top_srcdir=$ac_top_builddir_sub
13725 ac_abs_top_srcdir=$ac_pwd ;;
13726 [\\/]* | ?:[\\/]* ) # Absolute name.
13727 ac_srcdir=$srcdir$ac_dir_suffix;
13728 ac_top_srcdir=$srcdir
13729 ac_abs_top_srcdir=$srcdir ;;
13730 *) # Relative name.
13731 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13732 ac_top_srcdir=$ac_top_build_prefix$srcdir
13733 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13734 esac
13735 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13736
13737
13738 case $ac_mode in
13739 :F)
13740 #
13741 # CONFIG_FILE
13742 #
13743
13744 _ACEOF
13745
13746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13747 # If the template does not know about datarootdir, expand it.
13748 # FIXME: This hack should be removed a few years after 2.60.
13749 ac_datarootdir_hack=; ac_datarootdir_seen=
13750 ac_sed_dataroot='
13751 /datarootdir/ {
13752 p
13753 q
13754 }
13755 /@datadir@/p
13756 /@docdir@/p
13757 /@infodir@/p
13758 /@localedir@/p
13759 /@mandir@/p'
13760 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13761 *datarootdir*) ac_datarootdir_seen=yes;;
13762 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13764 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13765 _ACEOF
13766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13767 ac_datarootdir_hack='
13768 s&@datadir@&$datadir&g
13769 s&@docdir@&$docdir&g
13770 s&@infodir@&$infodir&g
13771 s&@localedir@&$localedir&g
13772 s&@mandir@&$mandir&g
13773 s&\\\${datarootdir}&$datarootdir&g' ;;
13774 esac
13775 _ACEOF
13776
13777 # Neutralize VPATH when `$srcdir' = `.'.
13778 # Shell code in configure.ac might set extrasub.
13779 # FIXME: do we really want to maintain this feature?
13780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13781 ac_sed_extra="$ac_vpsub
13782 $extrasub
13783 _ACEOF
13784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13785 :t
13786 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13787 s|@configure_input@|$ac_sed_conf_input|;t t
13788 s&@top_builddir@&$ac_top_builddir_sub&;t t
13789 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13790 s&@srcdir@&$ac_srcdir&;t t
13791 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13792 s&@top_srcdir@&$ac_top_srcdir&;t t
13793 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13794 s&@builddir@&$ac_builddir&;t t
13795 s&@abs_builddir@&$ac_abs_builddir&;t t
13796 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13797 $ac_datarootdir_hack
13798 "
13799 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13800 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13801
13802 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13803 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13804 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13805 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13807 which seems to be undefined. Please make sure it is defined" >&5
13808 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13809 which seems to be undefined. Please make sure it is defined" >&2;}
13810
13811 rm -f "$ac_tmp/stdin"
13812 case $ac_file in
13813 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13814 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13815 esac \
13816 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13817 ;;
13818 :H)
13819 #
13820 # CONFIG_HEADER
13821 #
13822 if test x"$ac_file" != x-; then
13823 {
13824 printf "%s\n" "/* $configure_input */" >&1 \
13825 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13826 } >"$ac_tmp/config.h" \
13827 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13828 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13830 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13831 else
13832 rm -f "$ac_file"
13833 mv "$ac_tmp/config.h" "$ac_file" \
13834 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13835 fi
13836 else
13837 printf "%s\n" "/* $configure_input */" >&1 \
13838 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13839 || as_fn_error $? "could not create -" "$LINENO" 5
13840 fi
13841 ;;
13842
13843 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13844 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13845 ;;
13846 esac
13847
13848
13849 case $ac_file$ac_mode in
13850 "src/plugins/aorai/Makefile":F) chmod -w src/plugins/aorai/Makefile ;;
13851 "src/plugins/dive/Makefile":F) chmod -w src/plugins/dive/Makefile ;;
13852 "default":C) ;;
13853 "src/plugins/e-acsl/Makefile":F) chmod -w src/plugins/e-acsl/Makefile ;;
13854 "src/plugins/instantiate/Makefile":F) chmod -w src/plugins/instantiate/Makefile ;;
13855 "src/plugins/loop_analysis/Makefile":F) chmod -w src/plugins/loop_analysis/Makefile ;;
13856 "src/plugins/markdown-report/Makefile":F) chmod -w src/plugins/markdown-report/Makefile ;;
13857 "src/plugins/nonterm/Makefile":F) chmod -w src/plugins/nonterm/Makefile ;;
13858 "src/plugins/obfuscator/Makefile":F) chmod -w src/plugins/obfuscator/Makefile ;;
13859 "src/plugins/report/Makefile":F) chmod -w src/plugins/report/Makefile ;;
13860 "src/plugins/security_slicing/Makefile":F) chmod -w src/plugins/security_slicing/Makefile ;;
13861 "src/plugins/server/Makefile":F) chmod -w src/plugins/server/Makefile ;;
13862 "src/plugins/studia/Makefile":F) chmod -w src/plugins/studia/Makefile ;;
13863 "src/plugins/variadic/Makefile":F) chmod -w src/plugins/variadic/Makefile ;;
13864 "src/plugins/wp/Makefile":F) chmod -w src/plugins/wp/Makefile ;;
13865 "share/Makefile.config":F) chmod a-w share/Makefile.config ;;
13866
13867 esac
13868 done # for ac_tag
13869
13870
13871 as_fn_exit 0
13872 _ACEOF
13873 ac_clean_files=$ac_clean_files_save
13874
13875 test $ac_write_fail = 0 ||
13876 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13877
13878
13879 # configure is writing to config.log, and then calls config.status.
13880 # config.status does its own redirection, appending to config.log.
13881 # Unfortunately, on DOS this fails, as config.log is still kept open
13882 # by configure, so config.status won't be able to write to it; its
13883 # output is simply discarded. So we exec the FD to /dev/null,
13884 # effectively closing config.log, so it can be properly (re)opened and
13885 # appended to by config.status. When coming back to configure, we
13886 # need to make the FD available again.
13887 if test "$no_create" != yes; then
13888 ac_cs_success=:
13889 ac_config_status_args=
13890 test "$silent" = yes &&
13891 ac_config_status_args="$ac_config_status_args --quiet"
13892 exec 5>/dev/null
13893 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13894 exec 5>>config.log
13895 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13896 # would make configure fail if this is the last instruction.
13897 $ac_cs_success || as_fn_exit 1
13898 fi
13899 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13901 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13902 fi
13903
13904
13905 ###########
13906 # Summary #
13907 ###########
13908
13909 new_section "summary: plug-ins available"
13910
13911 for plugin in CALLGRAPH SEMANTIC_CONSTANT_FOLDING FROM_ANALYSIS GUI IMPACT INOUT METRICS OCCURRENCE PDG POSTDOMINATORS REDUC RTEGEN SCOPE SLICING SPARECODE USERS EVA AORAI DIVE E_ACSL INSTANTIATE LOOP_ANALYSIS MDR NONTERM OBFUSCATOR PRINT_API QED REPORT SECURITY_SLICING SERVER STUDIA VARIADIC WP; do
13912 n=NAME_$plugin
13913 e=ENABLE_$plugin
13914 i=INFO_$plugin
13915 eval nv=\$$n
13916 eval ev=\$$e
13917 eval iv=\$$i
13918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $nv: $ev$iv" >&5
13919 printf "%s\n" "$as_me: $nv: $ev$iv" >&6;}
13920 done
13921
13922 if test "$EXTRA_EXTERNAL_PLUGINS" != ""; then
13923 new_section "summary: requested external plugins"
13924 fi
13925
13926 for plugin in $EXTRA_EXTERNAL_PLUGINS; do
13927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $plugin" >&5
13928 printf "%s\n" "$as_me: $plugin" >&6;}
13929 done
13930