Debian Codegraph @

src/plugins/server/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
422 # as_fn_error STATUS ERROR [LINENO LOG_FD]
423 # ----------------------------------------
424 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
425 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
426 # script with STATUS, using 1 if that was 0.
427 as_fn_error ()
428 {
429 as_status=$1; test $as_status -eq 0 && as_status=1
430 if test "$4"; then
431 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
433 fi
434 printf "%s\n" "$as_me: error: $2" >&2
435 as_fn_exit $as_status
436 } # as_fn_error
437
438 if expr a : '\(a\)' >/dev/null 2>&1 &&
439 test "X`expr 00001 : '.*\(...\)'`" = X001; then
440 as_expr=expr
441 else
442 as_expr=false
443 fi
444
445 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
446 as_basename=basename
447 else
448 as_basename=false
449 fi
450
451 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
452 as_dirname=dirname
453 else
454 as_dirname=false
455 fi
456
457 as_me=`$as_basename -- "$0" ||
458 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
459 X"$0" : 'X\(//\)$' \| \
460 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
461 printf "%s\n" X/"$0" |
462 sed '/^.*\/\([^/][^/]*\)\/*$/{
463 s//\1/
464 q
465 }
466 /^X\/\(\/\/\)$/{
467 s//\1/
468 q
469 }
470 /^X\/\(\/\).*/{
471 s//\1/
472 q
473 }
474 s/.*/./; q'`
475
476 # Avoid depending upon Character Ranges.
477 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
478 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
479 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
480 as_cr_digits='0123456789'
481 as_cr_alnum=$as_cr_Letters$as_cr_digits
482
483
484 as_lineno_1=$LINENO as_lineno_1a=$LINENO
485 as_lineno_2=$LINENO as_lineno_2a=$LINENO
486 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
487 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
488 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 sed -n '
490 p
491 /[$]LINENO/=
492 ' <$as_myself |
493 sed '
494 s/[$]LINENO.*/&-/
495 t lineno
496 b
497 :lineno
498 N
499 :loop
500 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
501 t loop
502 s/-\n.*//
503 ' >$as_me.lineno &&
504 chmod +x "$as_me.lineno" ||
505 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
506
507 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
508 # already done that, so ensure we don't try to do so again and fall
509 # in an infinite loop. This has already happened in practice.
510 _as_can_reexec=no; export _as_can_reexec
511 # Don't try to exec as it changes $[0], causing all sort of problems
512 # (the dirname of $[0] is not the place where we might find the
513 # original and so on. Autoconf is especially sensitive to this).
514 . "./$as_me.lineno"
515 # Exit status is that of the last command.
516 exit
517 }
518
519
520 # Determine whether it's possible to make 'echo' print without a newline.
521 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
522 # for compatibility with existing Makefiles.
523 ECHO_C= ECHO_N= ECHO_T=
524 case `echo -n x` in #(((((
525 -n*)
526 case `echo 'xy\c'` in
527 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
528 xy) ECHO_C='\c';;
529 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
530 ECHO_T=' ';;
531 esac;;
532 *)
533 ECHO_N='-n';;
534 esac
535
536 # For backward compatibility with old third-party macros, we provide
537 # the shell variables $as_echo and $as_echo_n. New code should use
538 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
539 as_echo='printf %s\n'
540 as_echo_n='printf %s'
541
542
543 rm -f conf$$ conf$$.exe conf$$.file
544 if test -d conf$$.dir; then
545 rm -f conf$$.dir/conf$$.file
546 else
547 rm -f conf$$.dir
548 mkdir conf$$.dir 2>/dev/null
549 fi
550 if (echo >conf$$.file) 2>/dev/null; then
551 if ln -s conf$$.file conf$$ 2>/dev/null; then
552 as_ln_s='ln -s'
553 # ... but there are two gotchas:
554 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
555 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
556 # In both cases, we have to default to `cp -pR'.
557 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
558 as_ln_s='cp -pR'
559 elif ln conf$$.file conf$$ 2>/dev/null; then
560 as_ln_s=ln
561 else
562 as_ln_s='cp -pR'
563 fi
564 else
565 as_ln_s='cp -pR'
566 fi
567 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
568 rmdir conf$$.dir 2>/dev/null
569
570 if mkdir -p . 2>/dev/null; then
571 as_mkdir_p='mkdir -p "$as_dir"'
572 else
573 test -d ./-p && rmdir ./-p
574 as_mkdir_p=false
575 fi
576
577 as_test_x='test -x'
578 as_executable_p=as_fn_executable_p
579
580 # Sed expression to map a string onto a valid CPP name.
581 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
582
583 # Sed expression to map a string onto a valid variable name.
584 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
585
586
587 test -n "$DJDIR" || exec 7<&0 </dev/null
588 exec 6>&1
589
590 # Name of the host.
591 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
592 # so uname gets run too.
593 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
594
595 #
596 # Initializations.
597 #
598 ac_default_prefix=/usr/local
599 ac_clean_files=
600 ac_config_libobj_dir=.
601 LIBOBJS=
602 cross_compiling=no
603 subdirs=
604 MFLAGS=
605 MAKEFLAGS=
606
607 # Identity of this package.
608 PACKAGE_NAME=''
609 PACKAGE_TARNAME=''
610 PACKAGE_VERSION=''
611 PACKAGE_STRING=''
612 PACKAGE_BUGREPORT=''
613 PACKAGE_URL=''
614
615 ac_unique_file="Makefile.in"
616 ac_subst_vars='LTLIBOBJS
617 LIBOBJS
618 SERVER_ZMQ
619 HAS_OCAML_ZMQ
620 OCAML_ZMQ
621 ENABLE_SERVER
622 ENABLE_GUI
623 FRAMAC_VERSION
624 target_alias
625 host_alias
626 build_alias
627 LIBS
628 ECHO_T
629 ECHO_N
630 ECHO_C
631 DEFS
632 mandir
633 localedir
634 libdir
635 psdir
636 pdfdir
637 dvidir
638 htmldir
639 infodir
640 docdir
641 oldincludedir
642 includedir
643 runstatedir
644 localstatedir
645 sharedstatedir
646 sysconfdir
647 datadir
648 datarootdir
649 libexecdir
650 sbindir
651 bindir
652 program_transform_name
653 prefix
654 exec_prefix
655 PACKAGE_URL
656 PACKAGE_BUGREPORT
657 PACKAGE_STRING
658 PACKAGE_VERSION
659 PACKAGE_TARNAME
660 PACKAGE_NAME
661 PATH_SEPARATOR
662 SHELL'
663 ac_subst_files=''
664 ac_user_opts='
665 enable_option_checking
666 enable_server
667 enable_server_zmq
668 '
669 ac_precious_vars='build_alias
670 host_alias
671 target_alias'
672
673
674 # Initialize some variables set by options.
675 ac_init_help=
676 ac_init_version=false
677 ac_unrecognized_opts=
678 ac_unrecognized_sep=
679 # The variables have the same names as the options, with
680 # dashes changed to underlines.
681 cache_file=/dev/null
682 exec_prefix=NONE
683 no_create=
684 no_recursion=
685 prefix=NONE
686 program_prefix=NONE
687 program_suffix=NONE
688 program_transform_name=s,x,x,
689 silent=
690 site=
691 srcdir=
692 verbose=
693 x_includes=NONE
694 x_libraries=NONE
695
696 # Installation directory options.
697 # These are left unexpanded so users can "make install exec_prefix=/foo"
698 # and all the variables that are supposed to be based on exec_prefix
699 # by default will actually change.
700 # Use braces instead of parens because sh, perl, etc. also accept them.
701 # (The list follows the same order as the GNU Coding Standards.)
702 bindir='${exec_prefix}/bin'
703 sbindir='${exec_prefix}/sbin'
704 libexecdir='${exec_prefix}/libexec'
705 datarootdir='${prefix}/share'
706 datadir='${datarootdir}'
707 sysconfdir='${prefix}/etc'
708 sharedstatedir='${prefix}/com'
709 localstatedir='${prefix}/var'
710 runstatedir='${localstatedir}/run'
711 includedir='${prefix}/include'
712 oldincludedir='/usr/include'
713 docdir='${datarootdir}/doc/${PACKAGE}'
714 infodir='${datarootdir}/info'
715 htmldir='${docdir}'
716 dvidir='${docdir}'
717 pdfdir='${docdir}'
718 psdir='${docdir}'
719 libdir='${exec_prefix}/lib'
720 localedir='${datarootdir}/locale'
721 mandir='${datarootdir}/man'
722
723 ac_prev=
724 ac_dashdash=
725 for ac_option
726 do
727 # If the previous option needs an argument, assign it.
728 if test -n "$ac_prev"; then
729 eval $ac_prev=\$ac_option
730 ac_prev=
731 continue
732 fi
733
734 case $ac_option in
735 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
736 *=) ac_optarg= ;;
737 *) ac_optarg=yes ;;
738 esac
739
740 case $ac_dashdash$ac_option in
741 --)
742 ac_dashdash=yes ;;
743
744 -bindir | --bindir | --bindi | --bind | --bin | --bi)
745 ac_prev=bindir ;;
746 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
747 bindir=$ac_optarg ;;
748
749 -build | --build | --buil | --bui | --bu)
750 ac_prev=build_alias ;;
751 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
752 build_alias=$ac_optarg ;;
753
754 -cache-file | --cache-file | --cache-fil | --cache-fi \
755 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
756 ac_prev=cache_file ;;
757 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
758 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
759 cache_file=$ac_optarg ;;
760
761 --config-cache | -C)
762 cache_file=config.cache ;;
763
764 -datadir | --datadir | --datadi | --datad)
765 ac_prev=datadir ;;
766 -datadir=* | --datadir=* | --datadi=* | --datad=*)
767 datadir=$ac_optarg ;;
768
769 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
770 | --dataroo | --dataro | --datar)
771 ac_prev=datarootdir ;;
772 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
773 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
774 datarootdir=$ac_optarg ;;
775
776 -disable-* | --disable-*)
777 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
778 # Reject names that are not valid shell variable names.
779 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
780 as_fn_error $? "invalid feature name: \`$ac_useropt'"
781 ac_useropt_orig=$ac_useropt
782 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
783 case $ac_user_opts in
784 *"
785 "enable_$ac_useropt"
786 "*) ;;
787 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
788 ac_unrecognized_sep=', ';;
789 esac
790 eval enable_$ac_useropt=no ;;
791
792 -docdir | --docdir | --docdi | --doc | --do)
793 ac_prev=docdir ;;
794 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
795 docdir=$ac_optarg ;;
796
797 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
798 ac_prev=dvidir ;;
799 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
800 dvidir=$ac_optarg ;;
801
802 -enable-* | --enable-*)
803 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
804 # Reject names that are not valid shell variable names.
805 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
806 as_fn_error $? "invalid feature name: \`$ac_useropt'"
807 ac_useropt_orig=$ac_useropt
808 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
809 case $ac_user_opts in
810 *"
811 "enable_$ac_useropt"
812 "*) ;;
813 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
814 ac_unrecognized_sep=', ';;
815 esac
816 eval enable_$ac_useropt=\$ac_optarg ;;
817
818 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
819 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
820 | --exec | --exe | --ex)
821 ac_prev=exec_prefix ;;
822 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
823 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
824 | --exec=* | --exe=* | --ex=*)
825 exec_prefix=$ac_optarg ;;
826
827 -gas | --gas | --ga | --g)
828 # Obsolete; use --with-gas.
829 with_gas=yes ;;
830
831 -help | --help | --hel | --he | -h)
832 ac_init_help=long ;;
833 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
834 ac_init_help=recursive ;;
835 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
836 ac_init_help=short ;;
837
838 -host | --host | --hos | --ho)
839 ac_prev=host_alias ;;
840 -host=* | --host=* | --hos=* | --ho=*)
841 host_alias=$ac_optarg ;;
842
843 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
844 ac_prev=htmldir ;;
845 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
846 | --ht=*)
847 htmldir=$ac_optarg ;;
848
849 -includedir | --includedir | --includedi | --included | --include \
850 | --includ | --inclu | --incl | --inc)
851 ac_prev=includedir ;;
852 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
853 | --includ=* | --inclu=* | --incl=* | --inc=*)
854 includedir=$ac_optarg ;;
855
856 -infodir | --infodir | --infodi | --infod | --info | --inf)
857 ac_prev=infodir ;;
858 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
859 infodir=$ac_optarg ;;
860
861 -libdir | --libdir | --libdi | --libd)
862 ac_prev=libdir ;;
863 -libdir=* | --libdir=* | --libdi=* | --libd=*)
864 libdir=$ac_optarg ;;
865
866 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
867 | --libexe | --libex | --libe)
868 ac_prev=libexecdir ;;
869 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
870 | --libexe=* | --libex=* | --libe=*)
871 libexecdir=$ac_optarg ;;
872
873 -localedir | --localedir | --localedi | --localed | --locale)
874 ac_prev=localedir ;;
875 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
876 localedir=$ac_optarg ;;
877
878 -localstatedir | --localstatedir | --localstatedi | --localstated \
879 | --localstate | --localstat | --localsta | --localst | --locals)
880 ac_prev=localstatedir ;;
881 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
882 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
883 localstatedir=$ac_optarg ;;
884
885 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
886 ac_prev=mandir ;;
887 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
888 mandir=$ac_optarg ;;
889
890 -nfp | --nfp | --nf)
891 # Obsolete; use --without-fp.
892 with_fp=no ;;
893
894 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
895 | --no-cr | --no-c | -n)
896 no_create=yes ;;
897
898 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
899 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
900 no_recursion=yes ;;
901
902 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
903 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
904 | --oldin | --oldi | --old | --ol | --o)
905 ac_prev=oldincludedir ;;
906 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
907 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
908 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
909 oldincludedir=$ac_optarg ;;
910
911 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
912 ac_prev=prefix ;;
913 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
914 prefix=$ac_optarg ;;
915
916 -program-prefix | --program-prefix | --program-prefi | --program-pref \
917 | --program-pre | --program-pr | --program-p)
918 ac_prev=program_prefix ;;
919 -program-prefix=* | --program-prefix=* | --program-prefi=* \
920 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
921 program_prefix=$ac_optarg ;;
922
923 -program-suffix | --program-suffix | --program-suffi | --program-suff \
924 | --program-suf | --program-su | --program-s)
925 ac_prev=program_suffix ;;
926 -program-suffix=* | --program-suffix=* | --program-suffi=* \
927 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
928 program_suffix=$ac_optarg ;;
929
930 -program-transform-name | --program-transform-name \
931 | --program-transform-nam | --program-transform-na \
932 | --program-transform-n | --program-transform- \
933 | --program-transform | --program-transfor \
934 | --program-transfo | --program-transf \
935 | --program-trans | --program-tran \
936 | --progr-tra | --program-tr | --program-t)
937 ac_prev=program_transform_name ;;
938 -program-transform-name=* | --program-transform-name=* \
939 | --program-transform-nam=* | --program-transform-na=* \
940 | --program-transform-n=* | --program-transform-=* \
941 | --program-transform=* | --program-transfor=* \
942 | --program-transfo=* | --program-transf=* \
943 | --program-trans=* | --program-tran=* \
944 | --progr-tra=* | --program-tr=* | --program-t=*)
945 program_transform_name=$ac_optarg ;;
946
947 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
948 ac_prev=pdfdir ;;
949 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
950 pdfdir=$ac_optarg ;;
951
952 -psdir | --psdir | --psdi | --psd | --ps)
953 ac_prev=psdir ;;
954 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
955 psdir=$ac_optarg ;;
956
957 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
958 | -silent | --silent | --silen | --sile | --sil)
959 silent=yes ;;
960
961 -runstatedir | --runstatedir | --runstatedi | --runstated \
962 | --runstate | --runstat | --runsta | --runst | --runs \
963 | --run | --ru | --r)
964 ac_prev=runstatedir ;;
965 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
966 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
967 | --run=* | --ru=* | --r=*)
968 runstatedir=$ac_optarg ;;
969
970 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
971 ac_prev=sbindir ;;
972 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
973 | --sbi=* | --sb=*)
974 sbindir=$ac_optarg ;;
975
976 -sharedstatedir | --sharedstatedir | --sharedstatedi \
977 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
978 | --sharedst | --shareds | --shared | --share | --shar \
979 | --sha | --sh)
980 ac_prev=sharedstatedir ;;
981 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
982 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
983 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
984 | --sha=* | --sh=*)
985 sharedstatedir=$ac_optarg ;;
986
987 -site | --site | --sit)
988 ac_prev=site ;;
989 -site=* | --site=* | --sit=*)
990 site=$ac_optarg ;;
991
992 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
993 ac_prev=srcdir ;;
994 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
995 srcdir=$ac_optarg ;;
996
997 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
998 | --syscon | --sysco | --sysc | --sys | --sy)
999 ac_prev=sysconfdir ;;
1000 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1001 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1002 sysconfdir=$ac_optarg ;;
1003
1004 -target | --target | --targe | --targ | --tar | --ta | --t)
1005 ac_prev=target_alias ;;
1006 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1007 target_alias=$ac_optarg ;;
1008
1009 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1010 verbose=yes ;;
1011
1012 -version | --version | --versio | --versi | --vers | -V)
1013 ac_init_version=: ;;
1014
1015 -with-* | --with-*)
1016 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1019 as_fn_error $? "invalid package name: \`$ac_useropt'"
1020 ac_useropt_orig=$ac_useropt
1021 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1022 case $ac_user_opts in
1023 *"
1024 "with_$ac_useropt"
1025 "*) ;;
1026 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1027 ac_unrecognized_sep=', ';;
1028 esac
1029 eval with_$ac_useropt=\$ac_optarg ;;
1030
1031 -without-* | --without-*)
1032 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1033 # Reject names that are not valid shell variable names.
1034 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1035 as_fn_error $? "invalid package name: \`$ac_useropt'"
1036 ac_useropt_orig=$ac_useropt
1037 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1038 case $ac_user_opts in
1039 *"
1040 "with_$ac_useropt"
1041 "*) ;;
1042 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1043 ac_unrecognized_sep=', ';;
1044 esac
1045 eval with_$ac_useropt=no ;;
1046
1047 --x)
1048 # Obsolete; use --with-x.
1049 with_x=yes ;;
1050
1051 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1052 | --x-incl | --x-inc | --x-in | --x-i)
1053 ac_prev=x_includes ;;
1054 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1055 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1056 x_includes=$ac_optarg ;;
1057
1058 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1059 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1060 ac_prev=x_libraries ;;
1061 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1062 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1063 x_libraries=$ac_optarg ;;
1064
1065 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1066 Try \`$0 --help' for more information"
1067 ;;
1068
1069 *=*)
1070 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1071 # Reject names that are not valid shell variable names.
1072 case $ac_envvar in #(
1073 '' | [0-9]* | *[!_$as_cr_alnum]* )
1074 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1075 esac
1076 eval $ac_envvar=\$ac_optarg
1077 export $ac_envvar ;;
1078
1079 *)
1080 # FIXME: should be removed in autoconf 3.0.
1081 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1082 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1083 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1084 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1085 ;;
1086
1087 esac
1088 done
1089
1090 if test -n "$ac_prev"; then
1091 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1092 as_fn_error $? "missing argument to $ac_option"
1093 fi
1094
1095 if test -n "$ac_unrecognized_opts"; then
1096 case $enable_option_checking in
1097 no) ;;
1098 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1099 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1100 esac
1101 fi
1102
1103 # Check all directory arguments for consistency.
1104 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1105 datadir sysconfdir sharedstatedir localstatedir includedir \
1106 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1107 libdir localedir mandir runstatedir
1108 do
1109 eval ac_val=\$$ac_var
1110 # Remove trailing slashes.
1111 case $ac_val in
1112 */ )
1113 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1114 eval $ac_var=\$ac_val;;
1115 esac
1116 # Be sure to have absolute directory names.
1117 case $ac_val in
1118 [\\/$]* | ?:[\\/]* ) continue;;
1119 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1120 esac
1121 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1122 done
1123
1124 # There might be people who depend on the old broken behavior: `$host'
1125 # used to hold the argument of --host etc.
1126 # FIXME: To remove some day.
1127 build=$build_alias
1128 host=$host_alias
1129 target=$target_alias
1130
1131 # FIXME: To remove some day.
1132 if test "x$host_alias" != x; then
1133 if test "x$build_alias" = x; then
1134 cross_compiling=maybe
1135 elif test "x$build_alias" != "x$host_alias"; then
1136 cross_compiling=yes
1137 fi
1138 fi
1139
1140 ac_tool_prefix=
1141 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1142
1143 test "$silent" = yes && exec 6>/dev/null
1144
1145
1146 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1147 ac_ls_di=`ls -di .` &&
1148 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1149 as_fn_error $? "working directory cannot be determined"
1150 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1151 as_fn_error $? "pwd does not report name of working directory"
1152
1153
1154 # Find the source files, if location was not specified.
1155 if test -z "$srcdir"; then
1156 ac_srcdir_defaulted=yes
1157 # Try the directory containing this script, then the parent directory.
1158 ac_confdir=`$as_dirname -- "$as_myself" ||
1159 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1160 X"$as_myself" : 'X\(//\)[^/]' \| \
1161 X"$as_myself" : 'X\(//\)$' \| \
1162 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1163 printf "%s\n" X"$as_myself" |
1164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1165 s//\1/
1166 q
1167 }
1168 /^X\(\/\/\)[^/].*/{
1169 s//\1/
1170 q
1171 }
1172 /^X\(\/\/\)$/{
1173 s//\1/
1174 q
1175 }
1176 /^X\(\/\).*/{
1177 s//\1/
1178 q
1179 }
1180 s/.*/./; q'`
1181 srcdir=$ac_confdir
1182 if test ! -r "$srcdir/$ac_unique_file"; then
1183 srcdir=..
1184 fi
1185 else
1186 ac_srcdir_defaulted=no
1187 fi
1188 if test ! -r "$srcdir/$ac_unique_file"; then
1189 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1190 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1191 fi
1192 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1193 ac_abs_confdir=`(
1194 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1195 pwd)`
1196 # When building in place, set srcdir=.
1197 if test "$ac_abs_confdir" = "$ac_pwd"; then
1198 srcdir=.
1199 fi
1200 # Remove unnecessary trailing slashes from srcdir.
1201 # Double slashes in file names in object file debugging info
1202 # mess up M-x gdb in Emacs.
1203 case $srcdir in
1204 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1205 esac
1206 for ac_var in $ac_precious_vars; do
1207 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1208 eval ac_env_${ac_var}_value=\$${ac_var}
1209 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1210 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1211 done
1212
1213 #
1214 # Report the --help message.
1215 #
1216 if test "$ac_init_help" = "long"; then
1217 # Omit some internal or obsolete options to make the list less imposing.
1218 # This message is too long to be a string in the A/UX 3.1 sh.
1219 cat <<_ACEOF
1220 \`configure' configures this package to adapt to many kinds of systems.
1221
1222 Usage: $0 [OPTION]... [VAR=VALUE]...
1223
1224 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1225 VAR=VALUE. See below for descriptions of some of the useful variables.
1226
1227 Defaults for the options are specified in brackets.
1228
1229 Configuration:
1230 -h, --help display this help and exit
1231 --help=short display options specific to this package
1232 --help=recursive display the short help of all the included packages
1233 -V, --version display version information and exit
1234 -q, --quiet, --silent do not print \`checking ...' messages
1235 --cache-file=FILE cache test results in FILE [disabled]
1236 -C, --config-cache alias for \`--cache-file=config.cache'
1237 -n, --no-create do not create output files
1238 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1239
1240 Installation directories:
1241 --prefix=PREFIX install architecture-independent files in PREFIX
1242 [$ac_default_prefix]
1243 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1244 [PREFIX]
1245
1246 By default, \`make install' will install all the files in
1247 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1248 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1249 for instance \`--prefix=\$HOME'.
1250
1251 For better control, use the options below.
1252
1253 Fine tuning of the installation directories:
1254 --bindir=DIR user executables [EPREFIX/bin]
1255 --sbindir=DIR system admin executables [EPREFIX/sbin]
1256 --libexecdir=DIR program executables [EPREFIX/libexec]
1257 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1258 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1259 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1260 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1261 --libdir=DIR object code libraries [EPREFIX/lib]
1262 --includedir=DIR C header files [PREFIX/include]
1263 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1264 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1265 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1266 --infodir=DIR info documentation [DATAROOTDIR/info]
1267 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1268 --mandir=DIR man documentation [DATAROOTDIR/man]
1269 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1270 --htmldir=DIR html documentation [DOCDIR]
1271 --dvidir=DIR dvi documentation [DOCDIR]
1272 --pdfdir=DIR pdf documentation [DOCDIR]
1273 --psdir=DIR ps documentation [DOCDIR]
1274 _ACEOF
1275
1276 cat <<\_ACEOF
1277 _ACEOF
1278 fi
1279
1280 if test -n "$ac_init_help"; then
1281
1282 cat <<\_ACEOF
1283
1284 Optional Features:
1285 --disable-option-checking ignore unrecognized --enable/--with options
1286 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1287 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1288 --enable-server Server plug-in (default: yes)
1289 --enable-server-zmq Server ZeroMQ support (default: yes)
1290
1291 Report bugs to the package provider.
1292 _ACEOF
1293 ac_status=$?
1294 fi
1295
1296 if test "$ac_init_help" = "recursive"; then
1297 # If there are subdirs, report their specific --help.
1298 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1299 test -d "$ac_dir" ||
1300 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1301 continue
1302 ac_builddir=.
1303
1304 case "$ac_dir" in
1305 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1306 *)
1307 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1308 # A ".." for each directory in $ac_dir_suffix.
1309 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1310 case $ac_top_builddir_sub in
1311 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1312 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1313 esac ;;
1314 esac
1315 ac_abs_top_builddir=$ac_pwd
1316 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1317 # for backward compatibility:
1318 ac_top_builddir=$ac_top_build_prefix
1319
1320 case $srcdir in
1321 .) # We are building in place.
1322 ac_srcdir=.
1323 ac_top_srcdir=$ac_top_builddir_sub
1324 ac_abs_top_srcdir=$ac_pwd ;;
1325 [\\/]* | ?:[\\/]* ) # Absolute name.
1326 ac_srcdir=$srcdir$ac_dir_suffix;
1327 ac_top_srcdir=$srcdir
1328 ac_abs_top_srcdir=$srcdir ;;
1329 *) # Relative name.
1330 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1331 ac_top_srcdir=$ac_top_build_prefix$srcdir
1332 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1333 esac
1334 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1335
1336 cd "$ac_dir" || { ac_status=$?; continue; }
1337 # Check for configure.gnu first; this name is used for a wrapper for
1338 # Metaconfig's "Configure" on case-insensitive file systems.
1339 if test -f "$ac_srcdir/configure.gnu"; then
1340 echo &&
1341 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1342 elif test -f "$ac_srcdir/configure"; then
1343 echo &&
1344 $SHELL "$ac_srcdir/configure" --help=recursive
1345 else
1346 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1347 fi || ac_status=$?
1348 cd "$ac_pwd" || { ac_status=$?; break; }
1349 done
1350 fi
1351
1352 test -n "$ac_init_help" && exit $ac_status
1353 if $ac_init_version; then
1354 cat <<\_ACEOF
1355 configure
1356 generated by GNU Autoconf 2.71
1357
1358 Copyright (C) 2021 Free Software Foundation, Inc.
1359 This configure script is free software; the Free Software Foundation
1360 gives unlimited permission to copy, distribute and modify it.
1361 _ACEOF
1362 exit
1363 fi
1364
1365 ## ------------------------ ##
1366 ## Autoconf initialization. ##
1367 ## ------------------------ ##
1368 ac_configure_args_raw=
1369 for ac_arg
1370 do
1371 case $ac_arg in
1372 *\'*)
1373 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1374 esac
1375 as_fn_append ac_configure_args_raw " '$ac_arg'"
1376 done
1377
1378 case $ac_configure_args_raw in
1379 *$as_nl*)
1380 ac_safe_unquote= ;;
1381 *)
1382 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1383 ac_unsafe_a="$ac_unsafe_z#~"
1384 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1385 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1386 esac
1387
1388 cat >config.log <<_ACEOF
1389 This file contains any messages produced by compilers while
1390 running configure, to aid debugging if configure makes a mistake.
1391
1392 It was created by $as_me, which was
1393 generated by GNU Autoconf 2.71. Invocation command line was
1394
1395 $ $0$ac_configure_args_raw
1396
1397 _ACEOF
1398 exec 5>>config.log
1399 {
1400 cat <<_ASUNAME
1401 ## --------- ##
1402 ## Platform. ##
1403 ## --------- ##
1404
1405 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1406 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1407 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1408 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1409 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1410
1411 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1412 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1413
1414 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1415 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1416 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1417 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1418 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1419 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1420 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1421
1422 _ASUNAME
1423
1424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1425 for as_dir in $PATH
1426 do
1427 IFS=$as_save_IFS
1428 case $as_dir in #(((
1429 '') as_dir=./ ;;
1430 */) ;;
1431 *) as_dir=$as_dir/ ;;
1432 esac
1433 printf "%s\n" "PATH: $as_dir"
1434 done
1435 IFS=$as_save_IFS
1436
1437 } >&5
1438
1439 cat >&5 <<_ACEOF
1440
1441
1442 ## ----------- ##
1443 ## Core tests. ##
1444 ## ----------- ##
1445
1446 _ACEOF
1447
1448
1449 # Keep a trace of the command line.
1450 # Strip out --no-create and --no-recursion so they do not pile up.
1451 # Strip out --silent because we don't want to record it for future runs.
1452 # Also quote any args containing shell meta-characters.
1453 # Make two passes to allow for proper duplicate-argument suppression.
1454 ac_configure_args=
1455 ac_configure_args0=
1456 ac_configure_args1=
1457 ac_must_keep_next=false
1458 for ac_pass in 1 2
1459 do
1460 for ac_arg
1461 do
1462 case $ac_arg in
1463 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1464 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1465 | -silent | --silent | --silen | --sile | --sil)
1466 continue ;;
1467 *\'*)
1468 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1469 esac
1470 case $ac_pass in
1471 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1472 2)
1473 as_fn_append ac_configure_args1 " '$ac_arg'"
1474 if test $ac_must_keep_next = true; then
1475 ac_must_keep_next=false # Got value, back to normal.
1476 else
1477 case $ac_arg in
1478 *=* | --config-cache | -C | -disable-* | --disable-* \
1479 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1480 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1481 | -with-* | --with-* | -without-* | --without-* | --x)
1482 case "$ac_configure_args0 " in
1483 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1484 esac
1485 ;;
1486 -* ) ac_must_keep_next=true ;;
1487 esac
1488 fi
1489 as_fn_append ac_configure_args " '$ac_arg'"
1490 ;;
1491 esac
1492 done
1493 done
1494 { ac_configure_args0=; unset ac_configure_args0;}
1495 { ac_configure_args1=; unset ac_configure_args1;}
1496
1497 # When interrupted or exit'd, cleanup temporary files, and complete
1498 # config.log. We remove comments because anyway the quotes in there
1499 # would cause problems or look ugly.
1500 # WARNING: Use '\'' to represent an apostrophe within the trap.
1501 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1502 trap 'exit_status=$?
1503 # Sanitize IFS.
1504 IFS=" "" $as_nl"
1505 # Save into config.log some information that might help in debugging.
1506 {
1507 echo
1508
1509 printf "%s\n" "## ---------------- ##
1510 ## Cache variables. ##
1511 ## ---------------- ##"
1512 echo
1513 # The following way of writing the cache mishandles newlines in values,
1514 (
1515 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1516 eval ac_val=\$$ac_var
1517 case $ac_val in #(
1518 *${as_nl}*)
1519 case $ac_var in #(
1520 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1521 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1522 esac
1523 case $ac_var in #(
1524 _ | IFS | as_nl) ;; #(
1525 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1526 *) { eval $ac_var=; unset $ac_var;} ;;
1527 esac ;;
1528 esac
1529 done
1530 (set) 2>&1 |
1531 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1532 *${as_nl}ac_space=\ *)
1533 sed -n \
1534 "s/'\''/'\''\\\\'\'''\''/g;
1535 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1536 ;; #(
1537 *)
1538 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1539 ;;
1540 esac |
1541 sort
1542 )
1543 echo
1544
1545 printf "%s\n" "## ----------------- ##
1546 ## Output variables. ##
1547 ## ----------------- ##"
1548 echo
1549 for ac_var in $ac_subst_vars
1550 do
1551 eval ac_val=\$$ac_var
1552 case $ac_val in
1553 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1554 esac
1555 printf "%s\n" "$ac_var='\''$ac_val'\''"
1556 done | sort
1557 echo
1558
1559 if test -n "$ac_subst_files"; then
1560 printf "%s\n" "## ------------------- ##
1561 ## File substitutions. ##
1562 ## ------------------- ##"
1563 echo
1564 for ac_var in $ac_subst_files
1565 do
1566 eval ac_val=\$$ac_var
1567 case $ac_val in
1568 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1569 esac
1570 printf "%s\n" "$ac_var='\''$ac_val'\''"
1571 done | sort
1572 echo
1573 fi
1574
1575 if test -s confdefs.h; then
1576 printf "%s\n" "## ----------- ##
1577 ## confdefs.h. ##
1578 ## ----------- ##"
1579 echo
1580 cat confdefs.h
1581 echo
1582 fi
1583 test "$ac_signal" != 0 &&
1584 printf "%s\n" "$as_me: caught signal $ac_signal"
1585 printf "%s\n" "$as_me: exit $exit_status"
1586 } >&5
1587 rm -f core *.core core.conftest.* &&
1588 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1589 exit $exit_status
1590 ' 0
1591 for ac_signal in 1 2 13 15; do
1592 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1593 done
1594 ac_signal=0
1595
1596 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1597 rm -f -r conftest* confdefs.h
1598
1599 printf "%s\n" "/* confdefs.h */" > confdefs.h
1600
1601 # Predefined preprocessor variables.
1602
1603 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1604
1605 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1606
1607 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1608
1609 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1610
1611 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1612
1613 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1614
1615
1616 # Let the site file select an alternate cache file if it wants to.
1617 # Prefer an explicitly selected file to automatically selected ones.
1618 if test -n "$CONFIG_SITE"; then
1619 ac_site_files="$CONFIG_SITE"
1620 elif test "x$prefix" != xNONE; then
1621 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1622 else
1623 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1624 fi
1625
1626 for ac_site_file in $ac_site_files
1627 do
1628 case $ac_site_file in #(
1629 */*) :
1630 ;; #(
1631 *) :
1632 ac_site_file=./$ac_site_file ;;
1633 esac
1634 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1636 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1637 sed 's/^/| /' "$ac_site_file" >&5
1638 . "$ac_site_file" \
1639 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1640 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1641 as_fn_error $? "failed to load site script $ac_site_file
1642 See \`config.log' for more details" "$LINENO" 5; }
1643 fi
1644 done
1645
1646 if test -r "$cache_file"; then
1647 # Some versions of bash will fail to source /dev/null (special files
1648 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1649 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1651 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1652 case $cache_file in
1653 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1654 *) . "./$cache_file";;
1655 esac
1656 fi
1657 else
1658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1659 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1660 >$cache_file
1661 fi
1662
1663 # Check that the precious variables saved in the cache have kept the same
1664 # value.
1665 ac_cache_corrupted=false
1666 for ac_var in $ac_precious_vars; do
1667 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1668 eval ac_new_set=\$ac_env_${ac_var}_set
1669 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1670 eval ac_new_val=\$ac_env_${ac_var}_value
1671 case $ac_old_set,$ac_new_set in
1672 set,)
1673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1674 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1675 ac_cache_corrupted=: ;;
1676 ,set)
1677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1678 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1679 ac_cache_corrupted=: ;;
1680 ,);;
1681 *)
1682 if test "x$ac_old_val" != "x$ac_new_val"; then
1683 # differences in whitespace do not lead to failure.
1684 ac_old_val_w=`echo x $ac_old_val`
1685 ac_new_val_w=`echo x $ac_new_val`
1686 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1688 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1689 ac_cache_corrupted=:
1690 else
1691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1692 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1693 eval $ac_var=\$ac_old_val
1694 fi
1695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1696 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
1697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1698 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
1699 fi;;
1700 esac
1701 # Pass precious variables to config.status.
1702 if test "$ac_new_set" = set; then
1703 case $ac_new_val in
1704 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1705 *) ac_arg=$ac_var=$ac_new_val ;;
1706 esac
1707 case " $ac_configure_args " in
1708 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1709 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1710 esac
1711 fi
1712 done
1713 if $ac_cache_corrupted; then
1714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1715 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1717 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
1718 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
1719 and start over" "$LINENO" 5
1720 fi
1721 ## -------------------- ##
1722 ## Main body of script. ##
1723 ## -------------------- ##
1724
1725 ac_ext=c
1726 ac_cpp='$CPP $CPPFLAGS'
1727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1730
1731
1732 KNOWN_PLUGINS=$(frama-c -plugins | \
1733 sed -e '/\[kernel\]/d' -e 's/\([^ ][^ ]*\( [^ ][^ ]*\)*\) .*/\1/' \
1734 -e '/^ /d' -e '/^$/d' | \
1735 tr "a-z- " "A-Z__")
1736 for plugin in ${KNOWN_PLUGINS}; do
1737 export $(echo ENABLE_$plugin)=yes
1738 done
1739
1740 FRAMAC_VERSION=`frama-c -version`
1741
1742 # Extract the first word of "frama-c-gui", so it can be a program name with args.
1743 set dummy frama-c-gui; ac_word=$2
1744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1745 printf %s "checking for $ac_word... " >&6; }
1746 if test ${ac_cv_prog_ENABLE_GUI+y}
1747 then :
1748 printf %s "(cached) " >&6
1749 else $as_nop
1750 if test -n "$ENABLE_GUI"; then
1751 ac_cv_prog_ENABLE_GUI="$ENABLE_GUI" # Let the user override the test.
1752 else
1753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1754 for as_dir in $PATH
1755 do
1756 IFS=$as_save_IFS
1757 case $as_dir in #(((
1758 '') as_dir=./ ;;
1759 */) ;;
1760 *) as_dir=$as_dir/ ;;
1761 esac
1762 for ac_exec_ext in '' $ac_executable_extensions; do
1763 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1764 ac_cv_prog_ENABLE_GUI="yes"
1765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1766 break 2
1767 fi
1768 done
1769 done
1770 IFS=$as_save_IFS
1771
1772 test -z "$ac_cv_prog_ENABLE_GUI" && ac_cv_prog_ENABLE_GUI="no"
1773 fi
1774 fi
1775 ENABLE_GUI=$ac_cv_prog_ENABLE_GUI
1776 if test -n "$ENABLE_GUI"; then
1777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ENABLE_GUI" >&5
1778 printf "%s\n" "$ENABLE_GUI" >&6; }
1779 else
1780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
1781 printf "%s\n" "no" >&6; }
1782 fi
1783
1784
1785
1786
1787
1788
1789 upper() {
1790 echo "$1" | tr "a-z-" "A-Z_"
1791 }
1792
1793 lower() {
1794 echo "$1" | tr "A-Z" "a-z"
1795 }
1796
1797
1798
1799 new_section() {
1800 banner=`echo "* $1 *" | sed -e 's/./*/g'`
1801 title=`echo "* $1 *" | tr "a-z" "A-Z"`
1802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $banner" >&5
1803 printf "%s\n" "$as_me: $banner" >&6;}
1804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $title" >&5
1805 printf "%s\n" "$as_me: $title" >&6;}
1806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $banner" >&5
1807 printf "%s\n" "$as_me: $banner" >&6;}
1808 }
1809
1810
1811
1812 # sadly, there's no way to define a new diversion beside the internal ones.
1813 # hoping for the best here...
1814
1815
1816
1817
1818 # to distinguish internal plugins, known by the main configure, from
1819 # purely external plugins living in src/ and compiled together with the main
1820 # frama-c
1821
1822
1823
1824 # end of check_plugin
1825
1826 # 1st param: uppercase name of the library
1827 # 2nd param: file which must exist. This parameter can be a list of files.
1828 # In this case, they will be tried in turn until one of them exists. The
1829 # name of the file found will be put in the variable SELECTED_$1
1830 # 3d param: warning to display if problem
1831 # 4th param: yes iff checking the library must always to be done
1832 # (even if there is no plug-in using it)
1833
1834
1835 # 1st param: actual name of the ocamlfind package (often lowercase)
1836 # 2nd param: warning to display if problem
1837
1838
1839 # 1st param: uppercase name of the program
1840 # 2nd param: program which must exist. See comment on configure_library()
1841 # on how to deal with multiple choices for a given program.
1842 # 3d param: warning to display if problem
1843 # 4th param: yes iff checking the tool must always to be done
1844 # (even if there is no plug-in using it)
1845
1846
1847
1848 EXTERNAL_PLUGINS=
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862 # Usage: plugin_disable([plugin],[reason])
1863
1864
1865
1866
1867
1868 # Implementation of an ordering $1 < $2: "" < yes < partial < no
1869 lt_mark () {
1870 first=`echo "$1" | sed -e 's/ .*//' `
1871 second=`echo "$2" | sed -e 's/ .*//' `
1872 case $first in
1873 "") echo "true";;
1874 "yes"*)
1875 case $second in
1876 "yes") echo "";;
1877 "partial" | "no") echo "true";;
1878 esac;;
1879 "partial"*)
1880 case $second in
1881 "yes" | "partial") echo "";;
1882 "no") echo "true";;
1883 esac;;
1884 "no"*) echo "";;
1885 esac
1886 }
1887
1888 # Check and propagate marks to requires and users.
1889 # $1: parent plugin
1890 # $2: mark to propagate to requires
1891 # $3: mark to propagate to users
1892 check_and_propagate () {
1893 # for each requires
1894 r=REQUIRE_$1
1895 eval require="\$$r"
1896 for p in $require; do
1897 up=`upper "$p"`
1898 m=MARK_"$up"
1899 eval mark="\$$m"
1900 if test -z "$mark"; then
1901 m=ENABLE_"$up"
1902 eval mark="\$$m"
1903 fi
1904 if test `lt_mark "$mark" "$2" `; then
1905 # update marks
1906 eval MARK_$up=\"$2\";
1907 TODOLIST=$TODOLIST" "$p
1908 # display a warning or an error if required
1909 short_mark=`echo $2 | sed -e 's/ .*//'`
1910 lp=`lower $p`
1911 reason=`echo $2 | sed -e 's/no (\(.*\))/\1/' `
1912 if test "$short_mark" = "no"; then
1913 fp=FORCE_"$up"
1914 if eval test "\$$fp" = "yes"; then
1915 as_fn_error $? "$lp requested but $reason." "$LINENO" 5
1916 else
1917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $lp disabled because $reason." >&5
1918 printf "%s\n" "$as_me: WARNING: $lp disabled because $reason." >&2;}
1919 fi
1920 else
1921 if test "$short_mark" = "partial"; then
1922 reason=`echo $2 | sed -e 's/partial (\(.*\))/\1/' `
1923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $lp only partially enable because $reason." >&5
1924 printf "%s\n" "$as_me: WARNING: $lp only partially enable because $reason." >&2;}
1925 fi
1926 fi
1927 eval INFO_$up=\", $reason\"
1928 fi
1929 done
1930 # for each users
1931 u=USE_$1
1932 eval use="\$$u"
1933 for p in $use; do
1934 up=`upper "$p"`
1935 m=MARK_$up
1936 eval mark="\$$m"
1937 if test -z "$mark"; then
1938 m=ENABLE_"$up"
1939 eval mark="\$$m"
1940 fi
1941 if test `lt_mark "$mark" "$3" `; then
1942 # update marks
1943 eval MARK_$up=\"$3\";
1944 TODOLIST=$TODOLIST" "$p
1945 # display a warning if required
1946 lp=`lower $p`
1947 reason=`echo $3 | sed -e 's/partial (\(.*\))/\1/' `
1948 if test "$reason" != "$3"; then
1949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $lp only partially enabled because $reason." >&5
1950 printf "%s\n" "$as_me: WARNING: $lp only partially enabled because $reason." >&2;}
1951 fi
1952 eval INFO_$up=\", $reason\"
1953 fi
1954 done
1955 }
1956
1957 # checks direct dependencies of a plugin. Useful for dynamic plugins which
1958 # have a dependency toward already installed (or not) plug-ins, since the old
1959 # plugins are not in the TODO list from the beginning (and need not their
1960 # mutual dependencies be rechecked anyway
1961 check_required_used () {
1962 ep=ENABLE_$1
1963 eval enabled=\$$ep
1964
1965 if test "$enabled" != "no"; then
1966
1967 r=REQUIRED_$1
1968 u=USED_$1
1969 m=MARK_$1
1970 eval required=\$$r
1971 eval used=\$$u
1972 eval $m=yes
1973
1974 reason=
1975
1976 for p in $required; do
1977 up=`upper $p`
1978 ec=ENABLE_$up
1979 eval enabled=\$$ec
1980 case `echo "$enabled" | sed -e 's/ .*//'` in
1981 "") reason="$p unknown";;
1982 "yes" | "partial");;
1983 "no") reason="$p not enabled";;
1984 esac
1985 done
1986 if test -n "$reason"; then
1987 eval $m=\"no\ \($reason\)\"
1988 p_name=`lower $1`
1989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $p_name disabled because $reason." >&5
1990 printf "%s\n" "$as_me: WARNING: $p_name disabled because $reason." >&2;}
1991 eval INFO_$1=\", $reason\"
1992 else
1993 for p in $used; do
1994 up=`upper $p`
1995 ec=ENABLE_$up
1996 eval enabled=\$$ec
1997 case `echo "$enabled" | sed -e 's/ .*//'` in
1998 "") reason="$p unknown";;
1999 "yes" | "partial");;
2000 "no") reason="$p not enabled";;
2001 esac
2002 done
2003 if test -n "$reason"; then
2004 eval $m=\"partial\ \($reason\)\"
2005 p_name=`lower $1`
2006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $p_name partially enabled because $reason." >&5
2007 printf "%s\n" "$as_me: WARNING: $p_name partially enabled because $reason." >&2;}
2008 eval INFO_$1=\", $reason\"
2009 fi
2010 fi
2011
2012 else # $enabled = "no"
2013 eval $m=\"no\"
2014 fi
2015 }
2016
2017 # Recursively check the plug-in dependencies using the plug-in dependency graph
2018 compute_dependency () {
2019 plugin=`echo $TODOLIST | sed -e 's/ .*//' `
2020 TODOLIST=`echo $TODOLIST | sed -e 's/[^ ]* *\(.*\)/\1/' `
2021
2022 lplugin=`lower "$plugin"`
2023 uplugin=`upper "$plugin"`
2024 # new mark to consider
2025 m=MARK_$uplugin
2026 eval mark="\$$m"
2027 # old mark to consider
2028 r=REMEMBER_$uplugin
2029 eval remember="\$$r"
2030 # the exact mark (final result),
2031 # also the old mark if plugin already visited
2032 e=ENABLE_$uplugin
2033 eval enable="\$$e"
2034 #first visit. Performs additional checks over requirements.
2035 if test -z "$mark"; then
2036 check_required_used "$uplugin";
2037 eval mark=\$$m
2038 fi
2039
2040 # echo "plug-in $lplugin (mark=$mark, remember=$remember, enable=$enable)"
2041 if test `lt_mark "$remember" "$mark"`; then
2042 # visit the current plugin:
2043 # mark <- max(mark, enable)
2044 case `echo "$mark" | sed -e 's/ .*//' ` in
2045 "") echo "problem?"; exit 3;;
2046 "yes")
2047 if test -n "$enable"; then mark="$enable"; else mark="yes"; fi;;
2048 "partial") if test "$enable" = "no"; then mark="no"; fi;;
2049 "no") ;;
2050 esac
2051 # update plug-in attributes with the new mark
2052 # echo "update attributes with $mark"
2053 eval $m=\"$mark\"
2054 eval $e=\"`echo "$mark" | sed -e 's/ .*//' `\"
2055 enable="$mark"
2056 eval $r=\"$mark\"
2057 # compute and propagate a new mark to requires and users
2058 case `echo "$enable" | sed -e 's/ .*//' ` in
2059 "") echo "problem?"; exit 3;;
2060 "yes") check_and_propagate $uplugin "yes" "yes";;
2061 "partial")
2062 # if a plug-in is partial, does not consider its dependencies as partial
2063 # so the second argument is "yes" and not "partial"
2064 check_and_propagate \
2065 "$uplugin" \
2066 "yes" \
2067 "yes";;
2068 "no")
2069 check_and_propagate \
2070 "$uplugin" \
2071 "no ($lplugin not enabled)" \
2072 "partial ($lplugin not enabled)";;
2073 esac
2074 fi
2075 # recursively consider the next plugins
2076 if test -n "$TODOLIST"; then
2077 compute_dependency;
2078 fi
2079 }
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Makefile.in" >&5
2099 printf %s "checking for Makefile.in... " >&6; }
2100 if test ${ac_cv_file_Makefile_in+y}
2101 then :
2102 printf %s "(cached) " >&6
2103 else $as_nop
2104 test "$cross_compiling" = yes &&
2105 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
2106 if test -r "Makefile.in"; then
2107 ac_cv_file_Makefile_in=yes
2108 else
2109 ac_cv_file_Makefile_in=no
2110 fi
2111 fi
2112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_Makefile_in" >&5
2113 printf "%s\n" "$ac_cv_file_Makefile_in" >&6; }
2114 if test "x$ac_cv_file_Makefile_in" = xyes
2115 then :
2116 default=yes;plugin_present=yes
2117 else $as_nop
2118 plugin_present=no;default=no
2119 fi
2120
2121
2122 FORCE=no
2123
2124 # Check whether --enable-server was given.
2125 if test ${enable_server+y}
2126 then :
2127 enableval=$enable_server; ENABLE=$enableval;FORCE=$enableval
2128 else $as_nop
2129 ENABLE=$default
2130
2131 fi
2132
2133
2134 if test "$ONLY_KERNEL" = "yes" -a "$FORCE" = "no"; then
2135 ENABLE=no
2136 fi
2137
2138
2139
2140 if test "$plugin_present" = "no" -a "$FORCE" = "yes"; then
2141 as_fn_error $? "server is not available" "$LINENO" 5
2142 fi
2143
2144 FORCE_SERVER=$FORCE
2145 PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_SERVER
2146
2147 ENABLE_SERVER=$ENABLE
2148 NAME_SERVER=server
2149 if test "$default" = "no" -a "$FORCE" = "no"; then
2150 INFO_SERVER=" (not available by default)"
2151 fi
2152
2153
2154 echo "server... $ENABLE"
2155 # kept defined for write_plugin_config. A bit ugly, but not more than
2156 # usual autoconf stuff.
2157 # m4_undefine([PLUGIN_NAME])
2158
2159
2160
2161
2162
2163
2164
2165 ########################################
2166 # Server ZMQ Configuration #
2167 ########################################
2168
2169 # Check whether --enable-server-zmq was given.
2170 if test ${enable_server_zmq+y}
2171 then :
2172 enableval=$enable_server_zmq; SERVER_ZMQ=$enableval
2173 else $as_nop
2174 SERVER_ZMQ=yes
2175
2176 fi
2177
2178
2179 if test "$SERVER_ZMQ" = "yes" ;
2180 then
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190 HAS_OCAML_ZMQ=
2191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OCaml package zmq" >&5
2192 printf %s "checking for OCaml package zmq... " >&6; }
2193 OCAML_ZMQ=$(ocamlfind query zmq -format %v 2>/dev/null)
2194 if test -z "$OCAML_ZMQ" ; then
2195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found via ocamlfind." >&5
2196 printf "%s\n" "not found via ocamlfind." >&6; }
2197 HAS_OCAML_ZMQ=no
2198 else
2199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
2200 printf "%s\n" "found." >&6; }
2201 HAS_OCAML_ZMQ=yes
2202 fi
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216 USE_OCAML_ZMQ=$USE_OCAML_ZMQ" "server
2217
2218
2219 SERVER_ZMQ=$HAS_OCAML_ZMQ
2220 fi
2221
2222
2223
2224 #######################
2225 # Generating Makefile #
2226 #######################
2227
2228
2229
2230
2231 ac_config_files="$ac_config_files ./Makefile"
2232
2233
2234
2235
2236 # Compute INFO_* and exported ENABLE_* from previously computed ENABLE_*
2237 for fp in ${PLUGINS_FORCE_LIST}; do
2238 if test "$fp" != "FORCE_GTKSOURCEVIEW"; then
2239 plugin=`echo $fp | sed -e "s/FORCE_\(.*\)/\1/" `
2240 ep=ENABLE_$plugin
2241 eval v=\$$ep
2242 eval ep_v=`echo $v | sed -e 's/ .*//' `
2243 eval ENABLE_$plugin=$ep_v
2244 reason=`echo $v | sed -e 's/[a-z]*\( .*\)/\1/' `
2245 n=NAME_$plugin
2246 eval name=\$$n
2247 info=
2248 if test "$reason" != "$ep_v"; then
2249 info=$reason
2250 fi
2251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $name: $ep_v$info" >&5
2252 printf "%s\n" "$as_me: $name: $ep_v$info" >&6;}
2253 fi
2254 done
2255 cat >confcache <<\_ACEOF
2256 # This file is a shell script that caches the results of configure
2257 # tests run on this system so they can be shared between configure
2258 # scripts and configure runs, see configure's option --config-cache.
2259 # It is not useful on other systems. If it contains results you don't
2260 # want to keep, you may remove or edit it.
2261 #
2262 # config.status only pays attention to the cache file if you give it
2263 # the --recheck option to rerun configure.
2264 #
2265 # `ac_cv_env_foo' variables (set or unset) will be overridden when
2266 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2267 # following values.
2268
2269 _ACEOF
2270
2271 # The following way of writing the cache mishandles newlines in values,
2272 # but we know of no workaround that is simple, portable, and efficient.
2273 # So, we kill variables containing newlines.
2274 # Ultrix sh set writes to stderr and can't be redirected directly,
2275 # and sets the high bit in the cache file unless we assign to the vars.
2276 (
2277 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2278 eval ac_val=\$$ac_var
2279 case $ac_val in #(
2280 *${as_nl}*)
2281 case $ac_var in #(
2282 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2283 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2284 esac
2285 case $ac_var in #(
2286 _ | IFS | as_nl) ;; #(
2287 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2288 *) { eval $ac_var=; unset $ac_var;} ;;
2289 esac ;;
2290 esac
2291 done
2292
2293 (set) 2>&1 |
2294 case $as_nl`(ac_space=' '; set) 2>&1` in #(
2295 *${as_nl}ac_space=\ *)
2296 # `set' does not quote correctly, so add quotes: double-quote
2297 # substitution turns \\\\ into \\, and sed turns \\ into \.
2298 sed -n \
2299 "s/'/'\\\\''/g;
2300 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2301 ;; #(
2302 *)
2303 # `set' quotes correctly as required by POSIX, so do not add quotes.
2304 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2305 ;;
2306 esac |
2307 sort
2308 ) |
2309 sed '
2310 /^ac_cv_env_/b end
2311 t clear
2312 :clear
2313 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
2314 t end
2315 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2316 :end' >>confcache
2317 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2318 if test -w "$cache_file"; then
2319 if test "x$cache_file" != "x/dev/null"; then
2320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
2321 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
2322 if test ! -f "$cache_file" || test -h "$cache_file"; then
2323 cat confcache >"$cache_file"
2324 else
2325 case $cache_file in #(
2326 */* | ?:*)
2327 mv -f confcache "$cache_file"$$ &&
2328 mv -f "$cache_file"$$ "$cache_file" ;; #(
2329 *)
2330 mv -f confcache "$cache_file" ;;
2331 esac
2332 fi
2333 fi
2334 else
2335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
2336 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
2337 fi
2338 fi
2339 rm -f confcache
2340
2341 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2342 # Let make expand exec_prefix.
2343 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2344
2345 # Transform confdefs.h into DEFS.
2346 # Protect against shell expansion while executing Makefile rules.
2347 # Protect against Makefile macro expansion.
2348 #
2349 # If the first sed substitution is executed (which looks for macros that
2350 # take arguments), then branch to the quote section. Otherwise,
2351 # look for a macro that doesn't take arguments.
2352 ac_script='
2353 :mline
2354 /\\$/{
2355 N
2356 s,\\\n,,
2357 b mline
2358 }
2359 t clear
2360 :clear
2361 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
2362 t quote
2363 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
2364 t quote
2365 b any
2366 :quote
2367 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
2368 s/\[/\\&/g
2369 s/\]/\\&/g
2370 s/\$/$$/g
2371 H
2372 :any
2373 ${
2374 g
2375 s/^\n//
2376 s/\n/ /g
2377 p
2378 }
2379 '
2380 DEFS=`sed -n "$ac_script" confdefs.h`
2381
2382
2383 ac_libobjs=
2384 ac_ltlibobjs=
2385 U=
2386 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2387 # 1. Remove the extension, and $U if already installed.
2388 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
2389 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
2390 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
2391 # will be set to the directory where LIBOBJS objects are built.
2392 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
2393 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
2394 done
2395 LIBOBJS=$ac_libobjs
2396
2397 LTLIBOBJS=$ac_ltlibobjs
2398
2399
2400
2401 : "${CONFIG_STATUS=./config.status}"
2402 ac_write_fail=0
2403 ac_clean_files_save=$ac_clean_files
2404 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
2406 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
2407 as_write_fail=0
2408 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
2409 #! $SHELL
2410 # Generated by $as_me.
2411 # Run this file to recreate the current configuration.
2412 # Compiler output produced by configure, useful for debugging
2413 # configure, is in config.log if it exists.
2414
2415 debug=false
2416 ac_cs_recheck=false
2417 ac_cs_silent=false
2418
2419 SHELL=\${CONFIG_SHELL-$SHELL}
2420 export SHELL
2421 _ASEOF
2422 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
2423 ## -------------------- ##
2424 ## M4sh Initialization. ##
2425 ## -------------------- ##
2426
2427 # Be more Bourne compatible
2428 DUALCASE=1; export DUALCASE # for MKS sh
2429 as_nop=:
2430 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
2431 then :
2432 emulate sh
2433 NULLCMD=:
2434 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2435 # is contrary to our usage. Disable this feature.
2436 alias -g '${1+"$@"}'='"$@"'
2437 setopt NO_GLOB_SUBST
2438 else $as_nop
2439 case `(set -o) 2>/dev/null` in #(
2440 *posix*) :
2441 set -o posix ;; #(
2442 *) :
2443 ;;
2444 esac
2445 fi
2446
2447
2448
2449 # Reset variables that may have inherited troublesome values from
2450 # the environment.
2451
2452 # IFS needs to be set, to space, tab, and newline, in precisely that order.
2453 # (If _AS_PATH_WALK were called with IFS unset, it would have the
2454 # side effect of setting IFS to empty, thus disabling word splitting.)
2455 # Quoting is to prevent editors from complaining about space-tab.
2456 as_nl='
2457 '
2458 export as_nl
2459 IFS=" "" $as_nl"
2460
2461 PS1='$ '
2462 PS2='> '
2463 PS4='+ '
2464
2465 # Ensure predictable behavior from utilities with locale-dependent output.
2466 LC_ALL=C
2467 export LC_ALL
2468 LANGUAGE=C
2469 export LANGUAGE
2470
2471 # We cannot yet rely on "unset" to work, but we need these variables
2472 # to be unset--not just set to an empty or harmless value--now, to
2473 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
2474 # also avoids known problems related to "unset" and subshell syntax
2475 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
2476 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
2477 do eval test \${$as_var+y} \
2478 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
2479 done
2480
2481 # Ensure that fds 0, 1, and 2 are open.
2482 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
2483 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
2484 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
2485
2486 # The user is always right.
2487 if ${PATH_SEPARATOR+false} :; then
2488 PATH_SEPARATOR=:
2489 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
2490 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
2491 PATH_SEPARATOR=';'
2492 }
2493 fi
2494
2495
2496 # Find who we are. Look in the path if we contain no directory separator.
2497 as_myself=
2498 case $0 in #((
2499 *[\\/]* ) as_myself=$0 ;;
2500 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501 for as_dir in $PATH
2502 do
2503 IFS=$as_save_IFS
2504 case $as_dir in #(((
2505 '') as_dir=./ ;;
2506 */) ;;
2507 *) as_dir=$as_dir/ ;;
2508 esac
2509 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
2510 done
2511 IFS=$as_save_IFS
2512
2513 ;;
2514 esac
2515 # We did not find ourselves, most probably we were run as `sh COMMAND'
2516 # in which case we are not to be found in the path.
2517 if test "x$as_myself" = x; then
2518 as_myself=$0
2519 fi
2520 if test ! -f "$as_myself"; then
2521 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
2522 exit 1
2523 fi
2524
2525
2526
2527 # as_fn_error STATUS ERROR [LINENO LOG_FD]
2528 # ----------------------------------------
2529 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
2530 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
2531 # script with STATUS, using 1 if that was 0.
2532 as_fn_error ()
2533 {
2534 as_status=$1; test $as_status -eq 0 && as_status=1
2535 if test "$4"; then
2536 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
2538 fi
2539 printf "%s\n" "$as_me: error: $2" >&2
2540 as_fn_exit $as_status
2541 } # as_fn_error
2542
2543
2544
2545 # as_fn_set_status STATUS
2546 # -----------------------
2547 # Set $? to STATUS, without forking.
2548 as_fn_set_status ()
2549 {
2550 return $1
2551 } # as_fn_set_status
2552
2553 # as_fn_exit STATUS
2554 # -----------------
2555 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
2556 as_fn_exit ()
2557 {
2558 set +e
2559 as_fn_set_status $1
2560 exit $1
2561 } # as_fn_exit
2562
2563 # as_fn_unset VAR
2564 # ---------------
2565 # Portably unset VAR.
2566 as_fn_unset ()
2567 {
2568 { eval $1=; unset $1;}
2569 }
2570 as_unset=as_fn_unset
2571
2572 # as_fn_append VAR VALUE
2573 # ----------------------
2574 # Append the text in VALUE to the end of the definition contained in VAR. Take
2575 # advantage of any shell optimizations that allow amortized linear growth over
2576 # repeated appends, instead of the typical quadratic growth present in naive
2577 # implementations.
2578 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
2579 then :
2580 eval 'as_fn_append ()
2581 {
2582 eval $1+=\$2
2583 }'
2584 else $as_nop
2585 as_fn_append ()
2586 {
2587 eval $1=\$$1\$2
2588 }
2589 fi # as_fn_append
2590
2591 # as_fn_arith ARG...
2592 # ------------------
2593 # Perform arithmetic evaluation on the ARGs, and store the result in the
2594 # global $as_val. Take advantage of shells that can avoid forks. The arguments
2595 # must be portable across $(()) and expr.
2596 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
2597 then :
2598 eval 'as_fn_arith ()
2599 {
2600 as_val=$(( $* ))
2601 }'
2602 else $as_nop
2603 as_fn_arith ()
2604 {
2605 as_val=`expr "$@" || test $? -eq 1`
2606 }
2607 fi # as_fn_arith
2608
2609
2610 if expr a : '\(a\)' >/dev/null 2>&1 &&
2611 test "X`expr 00001 : '.*\(...\)'`" = X001; then
2612 as_expr=expr
2613 else
2614 as_expr=false
2615 fi
2616
2617 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2618 as_basename=basename
2619 else
2620 as_basename=false
2621 fi
2622
2623 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
2624 as_dirname=dirname
2625 else
2626 as_dirname=false
2627 fi
2628
2629 as_me=`$as_basename -- "$0" ||
2630 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2631 X"$0" : 'X\(//\)$' \| \
2632 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
2633 printf "%s\n" X/"$0" |
2634 sed '/^.*\/\([^/][^/]*\)\/*$/{
2635 s//\1/
2636 q
2637 }
2638 /^X\/\(\/\/\)$/{
2639 s//\1/
2640 q
2641 }
2642 /^X\/\(\/\).*/{
2643 s//\1/
2644 q
2645 }
2646 s/.*/./; q'`
2647
2648 # Avoid depending upon Character Ranges.
2649 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2650 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2651 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2652 as_cr_digits='0123456789'
2653 as_cr_alnum=$as_cr_Letters$as_cr_digits
2654
2655
2656 # Determine whether it's possible to make 'echo' print without a newline.
2657 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
2658 # for compatibility with existing Makefiles.
2659 ECHO_C= ECHO_N= ECHO_T=
2660 case `echo -n x` in #(((((
2661 -n*)
2662 case `echo 'xy\c'` in
2663 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
2664 xy) ECHO_C='\c';;
2665 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
2666 ECHO_T=' ';;
2667 esac;;
2668 *)
2669 ECHO_N='-n';;
2670 esac
2671
2672 # For backward compatibility with old third-party macros, we provide
2673 # the shell variables $as_echo and $as_echo_n. New code should use
2674 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
2675 as_echo='printf %s\n'
2676 as_echo_n='printf %s'
2677
2678 rm -f conf$$ conf$$.exe conf$$.file
2679 if test -d conf$$.dir; then
2680 rm -f conf$$.dir/conf$$.file
2681 else
2682 rm -f conf$$.dir
2683 mkdir conf$$.dir 2>/dev/null
2684 fi
2685 if (echo >conf$$.file) 2>/dev/null; then
2686 if ln -s conf$$.file conf$$ 2>/dev/null; then
2687 as_ln_s='ln -s'
2688 # ... but there are two gotchas:
2689 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
2690 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
2691 # In both cases, we have to default to `cp -pR'.
2692 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
2693 as_ln_s='cp -pR'
2694 elif ln conf$$.file conf$$ 2>/dev/null; then
2695 as_ln_s=ln
2696 else
2697 as_ln_s='cp -pR'
2698 fi
2699 else
2700 as_ln_s='cp -pR'
2701 fi
2702 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
2703 rmdir conf$$.dir 2>/dev/null
2704
2705
2706 # as_fn_mkdir_p
2707 # -------------
2708 # Create "$as_dir" as a directory, including parents if necessary.
2709 as_fn_mkdir_p ()
2710 {
2711
2712 case $as_dir in #(
2713 -*) as_dir=./$as_dir;;
2714 esac
2715 test -d "$as_dir" || eval $as_mkdir_p || {
2716 as_dirs=
2717 while :; do
2718 case $as_dir in #(
2719 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
2720 *) as_qdir=$as_dir;;
2721 esac
2722 as_dirs="'$as_qdir' $as_dirs"
2723 as_dir=`$as_dirname -- "$as_dir" ||
2724 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2725 X"$as_dir" : 'X\(//\)[^/]' \| \
2726 X"$as_dir" : 'X\(//\)$' \| \
2727 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
2728 printf "%s\n" X"$as_dir" |
2729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2730 s//\1/
2731 q
2732 }
2733 /^X\(\/\/\)[^/].*/{
2734 s//\1/
2735 q
2736 }
2737 /^X\(\/\/\)$/{
2738 s//\1/
2739 q
2740 }
2741 /^X\(\/\).*/{
2742 s//\1/
2743 q
2744 }
2745 s/.*/./; q'`
2746 test -d "$as_dir" && break
2747 done
2748 test -z "$as_dirs" || eval "mkdir $as_dirs"
2749 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
2750
2751
2752 } # as_fn_mkdir_p
2753 if mkdir -p . 2>/dev/null; then
2754 as_mkdir_p='mkdir -p "$as_dir"'
2755 else
2756 test -d ./-p && rmdir ./-p
2757 as_mkdir_p=false
2758 fi
2759
2760
2761 # as_fn_executable_p FILE
2762 # -----------------------
2763 # Test if FILE is an executable regular file.
2764 as_fn_executable_p ()
2765 {
2766 test -f "$1" && test -x "$1"
2767 } # as_fn_executable_p
2768 as_test_x='test -x'
2769 as_executable_p=as_fn_executable_p
2770
2771 # Sed expression to map a string onto a valid CPP name.
2772 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2773
2774 # Sed expression to map a string onto a valid variable name.
2775 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2776
2777
2778 exec 6>&1
2779 ## ----------------------------------- ##
2780 ## Main body of $CONFIG_STATUS script. ##
2781 ## ----------------------------------- ##
2782 _ASEOF
2783 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
2784
2785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2786 # Save the log message, to keep $0 and so on meaningful, and to
2787 # report actual input values of CONFIG_FILES etc. instead of their
2788 # values after options handling.
2789 ac_log="
2790 This file was extended by $as_me, which was
2791 generated by GNU Autoconf 2.71. Invocation command line was
2792
2793 CONFIG_FILES = $CONFIG_FILES
2794 CONFIG_HEADERS = $CONFIG_HEADERS
2795 CONFIG_LINKS = $CONFIG_LINKS
2796 CONFIG_COMMANDS = $CONFIG_COMMANDS
2797 $ $0 $@
2798
2799 on `(hostname || uname -n) 2>/dev/null | sed 1q`
2800 "
2801
2802 _ACEOF
2803
2804 case $ac_config_files in *"
2805 "*) set x $ac_config_files; shift; ac_config_files=$*;;
2806 esac
2807
2808
2809
2810 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2811 # Files that config.status was made for.
2812 config_files="$ac_config_files"
2813
2814 _ACEOF
2815
2816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2817 ac_cs_usage="\
2818 \`$as_me' instantiates files and other configuration actions
2819 from templates according to the current configuration. Unless the files
2820 and actions are specified as TAGs, all are instantiated by default.
2821
2822 Usage: $0 [OPTION]... [TAG]...
2823
2824 -h, --help print this help, then exit
2825 -V, --version print version number and configuration settings, then exit
2826 --config print configuration, then exit
2827 -q, --quiet, --silent
2828 do not print progress messages
2829 -d, --debug don't remove temporary files
2830 --recheck update $as_me by reconfiguring in the same conditions
2831 --file=FILE[:TEMPLATE]
2832 instantiate the configuration file FILE
2833
2834 Configuration files:
2835 $config_files
2836
2837 Report bugs to the package provider."
2838
2839 _ACEOF
2840 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
2841 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
2842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2843 ac_cs_config='$ac_cs_config_escaped'
2844 ac_cs_version="\\
2845 config.status
2846 configured by $0, generated by GNU Autoconf 2.71,
2847 with options \\"\$ac_cs_config\\"
2848
2849 Copyright (C) 2021 Free Software Foundation, Inc.
2850 This config.status script is free software; the Free Software Foundation
2851 gives unlimited permission to copy, distribute and modify it."
2852
2853 ac_pwd='$ac_pwd'
2854 srcdir='$srcdir'
2855 test -n "\$AWK" || AWK=awk
2856 _ACEOF
2857
2858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2859 # The default lists apply if the user does not specify any file.
2860 ac_need_defaults=:
2861 while test $# != 0
2862 do
2863 case $1 in
2864 --*=?*)
2865 ac_option=`expr "X$1" : 'X\([^=]*\)='`
2866 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
2867 ac_shift=:
2868 ;;
2869 --*=)
2870 ac_option=`expr "X$1" : 'X\([^=]*\)='`
2871 ac_optarg=
2872 ac_shift=:
2873 ;;
2874 *)
2875 ac_option=$1
2876 ac_optarg=$2
2877 ac_shift=shift
2878 ;;
2879 esac
2880
2881 case $ac_option in
2882 # Handling of the options.
2883 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2884 ac_cs_recheck=: ;;
2885 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
2886 printf "%s\n" "$ac_cs_version"; exit ;;
2887 --config | --confi | --conf | --con | --co | --c )
2888 printf "%s\n" "$ac_cs_config"; exit ;;
2889 --debug | --debu | --deb | --de | --d | -d )
2890 debug=: ;;
2891 --file | --fil | --fi | --f )
2892 $ac_shift
2893 case $ac_optarg in
2894 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
2895 '') as_fn_error $? "missing file argument" ;;
2896 esac
2897 as_fn_append CONFIG_FILES " '$ac_optarg'"
2898 ac_need_defaults=false;;
2899 --he | --h | --help | --hel | -h )
2900 printf "%s\n" "$ac_cs_usage"; exit ;;
2901 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2902 | -silent | --silent | --silen | --sile | --sil | --si | --s)
2903 ac_cs_silent=: ;;
2904
2905 # This is an error.
2906 -*) as_fn_error $? "unrecognized option: \`$1'
2907 Try \`$0 --help' for more information." ;;
2908
2909 *) as_fn_append ac_config_targets " $1"
2910 ac_need_defaults=false ;;
2911
2912 esac
2913 shift
2914 done
2915
2916 ac_configure_extra_args=
2917
2918 if $ac_cs_silent; then
2919 exec 6>/dev/null
2920 ac_configure_extra_args="$ac_configure_extra_args --silent"
2921 fi
2922
2923 _ACEOF
2924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2925 if \$ac_cs_recheck; then
2926 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
2927 shift
2928 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
2929 CONFIG_SHELL='$SHELL'
2930 export CONFIG_SHELL
2931 exec "\$@"
2932 fi
2933
2934 _ACEOF
2935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2936 exec 5>>config.log
2937 {
2938 echo
2939 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2940 ## Running $as_me. ##
2941 _ASBOX
2942 printf "%s\n" "$ac_log"
2943 } >&5
2944
2945 _ACEOF
2946 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2947 _ACEOF
2948
2949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2950
2951 # Handling of arguments.
2952 for ac_config_target in $ac_config_targets
2953 do
2954 case $ac_config_target in
2955 "./Makefile") CONFIG_FILES="$CONFIG_FILES ./Makefile" ;;
2956
2957 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
2958 esac
2959 done
2960
2961
2962 # If the user did not use the arguments to specify the items to instantiate,
2963 # then the envvar interface is used. Set only those that are not.
2964 # We use the long form for the default assignment because of an extremely
2965 # bizarre bug on SunOS 4.1.3.
2966 if $ac_need_defaults; then
2967 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
2968 fi
2969
2970 # Have a temporary directory for convenience. Make it in the build tree
2971 # simply because there is no reason against having it here, and in addition,
2972 # creating and moving files from /tmp can sometimes cause problems.
2973 # Hook for its removal unless debugging.
2974 # Note that there is a small window in which the directory will not be cleaned:
2975 # after its creation but before its name has been assigned to `$tmp'.
2976 $debug ||
2977 {
2978 tmp= ac_tmp=
2979 trap 'exit_status=$?
2980 : "${ac_tmp:=$tmp}"
2981 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
2982 ' 0
2983 trap 'as_fn_exit 1' 1 2 13 15
2984 }
2985 # Create a (secure) tmp directory for tmp files.
2986
2987 {
2988 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
2989 test -d "$tmp"
2990 } ||
2991 {
2992 tmp=./conf$$-$RANDOM
2993 (umask 077 && mkdir "$tmp")
2994 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
2995 ac_tmp=$tmp
2996
2997 # Set up the scripts for CONFIG_FILES section.
2998 # No need to generate them if there are no CONFIG_FILES.
2999 # This happens for instance with `./config.status config.h'.
3000 if test -n "$CONFIG_FILES"; then
3001
3002
3003 ac_cr=`echo X | tr X '\015'`
3004 # On cygwin, bash can eat \r inside `` if the user requested igncr.
3005 # But we know of no other shell where ac_cr would be empty at this
3006 # point, so we can use a bashism as a fallback.
3007 if test "x$ac_cr" = x; then
3008 eval ac_cr=\$\'\\r\'
3009 fi
3010 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3011 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
3012 ac_cs_awk_cr='\\r'
3013 else
3014 ac_cs_awk_cr=$ac_cr
3015 fi
3016
3017 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
3018 _ACEOF
3019
3020
3021 {
3022 echo "cat >conf$$subs.awk <<_ACEOF" &&
3023 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
3024 echo "_ACEOF"
3025 } >conf$$subs.sh ||
3026 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3027 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
3028 ac_delim='%!_!# '
3029 for ac_last_try in false false false false false :; do
3030 . ./conf$$subs.sh ||
3031 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3032
3033 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
3034 if test $ac_delim_n = $ac_delim_num; then
3035 break
3036 elif $ac_last_try; then
3037 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3038 else
3039 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3040 fi
3041 done
3042 rm -f conf$$subs.sh
3043
3044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3045 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
3046 _ACEOF
3047 sed -n '
3048 h
3049 s/^/S["/; s/!.*/"]=/
3050 p
3051 g
3052 s/^[^!]*!//
3053 :repl
3054 t repl
3055 s/'"$ac_delim"'$//
3056 t delim
3057 :nl
3058 h
3059 s/\(.\{148\}\)..*/\1/
3060 t more1
3061 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3062 p
3063 n
3064 b repl
3065 :more1
3066 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3067 p
3068 g
3069 s/.\{148\}//
3070 t nl
3071 :delim
3072 h
3073 s/\(.\{148\}\)..*/\1/
3074 t more2
3075 s/["\\]/\\&/g; s/^/"/; s/$/"/
3076 p
3077 b
3078 :more2
3079 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3080 p
3081 g
3082 s/.\{148\}//
3083 t delim
3084 ' <conf$$subs.awk | sed '
3085 /^[^""]/{
3086 N
3087 s/\n//
3088 }
3089 ' >>$CONFIG_STATUS || ac_write_fail=1
3090 rm -f conf$$subs.awk
3091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3092 _ACAWK
3093 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
3094 for (key in S) S_is_set[key] = 1
3095 FS = ""
3096
3097 }
3098 {
3099 line = $ 0
3100 nfields = split(line, field, "@")
3101 substed = 0
3102 len = length(field[1])
3103 for (i = 2; i < nfields; i++) {
3104 key = field[i]
3105 keylen = length(key)
3106 if (S_is_set[key]) {
3107 value = S[key]
3108 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
3109 len += length(value) + length(field[++i])
3110 substed = 1
3111 } else
3112 len += 1 + keylen
3113 }
3114
3115 print line
3116 }
3117
3118 _ACAWK
3119 _ACEOF
3120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3121 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
3122 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
3123 else
3124 cat
3125 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
3126 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
3127 _ACEOF
3128
3129 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
3130 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
3131 # trailing colons and then remove the whole line if VPATH becomes empty
3132 # (actually we leave an empty line to preserve line numbers).
3133 if test "x$srcdir" = x.; then
3134 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
3135 h
3136 s///
3137 s/^/:/
3138 s/[ ]*$/:/
3139 s/:\$(srcdir):/:/g
3140 s/:\${srcdir}:/:/g
3141 s/:@srcdir@:/:/g
3142 s/^:*//
3143 s/:*$//
3144 x
3145 s/\(=[ ]*\).*/\1/
3146 G
3147 s/\n//
3148 s/^[^=]*=[ ]*$//
3149 }'
3150 fi
3151
3152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3153 fi # test -n "$CONFIG_FILES"
3154
3155
3156 eval set X " :F $CONFIG_FILES "
3157 shift
3158 for ac_tag
3159 do
3160 case $ac_tag in
3161 :[FHLC]) ac_mode=$ac_tag; continue;;
3162 esac
3163 case $ac_mode$ac_tag in
3164 :[FHL]*:*);;
3165 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
3166 :[FH]-) ac_tag=-:-;;
3167 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3168 esac
3169 ac_save_IFS=$IFS
3170 IFS=:
3171 set x $ac_tag
3172 IFS=$ac_save_IFS
3173 shift
3174 ac_file=$1
3175 shift
3176
3177 case $ac_mode in
3178 :L) ac_source=$1;;
3179 :[FH])
3180 ac_file_inputs=
3181 for ac_f
3182 do
3183 case $ac_f in
3184 -) ac_f="$ac_tmp/stdin";;
3185 *) # Look for the file first in the build tree, then in the source tree
3186 # (if the path is not absolute). The absolute path cannot be DOS-style,
3187 # because $ac_f cannot contain `:'.
3188 test -f "$ac_f" ||
3189 case $ac_f in
3190 [\\/$]*) false;;
3191 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3192 esac ||
3193 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
3194 esac
3195 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
3196 as_fn_append ac_file_inputs " '$ac_f'"
3197 done
3198
3199 # Let's still pretend it is `configure' which instantiates (i.e., don't
3200 # use $as_me), people would be surprised to read:
3201 # /* config.h. Generated by config.status. */
3202 configure_input='Generated from '`
3203 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
3204 `' by configure.'
3205 if test x"$ac_file" != x-; then
3206 configure_input="$ac_file. $configure_input"
3207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
3208 printf "%s\n" "$as_me: creating $ac_file" >&6;}
3209 fi
3210 # Neutralize special characters interpreted by sed in replacement strings.
3211 case $configure_input in #(
3212 *\&* | *\|* | *\\* )
3213 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
3214 sed 's/[\\\\&|]/\\\\&/g'`;; #(
3215 *) ac_sed_conf_input=$configure_input;;
3216 esac
3217
3218 case $ac_tag in
3219 *:-:* | *:-) cat >"$ac_tmp/stdin" \
3220 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
3221 esac
3222 ;;
3223 esac
3224
3225 ac_dir=`$as_dirname -- "$ac_file" ||
3226 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3227 X"$ac_file" : 'X\(//\)[^/]' \| \
3228 X"$ac_file" : 'X\(//\)$' \| \
3229 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
3230 printf "%s\n" X"$ac_file" |
3231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3232 s//\1/
3233 q
3234 }
3235 /^X\(\/\/\)[^/].*/{
3236 s//\1/
3237 q
3238 }
3239 /^X\(\/\/\)$/{
3240 s//\1/
3241 q
3242 }
3243 /^X\(\/\).*/{
3244 s//\1/
3245 q
3246 }
3247 s/.*/./; q'`
3248 as_dir="$ac_dir"; as_fn_mkdir_p
3249 ac_builddir=.
3250
3251 case "$ac_dir" in
3252 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
3253 *)
3254 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
3255 # A ".." for each directory in $ac_dir_suffix.
3256 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
3257 case $ac_top_builddir_sub in
3258 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
3259 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
3260 esac ;;
3261 esac
3262 ac_abs_top_builddir=$ac_pwd
3263 ac_abs_builddir=$ac_pwd$ac_dir_suffix
3264 # for backward compatibility:
3265 ac_top_builddir=$ac_top_build_prefix
3266
3267 case $srcdir in
3268 .) # We are building in place.
3269 ac_srcdir=.
3270 ac_top_srcdir=$ac_top_builddir_sub
3271 ac_abs_top_srcdir=$ac_pwd ;;
3272 [\\/]* | ?:[\\/]* ) # Absolute name.
3273 ac_srcdir=$srcdir$ac_dir_suffix;
3274 ac_top_srcdir=$srcdir
3275 ac_abs_top_srcdir=$srcdir ;;
3276 *) # Relative name.
3277 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
3278 ac_top_srcdir=$ac_top_build_prefix$srcdir
3279 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3280 esac
3281 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3282
3283
3284 case $ac_mode in
3285 :F)
3286 #
3287 # CONFIG_FILE
3288 #
3289
3290 _ACEOF
3291
3292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3293 # If the template does not know about datarootdir, expand it.
3294 # FIXME: This hack should be removed a few years after 2.60.
3295 ac_datarootdir_hack=; ac_datarootdir_seen=
3296 ac_sed_dataroot='
3297 /datarootdir/ {
3298 p
3299 q
3300 }
3301 /@datadir@/p
3302 /@docdir@/p
3303 /@infodir@/p
3304 /@localedir@/p
3305 /@mandir@/p'
3306 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
3307 *datarootdir*) ac_datarootdir_seen=yes;;
3308 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
3309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
3310 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
3311 _ACEOF
3312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3313 ac_datarootdir_hack='
3314 s&@datadir@&$datadir&g
3315 s&@docdir@&$docdir&g
3316 s&@infodir@&$infodir&g
3317 s&@localedir@&$localedir&g
3318 s&@mandir@&$mandir&g
3319 s&\\\${datarootdir}&$datarootdir&g' ;;
3320 esac
3321 _ACEOF
3322
3323 # Neutralize VPATH when `$srcdir' = `.'.
3324 # Shell code in configure.ac might set extrasub.
3325 # FIXME: do we really want to maintain this feature?
3326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3327 ac_sed_extra="$ac_vpsub
3328 $extrasub
3329 _ACEOF
3330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3331 :t
3332 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3333 s|@configure_input@|$ac_sed_conf_input|;t t
3334 s&@top_builddir@&$ac_top_builddir_sub&;t t
3335 s&@top_build_prefix@&$ac_top_build_prefix&;t t
3336 s&@srcdir@&$ac_srcdir&;t t
3337 s&@abs_srcdir@&$ac_abs_srcdir&;t t
3338 s&@top_srcdir@&$ac_top_srcdir&;t t
3339 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
3340 s&@builddir@&$ac_builddir&;t t
3341 s&@abs_builddir@&$ac_abs_builddir&;t t
3342 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
3343 $ac_datarootdir_hack
3344 "
3345 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
3346 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3347
3348 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
3349 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
3350 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
3351 "$ac_tmp/out"`; test -z "$ac_out"; } &&
3352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3353 which seems to be undefined. Please make sure it is defined" >&5
3354 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3355 which seems to be undefined. Please make sure it is defined" >&2;}
3356
3357 rm -f "$ac_tmp/stdin"
3358 case $ac_file in
3359 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
3360 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
3361 esac \
3362 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3363 ;;
3364
3365
3366
3367 esac
3368
3369
3370 case $ac_file$ac_mode in
3371 "./Makefile":F) chmod -w ./Makefile ;;
3372
3373 esac
3374 done # for ac_tag
3375
3376
3377 as_fn_exit 0
3378 _ACEOF
3379 ac_clean_files=$ac_clean_files_save
3380
3381 test $ac_write_fail = 0 ||
3382 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
3383
3384
3385 # configure is writing to config.log, and then calls config.status.
3386 # config.status does its own redirection, appending to config.log.
3387 # Unfortunately, on DOS this fails, as config.log is still kept open
3388 # by configure, so config.status won't be able to write to it; its
3389 # output is simply discarded. So we exec the FD to /dev/null,
3390 # effectively closing config.log, so it can be properly (re)opened and
3391 # appended to by config.status. When coming back to configure, we
3392 # need to make the FD available again.
3393 if test "$no_create" != yes; then
3394 ac_cs_success=:
3395 ac_config_status_args=
3396 test "$silent" = yes &&
3397 ac_config_status_args="$ac_config_status_args --quiet"
3398 exec 5>/dev/null
3399 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3400 exec 5>>config.log
3401 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3402 # would make configure fail if this is the last instruction.
3403 $ac_cs_success || as_fn_exit 1
3404 fi
3405 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
3406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
3407 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
3408 fi
3409
3410
3411
3412
3413 if test -n "$REQUIRE_OCAML_ZMQ" -o -n "$USE_OCAML_ZMQ" -o "$force_check" = "yes"; then
3414 if test "$HAS_OCAML_ZMQ" = "no"; then
3415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Server support for ZeroMQ disabled (try 'opam install zmq')." >&5
3416 printf "%s\n" "$as_me: WARNING: Server support for ZeroMQ disabled (try 'opam install zmq')." >&2;}
3417 reason="zmq missing"
3418 for p in $REQUIRE_OCAML_ZMQ; do
3419 up=`upper "$p"`
3420 ep=ENABLE_$up
3421 eval enable_p=\$$ep
3422 if test "$enable_p" != "no"; then
3423 fp=FORCE_`upper "$p"`
3424 if eval test "\$$fp" = "yes"; then
3425 as_fn_error $? "$p requested but $reason." "$LINENO" 5
3426 fi
3427 eval $ep="no\ \(see\ warning\ about\ zmq\)"
3428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $p disabled because $reason." >&5
3429 printf "%s\n" "$as_me: WARNING: $p disabled because $reason." >&2;}
3430 eval INFO_$up=\", $reason\"
3431 fi
3432 done
3433 for p in $USE_OCAML_ZMQ; do
3434 up=`upper "$p"`
3435 ep=ENABLE_$up
3436 eval eep="\$$ep"
3437 if test "`echo $eep | sed -e 's/ .*//' `" != "no"; then
3438 eval $ep="partial\ \(see\ warning\ about\ zmq\)"
3439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $p partially enabled because $reason." >&5
3440 printf "%s\n" "$as_me: WARNING: $p partially enabled because $reason." >&2;}
3441 eval INFO_$up=\", $reason\"
3442 fi
3443 done
3444 else
3445 OCAML_ZMQ=ZMQ
3446 fi
3447 fi
3448